@wix/auto_sdk_automations_action-catalog 1.0.3 → 1.0.5

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.
Files changed (119) hide show
  1. package/build/{internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts → cjs/automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.d.ts} +77 -218
  2. package/build/cjs/index.d.ts +94 -1
  3. package/build/cjs/index.js +814 -15
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/meta.d.ts +496 -1
  6. package/build/cjs/meta.js +534 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/{cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts → es/automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.d.mts} +77 -218
  9. package/build/es/index.d.mts +94 -0
  10. package/build/es/index.mjs +779 -0
  11. package/build/es/index.mjs.map +1 -0
  12. package/build/es/{src/automations-actioncatalog-v1-action-action-catalog.types.d.ts → meta.d.mts} +72 -279
  13. package/build/es/meta.mjs +502 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/{es/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts → internal/cjs/automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.d.ts} +77 -218
  16. package/build/internal/cjs/index.d.ts +94 -1
  17. package/build/internal/cjs/index.js +814 -15
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +496 -1
  20. package/build/internal/cjs/meta.js +534 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/internal/es/{src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts → automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.d.mts} +77 -218
  23. package/build/internal/es/index.d.mts +94 -0
  24. package/build/internal/es/index.mjs +779 -0
  25. package/build/internal/es/index.mjs.map +1 -0
  26. package/build/{cjs/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts → internal/es/meta.d.mts} +72 -279
  27. package/build/internal/es/meta.mjs +502 -0
  28. package/build/internal/es/meta.mjs.map +1 -0
  29. package/package.json +9 -8
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts +0 -13
  34. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js +0 -22
  35. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +0 -1
  36. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +0 -27
  37. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js +0 -349
  38. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +0 -1
  39. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +0 -26
  40. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js +0 -199
  41. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +0 -1
  42. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +0 -84
  43. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js +0 -67
  44. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +0 -1
  45. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js +0 -51
  46. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +0 -1
  47. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js +0 -490
  48. package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +0 -1
  49. package/build/es/index.d.ts +0 -1
  50. package/build/es/index.js +0 -2
  51. package/build/es/index.js.map +0 -1
  52. package/build/es/index.typings.d.ts +0 -1
  53. package/build/es/index.typings.js +0 -2
  54. package/build/es/index.typings.js.map +0 -1
  55. package/build/es/meta.d.ts +0 -1
  56. package/build/es/meta.js +0 -2
  57. package/build/es/meta.js.map +0 -1
  58. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts +0 -13
  59. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.js +0 -13
  60. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +0 -1
  61. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +0 -27
  62. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.js +0 -337
  63. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +0 -1
  64. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +0 -26
  65. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js +0 -164
  66. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +0 -1
  67. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +0 -84
  68. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.js +0 -49
  69. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +0 -1
  70. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.types.js +0 -48
  71. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +0 -1
  72. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js +0 -455
  73. package/build/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +0 -1
  74. package/build/internal/cjs/index.typings.d.ts +0 -1
  75. package/build/internal/cjs/index.typings.js +0 -18
  76. package/build/internal/cjs/index.typings.js.map +0 -1
  77. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts +0 -13
  78. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js +0 -22
  79. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +0 -1
  80. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +0 -27
  81. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js +0 -349
  82. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +0 -1
  83. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +0 -26
  84. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js +0 -199
  85. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +0 -1
  86. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +0 -84
  87. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js +0 -67
  88. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +0 -1
  89. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts +0 -703
  90. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js +0 -51
  91. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +0 -1
  92. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js +0 -490
  93. package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +0 -1
  94. package/build/internal/es/index.d.ts +0 -1
  95. package/build/internal/es/index.js +0 -2
  96. package/build/internal/es/index.js.map +0 -1
  97. package/build/internal/es/index.typings.d.ts +0 -1
  98. package/build/internal/es/index.typings.js +0 -2
  99. package/build/internal/es/index.typings.js.map +0 -1
  100. package/build/internal/es/meta.d.ts +0 -1
  101. package/build/internal/es/meta.js +0 -2
  102. package/build/internal/es/meta.js.map +0 -1
  103. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts +0 -13
  104. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.js +0 -13
  105. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +0 -1
  106. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +0 -27
  107. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.js +0 -337
  108. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +0 -1
  109. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +0 -26
  110. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js +0 -164
  111. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +0 -1
  112. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +0 -84
  113. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.js +0 -49
  114. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +0 -1
  115. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts +0 -703
  116. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.js +0 -48
  117. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +0 -1
  118. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js +0 -455
  119. package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +0 -1
@@ -1,703 +0,0 @@
1
- export interface Action {
2
- /**
3
- * Action ID.
4
- * @format GUID
5
- * @readonly
6
- */
7
- id?: string | null;
8
- /**
9
- * The ID of the app that defines the action.
10
- * @format GUID
11
- * @readonly
12
- */
13
- appId?: string;
14
- /**
15
- * Human-readable identifier for the action.
16
- * @minLength 5
17
- * @maxLength 50
18
- * @readonly
19
- */
20
- actionKey?: string;
21
- /**
22
- * The action [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-input-schema)
23
- * as defined in the app dashboard.
24
- * @readonly
25
- */
26
- inputSchema?: Record<string, any> | null;
27
- /**
28
- * The action [output schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-output-schema)
29
- * as defined in the app dashboard.
30
- * @readonly
31
- */
32
- outputSchema?: Record<string, any> | null;
33
- /**
34
- * Action name displayed in the site dashboard to Wix users. For example, "Send SMS" or "Create Coupon".
35
- * @minLength 1
36
- * @maxLength 80
37
- * @readonly
38
- */
39
- displayName?: string | null;
40
- /**
41
- * Action description displayed in the site dashboard to Wix users.
42
- * @readonly
43
- */
44
- description?: string | null;
45
- /** The optional service plugin methods that are implemented for this action. Invoke is required and therefore excluded from this list. */
46
- implementedMethods?: ImplementedMethods;
47
- /** Whether the action is executed immediately or with a delay. */
48
- executionType?: ExecutionTypeWithLiterals;
49
- /** The chosen user interface for the action. The UI is displayed to the Wix user in the site dashboard when they configure the action. */
50
- interfaceConfiguration?: InterfaceConfiguration;
51
- /** Action icon displayed in the site dashboard to Wix users. */
52
- icon?: Image;
53
- /**
54
- * Date and time the action was created.
55
- * @readonly
56
- */
57
- createdDate?: Date | null;
58
- /**
59
- * Date and time the action was updated.
60
- * @readonly
61
- */
62
- updatedDate?: Date | null;
63
- /**
64
- * Action component ID.
65
- * @format GUID
66
- * @readonly
67
- */
68
- componentId?: string | null;
69
- /**
70
- * Component version at the time the action was created.
71
- * @readonly
72
- */
73
- componentVersion?: string | null;
74
- }
75
- export declare enum Type {
76
- /** Unknown action configuration UI. */
77
- UNKNOWN_TYPE = "UNKNOWN_TYPE",
78
- /**
79
- * The generic action configuration UI. This requires you to provide a
80
- * [UI schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-ui-schema).
81
- */
82
- GENERIC = "GENERIC"
83
- }
84
- /** @enumType */
85
- export type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'GENERIC';
86
- export interface WidgetComponentOptions {
87
- /**
88
- * Widget component name.
89
- * @minLength 1
90
- * @maxLength 80
91
- */
92
- componentName?: string;
93
- }
94
- export interface GenericOptions {
95
- /** UI schema. */
96
- uiSchema?: Record<string, any> | null;
97
- }
98
- export declare enum SourceType {
99
- UNKNOWN_SOURCE_TYPE = "UNKNOWN_SOURCE_TYPE",
100
- /** The input/output schemas are constructed by developers in Dev Center using the self-service flow */
101
- DEV_CENTER = "DEV_CENTER",
102
- /** The input/output schemas are derived from an existing Wix API through the API-to-Action feature */
103
- WIX_API = "WIX_API"
104
- }
105
- /** @enumType */
106
- export type SourceTypeWithLiterals = SourceType | 'UNKNOWN_SOURCE_TYPE' | 'DEV_CENTER' | 'WIX_API';
107
- export interface WixApiOptions {
108
- /**
109
- * Service entity fqdn
110
- * @minLength 1
111
- * @maxLength 100
112
- */
113
- serviceEntityFqdn?: string;
114
- /**
115
- * The service providing the API
116
- * @minLength 1
117
- * @maxLength 200
118
- */
119
- serviceName?: string;
120
- /**
121
- * The method name
122
- * @minLength 1
123
- * @maxLength 200
124
- */
125
- methodName?: string;
126
- }
127
- export interface Metadata {
128
- /** Whether the action is only shown to advanced mode users (Wix staff). */
129
- hidden?: boolean;
130
- }
131
- export interface ImplementedMethods {
132
- /** Whether Validate Configuration is implemented. */
133
- validateConfiguration?: boolean;
134
- /** Whether Duplicate Input Mapping is implemented. */
135
- duplicateInputMapping?: boolean;
136
- /** Whether Generate Application Automation Input Mapping is implemented. */
137
- generateApplicationAutomationInputMapping?: boolean;
138
- /** Whether Get Quota Info is implemented. */
139
- getQuotaInfo?: boolean;
140
- /** Whether On Before Save is implemented. */
141
- onBeforeSave?: boolean;
142
- /** Whether On Reset is implemented. */
143
- onReset?: boolean;
144
- /** Whether Generate Action Input Mapping From Template is implemented. */
145
- generateActionInputMappingFromTemplate?: boolean;
146
- /** Whether On Remove is implemented. */
147
- onRemove?: boolean;
148
- /** Whether Get Dynamic Input Schema is implemented. */
149
- getDynamicInputSchema?: boolean;
150
- /** Whether Merge Input Mappings is implemented. */
151
- mergeInputMappings?: boolean;
152
- /** Whether Get Dynamic Output Schema is implemented. */
153
- getDynamicOutputSchema?: boolean;
154
- }
155
- export declare enum ExecutionType {
156
- /** Unknown type. */
157
- UNKNOWN_EXECUTION_TYPE = "UNKNOWN_EXECUTION_TYPE",
158
- /** Action completes immediately. */
159
- SYNC = "SYNC",
160
- /** Action completes asynchronously. */
161
- ASYNC = "ASYNC"
162
- }
163
- /** @enumType */
164
- export type ExecutionTypeWithLiterals = ExecutionType | 'UNKNOWN_EXECUTION_TYPE' | 'SYNC' | 'ASYNC';
165
- export interface InterfaceConfiguration extends InterfaceConfigurationOptionsOneOf {
166
- /** Details for the generic UI. */
167
- genericOptions?: GenericOptions;
168
- /** Type of action configuration UI. */
169
- type?: TypeWithLiterals;
170
- }
171
- /** @oneof */
172
- export interface InterfaceConfigurationOptionsOneOf {
173
- /** Details for the generic UI. */
174
- genericOptions?: GenericOptions;
175
- }
176
- export interface Image {
177
- /** WixMedia image ID. */
178
- id?: string;
179
- /** Image URL. */
180
- url?: string;
181
- /**
182
- * Original image height.
183
- * @readonly
184
- */
185
- height?: number;
186
- /**
187
- * Original image width.
188
- * @readonly
189
- */
190
- width?: number;
191
- /** Image alt text. */
192
- altText?: string | null;
193
- /**
194
- * Image filename.
195
- * @readonly
196
- */
197
- filename?: string | null;
198
- }
199
- export interface FocalPoint {
200
- /** X-coordinate of the focal point. */
201
- x?: number;
202
- /** Y-coordinate of the focal point. */
203
- y?: number;
204
- /** crop by height */
205
- height?: number | null;
206
- /** crop by width */
207
- width?: number | null;
208
- }
209
- export interface Source extends SourceOptionsOneOf {
210
- /** Wix API options */
211
- wixApiOptions?: WixApiOptions;
212
- /** the source type */
213
- type?: SourceTypeWithLiterals;
214
- }
215
- /** @oneof */
216
- export interface SourceOptionsOneOf {
217
- /** Wix API options */
218
- wixApiOptions?: WixApiOptions;
219
- }
220
- export interface RetryExperimentCreation {
221
- /** action spec info */
222
- actionSpecInfo?: ActionSpecInfo;
223
- /**
224
- * app id
225
- * @format GUID
226
- */
227
- appId?: string;
228
- /** experiment action type */
229
- experimentActionType?: ExperimentActionTypeWithLiterals;
230
- /**
231
- * component id
232
- * @format GUID
233
- */
234
- componentId?: string;
235
- }
236
- export interface ActionSpecInfo {
237
- /**
238
- * Spec to conduct on for the automation
239
- * @maxLength 128
240
- */
241
- spec?: string;
242
- /**
243
- * Value the spec should return in order to affect the user with the operation
244
- * e.g. creation - show the users the automation, update - show the users the updated automation, deletion - not show the users the automation
245
- * @maxLength 128
246
- */
247
- variantValue?: string | null;
248
- /**
249
- * Version from which the experiment should decide whether to expose it to users when !conduct(spec).contains(variant_value)
250
- * For example, if 50 is set, version 49 and below (including 49) will not expose the preinstalled automation to the user.
251
- */
252
- experimentVersion?: number;
253
- }
254
- export declare enum ExperimentActionType {
255
- UNKNOWN_ACTION = "UNKNOWN_ACTION",
256
- CREATE_COMPONENT = "CREATE_COMPONENT",
257
- UPDATE_COMPONENT = "UPDATE_COMPONENT",
258
- DELETE_COMPONENT = "DELETE_COMPONENT"
259
- }
260
- /** @enumType */
261
- export type ExperimentActionTypeWithLiterals = ExperimentActionType | 'UNKNOWN_ACTION' | 'CREATE_COMPONENT' | 'UPDATE_COMPONENT' | 'DELETE_COMPONENT';
262
- export interface CreateActionRequest {
263
- /** The action to create */
264
- action?: Action;
265
- /** Action spec info */
266
- actionSpecInfo?: ActionSpecInfo;
267
- /**
268
- * base uri for the action
269
- * @maxLength 256
270
- */
271
- baseUri?: string;
272
- }
273
- export interface CreateActionResponse {
274
- /** The created action */
275
- action?: Action;
276
- }
277
- export interface UpdateActionRequest {
278
- /** Action Configuration */
279
- action?: Action;
280
- /** Action spec info */
281
- actionSpecInfo?: ActionSpecInfo;
282
- }
283
- export interface UpdateActionResponse {
284
- /** Action Configuration */
285
- updatedAction?: Action;
286
- }
287
- export interface DeleteActionRequest {
288
- /**
289
- * The action App Id
290
- * @format GUID
291
- */
292
- actionAppId: string;
293
- /**
294
- * Action Configuration key
295
- * @minLength 1
296
- * @maxLength 100
297
- */
298
- actionKey: string;
299
- }
300
- export interface DeleteActionResponse {
301
- }
302
- export interface MigrateComponentToActionRequest {
303
- /**
304
- * The action App Id
305
- * @format GUID
306
- */
307
- appId?: string;
308
- /**
309
- * The component id
310
- * @format GUID
311
- */
312
- componentId?: string;
313
- }
314
- export interface MigrateComponentToActionResponse {
315
- }
316
- export interface GetRuntimeActionRequest {
317
- /** The action App Id */
318
- appId: string;
319
- /** Action key */
320
- actionKey: string;
321
- }
322
- export interface GetRuntimeActionResponse {
323
- /** Action Configuration */
324
- action?: Action;
325
- }
326
- export interface GetActionDynamicInputSchemaRequest {
327
- /**
328
- * The App ID of the action's owner.
329
- * @format GUID
330
- */
331
- appId: string;
332
- /**
333
- * Action key as defined in an app's action configuration in the Wix Developers Center.
334
- * For example, `send-email` or `generate-invoice`.
335
- * @minLength 5
336
- * @maxLength 50
337
- */
338
- actionKey: string;
339
- /**
340
- * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected
341
- * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated
342
- * dynamically on each activation.
343
- */
344
- inputMapping: Record<string, any> | null;
345
- }
346
- export interface GetActionDynamicInputSchemaResponse {
347
- /** A [JSON schema](https://json-schema.org/) containing the action's added dynamic fields and its static fields. */
348
- inputSchema?: Record<string, any> | null;
349
- /** A [UI schema](https://bo.wix.com/pages/automations-ui-lib/?path=/story/getting-started--about) is a JSON Schema that describes the UI of the static and dynamic fields. */
350
- uiSchema?: Record<string, any> | null;
351
- }
352
- export interface ResolveActionsRequest {
353
- /** Query options. */
354
- query?: QueryV2;
355
- }
356
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
357
- /** Paging options to limit and skip the number of items. */
358
- paging?: Paging;
359
- /** 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`. */
360
- cursorPaging?: CursorPaging;
361
- /**
362
- * Filter object.
363
- *
364
- * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
365
- */
366
- filter?: Record<string, any> | null;
367
- /**
368
- * Sort object.
369
- *
370
- * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
371
- */
372
- sort?: Sorting[];
373
- /** 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. */
374
- fields?: string[];
375
- /** 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. */
376
- fieldsets?: string[];
377
- }
378
- /** @oneof */
379
- export interface QueryV2PagingMethodOneOf {
380
- /** Paging options to limit and skip the number of items. */
381
- paging?: Paging;
382
- /** 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`. */
383
- cursorPaging?: CursorPaging;
384
- }
385
- export interface Sorting {
386
- /**
387
- * Name of the field to sort by.
388
- * @maxLength 512
389
- */
390
- fieldName?: string;
391
- /** Sort order. */
392
- order?: SortOrderWithLiterals;
393
- }
394
- export declare enum SortOrder {
395
- ASC = "ASC",
396
- DESC = "DESC"
397
- }
398
- /** @enumType */
399
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
400
- export interface Paging {
401
- /** Number of items to load. */
402
- limit?: number | null;
403
- /** Number of items to skip in the current sort order. */
404
- offset?: number | null;
405
- }
406
- export interface CursorPaging {
407
- /**
408
- * Maximum number of items to return in the results.
409
- * @max 100
410
- */
411
- limit?: number | null;
412
- /**
413
- * Pointer to the next or previous page in the list of results.
414
- *
415
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
416
- * Not relevant for the first request.
417
- * @maxLength 16000
418
- */
419
- cursor?: string | null;
420
- }
421
- export interface ResolveActionsResponse {
422
- /** Retrieved actions. */
423
- actions?: Action[];
424
- /** Paging metadata of the response. */
425
- paging?: PagingMetadataV2;
426
- }
427
- export interface PagingMetadataV2 {
428
- /** Number of items returned in the response. */
429
- count?: number | null;
430
- /** Offset that was requested. */
431
- offset?: number | null;
432
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
433
- total?: number | null;
434
- /** Flag that indicates the server failed to calculate the `total` field. */
435
- tooManyToCount?: boolean | null;
436
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
437
- cursors?: Cursors;
438
- }
439
- export interface Cursors {
440
- /**
441
- * Cursor string pointing to the next page in the list of results.
442
- * @maxLength 16000
443
- */
444
- next?: string | null;
445
- /**
446
- * Cursor pointing to the previous page in the list of results.
447
- * @maxLength 16000
448
- */
449
- prev?: string | null;
450
- }
451
- export interface CopyInputMappingRequest {
452
- /**
453
- * Action app id
454
- * @format GUID
455
- */
456
- appId: string;
457
- /**
458
- * Action key
459
- * @maxLength 100
460
- */
461
- actionKey: string;
462
- /** Action input mapping */
463
- inputMapping: Record<string, any> | null;
464
- }
465
- export interface CopyInputMappingResponse {
466
- /** New action input mapping */
467
- inputMapping?: Record<string, any> | null;
468
- }
469
- export interface GetActionDynamicOutputSchemaRequest {
470
- /**
471
- * The App ID of the action's owner.
472
- * @format GUID
473
- */
474
- appId: string;
475
- /**
476
- * Action key as defined in an app's action configuration in the Wix Developers Center.
477
- * For example, `send-email` or `generate-invoice`.
478
- * @minLength 5
479
- * @maxLength 50
480
- */
481
- actionKey: string;
482
- /**
483
- * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected
484
- * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated
485
- * dynamically on each activation.
486
- * For example: [users] configuration contains cms collection id, the output schema will contain the fields of the selected collection.
487
- */
488
- inputMapping: Record<string, any> | null;
489
- }
490
- export interface GetActionDynamicOutputSchemaResponse {
491
- /** A [JSON schema](https://json-schema.org/) containing the action's output schema. */
492
- outputSchema?: Record<string, any> | null;
493
- }
494
- export interface BulkGetActionDynamicOutputSchemasRequest {
495
- /**
496
- * list of actions details which will be used to generate the output schemas
497
- * @maxSize 20
498
- * @minSize 1
499
- */
500
- actionsInputMappings: ActionInputMappings[];
501
- }
502
- export interface ActionInputMappings {
503
- /**
504
- * The App ID of the action's owner.
505
- * @format GUID
506
- */
507
- appId?: string;
508
- /**
509
- * Action key as defined in an app's action configuration in the Wix Developers Center.
510
- * For example, `send-email` or `generate-invoice`.
511
- * @minLength 5
512
- * @maxLength 50
513
- */
514
- actionKey?: string;
515
- /**
516
- * action identifier in the automation, useful for extracting out the output schema
517
- * @format GUID
518
- */
519
- actionId?: string;
520
- /**
521
- * Object representing the mapping a site contributor made between keys in the [input schema](https://dev.wix.com/docs/rest/api-reference/wix-automations/action-spi/about-the-action-spi-input-schema) and their expected
522
- * values when running the automation. A field can be a static value mapping, or an expression that will be evaluated
523
- * dynamically on each activation.
524
- * For example: [users] configuration contains cms collection id, the output schema will contain the fields of the selected collection.
525
- */
526
- inputMapping?: Record<string, any> | null;
527
- }
528
- export interface BulkGetActionDynamicOutputSchemasResponse {
529
- /** list of action output schemas */
530
- results?: BulkActionOutputSchemaResult[];
531
- /** metadata of the bulk action */
532
- bulkActionMetadata?: BulkActionMetadata;
533
- }
534
- export interface ItemMetadata {
535
- /**
536
- * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
537
- * @format GUID
538
- */
539
- id?: string | null;
540
- /** Index of the item within the request array. Allows for correlation between request and response items. */
541
- originalIndex?: number;
542
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
543
- success?: boolean;
544
- /** Details about the error in case of failure. */
545
- error?: ApplicationError;
546
- }
547
- export interface ApplicationError {
548
- /** Error code. */
549
- code?: string;
550
- /** Description of the error. */
551
- description?: string;
552
- /** Data related to the error. */
553
- data?: Record<string, any> | null;
554
- }
555
- export interface BulkActionOutputSchemaResult {
556
- itemMetadata?: ItemMetadata;
557
- /** A [JSON schema](https://json-schema.org/) containing the action's output schema. */
558
- outputSchema?: Record<string, any> | null;
559
- }
560
- export interface BulkActionMetadata {
561
- /** Number of items that were successfully processed. */
562
- totalSuccesses?: number;
563
- /** Number of items that couldn't be processed. */
564
- totalFailures?: number;
565
- /** Number of failures without details because detailed failure threshold was exceeded. */
566
- undetailedFailures?: number;
567
- }
568
- export interface DomainEvent extends DomainEventBodyOneOf {
569
- createdEvent?: EntityCreatedEvent;
570
- updatedEvent?: EntityUpdatedEvent;
571
- deletedEvent?: EntityDeletedEvent;
572
- actionEvent?: ActionEvent;
573
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
574
- id?: string;
575
- /**
576
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
577
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
578
- */
579
- entityFqdn?: string;
580
- /**
581
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
582
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
583
- */
584
- slug?: string;
585
- /** ID of the entity associated with the event. */
586
- entityId?: string;
587
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
588
- eventTime?: Date | null;
589
- /**
590
- * Whether the event was triggered as a result of a privacy regulation application
591
- * (for example, GDPR).
592
- */
593
- triggeredByAnonymizeRequest?: boolean | null;
594
- /** If present, indicates the action that triggered the event. */
595
- originatedFrom?: string | null;
596
- /**
597
- * 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.
598
- * 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.
599
- */
600
- entityEventSequence?: string | null;
601
- }
602
- /** @oneof */
603
- export interface DomainEventBodyOneOf {
604
- createdEvent?: EntityCreatedEvent;
605
- updatedEvent?: EntityUpdatedEvent;
606
- deletedEvent?: EntityDeletedEvent;
607
- actionEvent?: ActionEvent;
608
- }
609
- export interface EntityCreatedEvent {
610
- entityAsJson?: string;
611
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
612
- restoreInfo?: RestoreInfo;
613
- }
614
- export interface RestoreInfo {
615
- deletedDate?: Date | null;
616
- }
617
- export interface EntityUpdatedEvent {
618
- /**
619
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
620
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
621
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
622
- */
623
- currentEntityAsJson?: string;
624
- }
625
- export interface EntityDeletedEvent {
626
- /** Entity that was deleted. */
627
- deletedEntityAsJson?: string | null;
628
- }
629
- export interface ActionEvent {
630
- bodyAsJson?: string;
631
- }
632
- export interface MessageEnvelope {
633
- /**
634
- * App instance ID.
635
- * @format GUID
636
- */
637
- instanceId?: string | null;
638
- /**
639
- * Event type.
640
- * @maxLength 150
641
- */
642
- eventType?: string;
643
- /** The identification type and identity data. */
644
- identity?: IdentificationData;
645
- /** Stringify payload. */
646
- data?: string;
647
- }
648
- export interface IdentificationData extends IdentificationDataIdOneOf {
649
- /**
650
- * ID of a site visitor that has not logged in to the site.
651
- * @format GUID
652
- */
653
- anonymousVisitorId?: string;
654
- /**
655
- * ID of a site visitor that has logged in to the site.
656
- * @format GUID
657
- */
658
- memberId?: string;
659
- /**
660
- * ID of a Wix user (site owner, contributor, etc.).
661
- * @format GUID
662
- */
663
- wixUserId?: string;
664
- /**
665
- * ID of an app.
666
- * @format GUID
667
- */
668
- appId?: string;
669
- /** @readonly */
670
- identityType?: WebhookIdentityTypeWithLiterals;
671
- }
672
- /** @oneof */
673
- export interface IdentificationDataIdOneOf {
674
- /**
675
- * ID of a site visitor that has not logged in to the site.
676
- * @format GUID
677
- */
678
- anonymousVisitorId?: string;
679
- /**
680
- * ID of a site visitor that has logged in to the site.
681
- * @format GUID
682
- */
683
- memberId?: string;
684
- /**
685
- * ID of a Wix user (site owner, contributor, etc.).
686
- * @format GUID
687
- */
688
- wixUserId?: string;
689
- /**
690
- * ID of an app.
691
- * @format GUID
692
- */
693
- appId?: string;
694
- }
695
- export declare enum WebhookIdentityType {
696
- UNKNOWN = "UNKNOWN",
697
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
698
- MEMBER = "MEMBER",
699
- WIX_USER = "WIX_USER",
700
- APP = "APP"
701
- }
702
- /** @enumType */
703
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';