@wix/automations 1.0.45 → 1.0.47

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/automations",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,9 +18,9 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/automations_activations": "1.0.27",
22
- "@wix/automations_automations-service": "1.0.20",
23
- "@wix/automations_automations-service-v-2": "1.0.28"
21
+ "@wix/automations_activations": "1.0.28",
22
+ "@wix/automations_automations-service": "1.0.21",
23
+ "@wix/automations_automations-service-v-2": "1.0.29"
24
24
  },
25
25
  "devDependencies": {
26
26
  "glob": "^10.4.1",
@@ -45,5 +45,5 @@
45
45
  "fqdn": ""
46
46
  }
47
47
  },
48
- "falconPackageHash": "e9ad9fc057618ced6d7c23b7ccdf2678a120ff3518f434f2133b4145"
48
+ "falconPackageHash": "14bd4b8d05fd4455280972a413fb96f2d56d11c901ef199826eed7e2"
49
49
  }
@@ -12,6 +12,10 @@ type Host<Environment = unknown> = {
12
12
  }>;
13
13
  };
14
14
  environment?: Environment;
15
+ /**
16
+ * Optional name of the environment, use for logging
17
+ */
18
+ name?: string;
15
19
  /**
16
20
  * Optional bast url to use for API requests, for example `www.wixapis.com`
17
21
  */
@@ -63,16 +67,16 @@ type APIMetadata = {
63
67
  packageName?: string;
64
68
  };
65
69
  type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
66
- type EventDefinition$3<Payload = unknown, Type extends string = string> = {
70
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
67
71
  __type: 'event-definition';
68
72
  type: Type;
69
73
  isDomainEvent?: boolean;
70
74
  transformations?: (envelope: unknown) => Payload;
71
75
  __payload: Payload;
72
76
  };
73
- declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
74
- type EventHandler$3<T extends EventDefinition$3> = (payload: T['__payload']) => void | Promise<void>;
75
- type BuildEventDefinition$3<T extends EventDefinition$3<any, string>> = (handler: EventHandler$3<T>) => void;
77
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
78
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
79
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
76
80
 
77
81
  type ServicePluginMethodInput = {
78
82
  request: any;
@@ -271,6 +275,72 @@ type Except<ObjectType, KeysType extends keyof ObjectType, Options extends Excep
271
275
  ? Partial<Record<KeysType, never>>
272
276
  : {});
273
277
 
278
+ /**
279
+ Returns a boolean for whether the given type is `never`.
280
+
281
+ @link https://github.com/microsoft/TypeScript/issues/31751#issuecomment-498526919
282
+ @link https://stackoverflow.com/a/53984913/10292952
283
+ @link https://www.zhenghao.io/posts/ts-never
284
+
285
+ Useful in type utilities, such as checking if something does not occur.
286
+
287
+ @example
288
+ ```
289
+ import type {IsNever, And} from 'type-fest';
290
+
291
+ // https://github.com/andnp/SimplyTyped/blob/master/src/types/strings.ts
292
+ type AreStringsEqual<A extends string, B extends string> =
293
+ And<
294
+ IsNever<Exclude<A, B>> extends true ? true : false,
295
+ IsNever<Exclude<B, A>> extends true ? true : false
296
+ >;
297
+
298
+ type EndIfEqual<I extends string, O extends string> =
299
+ AreStringsEqual<I, O> extends true
300
+ ? never
301
+ : void;
302
+
303
+ function endIfEqual<I extends string, O extends string>(input: I, output: O): EndIfEqual<I, O> {
304
+ if (input === output) {
305
+ process.exit(0);
306
+ }
307
+ }
308
+
309
+ endIfEqual('abc', 'abc');
310
+ //=> never
311
+
312
+ endIfEqual('abc', '123');
313
+ //=> void
314
+ ```
315
+
316
+ @category Type Guard
317
+ @category Utilities
318
+ */
319
+ type IsNever<T> = [T] extends [never] ? true : false;
320
+
321
+ /**
322
+ An if-else-like type that resolves depending on whether the given type is `never`.
323
+
324
+ @see {@link IsNever}
325
+
326
+ @example
327
+ ```
328
+ import type {IfNever} from 'type-fest';
329
+
330
+ type ShouldBeTrue = IfNever<never>;
331
+ //=> true
332
+
333
+ type ShouldBeBar = IfNever<'not never', 'foo', 'bar'>;
334
+ //=> 'bar'
335
+ ```
336
+
337
+ @category Type Guard
338
+ @category Utilities
339
+ */
340
+ type IfNever<T, TypeIfNever = true, TypeIfNotNever = false> = (
341
+ IsNever<T> extends true ? TypeIfNever : TypeIfNotNever
342
+ );
343
+
274
344
  /**
275
345
  Extract the keys from a type where the value type of the key extends the given `Condition`.
276
346
 
@@ -303,21 +373,19 @@ type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
303
373
 
304
374
  @category Object
305
375
  */
306
- type ConditionalKeys<Base, Condition> = NonNullable<
307
- // Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
376
+ type ConditionalKeys<Base, Condition> =
308
377
  {
309
378
  // Map through all the keys of the given base type.
310
- [Key in keyof Base]:
379
+ [Key in keyof Base]-?:
311
380
  // Pick only keys with types extending the given `Condition` type.
312
381
  Base[Key] extends Condition
313
- // Retain this key since the condition passes.
314
- ? Key
382
+ // Retain this key
383
+ // If the value for the key extends never, only include it if `Condition` also extends never
384
+ ? IfNever<Base[Key], IfNever<Condition, Key, never>, Key>
315
385
  // Discard this key since the condition fails.
316
386
  : never;
317
-
318
387
  // Convert the produced object into a union type of the keys which passed the conditional test.
319
- }[keyof Base]
320
- >;
388
+ }[keyof Base];
321
389
 
322
390
  /**
323
391
  Exclude keys from a shape that matches the given `Condition`.
@@ -367,7 +435,7 @@ ConditionalKeys<Base, Condition>
367
435
  * can either be a REST module or a host module.
368
436
  * This type is recursive, so it can describe nested modules.
369
437
  */
370
- type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition$3<any> | ServicePluginDefinition<any> | {
438
+ type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition<any> | ServicePluginDefinition<any> | {
371
439
  [key: string]: Descriptors | PublicMetadata | any;
372
440
  };
373
441
  /**
@@ -380,7 +448,7 @@ type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, De
380
448
  done: T;
381
449
  recurse: T extends {
382
450
  __type: typeof SERVICE_PLUGIN_ERROR_TYPE;
383
- } ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition$3<any> ? BuildEventDefinition$3<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
451
+ } ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition<any> ? BuildEventDefinition<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
384
452
  [Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
385
453
  -1,
386
454
  0,
@@ -2136,31 +2204,13 @@ interface GenerateActionInputMappingFromTemplateSignature {
2136
2204
  */
2137
2205
  (appId: string, options: GenerateActionInputMappingFromTemplateOptions): Promise<GenerateActionInputMappingFromTemplateResponse>;
2138
2206
  }
2139
- declare const onAutomationCreated$3: EventDefinition$3<AutomationCreatedEnvelope$1, "wix.automations.v1.automation_created">;
2140
- declare const onAutomationUpdated$3: EventDefinition$3<AutomationUpdatedEnvelope$1, "wix.automations.v1.automation_updated">;
2141
- declare const onAutomationDeleted$3: EventDefinition$3<AutomationDeletedEnvelope$1, "wix.automations.v1.automation_deleted">;
2142
- declare const onAutomationUpdatedWithPreviousEntity$3: EventDefinition$3<AutomationUpdatedWithPreviousEntityEnvelope$1, "wix.automations.v1.automation_updated_with_previous_entity">;
2143
- declare const onAutomationDeletedWithEntity$3: EventDefinition$3<AutomationDeletedWithEntityEnvelope$1, "wix.automations.v1.automation_deleted_with_entity">;
2207
+ declare const onAutomationCreated$3: EventDefinition<AutomationCreatedEnvelope$1, "wix.automations.v1.automation_created">;
2208
+ declare const onAutomationUpdated$3: EventDefinition<AutomationUpdatedEnvelope$1, "wix.automations.v1.automation_updated">;
2209
+ declare const onAutomationDeleted$3: EventDefinition<AutomationDeletedEnvelope$1, "wix.automations.v1.automation_deleted">;
2210
+ declare const onAutomationUpdatedWithPreviousEntity$3: EventDefinition<AutomationUpdatedWithPreviousEntityEnvelope$1, "wix.automations.v1.automation_updated_with_previous_entity">;
2211
+ declare const onAutomationDeletedWithEntity$3: EventDefinition<AutomationDeletedWithEntityEnvelope$1, "wix.automations.v1.automation_deleted_with_entity">;
2144
2212
 
2145
- type EventDefinition$2<Payload = unknown, Type extends string = string> = {
2146
- __type: 'event-definition';
2147
- type: Type;
2148
- isDomainEvent?: boolean;
2149
- transformations?: (envelope: unknown) => Payload;
2150
- __payload: Payload;
2151
- };
2152
- declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
2153
- type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
2154
- type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
2155
-
2156
- declare global {
2157
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2158
- interface SymbolConstructor {
2159
- readonly observable: symbol;
2160
- }
2161
- }
2162
-
2163
- declare function createEventModule$2<T extends EventDefinition$2<any, string>>(eventDefinition: T): BuildEventDefinition$2<T> & T;
2213
+ declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2164
2214
 
2165
2215
  declare const createAutomation$2: MaybeContext<BuildRESTFunction<typeof createAutomation$3> & typeof createAutomation$3>;
2166
2216
  declare const getAutomation$2: MaybeContext<BuildRESTFunction<typeof getAutomation$3> & typeof getAutomation$3>;
@@ -3830,27 +3880,9 @@ interface CancelEventSignature {
3830
3880
  */
3831
3881
  (triggerKey: string, externalEntityId: string): Promise<void>;
3832
3882
  }
3833
- declare const onActivationStatusChanged$1: EventDefinition$3<ActivationStatusChangedEnvelope, "wix.automations.v2.activation_activation_status_changed">;
3883
+ declare const onActivationStatusChanged$1: EventDefinition<ActivationStatusChangedEnvelope, "wix.automations.v2.activation_activation_status_changed">;
3834
3884
 
3835
- type EventDefinition$1<Payload = unknown, Type extends string = string> = {
3836
- __type: 'event-definition';
3837
- type: Type;
3838
- isDomainEvent?: boolean;
3839
- transformations?: (envelope: unknown) => Payload;
3840
- __payload: Payload;
3841
- };
3842
- declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
3843
- type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
3844
- type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
3845
-
3846
- declare global {
3847
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
3848
- interface SymbolConstructor {
3849
- readonly observable: symbol;
3850
- }
3851
- }
3852
-
3853
- declare function createEventModule$1<T extends EventDefinition$1<any, string>>(eventDefinition: T): BuildEventDefinition$1<T> & T;
3885
+ declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3854
3886
 
3855
3887
  declare const reportEvent: MaybeContext<BuildRESTFunction<typeof reportEvent$1> & typeof reportEvent$1>;
3856
3888
  declare const bulkReportEvent: MaybeContext<BuildRESTFunction<typeof bulkReportEvent$1> & typeof bulkReportEvent$1>;
@@ -5047,7 +5079,7 @@ interface CreateDraftAutomationResponse {
5047
5079
  }
5048
5080
  interface GetOrCreateDraftAutomationRequest {
5049
5081
  /** Original automation id */
5050
- originalAutomationId: string;
5082
+ originalAutomationId?: string;
5051
5083
  }
5052
5084
  interface GetOrCreateDraftAutomationResponse {
5053
5085
  /** Draft automation. */
@@ -5055,7 +5087,7 @@ interface GetOrCreateDraftAutomationResponse {
5055
5087
  }
5056
5088
  interface UpdateDraftAutomationRequest {
5057
5089
  /** Automation to be updated, may be partial. */
5058
- automation: Automation;
5090
+ automation?: Automation;
5059
5091
  }
5060
5092
  interface UpdateDraftAutomationResponse {
5061
5093
  /** Updated draft automation. */
@@ -5083,7 +5115,7 @@ interface DraftsInfo {
5083
5115
  }
5084
5116
  interface DeleteDraftAutomationRequest {
5085
5117
  /** Id of the draft automation to delete. */
5086
- automationId: string;
5118
+ automationId?: string;
5087
5119
  }
5088
5120
  interface DeleteDraftAutomationResponse {
5089
5121
  }
@@ -5263,9 +5295,9 @@ declare enum AutomationErrorType {
5263
5295
  }
5264
5296
  interface GetAutomationActionSchemaRequest {
5265
5297
  /** Automation ID */
5266
- automationId: string;
5298
+ automationId?: string;
5267
5299
  /** Action ID */
5268
- actionId: string;
5300
+ actionId?: string;
5269
5301
  }
5270
5302
  interface GetAutomationActionSchemaResponse {
5271
5303
  /** The accumulated payload schema for an action. */
@@ -5451,18 +5483,6 @@ interface QueryAutomationsResponseNonNullableFields {
5451
5483
  interface CopyAutomationResponseNonNullableFields {
5452
5484
  automation?: AutomationNonNullableFields;
5453
5485
  }
5454
- interface CreateDraftAutomationResponseNonNullableFields {
5455
- automation?: AutomationNonNullableFields;
5456
- }
5457
- interface GetOrCreateDraftAutomationResponseNonNullableFields {
5458
- automation?: AutomationNonNullableFields;
5459
- }
5460
- interface UpdateDraftAutomationResponseNonNullableFields {
5461
- automation?: AutomationNonNullableFields;
5462
- }
5463
- interface QueryAutomationsWithDraftsResponseNonNullableFields {
5464
- automations: AutomationNonNullableFields[];
5465
- }
5466
5486
  interface TriggerConfigurationErrorNonNullableFields {
5467
5487
  errorType: TriggerErrorType;
5468
5488
  }
@@ -5735,81 +5755,10 @@ interface CopyAutomationOptions {
5735
5755
  /** Automation origin. */
5736
5756
  origin?: Origin;
5737
5757
  }
5738
- interface CreateDraftAutomationOptions {
5739
- /** Draft automation to be created. */
5740
- automation?: Automation;
5741
- }
5742
- interface UpdateDraftAutomation {
5743
- /** Application info */
5744
- applicationInfo?: ApplicationOrigin;
5745
- /** Preinstalled info */
5746
- preinstalledInfo?: PreinstalledOrigin;
5747
- /**
5748
- * Automation ID.
5749
- * @readonly
5750
- */
5751
- _id?: string | null;
5752
- /**
5753
- * Revision number, which increments by 1 each time the automation is updated.
5754
- * To prevent conflicting changes,
5755
- * the current revision must be passed when updating the automation.
5756
- *
5757
- * Ignored when creating an automation.
5758
- * @readonly
5759
- */
5760
- revision?: string | null;
5761
- /**
5762
- * Information about the creator of the automation.
5763
- * @readonly
5764
- */
5765
- createdBy?: AuditInfo;
5766
- /**
5767
- * Date and time the automation was created.
5768
- * @readonly
5769
- */
5770
- _createdDate?: Date;
5771
- /**
5772
- * The entity that last updated the automation.
5773
- * @readonly
5774
- */
5775
- updatedBy?: AuditInfo;
5776
- /**
5777
- * Date and time the automation was last updated.
5778
- * @readonly
5779
- */
5780
- _updatedDate?: Date;
5781
- /** Automation name that is displayed on the user's site. */
5782
- name?: string;
5783
- /** Automation description. */
5784
- description?: string | null;
5785
- /** Object that defines the automation's trigger, actions, and activation status. */
5786
- configuration?: AutomationConfiguration;
5787
- /** Defines how the automation was added to the site. */
5788
- origin?: Origin;
5789
- /** Automation settings. */
5790
- settings?: AutomationSettings;
5791
- /**
5792
- * Draft info (optional - only if the automation is a draft)
5793
- * @readonly
5794
- */
5795
- draftInfo?: DraftInfo;
5796
- /** Namespace */
5797
- namespace?: string | null;
5798
- }
5799
- interface QueryAutomationsWithDraftsOptions {
5800
- /** WQL expression. */
5801
- query?: CursorQuery;
5802
- }
5803
5758
  interface ValidateAutomationOptions {
5804
5759
  /** Settings to customize the validation. */
5805
5760
  validationSettings?: ValidationSettings;
5806
5761
  }
5807
- interface GetAutomationActionSchemaIdentifiers {
5808
- /** Automation ID */
5809
- automationId: string;
5810
- /** Action ID */
5811
- actionId: string;
5812
- }
5813
5762
 
5814
5763
  declare function createAutomation$1(httpClient: HttpClient): CreateAutomationSignature;
5815
5764
  interface CreateAutomationSignature {
@@ -5887,58 +5836,6 @@ interface CopyAutomationSignature {
5887
5836
  */
5888
5837
  (automationId: string, options?: CopyAutomationOptions | undefined): Promise<CopyAutomationResponse & CopyAutomationResponseNonNullableFields>;
5889
5838
  }
5890
- declare function createDraftAutomation$1(httpClient: HttpClient): CreateDraftAutomationSignature;
5891
- interface CreateDraftAutomationSignature {
5892
- /**
5893
- * Creates a draft automation.
5894
- */
5895
- (options?: CreateDraftAutomationOptions | undefined): Promise<CreateDraftAutomationResponse & CreateDraftAutomationResponseNonNullableFields>;
5896
- }
5897
- declare function getOrCreateDraftAutomation$1(httpClient: HttpClient): GetOrCreateDraftAutomationSignature;
5898
- interface GetOrCreateDraftAutomationSignature {
5899
- /**
5900
- * Gets the draft of the given original automation if exists, or creates one and returns it
5901
- *
5902
- * - if the original automation is a draft, returns the original automation
5903
- * @param - Original automation id
5904
- */
5905
- (originalAutomationId: string): Promise<GetOrCreateDraftAutomationResponse & GetOrCreateDraftAutomationResponseNonNullableFields>;
5906
- }
5907
- declare function updateDraftAutomation$1(httpClient: HttpClient): UpdateDraftAutomationSignature;
5908
- interface UpdateDraftAutomationSignature {
5909
- /**
5910
- * Updates a draft automation
5911
- * @param - Automation ID.
5912
- */
5913
- (_id: string | null, automation: UpdateDraftAutomation): Promise<UpdateDraftAutomationResponse & UpdateDraftAutomationResponseNonNullableFields>;
5914
- }
5915
- declare function queryAutomationsWithDrafts$1(httpClient: HttpClient): QueryAutomationsWithDraftsSignature;
5916
- interface QueryAutomationsWithDraftsSignature {
5917
- /**
5918
- * Retrieves a list of automations including drafts. Max query filter depth is 3.
5919
- *
5920
- * Relevant automations for the query are returned. This includes automations created on the site and pre-installed automations.
5921
- * If there's an existing override for a pre-installed automation, the override is returned in the query result.
5922
- * The query only returns automations from apps that are installed on the site.
5923
- *
5924
- * - new drafts that are not related to existing automations will be returned in the list
5925
- * - the response will contain a map of originalAutomationId => relatedDrafts
5926
- *
5927
- * To learn about working with _Query_ endpoints, see
5928
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
5929
- * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
5930
- * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
5931
- */
5932
- (options?: QueryAutomationsWithDraftsOptions | undefined): Promise<QueryAutomationsWithDraftsResponse & QueryAutomationsWithDraftsResponseNonNullableFields>;
5933
- }
5934
- declare function deleteDraftAutomation$1(httpClient: HttpClient): DeleteDraftAutomationSignature;
5935
- interface DeleteDraftAutomationSignature {
5936
- /**
5937
- * Deletes a draft automation.
5938
- * @param - Id of the draft automation to delete.
5939
- */
5940
- (automationId: string): Promise<void>;
5941
- }
5942
5839
  declare function validateAutomation$1(httpClient: HttpClient): ValidateAutomationSignature;
5943
5840
  interface ValidateAutomationSignature {
5944
5841
  /**
@@ -5947,13 +5844,6 @@ interface ValidateAutomationSignature {
5947
5844
  */
5948
5845
  (automation: Automation, options?: ValidateAutomationOptions | undefined): Promise<ValidateAutomationResponse & ValidateAutomationResponseNonNullableFields>;
5949
5846
  }
5950
- declare function getAutomationActionSchema$1(httpClient: HttpClient): GetAutomationActionSchemaSignature;
5951
- interface GetAutomationActionSchemaSignature {
5952
- /**
5953
- * Gets the payload schema received by the action whose ID is passed in.
5954
- */
5955
- (identifiers: GetAutomationActionSchemaIdentifiers): Promise<GetAutomationActionSchemaResponse>;
5956
- }
5957
5847
  declare function getActionsQuotaInfo$1(httpClient: HttpClient): GetActionsQuotaInfoSignature;
5958
5848
  interface GetActionsQuotaInfoSignature {
5959
5849
  /**
@@ -5961,29 +5851,11 @@ interface GetActionsQuotaInfoSignature {
5961
5851
  */
5962
5852
  (): Promise<GetActionsQuotaInfoResponse & GetActionsQuotaInfoResponseNonNullableFields>;
5963
5853
  }
5964
- declare const onAutomationCreated$1: EventDefinition$3<AutomationCreatedEnvelope, "wix.automations.v2.automation_created">;
5965
- declare const onAutomationUpdated$1: EventDefinition$3<AutomationUpdatedEnvelope, "wix.automations.v2.automation_updated">;
5966
- declare const onAutomationDeleted$1: EventDefinition$3<AutomationDeletedEnvelope, "wix.automations.v2.automation_deleted">;
5967
- declare const onAutomationUpdatedWithPreviousEntity$1: EventDefinition$3<AutomationUpdatedWithPreviousEntityEnvelope, "wix.automations.v2.automation_updated_with_previous_entity">;
5968
- declare const onAutomationDeletedWithEntity$1: EventDefinition$3<AutomationDeletedWithEntityEnvelope, "wix.automations.v2.automation_deleted_with_entity">;
5969
-
5970
- type EventDefinition<Payload = unknown, Type extends string = string> = {
5971
- __type: 'event-definition';
5972
- type: Type;
5973
- isDomainEvent?: boolean;
5974
- transformations?: (envelope: unknown) => Payload;
5975
- __payload: Payload;
5976
- };
5977
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
5978
- type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
5979
- type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
5980
-
5981
- declare global {
5982
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5983
- interface SymbolConstructor {
5984
- readonly observable: symbol;
5985
- }
5986
- }
5854
+ declare const onAutomationCreated$1: EventDefinition<AutomationCreatedEnvelope, "wix.automations.v2.automation_created">;
5855
+ declare const onAutomationUpdated$1: EventDefinition<AutomationUpdatedEnvelope, "wix.automations.v2.automation_updated">;
5856
+ declare const onAutomationDeleted$1: EventDefinition<AutomationDeletedEnvelope, "wix.automations.v2.automation_deleted">;
5857
+ declare const onAutomationUpdatedWithPreviousEntity$1: EventDefinition<AutomationUpdatedWithPreviousEntityEnvelope, "wix.automations.v2.automation_updated_with_previous_entity">;
5858
+ declare const onAutomationDeletedWithEntity$1: EventDefinition<AutomationDeletedWithEntityEnvelope, "wix.automations.v2.automation_deleted_with_entity">;
5987
5859
 
5988
5860
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
5989
5861
 
@@ -5994,13 +5866,7 @@ declare const deleteAutomation: MaybeContext<BuildRESTFunction<typeof deleteAuto
5994
5866
  declare const bulkDeleteAutomations: MaybeContext<BuildRESTFunction<typeof bulkDeleteAutomations$1> & typeof bulkDeleteAutomations$1>;
5995
5867
  declare const queryAutomations: MaybeContext<BuildRESTFunction<typeof queryAutomations$1> & typeof queryAutomations$1>;
5996
5868
  declare const copyAutomation: MaybeContext<BuildRESTFunction<typeof copyAutomation$1> & typeof copyAutomation$1>;
5997
- declare const createDraftAutomation: MaybeContext<BuildRESTFunction<typeof createDraftAutomation$1> & typeof createDraftAutomation$1>;
5998
- declare const getOrCreateDraftAutomation: MaybeContext<BuildRESTFunction<typeof getOrCreateDraftAutomation$1> & typeof getOrCreateDraftAutomation$1>;
5999
- declare const updateDraftAutomation: MaybeContext<BuildRESTFunction<typeof updateDraftAutomation$1> & typeof updateDraftAutomation$1>;
6000
- declare const queryAutomationsWithDrafts: MaybeContext<BuildRESTFunction<typeof queryAutomationsWithDrafts$1> & typeof queryAutomationsWithDrafts$1>;
6001
- declare const deleteDraftAutomation: MaybeContext<BuildRESTFunction<typeof deleteDraftAutomation$1> & typeof deleteDraftAutomation$1>;
6002
5869
  declare const validateAutomation: MaybeContext<BuildRESTFunction<typeof validateAutomation$1> & typeof validateAutomation$1>;
6003
- declare const getAutomationActionSchema: MaybeContext<BuildRESTFunction<typeof getAutomationActionSchema$1> & typeof getAutomationActionSchema$1>;
6004
5870
  declare const getActionsQuotaInfo: MaybeContext<BuildRESTFunction<typeof getActionsQuotaInfo$1> & typeof getActionsQuotaInfo$1>;
6005
5871
 
6006
5872
  type _publicOnAutomationCreatedType = typeof onAutomationCreated$1;
@@ -6085,10 +5951,8 @@ type context_CopyAutomationResponseNonNullableFields = CopyAutomationResponseNon
6085
5951
  type context_CreateAutomationRequest = CreateAutomationRequest;
6086
5952
  type context_CreateAutomationResponse = CreateAutomationResponse;
6087
5953
  type context_CreateAutomationResponseNonNullableFields = CreateAutomationResponseNonNullableFields;
6088
- type context_CreateDraftAutomationOptions = CreateDraftAutomationOptions;
6089
5954
  type context_CreateDraftAutomationRequest = CreateDraftAutomationRequest;
6090
5955
  type context_CreateDraftAutomationResponse = CreateDraftAutomationResponse;
6091
- type context_CreateDraftAutomationResponseNonNullableFields = CreateDraftAutomationResponseNonNullableFields;
6092
5956
  type context_CreatePreinstalledAutomationRequest = CreatePreinstalledAutomationRequest;
6093
5957
  type context_CreatePreinstalledAutomationResponse = CreatePreinstalledAutomationResponse;
6094
5958
  type context_CursorPaging = CursorPaging;
@@ -6121,7 +5985,6 @@ type context_FutureDateActivationOffset = FutureDateActivationOffset;
6121
5985
  type context_GetActionsQuotaInfoRequest = GetActionsQuotaInfoRequest;
6122
5986
  type context_GetActionsQuotaInfoResponse = GetActionsQuotaInfoResponse;
6123
5987
  type context_GetActionsQuotaInfoResponseNonNullableFields = GetActionsQuotaInfoResponseNonNullableFields;
6124
- type context_GetAutomationActionSchemaIdentifiers = GetAutomationActionSchemaIdentifiers;
6125
5988
  type context_GetAutomationActionSchemaRequest = GetAutomationActionSchemaRequest;
6126
5989
  type context_GetAutomationActionSchemaResponse = GetAutomationActionSchemaResponse;
6127
5990
  type context_GetAutomationOptions = GetAutomationOptions;
@@ -6132,7 +5995,6 @@ type context_GetAutomationRevisionRequest = GetAutomationRevisionRequest;
6132
5995
  type context_GetAutomationRevisionResponse = GetAutomationRevisionResponse;
6133
5996
  type context_GetOrCreateDraftAutomationRequest = GetOrCreateDraftAutomationRequest;
6134
5997
  type context_GetOrCreateDraftAutomationResponse = GetOrCreateDraftAutomationResponse;
6135
- type context_GetOrCreateDraftAutomationResponseNonNullableFields = GetOrCreateDraftAutomationResponseNonNullableFields;
6136
5998
  type context_IdentificationData = IdentificationData;
6137
5999
  type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
6138
6000
  type context_ItemMetadata = ItemMetadata;
@@ -6157,10 +6019,8 @@ type context_PublishDraftAutomationResponse = PublishDraftAutomationResponse;
6157
6019
  type context_QueryAutomationsRequest = QueryAutomationsRequest;
6158
6020
  type context_QueryAutomationsResponse = QueryAutomationsResponse;
6159
6021
  type context_QueryAutomationsResponseNonNullableFields = QueryAutomationsResponseNonNullableFields;
6160
- type context_QueryAutomationsWithDraftsOptions = QueryAutomationsWithDraftsOptions;
6161
6022
  type context_QueryAutomationsWithDraftsRequest = QueryAutomationsWithDraftsRequest;
6162
6023
  type context_QueryAutomationsWithDraftsResponse = QueryAutomationsWithDraftsResponse;
6163
- type context_QueryAutomationsWithDraftsResponseNonNullableFields = QueryAutomationsWithDraftsResponseNonNullableFields;
6164
6024
  type context_QueryPreinstalledAutomationsForAppRequest = QueryPreinstalledAutomationsForAppRequest;
6165
6025
  type context_QueryPreinstalledAutomationsForAppResponse = QueryPreinstalledAutomationsForAppResponse;
6166
6026
  type context_Quota = Quota;
@@ -6207,10 +6067,8 @@ type context_UpdateAutomation = UpdateAutomation;
6207
6067
  type context_UpdateAutomationRequest = UpdateAutomationRequest;
6208
6068
  type context_UpdateAutomationResponse = UpdateAutomationResponse;
6209
6069
  type context_UpdateAutomationResponseNonNullableFields = UpdateAutomationResponseNonNullableFields;
6210
- type context_UpdateDraftAutomation = UpdateDraftAutomation;
6211
6070
  type context_UpdateDraftAutomationRequest = UpdateDraftAutomationRequest;
6212
6071
  type context_UpdateDraftAutomationResponse = UpdateDraftAutomationResponse;
6213
- type context_UpdateDraftAutomationResponseNonNullableFields = UpdateDraftAutomationResponseNonNullableFields;
6214
6072
  type context_UpdatePreinstalledAutomationRequest = UpdatePreinstalledAutomationRequest;
6215
6073
  type context_UpdatePreinstalledAutomationResponse = UpdatePreinstalledAutomationResponse;
6216
6074
  type context_UpdatedWithPreviousEntity = UpdatedWithPreviousEntity;
@@ -6234,25 +6092,19 @@ type context__publicOnAutomationUpdatedWithPreviousEntityType = _publicOnAutomat
6234
6092
  declare const context_bulkDeleteAutomations: typeof bulkDeleteAutomations;
6235
6093
  declare const context_copyAutomation: typeof copyAutomation;
6236
6094
  declare const context_createAutomation: typeof createAutomation;
6237
- declare const context_createDraftAutomation: typeof createDraftAutomation;
6238
6095
  declare const context_deleteAutomation: typeof deleteAutomation;
6239
- declare const context_deleteDraftAutomation: typeof deleteDraftAutomation;
6240
6096
  declare const context_getActionsQuotaInfo: typeof getActionsQuotaInfo;
6241
6097
  declare const context_getAutomation: typeof getAutomation;
6242
- declare const context_getAutomationActionSchema: typeof getAutomationActionSchema;
6243
- declare const context_getOrCreateDraftAutomation: typeof getOrCreateDraftAutomation;
6244
6098
  declare const context_onAutomationCreated: typeof onAutomationCreated;
6245
6099
  declare const context_onAutomationDeleted: typeof onAutomationDeleted;
6246
6100
  declare const context_onAutomationDeletedWithEntity: typeof onAutomationDeletedWithEntity;
6247
6101
  declare const context_onAutomationUpdated: typeof onAutomationUpdated;
6248
6102
  declare const context_onAutomationUpdatedWithPreviousEntity: typeof onAutomationUpdatedWithPreviousEntity;
6249
6103
  declare const context_queryAutomations: typeof queryAutomations;
6250
- declare const context_queryAutomationsWithDrafts: typeof queryAutomationsWithDrafts;
6251
6104
  declare const context_updateAutomation: typeof updateAutomation;
6252
- declare const context_updateDraftAutomation: typeof updateDraftAutomation;
6253
6105
  declare const context_validateAutomation: typeof validateAutomation;
6254
6106
  declare namespace context {
6255
- export { type context_Action as Action, type context_ActionConfigurationError as ActionConfigurationError, context_ActionErrorType as ActionErrorType, type context_ActionEvent as ActionEvent, type context_ActionInfoOneOf as ActionInfoOneOf, type context_ActionProviderQuotaInfo as ActionProviderQuotaInfo, type context_ActionQuotaInfo as ActionQuotaInfo, type context_ActionSettings as ActionSettings, type context_ActionValidationError as ActionValidationError, type context_ActionValidationErrorErrorOneOf as ActionValidationErrorErrorOneOf, type context_ActionValidationInfo as ActionValidationInfo, type context_AdditionalInfo as AdditionalInfo, type context_AppDefinedAction as AppDefinedAction, type context_ApplicationError as ApplicationError, type context_ApplicationOrigin as ApplicationOrigin, type context_Asset as Asset, type context_AuditInfo as AuditInfo, type context_AuditInfoIdOneOf as AuditInfoIdOneOf, type context_Automation as Automation, type context_AutomationConfiguration as AutomationConfiguration, type context_AutomationConfigurationError as AutomationConfigurationError, type context_AutomationCreatedEnvelope as AutomationCreatedEnvelope, type context_AutomationDeletedEnvelope as AutomationDeletedEnvelope, type context_AutomationDeletedWithEntityEnvelope as AutomationDeletedWithEntityEnvelope, context_AutomationErrorType as AutomationErrorType, type context_AutomationNonNullableFields as AutomationNonNullableFields, type context_AutomationOriginInfoOneOf as AutomationOriginInfoOneOf, type context_AutomationSettings as AutomationSettings, type context_AutomationUpdatedEnvelope as AutomationUpdatedEnvelope, type context_AutomationUpdatedWithPreviousEntityEnvelope as AutomationUpdatedWithPreviousEntityEnvelope, type context_AutomationValidationError as AutomationValidationError, type context_AutomationValidationErrorErrorOneOf as AutomationValidationErrorErrorOneOf, context_AutomationValidationErrorValidationErrorType as AutomationValidationErrorValidationErrorType, type context_AutomationsQueryBuilder as AutomationsQueryBuilder, type context_AutomationsQueryResult as AutomationsQueryResult, type context_BaseEventMetadata as BaseEventMetadata, type context_BulkActionMetadata as BulkActionMetadata, type context_BulkDeleteAutomationsRequest as BulkDeleteAutomationsRequest, type context_BulkDeleteAutomationsResponse as BulkDeleteAutomationsResponse, type context_BulkDeleteAutomationsResponseNonNullableFields as BulkDeleteAutomationsResponseNonNullableFields, type context_BulkDeleteResult as BulkDeleteResult, type context_CTA as CTA, type context_CommonCursorPaging as CommonCursorPaging, type context_CommonCursorPagingMetadata as CommonCursorPagingMetadata, type context_CommonCursorQuery as CommonCursorQuery, type context_CommonCursorQueryPagingMethodOneOf as CommonCursorQueryPagingMethodOneOf, type context_CommonCursors as CommonCursors, context_CommonSortOrder as CommonSortOrder, type context_CommonSorting as CommonSorting, type context_ConditionAction as ConditionAction, type context_ConditionExpressionGroup as ConditionExpressionGroup, type context_CopyAutomationOptions as CopyAutomationOptions, type context_CopyAutomationRequest as CopyAutomationRequest, type context_CopyAutomationResponse as CopyAutomationResponse, type context_CopyAutomationResponseNonNullableFields as CopyAutomationResponseNonNullableFields, type context_CreateAutomationRequest as CreateAutomationRequest, type context_CreateAutomationResponse as CreateAutomationResponse, type context_CreateAutomationResponseNonNullableFields as CreateAutomationResponseNonNullableFields, type context_CreateDraftAutomationOptions as CreateDraftAutomationOptions, type context_CreateDraftAutomationRequest as CreateDraftAutomationRequest, type context_CreateDraftAutomationResponse as CreateDraftAutomationResponse, type context_CreateDraftAutomationResponseNonNullableFields as CreateDraftAutomationResponseNonNullableFields, type context_CreatePreinstalledAutomationRequest as CreatePreinstalledAutomationRequest, type context_CreatePreinstalledAutomationResponse as CreatePreinstalledAutomationResponse, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DelayAction as DelayAction, type context_DeleteAutomationRequest as DeleteAutomationRequest, type context_DeleteAutomationResponse as DeleteAutomationResponse, type context_DeleteContext as DeleteContext, type context_DeleteDraftAutomationRequest as DeleteDraftAutomationRequest, type context_DeleteDraftAutomationResponse as DeleteDraftAutomationResponse, type context_DeletePreinstalledAutomationRequest as DeletePreinstalledAutomationRequest, type context_DeletePreinstalledAutomationResponse as DeletePreinstalledAutomationResponse, context_DeleteStatus as DeleteStatus, type context_DeletedWithEntity as DeletedWithEntity, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_DraftInfo as DraftInfo, type context_DraftsInfo as DraftsInfo, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_Filter as Filter, type context_FutureDateActivationOffset as FutureDateActivationOffset, type context_GetActionsQuotaInfoRequest as GetActionsQuotaInfoRequest, type context_GetActionsQuotaInfoResponse as GetActionsQuotaInfoResponse, type context_GetActionsQuotaInfoResponseNonNullableFields as GetActionsQuotaInfoResponseNonNullableFields, type context_GetAutomationActionSchemaIdentifiers as GetAutomationActionSchemaIdentifiers, type context_GetAutomationActionSchemaRequest as GetAutomationActionSchemaRequest, type context_GetAutomationActionSchemaResponse as GetAutomationActionSchemaResponse, type context_GetAutomationOptions as GetAutomationOptions, type context_GetAutomationRequest as GetAutomationRequest, type context_GetAutomationResponse as GetAutomationResponse, type context_GetAutomationResponseNonNullableFields as GetAutomationResponseNonNullableFields, type context_GetAutomationRevisionRequest as GetAutomationRevisionRequest, type context_GetAutomationRevisionResponse as GetAutomationRevisionResponse, type context_GetOrCreateDraftAutomationRequest as GetOrCreateDraftAutomationRequest, type context_GetOrCreateDraftAutomationResponse as GetOrCreateDraftAutomationResponse, type context_GetOrCreateDraftAutomationResponseNonNullableFields as GetOrCreateDraftAutomationResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ItemMetadata as ItemMetadata, type context_MessageEnvelope as MessageEnvelope, type context_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context_Namespace as Namespace, type context_NamespaceChanged as NamespaceChanged, context_Operator as Operator, context_Origin as Origin, type context_OriginAutomationInfo as OriginAutomationInfo, type context_OutputAction as OutputAction, type context_Plan as Plan, type context_PreinstalledAutomationSpecInfo as PreinstalledAutomationSpecInfo, type context_PreinstalledOrigin as PreinstalledOrigin, type context_ProviderConfigurationError as ProviderConfigurationError, type context_PublishDraftAutomationRequest as PublishDraftAutomationRequest, type context_PublishDraftAutomationResponse as PublishDraftAutomationResponse, type context_QueryAutomationsRequest as QueryAutomationsRequest, type context_QueryAutomationsResponse as QueryAutomationsResponse, type context_QueryAutomationsResponseNonNullableFields as QueryAutomationsResponseNonNullableFields, type context_QueryAutomationsWithDraftsOptions as QueryAutomationsWithDraftsOptions, type context_QueryAutomationsWithDraftsRequest as QueryAutomationsWithDraftsRequest, type context_QueryAutomationsWithDraftsResponse as QueryAutomationsWithDraftsResponse, type context_QueryAutomationsWithDraftsResponseNonNullableFields as QueryAutomationsWithDraftsResponseNonNullableFields, type context_QueryPreinstalledAutomationsForAppRequest as QueryPreinstalledAutomationsForAppRequest, type context_QueryPreinstalledAutomationsForAppResponse as QueryPreinstalledAutomationsForAppResponse, type context_Quota as Quota, type context_QuotaInfo as QuotaInfo, type context_RateLimit as RateLimit, type context_RateLimitAction as RateLimitAction, type context_RestoreInfo as RestoreInfo, type context_ServiceProvisioned as ServiceProvisioned, type context_ServiceRemoved as ServiceRemoved, type context_SiteCreated as SiteCreated, context_SiteCreatedContext as SiteCreatedContext, type context_SiteDeleted as SiteDeleted, type context_SiteHardDeleted as SiteHardDeleted, type context_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context_SitePublished as SitePublished, type context_SiteRenamed as SiteRenamed, type context_SiteTransferred as SiteTransferred, type context_SiteUndeleted as SiteUndeleted, type context_SiteUnpublished as SiteUnpublished, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_State as State, context_Status as Status, type context_StudioAssigned as StudioAssigned, type context_StudioUnassigned as StudioUnassigned, context_TimeUnit as TimeUnit, type context_Trigger as Trigger, type context_TriggerConfigurationError as TriggerConfigurationError, context_TriggerErrorType as TriggerErrorType, type context_TriggerValidationError as TriggerValidationError, type context_TriggerValidationErrorErrorOneOf as TriggerValidationErrorErrorOneOf, context_TriggerValidationErrorValidationErrorType as TriggerValidationErrorValidationErrorType, context_Type as Type, type context_UpdateAutomation as UpdateAutomation, type context_UpdateAutomationRequest as UpdateAutomationRequest, type context_UpdateAutomationResponse as UpdateAutomationResponse, type context_UpdateAutomationResponseNonNullableFields as UpdateAutomationResponseNonNullableFields, type context_UpdateDraftAutomation as UpdateDraftAutomation, type context_UpdateDraftAutomationRequest as UpdateDraftAutomationRequest, type context_UpdateDraftAutomationResponse as UpdateDraftAutomationResponse, type context_UpdateDraftAutomationResponseNonNullableFields as UpdateDraftAutomationResponseNonNullableFields, type context_UpdatePreinstalledAutomationRequest as UpdatePreinstalledAutomationRequest, type context_UpdatePreinstalledAutomationResponse as UpdatePreinstalledAutomationResponse, type context_UpdatedWithPreviousEntity as UpdatedWithPreviousEntity, type context_UpgradeCTA as UpgradeCTA, type context_ValidateAutomationOptions as ValidateAutomationOptions, type context_ValidateAutomationRequest as ValidateAutomationRequest, type context_ValidateAutomationResponse as ValidateAutomationResponse, type context_ValidateAutomationResponseNonNullableFields as ValidateAutomationResponseNonNullableFields, context_ValidationErrorSeverity as ValidationErrorSeverity, context_ValidationErrorType as ValidationErrorType, type context_ValidationSettings as ValidationSettings, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnAutomationCreatedType as _publicOnAutomationCreatedType, type context__publicOnAutomationDeletedType as _publicOnAutomationDeletedType, type context__publicOnAutomationDeletedWithEntityType as _publicOnAutomationDeletedWithEntityType, type context__publicOnAutomationUpdatedType as _publicOnAutomationUpdatedType, type context__publicOnAutomationUpdatedWithPreviousEntityType as _publicOnAutomationUpdatedWithPreviousEntityType, context_bulkDeleteAutomations as bulkDeleteAutomations, context_copyAutomation as copyAutomation, context_createAutomation as createAutomation, context_createDraftAutomation as createDraftAutomation, context_deleteAutomation as deleteAutomation, context_deleteDraftAutomation as deleteDraftAutomation, context_getActionsQuotaInfo as getActionsQuotaInfo, context_getAutomation as getAutomation, context_getAutomationActionSchema as getAutomationActionSchema, context_getOrCreateDraftAutomation as getOrCreateDraftAutomation, context_onAutomationCreated as onAutomationCreated, context_onAutomationDeleted as onAutomationDeleted, context_onAutomationDeletedWithEntity as onAutomationDeletedWithEntity, context_onAutomationUpdated as onAutomationUpdated, context_onAutomationUpdatedWithPreviousEntity as onAutomationUpdatedWithPreviousEntity, onAutomationCreated$1 as publicOnAutomationCreated, onAutomationDeleted$1 as publicOnAutomationDeleted, onAutomationDeletedWithEntity$1 as publicOnAutomationDeletedWithEntity, onAutomationUpdated$1 as publicOnAutomationUpdated, onAutomationUpdatedWithPreviousEntity$1 as publicOnAutomationUpdatedWithPreviousEntity, context_queryAutomations as queryAutomations, context_queryAutomationsWithDrafts as queryAutomationsWithDrafts, context_updateAutomation as updateAutomation, context_updateDraftAutomation as updateDraftAutomation, context_validateAutomation as validateAutomation };
6107
+ export { type context_Action as Action, type context_ActionConfigurationError as ActionConfigurationError, context_ActionErrorType as ActionErrorType, type context_ActionEvent as ActionEvent, type context_ActionInfoOneOf as ActionInfoOneOf, type context_ActionProviderQuotaInfo as ActionProviderQuotaInfo, type context_ActionQuotaInfo as ActionQuotaInfo, type context_ActionSettings as ActionSettings, type context_ActionValidationError as ActionValidationError, type context_ActionValidationErrorErrorOneOf as ActionValidationErrorErrorOneOf, type context_ActionValidationInfo as ActionValidationInfo, type context_AdditionalInfo as AdditionalInfo, type context_AppDefinedAction as AppDefinedAction, type context_ApplicationError as ApplicationError, type context_ApplicationOrigin as ApplicationOrigin, type context_Asset as Asset, type context_AuditInfo as AuditInfo, type context_AuditInfoIdOneOf as AuditInfoIdOneOf, type context_Automation as Automation, type context_AutomationConfiguration as AutomationConfiguration, type context_AutomationConfigurationError as AutomationConfigurationError, type context_AutomationCreatedEnvelope as AutomationCreatedEnvelope, type context_AutomationDeletedEnvelope as AutomationDeletedEnvelope, type context_AutomationDeletedWithEntityEnvelope as AutomationDeletedWithEntityEnvelope, context_AutomationErrorType as AutomationErrorType, type context_AutomationNonNullableFields as AutomationNonNullableFields, type context_AutomationOriginInfoOneOf as AutomationOriginInfoOneOf, type context_AutomationSettings as AutomationSettings, type context_AutomationUpdatedEnvelope as AutomationUpdatedEnvelope, type context_AutomationUpdatedWithPreviousEntityEnvelope as AutomationUpdatedWithPreviousEntityEnvelope, type context_AutomationValidationError as AutomationValidationError, type context_AutomationValidationErrorErrorOneOf as AutomationValidationErrorErrorOneOf, context_AutomationValidationErrorValidationErrorType as AutomationValidationErrorValidationErrorType, type context_AutomationsQueryBuilder as AutomationsQueryBuilder, type context_AutomationsQueryResult as AutomationsQueryResult, type context_BaseEventMetadata as BaseEventMetadata, type context_BulkActionMetadata as BulkActionMetadata, type context_BulkDeleteAutomationsRequest as BulkDeleteAutomationsRequest, type context_BulkDeleteAutomationsResponse as BulkDeleteAutomationsResponse, type context_BulkDeleteAutomationsResponseNonNullableFields as BulkDeleteAutomationsResponseNonNullableFields, type context_BulkDeleteResult as BulkDeleteResult, type context_CTA as CTA, type context_CommonCursorPaging as CommonCursorPaging, type context_CommonCursorPagingMetadata as CommonCursorPagingMetadata, type context_CommonCursorQuery as CommonCursorQuery, type context_CommonCursorQueryPagingMethodOneOf as CommonCursorQueryPagingMethodOneOf, type context_CommonCursors as CommonCursors, context_CommonSortOrder as CommonSortOrder, type context_CommonSorting as CommonSorting, type context_ConditionAction as ConditionAction, type context_ConditionExpressionGroup as ConditionExpressionGroup, type context_CopyAutomationOptions as CopyAutomationOptions, type context_CopyAutomationRequest as CopyAutomationRequest, type context_CopyAutomationResponse as CopyAutomationResponse, type context_CopyAutomationResponseNonNullableFields as CopyAutomationResponseNonNullableFields, type context_CreateAutomationRequest as CreateAutomationRequest, type context_CreateAutomationResponse as CreateAutomationResponse, type context_CreateAutomationResponseNonNullableFields as CreateAutomationResponseNonNullableFields, type context_CreateDraftAutomationRequest as CreateDraftAutomationRequest, type context_CreateDraftAutomationResponse as CreateDraftAutomationResponse, type context_CreatePreinstalledAutomationRequest as CreatePreinstalledAutomationRequest, type context_CreatePreinstalledAutomationResponse as CreatePreinstalledAutomationResponse, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DelayAction as DelayAction, type context_DeleteAutomationRequest as DeleteAutomationRequest, type context_DeleteAutomationResponse as DeleteAutomationResponse, type context_DeleteContext as DeleteContext, type context_DeleteDraftAutomationRequest as DeleteDraftAutomationRequest, type context_DeleteDraftAutomationResponse as DeleteDraftAutomationResponse, type context_DeletePreinstalledAutomationRequest as DeletePreinstalledAutomationRequest, type context_DeletePreinstalledAutomationResponse as DeletePreinstalledAutomationResponse, context_DeleteStatus as DeleteStatus, type context_DeletedWithEntity as DeletedWithEntity, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_DraftInfo as DraftInfo, type context_DraftsInfo as DraftsInfo, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_Filter as Filter, type context_FutureDateActivationOffset as FutureDateActivationOffset, type context_GetActionsQuotaInfoRequest as GetActionsQuotaInfoRequest, type context_GetActionsQuotaInfoResponse as GetActionsQuotaInfoResponse, type context_GetActionsQuotaInfoResponseNonNullableFields as GetActionsQuotaInfoResponseNonNullableFields, type context_GetAutomationActionSchemaRequest as GetAutomationActionSchemaRequest, type context_GetAutomationActionSchemaResponse as GetAutomationActionSchemaResponse, type context_GetAutomationOptions as GetAutomationOptions, type context_GetAutomationRequest as GetAutomationRequest, type context_GetAutomationResponse as GetAutomationResponse, type context_GetAutomationResponseNonNullableFields as GetAutomationResponseNonNullableFields, type context_GetAutomationRevisionRequest as GetAutomationRevisionRequest, type context_GetAutomationRevisionResponse as GetAutomationRevisionResponse, type context_GetOrCreateDraftAutomationRequest as GetOrCreateDraftAutomationRequest, type context_GetOrCreateDraftAutomationResponse as GetOrCreateDraftAutomationResponse, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ItemMetadata as ItemMetadata, type context_MessageEnvelope as MessageEnvelope, type context_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context_Namespace as Namespace, type context_NamespaceChanged as NamespaceChanged, context_Operator as Operator, context_Origin as Origin, type context_OriginAutomationInfo as OriginAutomationInfo, type context_OutputAction as OutputAction, type context_Plan as Plan, type context_PreinstalledAutomationSpecInfo as PreinstalledAutomationSpecInfo, type context_PreinstalledOrigin as PreinstalledOrigin, type context_ProviderConfigurationError as ProviderConfigurationError, type context_PublishDraftAutomationRequest as PublishDraftAutomationRequest, type context_PublishDraftAutomationResponse as PublishDraftAutomationResponse, type context_QueryAutomationsRequest as QueryAutomationsRequest, type context_QueryAutomationsResponse as QueryAutomationsResponse, type context_QueryAutomationsResponseNonNullableFields as QueryAutomationsResponseNonNullableFields, type context_QueryAutomationsWithDraftsRequest as QueryAutomationsWithDraftsRequest, type context_QueryAutomationsWithDraftsResponse as QueryAutomationsWithDraftsResponse, type context_QueryPreinstalledAutomationsForAppRequest as QueryPreinstalledAutomationsForAppRequest, type context_QueryPreinstalledAutomationsForAppResponse as QueryPreinstalledAutomationsForAppResponse, type context_Quota as Quota, type context_QuotaInfo as QuotaInfo, type context_RateLimit as RateLimit, type context_RateLimitAction as RateLimitAction, type context_RestoreInfo as RestoreInfo, type context_ServiceProvisioned as ServiceProvisioned, type context_ServiceRemoved as ServiceRemoved, type context_SiteCreated as SiteCreated, context_SiteCreatedContext as SiteCreatedContext, type context_SiteDeleted as SiteDeleted, type context_SiteHardDeleted as SiteHardDeleted, type context_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context_SitePublished as SitePublished, type context_SiteRenamed as SiteRenamed, type context_SiteTransferred as SiteTransferred, type context_SiteUndeleted as SiteUndeleted, type context_SiteUnpublished as SiteUnpublished, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_State as State, context_Status as Status, type context_StudioAssigned as StudioAssigned, type context_StudioUnassigned as StudioUnassigned, context_TimeUnit as TimeUnit, type context_Trigger as Trigger, type context_TriggerConfigurationError as TriggerConfigurationError, context_TriggerErrorType as TriggerErrorType, type context_TriggerValidationError as TriggerValidationError, type context_TriggerValidationErrorErrorOneOf as TriggerValidationErrorErrorOneOf, context_TriggerValidationErrorValidationErrorType as TriggerValidationErrorValidationErrorType, context_Type as Type, type context_UpdateAutomation as UpdateAutomation, type context_UpdateAutomationRequest as UpdateAutomationRequest, type context_UpdateAutomationResponse as UpdateAutomationResponse, type context_UpdateAutomationResponseNonNullableFields as UpdateAutomationResponseNonNullableFields, type context_UpdateDraftAutomationRequest as UpdateDraftAutomationRequest, type context_UpdateDraftAutomationResponse as UpdateDraftAutomationResponse, type context_UpdatePreinstalledAutomationRequest as UpdatePreinstalledAutomationRequest, type context_UpdatePreinstalledAutomationResponse as UpdatePreinstalledAutomationResponse, type context_UpdatedWithPreviousEntity as UpdatedWithPreviousEntity, type context_UpgradeCTA as UpgradeCTA, type context_ValidateAutomationOptions as ValidateAutomationOptions, type context_ValidateAutomationRequest as ValidateAutomationRequest, type context_ValidateAutomationResponse as ValidateAutomationResponse, type context_ValidateAutomationResponseNonNullableFields as ValidateAutomationResponseNonNullableFields, context_ValidationErrorSeverity as ValidationErrorSeverity, context_ValidationErrorType as ValidationErrorType, type context_ValidationSettings as ValidationSettings, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnAutomationCreatedType as _publicOnAutomationCreatedType, type context__publicOnAutomationDeletedType as _publicOnAutomationDeletedType, type context__publicOnAutomationDeletedWithEntityType as _publicOnAutomationDeletedWithEntityType, type context__publicOnAutomationUpdatedType as _publicOnAutomationUpdatedType, type context__publicOnAutomationUpdatedWithPreviousEntityType as _publicOnAutomationUpdatedWithPreviousEntityType, context_bulkDeleteAutomations as bulkDeleteAutomations, context_copyAutomation as copyAutomation, context_createAutomation as createAutomation, context_deleteAutomation as deleteAutomation, context_getActionsQuotaInfo as getActionsQuotaInfo, context_getAutomation as getAutomation, context_onAutomationCreated as onAutomationCreated, context_onAutomationDeleted as onAutomationDeleted, context_onAutomationDeletedWithEntity as onAutomationDeletedWithEntity, context_onAutomationUpdated as onAutomationUpdated, context_onAutomationUpdatedWithPreviousEntity as onAutomationUpdatedWithPreviousEntity, onAutomationCreated$1 as publicOnAutomationCreated, onAutomationDeleted$1 as publicOnAutomationDeleted, onAutomationDeletedWithEntity$1 as publicOnAutomationDeletedWithEntity, onAutomationUpdated$1 as publicOnAutomationUpdated, onAutomationUpdatedWithPreviousEntity$1 as publicOnAutomationUpdatedWithPreviousEntity, context_queryAutomations as queryAutomations, context_updateAutomation as updateAutomation, context_validateAutomation as validateAutomation };
6256
6108
  }
6257
6109
 
6258
6110
  export { context$1 as activations, context$2 as automationsService, context as automationsServiceV2 };