@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 +5 -5
- package/type-bundles/context.bundle.d.ts +101 -249
- package/type-bundles/index.bundle.d.ts +101 -249
- package/type-bundles/meta.bundle.d.ts +1 -166
|
@@ -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
|
|
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
|
|
74
|
-
type EventHandler
|
|
75
|
-
type BuildEventDefinition
|
|
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> =
|
|
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
|
|
314
|
-
|
|
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
|
|
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
|
|
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
|
|
2140
|
-
declare const onAutomationUpdated$3: EventDefinition
|
|
2141
|
-
declare const onAutomationDeleted$3: EventDefinition
|
|
2142
|
-
declare const onAutomationUpdatedWithPreviousEntity$3: EventDefinition
|
|
2143
|
-
declare const onAutomationDeletedWithEntity$3: EventDefinition
|
|
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
|
-
|
|
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
|
|
3883
|
+
declare const onActivationStatusChanged$1: EventDefinition<ActivationStatusChangedEnvelope, "wix.automations.v2.activation_activation_status_changed">;
|
|
3834
3884
|
|
|
3835
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
5298
|
+
automationId?: string;
|
|
5267
5299
|
/** Action ID */
|
|
5268
|
-
actionId
|
|
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
|
|
5965
|
-
declare const onAutomationUpdated$1: EventDefinition
|
|
5966
|
-
declare const onAutomationDeleted$1: EventDefinition
|
|
5967
|
-
declare const onAutomationUpdatedWithPreviousEntity$1: EventDefinition
|
|
5968
|
-
declare const onAutomationDeletedWithEntity$1: EventDefinition
|
|
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 index_d_CopyAutomationResponseNonNullableFields = CopyAutomationResponseNon
|
|
|
6085
5951
|
type index_d_CreateAutomationRequest = CreateAutomationRequest;
|
|
6086
5952
|
type index_d_CreateAutomationResponse = CreateAutomationResponse;
|
|
6087
5953
|
type index_d_CreateAutomationResponseNonNullableFields = CreateAutomationResponseNonNullableFields;
|
|
6088
|
-
type index_d_CreateDraftAutomationOptions = CreateDraftAutomationOptions;
|
|
6089
5954
|
type index_d_CreateDraftAutomationRequest = CreateDraftAutomationRequest;
|
|
6090
5955
|
type index_d_CreateDraftAutomationResponse = CreateDraftAutomationResponse;
|
|
6091
|
-
type index_d_CreateDraftAutomationResponseNonNullableFields = CreateDraftAutomationResponseNonNullableFields;
|
|
6092
5956
|
type index_d_CreatePreinstalledAutomationRequest = CreatePreinstalledAutomationRequest;
|
|
6093
5957
|
type index_d_CreatePreinstalledAutomationResponse = CreatePreinstalledAutomationResponse;
|
|
6094
5958
|
type index_d_CursorPaging = CursorPaging;
|
|
@@ -6121,7 +5985,6 @@ type index_d_FutureDateActivationOffset = FutureDateActivationOffset;
|
|
|
6121
5985
|
type index_d_GetActionsQuotaInfoRequest = GetActionsQuotaInfoRequest;
|
|
6122
5986
|
type index_d_GetActionsQuotaInfoResponse = GetActionsQuotaInfoResponse;
|
|
6123
5987
|
type index_d_GetActionsQuotaInfoResponseNonNullableFields = GetActionsQuotaInfoResponseNonNullableFields;
|
|
6124
|
-
type index_d_GetAutomationActionSchemaIdentifiers = GetAutomationActionSchemaIdentifiers;
|
|
6125
5988
|
type index_d_GetAutomationActionSchemaRequest = GetAutomationActionSchemaRequest;
|
|
6126
5989
|
type index_d_GetAutomationActionSchemaResponse = GetAutomationActionSchemaResponse;
|
|
6127
5990
|
type index_d_GetAutomationOptions = GetAutomationOptions;
|
|
@@ -6132,7 +5995,6 @@ type index_d_GetAutomationRevisionRequest = GetAutomationRevisionRequest;
|
|
|
6132
5995
|
type index_d_GetAutomationRevisionResponse = GetAutomationRevisionResponse;
|
|
6133
5996
|
type index_d_GetOrCreateDraftAutomationRequest = GetOrCreateDraftAutomationRequest;
|
|
6134
5997
|
type index_d_GetOrCreateDraftAutomationResponse = GetOrCreateDraftAutomationResponse;
|
|
6135
|
-
type index_d_GetOrCreateDraftAutomationResponseNonNullableFields = GetOrCreateDraftAutomationResponseNonNullableFields;
|
|
6136
5998
|
type index_d_IdentificationData = IdentificationData;
|
|
6137
5999
|
type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
6138
6000
|
type index_d_ItemMetadata = ItemMetadata;
|
|
@@ -6157,10 +6019,8 @@ type index_d_PublishDraftAutomationResponse = PublishDraftAutomationResponse;
|
|
|
6157
6019
|
type index_d_QueryAutomationsRequest = QueryAutomationsRequest;
|
|
6158
6020
|
type index_d_QueryAutomationsResponse = QueryAutomationsResponse;
|
|
6159
6021
|
type index_d_QueryAutomationsResponseNonNullableFields = QueryAutomationsResponseNonNullableFields;
|
|
6160
|
-
type index_d_QueryAutomationsWithDraftsOptions = QueryAutomationsWithDraftsOptions;
|
|
6161
6022
|
type index_d_QueryAutomationsWithDraftsRequest = QueryAutomationsWithDraftsRequest;
|
|
6162
6023
|
type index_d_QueryAutomationsWithDraftsResponse = QueryAutomationsWithDraftsResponse;
|
|
6163
|
-
type index_d_QueryAutomationsWithDraftsResponseNonNullableFields = QueryAutomationsWithDraftsResponseNonNullableFields;
|
|
6164
6024
|
type index_d_QueryPreinstalledAutomationsForAppRequest = QueryPreinstalledAutomationsForAppRequest;
|
|
6165
6025
|
type index_d_QueryPreinstalledAutomationsForAppResponse = QueryPreinstalledAutomationsForAppResponse;
|
|
6166
6026
|
type index_d_Quota = Quota;
|
|
@@ -6207,10 +6067,8 @@ type index_d_UpdateAutomation = UpdateAutomation;
|
|
|
6207
6067
|
type index_d_UpdateAutomationRequest = UpdateAutomationRequest;
|
|
6208
6068
|
type index_d_UpdateAutomationResponse = UpdateAutomationResponse;
|
|
6209
6069
|
type index_d_UpdateAutomationResponseNonNullableFields = UpdateAutomationResponseNonNullableFields;
|
|
6210
|
-
type index_d_UpdateDraftAutomation = UpdateDraftAutomation;
|
|
6211
6070
|
type index_d_UpdateDraftAutomationRequest = UpdateDraftAutomationRequest;
|
|
6212
6071
|
type index_d_UpdateDraftAutomationResponse = UpdateDraftAutomationResponse;
|
|
6213
|
-
type index_d_UpdateDraftAutomationResponseNonNullableFields = UpdateDraftAutomationResponseNonNullableFields;
|
|
6214
6072
|
type index_d_UpdatePreinstalledAutomationRequest = UpdatePreinstalledAutomationRequest;
|
|
6215
6073
|
type index_d_UpdatePreinstalledAutomationResponse = UpdatePreinstalledAutomationResponse;
|
|
6216
6074
|
type index_d_UpdatedWithPreviousEntity = UpdatedWithPreviousEntity;
|
|
@@ -6234,25 +6092,19 @@ type index_d__publicOnAutomationUpdatedWithPreviousEntityType = _publicOnAutomat
|
|
|
6234
6092
|
declare const index_d_bulkDeleteAutomations: typeof bulkDeleteAutomations;
|
|
6235
6093
|
declare const index_d_copyAutomation: typeof copyAutomation;
|
|
6236
6094
|
declare const index_d_createAutomation: typeof createAutomation;
|
|
6237
|
-
declare const index_d_createDraftAutomation: typeof createDraftAutomation;
|
|
6238
6095
|
declare const index_d_deleteAutomation: typeof deleteAutomation;
|
|
6239
|
-
declare const index_d_deleteDraftAutomation: typeof deleteDraftAutomation;
|
|
6240
6096
|
declare const index_d_getActionsQuotaInfo: typeof getActionsQuotaInfo;
|
|
6241
6097
|
declare const index_d_getAutomation: typeof getAutomation;
|
|
6242
|
-
declare const index_d_getAutomationActionSchema: typeof getAutomationActionSchema;
|
|
6243
|
-
declare const index_d_getOrCreateDraftAutomation: typeof getOrCreateDraftAutomation;
|
|
6244
6098
|
declare const index_d_onAutomationCreated: typeof onAutomationCreated;
|
|
6245
6099
|
declare const index_d_onAutomationDeleted: typeof onAutomationDeleted;
|
|
6246
6100
|
declare const index_d_onAutomationDeletedWithEntity: typeof onAutomationDeletedWithEntity;
|
|
6247
6101
|
declare const index_d_onAutomationUpdated: typeof onAutomationUpdated;
|
|
6248
6102
|
declare const index_d_onAutomationUpdatedWithPreviousEntity: typeof onAutomationUpdatedWithPreviousEntity;
|
|
6249
6103
|
declare const index_d_queryAutomations: typeof queryAutomations;
|
|
6250
|
-
declare const index_d_queryAutomationsWithDrafts: typeof queryAutomationsWithDrafts;
|
|
6251
6104
|
declare const index_d_updateAutomation: typeof updateAutomation;
|
|
6252
|
-
declare const index_d_updateDraftAutomation: typeof updateDraftAutomation;
|
|
6253
6105
|
declare const index_d_validateAutomation: typeof validateAutomation;
|
|
6254
6106
|
declare namespace index_d {
|
|
6255
|
-
export { type index_d_Action as Action, type index_d_ActionConfigurationError as ActionConfigurationError, index_d_ActionErrorType as ActionErrorType, type index_d_ActionEvent as ActionEvent, type index_d_ActionInfoOneOf as ActionInfoOneOf, type index_d_ActionProviderQuotaInfo as ActionProviderQuotaInfo, type index_d_ActionQuotaInfo as ActionQuotaInfo, type index_d_ActionSettings as ActionSettings, type index_d_ActionValidationError as ActionValidationError, type index_d_ActionValidationErrorErrorOneOf as ActionValidationErrorErrorOneOf, type index_d_ActionValidationInfo as ActionValidationInfo, type index_d_AdditionalInfo as AdditionalInfo, type index_d_AppDefinedAction as AppDefinedAction, type index_d_ApplicationError as ApplicationError, type index_d_ApplicationOrigin as ApplicationOrigin, type index_d_Asset as Asset, type index_d_AuditInfo as AuditInfo, type index_d_AuditInfoIdOneOf as AuditInfoIdOneOf, type index_d_Automation as Automation, type index_d_AutomationConfiguration as AutomationConfiguration, type index_d_AutomationConfigurationError as AutomationConfigurationError, type index_d_AutomationCreatedEnvelope as AutomationCreatedEnvelope, type index_d_AutomationDeletedEnvelope as AutomationDeletedEnvelope, type index_d_AutomationDeletedWithEntityEnvelope as AutomationDeletedWithEntityEnvelope, index_d_AutomationErrorType as AutomationErrorType, type index_d_AutomationNonNullableFields as AutomationNonNullableFields, type index_d_AutomationOriginInfoOneOf as AutomationOriginInfoOneOf, type index_d_AutomationSettings as AutomationSettings, type index_d_AutomationUpdatedEnvelope as AutomationUpdatedEnvelope, type index_d_AutomationUpdatedWithPreviousEntityEnvelope as AutomationUpdatedWithPreviousEntityEnvelope, type index_d_AutomationValidationError as AutomationValidationError, type index_d_AutomationValidationErrorErrorOneOf as AutomationValidationErrorErrorOneOf, index_d_AutomationValidationErrorValidationErrorType as AutomationValidationErrorValidationErrorType, type index_d_AutomationsQueryBuilder as AutomationsQueryBuilder, type index_d_AutomationsQueryResult as AutomationsQueryResult, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BulkActionMetadata as BulkActionMetadata, type index_d_BulkDeleteAutomationsRequest as BulkDeleteAutomationsRequest, type index_d_BulkDeleteAutomationsResponse as BulkDeleteAutomationsResponse, type index_d_BulkDeleteAutomationsResponseNonNullableFields as BulkDeleteAutomationsResponseNonNullableFields, type index_d_BulkDeleteResult as BulkDeleteResult, type index_d_CTA as CTA, type index_d_CommonCursorPaging as CommonCursorPaging, type index_d_CommonCursorPagingMetadata as CommonCursorPagingMetadata, type index_d_CommonCursorQuery as CommonCursorQuery, type index_d_CommonCursorQueryPagingMethodOneOf as CommonCursorQueryPagingMethodOneOf, type index_d_CommonCursors as CommonCursors, index_d_CommonSortOrder as CommonSortOrder, type index_d_CommonSorting as CommonSorting, type index_d_ConditionAction as ConditionAction, type index_d_ConditionExpressionGroup as ConditionExpressionGroup, type index_d_CopyAutomationOptions as CopyAutomationOptions, type index_d_CopyAutomationRequest as CopyAutomationRequest, type index_d_CopyAutomationResponse as CopyAutomationResponse, type index_d_CopyAutomationResponseNonNullableFields as CopyAutomationResponseNonNullableFields, type index_d_CreateAutomationRequest as CreateAutomationRequest, type index_d_CreateAutomationResponse as CreateAutomationResponse, type index_d_CreateAutomationResponseNonNullableFields as CreateAutomationResponseNonNullableFields, type index_d_CreateDraftAutomationOptions as CreateDraftAutomationOptions, type index_d_CreateDraftAutomationRequest as CreateDraftAutomationRequest, type index_d_CreateDraftAutomationResponse as CreateDraftAutomationResponse, type index_d_CreateDraftAutomationResponseNonNullableFields as CreateDraftAutomationResponseNonNullableFields, type index_d_CreatePreinstalledAutomationRequest as CreatePreinstalledAutomationRequest, type index_d_CreatePreinstalledAutomationResponse as CreatePreinstalledAutomationResponse, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DelayAction as DelayAction, type index_d_DeleteAutomationRequest as DeleteAutomationRequest, type index_d_DeleteAutomationResponse as DeleteAutomationResponse, type index_d_DeleteContext as DeleteContext, type index_d_DeleteDraftAutomationRequest as DeleteDraftAutomationRequest, type index_d_DeleteDraftAutomationResponse as DeleteDraftAutomationResponse, type index_d_DeletePreinstalledAutomationRequest as DeletePreinstalledAutomationRequest, type index_d_DeletePreinstalledAutomationResponse as DeletePreinstalledAutomationResponse, index_d_DeleteStatus as DeleteStatus, type index_d_DeletedWithEntity as DeletedWithEntity, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_DraftInfo as DraftInfo, type index_d_DraftsInfo as DraftsInfo, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_Filter as Filter, type index_d_FutureDateActivationOffset as FutureDateActivationOffset, type index_d_GetActionsQuotaInfoRequest as GetActionsQuotaInfoRequest, type index_d_GetActionsQuotaInfoResponse as GetActionsQuotaInfoResponse, type index_d_GetActionsQuotaInfoResponseNonNullableFields as GetActionsQuotaInfoResponseNonNullableFields, type index_d_GetAutomationActionSchemaIdentifiers as GetAutomationActionSchemaIdentifiers, type index_d_GetAutomationActionSchemaRequest as GetAutomationActionSchemaRequest, type index_d_GetAutomationActionSchemaResponse as GetAutomationActionSchemaResponse, type index_d_GetAutomationOptions as GetAutomationOptions, type index_d_GetAutomationRequest as GetAutomationRequest, type index_d_GetAutomationResponse as GetAutomationResponse, type index_d_GetAutomationResponseNonNullableFields as GetAutomationResponseNonNullableFields, type index_d_GetAutomationRevisionRequest as GetAutomationRevisionRequest, type index_d_GetAutomationRevisionResponse as GetAutomationRevisionResponse, type index_d_GetOrCreateDraftAutomationRequest as GetOrCreateDraftAutomationRequest, type index_d_GetOrCreateDraftAutomationResponse as GetOrCreateDraftAutomationResponse, type index_d_GetOrCreateDraftAutomationResponseNonNullableFields as GetOrCreateDraftAutomationResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ItemMetadata as ItemMetadata, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, index_d_Operator as Operator, index_d_Origin as Origin, type index_d_OriginAutomationInfo as OriginAutomationInfo, type index_d_OutputAction as OutputAction, type index_d_Plan as Plan, type index_d_PreinstalledAutomationSpecInfo as PreinstalledAutomationSpecInfo, type index_d_PreinstalledOrigin as PreinstalledOrigin, type index_d_ProviderConfigurationError as ProviderConfigurationError, type index_d_PublishDraftAutomationRequest as PublishDraftAutomationRequest, type index_d_PublishDraftAutomationResponse as PublishDraftAutomationResponse, type index_d_QueryAutomationsRequest as QueryAutomationsRequest, type index_d_QueryAutomationsResponse as QueryAutomationsResponse, type index_d_QueryAutomationsResponseNonNullableFields as QueryAutomationsResponseNonNullableFields, type index_d_QueryAutomationsWithDraftsOptions as QueryAutomationsWithDraftsOptions, type index_d_QueryAutomationsWithDraftsRequest as QueryAutomationsWithDraftsRequest, type index_d_QueryAutomationsWithDraftsResponse as QueryAutomationsWithDraftsResponse, type index_d_QueryAutomationsWithDraftsResponseNonNullableFields as QueryAutomationsWithDraftsResponseNonNullableFields, type index_d_QueryPreinstalledAutomationsForAppRequest as QueryPreinstalledAutomationsForAppRequest, type index_d_QueryPreinstalledAutomationsForAppResponse as QueryPreinstalledAutomationsForAppResponse, type index_d_Quota as Quota, type index_d_QuotaInfo as QuotaInfo, type index_d_RateLimit as RateLimit, type index_d_RateLimitAction as RateLimitAction, type index_d_RestoreInfo as RestoreInfo, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, index_d_Status as Status, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, index_d_TimeUnit as TimeUnit, type index_d_Trigger as Trigger, type index_d_TriggerConfigurationError as TriggerConfigurationError, index_d_TriggerErrorType as TriggerErrorType, type index_d_TriggerValidationError as TriggerValidationError, type index_d_TriggerValidationErrorErrorOneOf as TriggerValidationErrorErrorOneOf, index_d_TriggerValidationErrorValidationErrorType as TriggerValidationErrorValidationErrorType, index_d_Type as Type, type index_d_UpdateAutomation as UpdateAutomation, type index_d_UpdateAutomationRequest as UpdateAutomationRequest, type index_d_UpdateAutomationResponse as UpdateAutomationResponse, type index_d_UpdateAutomationResponseNonNullableFields as UpdateAutomationResponseNonNullableFields, type index_d_UpdateDraftAutomation as UpdateDraftAutomation, type index_d_UpdateDraftAutomationRequest as UpdateDraftAutomationRequest, type index_d_UpdateDraftAutomationResponse as UpdateDraftAutomationResponse, type index_d_UpdateDraftAutomationResponseNonNullableFields as UpdateDraftAutomationResponseNonNullableFields, type index_d_UpdatePreinstalledAutomationRequest as UpdatePreinstalledAutomationRequest, type index_d_UpdatePreinstalledAutomationResponse as UpdatePreinstalledAutomationResponse, type index_d_UpdatedWithPreviousEntity as UpdatedWithPreviousEntity, type index_d_UpgradeCTA as UpgradeCTA, type index_d_ValidateAutomationOptions as ValidateAutomationOptions, type index_d_ValidateAutomationRequest as ValidateAutomationRequest, type index_d_ValidateAutomationResponse as ValidateAutomationResponse, type index_d_ValidateAutomationResponseNonNullableFields as ValidateAutomationResponseNonNullableFields, index_d_ValidationErrorSeverity as ValidationErrorSeverity, index_d_ValidationErrorType as ValidationErrorType, type index_d_ValidationSettings as ValidationSettings, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnAutomationCreatedType as _publicOnAutomationCreatedType, type index_d__publicOnAutomationDeletedType as _publicOnAutomationDeletedType, type index_d__publicOnAutomationDeletedWithEntityType as _publicOnAutomationDeletedWithEntityType, type index_d__publicOnAutomationUpdatedType as _publicOnAutomationUpdatedType, type index_d__publicOnAutomationUpdatedWithPreviousEntityType as _publicOnAutomationUpdatedWithPreviousEntityType, index_d_bulkDeleteAutomations as bulkDeleteAutomations, index_d_copyAutomation as copyAutomation, index_d_createAutomation as createAutomation, index_d_createDraftAutomation as createDraftAutomation, index_d_deleteAutomation as deleteAutomation, index_d_deleteDraftAutomation as deleteDraftAutomation, index_d_getActionsQuotaInfo as getActionsQuotaInfo, index_d_getAutomation as getAutomation, index_d_getAutomationActionSchema as getAutomationActionSchema, index_d_getOrCreateDraftAutomation as getOrCreateDraftAutomation, index_d_onAutomationCreated as onAutomationCreated, index_d_onAutomationDeleted as onAutomationDeleted, index_d_onAutomationDeletedWithEntity as onAutomationDeletedWithEntity, index_d_onAutomationUpdated as onAutomationUpdated, index_d_onAutomationUpdatedWithPreviousEntity as onAutomationUpdatedWithPreviousEntity, onAutomationCreated$1 as publicOnAutomationCreated, onAutomationDeleted$1 as publicOnAutomationDeleted, onAutomationDeletedWithEntity$1 as publicOnAutomationDeletedWithEntity, onAutomationUpdated$1 as publicOnAutomationUpdated, onAutomationUpdatedWithPreviousEntity$1 as publicOnAutomationUpdatedWithPreviousEntity, index_d_queryAutomations as queryAutomations, index_d_queryAutomationsWithDrafts as queryAutomationsWithDrafts, index_d_updateAutomation as updateAutomation, index_d_updateDraftAutomation as updateDraftAutomation, index_d_validateAutomation as validateAutomation };
|
|
6107
|
+
export { type index_d_Action as Action, type index_d_ActionConfigurationError as ActionConfigurationError, index_d_ActionErrorType as ActionErrorType, type index_d_ActionEvent as ActionEvent, type index_d_ActionInfoOneOf as ActionInfoOneOf, type index_d_ActionProviderQuotaInfo as ActionProviderQuotaInfo, type index_d_ActionQuotaInfo as ActionQuotaInfo, type index_d_ActionSettings as ActionSettings, type index_d_ActionValidationError as ActionValidationError, type index_d_ActionValidationErrorErrorOneOf as ActionValidationErrorErrorOneOf, type index_d_ActionValidationInfo as ActionValidationInfo, type index_d_AdditionalInfo as AdditionalInfo, type index_d_AppDefinedAction as AppDefinedAction, type index_d_ApplicationError as ApplicationError, type index_d_ApplicationOrigin as ApplicationOrigin, type index_d_Asset as Asset, type index_d_AuditInfo as AuditInfo, type index_d_AuditInfoIdOneOf as AuditInfoIdOneOf, type index_d_Automation as Automation, type index_d_AutomationConfiguration as AutomationConfiguration, type index_d_AutomationConfigurationError as AutomationConfigurationError, type index_d_AutomationCreatedEnvelope as AutomationCreatedEnvelope, type index_d_AutomationDeletedEnvelope as AutomationDeletedEnvelope, type index_d_AutomationDeletedWithEntityEnvelope as AutomationDeletedWithEntityEnvelope, index_d_AutomationErrorType as AutomationErrorType, type index_d_AutomationNonNullableFields as AutomationNonNullableFields, type index_d_AutomationOriginInfoOneOf as AutomationOriginInfoOneOf, type index_d_AutomationSettings as AutomationSettings, type index_d_AutomationUpdatedEnvelope as AutomationUpdatedEnvelope, type index_d_AutomationUpdatedWithPreviousEntityEnvelope as AutomationUpdatedWithPreviousEntityEnvelope, type index_d_AutomationValidationError as AutomationValidationError, type index_d_AutomationValidationErrorErrorOneOf as AutomationValidationErrorErrorOneOf, index_d_AutomationValidationErrorValidationErrorType as AutomationValidationErrorValidationErrorType, type index_d_AutomationsQueryBuilder as AutomationsQueryBuilder, type index_d_AutomationsQueryResult as AutomationsQueryResult, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BulkActionMetadata as BulkActionMetadata, type index_d_BulkDeleteAutomationsRequest as BulkDeleteAutomationsRequest, type index_d_BulkDeleteAutomationsResponse as BulkDeleteAutomationsResponse, type index_d_BulkDeleteAutomationsResponseNonNullableFields as BulkDeleteAutomationsResponseNonNullableFields, type index_d_BulkDeleteResult as BulkDeleteResult, type index_d_CTA as CTA, type index_d_CommonCursorPaging as CommonCursorPaging, type index_d_CommonCursorPagingMetadata as CommonCursorPagingMetadata, type index_d_CommonCursorQuery as CommonCursorQuery, type index_d_CommonCursorQueryPagingMethodOneOf as CommonCursorQueryPagingMethodOneOf, type index_d_CommonCursors as CommonCursors, index_d_CommonSortOrder as CommonSortOrder, type index_d_CommonSorting as CommonSorting, type index_d_ConditionAction as ConditionAction, type index_d_ConditionExpressionGroup as ConditionExpressionGroup, type index_d_CopyAutomationOptions as CopyAutomationOptions, type index_d_CopyAutomationRequest as CopyAutomationRequest, type index_d_CopyAutomationResponse as CopyAutomationResponse, type index_d_CopyAutomationResponseNonNullableFields as CopyAutomationResponseNonNullableFields, type index_d_CreateAutomationRequest as CreateAutomationRequest, type index_d_CreateAutomationResponse as CreateAutomationResponse, type index_d_CreateAutomationResponseNonNullableFields as CreateAutomationResponseNonNullableFields, type index_d_CreateDraftAutomationRequest as CreateDraftAutomationRequest, type index_d_CreateDraftAutomationResponse as CreateDraftAutomationResponse, type index_d_CreatePreinstalledAutomationRequest as CreatePreinstalledAutomationRequest, type index_d_CreatePreinstalledAutomationResponse as CreatePreinstalledAutomationResponse, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DelayAction as DelayAction, type index_d_DeleteAutomationRequest as DeleteAutomationRequest, type index_d_DeleteAutomationResponse as DeleteAutomationResponse, type index_d_DeleteContext as DeleteContext, type index_d_DeleteDraftAutomationRequest as DeleteDraftAutomationRequest, type index_d_DeleteDraftAutomationResponse as DeleteDraftAutomationResponse, type index_d_DeletePreinstalledAutomationRequest as DeletePreinstalledAutomationRequest, type index_d_DeletePreinstalledAutomationResponse as DeletePreinstalledAutomationResponse, index_d_DeleteStatus as DeleteStatus, type index_d_DeletedWithEntity as DeletedWithEntity, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_DraftInfo as DraftInfo, type index_d_DraftsInfo as DraftsInfo, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_Filter as Filter, type index_d_FutureDateActivationOffset as FutureDateActivationOffset, type index_d_GetActionsQuotaInfoRequest as GetActionsQuotaInfoRequest, type index_d_GetActionsQuotaInfoResponse as GetActionsQuotaInfoResponse, type index_d_GetActionsQuotaInfoResponseNonNullableFields as GetActionsQuotaInfoResponseNonNullableFields, type index_d_GetAutomationActionSchemaRequest as GetAutomationActionSchemaRequest, type index_d_GetAutomationActionSchemaResponse as GetAutomationActionSchemaResponse, type index_d_GetAutomationOptions as GetAutomationOptions, type index_d_GetAutomationRequest as GetAutomationRequest, type index_d_GetAutomationResponse as GetAutomationResponse, type index_d_GetAutomationResponseNonNullableFields as GetAutomationResponseNonNullableFields, type index_d_GetAutomationRevisionRequest as GetAutomationRevisionRequest, type index_d_GetAutomationRevisionResponse as GetAutomationRevisionResponse, type index_d_GetOrCreateDraftAutomationRequest as GetOrCreateDraftAutomationRequest, type index_d_GetOrCreateDraftAutomationResponse as GetOrCreateDraftAutomationResponse, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ItemMetadata as ItemMetadata, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, index_d_Operator as Operator, index_d_Origin as Origin, type index_d_OriginAutomationInfo as OriginAutomationInfo, type index_d_OutputAction as OutputAction, type index_d_Plan as Plan, type index_d_PreinstalledAutomationSpecInfo as PreinstalledAutomationSpecInfo, type index_d_PreinstalledOrigin as PreinstalledOrigin, type index_d_ProviderConfigurationError as ProviderConfigurationError, type index_d_PublishDraftAutomationRequest as PublishDraftAutomationRequest, type index_d_PublishDraftAutomationResponse as PublishDraftAutomationResponse, type index_d_QueryAutomationsRequest as QueryAutomationsRequest, type index_d_QueryAutomationsResponse as QueryAutomationsResponse, type index_d_QueryAutomationsResponseNonNullableFields as QueryAutomationsResponseNonNullableFields, type index_d_QueryAutomationsWithDraftsRequest as QueryAutomationsWithDraftsRequest, type index_d_QueryAutomationsWithDraftsResponse as QueryAutomationsWithDraftsResponse, type index_d_QueryPreinstalledAutomationsForAppRequest as QueryPreinstalledAutomationsForAppRequest, type index_d_QueryPreinstalledAutomationsForAppResponse as QueryPreinstalledAutomationsForAppResponse, type index_d_Quota as Quota, type index_d_QuotaInfo as QuotaInfo, type index_d_RateLimit as RateLimit, type index_d_RateLimitAction as RateLimitAction, type index_d_RestoreInfo as RestoreInfo, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, index_d_Status as Status, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, index_d_TimeUnit as TimeUnit, type index_d_Trigger as Trigger, type index_d_TriggerConfigurationError as TriggerConfigurationError, index_d_TriggerErrorType as TriggerErrorType, type index_d_TriggerValidationError as TriggerValidationError, type index_d_TriggerValidationErrorErrorOneOf as TriggerValidationErrorErrorOneOf, index_d_TriggerValidationErrorValidationErrorType as TriggerValidationErrorValidationErrorType, index_d_Type as Type, type index_d_UpdateAutomation as UpdateAutomation, type index_d_UpdateAutomationRequest as UpdateAutomationRequest, type index_d_UpdateAutomationResponse as UpdateAutomationResponse, type index_d_UpdateAutomationResponseNonNullableFields as UpdateAutomationResponseNonNullableFields, type index_d_UpdateDraftAutomationRequest as UpdateDraftAutomationRequest, type index_d_UpdateDraftAutomationResponse as UpdateDraftAutomationResponse, type index_d_UpdatePreinstalledAutomationRequest as UpdatePreinstalledAutomationRequest, type index_d_UpdatePreinstalledAutomationResponse as UpdatePreinstalledAutomationResponse, type index_d_UpdatedWithPreviousEntity as UpdatedWithPreviousEntity, type index_d_UpgradeCTA as UpgradeCTA, type index_d_ValidateAutomationOptions as ValidateAutomationOptions, type index_d_ValidateAutomationRequest as ValidateAutomationRequest, type index_d_ValidateAutomationResponse as ValidateAutomationResponse, type index_d_ValidateAutomationResponseNonNullableFields as ValidateAutomationResponseNonNullableFields, index_d_ValidationErrorSeverity as ValidationErrorSeverity, index_d_ValidationErrorType as ValidationErrorType, type index_d_ValidationSettings as ValidationSettings, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnAutomationCreatedType as _publicOnAutomationCreatedType, type index_d__publicOnAutomationDeletedType as _publicOnAutomationDeletedType, type index_d__publicOnAutomationDeletedWithEntityType as _publicOnAutomationDeletedWithEntityType, type index_d__publicOnAutomationUpdatedType as _publicOnAutomationUpdatedType, type index_d__publicOnAutomationUpdatedWithPreviousEntityType as _publicOnAutomationUpdatedWithPreviousEntityType, index_d_bulkDeleteAutomations as bulkDeleteAutomations, index_d_copyAutomation as copyAutomation, index_d_createAutomation as createAutomation, index_d_deleteAutomation as deleteAutomation, index_d_getActionsQuotaInfo as getActionsQuotaInfo, index_d_getAutomation as getAutomation, index_d_onAutomationCreated as onAutomationCreated, index_d_onAutomationDeleted as onAutomationDeleted, index_d_onAutomationDeletedWithEntity as onAutomationDeletedWithEntity, index_d_onAutomationUpdated as onAutomationUpdated, index_d_onAutomationUpdatedWithPreviousEntity as onAutomationUpdatedWithPreviousEntity, onAutomationCreated$1 as publicOnAutomationCreated, onAutomationDeleted$1 as publicOnAutomationDeleted, onAutomationDeletedWithEntity$1 as publicOnAutomationDeletedWithEntity, onAutomationUpdated$1 as publicOnAutomationUpdated, onAutomationUpdatedWithPreviousEntity$1 as publicOnAutomationUpdatedWithPreviousEntity, index_d_queryAutomations as queryAutomations, index_d_updateAutomation as updateAutomation, index_d_validateAutomation as validateAutomation };
|
|
6256
6108
|
}
|
|
6257
6109
|
|
|
6258
6110
|
export { index_d$1 as activations, index_d$2 as automationsService, index_d as automationsServiceV2 };
|