cliodot 0.1.2 → 1.1.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/README.md +1057 -0
- package/dist/ConnectorBuilder.js +1 -1
- package/dist/Flosync.d.ts +8 -0
- package/dist/Flosync.d.ts.map +1 -1
- package/dist/Flosync.js +1 -1
- package/dist/FlosyncClient.d.ts +11 -0
- package/dist/FlosyncClient.d.ts.map +1 -1
- package/dist/FlosyncClient.js +1 -1
- package/dist/FunctionBuilder.js +1 -1
- package/dist/ValidatorBuilder.js +1 -1
- package/dist/WorkflowBuilder.d.ts +6 -3
- package/dist/WorkflowBuilder.d.ts.map +1 -1
- package/dist/WorkflowBuilder.js +1 -1
- package/dist/__tests__/function.test.js +1 -1
- package/dist/__tests__/runner.test.js +1 -1
- package/dist/connectors/builtin.d.ts +30 -0
- package/dist/connectors/builtin.d.ts.map +1 -1
- package/dist/connectors/builtin.js +1 -1
- package/dist/connectors/registry.d.ts +393 -18
- package/dist/connectors/registry.d.ts.map +1 -1
- package/dist/connectors/registry.js +1 -1
- package/dist/decorators/build.d.ts +4 -0
- package/dist/decorators/build.d.ts.map +1 -0
- package/dist/decorators/build.js +1 -0
- package/dist/decorators/connector.d.ts +14 -0
- package/dist/decorators/connector.d.ts.map +1 -0
- package/dist/decorators/connector.js +1 -0
- package/dist/decorators/index.d.ts +6 -0
- package/dist/decorators/index.d.ts.map +1 -0
- package/dist/decorators/index.js +1 -0
- package/dist/decorators/metadata.d.ts +106 -0
- package/dist/decorators/metadata.d.ts.map +1 -0
- package/dist/decorators/metadata.js +1 -0
- package/dist/decorators/steps.d.ts +56 -0
- package/dist/decorators/steps.d.ts.map +1 -0
- package/dist/decorators/steps.js +1 -0
- package/dist/decorators/workflow.d.ts +7 -0
- package/dist/decorators/workflow.d.ts.map +1 -0
- package/dist/decorators/workflow.js +1 -0
- package/dist/errors.js +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/runner/ProcessorEngine.d.ts.map +1 -1
- package/dist/runner/ProcessorEngine.js +1 -1
- package/dist/runner/connector.executor.d.ts.map +1 -1
- package/dist/runner/connector.executor.js +1 -1
- package/dist/runner/utilities/math.executor.js +1 -1
- package/dist/runner/utilities/random.executor.js +1 -1
- package/dist/runner/utilities/string.executor.js +1 -1
- package/dist/template.js +1 -1
- package/dist/transformers/StepsToNodesTransformer.js +1 -1
- package/dist/transformers/WorkflowTransformer.js +1 -1
- package/dist/types/builtin.d.ts +92 -3
- package/dist/types/builtin.d.ts.map +1 -1
- package/dist/types/builtin.js +1 -1
- package/dist/types/client.api.js +1 -1
- package/dist/types/connector.js +1 -1
- package/dist/types/context.d.ts +75 -0
- package/dist/types/context.d.ts.map +1 -0
- package/dist/types/context.js +1 -0
- package/dist/types/function.js +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/validator.js +1 -1
- package/dist/types/workflow.d.ts +117 -6
- package/dist/types/workflow.d.ts.map +1 -1
- package/dist/types/workflow.js +1 -1
- package/dist/validators/validators.d.ts.map +1 -1
- package/dist/validators/validators.js +1 -1
- package/dist/variable.js +1 -1
- package/package.json +7 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ConnectorStepConfig } from "../decorators/metadata";
|
|
1
2
|
export declare const ConnectorId: {
|
|
2
3
|
readonly Database: {
|
|
3
4
|
readonly MongoDB: "mongodb.system";
|
|
@@ -8,6 +9,8 @@ export declare const ConnectorId: {
|
|
|
8
9
|
readonly Auth: {
|
|
9
10
|
readonly Bearer: "bearer.system";
|
|
10
11
|
readonly ApiKey: "api_key.system";
|
|
12
|
+
readonly Basic: "basic.system";
|
|
13
|
+
readonly CustomHeader: "custom_header.system";
|
|
11
14
|
};
|
|
12
15
|
readonly Utility: {
|
|
13
16
|
readonly DateTime: "utility.date_time";
|
|
@@ -34,24 +37,283 @@ export declare const ConnectorId: {
|
|
|
34
37
|
readonly Cliodot: "cliodot";
|
|
35
38
|
};
|
|
36
39
|
export declare const ConnectorActions: {
|
|
37
|
-
readonly "mongodb.system":
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
readonly "
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
readonly "
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
readonly "
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
40
|
+
readonly "mongodb.system": {
|
|
41
|
+
readonly insertOne: "insertOne";
|
|
42
|
+
readonly insertMany: "insertMany";
|
|
43
|
+
readonly findOne: "findOne";
|
|
44
|
+
readonly find: "find";
|
|
45
|
+
readonly updateOne: "updateOne";
|
|
46
|
+
readonly deleteOne: "deleteOne";
|
|
47
|
+
};
|
|
48
|
+
readonly "mysql.system": {
|
|
49
|
+
readonly query: "query";
|
|
50
|
+
};
|
|
51
|
+
readonly "postgres.system": {
|
|
52
|
+
readonly query: "query";
|
|
53
|
+
};
|
|
54
|
+
readonly "redis.system": {
|
|
55
|
+
readonly get: "redis.get";
|
|
56
|
+
readonly set: "redis.set";
|
|
57
|
+
readonly delete: "redis.delete";
|
|
58
|
+
readonly hset: "redis.hset";
|
|
59
|
+
readonly hget: "redis.hget";
|
|
60
|
+
readonly lpush: "redis.lpush";
|
|
61
|
+
readonly lpop: "redis.lpop";
|
|
62
|
+
readonly zadd: "redis.zadd";
|
|
63
|
+
readonly create_hash: "redis.create_hash";
|
|
64
|
+
readonly delete_key: "redis.delete_key";
|
|
65
|
+
};
|
|
66
|
+
readonly "bearer.system": {
|
|
67
|
+
readonly bearer_create: "bearer.create";
|
|
68
|
+
readonly bearer_validate: "bearer.validate";
|
|
69
|
+
readonly create: "create";
|
|
70
|
+
readonly validate: "validate";
|
|
71
|
+
};
|
|
72
|
+
readonly "api_key.system": {
|
|
73
|
+
readonly api_key_create: "api_key.create";
|
|
74
|
+
readonly api_key_validate: "api_key.validate";
|
|
75
|
+
readonly create: "create";
|
|
76
|
+
readonly validate: "validate";
|
|
77
|
+
};
|
|
78
|
+
readonly "basic.system": {
|
|
79
|
+
readonly basic_create: "basic.create";
|
|
80
|
+
readonly basic_validate: "basic.validate";
|
|
81
|
+
readonly create: "create";
|
|
82
|
+
readonly validate: "validate";
|
|
83
|
+
};
|
|
84
|
+
readonly "custom_header.system": {
|
|
85
|
+
readonly custom_header_create: "custom_header.create";
|
|
86
|
+
readonly custom_header_validate: "custom_header.validate";
|
|
87
|
+
readonly create: "create";
|
|
88
|
+
readonly validate: "validate";
|
|
89
|
+
};
|
|
90
|
+
readonly "utility.date_time": {
|
|
91
|
+
readonly get_current_date: "get_current_date";
|
|
92
|
+
readonly get_current_time: "get_current_time";
|
|
93
|
+
readonly get_current_datetime: "get_current_datetime";
|
|
94
|
+
readonly format: "format";
|
|
95
|
+
readonly format_date: "format_date";
|
|
96
|
+
readonly parse_date: "parse_date";
|
|
97
|
+
readonly add_time: "add_time";
|
|
98
|
+
readonly subtract_time: "subtract_time";
|
|
99
|
+
readonly diff_between_dates: "diff_between_dates";
|
|
100
|
+
readonly start_of_day: "start_of_day";
|
|
101
|
+
readonly end_of_day: "end_of_day";
|
|
102
|
+
readonly start_of_week: "start_of_week";
|
|
103
|
+
readonly end_of_week: "end_of_week";
|
|
104
|
+
readonly start_of_month: "start_of_month";
|
|
105
|
+
readonly end_of_month: "end_of_month";
|
|
106
|
+
readonly start_of_year: "start_of_year";
|
|
107
|
+
readonly end_of_year: "end_of_year";
|
|
108
|
+
readonly convert_timezone: "convert_timezone";
|
|
109
|
+
readonly get_timezone: "get_timezone";
|
|
110
|
+
readonly list_timezones: "list_timezones";
|
|
111
|
+
readonly is_leap_year: "is_leap_year";
|
|
112
|
+
readonly get_unix_timestamp: "get_unix_timestamp";
|
|
113
|
+
readonly from_unix_timestamp: "from_unix_timestamp";
|
|
114
|
+
};
|
|
115
|
+
readonly "utility.string": {
|
|
116
|
+
readonly concat: "concat";
|
|
117
|
+
readonly split: "split";
|
|
118
|
+
readonly join: "join";
|
|
119
|
+
readonly replace: "replace";
|
|
120
|
+
readonly replace_all: "replace_all";
|
|
121
|
+
readonly trim: "trim";
|
|
122
|
+
readonly trim_start: "trim_start";
|
|
123
|
+
readonly trim_end: "trim_end";
|
|
124
|
+
readonly to_uppercase: "to_uppercase";
|
|
125
|
+
readonly to_lowercase: "to_lowercase";
|
|
126
|
+
readonly capitalize: "capitalize";
|
|
127
|
+
readonly substring: "substring";
|
|
128
|
+
readonly length: "length";
|
|
129
|
+
readonly contains: "contains";
|
|
130
|
+
readonly starts_with: "starts_with";
|
|
131
|
+
readonly ends_with: "ends_with";
|
|
132
|
+
readonly remove_whitespace: "remove_whitespace";
|
|
133
|
+
readonly slugify: "slugify";
|
|
134
|
+
readonly pad_start: "pad_start";
|
|
135
|
+
readonly pad_end: "pad_end";
|
|
136
|
+
readonly reverse: "reverse";
|
|
137
|
+
readonly encode_base64: "encode_base64";
|
|
138
|
+
readonly decode_base64: "decode_base64";
|
|
139
|
+
readonly encode_uri: "encode_uri";
|
|
140
|
+
readonly decode_uri: "decode_uri";
|
|
141
|
+
readonly after: "after";
|
|
142
|
+
readonly after_last: "after_last";
|
|
143
|
+
readonly before: "before";
|
|
144
|
+
readonly before_last: "before_last";
|
|
145
|
+
readonly between: "between";
|
|
146
|
+
readonly between_first: "between_first";
|
|
147
|
+
readonly camel: "camel";
|
|
148
|
+
readonly char_at: "char_at";
|
|
149
|
+
readonly chop_start: "chop_start";
|
|
150
|
+
readonly chop_end: "chop_end";
|
|
151
|
+
readonly contains_all: "contains_all";
|
|
152
|
+
readonly doesnt_contain: "doesnt_contain";
|
|
153
|
+
readonly doesnt_start_with: "doesnt_start_with";
|
|
154
|
+
readonly doesnt_end_with: "doesnt_end_with";
|
|
155
|
+
readonly deduplicate: "deduplicate";
|
|
156
|
+
readonly excerpt: "excerpt";
|
|
157
|
+
readonly finish: "finish";
|
|
158
|
+
readonly start: "start";
|
|
159
|
+
readonly headline: "headline";
|
|
160
|
+
readonly is: "is";
|
|
161
|
+
readonly is_ascii: "is_ascii";
|
|
162
|
+
readonly is_json: "is_json";
|
|
163
|
+
readonly is_ulid: "is_ulid";
|
|
164
|
+
readonly is_url: "is_url";
|
|
165
|
+
readonly is_uuid: "is_uuid";
|
|
166
|
+
readonly is_empty: "is_empty";
|
|
167
|
+
readonly is_match: "is_match";
|
|
168
|
+
readonly kebab: "kebab";
|
|
169
|
+
readonly snake: "snake";
|
|
170
|
+
readonly studly: "studly";
|
|
171
|
+
readonly title: "title";
|
|
172
|
+
readonly lcfirst: "lcfirst";
|
|
173
|
+
readonly ucfirst: "ucfirst";
|
|
174
|
+
readonly ucwords: "ucwords";
|
|
175
|
+
readonly ucsplit: "ucsplit";
|
|
176
|
+
readonly limit: "limit";
|
|
177
|
+
readonly mask: "mask";
|
|
178
|
+
readonly match: "match";
|
|
179
|
+
readonly match_all: "match_all";
|
|
180
|
+
readonly pad_both: "pad_both";
|
|
181
|
+
readonly plural: "plural";
|
|
182
|
+
readonly singular: "singular";
|
|
183
|
+
readonly position: "position";
|
|
184
|
+
readonly random: "random";
|
|
185
|
+
readonly remove: "remove";
|
|
186
|
+
readonly repeat: "repeat";
|
|
187
|
+
readonly replace_array: "replace_array";
|
|
188
|
+
readonly replace_first: "replace_first";
|
|
189
|
+
readonly replace_last: "replace_last";
|
|
190
|
+
readonly replace_matches: "replace_matches";
|
|
191
|
+
readonly replace_start: "replace_start";
|
|
192
|
+
readonly replace_end: "replace_end";
|
|
193
|
+
readonly squish: "squish";
|
|
194
|
+
readonly substr: "substr";
|
|
195
|
+
readonly substr_count: "substr_count";
|
|
196
|
+
readonly substr_replace: "substr_replace";
|
|
197
|
+
readonly swap: "swap";
|
|
198
|
+
readonly take: "take";
|
|
199
|
+
readonly word_count: "word_count";
|
|
200
|
+
readonly word_wrap: "word_wrap";
|
|
201
|
+
readonly words: "words";
|
|
202
|
+
readonly wrap: "wrap";
|
|
203
|
+
readonly unwrap: "unwrap";
|
|
204
|
+
readonly uuid: "uuid";
|
|
205
|
+
readonly ulid: "ulid";
|
|
206
|
+
readonly strip_tags: "strip_tags";
|
|
207
|
+
readonly ascii: "ascii";
|
|
208
|
+
readonly apa: "apa";
|
|
209
|
+
readonly class_basename: "class_basename";
|
|
210
|
+
};
|
|
211
|
+
readonly "utility.random": {
|
|
212
|
+
readonly random_int: "random_int";
|
|
213
|
+
readonly random_float: "random_float";
|
|
214
|
+
readonly random_string: "random_string";
|
|
215
|
+
readonly random_uuid: "random_uuid";
|
|
216
|
+
readonly uuid: "uuid";
|
|
217
|
+
readonly random_boolean: "random_boolean";
|
|
218
|
+
readonly random_choice: "random_choice";
|
|
219
|
+
readonly random_password: "random_password";
|
|
220
|
+
readonly random_hex: "random_hex";
|
|
221
|
+
readonly random_alphanumeric: "random_alphanumeric";
|
|
222
|
+
readonly random_date: "random_date";
|
|
223
|
+
readonly random_color: "random_color";
|
|
224
|
+
readonly shuffle_array: "shuffle_array";
|
|
225
|
+
};
|
|
226
|
+
readonly "utility.math": {
|
|
227
|
+
readonly add: "add";
|
|
228
|
+
readonly subtract: "subtract";
|
|
229
|
+
readonly multiply: "multiply";
|
|
230
|
+
readonly divide: "divide";
|
|
231
|
+
readonly modulo: "modulo";
|
|
232
|
+
readonly power: "power";
|
|
233
|
+
readonly round: "round";
|
|
234
|
+
readonly floor: "floor";
|
|
235
|
+
readonly ceil: "ceil";
|
|
236
|
+
readonly abs: "abs";
|
|
237
|
+
readonly min: "min";
|
|
238
|
+
readonly max: "max";
|
|
239
|
+
readonly average: "average";
|
|
240
|
+
readonly sum: "sum";
|
|
241
|
+
readonly clamp: "clamp";
|
|
242
|
+
readonly random_between: "random_between";
|
|
243
|
+
readonly percentage: "percentage";
|
|
244
|
+
readonly percentage_of: "percentage_of";
|
|
245
|
+
readonly sqrt: "sqrt";
|
|
246
|
+
readonly log: "log";
|
|
247
|
+
};
|
|
248
|
+
readonly "utility.compare": {
|
|
249
|
+
readonly diff_objects: "diff_objects";
|
|
250
|
+
readonly diff_arrays: "diff_arrays";
|
|
251
|
+
readonly compare_strings: "compare_strings";
|
|
252
|
+
readonly compare_numbers: "compare_numbers";
|
|
253
|
+
readonly compare_dates: "compare_dates";
|
|
254
|
+
readonly is_changed: "is_changed";
|
|
255
|
+
readonly is_equal: "is_equal";
|
|
256
|
+
readonly is_not_equal: "is_not_equal";
|
|
257
|
+
readonly is_greater_than: "is_greater_than";
|
|
258
|
+
readonly is_less_than: "is_less_than";
|
|
259
|
+
readonly is_between: "is_between";
|
|
260
|
+
readonly is_empty: "is_empty";
|
|
261
|
+
readonly is_null_or_undefined: "is_null_or_undefined";
|
|
262
|
+
readonly is_same_type: "is_same_type";
|
|
263
|
+
readonly deep_equal: "deep_equal";
|
|
264
|
+
readonly shallow_equal: "shallow_equal";
|
|
265
|
+
readonly similarity_score: "similarity_score";
|
|
266
|
+
readonly array_intersection: "array_intersection";
|
|
267
|
+
readonly array_union: "array_union";
|
|
268
|
+
readonly array_difference: "array_difference";
|
|
269
|
+
};
|
|
270
|
+
readonly "utility.geo": {
|
|
271
|
+
readonly calculate_distance: "calculate_distance";
|
|
272
|
+
readonly point_in_polygon: "point_in_polygon";
|
|
273
|
+
readonly get_bounding_box: "get_bounding_box";
|
|
274
|
+
readonly reverse_geocode: "reverse_geocode";
|
|
275
|
+
readonly geocode: "geocode";
|
|
276
|
+
readonly convert_coordinates: "convert_coordinates";
|
|
277
|
+
};
|
|
278
|
+
readonly "base64.encryption": {
|
|
279
|
+
readonly encode: "base64.encode";
|
|
280
|
+
readonly decode: "base64.decode";
|
|
281
|
+
};
|
|
282
|
+
readonly "hash.encryption": {
|
|
283
|
+
readonly hash: "hash";
|
|
284
|
+
readonly md5: "hash.md5";
|
|
285
|
+
readonly sha1: "hash.sha1";
|
|
286
|
+
readonly sha256: "hash.sha256";
|
|
287
|
+
readonly sha512: "hash.sha512";
|
|
288
|
+
};
|
|
289
|
+
readonly "aes.encryption": {
|
|
290
|
+
readonly encrypt: "aes.encrypt";
|
|
291
|
+
readonly decrypt: "aes.decrypt";
|
|
292
|
+
readonly generate_key: "aes.generate_key";
|
|
293
|
+
readonly generate_iv: "aes.generate_iv";
|
|
294
|
+
};
|
|
295
|
+
readonly "rsa.encryption": {
|
|
296
|
+
readonly generate_keypair: "rsa.generate_keypair";
|
|
297
|
+
readonly encrypt: "rsa.encrypt";
|
|
298
|
+
readonly decrypt: "rsa.decrypt";
|
|
299
|
+
readonly sign: "rsa.sign";
|
|
300
|
+
readonly verify: "rsa.verify";
|
|
301
|
+
};
|
|
302
|
+
readonly "hmac.encryption": {
|
|
303
|
+
readonly create: "hmac.create";
|
|
304
|
+
readonly verify: "hmac.verify";
|
|
305
|
+
};
|
|
306
|
+
readonly "password.encryption": {
|
|
307
|
+
readonly argon2_hash: "password.argon2_hash";
|
|
308
|
+
readonly argon2_verify: "password.argon2_verify";
|
|
309
|
+
readonly pbkdf2_hash: "password.pbkdf2_hash";
|
|
310
|
+
readonly pbkdf2_verify: "password.pbkdf2_verify";
|
|
311
|
+
readonly scrypt_hash: "password.scrypt_hash";
|
|
312
|
+
readonly scrypt_verify: "password.scrypt_verify";
|
|
313
|
+
readonly bcrypt_hash: "password.bcrypt_hash";
|
|
314
|
+
readonly bcrypt_verify: "password.bcrypt_verify";
|
|
315
|
+
readonly generate_salt: "password.generate_salt";
|
|
316
|
+
};
|
|
55
317
|
};
|
|
56
318
|
export type BuiltInConnectorId = (typeof ConnectorId.Database)[keyof typeof ConnectorId.Database] | (typeof ConnectorId.Auth)[keyof typeof ConnectorId.Auth] | (typeof ConnectorId.Utility)[keyof typeof ConnectorId.Utility] | (typeof ConnectorId.Encryption)[keyof typeof ConnectorId.Encryption] | (typeof ConnectorId.Responder)[keyof typeof ConnectorId.Responder] | (typeof ConnectorId.Condition)[keyof typeof ConnectorId.Condition] | typeof ConnectorId.Cliodot;
|
|
57
319
|
export interface CustomConnectorDef<TActions extends Record<string, string> = Record<string, string>> {
|
|
@@ -60,10 +322,123 @@ export interface CustomConnectorDef<TActions extends Record<string, string> = Re
|
|
|
60
322
|
}
|
|
61
323
|
export declare function defineCustomConnector<TActions extends Record<string, string>>(id: string, actions: TActions): CustomConnectorDef<TActions>;
|
|
62
324
|
export declare function defineCustomConnectorFromList(id: string, actionList: readonly string[]): CustomConnectorDef<Record<string, string>>;
|
|
325
|
+
export type WireValue<T> = T extends string | number | boolean | null | undefined ? T | string : T extends ReadonlyArray<infer U> ? ReadonlyArray<WireValue<U>> | string : T extends Record<string, any> ? WireRecord<T> | string : T | string;
|
|
326
|
+
export type WireRecord<T extends Record<string, any>> = {
|
|
327
|
+
[K in keyof T]?: WireValue<T[K]>;
|
|
328
|
+
};
|
|
329
|
+
export interface ConnectorActionSchema<TBody = any, TParams = Record<string, any>, TPathParams = Record<string, any>, TResponse = any, THeaders = Record<string, unknown>, TVars = Record<string, unknown>> {
|
|
330
|
+
body?: TBody;
|
|
331
|
+
params?: TParams;
|
|
332
|
+
pathParams?: TPathParams;
|
|
333
|
+
response?: TResponse;
|
|
334
|
+
headers?: THeaders;
|
|
335
|
+
vars?: TVars;
|
|
336
|
+
}
|
|
337
|
+
type SchemaWire<T> = unknown extends T ? ConnectorStepConfig[keyof Pick<ConnectorStepConfig, "body" | "params" | "pathParams">] : T extends Record<string, any> ? WireRecord<T> : T extends ReadonlyArray<unknown> ? WireValue<T> : WireValue<T>;
|
|
338
|
+
type RequestPartsFromSchema<S> = S extends ConnectorActionSchema<infer B, infer P, infer PP, infer _R, infer H, infer V> ? {
|
|
339
|
+
body?: SchemaWire<B>;
|
|
340
|
+
params?: SchemaWire<P>;
|
|
341
|
+
pathParams?: SchemaWire<PP>;
|
|
342
|
+
headers?: SchemaWire<H> | ConnectorStepConfig["headers"];
|
|
343
|
+
vars?: SchemaWire<V>;
|
|
344
|
+
} : {};
|
|
345
|
+
/**
|
|
346
|
+
* A map of action names → their schemas.
|
|
347
|
+
*
|
|
348
|
+
* ```ts
|
|
349
|
+
* type PaystackActions = {
|
|
350
|
+
* initializeTransaction: ConnectorActionSchema<
|
|
351
|
+
* { email: string; amount: number; reference?: string },
|
|
352
|
+
* Record<string, never>,
|
|
353
|
+
* Record<string, never>,
|
|
354
|
+
* { authorization_url: string; access_code: string; reference: string },
|
|
355
|
+
* Record<string, never>,
|
|
356
|
+
* Record<string, never>
|
|
357
|
+
* >;
|
|
358
|
+
* verifyTransaction: ConnectorActionSchema<
|
|
359
|
+
* Record<string, never>,
|
|
360
|
+
* Record<string, never>,
|
|
361
|
+
* { reference: string },
|
|
362
|
+
* { status: string; amount: number }
|
|
363
|
+
* >;
|
|
364
|
+
* };
|
|
365
|
+
* ```
|
|
366
|
+
*/
|
|
367
|
+
export type ConnectorActionSchemaMap = Record<string, ConnectorActionSchema>;
|
|
368
|
+
/**
|
|
369
|
+
* A typed connector definition with full action payload/response types.
|
|
370
|
+
*
|
|
371
|
+
* - `id` — the connector ID string
|
|
372
|
+
* - `actions` — map of action names (typed strings)
|
|
373
|
+
* - `Action<K>` — helper type to extract the schema for a specific action
|
|
374
|
+
*/
|
|
375
|
+
export interface TypedConnectorDef<TActions extends Record<string, string>, TSchemas extends Record<string, ConnectorActionSchema> = Record<string, ConnectorActionSchema>> extends CustomConnectorDef<TActions> {
|
|
376
|
+
/**
|
|
377
|
+
* Type-level helper: extract payload/response types for a given action.
|
|
378
|
+
* Not a runtime value — use with `typeof` in type positions.
|
|
379
|
+
*/
|
|
380
|
+
readonly __schemas: TSchemas;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Extracts the body type for a given action from a TypedConnectorDef.
|
|
384
|
+
*/
|
|
385
|
+
export type ConnectorBody<TDef extends TypedConnectorDef<any, any>, TAction extends keyof TDef["__schemas"]> = TDef["__schemas"][TAction] extends ConnectorActionSchema<infer B, any, any, any, any, any> ? B : any;
|
|
386
|
+
export type ConnectorParams<TDef extends TypedConnectorDef<any, any>, TAction extends keyof TDef["__schemas"]> = TDef["__schemas"][TAction] extends ConnectorActionSchema<any, infer P, any, any, any, any> ? P : Record<string, any>;
|
|
387
|
+
export type ConnectorPathParams<TDef extends TypedConnectorDef<any, any>, TAction extends keyof TDef["__schemas"]> = TDef["__schemas"][TAction] extends ConnectorActionSchema<any, any, infer PP, any, any, any> ? PP : Record<string, any>;
|
|
388
|
+
export type ConnectorResponse<TDef extends TypedConnectorDef<any, any>, TAction extends keyof TDef["__schemas"]> = TDef["__schemas"][TAction] extends ConnectorActionSchema<any, any, any, infer R, any, any> ? R : any;
|
|
389
|
+
export type ConnectorHeaders<TDef extends TypedConnectorDef<any, any>, TAction extends keyof TDef["__schemas"]> = TDef["__schemas"][TAction] extends ConnectorActionSchema<any, any, any, any, infer H, any> ? H : Record<string, unknown>;
|
|
390
|
+
export type ConnectorVars<TDef extends TypedConnectorDef<any, any>, TAction extends keyof TDef["__schemas"]> = TDef["__schemas"][TAction] extends ConnectorActionSchema<any, any, any, any, any, infer V> ? V : Record<string, unknown>;
|
|
391
|
+
export type ConnectorTypedRequestConfig<TDef extends TypedConnectorDef<any, any>, TKey extends keyof TDef["actions"]> = Omit<ConnectorStepConfig, "body" | "params" | "pathParams" | "headers" | "vars"> & (TKey extends keyof TDef["__schemas"] ? RequestPartsFromSchema<TDef["__schemas"][TKey]> : Pick<ConnectorStepConfig, "body" | "params" | "pathParams" | "headers" | "vars">);
|
|
392
|
+
export type ConnectorRunOptionsTyped<TDef extends TypedConnectorDef<any, any>, TKey extends keyof TDef["actions"]> = ConnectorTypedRequestConfig<TDef, TKey>;
|
|
393
|
+
export type ConnectorActionRequest<TDef extends TypedConnectorDef<any, any>, TKey extends keyof TDef["__schemas"]> = TDef["__schemas"][TKey] extends ConnectorActionSchema<infer B, infer P, infer PP, infer _R, infer H, infer V> ? {
|
|
394
|
+
body?: B;
|
|
395
|
+
params?: P;
|
|
396
|
+
pathParams?: PP;
|
|
397
|
+
headers?: H;
|
|
398
|
+
vars?: V;
|
|
399
|
+
} : never;
|
|
400
|
+
export declare function isTypedConnectorDef(v: unknown): v is TypedConnectorDef<any, any>;
|
|
401
|
+
export declare function isCustomConnectorDef(v: unknown): v is CustomConnectorDef<any>;
|
|
402
|
+
/**
|
|
403
|
+
* Define a connector with fully typed actions, payloads, and responses.
|
|
404
|
+
* Use this for remote connectors where you don't have the implementation locally
|
|
405
|
+
* but want full type safety when building workflows.
|
|
406
|
+
*
|
|
407
|
+
* @example
|
|
408
|
+
* ```ts
|
|
409
|
+
* const Paystack = defineTypedConnector("paystack", {
|
|
410
|
+
* initializeTransaction: "Initialize Transaction",
|
|
411
|
+
* verifyTransaction: "Verify Transaction",
|
|
412
|
+
* listTransactions: "List Transactions",
|
|
413
|
+
* }, {
|
|
414
|
+
* initializeTransaction: {
|
|
415
|
+
* body: {} as { email: string; amount: number; reference?: string },
|
|
416
|
+
* response: {} as { authorization_url: string; access_code: string; reference: string },
|
|
417
|
+
* },
|
|
418
|
+
* verifyTransaction: {
|
|
419
|
+
* pathParams: {} as { reference: string },
|
|
420
|
+
* response: {} as { status: string; amount: number; currency: string },
|
|
421
|
+
* },
|
|
422
|
+
* listTransactions: {
|
|
423
|
+
* params: {} as { page?: number; perPage?: number; status?: string },
|
|
424
|
+
* response: {} as { data: Array<{ reference: string; amount: number }> },
|
|
425
|
+
* },
|
|
426
|
+
* });
|
|
427
|
+
*
|
|
428
|
+
* // Full type safety:
|
|
429
|
+
* type InitBody = ConnectorBody<typeof Paystack, "initializeTransaction">;
|
|
430
|
+
* // => { email: string; amount: number; reference?: string }
|
|
431
|
+
*
|
|
432
|
+
* type VerifyResponse = ConnectorResponse<typeof Paystack, "verifyTransaction">;
|
|
433
|
+
* // => { status: string; amount: number; currency: string }
|
|
434
|
+
* ```
|
|
435
|
+
*/
|
|
436
|
+
export declare function defineTypedConnector<TActions extends Record<string, string>, TSchemas extends Partial<Record<keyof TActions, ConnectorActionSchema>>>(id: string, actions: TActions, schemas: TSchemas): TypedConnectorDef<TActions, TSchemas & Record<string, ConnectorActionSchema>>;
|
|
63
437
|
export declare function getConnectorActions(connectorId: string): readonly string[];
|
|
64
438
|
export declare function listBuiltInConnectors(): Array<{
|
|
65
439
|
id: string;
|
|
66
440
|
category: string;
|
|
67
441
|
actions: readonly string[];
|
|
68
442
|
}>;
|
|
443
|
+
export {};
|
|
69
444
|
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/connectors/registry.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/connectors/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCd,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqKnB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAC1B,CAAC,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,QAAQ,CAAC,GAChE,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,IAAI,CAAC,GACxD,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,OAAO,CAAC,GAC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AE,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,CAAC;IACZ,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,GACD,KAAK,CAAC;AAEV,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,CAShF;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,kBAAkB,CAAC,GAAG,CAAC,CAS7E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACvC,QAAQ,SAAS,OAAO,CAAC,MAAM,CAAC,MAAM,QAAQ,EAAE,qBAAqB,CAAC,CAAC,EAEvE,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,QAAQ,GAChB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAM/E;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAI1E;AAED,wBAAgB,qBAAqB,IAAI,KAAK,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B,CAAC,CAUD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x66cfc3=_0x890b;(function(_0x199f27,_0x56b58f){const _0x57678c=_0x890b,_0x36d4c9=_0x199f27();while(!![]){try{const _0x3561c1=-parseInt(_0x57678c(0x14e))/0x1*(-parseInt(_0x57678c(0x142))/0x2)+parseInt(_0x57678c(0x14c))/0x3+parseInt(_0x57678c(0xd9))/0x4*(parseInt(_0x57678c(0xfc))/0x5)+parseInt(_0x57678c(0x145))/0x6*(parseInt(_0x57678c(0x16c))/0x7)+parseInt(_0x57678c(0x148))/0x8+parseInt(_0x57678c(0xca))/0x9*(-parseInt(_0x57678c(0xe9))/0xa)+-parseInt(_0x57678c(0x164))/0xb;if(_0x3561c1===_0x56b58f)break;else _0x36d4c9['push'](_0x36d4c9['shift']());}catch(_0x6089bc){_0x36d4c9['push'](_0x36d4c9['shift']());}}}(_0x20c2,0xed561));function _0x20c2(){const _0x188832=['CM91BMq','yxzLCMfNzq','CMvTB3zLx3DOAxrLC3bHy2u','ywrK','Dw53CMfW','DhjPBv9ZDgfYDa','D3jHCa','x19LC01VzhvSzq','zgL2AwrL','BwfZAW','AxnFC2fTzv90ExbL','CgfZC3DVCMqUyMnYExb0x2HHC2G','z2vVy29Kzq','ywz0zxi','mJuYnZeZnJDqDufWz08','zw5Kx29Mx2rHEq','CMfUzg9Tx3v1Awq','CgfZC3DVCMqUyxjNB24Yx2HHC2G','CMv2zxjZzv9Nzw9JB2rL','CgfKx3n0yxj0','AxnFBM90x2vXDwfS','y29TCgfYzv9ZDhjPBMDZ','mJfzwgryEve','ywvZlMDLBMvYyxrLx2L2','se1bqW','CgfZC3DVCMqUCgjRzgyYx2HHC2G','zw5Kx29Mx21VBNrO','C2HHBgXVD19LCxvHBa','yxnJAwK','C25HA2u','Bg9N','ywvZlMvUy3j5Chq','CMvKAxmUEMfKza','ywrKx3rPBwu','y29UDgfPBNm','CgfZC3DVCMqUC2nYExb0x2HHC2G','Ag1HyY5JCMvHDgu','z2v0x3rPBwv6B25L','CNnHlMvUy3j5ChrPB24','zw5Kx29Mx3LLyxi','Dg9FBg93zxjJyxnL','CNnHlMDLBMvYyxrLx2TLExbHAxi','CMvKAxmUC3LZDgvT','CgfZC3DVCMqUz2vUzxjHDgvFC2fSDa','zg9LC250x2nVBNrHAw4','BgLTAxq','A2vIywi','DxrPBgL0Es5JB21WyxjL','CMfUzg9Tx2zSB2f0','DxrPBgL0Es5Nzw8','zgvSzxrLt25L','zMLUza','C3rHCNrFB2zFzgf5','Bw9Uz29KyI5ZExn0zw0','z2v0x2n1CNjLBNrFzgf0zq','CgX1CMfS','twf0Aa','yMfZzty0lMvUy3j5ChrPB24','z2v0x3vUAxHFDgLTzxn0yw1W','zw5KC193AxrO','C3r1zgX5','uMfUzg9T','zgLMzL9HCNjHExm','DxbKyxrLt25L','q29TCgfYzq','yMvHCMvYlNn5C3rLBq','y29UzgL0Aw9UlMXVz2LJ','CNnHlNzLCMLMEq','AxnFyMv0D2vLBG','rgf0ywjHC2u','C2H1zMzSzv9HCNjHEq','zNjVBuvUDhjPzxm','ywvZlMDLBMvYyxrLx2TLEq','AgfZAc5LBMnYExb0Aw9U','CNnHlMrLy3j5Chq','AgfZAc5ZAgeYnty','mta4ouv4s3LNyW','CMvTB3zL','CMfUzg9Tx2LUDa','Dwn3B3jKCW','z2v0q29UBMvJDg9Yqwn0Aw9UCW','ugfZC3DVCMq','qxv0Aa','zMXVB3i','AgfZAc5ZAge1mti','DhjPBv9LBMq','ywvZlMvUy3j5ChrPB24','CMvWBgfJzv9MAxjZDa','AgfZAc5ZAgeX','DxrPBgL0Es5TyxrO','CMvKAxmUzgvSzxrLx2TLEq','ntKYvw16wK9p','y29UDMvYDf90Aw1LEM9Uzq','ANnVBI5YzxnWB25Kzxi','Cg93zxi','D29Yzf93CMfW','sgfZAa','uLnb','Bwf0y2G','AxnFDxjS','yMvMB3jLx2XHC3q','ChvZAa','yxjYyxLFAw50zxjZzwn0Aw9U','y29TCgfYzv9KyxrLCW','Cg9PBNrFAw5FCg9SEwDVBG','Aw5Zzxj0t25L','AxnFBwf0y2G','mteXnJeWBNLpywvh','zgvMAw5Lq3vZDg9Tq29UBMvJDg9YrNjVBuXPC3q','CMv2zxjZzq','AxnFBgvZC190AgfU','zgvMAw5Lq3vZDg9Tq29UBMvJDg9Y','y2vPBa','CMvWBgfJzv9Syxn0','CNnHlNnPz24','y2fTzwW','rw5JCNLWDgLVBG','y3vZDg9T','BxvSDgLWBhK','q29UBMvJDg9Yqwn0Aw9UCW','C3rHCNrFB2zFEwvHCG','txLtuuW','yMv0D2vLBG','Aw5Zzxj0twfUEq','AxnFBgvHCf95zwfY','y2HVCf9ZDgfYDa','mJy5mJvSDxv2B2e','vxrPBgL0Eq','CMfUzg9Tx2jLDhDLzw4','AxnFz3jLyxrLCL90AgfU','CMvKAxmUz2v0','DwnZCgXPDa','DxrPBgL0Es5Yyw5KB20','CgfZC3DVCMqUyMnYExb0x3zLCMLMEq','BgLZDf90Aw1LEM9Uzxm','BwLU','Dg9FDxbWzxjJyxnL','C3DHCa','zg9LC250x2vUzf93AxrO','C2LTAwXHCML0Ev9Zy29Yzq','zw5Kx29Mx3DLzwS','y29UDMvYDf9JB29YzgLUyxrLCW','AgfZAa','y2XHC3nFyMfZzw5HBwu','zw5JB2rLx3vYAq','CMvWBgfJzv9ZDgfYDa','C3rHCNrFB2zFD2vLAW','ywz0zxjFBgfZDa','C3fYDa','zgvLCf9LCxvHBa','DxvPza','z2v0x2n1CNjLBNrFzgf0zxrPBwu','CgfZC3DVCMqUCgjRzgyYx3zLCMLMEq','y2XPB2rVDa','CMfUzg9Tx3n0CMLUzW','yxbPx2TLEs52ywXPzgf0zq','zxHJzxjWDa','AxnFDxvPza','AgfZAc5Tzdu','CMvWBgfJzq','yMvMB3jL','zgLMzL9VyMPLy3rZ','qMfZzty0','zMLUze9Uzq','quvt','CMvWBgfJzv9HCNjHEq','CMvKAxmUC2v0','D29Yzhm','CgfZC3DVCMqUzw5JCNLWDgLVBG','CMvKAxmUBhbVCa','u3rYAw5N','C3vIC3rY','CMvKAxmUzgvSzxrL','Cg9ZDgDYzxmUC3LZDgvT','BgvUz3rO','CMvKAxmUAhnLDa','q29UBMvJDg9Yswq','BxLZCwWUC3LZDgvT','C3f1AxnO','yxjYyxLFzgLMzMvYzw5Jzq','CMvWzwf0','y2fWAxrHBgL6zq','y2HVCf9LBMq','CxvLCNK','tw9Uz29eqG','BwfW','AxnFANnVBG','Ag1HyY52zxjPzNK','y2fSy3vSyxrLx2rPC3rHBMnL','CgfKx2vUza','Aw5JBhvKzxm','y29TCgfYzv9UDw1IzxjZ','AxnFDwXPza','DMfSAwrHDgu','yMvHCMvYlNzHBgLKyxrL','y29UDgfPBNnFywXS','mtG0ww5br2jU','CMvWBgfJzv9LBMq','C3bSAxq','mtK4mZeWohruuePnEq','C3rHCNrFB2zFBw9UDgG','AxnFy2HHBMDLza','mtK3ndu5mNrWCvfVEG','rgf0zvrPBwu','DxrPBgL0Es5ZDhjPBMC','CMfUzg9Tx2fSCgHHBNvTzxjPyW','nty0odyXovHut3b3Cq','qxbPs2v5','nZyYohvLy3nuta','C3rHCNrZx3DPDgG','yxjYyxLFDw5PB24','AxnFyxnJAwK','CMfUzg9Tx2nVBg9Y','AgvHzgXPBMu','C2X1z2LMEq','C3vIC3rYx3jLCgXHy2u'];_0x20c2=function(){return _0x188832;};return _0x20c2();}Object['defineProperty'](exports,_0x66cfc3(0x15d),{'value':!![]}),exports[_0x66cfc3(0xf5)]=exports[_0x66cfc3(0x12e)]=void 0x0,exports[_0x66cfc3(0xed)]=defineCustomConnector,exports[_0x66cfc3(0xea)]=defineCustomConnectorFromList,exports[_0x66cfc3(0xce)]=getConnectorActions,exports['listBuiltInConnectors']=listBuiltInConnectors,exports[_0x66cfc3(0x12e)]={'Database':{'MongoDB':_0x66cfc3(0xb3),'MySQL':_0x66cfc3(0x12f),'PostgreSQL':_0x66cfc3(0x12b),'Redis':_0x66cfc3(0xa8)},'Auth':{'Bearer':_0x66cfc3(0xbf),'ApiKey':'api_key.system'},'Utility':{'DateTime':'utility.date_time','String':_0x66cfc3(0x14a),'Random':_0x66cfc3(0x102),'Math':_0x66cfc3(0xd7),'Compare':_0x66cfc3(0xad),'Geo':_0x66cfc3(0xaf)},'Encryption':{'Base64':_0x66cfc3(0xb7),'Hash':_0x66cfc3(0xc7),'AES':_0x66cfc3(0xd4),'RSA':_0x66cfc3(0xa4),'HMAC':'hmac.encryption','Password':_0x66cfc3(0x126)},'Responder':{'Json':_0x66cfc3(0xdb)},'Condition':{'Logic':_0x66cfc3(0xc0)},'Cliodot':_0x66cfc3(0x117)},exports[_0x66cfc3(0xf5)]={[exports[_0x66cfc3(0x12e)]['Database'][_0x66cfc3(0x136)]]:[_0x66cfc3(0xe7),_0x66cfc3(0xf9),_0x66cfc3(0x121),_0x66cfc3(0xb1),_0x66cfc3(0xbd),_0x66cfc3(0xb0)],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xc3)][_0x66cfc3(0xf7)]]:[_0x66cfc3(0x135)],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xc3)]['PostgreSQL']]:[_0x66cfc3(0x135)],[exports['ConnectorId'][_0x66cfc3(0xc3)]['Redis']]:[_0x66cfc3(0x100),_0x66cfc3(0x124),_0x66cfc3(0x12a),_0x66cfc3(0x12d),'redis.hget','redis.lpush',_0x66cfc3(0x127),_0x66cfc3(0x176),'redis.create_hash',_0x66cfc3(0xd8)],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xd0)]['Bearer']]:[_0x66cfc3(0x140),_0x66cfc3(0x13f)],[exports[_0x66cfc3(0x12e)]['Auth'][_0x66cfc3(0x14d)]]:[_0x66cfc3(0x119),'validate'],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xfd)][_0x66cfc3(0x149)]]:[_0x66cfc3(0xb4),'get_current_time',_0x66cfc3(0x115),'format','format_date','parse_date',_0x66cfc3(0x177),'subtract_time','diff_between_dates',_0x66cfc3(0xb2),_0x66cfc3(0x165),_0x66cfc3(0x110),_0x66cfc3(0x10a),_0x66cfc3(0x146),_0x66cfc3(0x170),_0x66cfc3(0xf6),_0x66cfc3(0xa5),_0x66cfc3(0xda),_0x66cfc3(0xa3),_0x66cfc3(0x104),_0x66cfc3(0xfa),_0x66cfc3(0xb8),'from_unix_timestamp'],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xfd)][_0x66cfc3(0x128)]]:['concat','split','join',_0x66cfc3(0x11d),'replace_all','trim',_0x66cfc3(0x15b),_0x66cfc3(0xd3),_0x66cfc3(0x106),_0x66cfc3(0xa6),_0x66cfc3(0x133),'substring',_0x66cfc3(0x12c),_0x66cfc3(0x178),_0x66cfc3(0x14f),_0x66cfc3(0xb9),_0x66cfc3(0x158),_0x66cfc3(0x154),_0x66cfc3(0x169),_0x66cfc3(0x13b),_0x66cfc3(0xeb),'encode_base64','decode_base64',_0x66cfc3(0x10e),'decode_uri',_0x66cfc3(0x163),_0x66cfc3(0x111),_0x66cfc3(0x11e),_0x66cfc3(0xe2),_0x66cfc3(0xf8),'between_first',_0x66cfc3(0xf1),'char_at',_0x66cfc3(0xfb),_0x66cfc3(0x134),_0x66cfc3(0x141),_0x66cfc3(0xaa),'doesnt_start_with',_0x66cfc3(0x108),'deduplicate',_0x66cfc3(0x11a),'finish','start',_0x66cfc3(0x153),'is',_0x66cfc3(0x151),_0x66cfc3(0x138),_0x66cfc3(0x13e),_0x66cfc3(0xe1),_0x66cfc3(0x11b),'is_empty',_0x66cfc3(0xe8),_0x66cfc3(0xac),_0x66cfc3(0x173),_0x66cfc3(0xba),'title','lcfirst','ucfirst',_0x66cfc3(0xcd),_0x66cfc3(0x101),_0x66cfc3(0xab),_0x66cfc3(0x15f),_0x66cfc3(0xe0),'match_all','pad_both',_0x66cfc3(0xb5),'singular','position','random',_0x66cfc3(0xcb),_0x66cfc3(0x132),_0x66cfc3(0x123),_0x66cfc3(0xd5),_0x66cfc3(0xef),'replace_matches',_0x66cfc3(0x10f),_0x66cfc3(0x143),_0x66cfc3(0x130),_0x66cfc3(0x129),'substr_count',_0x66cfc3(0x155),_0x66cfc3(0x107),'take','word_count',_0x66cfc3(0xdd),_0x66cfc3(0x125),_0x66cfc3(0x15c),_0x66cfc3(0x15a),_0x66cfc3(0x114),'ulid','strip_tags',_0x66cfc3(0x172),'apa',_0x66cfc3(0x10d)],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xfd)][_0x66cfc3(0xbb)]]:[_0x66cfc3(0xcc),_0x66cfc3(0xae),_0x66cfc3(0x118),_0x66cfc3(0x166),_0x66cfc3(0x114),'random_boolean','random_choice','random_password','random_hex',_0x66cfc3(0x14b),'random_date',_0x66cfc3(0x152),_0x66cfc3(0xc4)],[exports['ConnectorId']['Utility'][_0x66cfc3(0xb6)]]:[_0x66cfc3(0x159),'subtract',_0x66cfc3(0xf4),_0x66cfc3(0x15e),'modulo',_0x66cfc3(0xdc),_0x66cfc3(0x156),_0x66cfc3(0xd1),_0x66cfc3(0xee),'abs',_0x66cfc3(0x105),'max',_0x66cfc3(0x157),'sum','clamp',_0x66cfc3(0xfe),'percentage','percentage_of',_0x66cfc3(0x112),_0x66cfc3(0x174)],[exports[_0x66cfc3(0x12e)]['Utility'][_0x66cfc3(0xbe)]]:[_0x66cfc3(0x11f),_0x66cfc3(0xbc),_0x66cfc3(0x16b),_0x66cfc3(0x13d),_0x66cfc3(0xe5),_0x66cfc3(0x147),'is_equal',_0x66cfc3(0x16a),_0x66cfc3(0xff),_0x66cfc3(0xec),_0x66cfc3(0xc2),'is_empty','is_null_or_undefined',_0x66cfc3(0x160),_0x66cfc3(0x113),_0x66cfc3(0x171),_0x66cfc3(0x109),_0x66cfc3(0xe4),_0x66cfc3(0x150),_0x66cfc3(0x131)],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xfd)]['Geo']]:[_0x66cfc3(0x13a),_0x66cfc3(0xe6),'get_bounding_box',_0x66cfc3(0x168),_0x66cfc3(0x162),_0x66cfc3(0x10b)],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xf2)][_0x66cfc3(0x120)]]:['base64.encode','base64.decode'],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xf2)][_0x66cfc3(0xde)]]:[_0x66cfc3(0x10c),_0x66cfc3(0x11c),_0x66cfc3(0xd6),_0x66cfc3(0xc9),_0x66cfc3(0xd2)],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xf2)][_0x66cfc3(0x122)]]:[_0x66cfc3(0x175),'aes.decrypt',_0x66cfc3(0xc6),_0x66cfc3(0x16d)],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xf2)][_0x66cfc3(0xdf)]]:[_0x66cfc3(0xa7),'rsa.encrypt',_0x66cfc3(0xc8),_0x66cfc3(0xf0),_0x66cfc3(0xc1)],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xf2)][_0x66cfc3(0x16e)]]:[_0x66cfc3(0x17a),_0x66cfc3(0x139)],[exports[_0x66cfc3(0x12e)][_0x66cfc3(0xf2)][_0x66cfc3(0xcf)]]:[_0x66cfc3(0x167),'password.argon2_verify',_0x66cfc3(0x16f),_0x66cfc3(0x116),_0x66cfc3(0x179),'password.scrypt_verify',_0x66cfc3(0x161),_0x66cfc3(0x103),_0x66cfc3(0xa9)]};function defineCustomConnector(_0xf11b70,_0x5c9086){return{'id':_0xf11b70,'actions':_0x5c9086};}function _0x890b(_0xb45910,_0x35c77e){_0xb45910=_0xb45910-0xa3;const _0x20c260=_0x20c2();let _0x890b5b=_0x20c260[_0xb45910];if(_0x890b['nlLgQF']===undefined){var _0xbe62b9=function(_0x3870aa){const _0x4c7b97='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xf11b70='',_0x5c9086='';for(let _0x2d1250=0x0,_0x1714b1,_0x57e68a,_0x54476f=0x0;_0x57e68a=_0x3870aa['charAt'](_0x54476f++);~_0x57e68a&&(_0x1714b1=_0x2d1250%0x4?_0x1714b1*0x40+_0x57e68a:_0x57e68a,_0x2d1250++%0x4)?_0xf11b70+=String['fromCharCode'](0xff&_0x1714b1>>(-0x2*_0x2d1250&0x6)):0x0){_0x57e68a=_0x4c7b97['indexOf'](_0x57e68a);}for(let _0x693629=0x0,_0x1de723=_0xf11b70['length'];_0x693629<_0x1de723;_0x693629++){_0x5c9086+='%'+('00'+_0xf11b70['charCodeAt'](_0x693629)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5c9086);};_0x890b['btakAQ']=_0xbe62b9,_0x890b['etLhgC']={},_0x890b['nlLgQF']=!![];}const _0x2664d4=_0x20c260[0x0],_0x80ab7b=_0xb45910+_0x2664d4,_0x24389c=_0x890b['etLhgC'][_0x80ab7b];return!_0x24389c?(_0x890b5b=_0x890b['btakAQ'](_0x890b5b),_0x890b['etLhgC'][_0x80ab7b]=_0x890b5b):_0x890b5b=_0x24389c,_0x890b5b;}function defineCustomConnectorFromList(_0x2d1250,_0x1714b1){const _0x3b8c40=_0x66cfc3,_0x57e68a=Object[_0x3b8c40(0xc5)](_0x1714b1[_0x3b8c40(0x137)](_0x54476f=>[_0x54476f,_0x54476f]));return{'id':_0x2d1250,'actions':_0x57e68a};}function getConnectorActions(_0x693629){const _0x3a40c0=_0x66cfc3,_0x1de723=exports[_0x3a40c0(0xf5)][_0x693629];return _0x1de723??[];}function listBuiltInConnectors(){const _0xb67901=_0x66cfc3,_0x16d08a=[];for(const [_0x43d97d,_0x3e6e1f]of Object['entries'](exports[_0xb67901(0xf5)])){_0x16d08a[_0xb67901(0xe3)]({'id':_0x43d97d,'category':_0x43d97d[_0xb67901(0x13c)]('.')?_0x43d97d[_0xb67901(0x144)]('.')[0x0]:_0xb67901(0xf3),'actions':_0x3e6e1f});}return _0x16d08a;}
|
|
1
|
+
'use strict';function _0x16c6(_0x3ef687,_0xdfc7c7){_0x3ef687=_0x3ef687-0x1db;const _0x315a20=_0x315a();let _0x16c69a=_0x315a20[_0x3ef687];if(_0x16c6['XPbSxj']===undefined){var _0xce4533=function(_0x147efa){const _0xdc717c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x22ac46='',_0x5ccf1d='';for(let _0x2e3332=0x0,_0x596611,_0x16cbfe,_0x20d210=0x0;_0x16cbfe=_0x147efa['charAt'](_0x20d210++);~_0x16cbfe&&(_0x596611=_0x2e3332%0x4?_0x596611*0x40+_0x16cbfe:_0x16cbfe,_0x2e3332++%0x4)?_0x22ac46+=String['fromCharCode'](0xff&_0x596611>>(-0x2*_0x2e3332&0x6)):0x0){_0x16cbfe=_0xdc717c['indexOf'](_0x16cbfe);}for(let _0x16718f=0x0,_0x11dda9=_0x22ac46['length'];_0x16718f<_0x11dda9;_0x16718f++){_0x5ccf1d+='%'+('00'+_0x22ac46['charCodeAt'](_0x16718f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5ccf1d);};_0x16c6['JHcyVz']=_0xce4533,_0x16c6['FvGdMH']={},_0x16c6['XPbSxj']=!![];}const _0x6cb3a1=_0x315a20[0x0],_0x5652f1=_0x3ef687+_0x6cb3a1,_0x277e04=_0x16c6['FvGdMH'][_0x5652f1];return!_0x277e04?(_0x16c69a=_0x16c6['JHcyVz'](_0x16c69a),_0x16c6['FvGdMH'][_0x5652f1]=_0x16c69a):_0x16c69a=_0x277e04,_0x16c69a;}const _0xa92281=_0x16c6;(function(_0x7f2ba9,_0x15bf36){const _0x66492a=_0x16c6,_0x199019=_0x7f2ba9();while(!![]){try{const _0x39c132=-parseInt(_0x66492a(0x26f))/0x1+parseInt(_0x66492a(0x22d))/0x2+parseInt(_0x66492a(0x254))/0x3+parseInt(_0x66492a(0x1f1))/0x4+parseInt(_0x66492a(0x2a1))/0x5*(parseInt(_0x66492a(0x268))/0x6)+parseInt(_0x66492a(0x232))/0x7*(parseInt(_0x66492a(0x284))/0x8)+parseInt(_0x66492a(0x262))/0x9*(-parseInt(_0x66492a(0x23b))/0xa);if(_0x39c132===_0x15bf36)break;else _0x199019['push'](_0x199019['shift']());}catch(_0x3707c8){_0x199019['push'](_0x199019['shift']());}}}(_0x315a,0x502c9));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0xa92281(0x264)]=exports['ConnectorId']=void 0x0,exports['defineCustomConnector']=defineCustomConnector,exports[_0xa92281(0x21d)]=defineCustomConnectorFromList,exports[_0xa92281(0x225)]=isTypedConnectorDef,exports[_0xa92281(0x22a)]=isCustomConnectorDef,exports['defineTypedConnector']=defineTypedConnector,exports[_0xa92281(0x273)]=getConnectorActions,exports[_0xa92281(0x245)]=listBuiltInConnectors,exports[_0xa92281(0x1e7)]={'Database':{'MongoDB':_0xa92281(0x295),'MySQL':_0xa92281(0x280),'PostgreSQL':'postgres.system','Redis':_0xa92281(0x210)},'Auth':{'Bearer':_0xa92281(0x2b5),'ApiKey':_0xa92281(0x2a4),'Basic':_0xa92281(0x1f2),'CustomHeader':_0xa92281(0x1f4)},'Utility':{'DateTime':_0xa92281(0x28c),'String':_0xa92281(0x28d),'Random':_0xa92281(0x269),'Math':_0xa92281(0x233),'Compare':'utility.compare','Geo':'utility.geo'},'Encryption':{'Base64':'base64.encryption','Hash':_0xa92281(0x215),'AES':_0xa92281(0x1f7),'RSA':_0xa92281(0x275),'HMAC':'hmac.encryption','Password':'password.encryption'},'Responder':{'Json':_0xa92281(0x1e1)},'Condition':{'Logic':_0xa92281(0x26d)},'Cliodot':_0xa92281(0x2b0)},exports['ConnectorActions']={[exports[_0xa92281(0x1e7)][_0xa92281(0x222)][_0xa92281(0x276)]]:{'insertOne':_0xa92281(0x2a9),'insertMany':_0xa92281(0x27a),'findOne':_0xa92281(0x20c),'find':_0xa92281(0x20d),'updateOne':'updateOne','deleteOne':'deleteOne'},[exports[_0xa92281(0x1e7)][_0xa92281(0x222)][_0xa92281(0x247)]]:{'query':'query'},[exports[_0xa92281(0x1e7)][_0xa92281(0x222)][_0xa92281(0x2bc)]]:{'query':_0xa92281(0x266)},[exports[_0xa92281(0x1e7)][_0xa92281(0x222)][_0xa92281(0x1ee)]]:{'get':_0xa92281(0x285),'set':_0xa92281(0x2ac),'delete':_0xa92281(0x220),'hset':_0xa92281(0x1f0),'hget':'redis.hget','lpush':'redis.lpush','lpop':_0xa92281(0x27b),'zadd':_0xa92281(0x227),'create_hash':_0xa92281(0x2af),'delete_key':'redis.delete_key'},[exports[_0xa92281(0x1e7)][_0xa92281(0x270)]['Bearer']]:{'bearer_create':_0xa92281(0x209),'bearer_validate':'bearer.validate','create':_0xa92281(0x29a),'validate':'validate'},[exports[_0xa92281(0x1e7)][_0xa92281(0x270)]['ApiKey']]:{'api_key_create':_0xa92281(0x286),'api_key_validate':_0xa92281(0x218),'create':_0xa92281(0x29a),'validate':_0xa92281(0x27d)},[exports[_0xa92281(0x1e7)][_0xa92281(0x270)][_0xa92281(0x228)]]:{'basic_create':_0xa92281(0x279),'basic_validate':_0xa92281(0x241),'create':_0xa92281(0x29a),'validate':_0xa92281(0x27d)},[exports[_0xa92281(0x1e7)][_0xa92281(0x270)][_0xa92281(0x1db)]]:{'custom_header_create':_0xa92281(0x251),'custom_header_validate':_0xa92281(0x2a8),'create':_0xa92281(0x29a),'validate':_0xa92281(0x27d)},[exports['ConnectorId'][_0xa92281(0x293)][_0xa92281(0x22f)]]:{'get_current_date':'get_current_date','get_current_time':_0xa92281(0x235),'get_current_datetime':_0xa92281(0x26b),'format':_0xa92281(0x253),'format_date':_0xa92281(0x248),'parse_date':_0xa92281(0x2a6),'add_time':_0xa92281(0x1e2),'subtract_time':_0xa92281(0x226),'diff_between_dates':'diff_between_dates','start_of_day':_0xa92281(0x258),'end_of_day':'end_of_day','start_of_week':_0xa92281(0x22b),'end_of_week':_0xa92281(0x265),'start_of_month':'start_of_month','end_of_month':_0xa92281(0x257),'start_of_year':_0xa92281(0x24e),'end_of_year':_0xa92281(0x2b2),'convert_timezone':_0xa92281(0x20b),'get_timezone':_0xa92281(0x23f),'list_timezones':'list_timezones','is_leap_year':'is_leap_year','get_unix_timestamp':_0xa92281(0x221),'from_unix_timestamp':_0xa92281(0x229)},[exports[_0xa92281(0x1e7)]['Utility'][_0xa92281(0x25b)]]:{'concat':'concat','split':'split','join':_0xa92281(0x1f5),'replace':'replace','replace_all':_0xa92281(0x281),'trim':_0xa92281(0x211),'trim_start':_0xa92281(0x213),'trim_end':_0xa92281(0x205),'to_uppercase':_0xa92281(0x20a),'to_lowercase':'to_lowercase','capitalize':_0xa92281(0x2b4),'substring':_0xa92281(0x24c),'length':_0xa92281(0x259),'contains':_0xa92281(0x21f),'starts_with':_0xa92281(0x204),'ends_with':_0xa92281(0x208),'remove_whitespace':_0xa92281(0x2a7),'slugify':_0xa92281(0x28a),'pad_start':_0xa92281(0x1ff),'pad_end':'pad_end','reverse':_0xa92281(0x25f),'encode_base64':_0xa92281(0x223),'decode_base64':_0xa92281(0x21b),'encode_uri':_0xa92281(0x21a),'decode_uri':_0xa92281(0x27c),'after':'after','after_last':'after_last','before':_0xa92281(0x26a),'before_last':_0xa92281(0x2ae),'between':_0xa92281(0x24f),'between_first':_0xa92281(0x1ed),'camel':_0xa92281(0x28b),'char_at':_0xa92281(0x1dc),'chop_start':_0xa92281(0x1f8),'chop_end':_0xa92281(0x25c),'contains_all':_0xa92281(0x243),'doesnt_contain':_0xa92281(0x238),'doesnt_start_with':'doesnt_start_with','doesnt_end_with':_0xa92281(0x21e),'deduplicate':_0xa92281(0x29c),'excerpt':_0xa92281(0x2bb),'finish':_0xa92281(0x1de),'start':_0xa92281(0x2a2),'headline':_0xa92281(0x2ad),'is':'is','is_ascii':_0xa92281(0x1fe),'is_json':_0xa92281(0x24b),'is_ulid':_0xa92281(0x271),'is_url':_0xa92281(0x261),'is_uuid':_0xa92281(0x2b1),'is_empty':'is_empty','is_match':_0xa92281(0x1e6),'kebab':'kebab','snake':_0xa92281(0x214),'studly':'studly','title':'title','lcfirst':'lcfirst','ucfirst':_0xa92281(0x23e),'ucwords':'ucwords','ucsplit':_0xa92281(0x296),'limit':_0xa92281(0x288),'mask':_0xa92281(0x274),'match':_0xa92281(0x2aa),'match_all':_0xa92281(0x2b3),'pad_both':'pad_both','plural':_0xa92281(0x272),'singular':_0xa92281(0x203),'position':_0xa92281(0x2bd),'random':_0xa92281(0x292),'remove':'remove','repeat':_0xa92281(0x291),'replace_array':_0xa92281(0x277),'replace_first':_0xa92281(0x1df),'replace_last':_0xa92281(0x22e),'replace_matches':_0xa92281(0x29b),'replace_start':_0xa92281(0x267),'replace_end':_0xa92281(0x29f),'squish':_0xa92281(0x216),'substr':_0xa92281(0x206),'substr_count':_0xa92281(0x255),'substr_replace':_0xa92281(0x2b8),'swap':'swap','take':_0xa92281(0x1fb),'word_count':'word_count','word_wrap':'word_wrap','words':_0xa92281(0x231),'wrap':'wrap','unwrap':_0xa92281(0x224),'uuid':_0xa92281(0x23d),'ulid':'ulid','strip_tags':'strip_tags','ascii':_0xa92281(0x22c),'apa':_0xa92281(0x236),'class_basename':'class_basename'},[exports[_0xa92281(0x1e7)][_0xa92281(0x293)][_0xa92281(0x263)]]:{'random_int':_0xa92281(0x1e8),'random_float':_0xa92281(0x240),'random_string':_0xa92281(0x27f),'random_uuid':_0xa92281(0x29e),'uuid':'uuid','random_boolean':'random_boolean','random_choice':_0xa92281(0x25e),'random_password':'random_password','random_hex':'random_hex','random_alphanumeric':'random_alphanumeric','random_date':_0xa92281(0x1dd),'random_color':_0xa92281(0x26c),'shuffle_array':'shuffle_array'},[exports[_0xa92281(0x1e7)][_0xa92281(0x293)][_0xa92281(0x25a)]]:{'add':_0xa92281(0x1eb),'subtract':_0xa92281(0x2be),'multiply':'multiply','divide':_0xa92281(0x283),'modulo':_0xa92281(0x212),'power':_0xa92281(0x298),'round':'round','floor':_0xa92281(0x1fd),'ceil':'ceil','abs':_0xa92281(0x1f6),'min':_0xa92281(0x1ea),'max':'max','average':_0xa92281(0x230),'sum':_0xa92281(0x20e),'clamp':_0xa92281(0x1ec),'random_between':_0xa92281(0x1e3),'percentage':_0xa92281(0x21c),'percentage_of':_0xa92281(0x246),'sqrt':_0xa92281(0x1e4),'log':'log'},[exports[_0xa92281(0x1e7)][_0xa92281(0x293)]['Compare']]:{'diff_objects':_0xa92281(0x200),'diff_arrays':'diff_arrays','compare_strings':_0xa92281(0x1fc),'compare_numbers':_0xa92281(0x250),'compare_dates':'compare_dates','is_changed':_0xa92281(0x249),'is_equal':_0xa92281(0x256),'is_not_equal':_0xa92281(0x1e0),'is_greater_than':'is_greater_than','is_less_than':_0xa92281(0x24d),'is_between':_0xa92281(0x2a5),'is_empty':_0xa92281(0x2b6),'is_null_or_undefined':_0xa92281(0x1e5),'is_same_type':_0xa92281(0x28f),'deep_equal':_0xa92281(0x2a0),'shallow_equal':_0xa92281(0x28e),'similarity_score':_0xa92281(0x26e),'array_intersection':_0xa92281(0x2ab),'array_union':_0xa92281(0x237),'array_difference':_0xa92281(0x294)},[exports[_0xa92281(0x1e7)][_0xa92281(0x293)]['Geo']]:{'calculate_distance':_0xa92281(0x217),'point_in_polygon':_0xa92281(0x1fa),'get_bounding_box':_0xa92281(0x24a),'reverse_geocode':_0xa92281(0x289),'geocode':'geocode','convert_coordinates':_0xa92281(0x27e)},[exports[_0xa92281(0x1e7)][_0xa92281(0x2a3)]['Base64']]:{'encode':_0xa92281(0x287),'decode':_0xa92281(0x1f3)},[exports['ConnectorId'][_0xa92281(0x2a3)]['Hash']]:{'hash':'hash','md5':'hash.md5','sha1':_0xa92281(0x290),'sha256':_0xa92281(0x23c),'sha512':_0xa92281(0x299)},[exports[_0xa92281(0x1e7)][_0xa92281(0x2a3)][_0xa92281(0x260)]]:{'encrypt':_0xa92281(0x20f),'decrypt':_0xa92281(0x252),'generate_key':_0xa92281(0x239),'generate_iv':'aes.generate_iv'},[exports[_0xa92281(0x1e7)]['Encryption'][_0xa92281(0x29d)]]:{'generate_keypair':_0xa92281(0x242),'encrypt':'rsa.encrypt','decrypt':_0xa92281(0x23a),'sign':_0xa92281(0x2b9),'verify':_0xa92281(0x297)},[exports[_0xa92281(0x1e7)][_0xa92281(0x2a3)][_0xa92281(0x219)]]:{'create':'hmac.create','verify':_0xa92281(0x25d)},[exports[_0xa92281(0x1e7)][_0xa92281(0x2a3)]['Password']]:{'argon2_hash':'password.argon2_hash','argon2_verify':'password.argon2_verify','pbkdf2_hash':_0xa92281(0x2ba),'pbkdf2_verify':'password.pbkdf2_verify','scrypt_hash':_0xa92281(0x244),'scrypt_verify':'password.scrypt_verify','bcrypt_hash':'password.bcrypt_hash','bcrypt_verify':_0xa92281(0x1ef),'generate_salt':_0xa92281(0x278)}};function defineCustomConnector(_0x22ac46,_0x5ccf1d){return{'id':_0x22ac46,'actions':_0x5ccf1d};}function _0x315a(){const _0x524673=['yxjYyxLFzgLMzMvYzw5Jzq','Bw9Uz29KyI5ZExn0zw0','DwnZCgXPDa','CNnHlNzLCMLMEq','Cg93zxi','AgfZAc5ZAge1mti','y3jLyxrL','CMvWBgfJzv9TyxrJAgvZ','zgvKDxbSAwnHDgu','uLnb','CMfUzg9Tx3v1Awq','CMvWBgfJzv9LBMq','zgvLCf9LCxvHBa','mty3mda1suXsCw9h','C3rHCNq','rw5JCNLWDgLVBG','yxbPx2TLEs5ZExn0zw0','AxnFyMv0D2vLBG','CgfYC2vFzgf0zq','CMvTB3zLx3DOAxrLC3bHy2u','y3vZDg9Tx2HLywrLCI52ywXPzgf0zq','Aw5Zzxj0t25L','Bwf0y2G','yxjYyxLFAw50zxjZzwn0Aw9U','CMvKAxmUC2v0','AgvHzgXPBMu','yMvMB3jLx2XHC3q','CMvKAxmUy3jLyxrLx2HHC2G','y2XPB2rVDa','AxnFDxvPza','zw5Kx29Mx3LLyxi','Bwf0y2HFywXS','y2fWAxrHBgL6zq','yMvHCMvYlNn5C3rLBq','AxnFzw1WDhK','C3rYAw5N','C3vIC3rYx3jLCgXHy2u','CNnHlNnPz24','CgfZC3DVCMqUCgjRzgyYx2HHC2G','zxHJzxjWDa','ug9ZDgDYzvnrta','Cg9ZAxrPB24','C3vIDhjHy3q','q3vZDg9TsgvHzgvY','y2HHCL9HDa','CMfUzg9Tx2rHDgu','zMLUAxnO','CMvWBgfJzv9MAxjZDa','AxnFBM90x2vXDwfS','ANnVBI5YzxnWB25Kzxi','ywrKx3rPBwu','CMfUzg9Tx2jLDhDLzw4','C3fYDa','AxnFBNvSBf9VCL91BMrLzMLUzwq','AxnFBwf0y2G','q29UBMvJDg9Yswq','CMfUzg9Tx2LUDa','zw50CMLLCW','BwLU','ywrK','y2XHBxa','yMv0D2vLBL9MAxjZDa','uMvKAxm','CgfZC3DVCMqUyMnYExb0x3zLCMLMEq','CMvKAxmUAhnLDa','mJmWmZu2ohfjAgfgza','yMfZAwmUC3LZDgvT','yMfZzty0lMrLy29Kzq','y3vZDg9Tx2HLywrLCI5ZExn0zw0','AM9PBG','ywjZ','ywvZlMvUy3j5ChrPB24','y2HVCf9ZDgfYDa','B2jQzwn0','Cg9PBNrFAw5FCg9SEwDVBG','DgfRzq','y29TCgfYzv9ZDhjPBMDZ','zMXVB3i','AxnFyxnJAwK','CgfKx3n0yxj0','zgLMzL9VyMPLy3rZ','DMfSDwvZ','ChvZAa','C2LUz3vSyxi','C3rHCNrZx3DPDgG','DhjPBv9LBMq','C3vIC3rY','BwfW','zw5KC193AxrO','yMvHCMvYlMnYzwf0zq','Dg9FDxbWzxjJyxnL','y29UDMvYDf90Aw1LEM9Uzq','zMLUze9Uzq','zMLUza','C3vT','ywvZlMvUy3j5Chq','CMvKAxmUC3LZDgvT','DhjPBq','Bw9KDwXV','DhjPBv9ZDgfYDa','C25HA2u','AgfZAc5LBMnYExb0Aw9U','C3f1AxnO','y2fSy3vSyxrLx2rPC3rHBMnL','yxbPx2TLEs52ywXPzgf0zq','se1bqW','zw5JB2rLx3vYAq','zgvJB2rLx2jHC2u2na','CgvYy2vUDgfNzq','zgvMAw5Lq3vZDg9Tq29UBMvJDg9YrNjVBuXPC3q','zg9LC250x2vUzf93AxrO','y29UDgfPBNm','CMvKAxmUzgvSzxrL','z2v0x3vUAxHFDgLTzxn0yw1W','rgf0ywjHC2u','zw5JB2rLx2jHC2u2na','Dw53CMfW','AxnuExbLzenVBM5Ly3rVCKrLzG','C3vIDhjHy3rFDgLTzq','CMvKAxmUEMfKza','qMfZAwm','zNjVBv91BML4x3rPBwvZDgfTCa','AxndDxn0B21dB25Uzwn0B3jezwy','C3rHCNrFB2zFD2vLAW','yxnJAwK','mta5ndyWoeX4z1zZwq','CMvWBgfJzv9Syxn0','rgf0zvrPBwu','yxzLCMfNzq','D29Yzhm','mJaWodaXm2L5thPwqG','DxrPBgL0Es5TyxrO','C3bSAxq','z2v0x2n1CNjLBNrFDgLTzq','yxbH','yxjYyxLFDw5PB24','zg9LC250x2nVBNrHAw4','ywvZlMDLBMvYyxrLx2TLEq','CNnHlMrLy3j5Chq','mZbpt0zSBgC','AgfZAc5ZAgeYnty','DxvPza','DwnMAxjZDa','z2v0x3rPBwv6B25L','CMfUzg9Tx2zSB2f0','yMfZAwmUDMfSAwrHDgu','CNnHlMDLBMvYyxrLx2TLExbHAxi','y29UDgfPBNnFywXS','CgfZC3DVCMqUC2nYExb0x2HHC2G','BgLZDej1AwX0sw5dB25Uzwn0B3jZ','CgvYy2vUDgfNzv9VzG','txLtuuW','zM9YBwf0x2rHDgu','AxnFy2HHBMDLza','z2v0x2jVDw5KAw5Nx2jVEa','AxnFANnVBG','C3vIC3rYAw5N','AxnFBgvZC190AgfU','C3rHCNrFB2zFEwvHCG','yMv0D2vLBG','y29TCgfYzv9UDw1IzxjZ','y3vZDg9Tx2HLywrLCI5JCMvHDgu','ywvZlMrLy3j5Chq','zM9YBwf0','mtu3mtiZnvL4yuvWCq','C3vIC3rYx2nVDw50','AxnFzxf1ywW','zw5Kx29Mx21VBNrO','C3rHCNrFB2zFzgf5','BgvUz3rO','twf0Aa','u3rYAw5N','y2HVCf9LBMq','Ag1HyY52zxjPzNK','CMfUzg9Tx2nOB2LJzq','CMv2zxjZzq','quvt','AxnFDxjS','ntiWmdCWnfLxzfDkBq','uMfUzg9T','q29UBMvJDg9Yqwn0Aw9UCW','zw5Kx29Mx3DLzwS','CxvLCNK','CMvWBgfJzv9ZDgfYDa','mJrJwfPjuuu','DxrPBgL0Es5Yyw5KB20','yMvMB3jL','z2v0x2n1CNjLBNrFzgf0zxrPBwu','CMfUzg9Tx2nVBg9Y','y29UzgL0Aw9UlMXVz2LJ','C2LTAwXHCML0Ev9Zy29Yzq','ntq0m2H4BujcrW','qxv0Aa','AxnFDwXPza','CgX1CMfS','z2v0q29UBMvJDg9Yqwn0Aw9UCW','BwfZAW','CNnHlMvUy3j5ChrPB24','tw9Uz29eqG','CMvWBgfJzv9HCNjHEq','CgfZC3DVCMqUz2vUzxjHDgvFC2fSDa','yMfZAwmUy3jLyxrL','Aw5Zzxj0twfUEq','CMvKAxmUBhbVCa','zgvJB2rLx3vYAq','DMfSAwrHDgu','y29UDMvYDf9JB29YzgLUyxrLCW','CMfUzg9Tx3n0CMLUzW','BxLZCwWUC3LZDgvT','CMvWBgfJzv9HBgW','ywn0Aw9UCW','zgL2AwrL','ofbSEgLYCW','CMvKAxmUz2v0','yxbPx2TLEs5JCMvHDgu','yMfZzty0lMvUy29Kzq','BgLTAxq','CMv2zxjZzv9Nzw9JB2rL','C2X1z2LMEq','y2fTzwW','DxrPBgL0Es5KyxrLx3rPBwu','DxrPBgL0Es5ZDhjPBMC','C2HHBgXVD19LCxvHBa','AxnFC2fTzv90ExbL','AgfZAc5ZAgeX','CMvWzwf0','CMfUzg9T','vxrPBgL0Eq'];_0x315a=function(){return _0x524673;};return _0x315a();}function defineCustomConnectorFromList(_0x2e3332,_0x596611){const _0x458ead=_0xa92281,_0x16cbfe=Object['fromEntries'](_0x596611[_0x458ead(0x207)](_0x20d210=>[_0x20d210,_0x20d210]));return{'id':_0x2e3332,'actions':_0x16cbfe};}function isTypedConnectorDef(_0x16718f){const _0x5ec577=_0xa92281;return typeof _0x16718f===_0x5ec577(0x1f9)&&_0x16718f!==null&&'__schemas'in _0x16718f&&'id'in _0x16718f&&_0x5ec577(0x282)in _0x16718f&&typeof _0x16718f['id']===_0x5ec577(0x2b7);}function isCustomConnectorDef(_0x11dda9){const _0x3e6187=_0xa92281;return typeof _0x11dda9===_0x3e6187(0x1f9)&&_0x11dda9!==null&&'id'in _0x11dda9&&'actions'in _0x11dda9&&typeof _0x11dda9['id']===_0x3e6187(0x2b7)&&typeof _0x11dda9[_0x3e6187(0x282)]===_0x3e6187(0x1f9);}function defineTypedConnector(_0x422171,_0x508686,_0x484229){return{'id':_0x422171,'actions':_0x508686,'__schemas':_0x484229};}function getConnectorActions(_0x14b21f){const _0x2c5adb=_0xa92281,_0x5692fd=exports[_0x2c5adb(0x264)][_0x14b21f];if(!_0x5692fd)return[];return Object[_0x2c5adb(0x201)](_0x5692fd);}function listBuiltInConnectors(){const _0x1a4699=_0xa92281,_0x37a097=[];for(const [_0x23a35b,_0xaa2b8]of Object[_0x1a4699(0x1e9)](exports[_0x1a4699(0x264)])){_0x37a097[_0x1a4699(0x202)]({'id':_0x23a35b,'category':_0x23a35b['includes']('.')?_0x23a35b[_0x1a4699(0x234)]('.')[0x0]:'custom','actions':Object['values'](_0xaa2b8)});}return _0x37a097;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/decorators/build.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAKnD,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,GAAG,GAAG,SAAS,CA+DpE;AAED,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAuDhF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0x4370(_0x1195de,_0x3796de){_0x1195de=_0x1195de-0x140;const _0x473033=_0x4730();let _0x43709b=_0x473033[_0x1195de];if(_0x4370['DtlOgk']===undefined){var _0x20ec52=function(_0x30d930){const _0xb8e766='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2d919c='',_0x1bcac8='';for(let _0x2aabb0=0x0,_0x377391,_0x56e220,_0x55658b=0x0;_0x56e220=_0x30d930['charAt'](_0x55658b++);~_0x56e220&&(_0x377391=_0x2aabb0%0x4?_0x377391*0x40+_0x56e220:_0x56e220,_0x2aabb0++%0x4)?_0x2d919c+=String['fromCharCode'](0xff&_0x377391>>(-0x2*_0x2aabb0&0x6)):0x0){_0x56e220=_0xb8e766['indexOf'](_0x56e220);}for(let _0x272202=0x0,_0x572854=_0x2d919c['length'];_0x272202<_0x572854;_0x272202++){_0x1bcac8+='%'+('00'+_0x2d919c['charCodeAt'](_0x272202)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1bcac8);};_0x4370['GuUXAM']=_0x20ec52,_0x4370['LpOddZ']={},_0x4370['DtlOgk']=!![];}const _0x3a2de4=_0x473033[0x0],_0x1019f5=_0x1195de+_0x3a2de4,_0x21d34f=_0x4370['LpOddZ'][_0x1019f5];return!_0x21d34f?(_0x43709b=_0x4370['GuUXAM'](_0x43709b),_0x4370['LpOddZ'][_0x1019f5]=_0x43709b):_0x43709b=_0x21d34f,_0x43709b;}const _0x5b4c57=_0x4370;(function(_0x30c9ae,_0x5cf9f6){const _0x391d2b=_0x4370,_0x1a5b91=_0x30c9ae();while(!![]){try{const _0xa27ee7=parseInt(_0x391d2b(0x170))/0x1+parseInt(_0x391d2b(0x17a))/0x2*(-parseInt(_0x391d2b(0x166))/0x3)+parseInt(_0x391d2b(0x17b))/0x4*(parseInt(_0x391d2b(0x153))/0x5)+parseInt(_0x391d2b(0x160))/0x6*(parseInt(_0x391d2b(0x169))/0x7)+parseInt(_0x391d2b(0x157))/0x8*(parseInt(_0x391d2b(0x15d))/0x9)+-parseInt(_0x391d2b(0x156))/0xa+-parseInt(_0x391d2b(0x162))/0xb;if(_0xa27ee7===_0x5cf9f6)break;else _0x1a5b91['push'](_0x1a5b91['shift']());}catch(_0x43a346){_0x1a5b91['push'](_0x1a5b91['shift']());}}}(_0x4730,0x41ad0));function _0x4730(){const _0x175089=['C3rLChm','B3jKzxjlzxK','zw5KCg9PBNrZ','C29Tzq','nuTJu01AEq','y29UBMvJDg9YtMfTzq','ywn0AxzL','mJaYntq3mgnuA0fYBG','ohn5yLPeBG','Cg9ZDa','igLZig5VDcbKzwnVCMf0zwqGD2L0Acbaq29UBMvJDg9Yq2XHC3m','zxHLy3v0zq','ChjVDg90ExbL','DhjPz2DLCG','mtmWnZq2nNvXqMTAyq','C3rHz2u','ChvZAa','mJrbzxvTshi','D29YA2zSB3C','nZK4nZy2mw54r09LBW','BMfTzq','BgvUz3rO','ChjL','nJu0yuHUDuLn','zMLUza','q09erq','odKWntG5BLbXtLvs','D29YA2zSB3Djza','yNvPBgrdB25Uzwn0B3jgCM9Tq2XHC3m','zw5KCg9PBNq','yNvPBgrxB3jRzMXVD0zYB21dBgfZCW','lI4VDhLWzxmVD29YA2zSB3C','x3bYzq','ndGWndm3s3LzBxHz','igLZigfUieHuvfaGzw5KCg9PBNqGyw5KihnOB3vSzcbIzsbLEgvJDxrLzcbIEsb0AguGu0rlihj1BM5LCIbPBMHLCMvUDgX5lG','Ahr0CenVBMzPzW','Bwv0Ag9K','C29YDa','zwXZzq','zMfJDg9YEq','ywn0Aw9UtMfTzq','Bwv0Ag9Ks2v5','v29YA2zSB3DtDgvWvhLWzq','mZK0EMnNzLrn','ndi0mtmYAMPsBMjm','qwn0Aw9Uia','D29YA2zSB3Doyw1L','zM9Y','Aw5KzxHpzG','Aw5WDxrFzNjVBq','D2L0AfrOzw5fBhnL','DhLWzq','C3rLCeLK','y3vZDg9T','z2v0t3jdCMvHDgvxB3jRzMXVD01LDge','ywn0Aw9UCW','DhjPBq','BgfZDeLUzgv4t2y','Cgf0Aa','y29UBMvJDg9Yswq','Aw5MzxjxB3jRzMXVD0LKrNjVBunSyxnZtMfTzq','CMvWBgfJzq','Cg9ZDf9ZB3vYy2u','C2fUAxrPEMvtDgvWswq'];_0x4730=function(){return _0x175089;};return _0x4730();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x5b4c57(0x16d)]=buildWorkflowFromClass,exports[_0x5b4c57(0x16b)]=buildConnectorFromClass;const workflow_1=require(_0x5b4c57(0x16e)),metadata_1=require('./metadata');function buildWorkflowFromClass(_0x2d919c){const _0x1b04ed=_0x5b4c57,_0x1bcac8=(0x0,metadata_1[_0x1b04ed(0x145)])(_0x2d919c),_0x2aabb0=_0x1bcac8[_0x1b04ed(0x16a)]??(0x0,metadata_1[_0x1b04ed(0x14b)])(_0x2d919c?.[_0x1b04ed(0x163)]??_0x1b04ed(0x161)),_0x377391=_0x1bcac8[_0x1b04ed(0x17d)]??_0x2aabb0,_0x56e220=[..._0x1bcac8[_0x1b04ed(0x14f)]??[]][_0x1b04ed(0x174)]((_0x1c1d0d,_0x174abc)=>_0x1c1d0d[_0x1b04ed(0x150)]-_0x174abc['orderKey']),_0x55658b=[];let _0x272202=undefined;for(const _0x4f754d of _0x56e220){const _0x26e050=(0x0,metadata_1[_0x1b04ed(0x14e)])(_0x4f754d[_0x1b04ed(0x143)]),_0x264c00=_0x4f754d[_0x1b04ed(0x15e)]??_0x1b04ed(0x165),_0x3a47df=_0x2d919c?.[_0x1b04ed(0x15b)]?.[_0x4f754d[_0x1b04ed(0x178)]];let _0x57cdce=undefined;if(typeof _0x3a47df==='function'){const _0x1c982a=_0x3a47df['toString'](),_0x3066c7=_0x1c982a[_0x1b04ed(0x17f)]('{'),_0x4c96ef=_0x1c982a[_0x1b04ed(0x148)]('}');if(_0x3066c7>=0x0&&_0x4c96ef>_0x3066c7){let _0x5d99d5=_0x1c982a['slice'](_0x3066c7+0x1,_0x4c96ef);_0x5d99d5=_0x5d99d5[_0x1b04ed(0x14c)](/\/\*[\s\S]*?\*\//g,'')[_0x1b04ed(0x14c)](/\/\/.*$/gm,'')[_0x1b04ed(0x147)]();if(_0x5d99d5[_0x1b04ed(0x164)]>0x0)_0x57cdce=_0x5d99d5;}}let _0x27792a=_0x4f754d[_0x1b04ed(0x176)](_0x26e050);_0x264c00===_0x1b04ed(0x158)&&_0x57cdce&&(_0x27792a[_0x1b04ed(0x14d)]=_0x57cdce);_0x27792a=(0x0,metadata_1[_0x1b04ed(0x141)])(_0x27792a,_0x4f754d['then'],_0x4f754d[_0x1b04ed(0x175)]);const _0x4ab725=_0x264c00===_0x1b04ed(0x165)&&_0x57cdce,_0x528bb2=_0x4ab725?_0x26e050+_0x1b04ed(0x16f):undefined;_0x27792a[_0x1b04ed(0x140)]=_0x4ab725?_0x528bb2:_0x272202,_0x55658b[_0x1b04ed(0x15f)](_0x27792a),_0x264c00===_0x1b04ed(0x165)&&_0x57cdce&&_0x55658b['splice'](_0x55658b[_0x1b04ed(0x164)]-0x1,0x0,{'id':_0x528bb2,'type':workflow_1[_0x1b04ed(0x179)][_0x1b04ed(0x168)],'source':_0x57cdce,'input_from':_0x272202}),_0x272202=_0x26e050;}const _0x572854=_0x1bcac8[_0x1b04ed(0x15c)]??{'type':workflow_1['WorkflowTriggerType']['MANUAL']},_0x218cc1={'_id':(0x0,metadata_1[_0x1b04ed(0x14e)])(_0x2aabb0),'name':_0x377391,'trigger':_0x572854,'steps':_0x55658b,'status':_0x1b04ed(0x155),'__rawId':_0x2aabb0};return _0x218cc1;}function buildConnectorFromClass(_0x59548f){const _0x196883=_0x5b4c57,_0x2975b1=_0x59548f[Symbol[_0x196883(0x17e)]('cliodot:connectorMeta')];if(!_0x2975b1)throw new Error('Class\x20'+_0x59548f[_0x196883(0x163)]+_0x196883(0x159));const _0x101a6d={},_0x40e9f7=[];for(const _0x4a5995 of _0x2975b1[_0x196883(0x146)]){_0x101a6d[_0x4a5995['methodKey']]=_0x4a5995['actionName'],_0x4a5995[_0x196883(0x142)]===_0x196883(0x16c)&&_0x40e9f7[_0x196883(0x15f)]({'name':_0x4a5995[_0x196883(0x177)],'method':_0x4a5995['httpConfig'][_0x196883(0x173)],'path':_0x4a5995['httpConfig'][_0x196883(0x149)],..._0x4a5995[_0x196883(0x172)]});}const _0x5613a=new _0x59548f(),_0x551850={'_id':_0x2975b1[_0x196883(0x14a)],'id':_0x2975b1['connectorId'],'name':_0x2975b1[_0x196883(0x154)],'actions':_0x101a6d,..._0x2975b1['config']};_0x40e9f7[_0x196883(0x164)]>0x0&&(_0x551850[_0x196883(0x151)]=_0x40e9f7);const _0x3c1a1b=_0x2975b1[_0x196883(0x146)][_0x196883(0x152)](_0xd05574=>_0xd05574['type']===_0x196883(0x144));return _0x3c1a1b&&(_0x551850[_0x196883(0x15a)]=async(_0x1be385,_0x58c313)=>{const _0x40f09e=_0x196883,_0x59ed74=_0x2975b1[_0x40f09e(0x146)][_0x40f09e(0x167)](_0x5c8009=>_0x5c8009[_0x40f09e(0x177)]===_0x1be385||_0x5c8009[_0x40f09e(0x178)]===_0x1be385||_0x101a6d[_0x5c8009[_0x40f09e(0x178)]]===_0x1be385);if(!_0x59ed74)throw new Error(_0x40f09e(0x17c)+_0x1be385+'\x20not\x20found\x20on\x20connector\x20'+_0x2975b1['connectorId']);if(_0x59ed74[_0x40f09e(0x142)]===_0x40f09e(0x144))return _0x5613a[_0x59ed74[_0x40f09e(0x178)]](_0x58c313);throw new Error('Action\x20'+_0x1be385+_0x40f09e(0x171));}),_0x551850;}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { HttpMethod } from "../types/builtin";
|
|
2
|
+
/**
|
|
3
|
+
* Marks a class as a Connector Definition
|
|
4
|
+
*/
|
|
5
|
+
export declare function ConnectorClass(connectorId: string, connectorName?: string | any, config?: any): (ctor: any) => void;
|
|
6
|
+
/**
|
|
7
|
+
* Registers a remote HTTP execution action.
|
|
8
|
+
*/
|
|
9
|
+
export declare function ActionEndpoint(actionName: string, method: HttpMethod, path: string, config?: any): (target: any, propertyKey: string) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Registers a custom execution method locally on the class instance.
|
|
12
|
+
*/
|
|
13
|
+
export declare function ActionCustom(actionName: string): (target: any, propertyKey: string) => void;
|
|
14
|
+
//# sourceMappingURL=connector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../src/decorators/connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD;;GAEG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,IAC3E,MAAM,GAAG,UAW3B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,GAAG,IAEK,QAAQ,GAAG,EAAE,aAAa,MAAM,UAclD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,IAC5B,QAAQ,GAAG,EAAE,aAAa,MAAM,UASlD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0xb001(){const _0x3dc809=['mtbJEg12v0S','qwn0Aw9Uq3vZDg9T','y29UzMLN','odK0mZG0t3rbsvn0','mZGWmJu3oxLHy2jstG','y29UC3rYDwn0B3i','qwn0Aw9Urw5KCg9PBNq','lI9TzxrHzgf0yq','x19LC01VzhvSzq','mJm4odyYn2X2uKrHAa','mtzctgfjAuW','nJu2mZLiD1nwDhq','y29UBMvJDg9YtMfTzq','nJvVquzkELu','odHIBwLKrMO','nJK2nZjUq05AB0C','z2v0t3jdCMvHDgvdB25Uzwn0B3jnzxrH','ywn0Aw9UCW','zgvMAw5LuhjVCgvYDhK','zw5KCg9PBNq','mta3nta5mKfMB2r2sW','y3vZDg9T','mtv3sezyENC','ndm5q3nJrvvA','q29UBMvJDg9Yq2XHC3m','nti2uM9ps1DR','B2jQzwn0','y29UBMvJDg9Yswq'];_0xb001=function(){return _0x3dc809;};return _0xb001();}const _0x301818=_0x76ec;function _0x76ec(_0x184a42,_0x46c72b){_0x184a42=_0x184a42-0x1e4;const _0xb00147=_0xb001();let _0x76ec93=_0xb00147[_0x184a42];if(_0x76ec['xeXAtJ']===undefined){var _0x16268e=function(_0x694d90){const _0x4d867c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xaa63a='',_0x5d186d='';for(let _0x29a189=0x0,_0xbe74c8,_0x4e667d,_0x267a89=0x0;_0x4e667d=_0x694d90['charAt'](_0x267a89++);~_0x4e667d&&(_0xbe74c8=_0x29a189%0x4?_0xbe74c8*0x40+_0x4e667d:_0x4e667d,_0x29a189++%0x4)?_0xaa63a+=String['fromCharCode'](0xff&_0xbe74c8>>(-0x2*_0x29a189&0x6)):0x0){_0x4e667d=_0x4d867c['indexOf'](_0x4e667d);}for(let _0xaaa74a=0x0,_0x4519c0=_0xaa63a['length'];_0xaaa74a<_0x4519c0;_0xaaa74a++){_0x5d186d+='%'+('00'+_0xaa63a['charCodeAt'](_0xaaa74a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5d186d);};_0x76ec['ynvSYX']=_0x16268e,_0x76ec['tfKATA']={},_0x76ec['xeXAtJ']=!![];}const _0x30f4ed=_0xb00147[0x0],_0xdb0fe=_0x184a42+_0x30f4ed,_0x605a13=_0x76ec['tfKATA'][_0xdb0fe];return!_0x605a13?(_0x76ec93=_0x76ec['ynvSYX'](_0x76ec93),_0x76ec['tfKATA'][_0xdb0fe]=_0x76ec93):_0x76ec93=_0x605a13,_0x76ec93;}(function(_0x1c1ae9,_0x58a178){const _0x22e5fa=_0x76ec,_0xf60760=_0x1c1ae9();while(!![]){try{const _0x1e40d4=parseInt(_0x22e5fa(0x1f7))/0x1*(-parseInt(_0x22e5fa(0x1f9))/0x2)+parseInt(_0x22e5fa(0x1ef))/0x3*(parseInt(_0x22e5fa(0x1ea))/0x4)+parseInt(_0x22e5fa(0x1f6))/0x5*(-parseInt(_0x22e5fa(0x1f4))/0x6)+parseInt(_0x22e5fa(0x1eb))/0x7*(-parseInt(_0x22e5fa(0x1ee))/0x8)+parseInt(_0x22e5fa(0x1e9))/0x9*(parseInt(_0x22e5fa(0x1fc))/0xa)+parseInt(_0x22e5fa(0x1e4))/0xb+-parseInt(_0x22e5fa(0x1ff))/0xc*(-parseInt(_0x22e5fa(0x1ed))/0xd);if(_0x1e40d4===_0x58a178)break;else _0xf60760['push'](_0xf60760['shift']());}catch(_0x19529a){_0xf60760['push'](_0xf60760['shift']());}}}(_0xb001,0x4e3f2));Object[_0x301818(0x1f2)](exports,_0x301818(0x1e8),{'value':!![]}),exports[_0x301818(0x1f8)]=ConnectorClass,exports[_0x301818(0x1e6)]=ActionEndpoint,exports[_0x301818(0x1fd)]=ActionCustom;const metadata_1=require(_0x301818(0x1e7));function ConnectorClass(_0xaa63a,_0x5d186d,_0x29a189){return function(_0xbe74c8){const _0x6a0bfe=_0x76ec,_0x4e667d=(0x0,metadata_1['getOrCreateConnectorMeta'])(_0xbe74c8);_0x4e667d[_0x6a0bfe(0x1fb)]=_0xaa63a,typeof _0x5d186d===_0x6a0bfe(0x1fa)?(_0x4e667d[_0x6a0bfe(0x1ec)]=_0xaa63a,_0x4e667d[_0x6a0bfe(0x1fe)]=_0x5d186d):(_0x4e667d['connectorName']=_0x5d186d||_0xaa63a,_0x4e667d[_0x6a0bfe(0x1fe)]=_0x29a189||{});};}function ActionEndpoint(_0x267a89,_0xaaa74a,_0x4519c0,_0x16cb87){return function(target,_0x56c2a5){const _0x270c39=_0x76ec,_0x240502=target['constructor'],_0x38f00d=(0x0,metadata_1[_0x270c39(0x1f0)])(_0x240502);_0x38f00d[_0x270c39(0x1f1)]['push']({'actionName':_0x267a89,'methodKey':_0x56c2a5,'type':_0x270c39(0x1f3),'httpConfig':{'method':_0xaaa74a,'path':_0x4519c0,..._0x16cb87}});};}function ActionCustom(_0x543f01){return function(target,_0x4f7a14){const _0x1530aa=_0x76ec,_0x55617b=target[_0x1530aa(0x1e5)],_0x5993a9=(0x0,metadata_1[_0x1530aa(0x1f0)])(_0x55617b);_0x5993a9['actions']['push']({'actionName':_0x543f01,'methodKey':_0x4f7a14,'type':_0x1530aa(0x1f5)});};}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { StepDecoratorOptions, ConnectorStepConfig, ConnectorStepHeaders, ConnectorStepHeaderValue, } from "./metadata";
|
|
2
|
+
export { Workflow, Http, Webhook, Job, Schedule } from "./workflow";
|
|
3
|
+
export { Connector, Util, Db, Validator, Condition, Transform, Auth, Encrypt, Responder, Code, Call, CallWorkflow, Loop, Log, Delay, Notify, Step, } from "./steps";
|
|
4
|
+
export { ConnectorClass, ActionEndpoint, ActionCustom } from "./connector";
|
|
5
|
+
export { buildWorkflowFromClass, buildConnectorFromClass } from "./build";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EACL,SAAS,EACT,IAAI,EACJ,EAAE,EACF,SAAS,EACT,SAAS,EACT,SAAS,EACT,IAAI,EACJ,OAAO,EACP,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,GAAG,EACH,KAAK,EACL,MAAM,EACN,IAAI,GACL,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC"}
|