cliodot 1.0.0 → 1.2.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 +751 -13
- package/dist/ConnectorBuilder.js +1 -1
- package/dist/Flosync.d.ts +11 -0
- package/dist/Flosync.d.ts.map +1 -1
- package/dist/Flosync.js +1 -1
- package/dist/FlosyncClient.d.ts +2 -0
- package/dist/FlosyncClient.d.ts.map +1 -1
- package/dist/FlosyncClient.js +1 -1
- package/dist/FunctionBuilder.js +1 -1
- package/dist/OAuthAppClient.d.ts +17 -0
- package/dist/OAuthAppClient.d.ts.map +1 -0
- package/dist/OAuthAppClient.js +1 -0
- 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__/OAuthAppClient.test.d.ts +2 -0
- package/dist/__tests__/OAuthAppClient.test.d.ts.map +1 -0
- package/dist/__tests__/OAuthAppClient.test.js +1 -0
- package/dist/__tests__/function.test.js +1 -1
- package/dist/__tests__/parse-api-error.test.d.ts +2 -0
- package/dist/__tests__/parse-api-error.test.d.ts.map +1 -0
- package/dist/__tests__/parse-api-error.test.js +1 -0
- 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 +396 -18
- package/dist/connectors/registry.d.ts.map +1 -1
- package/dist/connectors/registry.js +1 -1
- package/dist/decorators/build.d.ts +1 -0
- package/dist/decorators/build.d.ts.map +1 -1
- package/dist/decorators/build.js +1 -1
- 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 +4 -3
- package/dist/decorators/index.d.ts.map +1 -1
- package/dist/decorators/index.js +1 -1
- package/dist/decorators/metadata.d.ts +44 -7
- package/dist/decorators/metadata.d.ts.map +1 -1
- package/dist/decorators/metadata.js +1 -1
- package/dist/decorators/steps.d.ts +31 -11
- package/dist/decorators/steps.d.ts.map +1 -1
- package/dist/decorators/steps.js +1 -1
- package/dist/decorators/workflow.js +1 -1
- package/dist/errors.d.ts +3 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +1 -1
- package/dist/http/parse-api-error.d.ts +4 -0
- package/dist/http/parse-api-error.d.ts.map +1 -0
- package/dist/http/parse-api-error.js +1 -0
- package/dist/http/sanitize-execution-headers.d.ts +7 -0
- package/dist/http/sanitize-execution-headers.d.ts.map +1 -0
- package/dist/http/sanitize-execution-headers.js +1 -0
- package/dist/index.d.ts +8 -3
- 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.d.ts.map +1 -1
- package/dist/transformers/StepsToNodesTransformer.js +1 -1
- package/dist/transformers/WorkflowTransformer.d.ts.map +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.d.ts +11 -4
- package/dist/types/client.api.d.ts.map +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/oauth-app.api.d.ts +138 -0
- package/dist/types/oauth-app.api.d.ts.map +1 -0
- package/dist/types/oauth-app.api.js +1 -0
- package/dist/types/validator.js +1 -1
- package/dist/types/workflow.d.ts +132 -7
- package/dist/types/workflow.d.ts.map +1 -1
- package/dist/types/workflow.js +1 -1
- package/dist/validators/validators.d.ts +16 -1
- package/dist/validators/validators.d.ts.map +1 -1
- package/dist/validators/validators.js +1 -1
- package/dist/variable.d.ts +11 -0
- package/dist/variable.d.ts.map +1 -1
- package/dist/variable.js +1 -1
- package/package.json +8 -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,126 @@ 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 declare function defineRemoteConnectorRef<TActions extends Record<string, string>>(serverConnectorId: string, actions: TActions): CustomConnectorDef<TActions>;
|
|
326
|
+
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;
|
|
327
|
+
export type WireRecord<T extends Record<string, any>> = {
|
|
328
|
+
[K in keyof T]?: WireValue<T[K]>;
|
|
329
|
+
};
|
|
330
|
+
export interface ConnectorActionSchema<TBody = any, TParams = Record<string, any>, TPathParams = Record<string, any>, TResponse = any, THeaders = Record<string, unknown>, TVars = Record<string, unknown>> {
|
|
331
|
+
body?: TBody;
|
|
332
|
+
params?: TParams;
|
|
333
|
+
pathParams?: TPathParams;
|
|
334
|
+
response?: TResponse;
|
|
335
|
+
headers?: THeaders;
|
|
336
|
+
vars?: TVars;
|
|
337
|
+
}
|
|
338
|
+
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>;
|
|
339
|
+
type RequestPartsFromSchema<S> = S extends ConnectorActionSchema<infer B, infer P, infer PP, infer _R, infer H, infer V> ? {
|
|
340
|
+
body?: SchemaWire<B>;
|
|
341
|
+
params?: SchemaWire<P>;
|
|
342
|
+
pathParams?: SchemaWire<PP>;
|
|
343
|
+
headers?: SchemaWire<H> | ConnectorStepConfig["headers"];
|
|
344
|
+
vars?: SchemaWire<V>;
|
|
345
|
+
} : {};
|
|
346
|
+
/**
|
|
347
|
+
* A map of action names → their schemas.
|
|
348
|
+
*
|
|
349
|
+
* ```ts
|
|
350
|
+
* type PaystackActions = {
|
|
351
|
+
* initializeTransaction: ConnectorActionSchema<
|
|
352
|
+
* { email: string; amount: number; reference?: string },
|
|
353
|
+
* Record<string, never>,
|
|
354
|
+
* Record<string, never>,
|
|
355
|
+
* { authorization_url: string; access_code: string; reference: string },
|
|
356
|
+
* Record<string, never>,
|
|
357
|
+
* Record<string, never>
|
|
358
|
+
* >;
|
|
359
|
+
* verifyTransaction: ConnectorActionSchema<
|
|
360
|
+
* Record<string, never>,
|
|
361
|
+
* Record<string, never>,
|
|
362
|
+
* { reference: string },
|
|
363
|
+
* { status: string; amount: number }
|
|
364
|
+
* >;
|
|
365
|
+
* };
|
|
366
|
+
* ```
|
|
367
|
+
*/
|
|
368
|
+
export type ConnectorActionSchemaMap = Record<string, ConnectorActionSchema>;
|
|
369
|
+
/**
|
|
370
|
+
* A typed connector definition with full action payload/response types.
|
|
371
|
+
*
|
|
372
|
+
* - `id` — the connector ID string
|
|
373
|
+
* - `actions` — map of action names (typed strings)
|
|
374
|
+
* - `Action<K>` — helper type to extract the schema for a specific action
|
|
375
|
+
*/
|
|
376
|
+
export interface TypedConnectorDef<TActions extends Record<string, string>, TSchemas extends Record<string, ConnectorActionSchema> = Record<string, ConnectorActionSchema>> extends CustomConnectorDef<TActions> {
|
|
377
|
+
/**
|
|
378
|
+
* Type-level helper: extract payload/response types for a given action.
|
|
379
|
+
* Not a runtime value — use with `typeof` in type positions.
|
|
380
|
+
*/
|
|
381
|
+
readonly __schemas: TSchemas;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Extracts the body type for a given action from a TypedConnectorDef.
|
|
385
|
+
*/
|
|
386
|
+
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;
|
|
387
|
+
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>;
|
|
388
|
+
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>;
|
|
389
|
+
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;
|
|
390
|
+
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>;
|
|
391
|
+
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>;
|
|
392
|
+
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">);
|
|
393
|
+
export type ConnectorRunOptionsTyped<TDef extends TypedConnectorDef<any, any>, TKey extends keyof TDef["actions"]> = ConnectorTypedRequestConfig<TDef, TKey>;
|
|
394
|
+
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> ? {
|
|
395
|
+
body?: B;
|
|
396
|
+
params?: P;
|
|
397
|
+
pathParams?: PP;
|
|
398
|
+
headers?: H;
|
|
399
|
+
vars?: V;
|
|
400
|
+
} : never;
|
|
401
|
+
export declare function isTypedConnectorDef(v: unknown): v is TypedConnectorDef<any, any>;
|
|
402
|
+
export declare function isCustomConnectorDef(v: unknown): v is CustomConnectorDef<any>;
|
|
403
|
+
/**
|
|
404
|
+
* Define a connector with fully typed actions, payloads, and responses.
|
|
405
|
+
* Use this for remote connectors where you don't have the implementation locally
|
|
406
|
+
* but want full type safety when building workflows.
|
|
407
|
+
*
|
|
408
|
+
* @example
|
|
409
|
+
* ```ts
|
|
410
|
+
* const Paystack = defineTypedConnector("paystack", {
|
|
411
|
+
* initializeTransaction: "Initialize Transaction",
|
|
412
|
+
* verifyTransaction: "Verify Transaction",
|
|
413
|
+
* listTransactions: "List Transactions",
|
|
414
|
+
* }, {
|
|
415
|
+
* initializeTransaction: {
|
|
416
|
+
* body: {} as { email: string; amount: number; reference?: string },
|
|
417
|
+
* response: {} as { authorization_url: string; access_code: string; reference: string },
|
|
418
|
+
* },
|
|
419
|
+
* verifyTransaction: {
|
|
420
|
+
* pathParams: {} as { reference: string },
|
|
421
|
+
* response: {} as { status: string; amount: number; currency: string },
|
|
422
|
+
* },
|
|
423
|
+
* listTransactions: {
|
|
424
|
+
* params: {} as { page?: number; perPage?: number; status?: string },
|
|
425
|
+
* response: {} as { data: Array<{ reference: string; amount: number }> },
|
|
426
|
+
* },
|
|
427
|
+
* });
|
|
428
|
+
*
|
|
429
|
+
* // Full type safety:
|
|
430
|
+
* type InitBody = ConnectorBody<typeof Paystack, "initializeTransaction">;
|
|
431
|
+
* // => { email: string; amount: number; reference?: string }
|
|
432
|
+
*
|
|
433
|
+
* type VerifyResponse = ConnectorResponse<typeof Paystack, "verifyTransaction">;
|
|
434
|
+
* // => { status: string; amount: number; currency: string }
|
|
435
|
+
* ```
|
|
436
|
+
*
|
|
437
|
+
* For optional runtime checks against real HTTP JSON, give each `response` value a **concrete sample object** with the same keys and representative JavaScript types (for example `{ status: "", amount: 0, currency: "" }` instead of `{} as { ... }`). Empty objects produce no runtime shape hints; samples enable shallow key and `typeof` warnings when the mapped connector response diverges.
|
|
438
|
+
*/
|
|
439
|
+
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
440
|
export declare function getConnectorActions(connectorId: string): readonly string[];
|
|
64
441
|
export declare function listBuiltInConnectors(): Array<{
|
|
65
442
|
id: string;
|
|
66
443
|
category: string;
|
|
67
444
|
actions: readonly string[];
|
|
68
445
|
}>;
|
|
446
|
+
export {};
|
|
69
447
|
//# 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,GAC9D,CAAC,OAAO,WAAW,CAAC,UAAU,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,UAAU,CAAC,GACpE,CAAC,OAAO,WAAW,CAAC,SAAS,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,SAAS,CAAC,GA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PB24','C3bSAxq','D29Yzf9JB3vUDa','DxrPBgL0Es5TyxrO','CMvWBgfJzv9Syxn0','y2vPBa','yMvMB3jLx2XHC3q','rw5JCNLWDgLVBG','mJa4neLjA0DptW','AxnFBgvZC190AgfU','CgfKx2vUza','ANnVBI5YzxnWB25Kzxi','BxLZCwWUC3LZDgvT','AxnFC2fTzv90ExbL','CgfKx2jVDgG','y3vZDg9T','Aw5Zzxj0twfUEq','zgvJB2rLx2jHC2u2na','Bwf0y2HFywXS','q29UBMvJDg9Yqwn0Aw9UCW','CgfKx3n0yxj0','CMfUzg9Tx2nOB2LJzq','CgfZC3DVCMqUC2nYExb0x2HHC2G','zMLUze9Uzq','CMvWBgfJzq','BwLU','CNnHlNzLCMLMEq','ndq0me96EvjNDq','yxbPx2TLEs52ywXPzgf0zq','Dwn3B3jKCW','z2v0q29UBMvJDg9Yqwn0Aw9UCW','z2vVy29Kzq','yxzLCMfNzq','r2vV','zMXVB3i','mZeXndC0B3nhqKjY','z2v0x2n1CNjLBNrFzgf0zq','D29Yzhm','CgfYC2vFzgf0zq','CNnHlMrLy3j5Chq','yxjYyxLFzgLMzMvYzw5Jzq','y29UDgfPBNnFywXS','zgLMzL9HCNjHExm','zg9LC250x2nVBNrHAw4','twf0Aa','CgvYy2vUDgfNzq','y29Uy2f0','uMvKAxm','Aw5Zzxj0t25L','CgfZC3DVCMqUzw5JCNLWDgLVBG','CMvWBgfJzv9HCNjHEq','CMfUzg9Tx2LUDa','mZyXmtKXmhnZBM1WCa','CMfUzg9Tx2fSCgHHBNvTzxjPyW','zMLUza','C3rHCNq','C3rHCNrZx3DPDgG','CMv2zxjZzq','CMvWBgfJzv9HBgW','CMvTB3zL','ywvZlMDLBMvYyxrLx2L2','yxbH','zw5JB2rLx3vYAq','BgvUz3rO','CMfUzg9Tx3v1Awq','ywvZlMvUy3j5ChrPB24','ChvZAa','zw5Kx29Mx3DLzwS','AxnFzw1WDhK','Dg9FDxbWzxjJyxnL','yMv0D2vLBG','AgfZAc5ZAgeX','zNjVBuvUDhjPzxm','C2X1z2LMEq','tw9Uz29eqG','Cg93zxi','rgf0ywjHC2u','DhjPBv9LBMq','zgvMAw5LuhjVCgvYDhK','yMv0D2vLBL9MAxjZDa','BgLZDej1AwX0sw5dB25Uzwn0B3jZ','DwXPza','CgfZC3DVCMqUCgjRzgyYx3zLCMLMEq','q29UBMvJDg9Yswq','zw5Kx29Mx21VBNrO','CgfZC3DVCMqUyxjNB24Yx2HHC2G','ywrK','BgnMAxjZDa','ugfZC3DVCMq','CMvWBgfJzv9MAxjZDa','C2H1zMzSzv9HCNjHEq','quvt','CMvKAxmUAgDLDa','CNnHlMvUy3j5Chq','y2XHBxa','AxnFDwXPza','CgfZC3DVCMqUC2nYExb0x3zLCMLMEq','A2vIywi','C3vT','C2LTAwXHCML0Ev9Zy29Yzq','yMvHCMvYlNn5C3rLBq','CMfUzg9Tx2jVB2XLyw4','z2v0x3vUAxHFDgLTzxn0yw1W','zgLMzL9Izxr3zwvUx2rHDgvZ','zw5JB2rLx2jHC2u2na','zgvMAw5Lq3vZDg9Tq29UBMvJDg9YrNjVBuXPC3q','z2v0x2n1CNjLBNrFzgf0zxrPBwu','C3fYDa','z2v0x2jVDw5KAw5Nx2jVEa','ywjZ','yMvHCMvYlNzHBgLKyxrL','CMvWBgfJzv9LBMq','C3rHCNrFB2zFBw9UDgG','AgfZAa','y29TCgfYzv9ZDhjPBMDZ','AxnFDxvPza','D29Yzf93CMfW','C3r1zgX5','AxnFBNvSBf9VCL91BMrLzMLUzwq','ywrKx3rPBwu','C3f1AxnO','y2fSy3vSyxrLx2rPC3rHBMnL','C3rHCNrFB2zFEwvHCG','Ag1HyY5JCMvHDgu','Dg9FBg93zxjJyxnL','zw5Kx29Mx3LLyxi','Bwf0y2G','CMvKAxmUBhb1C2G','zxHJzxjWDa','Bw9KDwXV','y2XPB2rVDa','yxjYyxLFDw5PB24','DgfRzq','BgLZDf90Aw1LEM9Uzxm','CMfUzg9Tx2nVBg9Y','CMfUzg9Tx2jLDhDLzw4','BxvSDgLWBhK','AgfZAc5LBMnYExb0Aw9U','nZa0mJG2Cerps0jc','y29UDMvYDf9JB29YzgLUyxrLCW','AxnFyxnJAwK','yxjYyxLFAw50zxjZzwn0Aw9U','CgX1CMfS','mty2nde4mJHIDwPSA20','zgvKDxbSAwnHDgu','y2HHCL9HDa','CMvKAxmUC2v0','ywz0zxi','DxrPBgL0Es5Nzw8','ywvZlMrLy3j5Chq','zM9YBwf0x2rHDgu','CMvKAxmUzgvSzxrL','DxrPBgL0Es5Yyw5KB20','C3vIC3rYx3jLCgXHy2u','CMvWBgfJzv9TyxrJAgvZ','qxbPs2v5','zgvJB2rLx3vYAq','C3vIC3rY','vxrPBgL0Eq','CNnHlNnPz24','ndy4nvHty1fxEG','txLtuuW','CMvKAxmUC3LZDgvT','qxv0Aa','Ag1HyY5LBMnYExb0Aw9U','nZbbrfH1BLa','zg9LC250x2vUzf93AxrO','BwfZAW','DxrPBgL0Es5KyxrLx3rPBwu','y29TCgfYzv9KyxrLCW','zgvLCf9LCxvHBa','ug9ZDgDYzvnrta','zM9YBwf0','CMfUzg9T','D3jHCa','ywvZlMvUy3j5Chq','q29TCgfYzq','AxnFzxf1ywW','C3rHCNrFB2zFzgf5','mJuWDvjRyLvk','C3vIDhjHy3rFDgLTzq','DwnMAxjZDa','AxnFBgvHCf95zwfY','y2HVCf9LBMq','y29UDMvYDf90Aw1LEM9Uzq','zgvSzxrLt25L','y2XHC3nFyMfZzw5HBwu','uMfUzg9T','Dw53CMfW','AxnFBM90x2vXDwfS','CxvLCNK','DxbKyxrLt25L','C25HA2u','C3vIDhjHy3q','n3HPBMjstq','mZa2mfn0vxbjDG','CNnHlMDLBMvYyxrLx2TLExbHAxi','DMfSAwrHDgu','z2v0x2n1CNjLBNrFDgLTzq','zw5KC193AxrO','Bg9N','AxnFz3jLyxrLCL90AgfU','CMvKAxmUAhnLDa','C2LUz3vSyxi','DxrPBgL0Es5JB21WyxjL','nJm4mufTzKn3yW','y29UDgfPBNm','y29UzgL0Aw9UlMXVz2LJ','AxnFBwf0y2G','AxnFy2HHBMDLza','Aw5JBhvKzxm','ywz0zxjFBgfZDa','CMvKAxmUz2v0','CMvKAxmUEMfKza','ywvZlMDLBMvYyxrLx2TLEq','qMvHCMvY','DxvPza','CMvKAxmUzgvSzxrLx2TLEq','CgfZC3DVCMqUyMnYExb0x2HHC2G','CMv2zxjZzv9Nzw9JB2rL','DhjPBq','y2fTzwW'];_0x3dd3=function(){return _0x5363ea;};return _0x3dd3();}const _0x2de6c1=_0x8db8;(function(_0x42ef54,_0x55dc2d){const _0x5a8170=_0x8db8,_0x20e1d2=_0x42ef54();while(!![]){try{const _0x38ade1=parseInt(_0x5a8170(0x152))/0x1+-parseInt(_0x5a8170(0x1e2))/0x2*(parseInt(_0x5a8170(0x1fc))/0x3)+-parseInt(_0x5a8170(0x221))/0x4*(-parseInt(_0x5a8170(0x1cf))/0x5)+-parseInt(_0x5a8170(0x163))/0x6*(-parseInt(_0x5a8170(0x1f1))/0x7)+-parseInt(_0x5a8170(0x14a))/0x8*(-parseInt(_0x5a8170(0x1f2))/0x9)+parseInt(_0x5a8170(0x1d4))/0xa*(parseInt(_0x5a8170(0x1b9))/0xb)+-parseInt(_0x5a8170(0x1be))/0xc;if(_0x38ade1===_0x55dc2d)break;else _0x20e1d2['push'](_0x20e1d2['shift']());}catch(_0x33ed9f){_0x20e1d2['push'](_0x20e1d2['shift']());}}}(_0x3dd3,0x5e320));Object[_0x2de6c1(0x17d)](exports,'__esModule',{'value':!![]}),exports[_0x2de6c1(0x142)]=exports[_0x2de6c1(0x182)]=void 0x0,exports[_0x2de6c1(0x210)]=defineCustomConnector,exports[_0x2de6c1(0x198)]=defineCustomConnectorFromList,exports[_0x2de6c1(0x14d)]=getConnectorActions,exports[_0x2de6c1(0x17f)]=listBuiltInConnectors,exports[_0x2de6c1(0x182)]={'Database':{'MongoDB':'mongodb.system','MySQL':_0x2de6c1(0x13b),'PostgreSQL':'postgres.system','Redis':_0x2de6c1(0x1d1)},'Auth':{'Bearer':_0x2de6c1(0x193),'ApiKey':'api_key.system'},'Utility':{'DateTime':_0x2de6c1(0x1d7),'String':'utility.string','Random':_0x2de6c1(0x1c7),'Math':_0x2de6c1(0x21c),'Compare':_0x2de6c1(0x1fb),'Geo':_0x2de6c1(0x1c3)},'Encryption':{'Base64':'base64.encryption','Hash':_0x2de6c1(0x1b8),'AES':_0x2de6c1(0x170),'RSA':_0x2de6c1(0x219),'HMAC':_0x2de6c1(0x1d3),'Password':_0x2de6c1(0x160)},'Responder':{'Json':_0x2de6c1(0x224)},'Condition':{'Logic':_0x2de6c1(0x1fe)},'Cliodot':_0x2de6c1(0x1b1)},exports[_0x2de6c1(0x142)]={[exports['ConnectorId'][_0x2de6c1(0x17b)][_0x2de6c1(0x179)]]:[_0x2de6c1(0x15f),_0x2de6c1(0x13f),_0x2de6c1(0x146),_0x2de6c1(0x165),_0x2de6c1(0x1ee),_0x2de6c1(0x1e8)],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x17b)][_0x2de6c1(0x1d0)]]:['query'],[exports['ConnectorId']['Database'][_0x2de6c1(0x1da)]]:[_0x2de6c1(0x1ed)],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x17b)][_0x2de6c1(0x15e)]]:[_0x2de6c1(0x203),_0x2de6c1(0x1c1),_0x2de6c1(0x1c6),_0x2de6c1(0x1f9),_0x2de6c1(0x18b),_0x2de6c1(0x1ae),_0x2de6c1(0x212),_0x2de6c1(0x204),'redis.create_hash',_0x2de6c1(0x208)],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x1d2)][_0x2de6c1(0x206)]]:[_0x2de6c1(0x19d),'validate'],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x1d2)][_0x2de6c1(0x1ca)]]:[_0x2de6c1(0x14b),_0x2de6c1(0x1f4)],[exports['ConnectorId'][_0x2de6c1(0x1cd)]['DateTime']]:[_0x2de6c1(0x153),_0x2de6c1(0x1f5),_0x2de6c1(0x199),_0x2de6c1(0x1db),_0x2de6c1(0x1c5),_0x2de6c1(0x155),_0x2de6c1(0x1a6),_0x2de6c1(0x1e3),_0x2de6c1(0x196),_0x2de6c1(0x1e1),'end_of_day','start_of_week',_0x2de6c1(0x172),_0x2de6c1(0x19f),_0x2de6c1(0x183),_0x2de6c1(0x1a9),_0x2de6c1(0x1ac),_0x2de6c1(0x1e7),'get_timezone',_0x2de6c1(0x1b4),_0x2de6c1(0x1e5),_0x2de6c1(0x195),'from_unix_timestamp'],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x1cd)]['String']]:[_0x2de6c1(0x15d),_0x2de6c1(0x21a),_0x2de6c1(0x213),_0x2de6c1(0x147),_0x2de6c1(0x169),_0x2de6c1(0x20b),'trim_start',_0x2de6c1(0x17c),_0x2de6c1(0x174),_0x2de6c1(0x1ab),'capitalize','substring',_0x2de6c1(0x16e),_0x2de6c1(0x1fd),_0x2de6c1(0x167),_0x2de6c1(0x1f6),'remove_whitespace',_0x2de6c1(0x178),_0x2de6c1(0x143),_0x2de6c1(0x223),_0x2de6c1(0x168),_0x2de6c1(0x197),_0x2de6c1(0x140),_0x2de6c1(0x16d),_0x2de6c1(0x1cb),_0x2de6c1(0x1c2),_0x2de6c1(0x202),'before',_0x2de6c1(0x21f),_0x2de6c1(0x175),_0x2de6c1(0x17e),_0x2de6c1(0x20c),_0x2de6c1(0x1c0),_0x2de6c1(0x215),_0x2de6c1(0x1e6),_0x2de6c1(0x158),_0x2de6c1(0x15a),'doesnt_start_with',_0x2de6c1(0x1d5),_0x2de6c1(0x1bf),_0x2de6c1(0x1af),'finish',_0x2de6c1(0x166),'headline','is',_0x2de6c1(0x1bb),'is_json',_0x2de6c1(0x18e),'is_url',_0x2de6c1(0x1a2),_0x2de6c1(0x173),_0x2de6c1(0x1ff),_0x2de6c1(0x190),_0x2de6c1(0x1ef),_0x2de6c1(0x1a4),'title',_0x2de6c1(0x186),_0x2de6c1(0x1e4),_0x2de6c1(0x14c),'ucsplit','limit',_0x2de6c1(0x1d6),_0x2de6c1(0x1ad),_0x2de6c1(0x141),_0x2de6c1(0x13d),_0x2de6c1(0x1bd),_0x2de6c1(0x1fa),'position',_0x2de6c1(0x1dc),_0x2de6c1(0x16a),_0x2de6c1(0x211),_0x2de6c1(0x161),_0x2de6c1(0x188),_0x2de6c1(0x21d),_0x2de6c1(0x1c9),'replace_start',_0x2de6c1(0x19e),_0x2de6c1(0x1a7),_0x2de6c1(0x1cc),'substr_count',_0x2de6c1(0x1c8),'swap',_0x2de6c1(0x1b3),_0x2de6c1(0x21b),_0x2de6c1(0x1a3),_0x2de6c1(0x154),_0x2de6c1(0x1dd),_0x2de6c1(0x1eb),_0x2de6c1(0x207),_0x2de6c1(0x180),'strip_tags','ascii',_0x2de6c1(0x16c),_0x2de6c1(0x1e9)],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x1cd)][_0x2de6c1(0x1ea)]]:[_0x2de6c1(0x162),'random_float','random_string',_0x2de6c1(0x16f),'uuid',_0x2de6c1(0x194),_0x2de6c1(0x144),'random_password','random_hex',_0x2de6c1(0x164),_0x2de6c1(0x216),_0x2de6c1(0x1b5),_0x2de6c1(0x189)],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x1cd)][_0x2de6c1(0x15b)]]:[_0x2de6c1(0x185),_0x2de6c1(0x1f0),_0x2de6c1(0x1b7),'divide',_0x2de6c1(0x1b0),_0x2de6c1(0x17a),_0x2de6c1(0x20e),_0x2de6c1(0x151),_0x2de6c1(0x21e),_0x2de6c1(0x19c),_0x2de6c1(0x148),'max',_0x2de6c1(0x14f),_0x2de6c1(0x191),_0x2de6c1(0x18d),_0x2de6c1(0x1b6),_0x2de6c1(0x15c),'percentage_of',_0x2de6c1(0x19a),_0x2de6c1(0x1f7)],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x1cd)][_0x2de6c1(0x1df)]]:['diff_objects',_0x2de6c1(0x159),_0x2de6c1(0x1a1),_0x2de6c1(0x20d),_0x2de6c1(0x1d8),_0x2de6c1(0x200),_0x2de6c1(0x1e0),_0x2de6c1(0x1ec),_0x2de6c1(0x1f8),_0x2de6c1(0x222),'is_between',_0x2de6c1(0x173),_0x2de6c1(0x1a5),_0x2de6c1(0x13c),_0x2de6c1(0x1d9),'shallow_equal',_0x2de6c1(0x192),_0x2de6c1(0x1bc),_0x2de6c1(0x1b2),_0x2de6c1(0x157)],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x1cd)][_0x2de6c1(0x150)]]:[_0x2de6c1(0x1a8),_0x2de6c1(0x214),_0x2de6c1(0x19b),_0x2de6c1(0x20a),_0x2de6c1(0x14e),_0x2de6c1(0x1ba)],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x220)]['Base64']]:['base64.encode','base64.decode'],[exports['ConnectorId'][_0x2de6c1(0x220)]['Hash']]:[_0x2de6c1(0x1a0),'hash.md5',_0x2de6c1(0x176),'hash.sha256','hash.sha512'],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x220)][_0x2de6c1(0x18a)]]:[_0x2de6c1(0x1de),_0x2de6c1(0x1c4),_0x2de6c1(0x205),_0x2de6c1(0x16b)],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x220)]['RSA']]:[_0x2de6c1(0x1f3),_0x2de6c1(0x18c),_0x2de6c1(0x156),_0x2de6c1(0x1ce),_0x2de6c1(0x149)],[exports[_0x2de6c1(0x182)][_0x2de6c1(0x220)][_0x2de6c1(0x20f)]]:[_0x2de6c1(0x1aa),_0x2de6c1(0x217)],[exports[_0x2de6c1(0x182)]['Encryption'][_0x2de6c1(0x187)]]:[_0x2de6c1(0x184),'password.argon2_verify','password.pbkdf2_hash',_0x2de6c1(0x181),_0x2de6c1(0x145),_0x2de6c1(0x18f),_0x2de6c1(0x209),'password.bcrypt_verify','password.generate_salt']};function defineCustomConnector(_0x553de1,_0x5c7734){return{'id':_0x553de1,'actions':_0x5c7734};}function defineCustomConnectorFromList(_0x52738f,_0x1c4dd5){const _0x4a89d3=_0x2de6c1,_0x54e179=Object[_0x4a89d3(0x177)](_0x1c4dd5[_0x4a89d3(0x218)](_0x429e80=>[_0x429e80,_0x429e80]));return{'id':_0x52738f,'actions':_0x54e179};}function _0x8db8(_0x1a0d5b,_0x331934){_0x1a0d5b=_0x1a0d5b-0x13b;const _0x3dd324=_0x3dd3();let _0x8db880=_0x3dd324[_0x1a0d5b];if(_0x8db8['PLGxgn']===undefined){var _0x21284b=function(_0x4dfb92){const _0x2fc0c1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x553de1='',_0x5c7734='';for(let _0x52738f=0x0,_0x1c4dd5,_0x54e179,_0x429e80=0x0;_0x54e179=_0x4dfb92['charAt'](_0x429e80++);~_0x54e179&&(_0x1c4dd5=_0x52738f%0x4?_0x1c4dd5*0x40+_0x54e179:_0x54e179,_0x52738f++%0x4)?_0x553de1+=String['fromCharCode'](0xff&_0x1c4dd5>>(-0x2*_0x52738f&0x6)):0x0){_0x54e179=_0x2fc0c1['indexOf'](_0x54e179);}for(let _0x59e4db=0x0,_0x1b3c7f=_0x553de1['length'];_0x59e4db<_0x1b3c7f;_0x59e4db++){_0x5c7734+='%'+('00'+_0x553de1['charCodeAt'](_0x59e4db)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5c7734);};_0x8db8['bobmWv']=_0x21284b,_0x8db8['lyJyLD']={},_0x8db8['PLGxgn']=!![];}const _0x4fbcc8=_0x3dd324[0x0],_0x2e7bd3=_0x1a0d5b+_0x4fbcc8,_0x1ad7fe=_0x8db8['lyJyLD'][_0x2e7bd3];return!_0x1ad7fe?(_0x8db880=_0x8db8['bobmWv'](_0x8db880),_0x8db8['lyJyLD'][_0x2e7bd3]=_0x8db880):_0x8db880=_0x1ad7fe,_0x8db880;}function getConnectorActions(_0x59e4db){const _0x899500=_0x2de6c1,_0x1b3c7f=exports[_0x899500(0x142)][_0x59e4db];return _0x1b3c7f??[];}function listBuiltInConnectors(){const _0x45807e=_0x2de6c1,_0x4d83e0=[];for(const [_0x508e05,_0x5bb0f0]of Object['entries'](exports[_0x45807e(0x142)])){_0x4d83e0[_0x45807e(0x171)]({'id':_0x508e05,'category':_0x508e05[_0x45807e(0x201)]('.')?_0x508e05[_0x45807e(0x21a)]('.')[0x0]:_0x45807e(0x13e),'actions':_0x5bb0f0});}return _0x4d83e0;}
|
|
1
|
+
'use strict';function _0x3cfb(){const _0x381fa5=['AxnFzw1WDhK','Dwn3B3jKCW','DMfSAwrHDgu','Bwf4','BgLTAxq','AxnFDwXPza','y2XHBxa','CgX1CMfS','CMfUzg9Tx2LUDa','BgLZDej1AwX0sw5dB25Uzwn0B3jZ','zw5JB2rLx3vYAq','yxbH','CgfZC3DVCMqUyMnYExb0x3zLCMLMEq','ywvZlMvUy3j5Chq','CMfUzg9Tx2nOB2LJzq','zgvMAw5Lq3vZDg9Tq29UBMvJDg9Y','DxvPza','ywrKx3rPBwu','yxjYyxLFDw5PB24','se1bqW','zgvLCf9LCxvHBa','AxnFBNvSBf9VCL91BMrLzMLUzwq','CMvKAxmUAgDLDa','CgfZC3DVCMqUCgjRzgyYx3zLCMLMEq','AgfZAc5ZAgeYnty','BwLU','CMvWBgfJzv9LBMq','CMfUzg9Tx3bHC3n3B3jK','AxnFy2HHBMDLza','q29UBMvJDg9Yswq','zMLUza','rgf0ywjHC2u','AxnFBwf0y2G','yxjYyxLFAw50zxjZzwn0Aw9U','zw5JB2rLx2jHC2u2na','Dg9FDxbWzxjJyxnL','CNnHlNnPz24','nteXotu2nK1ZufvLuG','z2v0q29UBMvJDg9Yqwn0Aw9UCW','ywz0zxi','CMfUzg9Tx2HLEa','CNnHlMDLBMvYyxrLx2TLExbHAxi','DxrPBgL0Es5Yyw5KB20','mZrkEfnUEvO','y2fSy3vSyxrLx2rPC3rHBMnL','AxndDxn0B21dB25Uzwn0B3jezwy','y2XPB2rVDa','ywrK','D29Yzhm','CgfYC2vFzgf0zq','CgfZC3DVCMqUyxjNB24Yx3zLCMLMEq','DgfRzq','y2vPBa','yxnJAwK','CgfZC3DVCMqUzw5JCNLWDgLVBG','zgvSzxrLt25L','y29UDMvYDf9JB29YzgLUyxrLCW','C2X1z2LMEq','zgLMzL9Izxr3zwvUx2rHDgvZ','mZa1rwzlBNvT','z2vVy29Kzq','CMvKAxmUy3jLyxrLx2HHC2G','ywvZlMrLy3j5Chq','CgfZC3DVCMqUyxjNB24Yx2HHC2G','mJiZnty0mgXptMroBa','z2v0x2n1CNjLBNrFzgf0zq','CMfUzg9Tx3v1Awq','CNnHlMvUy3j5ChrPB24','ywn0Aw9UCW','C3f1AxnO','C2H1zMzSzv9HCNjHEq','Aw5JBhvKzxm','y2HVCf9LBMq','zNjVBuvUDhjPzxm','zxHJzxjWDa','C3bSAxq','C3rHCNrFB2zFBw9UDgG','Cg9PBNrFAw5FCg9SEwDVBG','CMfUzg9Tx2zSB2f0','odGYnJq3mMTkB3npAW','sgfZAa','D29Yzf9JB3vUDa','z2v0x2n1CNjLBNrFzgf0zxrPBwu','ouTWAMLUuW','C3rYAxbFDgfNCW','CgfKx3n0yxj0','Bw9KDwXV','Ag1HyY52zxjPzNK','Ag1HyY5JCMvHDgu','mtK1mtmZmhnzqK5vtq','DxbKyxrLt25L','uLnb','y29TCgfYzv9UDw1IzxjZ','BxvSDgLWBhK','C3rHCNrFB2zFEwvHCG','Aw5Zzxj0t25L','CMvTB3zL','yMvHCMvYlNzHBgLKyxrL','C3vIC3rYAw5N','nJi5mJfIDufIueK','C3r1zgX5','AxnFANnVBG','y29UDgfPBNm','CMvKAxmUC2v0','zgLMzL9VyMPLy3rZ','vxrPBgL0Eq','CgfZC3DVCMqUC2nYExb0x2HHC2G','CMvKAxmUEMfKza','CgvYy2vUDgfNzv9VzG','rw5JCNLWDgLVBG','CgfZC3DVCMqUC2nYExb0x3zLCMLMEq','C3vT','ywvZlMDLBMvYyxrLx2L2','CMvKAxmUzgvSzxrLx2TLEq','ywvZlMDLBMvYyxrLx2TLEq','CMvWBgfJzv9HBgW','ywvZlMvUy3j5ChrPB24','y2XHC3nFyMfZzw5HBwu','AgfZAc5ZAge1mti','zMLUze9Uzq','ChvZAa','C2LUz3vSyxi','zgvMAw5Lq3vZDg9Tq29UBMvJDg9YrNjVBuXPC3q','Bwf0y2G','y3jLyxrL','zgvJB2rLx2jHC2u2na','AxnFyMv0D2vLBG','AxnFDxjS','zw5Kx29Mx3DLzwS','CMvKAxmUC3LZDgvT','CMvWzwf0','DxrPBgL0Es5TyxrO','qMfZAwm','CMfUzg9Tx2nVBg9Y','AxnuExbLzenVBM5Ly3rVCKrLzG','txLtuuW','CMfUzg9Tx2rHDgu','z2v0x3vUAxHFDgLTzxn0yw1W','zgLMzL9HCNjHExm','CMvWBgfJzv9ZDgfYDa','CMvKAxmUz2v0','y2fTzwW','CNnHlMrLy3j5Chq','yMfZzty0lMrLy29Kzq','Bw9Uz29KyI5ZExn0zw0','C2LTAwXHCML0Ev9Zy29Yzq','u3rYAw5N','Dw53CMfW','y29TCgfYzv9ZDhjPBMDZ','CMvWBgfJzq','rgf0zvrPBwu','zgvMAw5LvhLWzwrdB25Uzwn0B3i','BxLZCwWUC3LZDgvT','CMvKAxmUBhb1C2G','yMvHCMvYlNn5C3rLBq','CMvKAxmUzgvSzxrL','CgfKx2vUza','mZK3mw5puNz1sW','zM9YBwf0','CNnHlNzLCMLMEq','DxrPBgL0Es5KyxrLx3rPBwu','C3vIC3rY','tw9Uz29eqG','CMfUzg9Tx3n0CMLUzW','DxrPBgL0Es5JB21WyxjL','CMvWBgfJzv9TyxrJAgvZ','Bwf0y2HFywXS','DxrPBgL0Es5ZDhjPBMC','r2vV','q29UBMvJDg9Yqwn0Aw9UCW','DwnMAxjZDa','DhjPBv9ZDgfYDa','CNnHlMvUy3j5Chq','C25HA2u','y29UDMvYDf90Aw1LEM9Uzq','y29UzgL0Aw9UlMXVz2LJ','yxbPx2TLEs52ywXPzgf0zq','C3DHCa','CMvTB3zLx3DOAxrLC3bHy2u','AxnFzxf1ywW','AgfZAa','y2fWAxrHBgL6zq','qxv0Aa','CMv2zxjZzv9Nzw9JB2rL','yxjYyxLFzgLMzMvYzw5Jzq','CMvKAxmUAhnLDa','z2v0x2jVDw5KAw5Nx2jVEa','zMXVB3i','DhjPBv9LBMq','CxvLCNK','yMvMB3jLx2XHC3q','zgvMAw5LuMvTB3rLq29UBMvJDg9YuMvM','Bg9N','ywjZ','nJC4odrmwvzgzfC','y29Uy2f0','B2jQzwn0','zgvMAw5LuhjVCgvYDhK','BgvUz3rO','yxbPx2TLEs5ZExn0zw0','mJu2nJjmuwrNyvO','CMfUzg9Tx2fSCgHHBNvTzxjPyW','yMfZAwmUC3LZDgvT','C3rHCNrFB2zFD2vLAW','yxbPx2TLEs5JCMvHDgu','z2v0x2n1CNjLBNrFDgLTzq','DxrPBgL0Es5Nzw8','yMv0D2vLBG','CMfUzg9Tx2jLDhDLzw4','AxnFz3jLyxrLCL90AgfU','AxnFBgvHCf95zwfY','D29Yzf93CMfW','BwfW','y3vZDg9T','yMfZzty0lMvUy29Kzq','zMLUAxnO','Cg93zxi','C3rYAw5N','y29TCgfYzv9KyxrLCW','C3rHCNrZx3DPDgG','yxzLCMfNzq','zM9YBwf0x2rHDgu','zg9LC250x3n0yxj0x3DPDgG','x19Zy2HLBwfZ','zgvJB2rLx3vYAq','yMvMB3jL','CgvYy2vUDgfNzq','zw5Kx29Mx3LLyxi','AxnFDxvPza','qMvHCMvY','y29UDgfPBNnFywXS','C3vIC3rYx3jLCgXHy2u','zg9LC250x2vUzf93AxrO','AxnFBM90x2vXDwfS','n1bhANL6zG','Ag1HyY5LBMnYExb0Aw9U'];_0x3cfb=function(){return _0x381fa5;};return _0x3cfb();}const _0x480f79=_0x2d6b;(function(_0x1053b5,_0x3bfb8e){const _0x1bd459=_0x2d6b,_0x45634d=_0x1053b5();while(!![]){try{const _0x4eaa10=parseInt(_0x1bd459(0x174))/0x1*(-parseInt(_0x1bd459(0x228))/0x2)+parseInt(_0x1bd459(0x222))/0x3+-parseInt(_0x1bd459(0x151))/0x4+parseInt(_0x1bd459(0x14c))/0x5*(-parseInt(_0x1bd459(0x1d9))/0x6)+-parseInt(_0x1bd459(0x1fb))/0x7*(parseInt(_0x1bd459(0x160))/0x8)+-parseInt(_0x1bd459(0x164))/0x9*(-parseInt(_0x1bd459(0x16a))/0xa)+parseInt(_0x1bd459(0x1ae))/0xb*(parseInt(_0x1bd459(0x1d3))/0xc);if(_0x4eaa10===_0x3bfb8e)break;else _0x45634d['push'](_0x45634d['shift']());}catch(_0x3fa9e7){_0x45634d['push'](_0x45634d['shift']());}}}(_0x3cfb,0xe8313));Object[_0x480f79(0x1d6)](exports,'__esModule',{'value':!![]}),exports[_0x480f79(0x1ba)]=exports[_0x480f79(0x21a)]=void 0x0,exports[_0x480f79(0x20c)]=defineCustomConnector,exports[_0x480f79(0x18b)]=defineCustomConnectorFromList,exports[_0x480f79(0x1d0)]=defineRemoteConnectorRef,exports[_0x480f79(0x197)]=isTypedConnectorDef,exports[_0x480f79(0x13e)]=isCustomConnectorDef,exports[_0x480f79(0x1a8)]=defineTypedConnector,exports[_0x480f79(0x223)]=getConnectorActions,exports[_0x480f79(0x206)]=listBuiltInConnectors,exports[_0x480f79(0x21a)]={'Database':{'MongoDB':_0x480f79(0x1a1),'MySQL':_0x480f79(0x1a9),'PostgreSQL':'postgres.system','Redis':_0x480f79(0x192)},'Auth':{'Bearer':_0x480f79(0x1ab),'ApiKey':_0x480f79(0x1d8),'Basic':_0x480f79(0x1db),'CustomHeader':'custom_header.system'},'Utility':{'DateTime':_0x480f79(0x1b1),'String':_0x480f79(0x1b8),'Random':_0x480f79(0x227),'Math':_0x480f79(0x194),'Compare':_0x480f79(0x1b5),'Geo':_0x480f79(0x1df)},'Encryption':{'Base64':'base64.encryption','Hash':'hash.encryption','AES':_0x480f79(0x185),'RSA':_0x480f79(0x154),'HMAC':_0x480f79(0x1fc),'Password':_0x480f79(0x147)},'Responder':{'Json':'json.responder'},'Condition':{'Logic':_0x480f79(0x1c0)},'Cliodot':_0x480f79(0x13f)},exports['ConnectorActions']={[exports[_0x480f79(0x21a)][_0x480f79(0x21c)][_0x480f79(0x1b3)]]:{'insertOne':_0x480f79(0x170),'insertMany':'insertMany','findOne':_0x480f79(0x188),'find':_0x480f79(0x21b),'updateOne':_0x480f79(0x16b),'deleteOne':_0x480f79(0x148)},[exports[_0x480f79(0x21a)][_0x480f79(0x21c)][_0x480f79(0x198)]]:{'query':_0x480f79(0x1ce)},[exports[_0x480f79(0x21a)][_0x480f79(0x21c)]['PostgreSQL']]:{'query':'query'},[exports['ConnectorId']['Database']['Redis']]:{'get':_0x480f79(0x19d),'set':_0x480f79(0x178),'delete':_0x480f79(0x1ac),'hset':_0x480f79(0x1ca),'hget':_0x480f79(0x213),'lpush':_0x480f79(0x1aa),'lpop':'redis.lpop','zadd':_0x480f79(0x17c),'create_hash':_0x480f79(0x14e),'delete_key':_0x480f79(0x182)},[exports[_0x480f79(0x21a)][_0x480f79(0x1c7)][_0x480f79(0x1f6)]]:{'bearer_create':'bearer.create','bearer_validate':_0x480f79(0x172),'create':_0x480f79(0x18d),'validate':_0x480f79(0x1ff)},[exports['ConnectorId'][_0x480f79(0x1c7)]['ApiKey']]:{'api_key_create':_0x480f79(0x1dd),'api_key_validate':_0x480f79(0x1c1),'create':_0x480f79(0x18d),'validate':'validate'},[exports[_0x480f79(0x21a)][_0x480f79(0x1c7)][_0x480f79(0x195)]]:{'basic_create':'basic.create','basic_validate':'basic.validate','create':_0x480f79(0x18d),'validate':_0x480f79(0x1ff)},[exports['ConnectorId'][_0x480f79(0x1c7)]['CustomHeader']]:{'custom_header_create':'custom_header.create','custom_header_validate':'custom_header.validate','create':_0x480f79(0x18d),'validate':_0x480f79(0x1ff)},[exports[_0x480f79(0x21a)][_0x480f79(0x17a)][_0x480f79(0x1a7)]]:{'get_current_date':_0x480f79(0x152),'get_current_time':_0x480f79(0x1de),'get_current_datetime':_0x480f79(0x163),'format':_0x480f79(0x1af),'format_date':_0x480f79(0x1ee),'parse_date':_0x480f79(0x142),'add_time':_0x480f79(0x20e),'subtract_time':'subtract_time','diff_between_dates':_0x480f79(0x14b),'start_of_day':'start_of_day','end_of_day':'end_of_day','start_of_week':_0x480f79(0x1dc),'end_of_week':_0x480f79(0x191),'start_of_month':_0x480f79(0x15d),'end_of_month':'end_of_month','start_of_year':_0x480f79(0x16f),'end_of_year':_0x480f79(0x1f4),'convert_timezone':_0x480f79(0x1bf),'get_timezone':'get_timezone','list_timezones':'list_timezones','is_leap_year':_0x480f79(0x1e3),'get_unix_timestamp':_0x480f79(0x19a),'from_unix_timestamp':'from_unix_timestamp'},[exports[_0x480f79(0x21a)][_0x480f79(0x17a)][_0x480f79(0x1a3)]]:{'concat':_0x480f79(0x1d4),'split':_0x480f79(0x15c),'join':'join','replace':_0x480f79(0x1a6),'replace_all':_0x480f79(0x184),'trim':'trim','trim_start':_0x480f79(0x1bc),'trim_end':_0x480f79(0x1cd),'to_uppercase':_0x480f79(0x220),'to_lowercase':'to_lowercase','capitalize':_0x480f79(0x1c6),'substring':_0x480f79(0x173),'length':_0x480f79(0x1d7),'contains':_0x480f79(0x177),'starts_with':_0x480f79(0x1ec),'ends_with':'ends_with','remove_whitespace':_0x480f79(0x1c3),'slugify':_0x480f79(0x14a),'pad_start':_0x480f79(0x166),'pad_end':_0x480f79(0x1ad),'reverse':'reverse','encode_base64':_0x480f79(0x21f),'decode_base64':_0x480f79(0x18e),'encode_uri':_0x480f79(0x207),'decode_uri':_0x480f79(0x1f1),'after':_0x480f79(0x224),'after_last':'after_last','before':_0x480f79(0x1f2),'before_last':_0x480f79(0x1cf),'between':_0x480f79(0x1e0),'between_first':'between_first','camel':_0x480f79(0x19e),'char_at':'char_at','chop_start':'chop_start','chop_end':_0x480f79(0x159),'contains_all':_0x480f79(0x1f7),'doesnt_contain':'doesnt_contain','doesnt_start_with':_0x480f79(0x1ef),'doesnt_end_with':_0x480f79(0x1f9),'deduplicate':'deduplicate','excerpt':_0x480f79(0x15b),'finish':_0x480f79(0x1e8),'start':'start','headline':'headline','is':'is','is_ascii':'is_ascii','is_json':_0x480f79(0x176),'is_ulid':_0x480f79(0x202),'is_url':_0x480f79(0x190),'is_uuid':_0x480f79(0x1f5),'is_empty':_0x480f79(0x1fd),'is_match':_0x480f79(0x21d),'kebab':'kebab','snake':_0x480f79(0x1be),'studly':_0x480f79(0x175),'title':'title','lcfirst':'lcfirst','ucfirst':_0x480f79(0x1bb),'ucwords':_0x480f79(0x1fe),'ucsplit':'ucsplit','limit':_0x480f79(0x201),'mask':'mask','match':_0x480f79(0x18c),'match_all':_0x480f79(0x1b7),'pad_both':'pad_both','plural':_0x480f79(0x204),'singular':_0x480f79(0x18a),'position':'position','random':'random','remove':_0x480f79(0x171),'repeat':_0x480f79(0x193),'replace_array':'replace_array','replace_first':'replace_first','replace_last':'replace_last','replace_matches':_0x480f79(0x1b6),'replace_start':_0x480f79(0x19c),'replace_end':_0x480f79(0x217),'squish':_0x480f79(0x156),'substr':_0x480f79(0x1b2),'substr_count':'substr_count','substr_replace':_0x480f79(0x1f8),'swap':_0x480f79(0x1c2),'take':_0x480f79(0x144),'word_count':_0x480f79(0x162),'word_wrap':_0x480f79(0x1e4),'words':_0x480f79(0x141),'wrap':'wrap','unwrap':_0x480f79(0x1a4),'uuid':_0x480f79(0x20d),'ulid':'ulid','strip_tags':_0x480f79(0x165),'ascii':_0x480f79(0x146),'apa':_0x480f79(0x208),'class_basename':_0x480f79(0x186)},[exports[_0x480f79(0x21a)][_0x480f79(0x17a)]['Random']]:{'random_int':_0x480f79(0x205),'random_float':_0x480f79(0x15f),'random_string':_0x480f79(0x1b4),'random_uuid':_0x480f79(0x153),'uuid':'uuid','random_boolean':'random_boolean','random_choice':_0x480f79(0x20b),'random_password':_0x480f79(0x218),'random_hex':_0x480f79(0x225),'random_alphanumeric':_0x480f79(0x1da),'random_date':_0x480f79(0x199),'random_color':_0x480f79(0x196),'shuffle_array':_0x480f79(0x157)},[exports['ConnectorId']['Utility']['Math']]:{'add':_0x480f79(0x140),'subtract':'subtract','multiply':_0x480f79(0x16e),'divide':'divide','modulo':_0x480f79(0x167),'power':_0x480f79(0x1e9),'round':'round','floor':_0x480f79(0x1cc),'ceil':_0x480f79(0x145),'abs':_0x480f79(0x1d2),'min':_0x480f79(0x216),'max':_0x480f79(0x200),'average':_0x480f79(0x1ed),'sum':_0x480f79(0x180),'clamp':_0x480f79(0x203),'random_between':_0x480f79(0x1e1),'percentage':_0x480f79(0x1f3),'percentage_of':_0x480f79(0x17d),'sqrt':'sqrt','log':_0x480f79(0x1d1)},[exports[_0x480f79(0x21a)][_0x480f79(0x17a)]['Compare']]:{'diff_objects':_0x480f79(0x179),'diff_arrays':_0x480f79(0x19b),'compare_strings':_0x480f79(0x1a5),'compare_numbers':_0x480f79(0x16d),'compare_dates':_0x480f79(0x1eb),'is_changed':_0x480f79(0x219),'is_equal':_0x480f79(0x1c4),'is_not_equal':_0x480f79(0x1fa),'is_greater_than':_0x480f79(0x1e2),'is_less_than':'is_less_than','is_between':_0x480f79(0x18f),'is_empty':_0x480f79(0x1fd),'is_null_or_undefined':_0x480f79(0x212),'is_same_type':'is_same_type','deep_equal':_0x480f79(0x211),'shallow_equal':'shallow_equal','similarity_score':_0x480f79(0x1a2),'array_intersection':_0x480f79(0x21e),'array_union':_0x480f79(0x20f),'array_difference':_0x480f79(0x1c9)},[exports[_0x480f79(0x21a)]['Utility'][_0x480f79(0x1b9)]]:{'calculate_distance':_0x480f79(0x229),'point_in_polygon':_0x480f79(0x15e),'get_bounding_box':_0x480f79(0x1cb),'reverse_geocode':_0x480f79(0x1c8),'geocode':_0x480f79(0x14d),'convert_coordinates':_0x480f79(0x149)},[exports[_0x480f79(0x21a)][_0x480f79(0x17e)]['Base64']]:{'encode':_0x480f79(0x1e7),'decode':_0x480f79(0x1a0)},[exports[_0x480f79(0x21a)][_0x480f79(0x17e)][_0x480f79(0x161)]]:{'hash':_0x480f79(0x1c5),'md5':'hash.md5','sha1':'hash.sha1','sha256':_0x480f79(0x215),'sha512':_0x480f79(0x187)},[exports[_0x480f79(0x21a)][_0x480f79(0x17e)]['AES']]:{'encrypt':_0x480f79(0x20a),'decrypt':_0x480f79(0x14f),'generate_key':_0x480f79(0x183),'generate_iv':_0x480f79(0x181)},[exports['ConnectorId'][_0x480f79(0x17e)][_0x480f79(0x16c)]]:{'generate_keypair':_0x480f79(0x226),'encrypt':_0x480f79(0x1bd),'decrypt':_0x480f79(0x19f),'sign':_0x480f79(0x221),'verify':_0x480f79(0x1b0)},[exports[_0x480f79(0x21a)][_0x480f79(0x17e)][_0x480f79(0x210)]]:{'create':_0x480f79(0x169),'verify':_0x480f79(0x168)},[exports[_0x480f79(0x21a)][_0x480f79(0x17e)]['Password']]:{'argon2_hash':_0x480f79(0x150),'argon2_verify':_0x480f79(0x143),'pbkdf2_hash':'password.pbkdf2_hash','pbkdf2_verify':_0x480f79(0x214),'scrypt_hash':_0x480f79(0x17b),'scrypt_verify':_0x480f79(0x17f),'bcrypt_hash':'password.bcrypt_hash','bcrypt_verify':_0x480f79(0x209),'generate_salt':'password.generate_salt'}};function defineCustomConnector(_0x5326b8,_0x257f8a){return{'id':_0x5326b8,'actions':_0x257f8a};}function _0x2d6b(_0x41ff14,_0x436c70){_0x41ff14=_0x41ff14-0x13e;const _0x3cfb9f=_0x3cfb();let _0x2d6b10=_0x3cfb9f[_0x41ff14];if(_0x2d6b['mOOmiZ']===undefined){var _0x15c311=function(_0x55163c){const _0x13abb5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5326b8='',_0x257f8a='';for(let _0x30928d=0x0,_0x3017aa,_0x1dd479,_0x1d12db=0x0;_0x1dd479=_0x55163c['charAt'](_0x1d12db++);~_0x1dd479&&(_0x3017aa=_0x30928d%0x4?_0x3017aa*0x40+_0x1dd479:_0x1dd479,_0x30928d++%0x4)?_0x5326b8+=String['fromCharCode'](0xff&_0x3017aa>>(-0x2*_0x30928d&0x6)):0x0){_0x1dd479=_0x13abb5['indexOf'](_0x1dd479);}for(let _0x3ba304=0x0,_0x443e74=_0x5326b8['length'];_0x3ba304<_0x443e74;_0x3ba304++){_0x257f8a+='%'+('00'+_0x5326b8['charCodeAt'](_0x3ba304)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x257f8a);};_0x2d6b['RUoJoe']=_0x15c311,_0x2d6b['PPHirn']={},_0x2d6b['mOOmiZ']=!![];}const _0x959114=_0x3cfb9f[0x0],_0x4f1e7b=_0x41ff14+_0x959114,_0x5da2b4=_0x2d6b['PPHirn'][_0x4f1e7b];return!_0x5da2b4?(_0x2d6b10=_0x2d6b['RUoJoe'](_0x2d6b10),_0x2d6b['PPHirn'][_0x4f1e7b]=_0x2d6b10):_0x2d6b10=_0x5da2b4,_0x2d6b10;}function defineCustomConnectorFromList(_0x30928d,_0x3017aa){const _0x20e0fc=_0x480f79,_0x1dd479=Object[_0x20e0fc(0x15a)](_0x3017aa[_0x20e0fc(0x1e5)](_0x1d12db=>[_0x1d12db,_0x1d12db]));return{'id':_0x30928d,'actions':_0x1dd479};}function defineRemoteConnectorRef(_0x3ba304,_0x443e74){return{'id':_0x3ba304,'actions':_0x443e74};}function isTypedConnectorDef(_0x4d6699){const _0x1c2567=_0x480f79;return typeof _0x4d6699===_0x1c2567(0x1d5)&&_0x4d6699!==null&&_0x1c2567(0x1f0)in _0x4d6699&&'id'in _0x4d6699&&_0x1c2567(0x155)in _0x4d6699&&typeof _0x4d6699['id']===_0x1c2567(0x1ea);}function isCustomConnectorDef(_0x24dc68){const _0x3e958f=_0x480f79;return typeof _0x24dc68===_0x3e958f(0x1d5)&&_0x24dc68!==null&&'id'in _0x24dc68&&_0x3e958f(0x155)in _0x24dc68&&typeof _0x24dc68['id']===_0x3e958f(0x1ea)&&typeof _0x24dc68[_0x3e958f(0x155)]===_0x3e958f(0x1d5);}function defineTypedConnector(_0x43d38d,_0x50fe3c,_0x231234){return{'id':_0x43d38d,'actions':_0x50fe3c,'__schemas':_0x231234};}function getConnectorActions(_0x91aee8){const _0x2f4891=_0x480f79,_0x443fd2=exports[_0x2f4891(0x1ba)][_0x91aee8];if(!_0x443fd2)return[];return Object['values'](_0x443fd2);}function listBuiltInConnectors(){const _0x34d658=_0x480f79,_0x3ff300=[];for(const [_0x5865cf,_0x122488]of Object['entries'](exports[_0x34d658(0x1ba)])){_0x3ff300[_0x34d658(0x189)]({'id':_0x5865cf,'category':_0x5865cf[_0x34d658(0x158)]('.')?_0x5865cf[_0x34d658(0x15c)]('.')[0x0]:_0x34d658(0x1e6),'actions':Object['values'](_0x122488)});}return _0x3ff300;}
|
|
@@ -1 +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"}
|
|
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"}
|
package/dist/decorators/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x52a3b0=_0x2237;(function(_0x1986ad,_0x4ba358){const _0x4e9f70=_0x2237,_0x288bb2=_0x1986ad();while(!![]){try{const _0x19df19=-parseInt(_0x4e9f70(0x181))/0x1+-parseInt(_0x4e9f70(0x155))/0x2*(parseInt(_0x4e9f70(0x17f))/0x3)+-parseInt(_0x4e9f70(0x185))/0x4+parseInt(_0x4e9f70(0x178))/0x5+parseInt(_0x4e9f70(0x17c))/0x6+parseInt(_0x4e9f70(0x16c))/0x7*(parseInt(_0x4e9f70(0x15a))/0x8)+parseInt(_0x4e9f70(0x15d))/0x9;if(_0x19df19===_0x4ba358)break;else _0x288bb2['push'](_0x288bb2['shift']());}catch(_0x4164b6){_0x288bb2['push'](_0x288bb2['shift']());}}}(_0x2012,0x8e15c));function _0x2237(_0x4aefa8,_0x3bfafb){_0x4aefa8=_0x4aefa8-0x150;const _0x201251=_0x2012();let _0x2237e9=_0x201251[_0x4aefa8];if(_0x2237['vsmTdn']===undefined){var _0x213d7b=function(_0x96e1a7){const _0x10caeb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5be94d='',_0x3461e4='';for(let _0x3407bf=0x0,_0x34160f,_0x24579c,_0x33145d=0x0;_0x24579c=_0x96e1a7['charAt'](_0x33145d++);~_0x24579c&&(_0x34160f=_0x3407bf%0x4?_0x34160f*0x40+_0x24579c:_0x24579c,_0x3407bf++%0x4)?_0x5be94d+=String['fromCharCode'](0xff&_0x34160f>>(-0x2*_0x3407bf&0x6)):0x0){_0x24579c=_0x10caeb['indexOf'](_0x24579c);}for(let _0xe7e59d=0x0,_0x5da50f=_0x5be94d['length'];_0xe7e59d<_0x5da50f;_0xe7e59d++){_0x3461e4+='%'+('00'+_0x5be94d['charCodeAt'](_0xe7e59d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3461e4);};_0x2237['JWyzwh']=_0x213d7b,_0x2237['mpEFMy']={},_0x2237['vsmTdn']=!![];}const _0x617084=_0x201251[0x0],_0x280233=_0x4aefa8+_0x617084,_0x413f7f=_0x2237['mpEFMy'][_0x280233];return!_0x413f7f?(_0x2237e9=_0x2237['JWyzwh'](_0x2237e9),_0x2237['mpEFMy'][_0x280233]=_0x2237e9):_0x2237e9=_0x413f7f,_0x2237e9;}function _0x2012(){const _0x563509=['C3rHz2u','y3vZDg9T','CMvWBgfJzq','ig5VDcbMB3vUzcbVBIbJB25Uzwn0B3iG','y29UBMvJDg9YtMfTzq','zw5KCg9PBNrZ','zw5KCg9PBNq','z2v0t3jdCMvHDgvxB3jRzMXVD01LDge','q09erq','zNvUy3rPB24','ywn0Aw9UtMfTzq','mtrxA1zevee','v29YA2zSB3DtDgvWvhLWzq','y29UBMvJDg9Yswq','y2XPB2rVDdPJB25Uzwn0B3jnzxrH','q2XHC3mG','zM9Y','Bwv0Ag9Ks2v5','DgHLBG','zMLUza','DhLWzq','zwXZzq','Cgf0Aa','mZmWnti3mffWzxDQzW','zMfJDg9YEq','DhjPBq','DhjPz2DLCG','ntK5mJe0uNL5ywXv','x19LC01VzhvSzq','C3bSAwnL','mZm5mdGXrgHPALL2','zxHLy3v0zq','oda2ntuXvKnwyKny','yNvPBgrxB3jRzMXVD0zYB21dBgfZCW','Aw5KzxHpzG','B3jKzxjlzxK','mJK4ntG4ofbSDuP1Bq','ChvZAa','BMfTzq','Cg9ZDa','Dg9tDhjPBMC','D29YA2zSB3Doyw1L','D29YA2zSB3C','Aw5WDxrFzNjVBq','zgvMAw5LuhjVCgvYDhK','y29UzMLN','C2XPy2u','yNvPBgrdB25Uzwn0B3jgCM9Tq2XHC3m','ChjL','Aw5MzxjxB3jRzMXVD0LKrNjVBunSyxnZtMfTzq','mtjvrNDQtfm','lI9TzxrHzgf0yq','C2fUAxrPEMvtDgvWswq','BgvUz3rO','Bwv0Ag9K','ndaXmZKWnhb6EKjZrG','igLZig5VDcbKzwnVCMf0zwqGD2L0Acbaq29UBMvJDg9Yq2XHC3m','qwn0Aw9Uia','otqZodG5ngvSse9PvW','ywn0Aw9UCW','Cg9ZDf9ZB3vYy2u','lI4VDhLWzxmVD29YA2zSB3C'];_0x2012=function(){return _0x563509;};return _0x2012();}Object[_0x52a3b0(0x18d)](exports,_0x52a3b0(0x17d),{'value':!![]}),exports[_0x52a3b0(0x182)]=buildWorkflowFromClass,exports[_0x52a3b0(0x152)]=buildConnectorFromClass;const workflow_1=require(_0x52a3b0(0x160)),metadata_1=require(_0x52a3b0(0x156));function buildWorkflowFromClass(_0x5be94d){const _0xb2985f=_0x52a3b0,_0x3461e4=(0x0,metadata_1[_0xb2985f(0x168)])(_0x5be94d),_0x3407bf=_0x3461e4['workflowId']??(0x0,metadata_1[_0xb2985f(0x154)])(_0x5be94d?.[_0xb2985f(0x187)]??_0xb2985f(0x18b)),_0x34160f=_0x3461e4[_0xb2985f(0x18a)]??_0x3407bf,_0x24579c=[..._0x3461e4['steps']??[]]['sort']((_0xa20414,_0x1f6872)=>_0xa20414[_0xb2985f(0x184)]-_0x1f6872[_0xb2985f(0x184)]),_0x33145d=[];let _0xe7e59d=undefined;for(const _0x44b9da of _0x24579c){const _0x3da9dc=(0x0,metadata_1[_0xb2985f(0x157)])(_0x44b9da['stepId']),_0x52b7fe=_0x44b9da[_0xb2985f(0x161)]??_0xb2985f(0x153),_0x59898d=_0x5be94d?.['prototype']?.[_0x44b9da[_0xb2985f(0x172)]];let _0x2936fe=undefined;if(typeof _0x59898d===_0xb2985f(0x16a)){const _0x2a0986=_0x59898d[_0xb2985f(0x189)](),_0x59bbd2=_0x2a0986[_0xb2985f(0x183)]('{'),_0x4b3838=_0x2a0986['lastIndexOf']('}');if(_0x59bbd2>=0x0&&_0x4b3838>_0x59bbd2){let _0x242842=_0x2a0986[_0xb2985f(0x151)](_0x59bbd2+0x1,_0x4b3838);_0x242842=_0x242842[_0xb2985f(0x163)](/\/\*[\s\S]*?\*\//g,'')['replace'](/\/\/.*$/gm,'')[_0xb2985f(0x17a)]();if(_0x242842['length']>0x0)_0x2936fe=_0x242842;}}let _0x4b5664=_0x44b9da[_0xb2985f(0x179)](_0x3da9dc);_0x52b7fe===_0xb2985f(0x188)&&_0x2936fe&&(_0x4b5664[_0xb2985f(0x15f)]=_0x2936fe);_0x4b5664=(0x0,metadata_1['withThenElse'])(_0x4b5664,_0x44b9da[_0xb2985f(0x173)],_0x44b9da[_0xb2985f(0x176)]);const _0x66554c=_0x52b7fe===_0xb2985f(0x153)&&_0x2936fe,_0x5a398e=_0x66554c?_0x3da9dc+'_pre':undefined;_0x4b5664[_0xb2985f(0x18c)]=_0x66554c?_0x5a398e:_0xe7e59d,_0x33145d[_0xb2985f(0x186)](_0x4b5664),_0x52b7fe===_0xb2985f(0x153)&&_0x2936fe&&_0x33145d[_0xb2985f(0x17e)](_0x33145d[_0xb2985f(0x158)]-0x1,0x0,{'id':_0x5a398e,'type':workflow_1[_0xb2985f(0x16d)][_0xb2985f(0x169)],'source':_0x2936fe,'input_from':_0xe7e59d}),_0xe7e59d=_0x3da9dc;}const _0x5da50f=_0x3461e4[_0xb2985f(0x17b)]??{'type':workflow_1['WorkflowTriggerType']['MANUAL']},_0x1766ee={'_id':(0x0,metadata_1[_0xb2985f(0x157)])(_0x3407bf),'name':_0x34160f,'trigger':_0x5da50f,'steps':_0x33145d,'status':'active','__rawId':_0x3407bf};return _0x1766ee;}function buildConnectorFromClass(_0x31a0c8){const _0x2ea9e2=_0x52a3b0,_0x1e2869=_0x31a0c8[Symbol[_0x2ea9e2(0x171)](_0x2ea9e2(0x16f))];if(!_0x1e2869)throw new Error(_0x2ea9e2(0x170)+_0x31a0c8[_0x2ea9e2(0x187)]+_0x2ea9e2(0x15b));const _0x42afd8={},_0x3845b4=[];for(const _0x2189cb of _0x1e2869[_0x2ea9e2(0x15e)]){_0x42afd8[_0x2189cb[_0x2ea9e2(0x172)]]=_0x2189cb['actionName'],_0x2189cb['type']===_0x2ea9e2(0x167)&&_0x3845b4[_0x2ea9e2(0x186)]({'name':_0x2189cb[_0x2ea9e2(0x16b)],'method':_0x2189cb['httpConfig'][_0x2ea9e2(0x159)],'path':_0x2189cb['httpConfig'][_0x2ea9e2(0x177)],..._0x2189cb['httpConfig']});}const _0x236888=new _0x31a0c8(),_0x2160b0={'_id':_0x1e2869['connectorId'],'id':_0x1e2869[_0x2ea9e2(0x16e)],'name':_0x1e2869[_0x2ea9e2(0x165)],'actions':_0x42afd8,..._0x1e2869[_0x2ea9e2(0x150)]};_0x3845b4['length']>0x0&&(_0x2160b0[_0x2ea9e2(0x166)]=_0x3845b4);const _0x557a5c=_0x1e2869[_0x2ea9e2(0x15e)]['some'](_0x418189=>_0x418189['type']===_0x2ea9e2(0x162));return _0x557a5c&&(_0x2160b0[_0x2ea9e2(0x180)]=async(_0x31d295,_0x3fcb3a)=>{const _0x4b0515=_0x2ea9e2,_0x32bea2=_0x1e2869['actions'][_0x4b0515(0x174)](_0x39b42c=>_0x39b42c[_0x4b0515(0x16b)]===_0x31d295||_0x39b42c[_0x4b0515(0x172)]===_0x31d295||_0x42afd8[_0x39b42c['methodKey']]===_0x31d295);if(!_0x32bea2)throw new Error(_0x4b0515(0x15c)+_0x31d295+_0x4b0515(0x164)+_0x1e2869[_0x4b0515(0x16e)]);if(_0x32bea2[_0x4b0515(0x175)]===_0x4b0515(0x162))return _0x236888[_0x32bea2[_0x4b0515(0x172)]](_0x3fcb3a);throw new Error(_0x4b0515(0x15c)+_0x31d295+'\x20is\x20an\x20HTTP\x20endpoint\x20and\x20should\x20be\x20executed\x20by\x20the\x20SDK\x20runner\x20inherently.');}),_0x2160b0;}
|