@zapier/zapier-sdk 0.15.2 → 0.15.3
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/CHANGELOG.md +6 -0
- package/dist/index.cjs +98 -5
- package/dist/index.d.mts +123 -31
- package/dist/index.mjs +98 -5
- package/dist/plugins/fetch/schemas.d.ts +2 -2
- package/dist/plugins/getAction/schemas.d.ts +2 -2
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts +2 -2
- package/dist/plugins/listActions/index.test.js +25 -0
- package/dist/plugins/listActions/schemas.d.ts +2 -2
- package/dist/plugins/listAuthentications/index.test.js +20 -0
- package/dist/plugins/listInputFieldChoices/schemas.d.ts +6 -6
- package/dist/plugins/listInputFields/schemas.d.ts +6 -6
- package/dist/plugins/manifest/index.d.ts +42 -3
- package/dist/plugins/manifest/index.d.ts.map +1 -1
- package/dist/plugins/manifest/index.js +68 -1
- package/dist/plugins/manifest/index.test.js +513 -1
- package/dist/plugins/manifest/schemas.d.ts +75 -2
- package/dist/plugins/manifest/schemas.d.ts.map +1 -1
- package/dist/plugins/manifest/schemas.js +27 -3
- package/dist/plugins/request/schemas.d.ts +4 -4
- package/dist/plugins/runAction/schemas.d.ts +6 -6
- package/dist/sdk.d.ts +23 -1
- package/dist/sdk.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -13,18 +13,18 @@ export declare const RelayRequestSchema: z.ZodObject<{
|
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
url: string;
|
|
15
15
|
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
16
|
+
authenticationId?: number | undefined;
|
|
16
17
|
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
17
18
|
body?: any;
|
|
18
|
-
authenticationId?: number | undefined;
|
|
19
19
|
callbackUrl?: string | undefined;
|
|
20
20
|
authenticationTemplate?: string | undefined;
|
|
21
21
|
relayBaseUrl?: string | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
url: string;
|
|
24
24
|
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
25
|
+
authenticationId?: number | undefined;
|
|
25
26
|
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
26
27
|
body?: any;
|
|
27
|
-
authenticationId?: number | undefined;
|
|
28
28
|
callbackUrl?: string | undefined;
|
|
29
29
|
authenticationTemplate?: string | undefined;
|
|
30
30
|
relayBaseUrl?: string | undefined;
|
|
@@ -47,18 +47,18 @@ export declare const RelayFetchSchema: z.ZodObject<{
|
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
48
|
url: string;
|
|
49
49
|
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
50
|
+
authenticationId?: number | undefined;
|
|
50
51
|
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
51
52
|
body?: any;
|
|
52
|
-
authenticationId?: number | undefined;
|
|
53
53
|
callbackUrl?: string | undefined;
|
|
54
54
|
authenticationTemplate?: string | undefined;
|
|
55
55
|
relayBaseUrl?: string | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
url: string;
|
|
58
58
|
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
59
|
+
authenticationId?: number | undefined;
|
|
59
60
|
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
60
61
|
body?: any;
|
|
61
|
-
authenticationId?: number | undefined;
|
|
62
62
|
callbackUrl?: string | undefined;
|
|
63
63
|
authenticationTemplate?: string | undefined;
|
|
64
64
|
relayBaseUrl?: string | undefined;
|
|
@@ -14,22 +14,22 @@ export declare const RunActionSchema: z.ZodObject<{
|
|
|
14
14
|
cursor: z.ZodOptional<z.ZodString>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
appKey: string;
|
|
17
|
-
actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
|
|
18
17
|
actionKey: string;
|
|
18
|
+
actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
|
|
19
|
+
authenticationId?: number | null | undefined;
|
|
20
|
+
inputs?: Record<string, unknown> | undefined;
|
|
19
21
|
pageSize?: number | undefined;
|
|
20
22
|
maxItems?: number | undefined;
|
|
21
23
|
cursor?: string | undefined;
|
|
22
|
-
authenticationId?: number | null | undefined;
|
|
23
|
-
inputs?: Record<string, unknown> | undefined;
|
|
24
24
|
}, {
|
|
25
25
|
appKey: string;
|
|
26
|
-
actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
|
|
27
26
|
actionKey: string;
|
|
27
|
+
actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
|
|
28
|
+
authenticationId?: number | null | undefined;
|
|
29
|
+
inputs?: Record<string, unknown> | undefined;
|
|
28
30
|
pageSize?: number | undefined;
|
|
29
31
|
maxItems?: number | undefined;
|
|
30
32
|
cursor?: string | undefined;
|
|
31
|
-
authenticationId?: number | null | undefined;
|
|
32
|
-
inputs?: Record<string, unknown> | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
export type RunActionOptions = z.infer<typeof RunActionSchema>;
|
|
35
35
|
export interface RunActionPage {
|
package/dist/sdk.d.ts
CHANGED
|
@@ -20,7 +20,29 @@ export declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOption
|
|
|
20
20
|
} & {
|
|
21
21
|
getVersionedImplementationId: import("./plugins/manifest/schemas").GetVersionedImplementationId;
|
|
22
22
|
resolveAppKeys: import("./plugins/manifest/schemas").ResolveAppKeys;
|
|
23
|
-
updateManifestEntry: (options: import(".").UpdateManifestEntryOptions) => Promise<
|
|
23
|
+
updateManifestEntry: (options: import(".").UpdateManifestEntryOptions) => Promise<import(".").UpdateManifestEntryResult>;
|
|
24
|
+
addActionEntry: (options: import(".").AddActionEntryOptions) => Promise<import(".").AddActionEntryResult>;
|
|
25
|
+
findActionEntry: (options: {
|
|
26
|
+
name: string;
|
|
27
|
+
manifest: import(".").Manifest;
|
|
28
|
+
}) => import(".").ActionEntry | null;
|
|
29
|
+
listActionEntries: (options?: {
|
|
30
|
+
configPath?: string;
|
|
31
|
+
}) => Promise<Array<[string, import(".").ActionEntry]>>;
|
|
32
|
+
deleteActionEntry: (options: {
|
|
33
|
+
name: string;
|
|
34
|
+
configPath?: string;
|
|
35
|
+
skipWrite?: boolean;
|
|
36
|
+
}) => Promise<import(".").Manifest>;
|
|
37
|
+
hasActionEntry: (options: {
|
|
38
|
+
name: string;
|
|
39
|
+
manifest: import(".").Manifest;
|
|
40
|
+
}) => boolean;
|
|
41
|
+
findManifestEntry: (options: {
|
|
42
|
+
appKey: string;
|
|
43
|
+
manifest: import(".").Manifest;
|
|
44
|
+
}) => [string, import(".").ManifestEntry] | null;
|
|
45
|
+
readManifestFromFile: (filePath: string) => Promise<import(".").Manifest | null>;
|
|
24
46
|
} & {
|
|
25
47
|
meta: {
|
|
26
48
|
listApps: {
|
package/dist/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EACV,GAAG,EACH,MAAM,EACN,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACX,MAAM,gBAAgB,CAAC;AA2BxB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAG3D,wBAAgB,SAAS,CACvB,WAAW,GAAG,EAAE,EAChB,eAAe,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CAAE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