@zapier/zapier-sdk 0.50.0 → 0.52.0
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 +16 -0
- package/README.md +2 -1
- package/dist/api/auth.d.ts +1 -6
- package/dist/api/auth.d.ts.map +1 -1
- package/dist/api/auth.js +34 -27
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +87 -9
- package/dist/api/concurrency.d.ts +28 -0
- package/dist/api/concurrency.d.ts.map +1 -0
- package/dist/api/concurrency.js +90 -0
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/schemas.d.ts +3 -3
- package/dist/api/types.d.ts +6 -0
- package/dist/api/types.d.ts.map +1 -1
- package/dist/auth.d.ts +13 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +95 -11
- package/dist/constants.d.ts +16 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +29 -0
- package/dist/experimental.cjs +357 -34
- package/dist/experimental.d.mts +28 -28
- package/dist/experimental.d.ts +26 -26
- package/dist/experimental.mjs +353 -35
- package/dist/{index-BQ2ii0Bs.d.mts → index-DcdtPei-.d.mts} +132 -2
- package/dist/{index-BQ2ii0Bs.d.ts → index-DcdtPei-.d.ts} +132 -2
- package/dist/index.cjs +357 -34
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.mjs +353 -35
- package/dist/plugins/api/index.d.ts.map +1 -1
- package/dist/plugins/api/index.js +3 -2
- package/dist/plugins/apps/index.d.ts +2 -2
- package/dist/plugins/deprecated/inputFields.d.ts +18 -18
- package/dist/plugins/getAction/index.d.ts +6 -6
- package/dist/plugins/getAction/schemas.d.ts +4 -4
- package/dist/plugins/getActionInputFieldsSchema/index.d.ts +5 -5
- package/dist/plugins/getActionInputFieldsSchema/schemas.d.ts +4 -4
- package/dist/plugins/listActionInputFieldChoices/index.d.ts +5 -5
- package/dist/plugins/listActionInputFieldChoices/schemas.d.ts +4 -4
- package/dist/plugins/listActionInputFields/index.d.ts +5 -5
- package/dist/plugins/listActionInputFields/schemas.d.ts +4 -4
- package/dist/plugins/listActions/index.d.ts +3 -3
- package/dist/plugins/listActions/schemas.d.ts +4 -4
- package/dist/plugins/runAction/index.d.ts +5 -5
- package/dist/plugins/runAction/schemas.d.ts +4 -4
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts +2 -2
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts +2 -2
- package/dist/plugins/triggers/listTriggerInputFields/index.d.ts +2 -2
- package/dist/schemas/Action.d.ts +1 -1
- package/dist/sdk.d.ts +52 -52
- package/dist/types/properties.d.ts +1 -1
- package/dist/types/sdk.d.ts +1 -0
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/sdk.js +25 -0
- package/dist/utils/telemetry.d.ts +11 -0
- package/dist/utils/telemetry.d.ts.map +1 -0
- package/dist/utils/telemetry.js +19 -0
- package/package.json +1 -1
|
@@ -5,13 +5,13 @@ export declare const ListActionsSchema: z.ZodObject<{
|
|
|
5
5
|
};
|
|
6
6
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
7
7
|
filter: "filter";
|
|
8
|
+
write: "write";
|
|
8
9
|
read: "read";
|
|
9
10
|
read_bulk: "read_bulk";
|
|
10
11
|
run: "run";
|
|
11
12
|
search: "search";
|
|
12
13
|
search_and_write: "search_and_write";
|
|
13
14
|
search_or_write: "search_or_write";
|
|
14
|
-
write: "write";
|
|
15
15
|
}>>;
|
|
16
16
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
@@ -23,13 +23,13 @@ declare const ListActionsSchemaDeprecated: z.ZodObject<{
|
|
|
23
23
|
};
|
|
24
24
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
25
25
|
filter: "filter";
|
|
26
|
+
write: "write";
|
|
26
27
|
read: "read";
|
|
27
28
|
read_bulk: "read_bulk";
|
|
28
29
|
run: "run";
|
|
29
30
|
search: "search";
|
|
30
31
|
search_and_write: "search_and_write";
|
|
31
32
|
search_or_write: "search_or_write";
|
|
32
|
-
write: "write";
|
|
33
33
|
}>>;
|
|
34
34
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
35
35
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
@@ -41,13 +41,13 @@ export declare const ListActionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
41
41
|
};
|
|
42
42
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
43
43
|
filter: "filter";
|
|
44
|
+
write: "write";
|
|
44
45
|
read: "read";
|
|
45
46
|
read_bulk: "read_bulk";
|
|
46
47
|
run: "run";
|
|
47
48
|
search: "search";
|
|
48
49
|
search_and_write: "search_and_write";
|
|
49
50
|
search_or_write: "search_or_write";
|
|
50
|
-
write: "write";
|
|
51
51
|
}>>;
|
|
52
52
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
53
53
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
@@ -58,13 +58,13 @@ export declare const ListActionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
58
58
|
};
|
|
59
59
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
60
60
|
filter: "filter";
|
|
61
|
+
write: "write";
|
|
61
62
|
read: "read";
|
|
62
63
|
read_bulk: "read_bulk";
|
|
63
64
|
run: "run";
|
|
64
65
|
search: "search";
|
|
65
66
|
search_and_write: "search_and_write";
|
|
66
67
|
search_or_write: "search_or_write";
|
|
67
|
-
write: "write";
|
|
68
68
|
}>>;
|
|
69
69
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
70
70
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6,18 +6,18 @@ export declare const CONTEXT_CACHE_MAX_SIZE = 500;
|
|
|
6
6
|
export declare const runActionPlugin: (sdk: {
|
|
7
7
|
getAction: (options?: {
|
|
8
8
|
app: string;
|
|
9
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
9
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
10
10
|
action: string;
|
|
11
11
|
} | {
|
|
12
12
|
appKey: string;
|
|
13
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
13
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
14
14
|
actionKey: string;
|
|
15
15
|
} | undefined) => Promise<{
|
|
16
16
|
data: {
|
|
17
17
|
description: string;
|
|
18
18
|
key: string;
|
|
19
19
|
app_key: string;
|
|
20
|
-
action_type: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
20
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
21
21
|
title: string;
|
|
22
22
|
type: "action";
|
|
23
23
|
id?: string | undefined;
|
|
@@ -112,7 +112,7 @@ export declare const runActionPlugin: (sdk: {
|
|
|
112
112
|
}) => {
|
|
113
113
|
runAction: (options?: (({
|
|
114
114
|
app: string;
|
|
115
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
115
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
116
116
|
action: string;
|
|
117
117
|
connection?: string | number | undefined;
|
|
118
118
|
connectionId?: string | number | null | undefined;
|
|
@@ -124,7 +124,7 @@ export declare const runActionPlugin: (sdk: {
|
|
|
124
124
|
cursor?: string | undefined;
|
|
125
125
|
} | {
|
|
126
126
|
appKey: string;
|
|
127
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
127
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
128
128
|
actionKey: string;
|
|
129
129
|
connection?: string | number | undefined;
|
|
130
130
|
connectionId?: string | number | null | undefined;
|
|
@@ -5,13 +5,13 @@ export declare const RunActionSchema: z.ZodObject<{
|
|
|
5
5
|
};
|
|
6
6
|
actionType: z.ZodEnum<{
|
|
7
7
|
filter: "filter";
|
|
8
|
+
write: "write";
|
|
8
9
|
read: "read";
|
|
9
10
|
read_bulk: "read_bulk";
|
|
10
11
|
run: "run";
|
|
11
12
|
search: "search";
|
|
12
13
|
search_and_write: "search_and_write";
|
|
13
14
|
search_or_write: "search_or_write";
|
|
14
|
-
write: "write";
|
|
15
15
|
}>;
|
|
16
16
|
action: z.ZodString & {
|
|
17
17
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
@@ -31,13 +31,13 @@ declare const RunActionSchemaDeprecated: z.ZodObject<{
|
|
|
31
31
|
};
|
|
32
32
|
actionType: z.ZodEnum<{
|
|
33
33
|
filter: "filter";
|
|
34
|
+
write: "write";
|
|
34
35
|
read: "read";
|
|
35
36
|
read_bulk: "read_bulk";
|
|
36
37
|
run: "run";
|
|
37
38
|
search: "search";
|
|
38
39
|
search_and_write: "search_and_write";
|
|
39
40
|
search_or_write: "search_or_write";
|
|
40
|
-
write: "write";
|
|
41
41
|
}>;
|
|
42
42
|
actionKey: z.ZodString;
|
|
43
43
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -55,13 +55,13 @@ export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
55
55
|
};
|
|
56
56
|
actionType: z.ZodEnum<{
|
|
57
57
|
filter: "filter";
|
|
58
|
+
write: "write";
|
|
58
59
|
read: "read";
|
|
59
60
|
read_bulk: "read_bulk";
|
|
60
61
|
run: "run";
|
|
61
62
|
search: "search";
|
|
62
63
|
search_and_write: "search_and_write";
|
|
63
64
|
search_or_write: "search_or_write";
|
|
64
|
-
write: "write";
|
|
65
65
|
}>;
|
|
66
66
|
action: z.ZodString & {
|
|
67
67
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
@@ -80,13 +80,13 @@ export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
80
80
|
};
|
|
81
81
|
actionType: z.ZodEnum<{
|
|
82
82
|
filter: "filter";
|
|
83
|
+
write: "write";
|
|
83
84
|
read: "read";
|
|
84
85
|
read_bulk: "read_bulk";
|
|
85
86
|
run: "run";
|
|
86
87
|
search: "search";
|
|
87
88
|
search_and_write: "search_and_write";
|
|
88
89
|
search_or_write: "search_or_write";
|
|
89
|
-
write: "write";
|
|
90
90
|
}>;
|
|
91
91
|
actionKey: z.ZodString;
|
|
92
92
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const getTriggerInputFieldsSchemaPlugin: (sdk: {
|
|
2
2
|
getActionInputFieldsSchema: (options?: {
|
|
3
3
|
app: string;
|
|
4
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
4
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
5
5
|
action: string;
|
|
6
6
|
connection?: string | number | undefined;
|
|
7
7
|
connectionId?: string | number | null | undefined;
|
|
@@ -9,7 +9,7 @@ export declare const getTriggerInputFieldsSchemaPlugin: (sdk: {
|
|
|
9
9
|
inputs?: Record<string, unknown> | undefined;
|
|
10
10
|
} | {
|
|
11
11
|
appKey: string;
|
|
12
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
12
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
13
13
|
actionKey: string;
|
|
14
14
|
connection?: string | number | undefined;
|
|
15
15
|
connectionId?: string | number | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const listTriggerInputFieldChoicesPlugin: (sdk: {
|
|
2
2
|
listActionInputFieldChoices: (options?: (({
|
|
3
3
|
app: string;
|
|
4
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
4
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
5
5
|
action: string;
|
|
6
6
|
inputField: string;
|
|
7
7
|
connection?: string | number | undefined;
|
|
@@ -14,7 +14,7 @@ export declare const listTriggerInputFieldChoicesPlugin: (sdk: {
|
|
|
14
14
|
cursor?: string | undefined;
|
|
15
15
|
} | {
|
|
16
16
|
appKey: string;
|
|
17
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
17
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
18
18
|
actionKey: string;
|
|
19
19
|
inputFieldKey: string;
|
|
20
20
|
connection?: string | number | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const listTriggerInputFieldsPlugin: (sdk: {
|
|
2
2
|
listActionInputFields: (options?: (({
|
|
3
3
|
app: string;
|
|
4
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
4
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
5
5
|
action: string;
|
|
6
6
|
connection?: string | number | undefined;
|
|
7
7
|
connectionId?: string | number | null | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const listTriggerInputFieldsPlugin: (sdk: {
|
|
|
12
12
|
cursor?: string | undefined;
|
|
13
13
|
} | {
|
|
14
14
|
appKey: string;
|
|
15
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
15
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
16
16
|
actionKey: string;
|
|
17
17
|
connection?: string | number | undefined;
|
|
18
18
|
connectionId?: string | number | null | undefined;
|
package/dist/schemas/Action.d.ts
CHANGED
|
@@ -9,13 +9,13 @@ export declare const ActionItemSchema: z.ZodObject<{
|
|
|
9
9
|
app_version: z.ZodOptional<z.ZodString>;
|
|
10
10
|
action_type: z.ZodEnum<{
|
|
11
11
|
filter: "filter";
|
|
12
|
+
write: "write";
|
|
12
13
|
read: "read";
|
|
13
14
|
read_bulk: "read_bulk";
|
|
14
15
|
run: "run";
|
|
15
16
|
search: "search";
|
|
16
17
|
search_and_write: "search_and_write";
|
|
17
18
|
search_or_write: "search_or_write";
|
|
18
|
-
write: "write";
|
|
19
19
|
}>;
|
|
20
20
|
title: z.ZodString;
|
|
21
21
|
type: z.ZodLiteral<"action">;
|