@wix/auto_sdk_automations_action-catalog 1.0.17 → 1.0.19
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/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +12 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +130 -20
- package/build/cjs/index.typings.js +12 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +426 -19
- package/build/cjs/meta.js +66 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +11 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +130 -20
- package/build/es/index.typings.mjs +11 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +426 -19
- package/build/es/meta.mjs +58 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +12 -5
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +130 -20
- package/build/internal/cjs/index.typings.js +12 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +426 -19
- package/build/internal/cjs/meta.js +66 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +11 -5
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +130 -20
- package/build/internal/es/index.typings.mjs +11 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +426 -19
- package/build/internal/es/meta.mjs +58 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -86,10 +86,51 @@ declare enum Type {
|
|
|
86
86
|
}
|
|
87
87
|
/** @enumType */
|
|
88
88
|
type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'GENERIC';
|
|
89
|
+
interface WidgetComponentOptions {
|
|
90
|
+
/**
|
|
91
|
+
* Widget component name.
|
|
92
|
+
* @minLength 1
|
|
93
|
+
* @maxLength 80
|
|
94
|
+
*/
|
|
95
|
+
componentName?: string;
|
|
96
|
+
}
|
|
89
97
|
interface GenericOptions {
|
|
90
98
|
/** UI schema. */
|
|
91
99
|
uiSchema?: Record<string, any> | null;
|
|
92
100
|
}
|
|
101
|
+
declare enum SourceType {
|
|
102
|
+
UNKNOWN_SOURCE_TYPE = "UNKNOWN_SOURCE_TYPE",
|
|
103
|
+
/** The input/output schemas are constructed by developers in Dev Center using the self-service flow */
|
|
104
|
+
DEV_CENTER = "DEV_CENTER",
|
|
105
|
+
/** The input/output schemas are derived from an existing Wix API through the API-to-Action feature */
|
|
106
|
+
WIX_API = "WIX_API"
|
|
107
|
+
}
|
|
108
|
+
/** @enumType */
|
|
109
|
+
type SourceTypeWithLiterals = SourceType | 'UNKNOWN_SOURCE_TYPE' | 'DEV_CENTER' | 'WIX_API';
|
|
110
|
+
interface WixApiOptions {
|
|
111
|
+
/**
|
|
112
|
+
* Service entity fqdn
|
|
113
|
+
* @minLength 1
|
|
114
|
+
* @maxLength 100
|
|
115
|
+
*/
|
|
116
|
+
serviceEntityFqdn?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The service providing the API
|
|
119
|
+
* @minLength 1
|
|
120
|
+
* @maxLength 200
|
|
121
|
+
*/
|
|
122
|
+
serviceName?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The method name
|
|
125
|
+
* @minLength 1
|
|
126
|
+
* @maxLength 200
|
|
127
|
+
*/
|
|
128
|
+
methodName?: string;
|
|
129
|
+
}
|
|
130
|
+
interface Metadata {
|
|
131
|
+
/** Whether the action is only shown to advanced mode users (Wix staff). */
|
|
132
|
+
hidden?: boolean;
|
|
133
|
+
}
|
|
93
134
|
interface ImplementedMethods {
|
|
94
135
|
/** Whether Validate Configuration is implemented. */
|
|
95
136
|
validateConfiguration?: boolean;
|
|
@@ -160,6 +201,43 @@ interface Image {
|
|
|
160
201
|
*/
|
|
161
202
|
filename?: string | null;
|
|
162
203
|
}
|
|
204
|
+
interface FocalPoint {
|
|
205
|
+
/** X-coordinate of the focal point. */
|
|
206
|
+
x?: number;
|
|
207
|
+
/** Y-coordinate of the focal point. */
|
|
208
|
+
y?: number;
|
|
209
|
+
/** crop by height */
|
|
210
|
+
height?: number | null;
|
|
211
|
+
/** crop by width */
|
|
212
|
+
width?: number | null;
|
|
213
|
+
}
|
|
214
|
+
interface Source extends SourceOptionsOneOf {
|
|
215
|
+
/** Wix API options */
|
|
216
|
+
wixApiOptions?: WixApiOptions;
|
|
217
|
+
/** the source type */
|
|
218
|
+
type?: SourceTypeWithLiterals;
|
|
219
|
+
}
|
|
220
|
+
/** @oneof */
|
|
221
|
+
interface SourceOptionsOneOf {
|
|
222
|
+
/** Wix API options */
|
|
223
|
+
wixApiOptions?: WixApiOptions;
|
|
224
|
+
}
|
|
225
|
+
interface RetryExperimentCreation {
|
|
226
|
+
/** action spec info */
|
|
227
|
+
actionSpecInfo?: ActionSpecInfo;
|
|
228
|
+
/**
|
|
229
|
+
* app id
|
|
230
|
+
* @format GUID
|
|
231
|
+
*/
|
|
232
|
+
appId?: string;
|
|
233
|
+
/** experiment action type */
|
|
234
|
+
experimentActionType?: ExperimentActionTypeWithLiterals;
|
|
235
|
+
/**
|
|
236
|
+
* component id
|
|
237
|
+
* @format GUID
|
|
238
|
+
*/
|
|
239
|
+
componentId?: string;
|
|
240
|
+
}
|
|
163
241
|
interface ActionSpecInfo {
|
|
164
242
|
/**
|
|
165
243
|
* Spec to conduct on for the automation
|
|
@@ -178,6 +256,14 @@ interface ActionSpecInfo {
|
|
|
178
256
|
*/
|
|
179
257
|
experimentVersion?: number;
|
|
180
258
|
}
|
|
259
|
+
declare enum ExperimentActionType {
|
|
260
|
+
UNKNOWN_ACTION = "UNKNOWN_ACTION",
|
|
261
|
+
CREATE_COMPONENT = "CREATE_COMPONENT",
|
|
262
|
+
UPDATE_COMPONENT = "UPDATE_COMPONENT",
|
|
263
|
+
DELETE_COMPONENT = "DELETE_COMPONENT"
|
|
264
|
+
}
|
|
265
|
+
/** @enumType */
|
|
266
|
+
type ExperimentActionTypeWithLiterals = ExperimentActionType | 'UNKNOWN_ACTION' | 'CREATE_COMPONENT' | 'UPDATE_COMPONENT' | 'DELETE_COMPONENT';
|
|
181
267
|
interface CreateActionRequest {
|
|
182
268
|
/** The action to create */
|
|
183
269
|
action?: Action;
|
|
@@ -218,6 +304,20 @@ interface DeleteActionRequest {
|
|
|
218
304
|
}
|
|
219
305
|
interface DeleteActionResponse {
|
|
220
306
|
}
|
|
307
|
+
interface MigrateComponentToActionRequest {
|
|
308
|
+
/**
|
|
309
|
+
* The action App Id
|
|
310
|
+
* @format GUID
|
|
311
|
+
*/
|
|
312
|
+
appId?: string;
|
|
313
|
+
/**
|
|
314
|
+
* The component id
|
|
315
|
+
* @format GUID
|
|
316
|
+
*/
|
|
317
|
+
componentId?: string;
|
|
318
|
+
}
|
|
319
|
+
interface MigrateComponentToActionResponse {
|
|
320
|
+
}
|
|
221
321
|
interface GetRuntimeActionRequest {
|
|
222
322
|
/** The action App Id */
|
|
223
323
|
appId: string;
|
|
@@ -256,13 +356,13 @@ interface GetActionDynamicInputSchemaResponse {
|
|
|
256
356
|
}
|
|
257
357
|
interface ResolveActionsRequest {
|
|
258
358
|
/** Query options. */
|
|
259
|
-
query?:
|
|
359
|
+
query?: CommonQueryV2;
|
|
260
360
|
}
|
|
261
|
-
interface
|
|
361
|
+
interface CommonQueryV2 extends CommonQueryV2PagingMethodOneOf {
|
|
262
362
|
/** Paging options to limit and offset the number of items. */
|
|
263
|
-
paging?:
|
|
363
|
+
paging?: CommonPaging;
|
|
264
364
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
265
|
-
cursorPaging?:
|
|
365
|
+
cursorPaging?: CommonCursorPaging;
|
|
266
366
|
/**
|
|
267
367
|
* Filter object.
|
|
268
368
|
*
|
|
@@ -274,41 +374,41 @@ interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
274
374
|
*
|
|
275
375
|
* Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
276
376
|
*/
|
|
277
|
-
sort?:
|
|
377
|
+
sort?: CommonSorting[];
|
|
278
378
|
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
279
379
|
fields?: string[];
|
|
280
380
|
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
281
381
|
fieldsets?: string[];
|
|
282
382
|
}
|
|
283
383
|
/** @oneof */
|
|
284
|
-
interface
|
|
384
|
+
interface CommonQueryV2PagingMethodOneOf {
|
|
285
385
|
/** Paging options to limit and offset the number of items. */
|
|
286
|
-
paging?:
|
|
386
|
+
paging?: CommonPaging;
|
|
287
387
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
288
|
-
cursorPaging?:
|
|
388
|
+
cursorPaging?: CommonCursorPaging;
|
|
289
389
|
}
|
|
290
|
-
interface
|
|
390
|
+
interface CommonSorting {
|
|
291
391
|
/**
|
|
292
392
|
* Name of the field to sort by.
|
|
293
393
|
* @maxLength 512
|
|
294
394
|
*/
|
|
295
395
|
fieldName?: string;
|
|
296
396
|
/** Sort order. */
|
|
297
|
-
order?:
|
|
397
|
+
order?: CommonSortOrderWithLiterals;
|
|
298
398
|
}
|
|
299
|
-
declare enum
|
|
399
|
+
declare enum CommonSortOrder {
|
|
300
400
|
ASC = "ASC",
|
|
301
401
|
DESC = "DESC"
|
|
302
402
|
}
|
|
303
403
|
/** @enumType */
|
|
304
|
-
type
|
|
305
|
-
interface
|
|
404
|
+
type CommonSortOrderWithLiterals = CommonSortOrder | 'ASC' | 'DESC';
|
|
405
|
+
interface CommonPaging {
|
|
306
406
|
/** Number of items to load. */
|
|
307
407
|
limit?: number | null;
|
|
308
408
|
/** Number of items to skip in the current sort order. */
|
|
309
409
|
offset?: number | null;
|
|
310
410
|
}
|
|
311
|
-
interface
|
|
411
|
+
interface CommonCursorPaging {
|
|
312
412
|
/**
|
|
313
413
|
* Maximum number of items to return in the results.
|
|
314
414
|
* @max 100
|
|
@@ -327,9 +427,9 @@ interface ResolveActionsResponse {
|
|
|
327
427
|
/** Retrieved actions. */
|
|
328
428
|
actions?: Action[];
|
|
329
429
|
/** Paging metadata of the response. */
|
|
330
|
-
paging?:
|
|
430
|
+
paging?: CommonPagingMetadataV2;
|
|
331
431
|
}
|
|
332
|
-
interface
|
|
432
|
+
interface CommonPagingMetadataV2 {
|
|
333
433
|
/** Number of items returned in the response. */
|
|
334
434
|
count?: number | null;
|
|
335
435
|
/** Offset that was requested. */
|
|
@@ -339,9 +439,9 @@ interface PagingMetadataV2 {
|
|
|
339
439
|
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
340
440
|
tooManyToCount?: boolean | null;
|
|
341
441
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
342
|
-
cursors?:
|
|
442
|
+
cursors?: CommonCursors;
|
|
343
443
|
}
|
|
344
|
-
interface
|
|
444
|
+
interface CommonCursors {
|
|
345
445
|
/**
|
|
346
446
|
* Cursor string pointing to the next page in the list of results.
|
|
347
447
|
* @maxLength 16000
|
|
@@ -470,6 +570,313 @@ interface BulkActionMetadata {
|
|
|
470
570
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
471
571
|
undetailedFailures?: number;
|
|
472
572
|
}
|
|
573
|
+
interface GenerateInputMappingFromIntentRequest {
|
|
574
|
+
/**
|
|
575
|
+
* The App ID of the action's owner
|
|
576
|
+
* @format GUID
|
|
577
|
+
*/
|
|
578
|
+
appId?: string;
|
|
579
|
+
/**
|
|
580
|
+
* Action key as defined in an app's action configuration
|
|
581
|
+
* @minLength 5
|
|
582
|
+
* @maxLength 100
|
|
583
|
+
*/
|
|
584
|
+
actionKey?: string;
|
|
585
|
+
/**
|
|
586
|
+
* User's/Agent's natural language intent describing the desired action configuration
|
|
587
|
+
* @minLength 1
|
|
588
|
+
* @maxLength 10000
|
|
589
|
+
*/
|
|
590
|
+
intent?: string;
|
|
591
|
+
/**
|
|
592
|
+
* Conversation identifier for maintaining context across multiple requests.
|
|
593
|
+
* This represents the entire conversation ID with the clients agent.
|
|
594
|
+
* @format GUID
|
|
595
|
+
*/
|
|
596
|
+
conversationId?: string;
|
|
597
|
+
/** The accumulated payload schema for an action. */
|
|
598
|
+
actionSchema?: Record<string, any> | null;
|
|
599
|
+
}
|
|
600
|
+
interface GenerateInputMappingFromIntentResponse extends GenerateInputMappingFromIntentResponseStatusInfoOneOf {
|
|
601
|
+
/** The generated input mapping conforming to the action's input schema */
|
|
602
|
+
inputMappingGeneratedInfo?: InputMappingGeneratedInfo;
|
|
603
|
+
/** Human-readable feedback for the user to refine their intent and structured reason for the failure */
|
|
604
|
+
additionalInformationRequiredInfo?: AdditionalInformationRequiredInfo;
|
|
605
|
+
/** Type of result returned */
|
|
606
|
+
status?: StatusWithLiterals;
|
|
607
|
+
}
|
|
608
|
+
/** @oneof */
|
|
609
|
+
interface GenerateInputMappingFromIntentResponseStatusInfoOneOf {
|
|
610
|
+
/** The generated input mapping conforming to the action's input schema */
|
|
611
|
+
inputMappingGeneratedInfo?: InputMappingGeneratedInfo;
|
|
612
|
+
/** Human-readable feedback for the user to refine their intent and structured reason for the failure */
|
|
613
|
+
additionalInformationRequiredInfo?: AdditionalInformationRequiredInfo;
|
|
614
|
+
}
|
|
615
|
+
declare enum Status {
|
|
616
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
617
|
+
INPUT_MAPPING_GENERATED = "INPUT_MAPPING_GENERATED",
|
|
618
|
+
ADDITIONAL_INFORMATION_REQUIRED = "ADDITIONAL_INFORMATION_REQUIRED"
|
|
619
|
+
}
|
|
620
|
+
/** @enumType */
|
|
621
|
+
type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'INPUT_MAPPING_GENERATED' | 'ADDITIONAL_INFORMATION_REQUIRED';
|
|
622
|
+
interface InputMappingGeneratedInfo {
|
|
623
|
+
/** The generated action input mapping conforming to the action's input schema */
|
|
624
|
+
inputMapping?: Record<string, any> | null;
|
|
625
|
+
}
|
|
626
|
+
interface AdditionalInformationRequiredInfo {
|
|
627
|
+
/**
|
|
628
|
+
* Human-readable feedback for the user to refine their intent
|
|
629
|
+
* @minLength 1
|
|
630
|
+
* @maxLength 10000
|
|
631
|
+
*/
|
|
632
|
+
feedback?: string;
|
|
633
|
+
}
|
|
634
|
+
interface QueryActionsRequest {
|
|
635
|
+
/** Query options. */
|
|
636
|
+
query?: QueryV2;
|
|
637
|
+
}
|
|
638
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
639
|
+
/** Paging options to limit and skip the number of items. */
|
|
640
|
+
paging?: Paging;
|
|
641
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
642
|
+
cursorPaging?: CursorPaging;
|
|
643
|
+
/**
|
|
644
|
+
* Filter object in the following format:
|
|
645
|
+
* `"filter" : {
|
|
646
|
+
* "fieldName1": "value1",
|
|
647
|
+
* "fieldName2":{"$operator":"value2"}
|
|
648
|
+
* }`
|
|
649
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
650
|
+
*/
|
|
651
|
+
filter?: Record<string, any> | null;
|
|
652
|
+
/**
|
|
653
|
+
* Sort object in the following format:
|
|
654
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
655
|
+
* @maxSize 4
|
|
656
|
+
*/
|
|
657
|
+
sort?: Sorting[];
|
|
658
|
+
/**
|
|
659
|
+
* Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.
|
|
660
|
+
* @maxLength 200
|
|
661
|
+
* @maxSize 20
|
|
662
|
+
*/
|
|
663
|
+
fields?: string[];
|
|
664
|
+
/**
|
|
665
|
+
* Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.
|
|
666
|
+
* @maxLength 200
|
|
667
|
+
* @maxSize 20
|
|
668
|
+
*/
|
|
669
|
+
fieldsets?: string[];
|
|
670
|
+
}
|
|
671
|
+
/** @oneof */
|
|
672
|
+
interface QueryV2PagingMethodOneOf {
|
|
673
|
+
/** Paging options to limit and skip the number of items. */
|
|
674
|
+
paging?: Paging;
|
|
675
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
676
|
+
cursorPaging?: CursorPaging;
|
|
677
|
+
}
|
|
678
|
+
interface Sorting {
|
|
679
|
+
/**
|
|
680
|
+
* Name of the field to sort by.
|
|
681
|
+
* @maxLength 512
|
|
682
|
+
*/
|
|
683
|
+
fieldName?: string;
|
|
684
|
+
/** Sort order. */
|
|
685
|
+
order?: SortOrderWithLiterals;
|
|
686
|
+
}
|
|
687
|
+
declare enum SortOrder {
|
|
688
|
+
ASC = "ASC",
|
|
689
|
+
DESC = "DESC"
|
|
690
|
+
}
|
|
691
|
+
/** @enumType */
|
|
692
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
693
|
+
interface Paging {
|
|
694
|
+
/** Number of items to load. */
|
|
695
|
+
limit?: number | null;
|
|
696
|
+
/** Number of items to skip in the current sort order. */
|
|
697
|
+
offset?: number | null;
|
|
698
|
+
}
|
|
699
|
+
interface CursorPaging {
|
|
700
|
+
/**
|
|
701
|
+
* Maximum number of items to return in the results.
|
|
702
|
+
* @max 500
|
|
703
|
+
*/
|
|
704
|
+
limit?: number | null;
|
|
705
|
+
/**
|
|
706
|
+
* Pointer to the next or previous page in the list of results.
|
|
707
|
+
*
|
|
708
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
709
|
+
* Not relevant for the first request.
|
|
710
|
+
* @maxLength 64000
|
|
711
|
+
*/
|
|
712
|
+
cursor?: string | null;
|
|
713
|
+
}
|
|
714
|
+
interface QueryActionsResponse {
|
|
715
|
+
/** Retrieved actions. */
|
|
716
|
+
actions?: Action[];
|
|
717
|
+
/** Paging metadata of the response. */
|
|
718
|
+
pagingMetadata?: PagingMetadataV2;
|
|
719
|
+
}
|
|
720
|
+
interface PagingMetadataV2 {
|
|
721
|
+
/** Number of items returned in the response. */
|
|
722
|
+
count?: number | null;
|
|
723
|
+
/** Offset that was requested. */
|
|
724
|
+
offset?: number | null;
|
|
725
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
726
|
+
total?: number | null;
|
|
727
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
728
|
+
tooManyToCount?: boolean | null;
|
|
729
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
730
|
+
cursors?: Cursors;
|
|
731
|
+
}
|
|
732
|
+
interface Cursors {
|
|
733
|
+
/**
|
|
734
|
+
* Cursor string pointing to the next page in the list of results.
|
|
735
|
+
* @maxLength 64000
|
|
736
|
+
*/
|
|
737
|
+
next?: string | null;
|
|
738
|
+
/**
|
|
739
|
+
* Cursor pointing to the previous page in the list of results.
|
|
740
|
+
* @maxLength 64000
|
|
741
|
+
*/
|
|
742
|
+
prev?: string | null;
|
|
743
|
+
}
|
|
744
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
745
|
+
createdEvent?: EntityCreatedEvent;
|
|
746
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
747
|
+
deletedEvent?: EntityDeletedEvent;
|
|
748
|
+
actionEvent?: ActionEvent;
|
|
749
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
750
|
+
id?: string;
|
|
751
|
+
/**
|
|
752
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
753
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
754
|
+
*/
|
|
755
|
+
entityFqdn?: string;
|
|
756
|
+
/**
|
|
757
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
758
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
759
|
+
*/
|
|
760
|
+
slug?: string;
|
|
761
|
+
/** ID of the entity associated with the event. */
|
|
762
|
+
entityId?: string;
|
|
763
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
764
|
+
eventTime?: Date | null;
|
|
765
|
+
/**
|
|
766
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
767
|
+
* (for example, GDPR).
|
|
768
|
+
*/
|
|
769
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
770
|
+
/** If present, indicates the action that triggered the event. */
|
|
771
|
+
originatedFrom?: string | null;
|
|
772
|
+
/**
|
|
773
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
774
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
775
|
+
*/
|
|
776
|
+
entityEventSequence?: string | null;
|
|
777
|
+
}
|
|
778
|
+
/** @oneof */
|
|
779
|
+
interface DomainEventBodyOneOf {
|
|
780
|
+
createdEvent?: EntityCreatedEvent;
|
|
781
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
782
|
+
deletedEvent?: EntityDeletedEvent;
|
|
783
|
+
actionEvent?: ActionEvent;
|
|
784
|
+
}
|
|
785
|
+
interface EntityCreatedEvent {
|
|
786
|
+
entityAsJson?: string;
|
|
787
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
788
|
+
restoreInfo?: RestoreInfo;
|
|
789
|
+
}
|
|
790
|
+
interface RestoreInfo {
|
|
791
|
+
deletedDate?: Date | null;
|
|
792
|
+
}
|
|
793
|
+
interface EntityUpdatedEvent {
|
|
794
|
+
/**
|
|
795
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
796
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
797
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
798
|
+
*/
|
|
799
|
+
currentEntityAsJson?: string;
|
|
800
|
+
}
|
|
801
|
+
interface EntityDeletedEvent {
|
|
802
|
+
/** Entity that was deleted. */
|
|
803
|
+
deletedEntityAsJson?: string | null;
|
|
804
|
+
}
|
|
805
|
+
interface ActionEvent {
|
|
806
|
+
bodyAsJson?: string;
|
|
807
|
+
}
|
|
808
|
+
interface MessageEnvelope {
|
|
809
|
+
/**
|
|
810
|
+
* App instance ID.
|
|
811
|
+
* @format GUID
|
|
812
|
+
*/
|
|
813
|
+
instanceId?: string | null;
|
|
814
|
+
/**
|
|
815
|
+
* Event type.
|
|
816
|
+
* @maxLength 150
|
|
817
|
+
*/
|
|
818
|
+
eventType?: string;
|
|
819
|
+
/** The identification type and identity data. */
|
|
820
|
+
identity?: IdentificationData;
|
|
821
|
+
/** Stringify payload. */
|
|
822
|
+
data?: string;
|
|
823
|
+
}
|
|
824
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
825
|
+
/**
|
|
826
|
+
* ID of a site visitor that has not logged in to the site.
|
|
827
|
+
* @format GUID
|
|
828
|
+
*/
|
|
829
|
+
anonymousVisitorId?: string;
|
|
830
|
+
/**
|
|
831
|
+
* ID of a site visitor that has logged in to the site.
|
|
832
|
+
* @format GUID
|
|
833
|
+
*/
|
|
834
|
+
memberId?: string;
|
|
835
|
+
/**
|
|
836
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
837
|
+
* @format GUID
|
|
838
|
+
*/
|
|
839
|
+
wixUserId?: string;
|
|
840
|
+
/**
|
|
841
|
+
* ID of an app.
|
|
842
|
+
* @format GUID
|
|
843
|
+
*/
|
|
844
|
+
appId?: string;
|
|
845
|
+
/** @readonly */
|
|
846
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
847
|
+
}
|
|
848
|
+
/** @oneof */
|
|
849
|
+
interface IdentificationDataIdOneOf {
|
|
850
|
+
/**
|
|
851
|
+
* ID of a site visitor that has not logged in to the site.
|
|
852
|
+
* @format GUID
|
|
853
|
+
*/
|
|
854
|
+
anonymousVisitorId?: string;
|
|
855
|
+
/**
|
|
856
|
+
* ID of a site visitor that has logged in to the site.
|
|
857
|
+
* @format GUID
|
|
858
|
+
*/
|
|
859
|
+
memberId?: string;
|
|
860
|
+
/**
|
|
861
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
862
|
+
* @format GUID
|
|
863
|
+
*/
|
|
864
|
+
wixUserId?: string;
|
|
865
|
+
/**
|
|
866
|
+
* ID of an app.
|
|
867
|
+
* @format GUID
|
|
868
|
+
*/
|
|
869
|
+
appId?: string;
|
|
870
|
+
}
|
|
871
|
+
declare enum WebhookIdentityType {
|
|
872
|
+
UNKNOWN = "UNKNOWN",
|
|
873
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
874
|
+
MEMBER = "MEMBER",
|
|
875
|
+
WIX_USER = "WIX_USER",
|
|
876
|
+
APP = "APP"
|
|
877
|
+
}
|
|
878
|
+
/** @enumType */
|
|
879
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
473
880
|
|
|
474
881
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
475
882
|
getUrl: (context: any) => string;
|
|
@@ -496,4 +903,4 @@ declare function copyInputMapping(): __PublicMethodMetaInfo<'POST', {}, CopyInpu
|
|
|
496
903
|
declare function getActionDynamicOutputSchema(): __PublicMethodMetaInfo<'POST', {}, GetActionDynamicOutputSchemaRequest$1, GetActionDynamicOutputSchemaRequest, GetActionDynamicOutputSchemaResponse$1, GetActionDynamicOutputSchemaResponse>;
|
|
497
904
|
declare function bulkGetActionDynamicOutputSchemas(): __PublicMethodMetaInfo<'POST', {}, BulkGetActionDynamicOutputSchemasRequest$1, BulkGetActionDynamicOutputSchemasRequest, BulkGetActionDynamicOutputSchemasResponse$1, BulkGetActionDynamicOutputSchemasResponse>;
|
|
498
905
|
|
|
499
|
-
export { type __PublicMethodMetaInfo, bulkGetActionDynamicOutputSchemas, copyInputMapping, createAction, deleteAction, getActionDynamicInputSchema, getActionDynamicOutputSchema, getRuntimeAction, resolveActions, updateAction };
|
|
906
|
+
export { type ActionEvent as ActionEventOriginal, type ActionInputMappings as ActionInputMappingsOriginal, type Action as ActionOriginal, type ActionSpecInfo as ActionSpecInfoOriginal, type AdditionalInformationRequiredInfo as AdditionalInformationRequiredInfoOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkActionOutputSchemaResult as BulkActionOutputSchemaResultOriginal, type BulkGetActionDynamicOutputSchemasRequest as BulkGetActionDynamicOutputSchemasRequestOriginal, type BulkGetActionDynamicOutputSchemasResponse as BulkGetActionDynamicOutputSchemasResponseOriginal, type CommonCursorPaging as CommonCursorPagingOriginal, type CommonCursors as CommonCursorsOriginal, type CommonPagingMetadataV2 as CommonPagingMetadataV2Original, type CommonPaging as CommonPagingOriginal, type CommonQueryV2 as CommonQueryV2Original, type CommonQueryV2PagingMethodOneOf as CommonQueryV2PagingMethodOneOfOriginal, CommonSortOrder as CommonSortOrderOriginal, type CommonSortOrderWithLiterals as CommonSortOrderWithLiteralsOriginal, type CommonSorting as CommonSortingOriginal, type CopyInputMappingRequest as CopyInputMappingRequestOriginal, type CopyInputMappingResponse as CopyInputMappingResponseOriginal, type CreateActionRequest as CreateActionRequestOriginal, type CreateActionResponse as CreateActionResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeleteActionRequest as DeleteActionRequestOriginal, type DeleteActionResponse as DeleteActionResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, ExecutionType as ExecutionTypeOriginal, type ExecutionTypeWithLiterals as ExecutionTypeWithLiteralsOriginal, ExperimentActionType as ExperimentActionTypeOriginal, type ExperimentActionTypeWithLiterals as ExperimentActionTypeWithLiteralsOriginal, type FocalPoint as FocalPointOriginal, type GenerateInputMappingFromIntentRequest as GenerateInputMappingFromIntentRequestOriginal, type GenerateInputMappingFromIntentResponse as GenerateInputMappingFromIntentResponseOriginal, type GenerateInputMappingFromIntentResponseStatusInfoOneOf as GenerateInputMappingFromIntentResponseStatusInfoOneOfOriginal, type GenericOptions as GenericOptionsOriginal, type GetActionDynamicInputSchemaRequest as GetActionDynamicInputSchemaRequestOriginal, type GetActionDynamicInputSchemaResponse as GetActionDynamicInputSchemaResponseOriginal, type GetActionDynamicOutputSchemaRequest as GetActionDynamicOutputSchemaRequestOriginal, type GetActionDynamicOutputSchemaResponse as GetActionDynamicOutputSchemaResponseOriginal, type GetRuntimeActionRequest as GetRuntimeActionRequestOriginal, type GetRuntimeActionResponse as GetRuntimeActionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type ImplementedMethods as ImplementedMethodsOriginal, type InputMappingGeneratedInfo as InputMappingGeneratedInfoOriginal, type InterfaceConfigurationOptionsOneOf as InterfaceConfigurationOptionsOneOfOriginal, type InterfaceConfiguration as InterfaceConfigurationOriginal, type ItemMetadata as ItemMetadataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Metadata as MetadataOriginal, type MigrateComponentToActionRequest as MigrateComponentToActionRequestOriginal, type MigrateComponentToActionResponse as MigrateComponentToActionResponseOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type QueryActionsRequest as QueryActionsRequestOriginal, type QueryActionsResponse as QueryActionsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type ResolveActionsRequest as ResolveActionsRequestOriginal, type ResolveActionsResponse as ResolveActionsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RetryExperimentCreation as RetryExperimentCreationOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SourceOptionsOneOf as SourceOptionsOneOfOriginal, type Source as SourceOriginal, SourceType as SourceTypeOriginal, type SourceTypeWithLiterals as SourceTypeWithLiteralsOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type UpdateActionRequest as UpdateActionRequestOriginal, type UpdateActionResponse as UpdateActionResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WidgetComponentOptions as WidgetComponentOptionsOriginal, type WixApiOptions as WixApiOptionsOriginal, type __PublicMethodMetaInfo, bulkGetActionDynamicOutputSchemas, copyInputMapping, createAction, deleteAction, getActionDynamicInputSchema, getActionDynamicOutputSchema, getRuntimeAction, resolveActions, updateAction };
|
|
@@ -366,6 +366,56 @@ function bulkGetActionDynamicOutputSchemas(payload) {
|
|
|
366
366
|
return __bulkGetActionDynamicOutputSchemas;
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
+
// src/automations-actioncatalog-v1-action-action-catalog.types.ts
|
|
370
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
371
|
+
Type2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
372
|
+
Type2["GENERIC"] = "GENERIC";
|
|
373
|
+
return Type2;
|
|
374
|
+
})(Type || {});
|
|
375
|
+
var SourceType = /* @__PURE__ */ ((SourceType2) => {
|
|
376
|
+
SourceType2["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
377
|
+
SourceType2["DEV_CENTER"] = "DEV_CENTER";
|
|
378
|
+
SourceType2["WIX_API"] = "WIX_API";
|
|
379
|
+
return SourceType2;
|
|
380
|
+
})(SourceType || {});
|
|
381
|
+
var ExecutionType = /* @__PURE__ */ ((ExecutionType2) => {
|
|
382
|
+
ExecutionType2["UNKNOWN_EXECUTION_TYPE"] = "UNKNOWN_EXECUTION_TYPE";
|
|
383
|
+
ExecutionType2["SYNC"] = "SYNC";
|
|
384
|
+
ExecutionType2["ASYNC"] = "ASYNC";
|
|
385
|
+
return ExecutionType2;
|
|
386
|
+
})(ExecutionType || {});
|
|
387
|
+
var ExperimentActionType = /* @__PURE__ */ ((ExperimentActionType2) => {
|
|
388
|
+
ExperimentActionType2["UNKNOWN_ACTION"] = "UNKNOWN_ACTION";
|
|
389
|
+
ExperimentActionType2["CREATE_COMPONENT"] = "CREATE_COMPONENT";
|
|
390
|
+
ExperimentActionType2["UPDATE_COMPONENT"] = "UPDATE_COMPONENT";
|
|
391
|
+
ExperimentActionType2["DELETE_COMPONENT"] = "DELETE_COMPONENT";
|
|
392
|
+
return ExperimentActionType2;
|
|
393
|
+
})(ExperimentActionType || {});
|
|
394
|
+
var CommonSortOrder = /* @__PURE__ */ ((CommonSortOrder2) => {
|
|
395
|
+
CommonSortOrder2["ASC"] = "ASC";
|
|
396
|
+
CommonSortOrder2["DESC"] = "DESC";
|
|
397
|
+
return CommonSortOrder2;
|
|
398
|
+
})(CommonSortOrder || {});
|
|
399
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
400
|
+
Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
401
|
+
Status2["INPUT_MAPPING_GENERATED"] = "INPUT_MAPPING_GENERATED";
|
|
402
|
+
Status2["ADDITIONAL_INFORMATION_REQUIRED"] = "ADDITIONAL_INFORMATION_REQUIRED";
|
|
403
|
+
return Status2;
|
|
404
|
+
})(Status || {});
|
|
405
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
406
|
+
SortOrder2["ASC"] = "ASC";
|
|
407
|
+
SortOrder2["DESC"] = "DESC";
|
|
408
|
+
return SortOrder2;
|
|
409
|
+
})(SortOrder || {});
|
|
410
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
411
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
412
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
413
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
414
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
415
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
416
|
+
return WebhookIdentityType2;
|
|
417
|
+
})(WebhookIdentityType || {});
|
|
418
|
+
|
|
369
419
|
// src/automations-actioncatalog-v1-action-action-catalog.meta.ts
|
|
370
420
|
function createAction2() {
|
|
371
421
|
const payload = {};
|
|
@@ -536,6 +586,14 @@ function bulkGetActionDynamicOutputSchemas2() {
|
|
|
536
586
|
};
|
|
537
587
|
}
|
|
538
588
|
export {
|
|
589
|
+
CommonSortOrder as CommonSortOrderOriginal,
|
|
590
|
+
ExecutionType as ExecutionTypeOriginal,
|
|
591
|
+
ExperimentActionType as ExperimentActionTypeOriginal,
|
|
592
|
+
SortOrder as SortOrderOriginal,
|
|
593
|
+
SourceType as SourceTypeOriginal,
|
|
594
|
+
Status as StatusOriginal,
|
|
595
|
+
Type as TypeOriginal,
|
|
596
|
+
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
539
597
|
bulkGetActionDynamicOutputSchemas2 as bulkGetActionDynamicOutputSchemas,
|
|
540
598
|
copyInputMapping2 as copyInputMapping,
|
|
541
599
|
createAction2 as createAction,
|