1 | import type { Except } from 'type-fest';
|
2 | import type { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types';
|
3 | type AppBundleSys = Except<BasicMetaSysProps, 'version'> & {
|
4 | appDefinition: SysLink;
|
5 | organization: SysLink;
|
6 | };
|
7 | interface ActionManifestProps {
|
8 | id?: string;
|
9 | name: string;
|
10 | description: string;
|
11 | category: string;
|
12 | path: string;
|
13 | allowNetworks?: string[];
|
14 | }
|
15 | interface FunctionManifestProps {
|
16 | id: string;
|
17 | name: string;
|
18 | description: string;
|
19 | path: string;
|
20 | accepts?: string[];
|
21 | allowNetworks?: string[];
|
22 | }
|
23 | export type AppBundleFile = {
|
24 | name: string;
|
25 | size: number;
|
26 | md5: string;
|
27 | };
|
28 | export type CreateAppBundleProps = {
|
29 | appUploadId: string;
|
30 | comment?: string;
|
31 | actions?: ActionManifestProps[];
|
32 | functions?: FunctionManifestProps[];
|
33 | };
|
34 | export type AppBundleProps = {
|
35 | |
36 |
|
37 |
|
38 | sys: AppBundleSys;
|
39 | |
40 |
|
41 |
|
42 | files: AppBundleFile[];
|
43 | |
44 |
|
45 |
|
46 | comment?: string;
|
47 | };
|
48 | export interface AppBundle extends AppBundleProps, DefaultElements<AppBundleProps> {
|
49 | |
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | delete(): Promise<void>;
|
67 | }
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 | export declare function wrapAppBundle(makeRequest: MakeRequest, data: AppBundleProps): AppBundle;
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 | export declare const wrapAppBundleCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp<AppBundleProps>) => import("../common-types").Collection<AppBundle, AppBundleProps>;
|
82 | export {};
|