@wix/riseevent 1.0.14 → 1.0.15

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.
@@ -1,1225 +0,0 @@
1
- type HostModule<T, H extends Host> = {
2
- __type: 'host';
3
- create(host: H): T;
4
- };
5
- type HostModuleAPI<T extends HostModule<any, any>> = T extends HostModule<infer U, any> ? U : never;
6
- type Host<Environment = unknown> = {
7
- channel: {
8
- observeState(callback: (props: unknown, environment: Environment) => unknown): {
9
- disconnect: () => void;
10
- } | Promise<{
11
- disconnect: () => void;
12
- }>;
13
- };
14
- environment?: Environment;
15
- /**
16
- * Optional name of the environment, use for logging
17
- */
18
- name?: string;
19
- /**
20
- * Optional bast url to use for API requests, for example `www.wixapis.com`
21
- */
22
- apiBaseUrl?: string;
23
- /**
24
- * Possible data to be provided by every host, for cross cutting concerns
25
- * like internationalization, billing, etc.
26
- */
27
- essentials?: {
28
- /**
29
- * The language of the currently viewed session
30
- */
31
- language?: string;
32
- /**
33
- * The locale of the currently viewed session
34
- */
35
- locale?: string;
36
- /**
37
- * Any headers that should be passed through to the API requests
38
- */
39
- passThroughHeaders?: Record<string, string>;
40
- };
41
- };
42
-
43
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
44
- interface HttpClient {
45
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
46
- fetchWithAuth: typeof fetch;
47
- wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
48
- getActiveToken?: () => string | undefined;
49
- }
50
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
51
- type HttpResponse<T = any> = {
52
- data: T;
53
- status: number;
54
- statusText: string;
55
- headers: any;
56
- request?: any;
57
- };
58
- type RequestOptions<_TResponse = any, Data = any> = {
59
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
60
- url: string;
61
- data?: Data;
62
- params?: URLSearchParams;
63
- } & APIMetadata;
64
- type APIMetadata = {
65
- methodFqn?: string;
66
- entityFqdn?: string;
67
- packageName?: string;
68
- };
69
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
70
- type EventDefinition<Payload = unknown, Type extends string = string> = {
71
- __type: 'event-definition';
72
- type: Type;
73
- isDomainEvent?: boolean;
74
- transformations?: (envelope: unknown) => Payload;
75
- __payload: Payload;
76
- };
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;
80
-
81
- type ServicePluginMethodInput = {
82
- request: any;
83
- metadata: any;
84
- };
85
- type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
86
- type ServicePluginMethodMetadata = {
87
- name: string;
88
- primaryHttpMappingPath: string;
89
- transformations: {
90
- fromREST: (...args: unknown[]) => ServicePluginMethodInput;
91
- toREST: (...args: unknown[]) => unknown;
92
- };
93
- };
94
- type ServicePluginDefinition<Contract extends ServicePluginContract> = {
95
- __type: 'service-plugin-definition';
96
- componentType: string;
97
- methods: ServicePluginMethodMetadata[];
98
- __contract: Contract;
99
- };
100
- declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
101
- type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
102
- declare const SERVICE_PLUGIN_ERROR_TYPE = "wix_spi_error";
103
-
104
- type RequestContext = {
105
- isSSR: boolean;
106
- host: string;
107
- protocol?: string;
108
- };
109
- type ResponseTransformer = (data: any, headers?: any) => any;
110
- /**
111
- * Ambassador request options types are copied mostly from AxiosRequestConfig.
112
- * They are copied and not imported to reduce the amount of dependencies (to reduce install time).
113
- * https://github.com/axios/axios/blob/3f53eb6960f05a1f88409c4b731a40de595cb825/index.d.ts#L307-L315
114
- */
115
- type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
116
- type AmbassadorRequestOptions<T = any> = {
117
- _?: T;
118
- url?: string;
119
- method?: Method;
120
- params?: any;
121
- data?: any;
122
- transformResponse?: ResponseTransformer | ResponseTransformer[];
123
- };
124
- type AmbassadorFactory<Request, Response> = (payload: Request) => ((context: RequestContext) => AmbassadorRequestOptions<Response>) & {
125
- __isAmbassador: boolean;
126
- };
127
- type AmbassadorFunctionDescriptor<Request = any, Response = any> = AmbassadorFactory<Request, Response>;
128
- type BuildAmbassadorFunction<T extends AmbassadorFunctionDescriptor> = T extends AmbassadorFunctionDescriptor<infer Request, infer Response> ? (req: Request) => Promise<Response> : never;
129
-
130
- declare global {
131
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
132
- interface SymbolConstructor {
133
- readonly observable: symbol;
134
- }
135
- }
136
-
137
- declare const emptyObjectSymbol: unique symbol;
138
-
139
- /**
140
- Represents a strictly empty plain object, the `{}` value.
141
-
142
- When you annotate something as the type `{}`, it can be anything except `null` and `undefined`. This means that you cannot use `{}` to represent an empty plain object ([read more](https://stackoverflow.com/questions/47339869/typescript-empty-object-and-any-difference/52193484#52193484)).
143
-
144
- @example
145
- ```
146
- import type {EmptyObject} from 'type-fest';
147
-
148
- // The following illustrates the problem with `{}`.
149
- const foo1: {} = {}; // Pass
150
- const foo2: {} = []; // Pass
151
- const foo3: {} = 42; // Pass
152
- const foo4: {} = {a: 1}; // Pass
153
-
154
- // With `EmptyObject` only the first case is valid.
155
- const bar1: EmptyObject = {}; // Pass
156
- const bar2: EmptyObject = 42; // Fail
157
- const bar3: EmptyObject = []; // Fail
158
- const bar4: EmptyObject = {a: 1}; // Fail
159
- ```
160
-
161
- Unfortunately, `Record<string, never>`, `Record<keyof any, never>` and `Record<never, never>` do not work. See {@link https://github.com/sindresorhus/type-fest/issues/395 #395}.
162
-
163
- @category Object
164
- */
165
- type EmptyObject = {[emptyObjectSymbol]?: never};
166
-
167
- /**
168
- Returns a boolean for whether the two given types are equal.
169
-
170
- @link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650
171
- @link https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796
172
-
173
- Use-cases:
174
- - If you want to make a conditional branch based on the result of a comparison of two types.
175
-
176
- @example
177
- ```
178
- import type {IsEqual} from 'type-fest';
179
-
180
- // This type returns a boolean for whether the given array includes the given item.
181
- // `IsEqual` is used to compare the given array at position 0 and the given item and then return true if they are equal.
182
- type Includes<Value extends readonly any[], Item> =
183
- Value extends readonly [Value[0], ...infer rest]
184
- ? IsEqual<Value[0], Item> extends true
185
- ? true
186
- : Includes<rest, Item>
187
- : false;
188
- ```
189
-
190
- @category Type Guard
191
- @category Utilities
192
- */
193
- type IsEqual<A, B> =
194
- (<G>() => G extends A ? 1 : 2) extends
195
- (<G>() => G extends B ? 1 : 2)
196
- ? true
197
- : false;
198
-
199
- /**
200
- Filter out keys from an object.
201
-
202
- Returns `never` if `Exclude` is strictly equal to `Key`.
203
- Returns `never` if `Key` extends `Exclude`.
204
- Returns `Key` otherwise.
205
-
206
- @example
207
- ```
208
- type Filtered = Filter<'foo', 'foo'>;
209
- //=> never
210
- ```
211
-
212
- @example
213
- ```
214
- type Filtered = Filter<'bar', string>;
215
- //=> never
216
- ```
217
-
218
- @example
219
- ```
220
- type Filtered = Filter<'bar', 'foo'>;
221
- //=> 'bar'
222
- ```
223
-
224
- @see {Except}
225
- */
226
- type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
227
-
228
- type ExceptOptions = {
229
- /**
230
- Disallow assigning non-specified properties.
231
-
232
- Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.
233
-
234
- @default false
235
- */
236
- requireExactProps?: boolean;
237
- };
238
-
239
- /**
240
- Create a type from an object type without certain keys.
241
-
242
- We recommend setting the `requireExactProps` option to `true`.
243
-
244
- This type is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type). The `Omit` type does not restrict the omitted keys to be keys present on the given type, while `Except` does. The benefits of a stricter type are avoiding typos and allowing the compiler to pick up on rename refactors automatically.
245
-
246
- This type was proposed to the TypeScript team, which declined it, saying they prefer that libraries implement stricter versions of the built-in types ([microsoft/TypeScript#30825](https://github.com/microsoft/TypeScript/issues/30825#issuecomment-523668235)).
247
-
248
- @example
249
- ```
250
- import type {Except} from 'type-fest';
251
-
252
- type Foo = {
253
- a: number;
254
- b: string;
255
- };
256
-
257
- type FooWithoutA = Except<Foo, 'a'>;
258
- //=> {b: string}
259
-
260
- const fooWithoutA: FooWithoutA = {a: 1, b: '2'};
261
- //=> errors: 'a' does not exist in type '{ b: string; }'
262
-
263
- type FooWithoutB = Except<Foo, 'b', {requireExactProps: true}>;
264
- //=> {a: number} & Partial<Record<"b", never>>
265
-
266
- const fooWithoutB: FooWithoutB = {a: 1, b: '2'};
267
- //=> errors at 'b': Type 'string' is not assignable to type 'undefined'.
268
- ```
269
-
270
- @category Object
271
- */
272
- type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {requireExactProps: false}> = {
273
- [KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
274
- } & (Options['requireExactProps'] extends true
275
- ? Partial<Record<KeysType, never>>
276
- : {});
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
-
344
- /**
345
- Extract the keys from a type where the value type of the key extends the given `Condition`.
346
-
347
- Internally this is used for the `ConditionalPick` and `ConditionalExcept` types.
348
-
349
- @example
350
- ```
351
- import type {ConditionalKeys} from 'type-fest';
352
-
353
- interface Example {
354
- a: string;
355
- b: string | number;
356
- c?: string;
357
- d: {};
358
- }
359
-
360
- type StringKeysOnly = ConditionalKeys<Example, string>;
361
- //=> 'a'
362
- ```
363
-
364
- To support partial types, make sure your `Condition` is a union of undefined (for example, `string | undefined`) as demonstrated below.
365
-
366
- @example
367
- ```
368
- import type {ConditionalKeys} from 'type-fest';
369
-
370
- type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
371
- //=> 'a' | 'c'
372
- ```
373
-
374
- @category Object
375
- */
376
- type ConditionalKeys<Base, Condition> =
377
- {
378
- // Map through all the keys of the given base type.
379
- [Key in keyof Base]-?:
380
- // Pick only keys with types extending the given `Condition` type.
381
- Base[Key] extends Condition
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>
385
- // Discard this key since the condition fails.
386
- : never;
387
- // Convert the produced object into a union type of the keys which passed the conditional test.
388
- }[keyof Base];
389
-
390
- /**
391
- Exclude keys from a shape that matches the given `Condition`.
392
-
393
- This is useful when you want to create a new type with a specific set of keys from a shape. For example, you might want to exclude all the primitive properties from a class and form a new shape containing everything but the primitive properties.
394
-
395
- @example
396
- ```
397
- import type {Primitive, ConditionalExcept} from 'type-fest';
398
-
399
- class Awesome {
400
- name: string;
401
- successes: number;
402
- failures: bigint;
403
-
404
- run() {}
405
- }
406
-
407
- type ExceptPrimitivesFromAwesome = ConditionalExcept<Awesome, Primitive>;
408
- //=> {run: () => void}
409
- ```
410
-
411
- @example
412
- ```
413
- import type {ConditionalExcept} from 'type-fest';
414
-
415
- interface Example {
416
- a: string;
417
- b: string | number;
418
- c: () => void;
419
- d: {};
420
- }
421
-
422
- type NonStringKeysOnly = ConditionalExcept<Example, string>;
423
- //=> {b: string | number; c: () => void; d: {}}
424
- ```
425
-
426
- @category Object
427
- */
428
- type ConditionalExcept<Base, Condition> = Except<
429
- Base,
430
- ConditionalKeys<Base, Condition>
431
- >;
432
-
433
- /**
434
- * Descriptors are objects that describe the API of a module, and the module
435
- * can either be a REST module or a host module.
436
- * This type is recursive, so it can describe nested modules.
437
- */
438
- type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition<any> | ServicePluginDefinition<any> | {
439
- [key: string]: Descriptors | PublicMetadata | any;
440
- };
441
- /**
442
- * This type takes in a descriptors object of a certain Host (including an `unknown` host)
443
- * and returns an object with the same structure, but with all descriptors replaced with their API.
444
- * Any non-descriptor properties are removed from the returned object, including descriptors that
445
- * do not match the given host (as they will not work with the given host).
446
- */
447
- type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, Depth extends number = 5> = {
448
- done: T;
449
- recurse: T extends {
450
- __type: typeof SERVICE_PLUGIN_ERROR_TYPE;
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<{
452
- [Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
453
- -1,
454
- 0,
455
- 1,
456
- 2,
457
- 3,
458
- 4,
459
- 5
460
- ][Depth]> : never;
461
- }, EmptyObject>;
462
- }[Depth extends -1 ? 'done' : 'recurse'];
463
- type PublicMetadata = {
464
- PACKAGE_NAME?: string;
465
- };
466
-
467
- declare global {
468
- interface ContextualClient {
469
- }
470
- }
471
- /**
472
- * A type used to create concerete types from SDK descriptors in
473
- * case a contextual client is available.
474
- */
475
- type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
476
- host: Host;
477
- } ? BuildDescriptors<T, globalThis.ContextualClient['host']> : T;
478
-
479
- /** Event is the main entity of EventService */
480
- interface Event {
481
- /**
482
- * Event ID
483
- * @readonly
484
- */
485
- _id?: string | null;
486
- /** Represents the current state of an item. Each time the item is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision */
487
- revision?: string | null;
488
- /**
489
- * Represents the time this Event was created
490
- * @readonly
491
- */
492
- _createdDate?: Date | null;
493
- /**
494
- * Represents the time this Event was last updated
495
- * @readonly
496
- */
497
- _updatedDate?: Date | null;
498
- /** Wallet ID */
499
- walletId?: string;
500
- /** Represents the time when the event's amount will be added to the account */
501
- startDate?: Date | null;
502
- /** Represents the time when the unused balance will be deducted from the account */
503
- expiresAt?: Date | null;
504
- /** Represents the time when the event was manually disabled */
505
- disabledAt?: Date | null;
506
- /** The amount to be added to the customer */
507
- amount?: string;
508
- /** Free text comment regarding the Event context */
509
- note?: string | null;
510
- /** Indicates the kind of the specific event */
511
- type?: EventType;
512
- /**
513
- * The transactionId that added the event's amount;
514
- * @readonly
515
- */
516
- eventAddedTransactionId?: string | null;
517
- /**
518
- * The transactionId that removed the remaining event's balance;
519
- * @readonly
520
- */
521
- eventRemovedTransactionId?: string | null;
522
- status?: EventStatus;
523
- }
524
- declare enum EventType {
525
- UNKNOWN = "UNKNOWN",
526
- REWARD = "REWARD",
527
- REFUND = "REFUND"
528
- }
529
- declare enum EventStatus {
530
- PENDING = "PENDING",
531
- ACTIVE = "ACTIVE",
532
- DISABLED = "DISABLED",
533
- EXPIRED = "EXPIRED"
534
- }
535
- interface CreateEventRequest {
536
- /** Event to be created */
537
- event: Event;
538
- }
539
- interface CreateEventResponse {
540
- /** The created Event */
541
- event?: Event;
542
- }
543
- interface EventCreationExpirationDateInThePastDetails {
544
- /** The date when the event expires. */
545
- expiresAt?: Date | null;
546
- /** The date when the event was tried to be created. */
547
- currentDate?: Date | null;
548
- }
549
- interface EventCreationStartLaterThanExpirationDetails {
550
- /** The start date of the event. */
551
- startDate?: Date | null;
552
- /** The date when the event expires. */
553
- expiresAt?: Date | null;
554
- }
555
- interface EventCreationDisabledAtDateSetDetails {
556
- /** Represents the time when the event was disabled. */
557
- disabledAt?: Date | null;
558
- }
559
- interface GetEventRequest {
560
- /** ID of the Event to retrieve */
561
- eventId: string;
562
- }
563
- interface GetEventResponse {
564
- /** The retrieved Event */
565
- event?: Event;
566
- }
567
- interface UpdateEventRequest {
568
- /** Event to be updated, may be partial */
569
- event: Event;
570
- }
571
- interface UpdateEventResponse {
572
- /** The updated Event */
573
- event?: Event;
574
- }
575
- interface InvalidEventDetails {
576
- /** Event ID. */
577
- eventId?: string;
578
- }
579
- interface EventUpdateStartDateInThePastDetails {
580
- /** Event ID. */
581
- eventId?: string;
582
- /** The date when the event expires. */
583
- newStartDate?: Date | null;
584
- /** The date when the event was tried to be updated. */
585
- currentDate?: Date | null;
586
- }
587
- interface EventUpdateExpirationDateInThePastDetails {
588
- /** Event ID. */
589
- eventId?: string;
590
- /** The date when the event expires. */
591
- newExpiresAt?: Date | null;
592
- /** The date when the event was tried to be updated. */
593
- currentDate?: Date | null;
594
- }
595
- interface EventUpdateStartLaterThanExpirationDetails {
596
- /** Event ID. */
597
- eventId?: string;
598
- /** The start date of the event. */
599
- startDate?: Date | null;
600
- /** The date when the event expires. */
601
- expiresAt?: Date | null;
602
- }
603
- interface DisableEventRequest {
604
- /** ID of the Event to delete */
605
- eventId: string;
606
- /** The revision of the Event */
607
- revision: string;
608
- }
609
- interface DisableEventResponse {
610
- /** The expired Event */
611
- event?: Event;
612
- }
613
- interface EventDisabled {
614
- event?: Event;
615
- }
616
- interface DeleteEventRequest {
617
- /** ID of the Event to delete */
618
- eventId?: string;
619
- /** The revision of the Event */
620
- revision?: string;
621
- }
622
- interface DeleteEventResponse {
623
- }
624
- interface QueryEventRequest {
625
- /** WQL expression */
626
- query?: QueryV2;
627
- }
628
- interface QueryV2 extends QueryV2PagingMethodOneOf {
629
- /** Paging options to limit and skip the number of items. */
630
- paging?: Paging;
631
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
632
- cursorPaging?: CursorPaging;
633
- /**
634
- * Filter object.
635
- *
636
- * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
637
- */
638
- filter?: Record<string, any> | null;
639
- /**
640
- * Sort object.
641
- *
642
- * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
643
- */
644
- sort?: Sorting[];
645
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
646
- fields?: string[];
647
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
648
- fieldsets?: string[];
649
- }
650
- /** @oneof */
651
- interface QueryV2PagingMethodOneOf {
652
- /** Paging options to limit and skip the number of items. */
653
- paging?: Paging;
654
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
655
- cursorPaging?: CursorPaging;
656
- }
657
- interface Sorting {
658
- /** Name of the field to sort by. */
659
- fieldName?: string;
660
- /** Sort order. */
661
- order?: SortOrder;
662
- }
663
- declare enum SortOrder {
664
- ASC = "ASC",
665
- DESC = "DESC"
666
- }
667
- interface Paging {
668
- /** Number of items to load. */
669
- limit?: number | null;
670
- /** Number of items to skip in the current sort order. */
671
- offset?: number | null;
672
- }
673
- interface CursorPaging {
674
- /** Maximum number of items to return in the results. */
675
- limit?: number | null;
676
- /**
677
- * Pointer to the next or previous page in the list of results.
678
- *
679
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
680
- * Not relevant for the first request.
681
- */
682
- cursor?: string | null;
683
- }
684
- interface QueryEventResponse {
685
- /** The retrieved Events */
686
- events?: Event[];
687
- pagingMetadata?: PagingMetadataV2;
688
- }
689
- interface PagingMetadataV2 {
690
- /** Number of items returned in the response. */
691
- count?: number | null;
692
- /** Offset that was requested. */
693
- offset?: number | null;
694
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
695
- total?: number | null;
696
- /** Flag that indicates the server failed to calculate the `total` field. */
697
- tooManyToCount?: boolean | null;
698
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
699
- cursors?: Cursors;
700
- }
701
- interface Cursors {
702
- /** Cursor string pointing to the next page in the list of results. */
703
- next?: string | null;
704
- /** Cursor pointing to the previous page in the list of results. */
705
- prev?: string | null;
706
- }
707
- interface QueryEventBalancesRequest {
708
- /** WQL expression */
709
- query: QueryV2;
710
- }
711
- interface QueryEventBalancesResponse {
712
- /** The retrieved Events with their balance */
713
- events?: EventWithBalance[];
714
- pagingMetadata?: PagingMetadataV2;
715
- }
716
- interface EventWithBalance {
717
- /** Event */
718
- event?: Event;
719
- /** Event balance */
720
- balance?: string | null;
721
- }
722
- interface Task extends TaskTriggerOneOf {
723
- /** A trigger which will fire once at a specified timestamp */
724
- oneTime?: Date | null;
725
- /**
726
- * Deprecated. Equivalent to cronTz(cron, "UTC")
727
- * @deprecated
728
- */
729
- cron?: string;
730
- /** A trigger defined by a cron expression and an optional time zone */
731
- cronTz?: CronTz;
732
- /** Task id */
733
- _id?: TaskId;
734
- /** Task payload */
735
- payload?: Record<string, any> | null;
736
- /**
737
- * A Greyhound topic to which the task will be produced when triggered
738
- * @readonly
739
- */
740
- topic?: string;
741
- /**
742
- * The time when this task is scheduled to trigger. For reoccurring tasks, this will be hold the next time this task will run and will be updated after every run
743
- * @readonly
744
- */
745
- scheduledFor?: Date | null;
746
- /** A free-form string used to classify tasks. Each task is assigned a topic based on its classifier, and tasks with the same classifier will be routed to the same topic. */
747
- classifier?: string | null;
748
- }
749
- /** @oneof */
750
- interface TaskTriggerOneOf {
751
- /** A trigger which will fire once at a specified timestamp */
752
- oneTime?: Date | null;
753
- /**
754
- * Deprecated. Equivalent to cronTz(cron, "UTC")
755
- * @deprecated
756
- */
757
- cron?: string;
758
- /** A trigger defined by a cron expression and an optional time zone */
759
- cronTz?: CronTz;
760
- }
761
- interface TaskId {
762
- /**
763
- * A unique identifier of an application or a source that define the task. In most cases this would be the appDefId or
764
- * Artifact.fullId
765
- */
766
- namespace?: string;
767
- /**
768
- * A free-form string distinguishing different families of tasks within a namespace.
769
- * For example: "send-promo-email", "ClearTrashBin", "premium expiration reminder"
770
- */
771
- taskType?: string;
772
- /**
773
- * A free-form string that together with `namespace` and `task_type` uniquely identifies a task.
774
- * When there is an entity involved, setting this to be equal to the ID of an entity related to the task is a good option.
775
- */
776
- key?: string;
777
- }
778
- /** A message containing a cron expression and a timeZone against which the expression should be evaluated */
779
- interface CronTz {
780
- /**
781
- * Cron expression is a string of five space-separated sub-expressions.
782
- *
783
- * * * * * *
784
- * | | | | |
785
- * minute of hour | | | day of week
786
- * hour of day | month of year
787
- * day of month
788
- *
789
- * Field Accepted values
790
- * --------------- -------------------------------------
791
- * minute of hour `0..59` `/` `*` `,`
792
- * hour of day `0..23` `/` `*` `,`
793
- * day of month `1..31` `/` `*` `,` `L` `W`
794
- * month of year `1..12` `/` `*` `,`
795
- * day of week `0..7` `MON..SUN` `/` `*` `,` `#` `L`
796
- *
797
- * Coma separates multiple values:
798
- * 0,20,40 * * * * => on 0th, 20th and 40th minute
799
- * Slash selects every Nth value:
800
- * * /20 * * * * => equivalent to 0,20,40
801
- * 5/20 * * * * => on 5th, 25th and 45th minute
802
- * `L` selects the last day of ...
803
- * 0 0 L * * => last day of each month
804
- * 0 0 * * FRIL => the last Friday of the month
805
- * `W` modifies day of month to be a working day
806
- * 0 0 15W * * => working day around 15th day of the month (14th if 15th is SAT, 16th if 15th is SUN)
807
- * 0 0 LW * * => last working day of each month
808
- * `#` selects Nth occurrence of the day of week in the month
809
- * 0 0 * * Mon#1 => the first Monday of the month
810
- *
811
- * Following aliases are supported: @hourly, @daily, @weekly, @monthly
812
- *
813
- * The first execution time will be evaluated based on the client invocation time (approximately the moment the
814
- * client call returns).
815
- * All executions will be evaluated in UTC.
816
- *
817
- * Example:
818
- * 00:19:59 - client schedules a task with cron = 0/20 * * * * (every 20-th minute of the hour)
819
- * 00:20:02 - task reaches Time Capsule database
820
- * 00:21:00 - task is executed by Time Capsule, the client is triggered with a ~1 minute delay
821
- * 00:40:00 - task is executed by Time Capsule according to the schedule with no delay
822
- */
823
- expression?: string;
824
- /**
825
- * IANA regional time zone ID.
826
- * For example "America/New_York", "Asia/Jerusalem", "Europe/Kyiv", "Europe/Vilnius", etc..
827
- * Equivalent to "UTC" if omitted.
828
- */
829
- timeZone?: string | null;
830
- }
831
- interface Empty {
832
- }
833
- interface EventExpired {
834
- event?: Event;
835
- }
836
- interface DomainEvent extends DomainEventBodyOneOf {
837
- createdEvent?: EntityCreatedEvent;
838
- updatedEvent?: EntityUpdatedEvent;
839
- deletedEvent?: EntityDeletedEvent;
840
- actionEvent?: ActionEvent;
841
- /**
842
- * Unique event ID.
843
- * Allows clients to ignore duplicate webhooks.
844
- */
845
- _id?: string;
846
- /**
847
- * Assumes actions are also always typed to an entity_type
848
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
849
- */
850
- entityFqdn?: string;
851
- /**
852
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
853
- * This is although the created/updated/deleted notion is duplication of the oneof types
854
- * Example: created/updated/deleted/started/completed/email_opened
855
- */
856
- slug?: string;
857
- /** ID of the entity associated with the event. */
858
- entityId?: string;
859
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
860
- eventTime?: Date | null;
861
- /**
862
- * Whether the event was triggered as a result of a privacy regulation application
863
- * (for example, GDPR).
864
- */
865
- triggeredByAnonymizeRequest?: boolean | null;
866
- /** If present, indicates the action that triggered the event. */
867
- originatedFrom?: string | null;
868
- /**
869
- * A sequence number defining the order of updates to the underlying entity.
870
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
871
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
872
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
873
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
874
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
875
- */
876
- entityEventSequence?: string | null;
877
- }
878
- /** @oneof */
879
- interface DomainEventBodyOneOf {
880
- createdEvent?: EntityCreatedEvent;
881
- updatedEvent?: EntityUpdatedEvent;
882
- deletedEvent?: EntityDeletedEvent;
883
- actionEvent?: ActionEvent;
884
- }
885
- interface EntityCreatedEvent {
886
- entity?: string;
887
- }
888
- interface RestoreInfo {
889
- deletedDate?: Date | null;
890
- }
891
- interface EntityUpdatedEvent {
892
- /**
893
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
894
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
895
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
896
- */
897
- currentEntity?: string;
898
- }
899
- interface EntityDeletedEvent {
900
- /** Entity that was deleted */
901
- deletedEntity?: string | null;
902
- }
903
- interface ActionEvent {
904
- body?: string;
905
- }
906
- interface MessageEnvelope {
907
- /** App instance ID. */
908
- instanceId?: string | null;
909
- /** Event type. */
910
- eventType?: string;
911
- /** The identification type and identity data. */
912
- identity?: IdentificationData;
913
- /** Stringify payload. */
914
- data?: string;
915
- }
916
- interface IdentificationData extends IdentificationDataIdOneOf {
917
- /** ID of a site visitor that has not logged in to the site. */
918
- anonymousVisitorId?: string;
919
- /** ID of a site visitor that has logged in to the site. */
920
- memberId?: string;
921
- /** ID of a Wix user (site owner, contributor, etc.). */
922
- wixUserId?: string;
923
- /** ID of an app. */
924
- appId?: string;
925
- /** @readonly */
926
- identityType?: WebhookIdentityType;
927
- }
928
- /** @oneof */
929
- interface IdentificationDataIdOneOf {
930
- /** ID of a site visitor that has not logged in to the site. */
931
- anonymousVisitorId?: string;
932
- /** ID of a site visitor that has logged in to the site. */
933
- memberId?: string;
934
- /** ID of a Wix user (site owner, contributor, etc.). */
935
- wixUserId?: string;
936
- /** ID of an app. */
937
- appId?: string;
938
- }
939
- declare enum WebhookIdentityType {
940
- UNKNOWN = "UNKNOWN",
941
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
942
- MEMBER = "MEMBER",
943
- WIX_USER = "WIX_USER",
944
- APP = "APP"
945
- }
946
- interface EventNonNullableFields {
947
- walletId: string;
948
- amount: string;
949
- type: EventType;
950
- status: EventStatus;
951
- }
952
- interface CreateEventResponseNonNullableFields {
953
- event?: EventNonNullableFields;
954
- }
955
- interface GetEventResponseNonNullableFields {
956
- event?: EventNonNullableFields;
957
- }
958
- interface UpdateEventResponseNonNullableFields {
959
- event?: EventNonNullableFields;
960
- }
961
- interface DisableEventResponseNonNullableFields {
962
- event?: EventNonNullableFields;
963
- }
964
- interface EventWithBalanceNonNullableFields {
965
- event?: EventNonNullableFields;
966
- }
967
- interface QueryEventBalancesResponseNonNullableFields {
968
- events: EventWithBalanceNonNullableFields[];
969
- }
970
- interface BaseEventMetadata {
971
- /** App instance ID. */
972
- instanceId?: string | null;
973
- /** Event type. */
974
- eventType?: string;
975
- /** The identification type and identity data. */
976
- identity?: IdentificationData;
977
- }
978
- interface EventMetadata extends BaseEventMetadata {
979
- /**
980
- * Unique event ID.
981
- * Allows clients to ignore duplicate webhooks.
982
- */
983
- _id?: string;
984
- /**
985
- * Assumes actions are also always typed to an entity_type
986
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
987
- */
988
- entityFqdn?: string;
989
- /**
990
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
991
- * This is although the created/updated/deleted notion is duplication of the oneof types
992
- * Example: created/updated/deleted/started/completed/email_opened
993
- */
994
- slug?: string;
995
- /** ID of the entity associated with the event. */
996
- entityId?: string;
997
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
998
- eventTime?: Date | null;
999
- /**
1000
- * Whether the event was triggered as a result of a privacy regulation application
1001
- * (for example, GDPR).
1002
- */
1003
- triggeredByAnonymizeRequest?: boolean | null;
1004
- /** If present, indicates the action that triggered the event. */
1005
- originatedFrom?: string | null;
1006
- /**
1007
- * A sequence number defining the order of updates to the underlying entity.
1008
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
1009
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1010
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1011
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
1012
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1013
- */
1014
- entityEventSequence?: string | null;
1015
- }
1016
- interface EventCreatedEnvelope {
1017
- entity: Event;
1018
- metadata: EventMetadata;
1019
- }
1020
- interface EventDisabledEnvelope {
1021
- data: EventDisabled;
1022
- metadata: EventMetadata;
1023
- }
1024
- interface EventUpdatedEnvelope {
1025
- entity: Event;
1026
- metadata: EventMetadata;
1027
- }
1028
- interface UpdateEvent {
1029
- /**
1030
- * Event ID
1031
- * @readonly
1032
- */
1033
- _id?: string | null;
1034
- /** Represents the current state of an item. Each time the item is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision */
1035
- revision?: string | null;
1036
- /**
1037
- * Represents the time this Event was created
1038
- * @readonly
1039
- */
1040
- _createdDate?: Date | null;
1041
- /**
1042
- * Represents the time this Event was last updated
1043
- * @readonly
1044
- */
1045
- _updatedDate?: Date | null;
1046
- /** Wallet ID */
1047
- walletId?: string;
1048
- /** Represents the time when the event's amount will be added to the account */
1049
- startDate?: Date | null;
1050
- /** Represents the time when the unused balance will be deducted from the account */
1051
- expiresAt?: Date | null;
1052
- /** Represents the time when the event was manually disabled */
1053
- disabledAt?: Date | null;
1054
- /** The amount to be added to the customer */
1055
- amount?: string;
1056
- /** Free text comment regarding the Event context */
1057
- note?: string | null;
1058
- /** Indicates the kind of the specific event */
1059
- type?: EventType;
1060
- /**
1061
- * The transactionId that added the event's amount;
1062
- * @readonly
1063
- */
1064
- eventAddedTransactionId?: string | null;
1065
- /**
1066
- * The transactionId that removed the remaining event's balance;
1067
- * @readonly
1068
- */
1069
- eventRemovedTransactionId?: string | null;
1070
- status?: EventStatus;
1071
- }
1072
-
1073
- declare function createEvent$1(httpClient: HttpClient): CreateEventSignature;
1074
- interface CreateEventSignature {
1075
- /**
1076
- * Creates a new Event
1077
- * @param - Event to be created
1078
- * @returns The created Event
1079
- */
1080
- (event: Event): Promise<Event & EventNonNullableFields>;
1081
- }
1082
- declare function getEvent$1(httpClient: HttpClient): GetEventSignature;
1083
- interface GetEventSignature {
1084
- /**
1085
- * Get an Event by ID
1086
- * @param - ID of the Event to retrieve
1087
- * @returns The retrieved Event
1088
- */
1089
- (eventId: string): Promise<Event & EventNonNullableFields>;
1090
- }
1091
- declare function updateEvent$1(httpClient: HttpClient): UpdateEventSignature;
1092
- interface UpdateEventSignature {
1093
- /**
1094
- * Update an Event, supports partial update
1095
- * Pass the latest `revision` for a successful update
1096
- * @param - Event ID
1097
- * @returns The updated Event
1098
- */
1099
- (_id: string | null, event: UpdateEvent): Promise<Event & EventNonNullableFields>;
1100
- }
1101
- declare function disableEvent$1(httpClient: HttpClient): DisableEventSignature;
1102
- interface DisableEventSignature {
1103
- /**
1104
- * Expire an Event immediately and deducting the remaining balance from the gift card
1105
- * @param - ID of the Event to delete
1106
- * @param - The revision of the Event
1107
- */
1108
- (eventId: string, revision: string): Promise<DisableEventResponse & DisableEventResponseNonNullableFields>;
1109
- }
1110
- declare function queryEventBalances$1(httpClient: HttpClient): QueryEventBalancesSignature;
1111
- interface QueryEventBalancesSignature {
1112
- /**
1113
- * Query Events using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
1114
- * Results will be enriched with calculated balances
1115
- * @param - WQL expression
1116
- */
1117
- (query: QueryV2): Promise<QueryEventBalancesResponse & QueryEventBalancesResponseNonNullableFields>;
1118
- }
1119
- declare const onEventCreated$1: EventDefinition<EventCreatedEnvelope, "wix.rise.v1.event_created">;
1120
- declare const onEventDisabled$1: EventDefinition<EventDisabledEnvelope, "wix.rise.v1.event_disabled">;
1121
- declare const onEventUpdated$1: EventDefinition<EventUpdatedEnvelope, "wix.rise.v1.event_updated">;
1122
-
1123
- declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1124
-
1125
- declare const createEvent: MaybeContext<BuildRESTFunction<typeof createEvent$1> & typeof createEvent$1>;
1126
- declare const getEvent: MaybeContext<BuildRESTFunction<typeof getEvent$1> & typeof getEvent$1>;
1127
- declare const updateEvent: MaybeContext<BuildRESTFunction<typeof updateEvent$1> & typeof updateEvent$1>;
1128
- declare const disableEvent: MaybeContext<BuildRESTFunction<typeof disableEvent$1> & typeof disableEvent$1>;
1129
- declare const queryEventBalances: MaybeContext<BuildRESTFunction<typeof queryEventBalances$1> & typeof queryEventBalances$1>;
1130
-
1131
- type _publicOnEventCreatedType = typeof onEventCreated$1;
1132
- /** */
1133
- declare const onEventCreated: ReturnType<typeof createEventModule<_publicOnEventCreatedType>>;
1134
-
1135
- type _publicOnEventDisabledType = typeof onEventDisabled$1;
1136
- /** */
1137
- declare const onEventDisabled: ReturnType<typeof createEventModule<_publicOnEventDisabledType>>;
1138
-
1139
- type _publicOnEventUpdatedType = typeof onEventUpdated$1;
1140
- /** */
1141
- declare const onEventUpdated: ReturnType<typeof createEventModule<_publicOnEventUpdatedType>>;
1142
-
1143
- type index_d_ActionEvent = ActionEvent;
1144
- type index_d_BaseEventMetadata = BaseEventMetadata;
1145
- type index_d_CreateEventRequest = CreateEventRequest;
1146
- type index_d_CreateEventResponse = CreateEventResponse;
1147
- type index_d_CreateEventResponseNonNullableFields = CreateEventResponseNonNullableFields;
1148
- type index_d_CronTz = CronTz;
1149
- type index_d_CursorPaging = CursorPaging;
1150
- type index_d_Cursors = Cursors;
1151
- type index_d_DeleteEventRequest = DeleteEventRequest;
1152
- type index_d_DeleteEventResponse = DeleteEventResponse;
1153
- type index_d_DisableEventRequest = DisableEventRequest;
1154
- type index_d_DisableEventResponse = DisableEventResponse;
1155
- type index_d_DisableEventResponseNonNullableFields = DisableEventResponseNonNullableFields;
1156
- type index_d_DomainEvent = DomainEvent;
1157
- type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
1158
- type index_d_Empty = Empty;
1159
- type index_d_EntityCreatedEvent = EntityCreatedEvent;
1160
- type index_d_EntityDeletedEvent = EntityDeletedEvent;
1161
- type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
1162
- type index_d_Event = Event;
1163
- type index_d_EventCreatedEnvelope = EventCreatedEnvelope;
1164
- type index_d_EventCreationDisabledAtDateSetDetails = EventCreationDisabledAtDateSetDetails;
1165
- type index_d_EventCreationExpirationDateInThePastDetails = EventCreationExpirationDateInThePastDetails;
1166
- type index_d_EventCreationStartLaterThanExpirationDetails = EventCreationStartLaterThanExpirationDetails;
1167
- type index_d_EventDisabled = EventDisabled;
1168
- type index_d_EventDisabledEnvelope = EventDisabledEnvelope;
1169
- type index_d_EventExpired = EventExpired;
1170
- type index_d_EventMetadata = EventMetadata;
1171
- type index_d_EventNonNullableFields = EventNonNullableFields;
1172
- type index_d_EventStatus = EventStatus;
1173
- declare const index_d_EventStatus: typeof EventStatus;
1174
- type index_d_EventType = EventType;
1175
- declare const index_d_EventType: typeof EventType;
1176
- type index_d_EventUpdateExpirationDateInThePastDetails = EventUpdateExpirationDateInThePastDetails;
1177
- type index_d_EventUpdateStartDateInThePastDetails = EventUpdateStartDateInThePastDetails;
1178
- type index_d_EventUpdateStartLaterThanExpirationDetails = EventUpdateStartLaterThanExpirationDetails;
1179
- type index_d_EventUpdatedEnvelope = EventUpdatedEnvelope;
1180
- type index_d_EventWithBalance = EventWithBalance;
1181
- type index_d_GetEventRequest = GetEventRequest;
1182
- type index_d_GetEventResponse = GetEventResponse;
1183
- type index_d_GetEventResponseNonNullableFields = GetEventResponseNonNullableFields;
1184
- type index_d_IdentificationData = IdentificationData;
1185
- type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
1186
- type index_d_InvalidEventDetails = InvalidEventDetails;
1187
- type index_d_MessageEnvelope = MessageEnvelope;
1188
- type index_d_Paging = Paging;
1189
- type index_d_PagingMetadataV2 = PagingMetadataV2;
1190
- type index_d_QueryEventBalancesRequest = QueryEventBalancesRequest;
1191
- type index_d_QueryEventBalancesResponse = QueryEventBalancesResponse;
1192
- type index_d_QueryEventBalancesResponseNonNullableFields = QueryEventBalancesResponseNonNullableFields;
1193
- type index_d_QueryEventRequest = QueryEventRequest;
1194
- type index_d_QueryEventResponse = QueryEventResponse;
1195
- type index_d_QueryV2 = QueryV2;
1196
- type index_d_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
1197
- type index_d_RestoreInfo = RestoreInfo;
1198
- type index_d_SortOrder = SortOrder;
1199
- declare const index_d_SortOrder: typeof SortOrder;
1200
- type index_d_Sorting = Sorting;
1201
- type index_d_Task = Task;
1202
- type index_d_TaskId = TaskId;
1203
- type index_d_TaskTriggerOneOf = TaskTriggerOneOf;
1204
- type index_d_UpdateEvent = UpdateEvent;
1205
- type index_d_UpdateEventRequest = UpdateEventRequest;
1206
- type index_d_UpdateEventResponse = UpdateEventResponse;
1207
- type index_d_UpdateEventResponseNonNullableFields = UpdateEventResponseNonNullableFields;
1208
- type index_d_WebhookIdentityType = WebhookIdentityType;
1209
- declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
1210
- type index_d__publicOnEventCreatedType = _publicOnEventCreatedType;
1211
- type index_d__publicOnEventDisabledType = _publicOnEventDisabledType;
1212
- type index_d__publicOnEventUpdatedType = _publicOnEventUpdatedType;
1213
- declare const index_d_createEvent: typeof createEvent;
1214
- declare const index_d_disableEvent: typeof disableEvent;
1215
- declare const index_d_getEvent: typeof getEvent;
1216
- declare const index_d_onEventCreated: typeof onEventCreated;
1217
- declare const index_d_onEventDisabled: typeof onEventDisabled;
1218
- declare const index_d_onEventUpdated: typeof onEventUpdated;
1219
- declare const index_d_queryEventBalances: typeof queryEventBalances;
1220
- declare const index_d_updateEvent: typeof updateEvent;
1221
- declare namespace index_d {
1222
- export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CreateEventRequest as CreateEventRequest, type index_d_CreateEventResponse as CreateEventResponse, type index_d_CreateEventResponseNonNullableFields as CreateEventResponseNonNullableFields, type index_d_CronTz as CronTz, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteEventRequest as DeleteEventRequest, type index_d_DeleteEventResponse as DeleteEventResponse, type index_d_DisableEventRequest as DisableEventRequest, type index_d_DisableEventResponse as DisableEventResponse, type index_d_DisableEventResponseNonNullableFields as DisableEventResponseNonNullableFields, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, 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_Event as Event, type index_d_EventCreatedEnvelope as EventCreatedEnvelope, type index_d_EventCreationDisabledAtDateSetDetails as EventCreationDisabledAtDateSetDetails, type index_d_EventCreationExpirationDateInThePastDetails as EventCreationExpirationDateInThePastDetails, type index_d_EventCreationStartLaterThanExpirationDetails as EventCreationStartLaterThanExpirationDetails, type index_d_EventDisabled as EventDisabled, type index_d_EventDisabledEnvelope as EventDisabledEnvelope, type index_d_EventExpired as EventExpired, type index_d_EventMetadata as EventMetadata, type index_d_EventNonNullableFields as EventNonNullableFields, index_d_EventStatus as EventStatus, index_d_EventType as EventType, type index_d_EventUpdateExpirationDateInThePastDetails as EventUpdateExpirationDateInThePastDetails, type index_d_EventUpdateStartDateInThePastDetails as EventUpdateStartDateInThePastDetails, type index_d_EventUpdateStartLaterThanExpirationDetails as EventUpdateStartLaterThanExpirationDetails, type index_d_EventUpdatedEnvelope as EventUpdatedEnvelope, type index_d_EventWithBalance as EventWithBalance, type index_d_GetEventRequest as GetEventRequest, type index_d_GetEventResponse as GetEventResponse, type index_d_GetEventResponseNonNullableFields as GetEventResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_InvalidEventDetails as InvalidEventDetails, type index_d_MessageEnvelope as MessageEnvelope, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_QueryEventBalancesRequest as QueryEventBalancesRequest, type index_d_QueryEventBalancesResponse as QueryEventBalancesResponse, type index_d_QueryEventBalancesResponseNonNullableFields as QueryEventBalancesResponseNonNullableFields, type index_d_QueryEventRequest as QueryEventRequest, type index_d_QueryEventResponse as QueryEventResponse, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_RestoreInfo as RestoreInfo, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_Task as Task, type index_d_TaskId as TaskId, type index_d_TaskTriggerOneOf as TaskTriggerOneOf, type index_d_UpdateEvent as UpdateEvent, type index_d_UpdateEventRequest as UpdateEventRequest, type index_d_UpdateEventResponse as UpdateEventResponse, type index_d_UpdateEventResponseNonNullableFields as UpdateEventResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnEventCreatedType as _publicOnEventCreatedType, type index_d__publicOnEventDisabledType as _publicOnEventDisabledType, type index_d__publicOnEventUpdatedType as _publicOnEventUpdatedType, index_d_createEvent as createEvent, index_d_disableEvent as disableEvent, index_d_getEvent as getEvent, index_d_onEventCreated as onEventCreated, index_d_onEventDisabled as onEventDisabled, index_d_onEventUpdated as onEventUpdated, onEventCreated$1 as publicOnEventCreated, onEventDisabled$1 as publicOnEventDisabled, onEventUpdated$1 as publicOnEventUpdated, index_d_queryEventBalances as queryEventBalances, index_d_updateEvent as updateEvent };
1223
- }
1224
-
1225
- export { index_d as event };