@wix/auto_sdk_functions_function-productions 1.0.0

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 (39) hide show
  1. package/build/cjs/index.d.ts +44 -0
  2. package/build/cjs/index.js +423 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1121 -0
  5. package/build/cjs/index.typings.js +393 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1048 -0
  8. package/build/cjs/meta.js +373 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +44 -0
  11. package/build/es/index.mjs +388 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +1121 -0
  14. package/build/es/index.typings.mjs +358 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +1048 -0
  17. package/build/es/meta.mjs +335 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +44 -0
  21. package/build/internal/cjs/index.js +423 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +1121 -0
  24. package/build/internal/cjs/index.typings.js +393 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +1048 -0
  27. package/build/internal/cjs/meta.js +373 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +44 -0
  30. package/build/internal/es/index.mjs +388 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +1121 -0
  33. package/build/internal/es/index.typings.mjs +358 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +1048 -0
  36. package/build/internal/es/meta.mjs +335 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,1121 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
3
+ /** A function production defines a function and its related entities. */
4
+ interface FunctionProduction extends FunctionProductionOptionsOneOf {
5
+ /** Options for creating a function from a function type. */
6
+ blankOptions?: BlankOptions;
7
+ /** Options for creating a function from a function template. */
8
+ templateOptions?: TemplateOptions;
9
+ /**
10
+ * Function production ID. This is the same as the created function's ID.
11
+ * @format GUID
12
+ * @readonly
13
+ */
14
+ _id?: string | null;
15
+ /**
16
+ * App ID of the business solution that created the function type the function production is based on.
17
+ * @format GUID
18
+ */
19
+ appId?: string;
20
+ /** Type that the function is created from. */
21
+ type?: FunctionProductionTypeWithLiterals;
22
+ /** Service plugin configuration for the function. */
23
+ functionSpiConfiguration?: FunctionSpiConfiguration;
24
+ /** Function created from the function production. */
25
+ function?: _Function;
26
+ /**
27
+ * Function methods created from the function production.
28
+ * @readonly
29
+ * @maxSize 100
30
+ */
31
+ functionMethods?: FunctionMethod[];
32
+ /**
33
+ * Automations created from the function production.
34
+ * @readonly
35
+ * @maxSize 100
36
+ */
37
+ automations?: Automation[];
38
+ /**
39
+ * Date and time the function production was created.
40
+ * @readonly
41
+ */
42
+ _createdDate?: Date | null;
43
+ /**
44
+ * Date and time the function production was last updated.
45
+ * @readonly
46
+ */
47
+ _updatedDate?: Date | null;
48
+ }
49
+ /** @oneof */
50
+ interface FunctionProductionOptionsOneOf {
51
+ /** Options for creating a function from a function type. */
52
+ blankOptions?: BlankOptions;
53
+ /** Options for creating a function from a function template. */
54
+ templateOptions?: TemplateOptions;
55
+ }
56
+ declare enum FunctionProductionType {
57
+ /** Unknown function production type. */
58
+ UNKNOWN_FUNCTION_PRODUCTION = "UNKNOWN_FUNCTION_PRODUCTION",
59
+ /** Function created from a function type. */
60
+ BLANK = "BLANK",
61
+ /** Function created from a function template. */
62
+ TEMPLATE = "TEMPLATE"
63
+ }
64
+ /** @enumType */
65
+ type FunctionProductionTypeWithLiterals = FunctionProductionType | 'UNKNOWN_FUNCTION_PRODUCTION' | 'BLANK' | 'TEMPLATE';
66
+ interface BlankOptions {
67
+ /**
68
+ * ID of the function type that the function was created from.
69
+ * @format GUID
70
+ */
71
+ functionExtensionId?: string;
72
+ }
73
+ interface TemplateOptions {
74
+ /**
75
+ * ID of the function template that the function was created from.
76
+ * @format GUID
77
+ */
78
+ functionTemplateExtensionId?: string;
79
+ }
80
+ /** SpiConfiguration is a spi configuration for a specific function. */
81
+ interface FunctionSpiConfiguration {
82
+ /**
83
+ * SpiConfiguration ID.
84
+ * @format GUID
85
+ * @readonly
86
+ */
87
+ _id?: string | null;
88
+ /**
89
+ * SpiConfiguration revision.
90
+ * @readonly
91
+ */
92
+ revision?: string | null;
93
+ /**
94
+ * Date and time the SpiConfiguration was created.
95
+ * @readonly
96
+ */
97
+ _createdDate?: Date | null;
98
+ /**
99
+ * Date and time the SpiConfiguration was last updated.
100
+ * @readonly
101
+ */
102
+ _updatedDate?: Date | null;
103
+ /**
104
+ * Function ID
105
+ * @format GUID
106
+ * @readonly
107
+ */
108
+ functionId?: string | null;
109
+ /** Function SPI configuration dev center component payload. */
110
+ configuration?: Record<string, any> | null;
111
+ }
112
+ interface _Function {
113
+ /**
114
+ * Function ID.
115
+ * @format GUID
116
+ * @readonly
117
+ */
118
+ _id?: string | null;
119
+ /**
120
+ * Revision number, which increments by 1 each time the function is updated.
121
+ * To prevent conflicting changes,
122
+ * the current revision must be passed when updating the function.
123
+ *
124
+ * Ignored when creating a function.
125
+ * @readonly
126
+ */
127
+ revision?: string | null;
128
+ /**
129
+ * Date and time the function was created.
130
+ * @readonly
131
+ */
132
+ _createdDate?: Date | null;
133
+ /**
134
+ * Date and time the function was last updated.
135
+ * @readonly
136
+ */
137
+ _updatedDate?: Date | null;
138
+ /**
139
+ * The function's app extension ID.
140
+ * @readonly
141
+ * @format GUID
142
+ */
143
+ functionExtensionId?: string | null;
144
+ /**
145
+ * Function name.
146
+ * @readonly
147
+ * @maxLength 100
148
+ */
149
+ functionName?: string | null;
150
+ /**
151
+ * Activation status
152
+ * @readonly
153
+ */
154
+ activationStatus?: ActivationStatusWithLiterals;
155
+ /**
156
+ * ID of the app that defines the function.
157
+ * @readonly
158
+ * @format GUID
159
+ */
160
+ appId?: string | null;
161
+ /**
162
+ * The function's app extension name.
163
+ * @readonly
164
+ * @minLength 1
165
+ * @maxLength 100
166
+ */
167
+ functionExtensionName?: string | null;
168
+ /**
169
+ * Function template extension id
170
+ * @readonly
171
+ * @format GUID
172
+ */
173
+ functionTemplateExtensionId?: string | null;
174
+ }
175
+ declare enum ActivationStatus {
176
+ /** Activation status is unknown. */
177
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
178
+ /** Function is activated. */
179
+ ACTIVE = "ACTIVE",
180
+ /** Function is deactivated. */
181
+ INACTIVE = "INACTIVE",
182
+ /** Function is saved but has never been activated. */
183
+ DRAFT = "DRAFT"
184
+ }
185
+ /** @enumType */
186
+ type ActivationStatusWithLiterals = ActivationStatus | 'UNKNOWN_STATUS' | 'ACTIVE' | 'INACTIVE' | 'DRAFT';
187
+ /** A function method is a link between a function and an automation, which defines the logic that runs when a function is triggered. */
188
+ interface FunctionMethod {
189
+ /**
190
+ * Function method ID.
191
+ * @format GUID
192
+ * @readonly
193
+ */
194
+ _id?: string | null;
195
+ /**
196
+ * Function method revision.
197
+ * @readonly
198
+ */
199
+ revision?: string | null;
200
+ /**
201
+ * Date and time the function method was created.
202
+ * @readonly
203
+ */
204
+ _createdDate?: Date | null;
205
+ /**
206
+ * Date and time the function method was last updated.
207
+ * @readonly
208
+ */
209
+ _updatedDate?: Date | null;
210
+ /**
211
+ * ID of the automation to link to the function.
212
+ * @format GUID
213
+ */
214
+ automationId?: string;
215
+ /**
216
+ * ID of the function that this method links to an automation.
217
+ * @format GUID
218
+ */
219
+ functionId?: string;
220
+ /**
221
+ * Display name for the function method.
222
+ * @maxLength 160
223
+ */
224
+ methodName?: string;
225
+ }
226
+ interface Automation extends AutomationOriginInfoOneOf {
227
+ /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
228
+ applicationInfo?: ApplicationOrigin;
229
+ /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */
230
+ preinstalledInfo?: PreinstalledOrigin;
231
+ /**
232
+ * Automation ID.
233
+ * @format GUID
234
+ * @readonly
235
+ */
236
+ _id?: string | null;
237
+ /**
238
+ * Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.
239
+ * @readonly
240
+ */
241
+ revision?: string | null;
242
+ /**
243
+ * Who created the automation.
244
+ * @immutable
245
+ * @readonly
246
+ */
247
+ createdBy?: AuditInfo;
248
+ /**
249
+ * When the automation was created.
250
+ * @readonly
251
+ */
252
+ _createdDate?: Date | null;
253
+ /**
254
+ * Who last updated the automation.
255
+ * @readonly
256
+ */
257
+ updatedBy?: AuditInfo;
258
+ /**
259
+ * When the automation was last updated.
260
+ * @readonly
261
+ */
262
+ _updatedDate?: Date | null;
263
+ /**
264
+ * Automation name as displayed on the user's site.
265
+ * @minLength 1
266
+ * @maxLength 500
267
+ */
268
+ name?: string;
269
+ /**
270
+ * Automation description.
271
+ * @maxLength 2000
272
+ */
273
+ description?: string | null;
274
+ /** Automation configuration. */
275
+ configuration?: AutomationConfiguration;
276
+ /**
277
+ * How the automation was added to the user's site.
278
+ * @immutable
279
+ */
280
+ origin?: OriginWithLiterals;
281
+ /** Automation settings. */
282
+ settings?: AutomationSettings;
283
+ /**
284
+ * When the automation is a draft, the draft details.
285
+ * @readonly
286
+ */
287
+ draftInfo?: DraftInfo;
288
+ /**
289
+ * Whether the automation is archived.
290
+ *
291
+ * To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.
292
+ */
293
+ archived?: boolean;
294
+ /** Auto archive policy */
295
+ autoArchivePolicy?: AutoArchivePolicy;
296
+ }
297
+ /** @oneof */
298
+ interface AutomationOriginInfoOneOf {
299
+ /** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
300
+ applicationInfo?: ApplicationOrigin;
301
+ /** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */
302
+ preinstalledInfo?: PreinstalledOrigin;
303
+ }
304
+ interface AIMetadata {
305
+ }
306
+ interface ActionSettings {
307
+ /**
308
+ * Permanent actions. PermanentAction's skipActionExpression cannot be modified.
309
+ *
310
+ * When empty, all actions can be set as skipped
311
+ * @maxSize 30
312
+ * @format GUID
313
+ */
314
+ permanentActionIds?: string[];
315
+ /**
316
+ * Read-only actions. Read-only actions cannot be edited.
317
+ *
318
+ * When empty, all actions are editable.
319
+ * @maxSize 30
320
+ * @format GUID
321
+ */
322
+ readonlyActionIds?: string[];
323
+ /**
324
+ * Whether to disable the ability to add a delay to the automation.
325
+ *
326
+ * Default: `false`.
327
+ */
328
+ disableDelayAddition?: boolean;
329
+ /**
330
+ * Whether to disable the ability to add a condition to the automation.
331
+ *
332
+ * Default: `false`.
333
+ */
334
+ disableConditionAddition?: boolean;
335
+ }
336
+ declare enum Domain {
337
+ /** User domain (default). */
338
+ USER = "USER",
339
+ /** Wix domain. */
340
+ WIX = "WIX",
341
+ /** Wix account-level domain. */
342
+ WIX_ACCOUNT = "WIX_ACCOUNT"
343
+ }
344
+ /** @enumType */
345
+ type DomainWithLiterals = Domain | 'USER' | 'WIX' | 'WIX_ACCOUNT';
346
+ interface Enrichment {
347
+ /**
348
+ * Enrichment input mappings.
349
+ * @maxSize 2
350
+ */
351
+ inputMappings?: Record<string, any>[] | null;
352
+ }
353
+ interface AuditInfo extends AuditInfoIdOneOf {
354
+ /**
355
+ * [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).
356
+ * @format GUID
357
+ */
358
+ userId?: string;
359
+ /**
360
+ * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
361
+ *
362
+ * You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
363
+ * @format GUID
364
+ */
365
+ appId?: string;
366
+ }
367
+ /** @oneof */
368
+ interface AuditInfoIdOneOf {
369
+ /**
370
+ * [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).
371
+ * @format GUID
372
+ */
373
+ userId?: string;
374
+ /**
375
+ * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
376
+ *
377
+ * You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
378
+ * @format GUID
379
+ */
380
+ appId?: string;
381
+ }
382
+ interface AutomationConfiguration {
383
+ /** Status of the automation on the site. */
384
+ status?: StatusWithLiterals;
385
+ /** Trigger configuration. */
386
+ trigger?: Trigger;
387
+ /**
388
+ * Root action IDs. A root action is the first action that runs after the trigger occurs. Root actions run in parallel.
389
+ *
390
+ * > **Note**: You can currently only specify 1 root action.
391
+ * @maxSize 20
392
+ * @format GUID
393
+ */
394
+ rootActionIds?: string[];
395
+ /** Actions the automation can execute, as `key:value` pairs. For the key, specify the action ID. The value must be an object structured as described below. */
396
+ actions?: Record<string, Action>;
397
+ }
398
+ declare enum TimeUnit {
399
+ UNKNOWN_TIME_UNIT = "UNKNOWN_TIME_UNIT",
400
+ /** Minutes. */
401
+ MINUTES = "MINUTES",
402
+ /** Hours. */
403
+ HOURS = "HOURS",
404
+ /** Days. */
405
+ DAYS = "DAYS",
406
+ /** Weeks. */
407
+ WEEKS = "WEEKS",
408
+ /** Months. */
409
+ MONTHS = "MONTHS"
410
+ }
411
+ /** @enumType */
412
+ type TimeUnitWithLiterals = TimeUnit | 'UNKNOWN_TIME_UNIT' | 'MINUTES' | 'HOURS' | 'DAYS' | 'WEEKS' | 'MONTHS';
413
+ interface Filter {
414
+ /**
415
+ * Filter ID.
416
+ * @format GUID
417
+ */
418
+ _id?: string;
419
+ /**
420
+ * Field key.
421
+ *
422
+ * You can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).
423
+ * @minLength 1
424
+ * @maxLength 110
425
+ */
426
+ fieldKey?: string;
427
+ /**
428
+ * Filter expression.
429
+ *
430
+ * For the automation to run, the expression must evaluate to `true`.
431
+ * @maxLength 2500
432
+ */
433
+ filterExpression?: string;
434
+ }
435
+ interface FutureDateActivationOffset {
436
+ /**
437
+ * Amount of time before the trigger to run the automation.
438
+ *
439
+ * > **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#delay-action).
440
+ * @maxLength 1000
441
+ */
442
+ preScheduledEventOffsetExpression?: string;
443
+ /** Unit in which to set the action offset. */
444
+ scheduledEventOffsetTimeUnit?: TimeUnitWithLiterals;
445
+ }
446
+ interface RateLimit {
447
+ /**
448
+ * Maximum number of times the trigger can be activated.
449
+ * @maxLength 1000
450
+ */
451
+ maxActivationsExpression?: string;
452
+ /**
453
+ * Duration of the rate limit. The rate limit applies for the specified duration and then expires.
454
+ *
455
+ * When empty, the rate limit does not expire.
456
+ * @maxLength 1000
457
+ */
458
+ durationExpression?: string | null;
459
+ /** Unit in which to set the duration of the rate limit. */
460
+ durationTimeUnit?: TimeUnitWithLiterals;
461
+ /**
462
+ * Activation identifier used to count the number of activations.
463
+ * @minLength 1
464
+ * @maxLength 400
465
+ */
466
+ uniqueIdentifierExpression?: string | null;
467
+ }
468
+ interface FilterValueSelection {
469
+ /**
470
+ * Values that can help the user filter certain automations. Specify values in the following format: `<filter_id>__<selected_value>`.
471
+ * @maxLength 80
472
+ * @maxSize 50
473
+ */
474
+ selectedFilterValues?: string[];
475
+ }
476
+ interface ConditionExpressionGroup {
477
+ /** Logical operator used to evaluate the condition expressions. */
478
+ operator?: OperatorWithLiterals;
479
+ /**
480
+ * Expressions evaluated using the selected operator.
481
+ * @minSize 1
482
+ * @maxSize 20
483
+ * @maxLength 2500
484
+ */
485
+ booleanExpressions?: string[];
486
+ }
487
+ declare enum Operator {
488
+ /** Unknown. */
489
+ UNKNOWN_OPERATOR = "UNKNOWN_OPERATOR",
490
+ /** `OR` operator. */
491
+ OR = "OR",
492
+ /** `AND` operator. */
493
+ AND = "AND"
494
+ }
495
+ /** @enumType */
496
+ type OperatorWithLiterals = Operator | 'UNKNOWN_OPERATOR' | 'OR' | 'AND';
497
+ interface CodeSnippet {
498
+ /** Logical operator used to evaluate the condition expressions. */
499
+ language?: LanguageWithLiterals;
500
+ /**
501
+ * Expressions evaluated using the selected operator. this code should comply the language syntax. and format
502
+ * @maxLength 1000
503
+ */
504
+ code?: string;
505
+ }
506
+ declare enum Language {
507
+ /** Unknown. */
508
+ UNKNOWN_LANGUAGE = "UNKNOWN_LANGUAGE",
509
+ /** JavaScript. */
510
+ JAVASCRIPT = "JAVASCRIPT"
511
+ }
512
+ /** @enumType */
513
+ type LanguageWithLiterals = Language | 'UNKNOWN_LANGUAGE' | 'JAVASCRIPT';
514
+ /** Path definition */
515
+ interface Path {
516
+ /**
517
+ * Unique path ID.
518
+ * @format GUID
519
+ */
520
+ _id?: string;
521
+ /**
522
+ * Path display name.
523
+ * @minLength 1
524
+ * @maxLength 100
525
+ */
526
+ name?: string;
527
+ /**
528
+ * ID of the action to run when this path is taken.
529
+ * @format GUID
530
+ */
531
+ postActionId?: string | null;
532
+ }
533
+ declare enum Type {
534
+ /** Based on the trigger. */
535
+ UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
536
+ /** Defined by a [Wix app](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#app-defined-action). This action type is available in the site dashboard. */
537
+ APP_DEFINED = "APP_DEFINED",
538
+ /** Condition. This determines which action runs next. */
539
+ CONDITION = "CONDITION",
540
+ /** Delay. The automation must wait before executing the next step. */
541
+ DELAY = "DELAY",
542
+ /** Rate-limiter. This stops the automation flow if the subsequent action has reached its maximum allowed executions. */
543
+ RATE_LIMIT = "RATE_LIMIT"
544
+ }
545
+ /** @enumType */
546
+ type TypeWithLiterals = Type | 'UNKNOWN_ACTION_TYPE' | 'APP_DEFINED' | 'CONDITION' | 'DELAY' | 'RATE_LIMIT';
547
+ interface AppDefinedAction {
548
+ /**
549
+ * ID of the app that defines the action.
550
+ * @format GUID
551
+ */
552
+ appId?: string;
553
+ /**
554
+ * Action key.
555
+ * @minLength 1
556
+ * @maxLength 100
557
+ */
558
+ actionKey?: string;
559
+ /**
560
+ * Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema).
561
+ *
562
+ * The input mapping must include all parameters specified in the action's input schema's `required` array, and can include any other parameters from the schema.
563
+ */
564
+ inputMapping?: Record<string, any> | null;
565
+ /**
566
+ * Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.
567
+ *
568
+ * > **Note**: Actions that follow a skipped action still run.
569
+ * @maxSize 10
570
+ * @deprecated Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.
571
+ *
572
+ * > **Note**: Actions that follow a skipped action still run.
573
+ * @replacedBy skip_expression
574
+ * @targetRemovalDate 2026-02-01
575
+ */
576
+ skipConditionOrExpressionGroups?: ConditionExpressionGroup[];
577
+ /**
578
+ * IDs of actions that run in parallel after the action completes.
579
+ * @maxSize 1
580
+ * @format GUID
581
+ */
582
+ postActionIds?: string[];
583
+ /** Action output schema. When specified, this replaces the action schema. */
584
+ overrideOutputSchema?: Record<string, any> | null;
585
+ }
586
+ interface ConditionAction {
587
+ /**
588
+ * Condition is `true` if one or more of the expression groups evaluates to `true`.
589
+ * @minSize 1
590
+ * @maxSize 10
591
+ */
592
+ orExpressionGroups?: ConditionExpressionGroup[];
593
+ /**
594
+ * IDs of actions to run when the condition evaluates to `true`.
595
+ * @maxSize 1
596
+ * @format GUID
597
+ */
598
+ truePostActionIds?: string[];
599
+ /**
600
+ * IDs of actions to run when the condition evaluates to `false`.
601
+ * @maxSize 1
602
+ * @format GUID
603
+ */
604
+ falsePostActionIds?: string[];
605
+ }
606
+ interface CodeConditionAction {
607
+ /** condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean. */
608
+ snippet?: CodeSnippet;
609
+ /**
610
+ * IDs of actions to run when the condition evaluates to `true`.
611
+ * @maxSize 1
612
+ * @format GUID
613
+ */
614
+ truePostActionIds?: string[];
615
+ /**
616
+ * IDs of actions to run when the condition evaluates to `false`.
617
+ * @maxSize 1
618
+ * @format GUID
619
+ */
620
+ falsePostActionIds?: string[];
621
+ }
622
+ interface DelayAction {
623
+ /**
624
+ * Time to wait before running the action. The wait time starts from when the current action completes.
625
+ *
626
+ * > **Note**: To define the wait time from a specific moment in time, use `dueDateExpression`.
627
+ * @maxLength 1000
628
+ */
629
+ offsetExpression?: string | null;
630
+ /** Unit in which to set the wait time to wait before the action runs. */
631
+ offsetTimeUnit?: TimeUnitWithLiterals;
632
+ /**
633
+ * Action run date in milliseconds elapsed since January 1, 1970 UTC.
634
+ *
635
+ * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.
636
+ * @maxLength 1000
637
+ * @deprecated Action run date in milliseconds elapsed since January 1, 1970 UTC.
638
+ *
639
+ * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.
640
+ * @replacedBy due_date_expression
641
+ * @targetRemovalDate 2026-02-01
642
+ */
643
+ dueDateEpochExpression?: string | null;
644
+ /**
645
+ * Action run date as a timestamp or DateTime expression using bracket notation.
646
+ *
647
+ * > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.
648
+ * @maxLength 1000
649
+ */
650
+ dueDateExpression?: string | null;
651
+ /**
652
+ * IDs of actions to run in parallel after the time delay.
653
+ * @maxSize 1
654
+ * @format GUID
655
+ */
656
+ postActionIds?: string[];
657
+ }
658
+ interface RateLimitAction {
659
+ /**
660
+ * Maximum number of times the action can run.
661
+ * @maxLength 1000
662
+ */
663
+ maxActivationsExpression?: string;
664
+ /**
665
+ * Rate limit duration.
666
+ *
667
+ * When empty, the rate limit does not expire.
668
+ * @maxLength 1000
669
+ */
670
+ rateLimitDurationExpression?: string | null;
671
+ /** Unit in which to set the duration of the rate limit. */
672
+ rateLimitDurationTimeUnit?: TimeUnitWithLiterals;
673
+ /**
674
+ * Unique identifier of each activation by which rate limiter counts activations.
675
+ * @minLength 1
676
+ * @maxLength 400
677
+ */
678
+ uniqueIdentifierExpression?: string | null;
679
+ /**
680
+ * IDs of actions to run in parallel after the action completes.
681
+ * @maxSize 1
682
+ * @format GUID
683
+ */
684
+ postActionIds?: string[];
685
+ }
686
+ interface SetVariablesAction {
687
+ /** Output mapping. For example: `{"someField": "{{10}}", "someOtherField": "{{multiply( var('account.points.balance') ;2 )}}" }`. */
688
+ outputMapping?: Record<string, any> | null;
689
+ /**
690
+ * Output JSON schema representation.
691
+ *
692
+ * > **Note**: To minimize request size, you can also specify a string.
693
+ */
694
+ outputSchema?: Record<string, any> | null;
695
+ /**
696
+ * IDs of actions to run in parallel after variable initialization.
697
+ * @maxSize 1
698
+ * @format GUID
699
+ */
700
+ postActionIds?: string[];
701
+ }
702
+ interface OutputAction {
703
+ /** Output action output mapping. */
704
+ outputMapping?: Record<string, any> | null;
705
+ }
706
+ interface SplitAction {
707
+ /**
708
+ * List of paths to split execution into.
709
+ * @minSize 2
710
+ * @maxSize 10
711
+ */
712
+ paths?: Path[];
713
+ }
714
+ declare enum Status {
715
+ /** Unknown. */
716
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
717
+ /** Active. Active automations can be triggered. */
718
+ ACTIVE = "ACTIVE",
719
+ /** Inactive. Inactive automations cannot be triggered. */
720
+ INACTIVE = "INACTIVE"
721
+ }
722
+ /** @enumType */
723
+ type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'ACTIVE' | 'INACTIVE';
724
+ interface Trigger {
725
+ /**
726
+ * ID of the app that defines the trigger.
727
+ * @format GUID
728
+ */
729
+ appId?: string;
730
+ /**
731
+ * Trigger key.
732
+ *
733
+ * Learn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).
734
+ * @minLength 1
735
+ * @maxLength 100
736
+ */
737
+ triggerKey?: string;
738
+ /**
739
+ * Schema field filters. All filter conditions must be met for the automation to run.
740
+ *
741
+ * Learn more about setting up [automation filters](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#filters).
742
+ * @maxSize 5
743
+ */
744
+ filters?: Filter[];
745
+ /**
746
+ * Automation offset. You can schedule automations to run before the trigger occurs.
747
+ *
748
+ * Learn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).
749
+ */
750
+ scheduledEventOffset?: FutureDateActivationOffset;
751
+ /** Limit on the number of times an automation can be triggered. */
752
+ rateLimit?: RateLimit;
753
+ /** Trigger schema override. When specified, this replaces the trigger schema. */
754
+ overrideSchema?: Record<string, any> | null;
755
+ }
756
+ interface Action extends ActionInfoOneOf {
757
+ /** Details of the action when its `type` is `APP_DEFINED`. */
758
+ appDefinedInfo?: AppDefinedAction;
759
+ /** Details of the action when its `type` is `CONDITION`. */
760
+ conditionInfo?: ConditionAction;
761
+ /** Details of the action when its `type` is `CODE_CONDITION`. */
762
+ codeConditionInfo?: CodeConditionAction;
763
+ /** Details of the action when its `type` is `DELAY`. */
764
+ delayInfo?: DelayAction;
765
+ /** Details of the action when its `type` is `RATE_LIMIT`. */
766
+ rateLimitInfo?: RateLimitAction;
767
+ /**
768
+ * Action ID.
769
+ *
770
+ * Unique identifier for the action instance in the current automation. Use this to refer to this action in the automation flow.
771
+ *
772
+ * If not specified, automatically generated by Wix.
773
+ * @format GUID
774
+ */
775
+ _id?: string | null;
776
+ /** [Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#action-type). */
777
+ type?: TypeWithLiterals;
778
+ /**
779
+ * Editable display name for the action.
780
+ * @minLength 1
781
+ * @maxLength 60
782
+ */
783
+ displayName?: string | null;
784
+ /**
785
+ * [Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#namespace). This differentiates it from other actions of the same type.
786
+ *
787
+ * If the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.
788
+ * @minLength 1
789
+ * @maxLength 100
790
+ */
791
+ namespace?: string | null;
792
+ /**
793
+ * Evaluated to boolean to decide whether the action is skipped.
794
+ * For ConditionAction: if skipped, true_post_action_ids execute; false_post_action_ids are skipped
795
+ * SplitAction and OutputAction do not support skip_action_expression
796
+ * @maxLength 1000
797
+ */
798
+ skipActionExpression?: string | null;
799
+ }
800
+ /** @oneof */
801
+ interface ActionInfoOneOf {
802
+ /** Details of the action when its `type` is `APP_DEFINED`. */
803
+ appDefinedInfo?: AppDefinedAction;
804
+ /** Details of the action when its `type` is `CONDITION`. */
805
+ conditionInfo?: ConditionAction;
806
+ /** Details of the action when its `type` is `CODE_CONDITION`. */
807
+ codeConditionInfo?: CodeConditionAction;
808
+ /** Details of the action when its `type` is `DELAY`. */
809
+ delayInfo?: DelayAction;
810
+ /** Details of the action when its `type` is `RATE_LIMIT`. */
811
+ rateLimitInfo?: RateLimitAction;
812
+ }
813
+ interface FilterableAppDefinedActions {
814
+ /**
815
+ * App-defined action identifiers. Identifiers have the following format: `${appId}_${actionKey}`.
816
+ * @minSize 1
817
+ * @maxSize 100
818
+ * @minLength 1
819
+ * @maxLength 150
820
+ */
821
+ actionIdentifiers?: string[];
822
+ }
823
+ declare enum Origin {
824
+ /** Default value. */
825
+ UNKNOWN_ORIGIN = "UNKNOWN_ORIGIN",
826
+ /** Created by a [Wix user](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-user). */
827
+ USER = "USER",
828
+ /** Created by a [Wix app](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-app) for a particular site. */
829
+ APPLICATION = "APPLICATION",
830
+ /** [Preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations). */
831
+ PREINSTALLED = "PREINSTALLED"
832
+ }
833
+ /** @enumType */
834
+ type OriginWithLiterals = Origin | 'UNKNOWN_ORIGIN' | 'USER' | 'APPLICATION' | 'PREINSTALLED';
835
+ interface ApplicationOrigin {
836
+ /**
837
+ * [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
838
+ *
839
+ * You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
840
+ * @format GUID
841
+ */
842
+ appId?: string;
843
+ }
844
+ interface PreinstalledOrigin {
845
+ /**
846
+ * ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).
847
+ * @format GUID
848
+ */
849
+ appId?: string;
850
+ /**
851
+ * Whether the automation is an override.
852
+ *
853
+ * When a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.
854
+ *
855
+ * > **Note**: An override automation can no longer be updated by the app that originally installed it.
856
+ * >
857
+ * > To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.
858
+ *
859
+ * Default: `false`.
860
+ * @immutable
861
+ * @readonly
862
+ */
863
+ override?: boolean | null;
864
+ }
865
+ interface AutomationSettings {
866
+ /**
867
+ * Whether the automation is hidden from users.
868
+ *
869
+ * Default: `false`
870
+ */
871
+ hidden?: boolean;
872
+ /**
873
+ * Whether the automation is read-only.
874
+ *
875
+ * Default: `false`
876
+ */
877
+ readonly?: boolean;
878
+ /**
879
+ * Whether to disable the option to delete the automation from the site.
880
+ *
881
+ * Default: `false`.
882
+ */
883
+ disableDelete?: boolean;
884
+ /**
885
+ * Whether to disable the option to change the automation's `configuration.status`, for example from `ACTIVE` to `INACTIVE`.
886
+ *
887
+ * Default: `false`.
888
+ */
889
+ disableStatusChange?: boolean;
890
+ /** Automation action settings. */
891
+ actionSettings?: ActionSettings;
892
+ }
893
+ interface DraftInfo {
894
+ /**
895
+ * ID of the original automation.
896
+ * @format GUID
897
+ * @readonly
898
+ */
899
+ originalAutomationId?: string | null;
900
+ }
901
+ interface Enrichments {
902
+ /** Whether the studio site enrichment is wanted. */
903
+ studioSite?: Enrichment;
904
+ }
905
+ interface ExtendedFields {
906
+ /**
907
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
908
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
909
+ *
910
+ * You can only access fields for which you have the appropriate permissions.
911
+ *
912
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
913
+ */
914
+ namespaces?: Record<string, Record<string, any>>;
915
+ }
916
+ interface AutoArchivePolicy {
917
+ /**
918
+ * Date when to archive the automation
919
+ * If this date in the past, nothing will happen (automation will not go into archived state)
920
+ * If this date in the future, on this date the automation will be updated with archived = true and configuration.status = INACTIVE
921
+ * After this date the automation may be unarchived and archived again, this date will have no influence
922
+ */
923
+ archiveDate?: Date | null;
924
+ }
925
+ interface Notes {
926
+ }
927
+ interface Note {
928
+ }
929
+ interface Position {
930
+ }
931
+ interface Offset {
932
+ }
933
+ interface Dimensions {
934
+ }
935
+ /** Creation of function production */
936
+ interface CreateFunctionProductionRequest {
937
+ /** Function production to create. */
938
+ functionProduction: FunctionProduction;
939
+ }
940
+ interface CreateFunctionProductionResponse {
941
+ /** The created function production. */
942
+ functionProduction?: FunctionProduction;
943
+ }
944
+ /** Update of function production */
945
+ interface UpdateFunctionProductionRequest {
946
+ /** Function production to update. */
947
+ functionProduction: FunctionProduction;
948
+ }
949
+ interface UpdateFunctionProductionResponse {
950
+ /** Updated function production. */
951
+ functionProduction?: FunctionProduction;
952
+ }
953
+ interface DeleteFunctionProductionRequest {
954
+ /**
955
+ * ID of the function production to delete.
956
+ * @format GUID
957
+ */
958
+ functionProductionId: string;
959
+ }
960
+ interface DeleteFunctionProductionResponse {
961
+ }
962
+ interface DomainEvent extends DomainEventBodyOneOf {
963
+ createdEvent?: EntityCreatedEvent;
964
+ updatedEvent?: EntityUpdatedEvent;
965
+ deletedEvent?: EntityDeletedEvent;
966
+ actionEvent?: ActionEvent;
967
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
968
+ _id?: string;
969
+ /**
970
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
971
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
972
+ */
973
+ entityFqdn?: string;
974
+ /**
975
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
976
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
977
+ */
978
+ slug?: string;
979
+ /** ID of the entity associated with the event. */
980
+ entityId?: string;
981
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
982
+ eventTime?: Date | null;
983
+ /**
984
+ * Whether the event was triggered as a result of a privacy regulation application
985
+ * (for example, GDPR).
986
+ */
987
+ triggeredByAnonymizeRequest?: boolean | null;
988
+ /** If present, indicates the action that triggered the event. */
989
+ originatedFrom?: string | null;
990
+ /**
991
+ * 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.
992
+ * 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.
993
+ */
994
+ entityEventSequence?: string | null;
995
+ }
996
+ /** @oneof */
997
+ interface DomainEventBodyOneOf {
998
+ createdEvent?: EntityCreatedEvent;
999
+ updatedEvent?: EntityUpdatedEvent;
1000
+ deletedEvent?: EntityDeletedEvent;
1001
+ actionEvent?: ActionEvent;
1002
+ }
1003
+ interface EntityCreatedEvent {
1004
+ entity?: string;
1005
+ }
1006
+ interface RestoreInfo {
1007
+ deletedDate?: Date | null;
1008
+ }
1009
+ interface EntityUpdatedEvent {
1010
+ /**
1011
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1012
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1013
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1014
+ */
1015
+ currentEntity?: string;
1016
+ }
1017
+ interface EntityDeletedEvent {
1018
+ /** Entity that was deleted. */
1019
+ deletedEntity?: string | null;
1020
+ }
1021
+ interface ActionEvent {
1022
+ body?: string;
1023
+ }
1024
+ interface Empty {
1025
+ }
1026
+ /**
1027
+ * Creates a function production.
1028
+ *
1029
+ * This method creates a function, an automation, and a service plugin configuration. It also creates a function method that links the function to the automation. Learn more about [function creation](https://dev.wix.com/docs/api-reference/business-management/functions/about-function-creation-and-activation#quick-creation-and-configuration).
1030
+ *
1031
+ * You can create a function production from a function type or a function template. If you create a function production from a function type, the automation created will not contain any logic. If you create a function production from a function template, the automation created will contain the template's automation logic.
1032
+ *
1033
+ * > **Note:** Some function types have a default template applied, in which case the automation created will contain the default template's automation logic.
1034
+ *
1035
+ * Once created, all parts of the function production can be updated using the [Update Function Production](https://dev.wix.com/docs/api-reference/business-management/functions/function-productions/update-function-production) method or other APIs. They work together so if you update the function, or anything related to it, the function production object will be updated to reflect the changes.
1036
+ * @param functionProduction - Function production to create.
1037
+ * @public
1038
+ * @documentationMaturity preview
1039
+ * @requiredField functionProduction
1040
+ * @requiredField functionProduction.appId
1041
+ * @requiredField functionProduction.options
1042
+ * @requiredField functionProduction.type
1043
+ * @permissionId FUNCTIONS.FUNCTION_PRODUCTION_CREATE
1044
+ * @applicableIdentity APP
1045
+ * @returns The created function production.
1046
+ * @fqn wix.functions.v1.productions.FunctionProductions.CreateFunctionProduction
1047
+ */
1048
+ declare function createFunctionProduction(functionProduction: NonNullablePaths<FunctionProduction, `appId` | `type`, 2>): Promise<NonNullablePaths<FunctionProduction, `blankOptions.functionExtensionId` | `templateOptions.functionTemplateExtensionId` | `appId` | `type` | `function.activationStatus` | `functionMethods` | `functionMethods.${number}.automationId` | `functionMethods.${number}.functionId` | `functionMethods.${number}.methodName` | `automations` | `automations.${number}.applicationInfo.appId` | `automations.${number}.preinstalledInfo.appId` | `automations.${number}.createdBy.userId` | `automations.${number}.createdBy.appId` | `automations.${number}.name` | `automations.${number}.configuration.status` | `automations.${number}.configuration.trigger.appId` | `automations.${number}.configuration.trigger.triggerKey` | `automations.${number}.origin` | `automations.${number}.settings.hidden` | `automations.${number}.settings.readonly` | `automations.${number}.settings.disableDelete` | `automations.${number}.settings.disableStatusChange` | `automations.${number}.settings.actionSettings.disableDelayAddition` | `automations.${number}.settings.actionSettings.disableConditionAddition` | `automations.${number}.archived`, 6>>;
1049
+ /**
1050
+ * Updates a function production.
1051
+ * @param _id - Function production ID. This is the same as the created function's ID.
1052
+ * @public
1053
+ * @documentationMaturity preview
1054
+ * @requiredField _id
1055
+ * @requiredField functionProduction
1056
+ * @requiredField functionProduction.automations
1057
+ * @requiredField functionProduction.functionSpiConfiguration
1058
+ * @permissionId FUNCTIONS.FUNCTION_PRODUCTION_UPDATE
1059
+ * @applicableIdentity APP
1060
+ * @returns Updated function production.
1061
+ * @fqn wix.functions.v1.productions.FunctionProductions.UpdateFunctionProduction
1062
+ */
1063
+ declare function updateFunctionProduction(_id: string, functionProduction: NonNullablePaths<UpdateFunctionProduction, `automations` | `functionSpiConfiguration`, 2>): Promise<NonNullablePaths<FunctionProduction, `blankOptions.functionExtensionId` | `templateOptions.functionTemplateExtensionId` | `appId` | `type` | `function.activationStatus` | `functionMethods` | `functionMethods.${number}.automationId` | `functionMethods.${number}.functionId` | `functionMethods.${number}.methodName` | `automations` | `automations.${number}.applicationInfo.appId` | `automations.${number}.preinstalledInfo.appId` | `automations.${number}.createdBy.userId` | `automations.${number}.createdBy.appId` | `automations.${number}.name` | `automations.${number}.configuration.status` | `automations.${number}.configuration.trigger.appId` | `automations.${number}.configuration.trigger.triggerKey` | `automations.${number}.origin` | `automations.${number}.settings.hidden` | `automations.${number}.settings.readonly` | `automations.${number}.settings.disableDelete` | `automations.${number}.settings.disableStatusChange` | `automations.${number}.settings.actionSettings.disableDelayAddition` | `automations.${number}.settings.actionSettings.disableConditionAddition` | `automations.${number}.archived`, 6>>;
1064
+ interface UpdateFunctionProduction {
1065
+ /** Options for creating a function from a function type. */
1066
+ blankOptions?: BlankOptions;
1067
+ /** Options for creating a function from a function template. */
1068
+ templateOptions?: TemplateOptions;
1069
+ /**
1070
+ * Function production ID. This is the same as the created function's ID.
1071
+ * @format GUID
1072
+ * @readonly
1073
+ */
1074
+ _id?: string | null;
1075
+ /**
1076
+ * App ID of the business solution that created the function type the function production is based on.
1077
+ * @format GUID
1078
+ */
1079
+ appId?: string;
1080
+ /** Type that the function is created from. */
1081
+ type?: FunctionProductionTypeWithLiterals;
1082
+ /** Service plugin configuration for the function. */
1083
+ functionSpiConfiguration?: FunctionSpiConfiguration;
1084
+ /** Function created from the function production. */
1085
+ function?: _Function;
1086
+ /**
1087
+ * Function methods created from the function production.
1088
+ * @readonly
1089
+ * @maxSize 100
1090
+ */
1091
+ functionMethods?: FunctionMethod[];
1092
+ /**
1093
+ * Automations created from the function production.
1094
+ * @readonly
1095
+ * @maxSize 100
1096
+ */
1097
+ automations?: Automation[];
1098
+ /**
1099
+ * Date and time the function production was created.
1100
+ * @readonly
1101
+ */
1102
+ _createdDate?: Date | null;
1103
+ /**
1104
+ * Date and time the function production was last updated.
1105
+ * @readonly
1106
+ */
1107
+ _updatedDate?: Date | null;
1108
+ }
1109
+ /**
1110
+ * Deletes a function production and all its associated entities.
1111
+ * @param functionProductionId - ID of the function production to delete.
1112
+ * @public
1113
+ * @documentationMaturity preview
1114
+ * @requiredField functionProductionId
1115
+ * @permissionId FUNCTIONS.FUNCTION_PRODUCTION_DELETE
1116
+ * @applicableIdentity APP
1117
+ * @fqn wix.functions.v1.productions.FunctionProductions.DeleteFunctionProduction
1118
+ */
1119
+ declare function deleteFunctionProduction(functionProductionId: string): Promise<void>;
1120
+
1121
+ export { type AIMetadata, type Action, type ActionEvent, type ActionInfoOneOf, type ActionSettings, ActivationStatus, type ActivationStatusWithLiterals, type AppDefinedAction, type ApplicationOrigin, type AuditInfo, type AuditInfoIdOneOf, type AutoArchivePolicy, type Automation, type AutomationConfiguration, type AutomationOriginInfoOneOf, type AutomationSettings, type BlankOptions, type CodeConditionAction, type CodeSnippet, type ConditionAction, type ConditionExpressionGroup, type CreateFunctionProductionRequest, type CreateFunctionProductionResponse, type DelayAction, type DeleteFunctionProductionRequest, type DeleteFunctionProductionResponse, type Dimensions, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type Empty, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type Filter, type FilterValueSelection, type FilterableAppDefinedActions, type FunctionMethod, type FunctionProduction, type FunctionProductionOptionsOneOf, FunctionProductionType, type FunctionProductionTypeWithLiterals, type FunctionSpiConfiguration, type FutureDateActivationOffset, Language, type LanguageWithLiterals, type Note, type Notes, type Offset, Operator, type OperatorWithLiterals, Origin, type OriginWithLiterals, type OutputAction, type Path, type Position, type PreinstalledOrigin, type RateLimit, type RateLimitAction, type RestoreInfo, type SetVariablesAction, type SplitAction, Status, type StatusWithLiterals, type TemplateOptions, TimeUnit, type TimeUnitWithLiterals, type Trigger, Type, type TypeWithLiterals, type UpdateFunctionProduction, type UpdateFunctionProductionRequest, type UpdateFunctionProductionResponse, type _Function, createFunctionProduction, deleteFunctionProduction, updateFunctionProduction };