@wix/auto_sdk_automations_action-catalog 1.0.15 → 1.0.17

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.
@@ -8,7 +8,7 @@ interface CreateActionSignature {
8
8
  * Create an action
9
9
  * @returns The created action
10
10
  */
11
- (options?: NonNullablePaths<CreateActionOptions, `action.actionKey` | `action.appId`>): Promise<NonNullablePaths<Action, `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.duplicateInputMapping` | `implementedMethods.generateApplicationAutomationInputMapping` | `implementedMethods.getQuotaInfo` | `implementedMethods.onBeforeSave` | `implementedMethods.onReset` | `implementedMethods.generateActionInputMappingFromTemplate` | `implementedMethods.onRemove` | `implementedMethods.getDynamicInputSchema` | `implementedMethods.mergeInputMappings` | `implementedMethods.getDynamicOutputSchema` | `implementedMethods.generateInputMappingFromIntent` | `executionType` | `interfaceConfiguration.type`>>;
11
+ (options?: NonNullablePaths<CreateActionOptions, `action.actionKey` | `action.appId`, 3>): Promise<NonNullablePaths<Action, `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.duplicateInputMapping` | `implementedMethods.generateApplicationAutomationInputMapping` | `implementedMethods.getQuotaInfo` | `implementedMethods.onBeforeSave` | `implementedMethods.onReset` | `implementedMethods.generateActionInputMappingFromTemplate` | `implementedMethods.onRemove` | `implementedMethods.getDynamicInputSchema` | `implementedMethods.mergeInputMappings` | `implementedMethods.getDynamicOutputSchema` | `implementedMethods.generateInputMappingFromIntent` | `executionType` | `interfaceConfiguration.type`, 3>>;
12
12
  }
13
13
  declare function updateAction$1(httpClient: HttpClient): UpdateActionSignature;
14
14
  interface UpdateActionSignature {
@@ -17,7 +17,7 @@ interface UpdateActionSignature {
17
17
  * @param - Action ID.
18
18
  * @returns Action Configuration
19
19
  */
20
- (_id: string, options?: NonNullablePaths<UpdateActionOptions, `action.actionKey` | `action.appId`>): Promise<NonNullablePaths<Action, `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.duplicateInputMapping` | `implementedMethods.generateApplicationAutomationInputMapping` | `implementedMethods.getQuotaInfo` | `implementedMethods.onBeforeSave` | `implementedMethods.onReset` | `implementedMethods.generateActionInputMappingFromTemplate` | `implementedMethods.onRemove` | `implementedMethods.getDynamicInputSchema` | `implementedMethods.mergeInputMappings` | `implementedMethods.getDynamicOutputSchema` | `implementedMethods.generateInputMappingFromIntent` | `executionType` | `interfaceConfiguration.type`>>;
20
+ (_id: string, options?: NonNullablePaths<UpdateActionOptions, `action.actionKey` | `action.appId`, 3>): Promise<NonNullablePaths<Action, `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.duplicateInputMapping` | `implementedMethods.generateApplicationAutomationInputMapping` | `implementedMethods.getQuotaInfo` | `implementedMethods.onBeforeSave` | `implementedMethods.onReset` | `implementedMethods.generateActionInputMappingFromTemplate` | `implementedMethods.onRemove` | `implementedMethods.getDynamicInputSchema` | `implementedMethods.mergeInputMappings` | `implementedMethods.getDynamicOutputSchema` | `implementedMethods.generateInputMappingFromIntent` | `executionType` | `interfaceConfiguration.type`, 3>>;
21
21
  }
22
22
  declare function deleteAction$1(httpClient: HttpClient): DeleteActionSignature;
23
23
  interface DeleteActionSignature {
@@ -25,7 +25,7 @@ interface DeleteActionSignature {
25
25
  * Delete a trigger by app id and key
26
26
  * @param - The action App Id
27
27
  */
28
- (actionAppId: string, options: NonNullablePaths<DeleteActionOptions, `actionKey`>): Promise<void>;
28
+ (actionAppId: string, options: NonNullablePaths<DeleteActionOptions, `actionKey`, 2>): Promise<void>;
29
29
  }
30
30
  declare function getRuntimeAction$1(httpClient: HttpClient): GetRuntimeActionSignature;
31
31
  interface GetRuntimeActionSignature {
@@ -33,7 +33,7 @@ interface GetRuntimeActionSignature {
33
33
  * Returns action configuration by action key
34
34
  * @returns Action Configuration
35
35
  */
36
- (identifiers: NonNullablePaths<GetRuntimeActionIdentifiers, `actionKey` | `appId`>): Promise<NonNullablePaths<Action, `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.duplicateInputMapping` | `implementedMethods.generateApplicationAutomationInputMapping` | `implementedMethods.getQuotaInfo` | `implementedMethods.onBeforeSave` | `implementedMethods.onReset` | `implementedMethods.generateActionInputMappingFromTemplate` | `implementedMethods.onRemove` | `implementedMethods.getDynamicInputSchema` | `implementedMethods.mergeInputMappings` | `implementedMethods.getDynamicOutputSchema` | `implementedMethods.generateInputMappingFromIntent` | `executionType` | `interfaceConfiguration.type`>>;
36
+ (identifiers: NonNullablePaths<GetRuntimeActionIdentifiers, `actionKey` | `appId`, 2>): Promise<NonNullablePaths<Action, `appId` | `actionKey` | `implementedMethods.validateConfiguration` | `implementedMethods.duplicateInputMapping` | `implementedMethods.generateApplicationAutomationInputMapping` | `implementedMethods.getQuotaInfo` | `implementedMethods.onBeforeSave` | `implementedMethods.onReset` | `implementedMethods.generateActionInputMappingFromTemplate` | `implementedMethods.onRemove` | `implementedMethods.getDynamicInputSchema` | `implementedMethods.mergeInputMappings` | `implementedMethods.getDynamicOutputSchema` | `implementedMethods.generateInputMappingFromIntent` | `executionType` | `interfaceConfiguration.type`, 3>>;
37
37
  }
38
38
  declare function getActionDynamicInputSchema$1(httpClient: HttpClient): GetActionDynamicInputSchemaSignature;
39
39
  interface GetActionDynamicInputSchemaSignature {
@@ -41,14 +41,14 @@ interface GetActionDynamicInputSchemaSignature {
41
41
  * Returns action dynamic schema and ui schema for the given action key and input mapping (action config)
42
42
  * @param - The App ID of the action's owner.
43
43
  */
44
- (appId: string, options: NonNullablePaths<GetActionDynamicInputSchemaOptions, `actionKey` | `inputMapping`>): Promise<GetActionDynamicInputSchemaResponse>;
44
+ (appId: string, options: NonNullablePaths<GetActionDynamicInputSchemaOptions, `actionKey` | `inputMapping`, 2>): Promise<GetActionDynamicInputSchemaResponse>;
45
45
  }
46
46
  declare function resolveActions$1(httpClient: HttpClient): ResolveActionsSignature;
47
47
  interface ResolveActionsSignature {
48
48
  /**
49
49
  * Returns action configurations that are installed on the site and exposed to Wix users.
50
50
  */
51
- (options?: ResolveActionsOptions): Promise<NonNullablePaths<ResolveActionsResponse, `actions` | `actions.${number}.appId` | `actions.${number}.actionKey` | `actions.${number}.implementedMethods.validateConfiguration` | `actions.${number}.implementedMethods.duplicateInputMapping` | `actions.${number}.implementedMethods.generateApplicationAutomationInputMapping` | `actions.${number}.implementedMethods.getQuotaInfo` | `actions.${number}.implementedMethods.onBeforeSave` | `actions.${number}.implementedMethods.onReset` | `actions.${number}.implementedMethods.generateActionInputMappingFromTemplate` | `actions.${number}.implementedMethods.onRemove` | `actions.${number}.implementedMethods.getDynamicInputSchema` | `actions.${number}.implementedMethods.mergeInputMappings` | `actions.${number}.implementedMethods.getDynamicOutputSchema` | `actions.${number}.implementedMethods.generateInputMappingFromIntent` | `actions.${number}.executionType` | `actions.${number}.interfaceConfiguration.type`>>;
51
+ (options?: ResolveActionsOptions): Promise<NonNullablePaths<ResolveActionsResponse, `actions` | `actions.${number}.appId` | `actions.${number}.actionKey` | `actions.${number}.implementedMethods.validateConfiguration` | `actions.${number}.implementedMethods.duplicateInputMapping` | `actions.${number}.implementedMethods.generateApplicationAutomationInputMapping` | `actions.${number}.implementedMethods.getQuotaInfo` | `actions.${number}.implementedMethods.onBeforeSave` | `actions.${number}.implementedMethods.onReset` | `actions.${number}.implementedMethods.generateActionInputMappingFromTemplate` | `actions.${number}.implementedMethods.onRemove` | `actions.${number}.implementedMethods.getDynamicInputSchema` | `actions.${number}.implementedMethods.mergeInputMappings` | `actions.${number}.implementedMethods.getDynamicOutputSchema` | `actions.${number}.implementedMethods.generateInputMappingFromIntent` | `actions.${number}.executionType` | `actions.${number}.interfaceConfiguration.type`, 5>>;
52
52
  }
53
53
  declare function copyInputMapping$1(httpClient: HttpClient): CopyInputMappingSignature;
54
54
  interface CopyInputMappingSignature {
@@ -62,7 +62,7 @@ interface CopyInputMappingSignature {
62
62
  * so such that the `messageId` stays unique across multiple actions.
63
63
  * @param - Action app id
64
64
  */
65
- (appId: string, options: NonNullablePaths<CopyInputMappingOptions, `actionKey` | `inputMapping`>): Promise<CopyInputMappingResponse>;
65
+ (appId: string, options: NonNullablePaths<CopyInputMappingOptions, `actionKey` | `inputMapping`, 2>): Promise<CopyInputMappingResponse>;
66
66
  }
67
67
  declare function getActionDynamicOutputSchema$1(httpClient: HttpClient): GetActionDynamicOutputSchemaSignature;
68
68
  interface GetActionDynamicOutputSchemaSignature {
@@ -70,7 +70,7 @@ interface GetActionDynamicOutputSchemaSignature {
70
70
  * Returns action dynamic output schema for the given action key and the [users] action configuration
71
71
  * @param - The App ID of the action's owner.
72
72
  */
73
- (appId: string, options: NonNullablePaths<GetActionDynamicOutputSchemaOptions, `actionKey` | `inputMapping`>): Promise<GetActionDynamicOutputSchemaResponse>;
73
+ (appId: string, options: NonNullablePaths<GetActionDynamicOutputSchemaOptions, `actionKey` | `inputMapping`, 2>): Promise<GetActionDynamicOutputSchemaResponse>;
74
74
  }
75
75
  declare function bulkGetActionDynamicOutputSchemas$1(httpClient: HttpClient): BulkGetActionDynamicOutputSchemasSignature;
76
76
  interface BulkGetActionDynamicOutputSchemasSignature {
@@ -78,7 +78,7 @@ interface BulkGetActionDynamicOutputSchemasSignature {
78
78
  * Returns action dynamic output schema for the given actions
79
79
  * @param - list of actions details which will be used to generate the output schemas
80
80
  */
81
- (actionsInputMappings: ActionInputMappings[]): Promise<NonNullablePaths<BulkGetActionDynamicOutputSchemasResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
81
+ (actionsInputMappings: ActionInputMappings[]): Promise<NonNullablePaths<BulkGetActionDynamicOutputSchemasResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
82
82
  }
83
83
 
84
84
  declare const createAction: MaybeContext<BuildRESTFunction<typeof createAction$1> & typeof createAction$1>;
@@ -143,6 +143,9 @@ function createAction(payload) {
143
143
  method: "POST",
144
144
  methodFqn: "wix.automations.actioncatalog.v1.ActionCatalogService.CreateAction",
145
145
  packageName: PACKAGE_NAME,
146
+ migrationOptions: {
147
+ optInTransformResponse: true
148
+ },
146
149
  url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
147
150
  protoPath: "/v1/actions",
148
151
  data: serializedData,
@@ -195,6 +198,9 @@ function updateAction(payload) {
195
198
  method: "PATCH",
196
199
  methodFqn: "wix.automations.actioncatalog.v1.ActionCatalogService.UpdateAction",
197
200
  packageName: PACKAGE_NAME,
201
+ migrationOptions: {
202
+ optInTransformResponse: true
203
+ },
198
204
  url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
199
205
  protoPath: "/v1/action/{action.id}",
200
206
  data: serializedData,
@@ -230,6 +236,9 @@ function deleteAction(payload) {
230
236
  method: "DELETE",
231
237
  methodFqn: "wix.automations.actioncatalog.v1.ActionCatalogService.DeleteAction",
232
238
  packageName: PACKAGE_NAME,
239
+ migrationOptions: {
240
+ optInTransformResponse: true
241
+ },
233
242
  url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
234
243
  protoPath: "/v1/action",
235
244
  data: payload,
@@ -248,6 +257,9 @@ function getRuntimeAction(payload) {
248
257
  method: "GET",
249
258
  methodFqn: "wix.automations.actioncatalog.v1.ActionCatalogService.GetRuntimeAction",
250
259
  packageName: PACKAGE_NAME,
260
+ migrationOptions: {
261
+ optInTransformResponse: true
262
+ },
251
263
  url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
252
264
  protoPath: "/v1/actions/apps/{appId}/keys/{actionKey}",
253
265
  data: payload,
@@ -283,6 +295,9 @@ function getActionDynamicInputSchema(payload) {
283
295
  method: "POST",
284
296
  methodFqn: "wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicInputSchema",
285
297
  packageName: PACKAGE_NAME,
298
+ migrationOptions: {
299
+ optInTransformResponse: true
300
+ },
286
301
  url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
287
302
  protoPath: "/v1/actions/dynamic-input-schema",
288
303
  data: payload,
@@ -301,6 +316,9 @@ function resolveActions(payload) {
301
316
  method: "POST",
302
317
  methodFqn: "wix.automations.actioncatalog.v1.ActionCatalogService.ResolveActions",
303
318
  packageName: PACKAGE_NAME,
319
+ migrationOptions: {
320
+ optInTransformResponse: true
321
+ },
304
322
  url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
305
323
  protoPath: "/v1/actions/resolve",
306
324
  data: payload,
@@ -336,6 +354,9 @@ function copyInputMapping(payload) {
336
354
  method: "POST",
337
355
  methodFqn: "wix.automations.actioncatalog.v1.ActionCatalogService.CopyInputMapping",
338
356
  packageName: PACKAGE_NAME,
357
+ migrationOptions: {
358
+ optInTransformResponse: true
359
+ },
339
360
  url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
340
361
  protoPath: "/v1/actions/copy",
341
362
  data: payload,
@@ -354,6 +375,9 @@ function getActionDynamicOutputSchema(payload) {
354
375
  method: "POST",
355
376
  methodFqn: "wix.automations.actioncatalog.v1.ActionCatalogService.GetActionDynamicOutputSchema",
356
377
  packageName: PACKAGE_NAME,
378
+ migrationOptions: {
379
+ optInTransformResponse: true
380
+ },
357
381
  url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
358
382
  protoPath: "/v1/actions/dynamic-output-schema",
359
383
  data: payload,
@@ -372,6 +396,9 @@ function bulkGetActionDynamicOutputSchemas(payload) {
372
396
  method: "POST",
373
397
  methodFqn: "wix.automations.actioncatalog.v1.ActionCatalogService.BulkGetActionDynamicOutputSchemas",
374
398
  packageName: PACKAGE_NAME,
399
+ migrationOptions: {
400
+ optInTransformResponse: true
401
+ },
375
402
  url: resolveWixAutomationsActioncatalogV1ActionCatalogServiceUrl({
376
403
  protoPath: "/v1/actions/bulk/dynamic-output-schema",
377
404
  data: payload,