@stackone/core 1.52.4 → 1.52.6
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/index.d.mts +410 -0
- package/dist/index.d.ts +410 -0
- package/dist/index.js +4298 -1
- package/dist/index.mjs +4260 -0
- package/package.json +24 -6
- package/dist/index.es.mjs +0 -1
- package/dist/types/accounts/types.d.ts +0 -10
- package/dist/types/blocks/types.d.ts +0 -70
- package/dist/types/categories/index.d.ts +0 -3
- package/dist/types/categories/types.d.ts +0 -6
- package/dist/types/compositeIds/constants.d.ts +0 -8
- package/dist/types/compositeIds/errors.d.ts +0 -18
- package/dist/types/compositeIds/index.d.ts +0 -4
- package/dist/types/compositeIds/typeguards.d.ts +0 -3
- package/dist/types/compositeIds/types.d.ts +0 -28
- package/dist/types/connector/types.d.ts +0 -113
- package/dist/types/cursor/index.d.ts +0 -15
- package/dist/types/cursor/schemas.d.ts +0 -67
- package/dist/types/cursor/types.d.ts +0 -21
- package/dist/types/errors/coreError.d.ts +0 -14
- package/dist/types/errors/typeguards.d.ts +0 -2
- package/dist/types/index.d.ts +0 -18
- package/dist/types/schema/types.d.ts +0 -17
- package/dist/types/stepFunctions/factory.d.ts +0 -10
- package/dist/types/stepFunctions/groupData/groupDataStepFunction.d.ts +0 -2
- package/dist/types/stepFunctions/groupData/schemas.d.ts +0 -18
- package/dist/types/stepFunctions/mapFields/getEnumMatcher.d.ts +0 -1
- package/dist/types/stepFunctions/mapFields/mapFieldsStepFunction.d.ts +0 -2
- package/dist/types/stepFunctions/mapFields/mapFieldsStepFunction.v2.d.ts +0 -2
- package/dist/types/stepFunctions/mapFields/schemas.d.ts +0 -99
- package/dist/types/stepFunctions/paginatedRequest/paginatedRequestStepFunction.d.ts +0 -2
- package/dist/types/stepFunctions/paginatedRequest/schemas.d.ts +0 -176
- package/dist/types/stepFunctions/request/requestStepFunction.d.ts +0 -2
- package/dist/types/stepFunctions/request/schemas.d.ts +0 -134
- package/dist/types/stepFunctions/stepFunctionsList.d.ts +0 -460
- package/dist/types/stepFunctions/typecast/schemas.d.ts +0 -48
- package/dist/types/stepFunctions/typecast/typecast.d.ts +0 -6
- package/dist/types/stepFunctions/typecast/typecastStepFunction.d.ts +0 -2
- package/dist/types/stepFunctions/typecast/typecastStepFunction.v2.d.ts +0 -2
- package/dist/types/stepFunctions/typecast/types.d.ts +0 -6
- package/dist/types/stepFunctions/types.d.ts +0 -29
- package/dist/types/steps/types.d.ts +0 -29
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
export declare enum StepFunctionName {
|
|
2
|
-
TYPECAST = "typecast",
|
|
3
|
-
MAP_FIELDS = "map_fields",
|
|
4
|
-
GROUP_DATA = "group_data",
|
|
5
|
-
REQUEST = "request",
|
|
6
|
-
PAGINATED_REQUEST = "paginated_request"
|
|
7
|
-
}
|
|
8
|
-
export declare const stepFunctions: {
|
|
9
|
-
typecast: {
|
|
10
|
-
v1: {
|
|
11
|
-
fn: import("./types").StepFunction;
|
|
12
|
-
};
|
|
13
|
-
v2: {
|
|
14
|
-
fn: import("./types").StepFunction;
|
|
15
|
-
inputSchema: import("zod").ZodObject<{
|
|
16
|
-
fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
17
|
-
targetFieldKey: import("zod").ZodString;
|
|
18
|
-
alias: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
|
-
type: import("zod").ZodString;
|
|
20
|
-
custom: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
21
|
-
hidden: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
22
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
23
|
-
targetFieldKey: string;
|
|
24
|
-
type: string;
|
|
25
|
-
custom: boolean;
|
|
26
|
-
hidden: boolean;
|
|
27
|
-
alias?: string | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
targetFieldKey: string;
|
|
30
|
-
type: string;
|
|
31
|
-
alias?: string | undefined;
|
|
32
|
-
custom?: boolean | undefined;
|
|
33
|
-
hidden?: boolean | undefined;
|
|
34
|
-
}>, "many">>;
|
|
35
|
-
dataSource: import("zod").ZodString;
|
|
36
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
37
|
-
dataSource: string;
|
|
38
|
-
fields?: {
|
|
39
|
-
targetFieldKey: string;
|
|
40
|
-
type: string;
|
|
41
|
-
custom: boolean;
|
|
42
|
-
hidden: boolean;
|
|
43
|
-
alias?: string | undefined;
|
|
44
|
-
}[] | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
dataSource: string;
|
|
47
|
-
fields?: {
|
|
48
|
-
targetFieldKey: string;
|
|
49
|
-
type: string;
|
|
50
|
-
alias?: string | undefined;
|
|
51
|
-
custom?: boolean | undefined;
|
|
52
|
-
hidden?: boolean | undefined;
|
|
53
|
-
}[] | undefined;
|
|
54
|
-
}>;
|
|
55
|
-
outputSchema: import("zod").ZodObject<{
|
|
56
|
-
data: import("zod").ZodUnknown;
|
|
57
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
58
|
-
data?: unknown;
|
|
59
|
-
}, {
|
|
60
|
-
data?: unknown;
|
|
61
|
-
}>;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
map_fields: {
|
|
65
|
-
v1: {
|
|
66
|
-
fn: import("./types").StepFunction;
|
|
67
|
-
};
|
|
68
|
-
v2: {
|
|
69
|
-
fn: import("./types").StepFunction;
|
|
70
|
-
inputSchema: import("zod").ZodObject<{
|
|
71
|
-
fields: import("zod").ZodArray<import("zod").ZodObject<{
|
|
72
|
-
targetFieldKey: import("zod").ZodString;
|
|
73
|
-
alias: import("zod").ZodOptional<import("zod").ZodString>;
|
|
74
|
-
expression: import("zod").ZodString;
|
|
75
|
-
type: import("zod").ZodEnum<["string", "number", "boolean", "datetime_string", "enum"]>;
|
|
76
|
-
custom: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
77
|
-
hidden: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
78
|
-
enumMapper: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
79
|
-
matcher: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodObject<{
|
|
80
|
-
matchExpression: import("zod").ZodString;
|
|
81
|
-
value: import("zod").ZodString;
|
|
82
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
83
|
-
value: string;
|
|
84
|
-
matchExpression: string;
|
|
85
|
-
}, {
|
|
86
|
-
value: string;
|
|
87
|
-
matchExpression: string;
|
|
88
|
-
}>, "many">]>;
|
|
89
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
90
|
-
matcher: string | {
|
|
91
|
-
value: string;
|
|
92
|
-
matchExpression: string;
|
|
93
|
-
}[];
|
|
94
|
-
}, {
|
|
95
|
-
matcher: string | {
|
|
96
|
-
value: string;
|
|
97
|
-
matchExpression: string;
|
|
98
|
-
}[];
|
|
99
|
-
}>>;
|
|
100
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
101
|
-
targetFieldKey: string;
|
|
102
|
-
type: "string" | "number" | "boolean" | "datetime_string" | "enum";
|
|
103
|
-
custom: boolean;
|
|
104
|
-
hidden: boolean;
|
|
105
|
-
expression: string;
|
|
106
|
-
alias?: string | undefined;
|
|
107
|
-
enumMapper?: {
|
|
108
|
-
matcher: string | {
|
|
109
|
-
value: string;
|
|
110
|
-
matchExpression: string;
|
|
111
|
-
}[];
|
|
112
|
-
} | undefined;
|
|
113
|
-
}, {
|
|
114
|
-
targetFieldKey: string;
|
|
115
|
-
type: "string" | "number" | "boolean" | "datetime_string" | "enum";
|
|
116
|
-
expression: string;
|
|
117
|
-
alias?: string | undefined;
|
|
118
|
-
custom?: boolean | undefined;
|
|
119
|
-
hidden?: boolean | undefined;
|
|
120
|
-
enumMapper?: {
|
|
121
|
-
matcher: string | {
|
|
122
|
-
value: string;
|
|
123
|
-
matchExpression: string;
|
|
124
|
-
}[];
|
|
125
|
-
} | undefined;
|
|
126
|
-
}>, "many">;
|
|
127
|
-
dataSource: import("zod").ZodString;
|
|
128
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
129
|
-
fields: {
|
|
130
|
-
targetFieldKey: string;
|
|
131
|
-
type: "string" | "number" | "boolean" | "datetime_string" | "enum";
|
|
132
|
-
custom: boolean;
|
|
133
|
-
hidden: boolean;
|
|
134
|
-
expression: string;
|
|
135
|
-
alias?: string | undefined;
|
|
136
|
-
enumMapper?: {
|
|
137
|
-
matcher: string | {
|
|
138
|
-
value: string;
|
|
139
|
-
matchExpression: string;
|
|
140
|
-
}[];
|
|
141
|
-
} | undefined;
|
|
142
|
-
}[];
|
|
143
|
-
dataSource: string;
|
|
144
|
-
}, {
|
|
145
|
-
fields: {
|
|
146
|
-
targetFieldKey: string;
|
|
147
|
-
type: "string" | "number" | "boolean" | "datetime_string" | "enum";
|
|
148
|
-
expression: string;
|
|
149
|
-
alias?: string | undefined;
|
|
150
|
-
custom?: boolean | undefined;
|
|
151
|
-
hidden?: boolean | undefined;
|
|
152
|
-
enumMapper?: {
|
|
153
|
-
matcher: string | {
|
|
154
|
-
value: string;
|
|
155
|
-
matchExpression: string;
|
|
156
|
-
}[];
|
|
157
|
-
} | undefined;
|
|
158
|
-
}[];
|
|
159
|
-
dataSource: string;
|
|
160
|
-
}>;
|
|
161
|
-
outputSchema: import("zod").ZodObject<{
|
|
162
|
-
data: import("zod").ZodUnknown;
|
|
163
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
164
|
-
data?: unknown;
|
|
165
|
-
}, {
|
|
166
|
-
data?: unknown;
|
|
167
|
-
}>;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
request: {
|
|
171
|
-
v1: {
|
|
172
|
-
fn: import("./types").StepFunction;
|
|
173
|
-
inputSchema: import("zod").ZodObject<{
|
|
174
|
-
baseUrl: import("zod").ZodString;
|
|
175
|
-
url: import("zod").ZodString;
|
|
176
|
-
method: import("zod").ZodEnum<["get", "post", "put", "delete", "patch"]>;
|
|
177
|
-
response: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
178
|
-
collection: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
179
|
-
indexField: import("zod").ZodOptional<import("zod").ZodString>;
|
|
180
|
-
dataKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
181
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
182
|
-
collection?: boolean | undefined;
|
|
183
|
-
indexField?: string | undefined;
|
|
184
|
-
dataKey?: string | undefined;
|
|
185
|
-
}, {
|
|
186
|
-
collection?: boolean | undefined;
|
|
187
|
-
indexField?: string | undefined;
|
|
188
|
-
dataKey?: string | undefined;
|
|
189
|
-
}>>;
|
|
190
|
-
customErrors: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
191
|
-
receivedStatus: import("zod").ZodNumber;
|
|
192
|
-
targetStatus: import("zod").ZodNumber;
|
|
193
|
-
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
194
|
-
condition: import("zod").ZodOptional<import("zod").ZodString>;
|
|
195
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
196
|
-
receivedStatus: number;
|
|
197
|
-
targetStatus: number;
|
|
198
|
-
message?: string | undefined;
|
|
199
|
-
condition?: string | undefined;
|
|
200
|
-
}, {
|
|
201
|
-
receivedStatus: number;
|
|
202
|
-
targetStatus: number;
|
|
203
|
-
message?: string | undefined;
|
|
204
|
-
condition?: string | undefined;
|
|
205
|
-
}>, "many">>;
|
|
206
|
-
args: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
207
|
-
name: import("zod").ZodString;
|
|
208
|
-
value: import("zod").ZodUnknown;
|
|
209
|
-
in: import("zod").ZodEnum<["query", "body", "headers"]>;
|
|
210
|
-
condition: import("zod").ZodOptional<import("zod").ZodString>;
|
|
211
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
212
|
-
name: string;
|
|
213
|
-
in: "query" | "body" | "headers";
|
|
214
|
-
value?: unknown;
|
|
215
|
-
condition?: string | undefined;
|
|
216
|
-
}, {
|
|
217
|
-
name: string;
|
|
218
|
-
in: "query" | "body" | "headers";
|
|
219
|
-
value?: unknown;
|
|
220
|
-
condition?: string | undefined;
|
|
221
|
-
}>, "many">>;
|
|
222
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
223
|
-
baseUrl: string;
|
|
224
|
-
url: string;
|
|
225
|
-
method: "get" | "post" | "put" | "delete" | "patch";
|
|
226
|
-
response?: {
|
|
227
|
-
collection?: boolean | undefined;
|
|
228
|
-
indexField?: string | undefined;
|
|
229
|
-
dataKey?: string | undefined;
|
|
230
|
-
} | undefined;
|
|
231
|
-
customErrors?: {
|
|
232
|
-
receivedStatus: number;
|
|
233
|
-
targetStatus: number;
|
|
234
|
-
message?: string | undefined;
|
|
235
|
-
condition?: string | undefined;
|
|
236
|
-
}[] | undefined;
|
|
237
|
-
args?: {
|
|
238
|
-
name: string;
|
|
239
|
-
in: "query" | "body" | "headers";
|
|
240
|
-
value?: unknown;
|
|
241
|
-
condition?: string | undefined;
|
|
242
|
-
}[] | undefined;
|
|
243
|
-
}, {
|
|
244
|
-
baseUrl: string;
|
|
245
|
-
url: string;
|
|
246
|
-
method: "get" | "post" | "put" | "delete" | "patch";
|
|
247
|
-
response?: {
|
|
248
|
-
collection?: boolean | undefined;
|
|
249
|
-
indexField?: string | undefined;
|
|
250
|
-
dataKey?: string | undefined;
|
|
251
|
-
} | undefined;
|
|
252
|
-
customErrors?: {
|
|
253
|
-
receivedStatus: number;
|
|
254
|
-
targetStatus: number;
|
|
255
|
-
message?: string | undefined;
|
|
256
|
-
condition?: string | undefined;
|
|
257
|
-
}[] | undefined;
|
|
258
|
-
args?: {
|
|
259
|
-
name: string;
|
|
260
|
-
in: "query" | "body" | "headers";
|
|
261
|
-
value?: unknown;
|
|
262
|
-
condition?: string | undefined;
|
|
263
|
-
}[] | undefined;
|
|
264
|
-
}>;
|
|
265
|
-
outputSchema: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
266
|
-
data: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
267
|
-
raw: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
268
|
-
statusCode: import("zod").ZodNumber;
|
|
269
|
-
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
270
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
271
|
-
statusCode: number;
|
|
272
|
-
message?: string | undefined;
|
|
273
|
-
data?: unknown;
|
|
274
|
-
raw?: unknown;
|
|
275
|
-
}, {
|
|
276
|
-
statusCode: number;
|
|
277
|
-
message?: string | undefined;
|
|
278
|
-
data?: unknown;
|
|
279
|
-
raw?: unknown;
|
|
280
|
-
}>>;
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
group_data: {
|
|
284
|
-
v1: {
|
|
285
|
-
fn: import("./types").StepFunction;
|
|
286
|
-
inputSchema: import("zod").ZodObject<{
|
|
287
|
-
stepsDataToGroup: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
288
|
-
isSingleRecord: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
289
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
290
|
-
stepsDataToGroup: string[];
|
|
291
|
-
isSingleRecord?: boolean | undefined;
|
|
292
|
-
}, {
|
|
293
|
-
stepsDataToGroup: string[];
|
|
294
|
-
isSingleRecord?: boolean | undefined;
|
|
295
|
-
}>;
|
|
296
|
-
outputSchema: import("zod").ZodObject<{
|
|
297
|
-
data: import("zod").ZodUnknown;
|
|
298
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
299
|
-
data?: unknown;
|
|
300
|
-
}, {
|
|
301
|
-
data?: unknown;
|
|
302
|
-
}>;
|
|
303
|
-
};
|
|
304
|
-
};
|
|
305
|
-
paginated_request: {
|
|
306
|
-
v1: {
|
|
307
|
-
fn: import("./types").StepFunction;
|
|
308
|
-
inputSchema: import("zod").ZodObject<{
|
|
309
|
-
baseUrl: import("zod").ZodString;
|
|
310
|
-
url: import("zod").ZodString;
|
|
311
|
-
method: import("zod").ZodEnum<["get", "post", "put", "delete", "patch"]>;
|
|
312
|
-
response: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
313
|
-
indexField: import("zod").ZodOptional<import("zod").ZodString>;
|
|
314
|
-
dataKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
315
|
-
nextKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
316
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
317
|
-
indexField?: string | undefined;
|
|
318
|
-
dataKey?: string | undefined;
|
|
319
|
-
nextKey?: string | undefined;
|
|
320
|
-
}, {
|
|
321
|
-
indexField?: string | undefined;
|
|
322
|
-
dataKey?: string | undefined;
|
|
323
|
-
nextKey?: string | undefined;
|
|
324
|
-
}>>;
|
|
325
|
-
iterator: import("zod").ZodObject<{
|
|
326
|
-
key: import("zod").ZodString;
|
|
327
|
-
in: import("zod").ZodEnum<["query", "body", "headers"]>;
|
|
328
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
329
|
-
in: "query" | "body" | "headers";
|
|
330
|
-
key: string;
|
|
331
|
-
}, {
|
|
332
|
-
in: "query" | "body" | "headers";
|
|
333
|
-
key: string;
|
|
334
|
-
}>;
|
|
335
|
-
cursor: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
336
|
-
token: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
337
|
-
position: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
338
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
339
|
-
token?: string | null | undefined;
|
|
340
|
-
position?: number | null | undefined;
|
|
341
|
-
}, {
|
|
342
|
-
token?: string | null | undefined;
|
|
343
|
-
position?: number | null | undefined;
|
|
344
|
-
}>>;
|
|
345
|
-
customErrors: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
346
|
-
receivedStatus: import("zod").ZodNumber;
|
|
347
|
-
targetStatus: import("zod").ZodNumber;
|
|
348
|
-
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
349
|
-
condition: import("zod").ZodOptional<import("zod").ZodString>;
|
|
350
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
351
|
-
receivedStatus: number;
|
|
352
|
-
targetStatus: number;
|
|
353
|
-
message?: string | undefined;
|
|
354
|
-
condition?: string | undefined;
|
|
355
|
-
}, {
|
|
356
|
-
receivedStatus: number;
|
|
357
|
-
targetStatus: number;
|
|
358
|
-
message?: string | undefined;
|
|
359
|
-
condition?: string | undefined;
|
|
360
|
-
}>, "many">>;
|
|
361
|
-
args: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
362
|
-
name: import("zod").ZodString;
|
|
363
|
-
value: import("zod").ZodUnknown;
|
|
364
|
-
in: import("zod").ZodEnum<["query", "body", "headers"]>;
|
|
365
|
-
condition: import("zod").ZodOptional<import("zod").ZodString>;
|
|
366
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
367
|
-
name: string;
|
|
368
|
-
in: "query" | "body" | "headers";
|
|
369
|
-
value?: unknown;
|
|
370
|
-
condition?: string | undefined;
|
|
371
|
-
}, {
|
|
372
|
-
name: string;
|
|
373
|
-
in: "query" | "body" | "headers";
|
|
374
|
-
value?: unknown;
|
|
375
|
-
condition?: string | undefined;
|
|
376
|
-
}>, "many">>;
|
|
377
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
378
|
-
baseUrl: string;
|
|
379
|
-
url: string;
|
|
380
|
-
method: "get" | "post" | "put" | "delete" | "patch";
|
|
381
|
-
iterator: {
|
|
382
|
-
in: "query" | "body" | "headers";
|
|
383
|
-
key: string;
|
|
384
|
-
};
|
|
385
|
-
response?: {
|
|
386
|
-
indexField?: string | undefined;
|
|
387
|
-
dataKey?: string | undefined;
|
|
388
|
-
nextKey?: string | undefined;
|
|
389
|
-
} | undefined;
|
|
390
|
-
customErrors?: {
|
|
391
|
-
receivedStatus: number;
|
|
392
|
-
targetStatus: number;
|
|
393
|
-
message?: string | undefined;
|
|
394
|
-
condition?: string | undefined;
|
|
395
|
-
}[] | undefined;
|
|
396
|
-
args?: {
|
|
397
|
-
name: string;
|
|
398
|
-
in: "query" | "body" | "headers";
|
|
399
|
-
value?: unknown;
|
|
400
|
-
condition?: string | undefined;
|
|
401
|
-
}[] | undefined;
|
|
402
|
-
cursor?: {
|
|
403
|
-
token?: string | null | undefined;
|
|
404
|
-
position?: number | null | undefined;
|
|
405
|
-
} | undefined;
|
|
406
|
-
}, {
|
|
407
|
-
baseUrl: string;
|
|
408
|
-
url: string;
|
|
409
|
-
method: "get" | "post" | "put" | "delete" | "patch";
|
|
410
|
-
iterator: {
|
|
411
|
-
in: "query" | "body" | "headers";
|
|
412
|
-
key: string;
|
|
413
|
-
};
|
|
414
|
-
response?: {
|
|
415
|
-
indexField?: string | undefined;
|
|
416
|
-
dataKey?: string | undefined;
|
|
417
|
-
nextKey?: string | undefined;
|
|
418
|
-
} | undefined;
|
|
419
|
-
customErrors?: {
|
|
420
|
-
receivedStatus: number;
|
|
421
|
-
targetStatus: number;
|
|
422
|
-
message?: string | undefined;
|
|
423
|
-
condition?: string | undefined;
|
|
424
|
-
}[] | undefined;
|
|
425
|
-
args?: {
|
|
426
|
-
name: string;
|
|
427
|
-
in: "query" | "body" | "headers";
|
|
428
|
-
value?: unknown;
|
|
429
|
-
condition?: string | undefined;
|
|
430
|
-
}[] | undefined;
|
|
431
|
-
cursor?: {
|
|
432
|
-
token?: string | null | undefined;
|
|
433
|
-
position?: number | null | undefined;
|
|
434
|
-
} | undefined;
|
|
435
|
-
}>;
|
|
436
|
-
outputSchema: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
437
|
-
data: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
438
|
-
raw: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
439
|
-
statusCode: import("zod").ZodNumber;
|
|
440
|
-
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
441
|
-
next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
442
|
-
position: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
443
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
444
|
-
statusCode: number;
|
|
445
|
-
message?: string | undefined;
|
|
446
|
-
data?: unknown;
|
|
447
|
-
raw?: unknown;
|
|
448
|
-
position?: number | undefined;
|
|
449
|
-
next?: string | null | undefined;
|
|
450
|
-
}, {
|
|
451
|
-
statusCode: number;
|
|
452
|
-
message?: string | undefined;
|
|
453
|
-
data?: unknown;
|
|
454
|
-
raw?: unknown;
|
|
455
|
-
position?: number | undefined;
|
|
456
|
-
next?: string | null | undefined;
|
|
457
|
-
}>>;
|
|
458
|
-
};
|
|
459
|
-
};
|
|
460
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const TYPECAST_INPUT_PARAMS: z.ZodObject<{
|
|
3
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4
|
-
targetFieldKey: z.ZodString;
|
|
5
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
6
|
-
type: z.ZodString;
|
|
7
|
-
custom: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
-
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
targetFieldKey: string;
|
|
11
|
-
type: string;
|
|
12
|
-
custom: boolean;
|
|
13
|
-
hidden: boolean;
|
|
14
|
-
alias?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
targetFieldKey: string;
|
|
17
|
-
type: string;
|
|
18
|
-
alias?: string | undefined;
|
|
19
|
-
custom?: boolean | undefined;
|
|
20
|
-
hidden?: boolean | undefined;
|
|
21
|
-
}>, "many">>;
|
|
22
|
-
dataSource: z.ZodString;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
dataSource: string;
|
|
25
|
-
fields?: {
|
|
26
|
-
targetFieldKey: string;
|
|
27
|
-
type: string;
|
|
28
|
-
custom: boolean;
|
|
29
|
-
hidden: boolean;
|
|
30
|
-
alias?: string | undefined;
|
|
31
|
-
}[] | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
dataSource: string;
|
|
34
|
-
fields?: {
|
|
35
|
-
targetFieldKey: string;
|
|
36
|
-
type: string;
|
|
37
|
-
alias?: string | undefined;
|
|
38
|
-
custom?: boolean | undefined;
|
|
39
|
-
hidden?: boolean | undefined;
|
|
40
|
-
}[] | undefined;
|
|
41
|
-
}>;
|
|
42
|
-
export declare const TYPECAST_OUTPUT: z.ZodObject<{
|
|
43
|
-
data: z.ZodUnknown;
|
|
44
|
-
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
data?: unknown;
|
|
46
|
-
}, {
|
|
47
|
-
data?: unknown;
|
|
48
|
-
}>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ZodTypeAny } from 'zod';
|
|
2
|
-
import type { Block } from '../blocks/types';
|
|
3
|
-
import { StepError } from '../steps/types';
|
|
4
|
-
import { StepFunctionName } from './stepFunctionsList';
|
|
5
|
-
export type StepFunction = ({ block, params, }: {
|
|
6
|
-
block: Readonly<Block>;
|
|
7
|
-
params?: StepFunctionParams;
|
|
8
|
-
}) => Promise<StepFunctionOutput>;
|
|
9
|
-
export type StepFunctionParams = {
|
|
10
|
-
[key: string]: unknown;
|
|
11
|
-
};
|
|
12
|
-
export type StepFunctionMeta = {
|
|
13
|
-
functionName: StepFunctionName;
|
|
14
|
-
params?: StepFunctionParams;
|
|
15
|
-
version?: string;
|
|
16
|
-
};
|
|
17
|
-
export type StepFunctionInstance = {
|
|
18
|
-
fn: StepFunction;
|
|
19
|
-
inputSchema?: ZodTypeAny;
|
|
20
|
-
outputSchema?: ZodTypeAny;
|
|
21
|
-
};
|
|
22
|
-
export type StepFunctionOutput = {
|
|
23
|
-
block: Block;
|
|
24
|
-
successful: boolean;
|
|
25
|
-
errors?: StepError[];
|
|
26
|
-
output?: {
|
|
27
|
-
[name: string]: unknown;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { StepFunctionMeta } from '../stepFunctions/types';
|
|
2
|
-
export type StepSnapshot = {
|
|
3
|
-
output?: {
|
|
4
|
-
[name: string]: unknown;
|
|
5
|
-
};
|
|
6
|
-
successful: boolean;
|
|
7
|
-
skipped?: boolean;
|
|
8
|
-
message?: string;
|
|
9
|
-
errors?: StepError[];
|
|
10
|
-
};
|
|
11
|
-
export type StepsSnapshots = {
|
|
12
|
-
[stepId: string]: StepSnapshot;
|
|
13
|
-
};
|
|
14
|
-
export type StepError = {
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
};
|
|
17
|
-
export type StepOutput = {
|
|
18
|
-
name: string;
|
|
19
|
-
value: string;
|
|
20
|
-
};
|
|
21
|
-
export type Step = {
|
|
22
|
-
id: string;
|
|
23
|
-
description: string;
|
|
24
|
-
stepFunction: StepFunctionMeta;
|
|
25
|
-
ignoreError?: boolean;
|
|
26
|
-
async?: boolean;
|
|
27
|
-
successCriteria?: string;
|
|
28
|
-
condition?: string;
|
|
29
|
-
};
|