@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.
- 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
- package/build/cjs/index.d.ts +94 -1
- package/build/cjs/index.js +814 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +496 -1
- package/build/cjs/meta.js +534 -15
- package/build/cjs/meta.js.map +1 -1
- 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
- package/build/es/index.d.mts +94 -0
- package/build/es/index.mjs +779 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/{src/automations-actioncatalog-v1-action-action-catalog.types.d.ts → meta.d.mts} +72 -279
- package/build/es/meta.mjs +502 -0
- package/build/es/meta.mjs.map +1 -0
- 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
- package/build/internal/cjs/index.d.ts +94 -1
- package/build/internal/cjs/index.js +814 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +496 -1
- package/build/internal/cjs/meta.js +534 -15
- package/build/internal/cjs/meta.js.map +1 -1
- 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
- package/build/internal/es/index.d.mts +94 -0
- package/build/internal/es/index.mjs +779 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/{cjs/src/automations-actioncatalog-v1-action-action-catalog.types.d.ts → internal/es/meta.d.mts} +72 -279
- package/build/internal/es/meta.mjs +502 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +9 -8
- 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/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/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.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/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.d.ts +0 -703
- 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.d.ts +0 -703
- 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 +1,496 @@
|
|
|
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.js';
|
|
2
|
+
|
|
3
|
+
interface Action {
|
|
4
|
+
/**
|
|
5
|
+
* Action ID.
|
|
6
|
+
* @format GUID
|
|
7
|
+
* @readonly
|
|
8
|
+
*/
|
|
9
|
+
id?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the app that defines the action.
|
|
12
|
+
* @format GUID
|
|
13
|
+
* @readonly
|
|
14
|
+
*/
|
|
15
|
+
appId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Human-readable identifier for the action.
|
|
18
|
+
* @minLength 5
|
|
19
|
+
* @maxLength 50
|
|
20
|
+
* @readonly
|
|
21
|
+
*/
|
|
22
|
+
actionKey?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The action [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-input-schema)
|
|
25
|
+
* as defined in the app dashboard.
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
inputSchema?: Record<string, any> | null;
|
|
29
|
+
/**
|
|
30
|
+
* The action [output schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-output-schema)
|
|
31
|
+
* as defined in the app dashboard.
|
|
32
|
+
* @readonly
|
|
33
|
+
*/
|
|
34
|
+
outputSchema?: Record<string, any> | null;
|
|
35
|
+
/**
|
|
36
|
+
* Action name displayed in the site dashboard to Wix users. For example, "Send SMS" or "Create Coupon".
|
|
37
|
+
* @minLength 1
|
|
38
|
+
* @maxLength 80
|
|
39
|
+
* @readonly
|
|
40
|
+
*/
|
|
41
|
+
displayName?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Action description displayed in the site dashboard to Wix users.
|
|
44
|
+
* @readonly
|
|
45
|
+
*/
|
|
46
|
+
description?: string | null;
|
|
47
|
+
/** The optional service plugin methods that are implemented for this action. Invoke is required and therefore excluded from this list. */
|
|
48
|
+
implementedMethods?: ImplementedMethods;
|
|
49
|
+
/** Whether the action is executed immediately or with a delay. */
|
|
50
|
+
executionType?: ExecutionTypeWithLiterals;
|
|
51
|
+
/** The chosen user interface for the action. The UI is displayed to the Wix user in the site dashboard when they configure the action. */
|
|
52
|
+
interfaceConfiguration?: InterfaceConfiguration;
|
|
53
|
+
/** Action icon displayed in the site dashboard to Wix users. */
|
|
54
|
+
icon?: Image;
|
|
55
|
+
/**
|
|
56
|
+
* Date and time the action was created.
|
|
57
|
+
* @readonly
|
|
58
|
+
*/
|
|
59
|
+
createdDate?: Date | null;
|
|
60
|
+
/**
|
|
61
|
+
* Date and time the action was updated.
|
|
62
|
+
* @readonly
|
|
63
|
+
*/
|
|
64
|
+
updatedDate?: Date | null;
|
|
65
|
+
/**
|
|
66
|
+
* Action component ID.
|
|
67
|
+
* @format GUID
|
|
68
|
+
* @readonly
|
|
69
|
+
*/
|
|
70
|
+
componentId?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Component version at the time the action was created.
|
|
73
|
+
* @readonly
|
|
74
|
+
*/
|
|
75
|
+
componentVersion?: string | null;
|
|
76
|
+
}
|
|
77
|
+
declare enum Type {
|
|
78
|
+
/** Unknown action configuration UI. */
|
|
79
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
80
|
+
/**
|
|
81
|
+
* The generic action configuration UI. This requires you to provide a
|
|
82
|
+
* [UI schema](https://dev.wix.com/docs/rest/business-management/automations/actions/about-actions#the-ui-schema).
|
|
83
|
+
*/
|
|
84
|
+
GENERIC = "GENERIC"
|
|
85
|
+
}
|
|
86
|
+
/** @enumType */
|
|
87
|
+
type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'GENERIC';
|
|
88
|
+
interface GenericOptions {
|
|
89
|
+
/** UI schema. */
|
|
90
|
+
uiSchema?: Record<string, any> | null;
|
|
91
|
+
}
|
|
92
|
+
interface ImplementedMethods {
|
|
93
|
+
/** Whether Validate Configuration is implemented. */
|
|
94
|
+
validateConfiguration?: boolean;
|
|
95
|
+
/** Whether Duplicate Input Mapping is implemented. */
|
|
96
|
+
duplicateInputMapping?: boolean;
|
|
97
|
+
/** Whether Generate Application Automation Input Mapping is implemented. */
|
|
98
|
+
generateApplicationAutomationInputMapping?: boolean;
|
|
99
|
+
/** Whether Get Quota Info is implemented. */
|
|
100
|
+
getQuotaInfo?: boolean;
|
|
101
|
+
/** Whether On Before Save is implemented. */
|
|
102
|
+
onBeforeSave?: boolean;
|
|
103
|
+
/** Whether On Reset is implemented. */
|
|
104
|
+
onReset?: boolean;
|
|
105
|
+
/** Whether Generate Action Input Mapping From Template is implemented. */
|
|
106
|
+
generateActionInputMappingFromTemplate?: boolean;
|
|
107
|
+
/** Whether On Remove is implemented. */
|
|
108
|
+
onRemove?: boolean;
|
|
109
|
+
/** Whether Get Dynamic Input Schema is implemented. */
|
|
110
|
+
getDynamicInputSchema?: boolean;
|
|
111
|
+
/** Whether Merge Input Mappings is implemented. */
|
|
112
|
+
mergeInputMappings?: boolean;
|
|
113
|
+
/** Whether Get Dynamic Output Schema is implemented. */
|
|
114
|
+
getDynamicOutputSchema?: boolean;
|
|
115
|
+
}
|
|
116
|
+
declare enum ExecutionType {
|
|
117
|
+
/** Unknown type. */
|
|
118
|
+
UNKNOWN_EXECUTION_TYPE = "UNKNOWN_EXECUTION_TYPE",
|
|
119
|
+
/** Action completes immediately. */
|
|
120
|
+
SYNC = "SYNC",
|
|
121
|
+
/** Action completes asynchronously. */
|
|
122
|
+
ASYNC = "ASYNC"
|
|
123
|
+
}
|
|
124
|
+
/** @enumType */
|
|
125
|
+
type ExecutionTypeWithLiterals = ExecutionType | 'UNKNOWN_EXECUTION_TYPE' | 'SYNC' | 'ASYNC';
|
|
126
|
+
interface InterfaceConfiguration extends InterfaceConfigurationOptionsOneOf {
|
|
127
|
+
/** Details for the generic UI. */
|
|
128
|
+
genericOptions?: GenericOptions;
|
|
129
|
+
/** Type of action configuration UI. */
|
|
130
|
+
type?: TypeWithLiterals;
|
|
131
|
+
}
|
|
132
|
+
/** @oneof */
|
|
133
|
+
interface InterfaceConfigurationOptionsOneOf {
|
|
134
|
+
/** Details for the generic UI. */
|
|
135
|
+
genericOptions?: GenericOptions;
|
|
136
|
+
}
|
|
137
|
+
interface Image {
|
|
138
|
+
/** WixMedia image ID. */
|
|
139
|
+
id?: string;
|
|
140
|
+
/** Image URL. */
|
|
141
|
+
url?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Original image height.
|
|
144
|
+
* @readonly
|
|
145
|
+
*/
|
|
146
|
+
height?: number;
|
|
147
|
+
/**
|
|
148
|
+
* Original image width.
|
|
149
|
+
* @readonly
|
|
150
|
+
*/
|
|
151
|
+
width?: number;
|
|
152
|
+
/** Image alt text. */
|
|
153
|
+
altText?: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* Image filename.
|
|
156
|
+
* @readonly
|
|
157
|
+
*/
|
|
158
|
+
filename?: string | null;
|
|
159
|
+
}
|
|
160
|
+
interface ActionSpecInfo {
|
|
161
|
+
/**
|
|
162
|
+
* Spec to conduct on for the automation
|
|
163
|
+
* @maxLength 128
|
|
164
|
+
*/
|
|
165
|
+
spec?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Value the spec should return in order to affect the user with the operation
|
|
168
|
+
* e.g. creation - show the users the automation, update - show the users the updated automation, deletion - not show the users the automation
|
|
169
|
+
* @maxLength 128
|
|
170
|
+
*/
|
|
171
|
+
variantValue?: string | null;
|
|
172
|
+
/**
|
|
173
|
+
* Version from which the experiment should decide whether to expose it to users when !conduct(spec).contains(variant_value)
|
|
174
|
+
* For example, if 50 is set, version 49 and below (including 49) will not expose the preinstalled automation to the user.
|
|
175
|
+
*/
|
|
176
|
+
experimentVersion?: number;
|
|
177
|
+
}
|
|
178
|
+
interface CreateActionRequest {
|
|
179
|
+
/** The action to create */
|
|
180
|
+
action?: Action;
|
|
181
|
+
/** Action spec info */
|
|
182
|
+
actionSpecInfo?: ActionSpecInfo;
|
|
183
|
+
/**
|
|
184
|
+
* base uri for the action
|
|
185
|
+
* @maxLength 256
|
|
186
|
+
*/
|
|
187
|
+
baseUri?: string;
|
|
188
|
+
}
|
|
189
|
+
interface CreateActionResponse {
|
|
190
|
+
/** The created action */
|
|
191
|
+
action?: Action;
|
|
192
|
+
}
|
|
193
|
+
interface UpdateActionRequest {
|
|
194
|
+
/** Action Configuration */
|
|
195
|
+
action?: Action;
|
|
196
|
+
/** Action spec info */
|
|
197
|
+
actionSpecInfo?: ActionSpecInfo;
|
|
198
|
+
}
|
|
199
|
+
interface UpdateActionResponse {
|
|
200
|
+
/** Action Configuration */
|
|
201
|
+
updatedAction?: Action;
|
|
202
|
+
}
|
|
203
|
+
interface DeleteActionRequest {
|
|
204
|
+
/**
|
|
205
|
+
* The action App Id
|
|
206
|
+
* @format GUID
|
|
207
|
+
*/
|
|
208
|
+
actionAppId: string;
|
|
209
|
+
/**
|
|
210
|
+
* Action Configuration key
|
|
211
|
+
* @minLength 1
|
|
212
|
+
* @maxLength 100
|
|
213
|
+
*/
|
|
214
|
+
actionKey: string;
|
|
215
|
+
}
|
|
216
|
+
interface DeleteActionResponse {
|
|
217
|
+
}
|
|
218
|
+
interface GetRuntimeActionRequest {
|
|
219
|
+
/** The action App Id */
|
|
220
|
+
appId: string;
|
|
221
|
+
/** Action key */
|
|
222
|
+
actionKey: string;
|
|
223
|
+
}
|
|
224
|
+
interface GetRuntimeActionResponse {
|
|
225
|
+
/** Action Configuration */
|
|
226
|
+
action?: Action;
|
|
227
|
+
}
|
|
228
|
+
interface GetActionDynamicInputSchemaRequest {
|
|
229
|
+
/**
|
|
230
|
+
* The App ID of the action's owner.
|
|
231
|
+
* @format GUID
|
|
232
|
+
*/
|
|
233
|
+
appId: string;
|
|
234
|
+
/**
|
|
235
|
+
* Action key as defined in an app's action configuration in the Wix Developers Center.
|
|
236
|
+
* For example, `send-email` or `generate-invoice`.
|
|
237
|
+
* @minLength 5
|
|
238
|
+
* @maxLength 50
|
|
239
|
+
*/
|
|
240
|
+
actionKey: string;
|
|
241
|
+
/**
|
|
242
|
+
* 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
|
|
243
|
+
* values when running the automation. A field can be a static value mapping, or an expression that will be evaluated
|
|
244
|
+
* dynamically on each activation.
|
|
245
|
+
*/
|
|
246
|
+
inputMapping: Record<string, any> | null;
|
|
247
|
+
}
|
|
248
|
+
interface GetActionDynamicInputSchemaResponse {
|
|
249
|
+
/** A [JSON schema](https://json-schema.org/) containing the action's added dynamic fields and its static fields. */
|
|
250
|
+
inputSchema?: Record<string, any> | null;
|
|
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. */
|
|
252
|
+
uiSchema?: Record<string, any> | null;
|
|
253
|
+
}
|
|
254
|
+
interface ResolveActionsRequest {
|
|
255
|
+
/** Query options. */
|
|
256
|
+
query?: QueryV2;
|
|
257
|
+
}
|
|
258
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
259
|
+
/** Paging options to limit and skip the number of items. */
|
|
260
|
+
paging?: Paging;
|
|
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`. */
|
|
262
|
+
cursorPaging?: CursorPaging;
|
|
263
|
+
/**
|
|
264
|
+
* Filter object.
|
|
265
|
+
*
|
|
266
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
267
|
+
*/
|
|
268
|
+
filter?: Record<string, any> | null;
|
|
269
|
+
/**
|
|
270
|
+
* Sort object.
|
|
271
|
+
*
|
|
272
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
273
|
+
*/
|
|
274
|
+
sort?: Sorting[];
|
|
275
|
+
/** 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. */
|
|
276
|
+
fields?: string[];
|
|
277
|
+
/** 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. */
|
|
278
|
+
fieldsets?: string[];
|
|
279
|
+
}
|
|
280
|
+
/** @oneof */
|
|
281
|
+
interface QueryV2PagingMethodOneOf {
|
|
282
|
+
/** Paging options to limit and skip the number of items. */
|
|
283
|
+
paging?: Paging;
|
|
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`. */
|
|
285
|
+
cursorPaging?: CursorPaging;
|
|
286
|
+
}
|
|
287
|
+
interface Sorting {
|
|
288
|
+
/**
|
|
289
|
+
* Name of the field to sort by.
|
|
290
|
+
* @maxLength 512
|
|
291
|
+
*/
|
|
292
|
+
fieldName?: string;
|
|
293
|
+
/** Sort order. */
|
|
294
|
+
order?: SortOrderWithLiterals;
|
|
295
|
+
}
|
|
296
|
+
declare enum SortOrder {
|
|
297
|
+
ASC = "ASC",
|
|
298
|
+
DESC = "DESC"
|
|
299
|
+
}
|
|
300
|
+
/** @enumType */
|
|
301
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
302
|
+
interface Paging {
|
|
303
|
+
/** Number of items to load. */
|
|
304
|
+
limit?: number | null;
|
|
305
|
+
/** Number of items to skip in the current sort order. */
|
|
306
|
+
offset?: number | null;
|
|
307
|
+
}
|
|
308
|
+
interface CursorPaging {
|
|
309
|
+
/**
|
|
310
|
+
* Maximum number of items to return in the results.
|
|
311
|
+
* @max 100
|
|
312
|
+
*/
|
|
313
|
+
limit?: number | null;
|
|
314
|
+
/**
|
|
315
|
+
* Pointer to the next or previous page in the list of results.
|
|
316
|
+
*
|
|
317
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
318
|
+
* Not relevant for the first request.
|
|
319
|
+
* @maxLength 16000
|
|
320
|
+
*/
|
|
321
|
+
cursor?: string | null;
|
|
322
|
+
}
|
|
323
|
+
interface ResolveActionsResponse {
|
|
324
|
+
/** Retrieved actions. */
|
|
325
|
+
actions?: Action[];
|
|
326
|
+
/** Paging metadata of the response. */
|
|
327
|
+
paging?: PagingMetadataV2;
|
|
328
|
+
}
|
|
329
|
+
interface PagingMetadataV2 {
|
|
330
|
+
/** Number of items returned in the response. */
|
|
331
|
+
count?: number | null;
|
|
332
|
+
/** Offset that was requested. */
|
|
333
|
+
offset?: number | null;
|
|
334
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
335
|
+
total?: number | null;
|
|
336
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
337
|
+
tooManyToCount?: boolean | null;
|
|
338
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
339
|
+
cursors?: Cursors;
|
|
340
|
+
}
|
|
341
|
+
interface Cursors {
|
|
342
|
+
/**
|
|
343
|
+
* Cursor string pointing to the next page in the list of results.
|
|
344
|
+
* @maxLength 16000
|
|
345
|
+
*/
|
|
346
|
+
next?: string | null;
|
|
347
|
+
/**
|
|
348
|
+
* Cursor pointing to the previous page in the list of results.
|
|
349
|
+
* @maxLength 16000
|
|
350
|
+
*/
|
|
351
|
+
prev?: string | null;
|
|
352
|
+
}
|
|
353
|
+
interface CopyInputMappingRequest {
|
|
354
|
+
/**
|
|
355
|
+
* Action app id
|
|
356
|
+
* @format GUID
|
|
357
|
+
*/
|
|
358
|
+
appId: string;
|
|
359
|
+
/**
|
|
360
|
+
* Action key
|
|
361
|
+
* @maxLength 100
|
|
362
|
+
*/
|
|
363
|
+
actionKey: string;
|
|
364
|
+
/** Action input mapping */
|
|
365
|
+
inputMapping: Record<string, any> | null;
|
|
366
|
+
}
|
|
367
|
+
interface CopyInputMappingResponse {
|
|
368
|
+
/** New action input mapping */
|
|
369
|
+
inputMapping?: Record<string, any> | null;
|
|
370
|
+
}
|
|
371
|
+
interface GetActionDynamicOutputSchemaRequest {
|
|
372
|
+
/**
|
|
373
|
+
* The App ID of the action's owner.
|
|
374
|
+
* @format GUID
|
|
375
|
+
*/
|
|
376
|
+
appId: string;
|
|
377
|
+
/**
|
|
378
|
+
* Action key as defined in an app's action configuration in the Wix Developers Center.
|
|
379
|
+
* For example, `send-email` or `generate-invoice`.
|
|
380
|
+
* @minLength 5
|
|
381
|
+
* @maxLength 50
|
|
382
|
+
*/
|
|
383
|
+
actionKey: string;
|
|
384
|
+
/**
|
|
385
|
+
* 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
|
|
386
|
+
* values when running the automation. A field can be a static value mapping, or an expression that will be evaluated
|
|
387
|
+
* dynamically on each activation.
|
|
388
|
+
* For example: [users] configuration contains cms collection id, the output schema will contain the fields of the selected collection.
|
|
389
|
+
*/
|
|
390
|
+
inputMapping: Record<string, any> | null;
|
|
391
|
+
}
|
|
392
|
+
interface GetActionDynamicOutputSchemaResponse {
|
|
393
|
+
/** A [JSON schema](https://json-schema.org/) containing the action's output schema. */
|
|
394
|
+
outputSchema?: Record<string, any> | null;
|
|
395
|
+
}
|
|
396
|
+
interface BulkGetActionDynamicOutputSchemasRequest {
|
|
397
|
+
/**
|
|
398
|
+
* list of actions details which will be used to generate the output schemas
|
|
399
|
+
* @maxSize 20
|
|
400
|
+
* @minSize 1
|
|
401
|
+
*/
|
|
402
|
+
actionsInputMappings: ActionInputMappings[];
|
|
403
|
+
}
|
|
404
|
+
interface ActionInputMappings {
|
|
405
|
+
/**
|
|
406
|
+
* The App ID of the action's owner.
|
|
407
|
+
* @format GUID
|
|
408
|
+
*/
|
|
409
|
+
appId?: string;
|
|
410
|
+
/**
|
|
411
|
+
* Action key as defined in an app's action configuration in the Wix Developers Center.
|
|
412
|
+
* For example, `send-email` or `generate-invoice`.
|
|
413
|
+
* @minLength 5
|
|
414
|
+
* @maxLength 50
|
|
415
|
+
*/
|
|
416
|
+
actionKey?: string;
|
|
417
|
+
/**
|
|
418
|
+
* action identifier in the automation, useful for extracting out the output schema
|
|
419
|
+
* @format GUID
|
|
420
|
+
*/
|
|
421
|
+
actionId?: string;
|
|
422
|
+
/**
|
|
423
|
+
* 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
|
|
424
|
+
* values when running the automation. A field can be a static value mapping, or an expression that will be evaluated
|
|
425
|
+
* dynamically on each activation.
|
|
426
|
+
* For example: [users] configuration contains cms collection id, the output schema will contain the fields of the selected collection.
|
|
427
|
+
*/
|
|
428
|
+
inputMapping?: Record<string, any> | null;
|
|
429
|
+
}
|
|
430
|
+
interface BulkGetActionDynamicOutputSchemasResponse {
|
|
431
|
+
/** list of action output schemas */
|
|
432
|
+
results?: BulkActionOutputSchemaResult[];
|
|
433
|
+
/** metadata of the bulk action */
|
|
434
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
435
|
+
}
|
|
436
|
+
interface ItemMetadata {
|
|
437
|
+
/**
|
|
438
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
439
|
+
* @format GUID
|
|
440
|
+
*/
|
|
441
|
+
id?: string | null;
|
|
442
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
443
|
+
originalIndex?: number;
|
|
444
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
445
|
+
success?: boolean;
|
|
446
|
+
/** Details about the error in case of failure. */
|
|
447
|
+
error?: ApplicationError;
|
|
448
|
+
}
|
|
449
|
+
interface ApplicationError {
|
|
450
|
+
/** Error code. */
|
|
451
|
+
code?: string;
|
|
452
|
+
/** Description of the error. */
|
|
453
|
+
description?: string;
|
|
454
|
+
/** Data related to the error. */
|
|
455
|
+
data?: Record<string, any> | null;
|
|
456
|
+
}
|
|
457
|
+
interface BulkActionOutputSchemaResult {
|
|
458
|
+
itemMetadata?: ItemMetadata;
|
|
459
|
+
/** A [JSON schema](https://json-schema.org/) containing the action's output schema. */
|
|
460
|
+
outputSchema?: Record<string, any> | null;
|
|
461
|
+
}
|
|
462
|
+
interface BulkActionMetadata {
|
|
463
|
+
/** Number of items that were successfully processed. */
|
|
464
|
+
totalSuccesses?: number;
|
|
465
|
+
/** Number of items that couldn't be processed. */
|
|
466
|
+
totalFailures?: number;
|
|
467
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
468
|
+
undetailedFailures?: number;
|
|
469
|
+
}
|
|
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 };
|