@zapier/zapier-sdk 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions-sdk.d.ts +51 -0
- package/dist/actions-sdk.js +1194 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/output-schemas.d.ts +95 -0
- package/dist/output-schemas.js +138 -0
- package/dist/schemas.d.ts +338 -0
- package/dist/schemas.js +336 -0
- package/dist/sdk.d.ts +5 -5
- package/dist/sdk.js +8 -8
- package/dist/types.d.ts +184 -0
- package/dist/types.js +41 -0
- package/package.json +5 -3
- package/src/actions-sdk.ts +1685 -0
- package/src/index.ts +4 -4
- package/src/output-schemas.ts +196 -0
- package/src/schemas.ts +467 -0
- package/src/sdk.ts +13 -13
- package/src/types.ts +244 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Integration, Action, ActionExecutionOptions, ActionExecutionResult, ActionField, Authentication, BaseSdkOptions } from "./types";
|
|
2
|
+
import { AppsListOptions, AppsGetOptions, ActionsListOptions, ActionsGetOptions, ActionsRunOptions, AuthsListOptions, AuthsFindOptions, FieldsListOptions, GenerateOptions, BundleOptions } from "./schemas";
|
|
3
|
+
export * from "./schemas";
|
|
4
|
+
export * from "./output-schemas";
|
|
5
|
+
export interface ActionsSdk {
|
|
6
|
+
apps: AppsService;
|
|
7
|
+
actions: ActionsService;
|
|
8
|
+
auths: AuthsService;
|
|
9
|
+
fields: FieldsService;
|
|
10
|
+
generate: GenerateFunction;
|
|
11
|
+
bundle: BundleFunction;
|
|
12
|
+
}
|
|
13
|
+
export interface AppsService {
|
|
14
|
+
list(options?: AppsListOptions): Promise<Integration[]>;
|
|
15
|
+
get(options: AppsGetOptions): Promise<Integration>;
|
|
16
|
+
}
|
|
17
|
+
interface ActionRunner {
|
|
18
|
+
(params: ActionsRunOptions): Promise<ActionExecutionResult>;
|
|
19
|
+
}
|
|
20
|
+
interface ActionProxy {
|
|
21
|
+
[app: string]: {
|
|
22
|
+
[type: string]: {
|
|
23
|
+
[action: string]: (options?: ActionExecutionOptions) => Promise<ActionExecutionResult>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface GenerateFunction {
|
|
28
|
+
(options: GenerateOptions): Promise<string>;
|
|
29
|
+
}
|
|
30
|
+
export interface BundleFunction {
|
|
31
|
+
(options: BundleOptions): Promise<string>;
|
|
32
|
+
}
|
|
33
|
+
export interface ActionsService {
|
|
34
|
+
list(options?: ActionsListOptions): Promise<Action[]>;
|
|
35
|
+
get(options: ActionsGetOptions): Promise<Action>;
|
|
36
|
+
/** @deprecated Use sdk.fields.list() instead */
|
|
37
|
+
fields(options: FieldsListOptions): Promise<ActionField[]>;
|
|
38
|
+
/** @deprecated Use sdk.fields.list() instead */
|
|
39
|
+
getFields(options: FieldsListOptions): Promise<ActionField[]>;
|
|
40
|
+
run: ActionRunner & ActionProxy;
|
|
41
|
+
}
|
|
42
|
+
export interface AuthsService {
|
|
43
|
+
list(options?: AuthsListOptions): Promise<Authentication[]>;
|
|
44
|
+
find(options: AuthsFindOptions): number;
|
|
45
|
+
}
|
|
46
|
+
export interface FieldsService {
|
|
47
|
+
list(options: FieldsListOptions): Promise<ActionField[]>;
|
|
48
|
+
}
|
|
49
|
+
export interface ActionsSdkOptions extends BaseSdkOptions {
|
|
50
|
+
}
|
|
51
|
+
export declare function createActionsSdk(options?: ActionsSdkOptions): ActionsSdk;
|