1 | import { _SPCollection, _SPInstance, ISPQueryable } from "../spqueryable.js";
|
2 | import { IFile } from "../files/types.js";
|
3 | export declare class _AppCatalog extends _SPCollection {
|
4 | constructor(base: string | ISPQueryable, path?: string);
|
5 | /**
|
6 | * Get details of specific app from the app catalog
|
7 | * @param id - Specify the guid of the app
|
8 | */
|
9 | getAppById(id: string): IApp;
|
10 | /**
|
11 | * Synchronize a solution to the Microsoft Teams App Catalog
|
12 | * @param id - Specify the guid of the app
|
13 | * @param useSharePointItemId (optional) - By default this REST call requires the SP Item id of the app, not the app id.
|
14 | * PnPjs will try to fetch the item id by default, you can still use this parameter to pass your own item id in the first parameter
|
15 | */
|
16 | syncSolutionToTeams(id: string | number, useSharePointItemId?: boolean): Promise<void>;
|
17 | /**
|
18 | * Uploads an app package. Not supported for batching
|
19 | *
|
20 | * @param filename Filename to create.
|
21 | * @param content app package data (eg: the .app or .sppkg file).
|
22 | * @param shouldOverWrite Should an app with the same name in the same location be overwritten? (default: true)
|
23 | * @returns Promise<IAppAddResult>
|
24 | */
|
25 | add(filename: string, content: string | ArrayBuffer | Blob, shouldOverWrite?: boolean): Promise<IAppAddResult>;
|
26 | }
|
27 | export interface IAppCatalog extends _AppCatalog {
|
28 | }
|
29 | export declare const AppCatalog: import("../spqueryable.js").ISPInvokableFactory<IAppCatalog>;
|
30 | export declare class _App extends _SPInstance {
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | deploy(skipFeatureDeployment?: boolean): Promise<void>;
|
38 | |
39 |
|
40 |
|
41 |
|
42 | retract(): Promise<void>;
|
43 | |
44 |
|
45 |
|
46 | install(): Promise<void>;
|
47 | |
48 |
|
49 |
|
50 |
|
51 | uninstall(): Promise<void>;
|
52 | |
53 |
|
54 |
|
55 | upgrade(): Promise<void>;
|
56 | |
57 |
|
58 |
|
59 |
|
60 | remove(): Promise<void>;
|
61 | private do;
|
62 | }
|
63 | export interface IApp extends _App {
|
64 | }
|
65 | export declare const App: import("../spqueryable.js").ISPInvokableFactory<IApp>;
|
66 |
|
67 |
|
68 |
|
69 | export interface IAppAddResult {
|
70 | |
71 |
|
72 |
|
73 | data: any;
|
74 | |
75 |
|
76 |
|
77 | file: IFile;
|
78 | }
|
79 |
|
\ | No newline at end of file |