@wix/auto_sdk_automations_action-catalog 1.0.2 → 1.0.4
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/{internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts → automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.d.mts} +77 -218
- package/build/{cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts → automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.d.ts} +77 -218
- package/build/index.d.mts +94 -0
- package/build/index.d.ts +94 -0
- package/build/index.js +817 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +779 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts → internal/automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.d.mts} +77 -218
- package/build/internal/{es/src/automations-actioncatalog-v1-action-action-catalog.universal.d.ts → automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.d.ts} +77 -218
- package/build/internal/index.d.mts +94 -0
- package/build/internal/index.d.ts +94 -0
- package/build/internal/index.js +817 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +779 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts → internal/meta.d.mts} +72 -279
- package/build/internal/{cjs/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts → meta.d.ts} +72 -279
- package/build/internal/meta.js +537 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +502 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts → meta.d.mts} +72 -279
- package/build/{internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts → meta.d.ts} +72 -279
- package/build/meta.js +537 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +502 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts +0 -13
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js +0 -22
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +0 -1
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +0 -27
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js +0 -349
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +0 -1
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +0 -26
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js +0 -199
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +0 -1
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +0 -84
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js +0 -67
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +0 -1
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js +0 -51
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +0 -1
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js +0 -490
- package/build/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts +0 -13
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.js +0 -13
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +0 -1
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +0 -27
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.js +0 -337
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +0 -1
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +0 -26
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js +0 -164
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +0 -1
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +0 -84
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.js +0 -49
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +0 -1
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.types.js +0 -48
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +0 -1
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js +0 -455
- package/build/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts +0 -13
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js +0 -22
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +0 -1
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +0 -27
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js +0 -349
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +0 -1
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +0 -26
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js +0 -199
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +0 -1
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +0 -84
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js +0 -67
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +0 -1
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js +0 -51
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +0 -1
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js +0 -490
- package/build/internal/cjs/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.d.ts +0 -13
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.js +0 -13
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.context.js.map +0 -1
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.d.ts +0 -27
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.js +0 -337
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.http.js.map +0 -1
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.d.ts +0 -26
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js +0 -164
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.meta.js.map +0 -1
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.d.ts +0 -84
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.js +0 -49
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.public.js.map +0 -1
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.js +0 -48
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.types.js.map +0 -1
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js +0 -455
- package/build/internal/es/src/automations-actioncatalog-v1-action-action-catalog.universal.js.map +0 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { t as CreateActionRequest$1, u as CreateActionResponse$1, v as UpdateActionRequest$1, w as UpdateActionResponse$1, x as DeleteActionRequest$1, y as DeleteActionResponse$1, J as GetRuntimeActionRequest$1, K as GetRuntimeActionResponse$1, L as GetActionDynamicInputSchemaRequest$1, b as GetActionDynamicInputSchemaResponse$1, N as ResolveActionsRequest$1, c as ResolveActionsResponse$1, _ as CopyInputMappingRequest$1, e as CopyInputMappingResponse$1, $ as GetActionDynamicOutputSchemaRequest$1, g as GetActionDynamicOutputSchemaResponse$1, a0 as BulkGetActionDynamicOutputSchemasRequest$1, B as BulkGetActionDynamicOutputSchemasResponse$1 } from './automations-actioncatalog-v1-action-action-catalog.universal-CrVo0pBg.mjs';
|
|
2
|
+
|
|
3
|
+
interface Action {
|
|
2
4
|
/**
|
|
3
5
|
* Action ID.
|
|
4
6
|
* @format GUID
|
|
@@ -72,7 +74,7 @@ export interface Action {
|
|
|
72
74
|
*/
|
|
73
75
|
componentVersion?: string | null;
|
|
74
76
|
}
|
|
75
|
-
|
|
77
|
+
declare enum Type {
|
|
76
78
|
/** Unknown action configuration UI. */
|
|
77
79
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
78
80
|
/**
|
|
@@ -82,53 +84,12 @@ export declare enum Type {
|
|
|
82
84
|
GENERIC = "GENERIC"
|
|
83
85
|
}
|
|
84
86
|
/** @enumType */
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Widget component name.
|
|
89
|
-
* @minLength 1
|
|
90
|
-
* @maxLength 80
|
|
91
|
-
*/
|
|
92
|
-
componentName?: string;
|
|
93
|
-
}
|
|
94
|
-
export interface GenericOptions {
|
|
87
|
+
type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'GENERIC';
|
|
88
|
+
interface GenericOptions {
|
|
95
89
|
/** UI schema. */
|
|
96
90
|
uiSchema?: Record<string, any> | null;
|
|
97
91
|
}
|
|
98
|
-
|
|
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 {
|
|
92
|
+
interface ImplementedMethods {
|
|
132
93
|
/** Whether Validate Configuration is implemented. */
|
|
133
94
|
validateConfiguration?: boolean;
|
|
134
95
|
/** Whether Duplicate Input Mapping is implemented. */
|
|
@@ -152,7 +113,7 @@ export interface ImplementedMethods {
|
|
|
152
113
|
/** Whether Get Dynamic Output Schema is implemented. */
|
|
153
114
|
getDynamicOutputSchema?: boolean;
|
|
154
115
|
}
|
|
155
|
-
|
|
116
|
+
declare enum ExecutionType {
|
|
156
117
|
/** Unknown type. */
|
|
157
118
|
UNKNOWN_EXECUTION_TYPE = "UNKNOWN_EXECUTION_TYPE",
|
|
158
119
|
/** Action completes immediately. */
|
|
@@ -161,19 +122,19 @@ export declare enum ExecutionType {
|
|
|
161
122
|
ASYNC = "ASYNC"
|
|
162
123
|
}
|
|
163
124
|
/** @enumType */
|
|
164
|
-
|
|
165
|
-
|
|
125
|
+
type ExecutionTypeWithLiterals = ExecutionType | 'UNKNOWN_EXECUTION_TYPE' | 'SYNC' | 'ASYNC';
|
|
126
|
+
interface InterfaceConfiguration extends InterfaceConfigurationOptionsOneOf {
|
|
166
127
|
/** Details for the generic UI. */
|
|
167
128
|
genericOptions?: GenericOptions;
|
|
168
129
|
/** Type of action configuration UI. */
|
|
169
130
|
type?: TypeWithLiterals;
|
|
170
131
|
}
|
|
171
132
|
/** @oneof */
|
|
172
|
-
|
|
133
|
+
interface InterfaceConfigurationOptionsOneOf {
|
|
173
134
|
/** Details for the generic UI. */
|
|
174
135
|
genericOptions?: GenericOptions;
|
|
175
136
|
}
|
|
176
|
-
|
|
137
|
+
interface Image {
|
|
177
138
|
/** WixMedia image ID. */
|
|
178
139
|
id?: string;
|
|
179
140
|
/** Image URL. */
|
|
@@ -196,44 +157,7 @@ export interface Image {
|
|
|
196
157
|
*/
|
|
197
158
|
filename?: string | null;
|
|
198
159
|
}
|
|
199
|
-
|
|
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 {
|
|
160
|
+
interface ActionSpecInfo {
|
|
237
161
|
/**
|
|
238
162
|
* Spec to conduct on for the automation
|
|
239
163
|
* @maxLength 128
|
|
@@ -251,15 +175,7 @@ export interface ActionSpecInfo {
|
|
|
251
175
|
*/
|
|
252
176
|
experimentVersion?: number;
|
|
253
177
|
}
|
|
254
|
-
|
|
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 {
|
|
178
|
+
interface CreateActionRequest {
|
|
263
179
|
/** The action to create */
|
|
264
180
|
action?: Action;
|
|
265
181
|
/** Action spec info */
|
|
@@ -270,21 +186,21 @@ export interface CreateActionRequest {
|
|
|
270
186
|
*/
|
|
271
187
|
baseUri?: string;
|
|
272
188
|
}
|
|
273
|
-
|
|
189
|
+
interface CreateActionResponse {
|
|
274
190
|
/** The created action */
|
|
275
191
|
action?: Action;
|
|
276
192
|
}
|
|
277
|
-
|
|
193
|
+
interface UpdateActionRequest {
|
|
278
194
|
/** Action Configuration */
|
|
279
195
|
action?: Action;
|
|
280
196
|
/** Action spec info */
|
|
281
197
|
actionSpecInfo?: ActionSpecInfo;
|
|
282
198
|
}
|
|
283
|
-
|
|
199
|
+
interface UpdateActionResponse {
|
|
284
200
|
/** Action Configuration */
|
|
285
201
|
updatedAction?: Action;
|
|
286
202
|
}
|
|
287
|
-
|
|
203
|
+
interface DeleteActionRequest {
|
|
288
204
|
/**
|
|
289
205
|
* The action App Id
|
|
290
206
|
* @format GUID
|
|
@@ -297,33 +213,19 @@ export interface DeleteActionRequest {
|
|
|
297
213
|
*/
|
|
298
214
|
actionKey: string;
|
|
299
215
|
}
|
|
300
|
-
|
|
216
|
+
interface DeleteActionResponse {
|
|
301
217
|
}
|
|
302
|
-
|
|
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 {
|
|
218
|
+
interface GetRuntimeActionRequest {
|
|
317
219
|
/** The action App Id */
|
|
318
220
|
appId: string;
|
|
319
221
|
/** Action key */
|
|
320
222
|
actionKey: string;
|
|
321
223
|
}
|
|
322
|
-
|
|
224
|
+
interface GetRuntimeActionResponse {
|
|
323
225
|
/** Action Configuration */
|
|
324
226
|
action?: Action;
|
|
325
227
|
}
|
|
326
|
-
|
|
228
|
+
interface GetActionDynamicInputSchemaRequest {
|
|
327
229
|
/**
|
|
328
230
|
* The App ID of the action's owner.
|
|
329
231
|
* @format GUID
|
|
@@ -343,17 +245,17 @@ export interface GetActionDynamicInputSchemaRequest {
|
|
|
343
245
|
*/
|
|
344
246
|
inputMapping: Record<string, any> | null;
|
|
345
247
|
}
|
|
346
|
-
|
|
248
|
+
interface GetActionDynamicInputSchemaResponse {
|
|
347
249
|
/** A [JSON schema](https://json-schema.org/) containing the action's added dynamic fields and its static fields. */
|
|
348
250
|
inputSchema?: Record<string, any> | null;
|
|
349
251
|
/** 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
252
|
uiSchema?: Record<string, any> | null;
|
|
351
253
|
}
|
|
352
|
-
|
|
254
|
+
interface ResolveActionsRequest {
|
|
353
255
|
/** Query options. */
|
|
354
256
|
query?: QueryV2;
|
|
355
257
|
}
|
|
356
|
-
|
|
258
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
357
259
|
/** Paging options to limit and skip the number of items. */
|
|
358
260
|
paging?: Paging;
|
|
359
261
|
/** 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`. */
|
|
@@ -376,13 +278,13 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
376
278
|
fieldsets?: string[];
|
|
377
279
|
}
|
|
378
280
|
/** @oneof */
|
|
379
|
-
|
|
281
|
+
interface QueryV2PagingMethodOneOf {
|
|
380
282
|
/** Paging options to limit and skip the number of items. */
|
|
381
283
|
paging?: Paging;
|
|
382
284
|
/** 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
285
|
cursorPaging?: CursorPaging;
|
|
384
286
|
}
|
|
385
|
-
|
|
287
|
+
interface Sorting {
|
|
386
288
|
/**
|
|
387
289
|
* Name of the field to sort by.
|
|
388
290
|
* @maxLength 512
|
|
@@ -391,19 +293,19 @@ export interface Sorting {
|
|
|
391
293
|
/** Sort order. */
|
|
392
294
|
order?: SortOrderWithLiterals;
|
|
393
295
|
}
|
|
394
|
-
|
|
296
|
+
declare enum SortOrder {
|
|
395
297
|
ASC = "ASC",
|
|
396
298
|
DESC = "DESC"
|
|
397
299
|
}
|
|
398
300
|
/** @enumType */
|
|
399
|
-
|
|
400
|
-
|
|
301
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
302
|
+
interface Paging {
|
|
401
303
|
/** Number of items to load. */
|
|
402
304
|
limit?: number | null;
|
|
403
305
|
/** Number of items to skip in the current sort order. */
|
|
404
306
|
offset?: number | null;
|
|
405
307
|
}
|
|
406
|
-
|
|
308
|
+
interface CursorPaging {
|
|
407
309
|
/**
|
|
408
310
|
* Maximum number of items to return in the results.
|
|
409
311
|
* @max 100
|
|
@@ -418,13 +320,13 @@ export interface CursorPaging {
|
|
|
418
320
|
*/
|
|
419
321
|
cursor?: string | null;
|
|
420
322
|
}
|
|
421
|
-
|
|
323
|
+
interface ResolveActionsResponse {
|
|
422
324
|
/** Retrieved actions. */
|
|
423
325
|
actions?: Action[];
|
|
424
326
|
/** Paging metadata of the response. */
|
|
425
327
|
paging?: PagingMetadataV2;
|
|
426
328
|
}
|
|
427
|
-
|
|
329
|
+
interface PagingMetadataV2 {
|
|
428
330
|
/** Number of items returned in the response. */
|
|
429
331
|
count?: number | null;
|
|
430
332
|
/** Offset that was requested. */
|
|
@@ -436,7 +338,7 @@ export interface PagingMetadataV2 {
|
|
|
436
338
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
437
339
|
cursors?: Cursors;
|
|
438
340
|
}
|
|
439
|
-
|
|
341
|
+
interface Cursors {
|
|
440
342
|
/**
|
|
441
343
|
* Cursor string pointing to the next page in the list of results.
|
|
442
344
|
* @maxLength 16000
|
|
@@ -448,7 +350,7 @@ export interface Cursors {
|
|
|
448
350
|
*/
|
|
449
351
|
prev?: string | null;
|
|
450
352
|
}
|
|
451
|
-
|
|
353
|
+
interface CopyInputMappingRequest {
|
|
452
354
|
/**
|
|
453
355
|
* Action app id
|
|
454
356
|
* @format GUID
|
|
@@ -462,11 +364,11 @@ export interface CopyInputMappingRequest {
|
|
|
462
364
|
/** Action input mapping */
|
|
463
365
|
inputMapping: Record<string, any> | null;
|
|
464
366
|
}
|
|
465
|
-
|
|
367
|
+
interface CopyInputMappingResponse {
|
|
466
368
|
/** New action input mapping */
|
|
467
369
|
inputMapping?: Record<string, any> | null;
|
|
468
370
|
}
|
|
469
|
-
|
|
371
|
+
interface GetActionDynamicOutputSchemaRequest {
|
|
470
372
|
/**
|
|
471
373
|
* The App ID of the action's owner.
|
|
472
374
|
* @format GUID
|
|
@@ -487,11 +389,11 @@ export interface GetActionDynamicOutputSchemaRequest {
|
|
|
487
389
|
*/
|
|
488
390
|
inputMapping: Record<string, any> | null;
|
|
489
391
|
}
|
|
490
|
-
|
|
392
|
+
interface GetActionDynamicOutputSchemaResponse {
|
|
491
393
|
/** A [JSON schema](https://json-schema.org/) containing the action's output schema. */
|
|
492
394
|
outputSchema?: Record<string, any> | null;
|
|
493
395
|
}
|
|
494
|
-
|
|
396
|
+
interface BulkGetActionDynamicOutputSchemasRequest {
|
|
495
397
|
/**
|
|
496
398
|
* list of actions details which will be used to generate the output schemas
|
|
497
399
|
* @maxSize 20
|
|
@@ -499,7 +401,7 @@ export interface BulkGetActionDynamicOutputSchemasRequest {
|
|
|
499
401
|
*/
|
|
500
402
|
actionsInputMappings: ActionInputMappings[];
|
|
501
403
|
}
|
|
502
|
-
|
|
404
|
+
interface ActionInputMappings {
|
|
503
405
|
/**
|
|
504
406
|
* The App ID of the action's owner.
|
|
505
407
|
* @format GUID
|
|
@@ -525,13 +427,13 @@ export interface ActionInputMappings {
|
|
|
525
427
|
*/
|
|
526
428
|
inputMapping?: Record<string, any> | null;
|
|
527
429
|
}
|
|
528
|
-
|
|
430
|
+
interface BulkGetActionDynamicOutputSchemasResponse {
|
|
529
431
|
/** list of action output schemas */
|
|
530
432
|
results?: BulkActionOutputSchemaResult[];
|
|
531
433
|
/** metadata of the bulk action */
|
|
532
434
|
bulkActionMetadata?: BulkActionMetadata;
|
|
533
435
|
}
|
|
534
|
-
|
|
436
|
+
interface ItemMetadata {
|
|
535
437
|
/**
|
|
536
438
|
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
537
439
|
* @format GUID
|
|
@@ -544,7 +446,7 @@ export interface ItemMetadata {
|
|
|
544
446
|
/** Details about the error in case of failure. */
|
|
545
447
|
error?: ApplicationError;
|
|
546
448
|
}
|
|
547
|
-
|
|
449
|
+
interface ApplicationError {
|
|
548
450
|
/** Error code. */
|
|
549
451
|
code?: string;
|
|
550
452
|
/** Description of the error. */
|
|
@@ -552,12 +454,12 @@ export interface ApplicationError {
|
|
|
552
454
|
/** Data related to the error. */
|
|
553
455
|
data?: Record<string, any> | null;
|
|
554
456
|
}
|
|
555
|
-
|
|
457
|
+
interface BulkActionOutputSchemaResult {
|
|
556
458
|
itemMetadata?: ItemMetadata;
|
|
557
459
|
/** A [JSON schema](https://json-schema.org/) containing the action's output schema. */
|
|
558
460
|
outputSchema?: Record<string, any> | null;
|
|
559
461
|
}
|
|
560
|
-
|
|
462
|
+
interface BulkActionMetadata {
|
|
561
463
|
/** Number of items that were successfully processed. */
|
|
562
464
|
totalSuccesses?: number;
|
|
563
465
|
/** Number of items that couldn't be processed. */
|
|
@@ -565,139 +467,30 @@ export interface BulkActionMetadata {
|
|
|
565
467
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
566
468
|
undetailedFailures?: number;
|
|
567
469
|
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
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';
|
|
470
|
+
|
|
471
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
472
|
+
getUrl: (context: any) => string;
|
|
473
|
+
httpMethod: K;
|
|
474
|
+
path: string;
|
|
475
|
+
pathParams: M;
|
|
476
|
+
__requestType: T;
|
|
477
|
+
__originalRequestType: S;
|
|
478
|
+
__responseType: Q;
|
|
479
|
+
__originalResponseType: R;
|
|
480
|
+
};
|
|
481
|
+
declare function createAction(): __PublicMethodMetaInfo<'POST', {}, CreateActionRequest$1, CreateActionRequest, CreateActionResponse$1, CreateActionResponse>;
|
|
482
|
+
declare function updateAction(): __PublicMethodMetaInfo<'PATCH', {
|
|
483
|
+
actionId: string;
|
|
484
|
+
}, UpdateActionRequest$1, UpdateActionRequest, UpdateActionResponse$1, UpdateActionResponse>;
|
|
485
|
+
declare function deleteAction(): __PublicMethodMetaInfo<'DELETE', {}, DeleteActionRequest$1, DeleteActionRequest, DeleteActionResponse$1, DeleteActionResponse>;
|
|
486
|
+
declare function getRuntimeAction(): __PublicMethodMetaInfo<'GET', {
|
|
487
|
+
appId: string;
|
|
488
|
+
actionKey: string;
|
|
489
|
+
}, GetRuntimeActionRequest$1, GetRuntimeActionRequest, GetRuntimeActionResponse$1, GetRuntimeActionResponse>;
|
|
490
|
+
declare function getActionDynamicInputSchema(): __PublicMethodMetaInfo<'POST', {}, GetActionDynamicInputSchemaRequest$1, GetActionDynamicInputSchemaRequest, GetActionDynamicInputSchemaResponse$1, GetActionDynamicInputSchemaResponse>;
|
|
491
|
+
declare function resolveActions(): __PublicMethodMetaInfo<'POST', {}, ResolveActionsRequest$1, ResolveActionsRequest, ResolveActionsResponse$1, ResolveActionsResponse>;
|
|
492
|
+
declare function copyInputMapping(): __PublicMethodMetaInfo<'POST', {}, CopyInputMappingRequest$1, CopyInputMappingRequest, CopyInputMappingResponse$1, CopyInputMappingResponse>;
|
|
493
|
+
declare function getActionDynamicOutputSchema(): __PublicMethodMetaInfo<'POST', {}, GetActionDynamicOutputSchemaRequest$1, GetActionDynamicOutputSchemaRequest, GetActionDynamicOutputSchemaResponse$1, GetActionDynamicOutputSchemaResponse>;
|
|
494
|
+
declare function bulkGetActionDynamicOutputSchemas(): __PublicMethodMetaInfo<'POST', {}, BulkGetActionDynamicOutputSchemasRequest$1, BulkGetActionDynamicOutputSchemasRequest, BulkGetActionDynamicOutputSchemasResponse$1, BulkGetActionDynamicOutputSchemasResponse>;
|
|
495
|
+
|
|
496
|
+
export { type __PublicMethodMetaInfo, bulkGetActionDynamicOutputSchemas, copyInputMapping, createAction, deleteAction, getActionDynamicInputSchema, getActionDynamicOutputSchema, getRuntimeAction, resolveActions, updateAction };
|