@wix/data 1.0.155 → 1.0.157

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,9 +1,9 @@
1
- type HostModule$3<T, H extends Host$3> = {
1
+ type HostModule<T, H extends Host> = {
2
2
  __type: 'host';
3
3
  create(host: H): T;
4
4
  };
5
- type HostModuleAPI$3<T extends HostModule$3<any, any>> = T extends HostModule$3<infer U, any> ? U : never;
6
- type Host$3<Environment = unknown> = {
5
+ type HostModuleAPI<T extends HostModule<any, any>> = T extends HostModule<infer U, any> ? U : never;
6
+ type Host<Environment = unknown> = {
7
7
  channel: {
8
8
  observeState(callback: (props: unknown, environment: Environment) => unknown): {
9
9
  disconnect: () => void;
@@ -36,92 +36,92 @@ type Host$3<Environment = unknown> = {
36
36
  };
37
37
  };
38
38
 
39
- type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
40
- interface HttpClient$3 {
41
- request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
39
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
40
+ interface HttpClient {
41
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
42
42
  fetchWithAuth: typeof fetch;
43
43
  wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
44
44
  getActiveToken?: () => string | undefined;
45
45
  }
46
- type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
47
- type HttpResponse$3<T = any> = {
46
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
47
+ type HttpResponse<T = any> = {
48
48
  data: T;
49
49
  status: number;
50
50
  statusText: string;
51
51
  headers: any;
52
52
  request?: any;
53
53
  };
54
- type RequestOptions$3<_TResponse = any, Data = any> = {
54
+ type RequestOptions<_TResponse = any, Data = any> = {
55
55
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
56
56
  url: string;
57
57
  data?: Data;
58
58
  params?: URLSearchParams;
59
- } & APIMetadata$3;
60
- type APIMetadata$3 = {
59
+ } & APIMetadata;
60
+ type APIMetadata = {
61
61
  methodFqn?: string;
62
62
  entityFqdn?: string;
63
63
  packageName?: string;
64
64
  };
65
- type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
66
- type EventDefinition$6<Payload = unknown, Type extends string = string> = {
65
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
66
+ type EventDefinition$3<Payload = unknown, Type extends string = string> = {
67
67
  __type: 'event-definition';
68
68
  type: Type;
69
69
  isDomainEvent?: boolean;
70
70
  transformations?: (envelope: unknown) => Payload;
71
71
  __payload: Payload;
72
72
  };
73
- declare function EventDefinition$6<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$6<Payload, Type>;
74
- type EventHandler$6<T extends EventDefinition$6> = (payload: T['__payload']) => void | Promise<void>;
75
- type BuildEventDefinition$6<T extends EventDefinition$6<any, string>> = (handler: EventHandler$6<T>) => void;
73
+ declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
74
+ type EventHandler$3<T extends EventDefinition$3> = (payload: T['__payload']) => void | Promise<void>;
75
+ type BuildEventDefinition$3<T extends EventDefinition$3<any, string>> = (handler: EventHandler$3<T>) => void;
76
76
 
77
- type ServicePluginMethodInput$3 = {
77
+ type ServicePluginMethodInput = {
78
78
  request: any;
79
79
  metadata: any;
80
80
  };
81
- type ServicePluginContract$3 = Record<string, (payload: ServicePluginMethodInput$3) => unknown | Promise<unknown>>;
82
- type ServicePluginMethodMetadata$3 = {
81
+ type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
82
+ type ServicePluginMethodMetadata = {
83
83
  name: string;
84
84
  primaryHttpMappingPath: string;
85
85
  transformations: {
86
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
86
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
87
87
  toREST: (...args: unknown[]) => unknown;
88
88
  };
89
89
  };
90
- type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
90
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
91
91
  __type: 'service-plugin-definition';
92
92
  componentType: string;
93
- methods: ServicePluginMethodMetadata$3[];
93
+ methods: ServicePluginMethodMetadata[];
94
94
  __contract: Contract;
95
95
  };
96
- declare function ServicePluginDefinition$3<Contract extends ServicePluginContract$3>(componentType: string, methods: ServicePluginMethodMetadata$3[]): ServicePluginDefinition$3<Contract>;
97
- type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$3<any>> = (implementation: T['__contract']) => void;
98
- declare const SERVICE_PLUGIN_ERROR_TYPE$3 = "wix_spi_error";
96
+ declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
97
+ type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
98
+ declare const SERVICE_PLUGIN_ERROR_TYPE = "wix_spi_error";
99
99
 
100
- type RequestContext$3 = {
100
+ type RequestContext = {
101
101
  isSSR: boolean;
102
102
  host: string;
103
103
  protocol?: string;
104
104
  };
105
- type ResponseTransformer$3 = (data: any, headers?: any) => any;
105
+ type ResponseTransformer = (data: any, headers?: any) => any;
106
106
  /**
107
107
  * Ambassador request options types are copied mostly from AxiosRequestConfig.
108
108
  * They are copied and not imported to reduce the amount of dependencies (to reduce install time).
109
109
  * https://github.com/axios/axios/blob/3f53eb6960f05a1f88409c4b731a40de595cb825/index.d.ts#L307-L315
110
110
  */
111
- type Method$3 = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
112
- type AmbassadorRequestOptions$3<T = any> = {
111
+ type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
112
+ type AmbassadorRequestOptions<T = any> = {
113
113
  _?: T;
114
114
  url?: string;
115
- method?: Method$3;
115
+ method?: Method;
116
116
  params?: any;
117
117
  data?: any;
118
- transformResponse?: ResponseTransformer$3 | ResponseTransformer$3[];
118
+ transformResponse?: ResponseTransformer | ResponseTransformer[];
119
119
  };
120
- type AmbassadorFactory$3<Request, Response> = (payload: Request) => ((context: RequestContext$3) => AmbassadorRequestOptions$3<Response>) & {
120
+ type AmbassadorFactory<Request, Response> = (payload: Request) => ((context: RequestContext) => AmbassadorRequestOptions<Response>) & {
121
121
  __isAmbassador: boolean;
122
122
  };
123
- type AmbassadorFunctionDescriptor$3<Request = any, Response = any> = AmbassadorFactory$3<Request, Response>;
124
- type BuildAmbassadorFunction$3<T extends AmbassadorFunctionDescriptor$3> = T extends AmbassadorFunctionDescriptor$3<infer Request, infer Response> ? (req: Request) => Promise<Response> : never;
123
+ type AmbassadorFunctionDescriptor<Request = any, Response = any> = AmbassadorFactory<Request, Response>;
124
+ type BuildAmbassadorFunction<T extends AmbassadorFunctionDescriptor> = T extends AmbassadorFunctionDescriptor<infer Request, infer Response> ? (req: Request) => Promise<Response> : never;
125
125
 
126
126
  declare global {
127
127
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -130,7 +130,7 @@ declare global {
130
130
  }
131
131
  }
132
132
 
133
- declare const emptyObjectSymbol$3: unique symbol;
133
+ declare const emptyObjectSymbol: unique symbol;
134
134
 
135
135
  /**
136
136
  Represents a strictly empty plain object, the `{}` value.
@@ -158,7 +158,7 @@ Unfortunately, `Record<string, never>`, `Record<keyof any, never>` and `Record<n
158
158
 
159
159
  @category Object
160
160
  */
161
- type EmptyObject$3 = {[emptyObjectSymbol$3]?: never};
161
+ type EmptyObject = {[emptyObjectSymbol]?: never};
162
162
 
163
163
  /**
164
164
  Returns a boolean for whether the two given types are equal.
@@ -186,7 +186,7 @@ type Includes<Value extends readonly any[], Item> =
186
186
  @category Type Guard
187
187
  @category Utilities
188
188
  */
189
- type IsEqual$3<A, B> =
189
+ type IsEqual<A, B> =
190
190
  (<G>() => G extends A ? 1 : 2) extends
191
191
  (<G>() => G extends B ? 1 : 2)
192
192
  ? true
@@ -219,9 +219,9 @@ type Filtered = Filter<'bar', 'foo'>;
219
219
 
220
220
  @see {Except}
221
221
  */
222
- type Filter$3<KeyType, ExcludeType> = IsEqual$3<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
222
+ type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
223
223
 
224
- type ExceptOptions$3 = {
224
+ type ExceptOptions = {
225
225
  /**
226
226
  Disallow assigning non-specified properties.
227
227
 
@@ -265,8 +265,8 @@ const fooWithoutB: FooWithoutB = {a: 1, b: '2'};
265
265
 
266
266
  @category Object
267
267
  */
268
- type Except$3<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions$3 = {requireExactProps: false}> = {
269
- [KeyType in keyof ObjectType as Filter$3<KeyType, KeysType>]: ObjectType[KeyType];
268
+ type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {requireExactProps: false}> = {
269
+ [KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
270
270
  } & (Options['requireExactProps'] extends true
271
271
  ? Partial<Record<KeysType, never>>
272
272
  : {});
@@ -303,7 +303,7 @@ type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
303
303
 
304
304
  @category Object
305
305
  */
306
- type ConditionalKeys$3<Base, Condition> = NonNullable<
306
+ type ConditionalKeys<Base, Condition> = NonNullable<
307
307
  // Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
308
308
  {
309
309
  // Map through all the keys of the given base type.
@@ -357,9 +357,9 @@ type NonStringKeysOnly = ConditionalExcept<Example, string>;
357
357
 
358
358
  @category Object
359
359
  */
360
- type ConditionalExcept$3<Base, Condition> = Except$3<
360
+ type ConditionalExcept<Base, Condition> = Except<
361
361
  Base,
362
- ConditionalKeys$3<Base, Condition>
362
+ ConditionalKeys<Base, Condition>
363
363
  >;
364
364
 
365
365
  /**
@@ -367,8 +367,8 @@ ConditionalKeys$3<Base, Condition>
367
367
  * can either be a REST module or a host module.
368
368
  * This type is recursive, so it can describe nested modules.
369
369
  */
370
- type Descriptors$3 = RESTFunctionDescriptor$3 | AmbassadorFunctionDescriptor$3 | HostModule$3<any, any> | EventDefinition$6<any> | ServicePluginDefinition$3<any> | {
371
- [key: string]: Descriptors$3 | PublicMetadata$3 | any;
370
+ type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition$3<any> | ServicePluginDefinition<any> | {
371
+ [key: string]: Descriptors | PublicMetadata | any;
372
372
  };
373
373
  /**
374
374
  * This type takes in a descriptors object of a certain Host (including an `unknown` host)
@@ -376,12 +376,12 @@ type Descriptors$3 = RESTFunctionDescriptor$3 | AmbassadorFunctionDescriptor$3 |
376
376
  * Any non-descriptor properties are removed from the returned object, including descriptors that
377
377
  * do not match the given host (as they will not work with the given host).
378
378
  */
379
- type BuildDescriptors$3<T extends Descriptors$3, H extends Host$3<any> | undefined, Depth extends number = 5> = {
379
+ type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, Depth extends number = 5> = {
380
380
  done: T;
381
381
  recurse: T extends {
382
- __type: typeof SERVICE_PLUGIN_ERROR_TYPE$3;
383
- } ? never : T extends AmbassadorFunctionDescriptor$3 ? BuildAmbassadorFunction$3<T> : T extends RESTFunctionDescriptor$3 ? BuildRESTFunction$3<T> : T extends EventDefinition$6<any> ? BuildEventDefinition$6<T> : T extends ServicePluginDefinition$3<any> ? BuildServicePluginDefinition$3<T> : T extends HostModule$3<any, any> ? HostModuleAPI$3<T> : ConditionalExcept$3<{
384
- [Key in keyof T]: T[Key] extends Descriptors$3 ? BuildDescriptors$3<T[Key], H, [
382
+ __type: typeof SERVICE_PLUGIN_ERROR_TYPE;
383
+ } ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition$3<any> ? BuildEventDefinition$3<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
384
+ [Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
385
385
  -1,
386
386
  0,
387
387
  1,
@@ -390,9 +390,9 @@ type BuildDescriptors$3<T extends Descriptors$3, H extends Host$3<any> | undefin
390
390
  4,
391
391
  5
392
392
  ][Depth]> : never;
393
- }, EmptyObject$3>;
393
+ }, EmptyObject>;
394
394
  }[Depth extends -1 ? 'done' : 'recurse'];
395
- type PublicMetadata$3 = {
395
+ type PublicMetadata = {
396
396
  PACKAGE_NAME?: string;
397
397
  };
398
398
 
@@ -404,9 +404,9 @@ declare global {
404
404
  * A type used to create concerete types from SDK descriptors in
405
405
  * case a contextual client is available.
406
406
  */
407
- type MaybeContext$3<T extends Descriptors$3> = globalThis.ContextualClient extends {
408
- host: Host$3;
409
- } ? BuildDescriptors$3<T, globalThis.ContextualClient['host']> : T;
407
+ type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
408
+ host: Host;
409
+ } ? BuildDescriptors<T, globalThis.ContextualClient['host']> : T;
410
410
 
411
411
  /** An external database connection defines a connection between an external database and a Wix site or project. */
412
412
  interface ExternalDatabaseConnection {
@@ -825,7 +825,7 @@ interface UpdateExternalDatabaseConnection {
825
825
  capabilities?: Capabilities;
826
826
  }
827
827
 
828
- declare function getExternalDatabaseConnection$1(httpClient: HttpClient$3): GetExternalDatabaseConnectionSignature;
828
+ declare function getExternalDatabaseConnection$1(httpClient: HttpClient): GetExternalDatabaseConnectionSignature;
829
829
  interface GetExternalDatabaseConnectionSignature {
830
830
  /**
831
831
  * Retrieves an external database connection by name.
@@ -834,14 +834,14 @@ interface GetExternalDatabaseConnectionSignature {
834
834
  */
835
835
  (name: string): Promise<ExternalDatabaseConnection & ExternalDatabaseConnectionNonNullableFields>;
836
836
  }
837
- declare function listExternalDatabaseConnections$1(httpClient: HttpClient$3): ListExternalDatabaseConnectionsSignature;
837
+ declare function listExternalDatabaseConnections$1(httpClient: HttpClient): ListExternalDatabaseConnectionsSignature;
838
838
  interface ListExternalDatabaseConnectionsSignature {
839
839
  /**
840
840
  * Retrieves a list of all external database collections associated with the site or project.
841
841
  */
842
842
  (options?: ListExternalDatabaseConnectionsOptions | undefined): Promise<ListExternalDatabaseConnectionsResponse & ListExternalDatabaseConnectionsResponseNonNullableFields>;
843
843
  }
844
- declare function createExternalDatabaseConnection$1(httpClient: HttpClient$3): CreateExternalDatabaseConnectionSignature;
844
+ declare function createExternalDatabaseConnection$1(httpClient: HttpClient): CreateExternalDatabaseConnectionSignature;
845
845
  interface CreateExternalDatabaseConnectionSignature {
846
846
  /**
847
847
  * Creates a new external database connection.
@@ -854,7 +854,7 @@ interface CreateExternalDatabaseConnectionSignature {
854
854
  */
855
855
  (externalDatabaseConnection: ExternalDatabaseConnection, options: CreateExternalDatabaseConnectionOptions): Promise<ExternalDatabaseConnection & ExternalDatabaseConnectionNonNullableFields>;
856
856
  }
857
- declare function updateExternalDatabaseConnection$1(httpClient: HttpClient$3): UpdateExternalDatabaseConnectionSignature;
857
+ declare function updateExternalDatabaseConnection$1(httpClient: HttpClient): UpdateExternalDatabaseConnectionSignature;
858
858
  interface UpdateExternalDatabaseConnectionSignature {
859
859
  /**
860
860
  * Updates an external database connection.
@@ -873,7 +873,7 @@ interface UpdateExternalDatabaseConnectionSignature {
873
873
  */
874
874
  (name: string, externalDatabaseConnection: UpdateExternalDatabaseConnection): Promise<ExternalDatabaseConnection & ExternalDatabaseConnectionNonNullableFields>;
875
875
  }
876
- declare function deleteExternalDatabaseConnection$1(httpClient: HttpClient$3): DeleteExternalDatabaseConnectionSignature;
876
+ declare function deleteExternalDatabaseConnection$1(httpClient: HttpClient): DeleteExternalDatabaseConnectionSignature;
877
877
  interface DeleteExternalDatabaseConnectionSignature {
878
878
  /**
879
879
  * Deletes an external database connection.
@@ -883,20 +883,20 @@ interface DeleteExternalDatabaseConnectionSignature {
883
883
  */
884
884
  (name: string): Promise<void>;
885
885
  }
886
- declare const onExternalDatabaseConnectionCreated$1: EventDefinition$6<ExternalDatabaseConnectionCreatedEnvelope, "wix.data.v1.external_database_connection_created">;
887
- declare const onExternalDatabaseConnectionUpdated$1: EventDefinition$6<ExternalDatabaseConnectionUpdatedEnvelope, "wix.data.v1.external_database_connection_updated">;
888
- declare const onExternalDatabaseConnectionDeleted$1: EventDefinition$6<ExternalDatabaseConnectionDeletedEnvelope, "wix.data.v1.external_database_connection_deleted">;
886
+ declare const onExternalDatabaseConnectionCreated$1: EventDefinition$3<ExternalDatabaseConnectionCreatedEnvelope, "wix.data.v1.external_database_connection_created">;
887
+ declare const onExternalDatabaseConnectionUpdated$1: EventDefinition$3<ExternalDatabaseConnectionUpdatedEnvelope, "wix.data.v1.external_database_connection_updated">;
888
+ declare const onExternalDatabaseConnectionDeleted$1: EventDefinition$3<ExternalDatabaseConnectionDeletedEnvelope, "wix.data.v1.external_database_connection_deleted">;
889
889
 
890
- type EventDefinition$5<Payload = unknown, Type extends string = string> = {
890
+ type EventDefinition$2<Payload = unknown, Type extends string = string> = {
891
891
  __type: 'event-definition';
892
892
  type: Type;
893
893
  isDomainEvent?: boolean;
894
894
  transformations?: (envelope: unknown) => Payload;
895
895
  __payload: Payload;
896
896
  };
897
- declare function EventDefinition$5<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$5<Payload, Type>;
898
- type EventHandler$5<T extends EventDefinition$5> = (payload: T['__payload']) => void | Promise<void>;
899
- type BuildEventDefinition$5<T extends EventDefinition$5<any, string>> = (handler: EventHandler$5<T>) => void;
897
+ declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
898
+ type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
899
+ type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
900
900
 
901
901
  declare global {
902
902
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -905,13 +905,13 @@ declare global {
905
905
  }
906
906
  }
907
907
 
908
- declare function createEventModule$2<T extends EventDefinition$5<any, string>>(eventDefinition: T): BuildEventDefinition$5<T> & T;
908
+ declare function createEventModule$2<T extends EventDefinition$2<any, string>>(eventDefinition: T): BuildEventDefinition$2<T> & T;
909
909
 
910
- declare const getExternalDatabaseConnection: MaybeContext$3<BuildRESTFunction$3<typeof getExternalDatabaseConnection$1> & typeof getExternalDatabaseConnection$1>;
911
- declare const listExternalDatabaseConnections: MaybeContext$3<BuildRESTFunction$3<typeof listExternalDatabaseConnections$1> & typeof listExternalDatabaseConnections$1>;
912
- declare const createExternalDatabaseConnection: MaybeContext$3<BuildRESTFunction$3<typeof createExternalDatabaseConnection$1> & typeof createExternalDatabaseConnection$1>;
913
- declare const updateExternalDatabaseConnection: MaybeContext$3<BuildRESTFunction$3<typeof updateExternalDatabaseConnection$1> & typeof updateExternalDatabaseConnection$1>;
914
- declare const deleteExternalDatabaseConnection: MaybeContext$3<BuildRESTFunction$3<typeof deleteExternalDatabaseConnection$1> & typeof deleteExternalDatabaseConnection$1>;
910
+ declare const getExternalDatabaseConnection: MaybeContext<BuildRESTFunction<typeof getExternalDatabaseConnection$1> & typeof getExternalDatabaseConnection$1>;
911
+ declare const listExternalDatabaseConnections: MaybeContext<BuildRESTFunction<typeof listExternalDatabaseConnections$1> & typeof listExternalDatabaseConnections$1>;
912
+ declare const createExternalDatabaseConnection: MaybeContext<BuildRESTFunction<typeof createExternalDatabaseConnection$1> & typeof createExternalDatabaseConnection$1>;
913
+ declare const updateExternalDatabaseConnection: MaybeContext<BuildRESTFunction<typeof updateExternalDatabaseConnection$1> & typeof updateExternalDatabaseConnection$1>;
914
+ declare const deleteExternalDatabaseConnection: MaybeContext<BuildRESTFunction<typeof deleteExternalDatabaseConnection$1> & typeof deleteExternalDatabaseConnection$1>;
915
915
 
916
916
  type _publicOnExternalDatabaseConnectionCreatedType = typeof onExternalDatabaseConnectionCreated$1;
917
917
  /**
@@ -980,524 +980,110 @@ declare namespace index_d$3 {
980
980
  export { type ActionEvent$2 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$3_Capabilities as Capabilities, index_d$3_CauseOfFailure as CauseOfFailure, index_d$3_CollectionsFound as CollectionsFound, type index_d$3_ConnectionStatus as ConnectionStatus, index_d$3_ConnectionType as ConnectionType, type index_d$3_CreateExternalDatabaseConnectionOptions as CreateExternalDatabaseConnectionOptions, type index_d$3_CreateExternalDatabaseConnectionRequest as CreateExternalDatabaseConnectionRequest, type index_d$3_CreateExternalDatabaseConnectionResponse as CreateExternalDatabaseConnectionResponse, type index_d$3_CreateExternalDatabaseConnectionResponseNonNullableFields as CreateExternalDatabaseConnectionResponseNonNullableFields, type index_d$3_DeleteExternalDatabaseConnectionRequest as DeleteExternalDatabaseConnectionRequest, type index_d$3_DeleteExternalDatabaseConnectionResponse as DeleteExternalDatabaseConnectionResponse, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type index_d$3_ExternalDatabaseConnection as ExternalDatabaseConnection, type index_d$3_ExternalDatabaseConnectionCreatedEnvelope as ExternalDatabaseConnectionCreatedEnvelope, type index_d$3_ExternalDatabaseConnectionDeletedEnvelope as ExternalDatabaseConnectionDeletedEnvelope, type index_d$3_ExternalDatabaseConnectionNonNullableFields as ExternalDatabaseConnectionNonNullableFields, type index_d$3_ExternalDatabaseConnectionUpdatedEnvelope as ExternalDatabaseConnectionUpdatedEnvelope, index_d$3_FieldType as FieldType, type index_d$3_GetExternalDatabaseConnectionRequest as GetExternalDatabaseConnectionRequest, type index_d$3_GetExternalDatabaseConnectionResponse as GetExternalDatabaseConnectionResponse, type index_d$3_GetExternalDatabaseConnectionResponseNonNullableFields as GetExternalDatabaseConnectionResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$3_ListExternalDatabaseConnectionsOptions as ListExternalDatabaseConnectionsOptions, type index_d$3_ListExternalDatabaseConnectionsRequest as ListExternalDatabaseConnectionsRequest, type index_d$3_ListExternalDatabaseConnectionsResponse as ListExternalDatabaseConnectionsResponse, type index_d$3_ListExternalDatabaseConnectionsResponseNonNullableFields as ListExternalDatabaseConnectionsResponseNonNullableFields, type MessageEnvelope$2 as MessageEnvelope, type Paging$3 as Paging, type PagingMetadata$1 as PagingMetadata, index_d$3_ProtocolVersion as ProtocolVersion, type RestoreInfo$2 as RestoreInfo, type index_d$3_UpdateExternalDatabaseConnection as UpdateExternalDatabaseConnection, type index_d$3_UpdateExternalDatabaseConnectionRequest as UpdateExternalDatabaseConnectionRequest, type index_d$3_UpdateExternalDatabaseConnectionResponse as UpdateExternalDatabaseConnectionResponse, type index_d$3_UpdateExternalDatabaseConnectionResponseNonNullableFields as UpdateExternalDatabaseConnectionResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, type index_d$3__publicOnExternalDatabaseConnectionCreatedType as _publicOnExternalDatabaseConnectionCreatedType, type index_d$3__publicOnExternalDatabaseConnectionDeletedType as _publicOnExternalDatabaseConnectionDeletedType, type index_d$3__publicOnExternalDatabaseConnectionUpdatedType as _publicOnExternalDatabaseConnectionUpdatedType, index_d$3_createExternalDatabaseConnection as createExternalDatabaseConnection, index_d$3_deleteExternalDatabaseConnection as deleteExternalDatabaseConnection, index_d$3_getExternalDatabaseConnection as getExternalDatabaseConnection, index_d$3_listExternalDatabaseConnections as listExternalDatabaseConnections, index_d$3_onExternalDatabaseConnectionCreated as onExternalDatabaseConnectionCreated, index_d$3_onExternalDatabaseConnectionDeleted as onExternalDatabaseConnectionDeleted, index_d$3_onExternalDatabaseConnectionUpdated as onExternalDatabaseConnectionUpdated, onExternalDatabaseConnectionCreated$1 as publicOnExternalDatabaseConnectionCreated, onExternalDatabaseConnectionDeleted$1 as publicOnExternalDatabaseConnectionDeleted, onExternalDatabaseConnectionUpdated$1 as publicOnExternalDatabaseConnectionUpdated, index_d$3_updateExternalDatabaseConnection as updateExternalDatabaseConnection };
981
981
  }
982
982
 
983
- type HostModule$2<T, H extends Host$2> = {
984
- __type: 'host';
985
- create(host: H): T;
986
- };
987
- type HostModuleAPI$2<T extends HostModule$2<any, any>> = T extends HostModule$2<infer U, any> ? U : never;
988
- type Host$2<Environment = unknown> = {
989
- channel: {
990
- observeState(callback: (props: unknown, environment: Environment) => unknown): {
991
- disconnect: () => void;
992
- } | Promise<{
993
- disconnect: () => void;
994
- }>;
995
- };
996
- environment?: Environment;
983
+ /** A data collection determines the structure of data to be stored in a database. */
984
+ interface DataCollection {
985
+ /** Collection ID. For example, `my-first-collection`. May include a namespace. */
986
+ _id?: string;
997
987
  /**
998
- * Optional bast url to use for API requests, for example `www.wixapis.com`
988
+ * Collection type. Indicates how the collection was created and is stored.
989
+ *
990
+ * * `NATIVE`: User-created collection.
991
+ * * `WIX_APP`: [Collection](https://support.wix.com/en/article/velo-working-with-wix-app-collections-and-code#what-are-wix-app-collections) created by a Wix app, including [starter collections](https://support.wix.com/en/article/velo-working-with-wix-app-collections-and-code#what-are-wix-app-starter-collections) created when a Wix app is installed.
992
+ * * `BLOCKS_APP`: Collection created by a Wix Blocks app.
993
+ * * `EXTERNAL`: Collection located in externally connected storage.
994
+ * @readonly
999
995
  */
1000
- apiBaseUrl?: string;
996
+ collectionType?: CollectionType;
1001
997
  /**
1002
- * Possible data to be provided by every host, for cross cutting concerns
1003
- * like internationalization, billing, etc.
998
+ * ID of the app that defined this collection. For user-defined collections, this value is null.
999
+ * @readonly
1004
1000
  */
1005
- essentials?: {
1006
- /**
1007
- * The language of the currently viewed session
1008
- */
1009
- language?: string;
1010
- /**
1011
- * The locale of the currently viewed session
1012
- */
1013
- locale?: string;
1014
- /**
1015
- * Any headers that should be passed through to the API requests
1016
- */
1017
- passThroughHeaders?: Record<string, string>;
1018
- };
1019
- };
1020
-
1021
- type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
1022
- interface HttpClient$2 {
1023
- request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
1024
- fetchWithAuth: typeof fetch;
1025
- wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
1026
- getActiveToken?: () => string | undefined;
1001
+ ownerAppId?: string | null;
1002
+ /**
1003
+ * Maximum number of items returned in a single query, based on the underlying storage.
1004
+ * Native collections have a maximum page size of 1000 for offset-based queries or 100 for cursor-based queries.
1005
+ * External collections' maximum page size defaults to 50, but an external provider can set any maximum value up to 1000.
1006
+ * @readonly
1007
+ */
1008
+ maxPageSize?: number | null;
1009
+ /** Collection's display name as shown in the CMS. For example, `My First Collection`. */
1010
+ displayName?: string | null;
1011
+ /**
1012
+ * Indicates how the collection's items are sorted by default when a query doesn't specify an order.
1013
+ * @readonly
1014
+ */
1015
+ defaultDisplayOrder?: Sort;
1016
+ /**
1017
+ * UI-friendly namespace of the Wix app with which the data collection is associated, such as Stores or Bookings.
1018
+ * Empty for all data collections not owned by internal Wix apps.
1019
+ * @readonly
1020
+ */
1021
+ displayNamespace?: string | null;
1022
+ /** The field whose value the CMS displays to represent the collection item when referenced in a different collection. */
1023
+ displayField?: string | null;
1024
+ /**
1025
+ * Capabilities the collection supports.
1026
+ * @readonly
1027
+ */
1028
+ capabilities?: CollectionCapabilities;
1029
+ /** Collection's field structure. */
1030
+ fields?: Field$1[];
1031
+ /** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */
1032
+ permissions?: Permissions;
1033
+ /**
1034
+ * Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must pass the latest revision number.
1035
+ * @readonly
1036
+ */
1037
+ revision?: string | null;
1038
+ /** All plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality. */
1039
+ plugins?: Plugin[];
1040
+ /**
1041
+ * All paging modes the collection supports. In native collections, offset-based paging is supported by default.
1042
+ * @readonly
1043
+ */
1044
+ pagingModes?: PagingMode[];
1045
+ /**
1046
+ * Date the collection was created.
1047
+ * @readonly
1048
+ */
1049
+ _createdDate?: Date;
1050
+ /**
1051
+ * Date the collection was last updated.
1052
+ * @readonly
1053
+ */
1054
+ _updatedDate?: Date;
1027
1055
  }
1028
- type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
1029
- type HttpResponse$2<T = any> = {
1030
- data: T;
1031
- status: number;
1032
- statusText: string;
1033
- headers: any;
1034
- request?: any;
1035
- };
1036
- type RequestOptions$2<_TResponse = any, Data = any> = {
1037
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1038
- url: string;
1039
- data?: Data;
1040
- params?: URLSearchParams;
1041
- } & APIMetadata$2;
1042
- type APIMetadata$2 = {
1043
- methodFqn?: string;
1044
- entityFqdn?: string;
1045
- packageName?: string;
1046
- };
1047
- type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
1048
- type EventDefinition$4<Payload = unknown, Type extends string = string> = {
1049
- __type: 'event-definition';
1050
- type: Type;
1051
- isDomainEvent?: boolean;
1052
- transformations?: (envelope: unknown) => Payload;
1053
- __payload: Payload;
1054
- };
1055
- declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
1056
- type EventHandler$4<T extends EventDefinition$4> = (payload: T['__payload']) => void | Promise<void>;
1057
- type BuildEventDefinition$4<T extends EventDefinition$4<any, string>> = (handler: EventHandler$4<T>) => void;
1058
-
1059
- type ServicePluginMethodInput$2 = {
1060
- request: any;
1061
- metadata: any;
1062
- };
1063
- type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
1064
- type ServicePluginMethodMetadata$2 = {
1065
- name: string;
1066
- primaryHttpMappingPath: string;
1067
- transformations: {
1068
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
1069
- toREST: (...args: unknown[]) => unknown;
1070
- };
1071
- };
1072
- type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
1073
- __type: 'service-plugin-definition';
1074
- componentType: string;
1075
- methods: ServicePluginMethodMetadata$2[];
1076
- __contract: Contract;
1077
- };
1078
- declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
1079
- type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
1080
- declare const SERVICE_PLUGIN_ERROR_TYPE$2 = "wix_spi_error";
1081
-
1082
- type RequestContext$2 = {
1083
- isSSR: boolean;
1084
- host: string;
1085
- protocol?: string;
1086
- };
1087
- type ResponseTransformer$2 = (data: any, headers?: any) => any;
1088
- /**
1089
- * Ambassador request options types are copied mostly from AxiosRequestConfig.
1090
- * They are copied and not imported to reduce the amount of dependencies (to reduce install time).
1091
- * https://github.com/axios/axios/blob/3f53eb6960f05a1f88409c4b731a40de595cb825/index.d.ts#L307-L315
1092
- */
1093
- type Method$2 = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
1094
- type AmbassadorRequestOptions$2<T = any> = {
1095
- _?: T;
1096
- url?: string;
1097
- method?: Method$2;
1098
- params?: any;
1099
- data?: any;
1100
- transformResponse?: ResponseTransformer$2 | ResponseTransformer$2[];
1101
- };
1102
- type AmbassadorFactory$2<Request, Response> = (payload: Request) => ((context: RequestContext$2) => AmbassadorRequestOptions$2<Response>) & {
1103
- __isAmbassador: boolean;
1104
- };
1105
- type AmbassadorFunctionDescriptor$2<Request = any, Response = any> = AmbassadorFactory$2<Request, Response>;
1106
- type BuildAmbassadorFunction$2<T extends AmbassadorFunctionDescriptor$2> = T extends AmbassadorFunctionDescriptor$2<infer Request, infer Response> ? (req: Request) => Promise<Response> : never;
1107
-
1108
- declare global {
1109
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1110
- interface SymbolConstructor {
1111
- readonly observable: symbol;
1112
- }
1056
+ declare enum CollectionType {
1057
+ /** User-created collection. */
1058
+ NATIVE = "NATIVE",
1059
+ /** [Collection](https://support.wix.com/en/article/velo-working-with-wix-app-collections-and-code#what-are-wix-app-collections) created by a Wix app when it is installed. This type of collection can be modified dynamically by that app (for example, Wix Forms). */
1060
+ WIX_APP = "WIX_APP",
1061
+ /** Collection created by a Wix Blocks app. */
1062
+ BLOCKS_APP = "BLOCKS_APP",
1063
+ /** Collection located in externally connected storage. */
1064
+ EXTERNAL = "EXTERNAL"
1113
1065
  }
1114
-
1115
- declare const emptyObjectSymbol$2: unique symbol;
1116
-
1117
- /**
1118
- Represents a strictly empty plain object, the `{}` value.
1119
-
1120
- 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)).
1121
-
1122
- @example
1123
- ```
1124
- import type {EmptyObject} from 'type-fest';
1125
-
1126
- // The following illustrates the problem with `{}`.
1127
- const foo1: {} = {}; // Pass
1128
- const foo2: {} = []; // Pass
1129
- const foo3: {} = 42; // Pass
1130
- const foo4: {} = {a: 1}; // Pass
1131
-
1132
- // With `EmptyObject` only the first case is valid.
1133
- const bar1: EmptyObject = {}; // Pass
1134
- const bar2: EmptyObject = 42; // Fail
1135
- const bar3: EmptyObject = []; // Fail
1136
- const bar4: EmptyObject = {a: 1}; // Fail
1137
- ```
1138
-
1139
- 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}.
1140
-
1141
- @category Object
1142
- */
1143
- type EmptyObject$2 = {[emptyObjectSymbol$2]?: never};
1144
-
1145
- /**
1146
- Returns a boolean for whether the two given types are equal.
1147
-
1148
- @link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650
1149
- @link https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796
1150
-
1151
- Use-cases:
1152
- - If you want to make a conditional branch based on the result of a comparison of two types.
1153
-
1154
- @example
1155
- ```
1156
- import type {IsEqual} from 'type-fest';
1157
-
1158
- // This type returns a boolean for whether the given array includes the given item.
1159
- // `IsEqual` is used to compare the given array at position 0 and the given item and then return true if they are equal.
1160
- type Includes<Value extends readonly any[], Item> =
1161
- Value extends readonly [Value[0], ...infer rest]
1162
- ? IsEqual<Value[0], Item> extends true
1163
- ? true
1164
- : Includes<rest, Item>
1165
- : false;
1166
- ```
1167
-
1168
- @category Type Guard
1169
- @category Utilities
1170
- */
1171
- type IsEqual$2<A, B> =
1172
- (<G>() => G extends A ? 1 : 2) extends
1173
- (<G>() => G extends B ? 1 : 2)
1174
- ? true
1175
- : false;
1176
-
1177
- /**
1178
- Filter out keys from an object.
1179
-
1180
- Returns `never` if `Exclude` is strictly equal to `Key`.
1181
- Returns `never` if `Key` extends `Exclude`.
1182
- Returns `Key` otherwise.
1183
-
1184
- @example
1185
- ```
1186
- type Filtered = Filter<'foo', 'foo'>;
1187
- //=> never
1188
- ```
1189
-
1190
- @example
1191
- ```
1192
- type Filtered = Filter<'bar', string>;
1193
- //=> never
1194
- ```
1195
-
1196
- @example
1197
- ```
1198
- type Filtered = Filter<'bar', 'foo'>;
1199
- //=> 'bar'
1200
- ```
1201
-
1202
- @see {Except}
1203
- */
1204
- type Filter$2<KeyType, ExcludeType> = IsEqual$2<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
1205
-
1206
- type ExceptOptions$2 = {
1207
- /**
1208
- Disallow assigning non-specified properties.
1209
-
1210
- Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.
1211
-
1212
- @default false
1213
- */
1214
- requireExactProps?: boolean;
1215
- };
1216
-
1217
- /**
1218
- Create a type from an object type without certain keys.
1219
-
1220
- We recommend setting the `requireExactProps` option to `true`.
1221
-
1222
- 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.
1223
-
1224
- 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)).
1225
-
1226
- @example
1227
- ```
1228
- import type {Except} from 'type-fest';
1229
-
1230
- type Foo = {
1231
- a: number;
1232
- b: string;
1233
- };
1234
-
1235
- type FooWithoutA = Except<Foo, 'a'>;
1236
- //=> {b: string}
1237
-
1238
- const fooWithoutA: FooWithoutA = {a: 1, b: '2'};
1239
- //=> errors: 'a' does not exist in type '{ b: string; }'
1240
-
1241
- type FooWithoutB = Except<Foo, 'b', {requireExactProps: true}>;
1242
- //=> {a: number} & Partial<Record<"b", never>>
1243
-
1244
- const fooWithoutB: FooWithoutB = {a: 1, b: '2'};
1245
- //=> errors at 'b': Type 'string' is not assignable to type 'undefined'.
1246
- ```
1247
-
1248
- @category Object
1249
- */
1250
- type Except$2<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions$2 = {requireExactProps: false}> = {
1251
- [KeyType in keyof ObjectType as Filter$2<KeyType, KeysType>]: ObjectType[KeyType];
1252
- } & (Options['requireExactProps'] extends true
1253
- ? Partial<Record<KeysType, never>>
1254
- : {});
1255
-
1256
- /**
1257
- Extract the keys from a type where the value type of the key extends the given `Condition`.
1258
-
1259
- Internally this is used for the `ConditionalPick` and `ConditionalExcept` types.
1260
-
1261
- @example
1262
- ```
1263
- import type {ConditionalKeys} from 'type-fest';
1264
-
1265
- interface Example {
1266
- a: string;
1267
- b: string | number;
1268
- c?: string;
1269
- d: {};
1270
- }
1271
-
1272
- type StringKeysOnly = ConditionalKeys<Example, string>;
1273
- //=> 'a'
1274
- ```
1275
-
1276
- To support partial types, make sure your `Condition` is a union of undefined (for example, `string | undefined`) as demonstrated below.
1277
-
1278
- @example
1279
- ```
1280
- import type {ConditionalKeys} from 'type-fest';
1281
-
1282
- type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
1283
- //=> 'a' | 'c'
1284
- ```
1285
-
1286
- @category Object
1287
- */
1288
- type ConditionalKeys$2<Base, Condition> = NonNullable<
1289
- // Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
1290
- {
1291
- // Map through all the keys of the given base type.
1292
- [Key in keyof Base]:
1293
- // Pick only keys with types extending the given `Condition` type.
1294
- Base[Key] extends Condition
1295
- // Retain this key since the condition passes.
1296
- ? Key
1297
- // Discard this key since the condition fails.
1298
- : never;
1299
-
1300
- // Convert the produced object into a union type of the keys which passed the conditional test.
1301
- }[keyof Base]
1302
- >;
1303
-
1304
- /**
1305
- Exclude keys from a shape that matches the given `Condition`.
1306
-
1307
- 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.
1308
-
1309
- @example
1310
- ```
1311
- import type {Primitive, ConditionalExcept} from 'type-fest';
1312
-
1313
- class Awesome {
1314
- name: string;
1315
- successes: number;
1316
- failures: bigint;
1317
-
1318
- run() {}
1319
- }
1320
-
1321
- type ExceptPrimitivesFromAwesome = ConditionalExcept<Awesome, Primitive>;
1322
- //=> {run: () => void}
1323
- ```
1324
-
1325
- @example
1326
- ```
1327
- import type {ConditionalExcept} from 'type-fest';
1328
-
1329
- interface Example {
1330
- a: string;
1331
- b: string | number;
1332
- c: () => void;
1333
- d: {};
1334
- }
1335
-
1336
- type NonStringKeysOnly = ConditionalExcept<Example, string>;
1337
- //=> {b: string | number; c: () => void; d: {}}
1338
- ```
1339
-
1340
- @category Object
1341
- */
1342
- type ConditionalExcept$2<Base, Condition> = Except$2<
1343
- Base,
1344
- ConditionalKeys$2<Base, Condition>
1345
- >;
1346
-
1347
- /**
1348
- * Descriptors are objects that describe the API of a module, and the module
1349
- * can either be a REST module or a host module.
1350
- * This type is recursive, so it can describe nested modules.
1351
- */
1352
- type Descriptors$2 = RESTFunctionDescriptor$2 | AmbassadorFunctionDescriptor$2 | HostModule$2<any, any> | EventDefinition$4<any> | ServicePluginDefinition$2<any> | {
1353
- [key: string]: Descriptors$2 | PublicMetadata$2 | any;
1354
- };
1355
- /**
1356
- * This type takes in a descriptors object of a certain Host (including an `unknown` host)
1357
- * and returns an object with the same structure, but with all descriptors replaced with their API.
1358
- * Any non-descriptor properties are removed from the returned object, including descriptors that
1359
- * do not match the given host (as they will not work with the given host).
1360
- */
1361
- type BuildDescriptors$2<T extends Descriptors$2, H extends Host$2<any> | undefined, Depth extends number = 5> = {
1362
- done: T;
1363
- recurse: T extends {
1364
- __type: typeof SERVICE_PLUGIN_ERROR_TYPE$2;
1365
- } ? never : T extends AmbassadorFunctionDescriptor$2 ? BuildAmbassadorFunction$2<T> : T extends RESTFunctionDescriptor$2 ? BuildRESTFunction$2<T> : T extends EventDefinition$4<any> ? BuildEventDefinition$4<T> : T extends ServicePluginDefinition$2<any> ? BuildServicePluginDefinition$2<T> : T extends HostModule$2<any, any> ? HostModuleAPI$2<T> : ConditionalExcept$2<{
1366
- [Key in keyof T]: T[Key] extends Descriptors$2 ? BuildDescriptors$2<T[Key], H, [
1367
- -1,
1368
- 0,
1369
- 1,
1370
- 2,
1371
- 3,
1372
- 4,
1373
- 5
1374
- ][Depth]> : never;
1375
- }, EmptyObject$2>;
1376
- }[Depth extends -1 ? 'done' : 'recurse'];
1377
- type PublicMetadata$2 = {
1378
- PACKAGE_NAME?: string;
1379
- };
1380
-
1381
- declare global {
1382
- interface ContextualClient {
1383
- }
1384
- }
1385
- /**
1386
- * A type used to create concerete types from SDK descriptors in
1387
- * case a contextual client is available.
1388
- */
1389
- type MaybeContext$2<T extends Descriptors$2> = globalThis.ContextualClient extends {
1390
- host: Host$2;
1391
- } ? BuildDescriptors$2<T, globalThis.ContextualClient['host']> : T;
1392
-
1393
- /** A data collection determines the structure of data to be stored in a database. */
1394
- interface DataCollection {
1395
- /** Collection ID. For example, `my-first-collection`. May include a namespace. */
1396
- _id?: string;
1066
+ interface Sort {
1067
+ /** Field to sort by. */
1068
+ fieldKey?: string;
1397
1069
  /**
1398
- * Collection type. Indicates how the collection was created and is stored.
1070
+ * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
1399
1071
  *
1400
- * * `NATIVE`: User-created collection.
1401
- * * `WIX_APP`: [Collection](https://support.wix.com/en/article/velo-working-with-wix-app-collections-and-code#what-are-wix-app-collections) created by a Wix app, including [starter collections](https://support.wix.com/en/article/velo-working-with-wix-app-collections-and-code#what-are-wix-app-starter-collections) created when a Wix app is installed.
1402
- * * `BLOCKS_APP`: Collection created by a Wix Blocks app.
1403
- * * `EXTERNAL`: Collection located in externally connected storage.
1404
- * @readonly
1072
+ * Default: `ASC`
1405
1073
  */
1406
- collectionType?: CollectionType;
1074
+ direction?: Direction;
1075
+ }
1076
+ declare enum Direction {
1077
+ ASC = "ASC",
1078
+ DESC = "DESC"
1079
+ }
1080
+ interface CollectionCapabilities {
1081
+ /** Data operations the collection supports. The listed operations can be performed on data the collection contains. */
1082
+ dataOperations?: DataOperation[];
1407
1083
  /**
1408
- * ID of the app that defined this collection. For user-defined collections, this value is null.
1409
- * @readonly
1410
- */
1411
- ownerAppId?: string | null;
1412
- /**
1413
- * Maximum number of items returned in a single query, based on the underlying storage.
1414
- * Native collections have a maximum page size of 1000 for offset-based queries or 100 for cursor-based queries.
1415
- * External collections' maximum page size defaults to 50, but an external provider can set any maximum value up to 1000.
1416
- * @readonly
1417
- */
1418
- maxPageSize?: number | null;
1419
- /** Collection's display name as shown in the CMS. For example, `My First Collection`. */
1420
- displayName?: string | null;
1421
- /**
1422
- * Indicates how the collection's items are sorted by default when a query doesn't specify an order.
1423
- * @readonly
1424
- */
1425
- defaultDisplayOrder?: Sort;
1426
- /**
1427
- * UI-friendly namespace of the Wix app with which the data collection is associated, such as Stores or Bookings.
1428
- * Empty for all data collections not owned by internal Wix apps.
1429
- * @readonly
1430
- */
1431
- displayNamespace?: string | null;
1432
- /** The field whose value the CMS displays to represent the collection item when referenced in a different collection. */
1433
- displayField?: string | null;
1434
- /**
1435
- * Capabilities the collection supports.
1436
- * @readonly
1437
- */
1438
- capabilities?: CollectionCapabilities;
1439
- /** Collection's field structure. */
1440
- fields?: Field$1[];
1441
- /** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */
1442
- permissions?: Permissions;
1443
- /**
1444
- * Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must pass the latest revision number.
1445
- * @readonly
1446
- */
1447
- revision?: string | null;
1448
- /** All plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality. */
1449
- plugins?: Plugin[];
1450
- /**
1451
- * All paging modes the collection supports. In native collections, offset-based paging is supported by default.
1452
- * @readonly
1453
- */
1454
- pagingModes?: PagingMode[];
1455
- /**
1456
- * Date the collection was created.
1457
- * @readonly
1458
- */
1459
- _createdDate?: Date;
1460
- /**
1461
- * Date the collection was last updated.
1462
- * @readonly
1463
- */
1464
- _updatedDate?: Date;
1465
- }
1466
- declare enum CollectionType {
1467
- /** User-created collection. */
1468
- NATIVE = "NATIVE",
1469
- /** [Collection](https://support.wix.com/en/article/velo-working-with-wix-app-collections-and-code#what-are-wix-app-collections) created by a Wix app when it is installed. This type of collection can be modified dynamically by that app (for example, Wix Forms). */
1470
- WIX_APP = "WIX_APP",
1471
- /** Collection created by a Wix Blocks app. */
1472
- BLOCKS_APP = "BLOCKS_APP",
1473
- /** Collection located in externally connected storage. */
1474
- EXTERNAL = "EXTERNAL"
1475
- }
1476
- interface Sort {
1477
- /** Field to sort by. */
1478
- fieldKey?: string;
1479
- /**
1480
- * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
1481
- *
1482
- * Default: `ASC`
1483
- */
1484
- direction?: Direction;
1485
- }
1486
- declare enum Direction {
1487
- ASC = "ASC",
1488
- DESC = "DESC"
1489
- }
1490
- interface CollectionCapabilities {
1491
- /**
1492
- * Data operations the collection supports. The listed operations can be performed on data the collection contains.
1493
- *
1494
- * Supported values: `AGGREGATE`, `BULK_INSERT`, `BULK_REMOVE`, `BULK_SAVE`, `BULK_UPDATE`, `COUNT`, `DISTINCT`, `FIND`, `GET`, `INSERT`, `INSERT_REFERENCE`, `IS_REFERENCED`, `QUERY_REFERENCED`, `REMOVE`, `REMOVE_REFERENCE`, `REPLACE_REFERENCES`, `SAVE`, `TRUNCATE`, `UPDATE`.
1495
- */
1496
- dataOperations?: DataOperation[];
1497
- /**
1498
- * Collection operations supported. The listed operations can be performed on the collection itself.
1499
- * + `UPDATE`: Allows updating the collection's structure, for example adding, updating, or deleting fields. If not included, the collection's structure can't be changed.
1500
- * + `REMOVE`: Allows deleting the entire collection. If not included, the collection can't be deleted.
1084
+ * Collection operations supported. The listed operations can be performed on the collection itself.
1085
+ * + `UPDATE`: Allows updating the collection's structure, for example adding, updating, or deleting fields. If not included, the collection's structure can't be changed.
1086
+ * + `REMOVE`: Allows deleting the entire collection. If not included, the collection can't be deleted.
1501
1087
  */
1502
1088
  collectionOperations?: CollectionOperation[];
1503
1089
  /** Maximum number of indexes for the collection. */
@@ -2697,7 +2283,7 @@ interface ListDataCollectionsOptions {
2697
2283
  consistentRead?: boolean;
2698
2284
  }
2699
2285
 
2700
- declare function createDataCollection$1(httpClient: HttpClient$2): CreateDataCollectionSignature;
2286
+ declare function createDataCollection$1(httpClient: HttpClient): CreateDataCollectionSignature;
2701
2287
  interface CreateDataCollectionSignature {
2702
2288
  /**
2703
2289
  * Creates a new data collection.
@@ -2709,7 +2295,7 @@ interface CreateDataCollectionSignature {
2709
2295
  */
2710
2296
  (collection: DataCollection): Promise<DataCollection & DataCollectionNonNullableFields>;
2711
2297
  }
2712
- declare function getDataCollection$1(httpClient: HttpClient$2): GetDataCollectionSignature;
2298
+ declare function getDataCollection$1(httpClient: HttpClient): GetDataCollectionSignature;
2713
2299
  interface GetDataCollectionSignature {
2714
2300
  /**
2715
2301
  * Retrieves a data collection by ID.
@@ -2719,7 +2305,7 @@ interface GetDataCollectionSignature {
2719
2305
  */
2720
2306
  (dataCollectionId: string, options?: GetDataCollectionOptions | undefined): Promise<DataCollection & DataCollectionNonNullableFields>;
2721
2307
  }
2722
- declare function listDataCollections$1(httpClient: HttpClient$2): ListDataCollectionsSignature;
2308
+ declare function listDataCollections$1(httpClient: HttpClient): ListDataCollectionsSignature;
2723
2309
  interface ListDataCollectionsSignature {
2724
2310
  /**
2725
2311
  * Retrieves a list of all data collections associated with the site or project.
@@ -2729,7 +2315,7 @@ interface ListDataCollectionsSignature {
2729
2315
  */
2730
2316
  (options?: ListDataCollectionsOptions | undefined): Promise<ListDataCollectionsResponse & ListDataCollectionsResponseNonNullableFields>;
2731
2317
  }
2732
- declare function updateDataCollection$1(httpClient: HttpClient$2): UpdateDataCollectionSignature;
2318
+ declare function updateDataCollection$1(httpClient: HttpClient): UpdateDataCollectionSignature;
2733
2319
  interface UpdateDataCollectionSignature {
2734
2320
  /**
2735
2321
  * Updates a data collection.
@@ -2749,7 +2335,7 @@ interface UpdateDataCollectionSignature {
2749
2335
  */
2750
2336
  (collection: DataCollection): Promise<DataCollection & DataCollectionNonNullableFields>;
2751
2337
  }
2752
- declare function deleteDataCollection$1(httpClient: HttpClient$2): DeleteDataCollectionSignature;
2338
+ declare function deleteDataCollection$1(httpClient: HttpClient): DeleteDataCollectionSignature;
2753
2339
  interface DeleteDataCollectionSignature {
2754
2340
  /**
2755
2341
  * Deletes a data collection.
@@ -2760,22 +2346,22 @@ interface DeleteDataCollectionSignature {
2760
2346
  */
2761
2347
  (dataCollectionId: string): Promise<void>;
2762
2348
  }
2763
- declare const onDataCollectionClonedEvent$1: EventDefinition$4<DataCollectionClonedEnvelope, "wix.data.v2.data_collection_data_collection_cloned_event">;
2764
- declare const onDataCollectionChangedEvent$1: EventDefinition$4<DataCollectionChangedEnvelope, "wix.data.v2.data_collection_data_collection_changed_event">;
2765
- declare const onDataCollectionCreated$1: EventDefinition$4<DataCollectionCreatedEnvelope, "wix.data.v2.data_collection_created">;
2766
- declare const onDataCollectionUpdated$1: EventDefinition$4<DataCollectionUpdatedEnvelope, "wix.data.v2.data_collection_updated">;
2767
- declare const onDataCollectionDeleted$1: EventDefinition$4<DataCollectionDeletedEnvelope, "wix.data.v2.data_collection_deleted">;
2349
+ declare const onDataCollectionClonedEvent$1: EventDefinition$3<DataCollectionClonedEnvelope, "wix.data.v2.data_collection_data_collection_cloned_event">;
2350
+ declare const onDataCollectionChangedEvent$1: EventDefinition$3<DataCollectionChangedEnvelope, "wix.data.v2.data_collection_data_collection_changed_event">;
2351
+ declare const onDataCollectionCreated$1: EventDefinition$3<DataCollectionCreatedEnvelope, "wix.data.v2.data_collection_created">;
2352
+ declare const onDataCollectionUpdated$1: EventDefinition$3<DataCollectionUpdatedEnvelope, "wix.data.v2.data_collection_updated">;
2353
+ declare const onDataCollectionDeleted$1: EventDefinition$3<DataCollectionDeletedEnvelope, "wix.data.v2.data_collection_deleted">;
2768
2354
 
2769
- type EventDefinition$3<Payload = unknown, Type extends string = string> = {
2355
+ type EventDefinition$1<Payload = unknown, Type extends string = string> = {
2770
2356
  __type: 'event-definition';
2771
2357
  type: Type;
2772
2358
  isDomainEvent?: boolean;
2773
2359
  transformations?: (envelope: unknown) => Payload;
2774
2360
  __payload: Payload;
2775
2361
  };
2776
- declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
2777
- type EventHandler$3<T extends EventDefinition$3> = (payload: T['__payload']) => void | Promise<void>;
2778
- type BuildEventDefinition$3<T extends EventDefinition$3<any, string>> = (handler: EventHandler$3<T>) => void;
2362
+ declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
2363
+ type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
2364
+ type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
2779
2365
 
2780
2366
  declare global {
2781
2367
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -2784,13 +2370,13 @@ declare global {
2784
2370
  }
2785
2371
  }
2786
2372
 
2787
- declare function createEventModule$1<T extends EventDefinition$3<any, string>>(eventDefinition: T): BuildEventDefinition$3<T> & T;
2373
+ declare function createEventModule$1<T extends EventDefinition$1<any, string>>(eventDefinition: T): BuildEventDefinition$1<T> & T;
2788
2374
 
2789
- declare const createDataCollection: MaybeContext$2<BuildRESTFunction$2<typeof createDataCollection$1> & typeof createDataCollection$1>;
2790
- declare const getDataCollection: MaybeContext$2<BuildRESTFunction$2<typeof getDataCollection$1> & typeof getDataCollection$1>;
2791
- declare const listDataCollections: MaybeContext$2<BuildRESTFunction$2<typeof listDataCollections$1> & typeof listDataCollections$1>;
2792
- declare const updateDataCollection: MaybeContext$2<BuildRESTFunction$2<typeof updateDataCollection$1> & typeof updateDataCollection$1>;
2793
- declare const deleteDataCollection: MaybeContext$2<BuildRESTFunction$2<typeof deleteDataCollection$1> & typeof deleteDataCollection$1>;
2375
+ declare const createDataCollection: MaybeContext<BuildRESTFunction<typeof createDataCollection$1> & typeof createDataCollection$1>;
2376
+ declare const getDataCollection: MaybeContext<BuildRESTFunction<typeof getDataCollection$1> & typeof getDataCollection$1>;
2377
+ declare const listDataCollections: MaybeContext<BuildRESTFunction<typeof listDataCollections$1> & typeof listDataCollections$1>;
2378
+ declare const updateDataCollection: MaybeContext<BuildRESTFunction<typeof updateDataCollection$1> & typeof updateDataCollection$1>;
2379
+ declare const deleteDataCollection: MaybeContext<BuildRESTFunction<typeof deleteDataCollection$1> & typeof deleteDataCollection$1>;
2794
2380
 
2795
2381
  type _publicOnDataCollectionClonedEventType = typeof onDataCollectionClonedEvent$1;
2796
2382
  /**
@@ -2945,449 +2531,39 @@ declare namespace index_d$2 {
2945
2531
  export { index_d$2_AccessLevel as AccessLevel, type ActionEvent$1 as ActionEvent, type index_d$2_AllowedDataPermissions as AllowedDataPermissions, type index_d$2_ArraySizeRange as ArraySizeRange, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_BulkGetDataCollectionsPageBySnapshotsRequest as BulkGetDataCollectionsPageBySnapshotsRequest, type index_d$2_BulkGetDataCollectionsPageBySnapshotsResponse as BulkGetDataCollectionsPageBySnapshotsResponse, type index_d$2_BulkGetDataCollectionsRequest as BulkGetDataCollectionsRequest, type index_d$2_BulkGetDataCollectionsResponse as BulkGetDataCollectionsResponse, type index_d$2_Calculator as Calculator, type index_d$2_CalculatorPatternOneOf as CalculatorPatternOneOf, type index_d$2_CmsOptions as CmsOptions, type index_d$2_CollectionCapabilities as CollectionCapabilities, index_d$2_CollectionOperation as CollectionOperation, index_d$2_CollectionType as CollectionType, type index_d$2_CreateDataCollectionFieldRequest as CreateDataCollectionFieldRequest, type index_d$2_CreateDataCollectionFieldResponse as CreateDataCollectionFieldResponse, type index_d$2_CreateDataCollectionRequest as CreateDataCollectionRequest, type index_d$2_CreateDataCollectionResponse as CreateDataCollectionResponse, type index_d$2_CreateDataCollectionResponseNonNullableFields as CreateDataCollectionResponseNonNullableFields, type index_d$2_CreateDataCollectionsSnapshotRequest as CreateDataCollectionsSnapshotRequest, type index_d$2_CreateDataCollectionsSnapshotResponse as CreateDataCollectionsSnapshotResponse, type index_d$2_CreateMigratedCollectionsSnapshotRequest as CreateMigratedCollectionsSnapshotRequest, type index_d$2_CreateMigratedCollectionsSnapshotResponse as CreateMigratedCollectionsSnapshotResponse, type index_d$2_DataCollection as DataCollection, type index_d$2_DataCollectionChangedEnvelope as DataCollectionChangedEnvelope, type index_d$2_DataCollectionChangedEvent as DataCollectionChangedEvent, type index_d$2_DataCollectionClonedEnvelope as DataCollectionClonedEnvelope, type index_d$2_DataCollectionClonedEvent as DataCollectionClonedEvent, type index_d$2_DataCollectionCreatedEnvelope as DataCollectionCreatedEnvelope, type index_d$2_DataCollectionDeletedEnvelope as DataCollectionDeletedEnvelope, type index_d$2_DataCollectionNonNullableFields as DataCollectionNonNullableFields, type index_d$2_DataCollectionUpdatedEnvelope as DataCollectionUpdatedEnvelope, index_d$2_DataOperation as DataOperation, type index_d$2_DataPermissions as DataPermissions, type index_d$2_DeleteDataCollectionFieldRequest as DeleteDataCollectionFieldRequest, type index_d$2_DeleteDataCollectionFieldResponse as DeleteDataCollectionFieldResponse, type index_d$2_DeleteDataCollectionRequest as DeleteDataCollectionRequest, type index_d$2_DeleteDataCollectionResponse as DeleteDataCollectionResponse, type index_d$2_DeleteDataCollectionsSnapshotRequest as DeleteDataCollectionsSnapshotRequest, type index_d$2_DeleteDataCollectionsSnapshotResponse as DeleteDataCollectionsSnapshotResponse, index_d$2_Direction as Direction, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type Failure$1 as Failure, type Field$1 as Field, type index_d$2_FieldCapabilities as FieldCapabilities, type index_d$2_FieldPlugin as FieldPlugin, type index_d$2_FieldPluginOptionsOneOf as FieldPluginOptionsOneOf, index_d$2_FieldPluginType as FieldPluginType, type index_d$2_FieldRangeValidationsOneOf as FieldRangeValidationsOneOf, type FieldUpdate$1 as FieldUpdate, type index_d$2_FieldsPattern as FieldsPattern, index_d$2_Format as Format, type index_d$2_GetDataCollectionOptions as GetDataCollectionOptions, type index_d$2_GetDataCollectionRequest as GetDataCollectionRequest, type index_d$2_GetDataCollectionResponse as GetDataCollectionResponse, type index_d$2_GetDataCollectionResponseNonNullableFields as GetDataCollectionResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Index$1 as Index, type index_d$2_IndexField as IndexField, type index_d$2_IndexLimits as IndexLimits, index_d$2_IndexStatus as IndexStatus, type index_d$2_ListDataCollectionsOptions as ListDataCollectionsOptions, type index_d$2_ListDataCollectionsRequest as ListDataCollectionsRequest, type index_d$2_ListDataCollectionsResponse as ListDataCollectionsResponse, type index_d$2_ListDataCollectionsResponseNonNullableFields as ListDataCollectionsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_MultiReference as MultiReference, type index_d$2_MultilingualOptions as MultilingualOptions, type index_d$2_NumberRange as NumberRange, type index_d$2_ObjectField as ObjectField, Order$1 as Order, type index_d$2_PageLink as PageLink, type index_d$2_PageLinkPluginOptions as PageLinkPluginOptions, type Paging$2 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, index_d$2_PagingMode as PagingMode, type index_d$2_Permissions as Permissions, type index_d$2_Plugin as Plugin, type index_d$2_PluginCmsOptions as PluginCmsOptions, type index_d$2_PluginOptionsOneOf as PluginOptionsOneOf, index_d$2_PluginType as PluginType, type index_d$2_PluginUpdate as PluginUpdate, type PublishPluginOptions$1 as PublishPluginOptions, index_d$2_QueryOperator as QueryOperator, type index_d$2_Reference as Reference, type index_d$2_RestoreDataCollectionsFromSnapshotRequest as RestoreDataCollectionsFromSnapshotRequest, type index_d$2_RestoreDataCollectionsFromSnapshotResponse as RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo$1 as RestoreInfo, index_d$2_Role as Role, type index_d$2_SingleItemPluginOptions as SingleItemPluginOptions, type index_d$2_SiteSort as SiteSort, type index_d$2_SnapshotCollection as SnapshotCollection, type index_d$2_Sort as Sort, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, Status$1 as Status, type index_d$2_StringLengthRange as StringLengthRange, index_d$2_Type as Type, type index_d$2_TypeMetadata as TypeMetadata, type index_d$2_TypeMetadataMetadataOneOf as TypeMetadataMetadataOneOf, type index_d$2_UpdateDataCollectionFieldRequest as UpdateDataCollectionFieldRequest, type index_d$2_UpdateDataCollectionFieldResponse as UpdateDataCollectionFieldResponse, type index_d$2_UpdateDataCollectionRequest as UpdateDataCollectionRequest, type index_d$2_UpdateDataCollectionResponse as UpdateDataCollectionResponse, type index_d$2_UpdateDataCollectionResponseNonNullableFields as UpdateDataCollectionResponseNonNullableFields, type index_d$2_UpdateDataPermissionsRequest as UpdateDataPermissionsRequest, type index_d$2_UpdateDataPermissionsResponse as UpdateDataPermissionsResponse, type index_d$2_UrlizedOnlyPattern as UrlizedOnlyPattern, type index_d$2_UrlizedPluginOptions as UrlizedPluginOptions, WebhookIdentityType$1 as WebhookIdentityType, type index_d$2__Array as _Array, type index_d$2__Object as _Object, type index_d$2__publicOnDataCollectionChangedEventType as _publicOnDataCollectionChangedEventType, type index_d$2__publicOnDataCollectionClonedEventType as _publicOnDataCollectionClonedEventType, type index_d$2__publicOnDataCollectionCreatedType as _publicOnDataCollectionCreatedType, type index_d$2__publicOnDataCollectionDeletedType as _publicOnDataCollectionDeletedType, type index_d$2__publicOnDataCollectionUpdatedType as _publicOnDataCollectionUpdatedType, index_d$2_createDataCollection as createDataCollection, index_d$2_deleteDataCollection as deleteDataCollection, index_d$2_getDataCollection as getDataCollection, index_d$2_listDataCollections as listDataCollections, index_d$2_onDataCollectionChangedEvent as onDataCollectionChangedEvent, index_d$2_onDataCollectionClonedEvent as onDataCollectionClonedEvent, index_d$2_onDataCollectionCreated as onDataCollectionCreated, index_d$2_onDataCollectionDeleted as onDataCollectionDeleted, index_d$2_onDataCollectionUpdated as onDataCollectionUpdated, onDataCollectionChangedEvent$1 as publicOnDataCollectionChangedEvent, onDataCollectionClonedEvent$1 as publicOnDataCollectionClonedEvent, onDataCollectionCreated$1 as publicOnDataCollectionCreated, onDataCollectionDeleted$1 as publicOnDataCollectionDeleted, onDataCollectionUpdated$1 as publicOnDataCollectionUpdated, index_d$2_updateDataCollection as updateDataCollection };
2946
2532
  }
2947
2533
 
2948
- type HostModule$1<T, H extends Host$1> = {
2949
- __type: 'host';
2950
- create(host: H): T;
2951
- };
2952
- type HostModuleAPI$1<T extends HostModule$1<any, any>> = T extends HostModule$1<infer U, any> ? U : never;
2953
- type Host$1<Environment = unknown> = {
2954
- channel: {
2955
- observeState(callback: (props: unknown, environment: Environment) => unknown): {
2956
- disconnect: () => void;
2957
- } | Promise<{
2958
- disconnect: () => void;
2959
- }>;
2960
- };
2961
- environment?: Environment;
2534
+ interface DataItem {
2535
+ /** Data item ID. */
2536
+ _id?: string;
2962
2537
  /**
2963
- * Optional bast url to use for API requests, for example `www.wixapis.com`
2538
+ * ID of the collection this item belongs to
2539
+ * @readonly
2964
2540
  */
2965
- apiBaseUrl?: string;
2541
+ dataCollectionId?: string;
2966
2542
  /**
2967
- * Possible data to be provided by every host, for cross cutting concerns
2968
- * like internationalization, billing, etc.
2543
+ * Data item contents.
2544
+ *
2545
+ * Property-value pairs representing the data item's payload. When retrieving a data item, it also includes the following read-only fields:
2546
+ *
2547
+ * + `_id`: Item ID.
2548
+ * + `_createdDate`: Date and time the item was added to the collection.
2549
+ * + `_updatedDate`: Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have the same value.
2550
+ * + `_ownerId`: ID of the user who created the item. Can be modified with site owner permissions.
2969
2551
  */
2970
- essentials?: {
2971
- /**
2972
- * The language of the currently viewed session
2973
- */
2974
- language?: string;
2975
- /**
2976
- * The locale of the currently viewed session
2977
- */
2978
- locale?: string;
2979
- /**
2980
- * Any headers that should be passed through to the API requests
2981
- */
2982
- passThroughHeaders?: Record<string, string>;
2983
- };
2984
- };
2985
-
2986
- type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
2987
- interface HttpClient$1 {
2988
- request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
2989
- fetchWithAuth: typeof fetch;
2990
- wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
2991
- getActiveToken?: () => string | undefined;
2552
+ data?: Record<string, any> | null;
2992
2553
  }
2993
- type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
2994
- type HttpResponse$1<T = any> = {
2995
- data: T;
2996
- status: number;
2997
- statusText: string;
2998
- headers: any;
2999
- request?: any;
3000
- };
3001
- type RequestOptions$1<_TResponse = any, Data = any> = {
3002
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
3003
- url: string;
3004
- data?: Data;
3005
- params?: URLSearchParams;
3006
- } & APIMetadata$1;
3007
- type APIMetadata$1 = {
3008
- methodFqn?: string;
3009
- entityFqdn?: string;
3010
- packageName?: string;
3011
- };
3012
- type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
3013
- type EventDefinition$2<Payload = unknown, Type extends string = string> = {
3014
- __type: 'event-definition';
3015
- type: Type;
3016
- isDomainEvent?: boolean;
3017
- transformations?: (envelope: unknown) => Payload;
3018
- __payload: Payload;
3019
- };
3020
- declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
3021
- type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
3022
- type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
3023
-
3024
- type ServicePluginMethodInput$1 = {
3025
- request: any;
3026
- metadata: any;
3027
- };
3028
- type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
3029
- type ServicePluginMethodMetadata$1 = {
3030
- name: string;
3031
- primaryHttpMappingPath: string;
3032
- transformations: {
3033
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
3034
- toREST: (...args: unknown[]) => unknown;
3035
- };
3036
- };
3037
- type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
3038
- __type: 'service-plugin-definition';
3039
- componentType: string;
3040
- methods: ServicePluginMethodMetadata$1[];
3041
- __contract: Contract;
3042
- };
3043
- declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
3044
- type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$1<any>> = (implementation: T['__contract']) => void;
3045
- declare const SERVICE_PLUGIN_ERROR_TYPE$1 = "wix_spi_error";
3046
-
3047
- type RequestContext$1 = {
3048
- isSSR: boolean;
3049
- host: string;
3050
- protocol?: string;
3051
- };
3052
- type ResponseTransformer$1 = (data: any, headers?: any) => any;
3053
- /**
3054
- * Ambassador request options types are copied mostly from AxiosRequestConfig.
3055
- * They are copied and not imported to reduce the amount of dependencies (to reduce install time).
3056
- * https://github.com/axios/axios/blob/3f53eb6960f05a1f88409c4b731a40de595cb825/index.d.ts#L307-L315
3057
- */
3058
- type Method$1 = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
3059
- type AmbassadorRequestOptions$1<T = any> = {
3060
- _?: T;
3061
- url?: string;
3062
- method?: Method$1;
3063
- params?: any;
3064
- data?: any;
3065
- transformResponse?: ResponseTransformer$1 | ResponseTransformer$1[];
3066
- };
3067
- type AmbassadorFactory$1<Request, Response> = (payload: Request) => ((context: RequestContext$1) => AmbassadorRequestOptions$1<Response>) & {
3068
- __isAmbassador: boolean;
3069
- };
3070
- type AmbassadorFunctionDescriptor$1<Request = any, Response = any> = AmbassadorFactory$1<Request, Response>;
3071
- type BuildAmbassadorFunction$1<T extends AmbassadorFunctionDescriptor$1> = T extends AmbassadorFunctionDescriptor$1<infer Request, infer Response> ? (req: Request) => Promise<Response> : never;
3072
-
3073
- declare global {
3074
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
3075
- interface SymbolConstructor {
3076
- readonly observable: symbol;
3077
- }
3078
- }
3079
-
3080
- declare const emptyObjectSymbol$1: unique symbol;
3081
-
3082
- /**
3083
- Represents a strictly empty plain object, the `{}` value.
3084
-
3085
- 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)).
3086
-
3087
- @example
3088
- ```
3089
- import type {EmptyObject} from 'type-fest';
3090
-
3091
- // The following illustrates the problem with `{}`.
3092
- const foo1: {} = {}; // Pass
3093
- const foo2: {} = []; // Pass
3094
- const foo3: {} = 42; // Pass
3095
- const foo4: {} = {a: 1}; // Pass
3096
-
3097
- // With `EmptyObject` only the first case is valid.
3098
- const bar1: EmptyObject = {}; // Pass
3099
- const bar2: EmptyObject = 42; // Fail
3100
- const bar3: EmptyObject = []; // Fail
3101
- const bar4: EmptyObject = {a: 1}; // Fail
3102
- ```
3103
-
3104
- 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}.
3105
-
3106
- @category Object
3107
- */
3108
- type EmptyObject$1 = {[emptyObjectSymbol$1]?: never};
3109
-
3110
- /**
3111
- Returns a boolean for whether the two given types are equal.
3112
-
3113
- @link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650
3114
- @link https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796
3115
-
3116
- Use-cases:
3117
- - If you want to make a conditional branch based on the result of a comparison of two types.
3118
-
3119
- @example
3120
- ```
3121
- import type {IsEqual} from 'type-fest';
3122
-
3123
- // This type returns a boolean for whether the given array includes the given item.
3124
- // `IsEqual` is used to compare the given array at position 0 and the given item and then return true if they are equal.
3125
- type Includes<Value extends readonly any[], Item> =
3126
- Value extends readonly [Value[0], ...infer rest]
3127
- ? IsEqual<Value[0], Item> extends true
3128
- ? true
3129
- : Includes<rest, Item>
3130
- : false;
3131
- ```
3132
-
3133
- @category Type Guard
3134
- @category Utilities
3135
- */
3136
- type IsEqual$1<A, B> =
3137
- (<G>() => G extends A ? 1 : 2) extends
3138
- (<G>() => G extends B ? 1 : 2)
3139
- ? true
3140
- : false;
3141
-
3142
- /**
3143
- Filter out keys from an object.
3144
-
3145
- Returns `never` if `Exclude` is strictly equal to `Key`.
3146
- Returns `never` if `Key` extends `Exclude`.
3147
- Returns `Key` otherwise.
3148
-
3149
- @example
3150
- ```
3151
- type Filtered = Filter<'foo', 'foo'>;
3152
- //=> never
3153
- ```
3154
-
3155
- @example
3156
- ```
3157
- type Filtered = Filter<'bar', string>;
3158
- //=> never
3159
- ```
3160
-
3161
- @example
3162
- ```
3163
- type Filtered = Filter<'bar', 'foo'>;
3164
- //=> 'bar'
3165
- ```
3166
-
3167
- @see {Except}
3168
- */
3169
- type Filter$1<KeyType, ExcludeType> = IsEqual$1<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
3170
-
3171
- type ExceptOptions$1 = {
3172
- /**
3173
- Disallow assigning non-specified properties.
3174
-
3175
- Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.
3176
-
3177
- @default false
3178
- */
3179
- requireExactProps?: boolean;
3180
- };
3181
-
3182
- /**
3183
- Create a type from an object type without certain keys.
3184
-
3185
- We recommend setting the `requireExactProps` option to `true`.
3186
-
3187
- 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.
3188
-
3189
- 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)).
3190
-
3191
- @example
3192
- ```
3193
- import type {Except} from 'type-fest';
3194
-
3195
- type Foo = {
3196
- a: number;
3197
- b: string;
3198
- };
3199
-
3200
- type FooWithoutA = Except<Foo, 'a'>;
3201
- //=> {b: string}
3202
-
3203
- const fooWithoutA: FooWithoutA = {a: 1, b: '2'};
3204
- //=> errors: 'a' does not exist in type '{ b: string; }'
3205
-
3206
- type FooWithoutB = Except<Foo, 'b', {requireExactProps: true}>;
3207
- //=> {a: number} & Partial<Record<"b", never>>
3208
-
3209
- const fooWithoutB: FooWithoutB = {a: 1, b: '2'};
3210
- //=> errors at 'b': Type 'string' is not assignable to type 'undefined'.
3211
- ```
3212
-
3213
- @category Object
3214
- */
3215
- type Except$1<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions$1 = {requireExactProps: false}> = {
3216
- [KeyType in keyof ObjectType as Filter$1<KeyType, KeysType>]: ObjectType[KeyType];
3217
- } & (Options['requireExactProps'] extends true
3218
- ? Partial<Record<KeysType, never>>
3219
- : {});
3220
-
3221
- /**
3222
- Extract the keys from a type where the value type of the key extends the given `Condition`.
3223
-
3224
- Internally this is used for the `ConditionalPick` and `ConditionalExcept` types.
3225
-
3226
- @example
3227
- ```
3228
- import type {ConditionalKeys} from 'type-fest';
3229
-
3230
- interface Example {
3231
- a: string;
3232
- b: string | number;
3233
- c?: string;
3234
- d: {};
3235
- }
3236
-
3237
- type StringKeysOnly = ConditionalKeys<Example, string>;
3238
- //=> 'a'
3239
- ```
3240
-
3241
- To support partial types, make sure your `Condition` is a union of undefined (for example, `string | undefined`) as demonstrated below.
3242
-
3243
- @example
3244
- ```
3245
- import type {ConditionalKeys} from 'type-fest';
3246
-
3247
- type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
3248
- //=> 'a' | 'c'
3249
- ```
3250
-
3251
- @category Object
3252
- */
3253
- type ConditionalKeys$1<Base, Condition> = NonNullable<
3254
- // Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
3255
- {
3256
- // Map through all the keys of the given base type.
3257
- [Key in keyof Base]:
3258
- // Pick only keys with types extending the given `Condition` type.
3259
- Base[Key] extends Condition
3260
- // Retain this key since the condition passes.
3261
- ? Key
3262
- // Discard this key since the condition fails.
3263
- : never;
3264
-
3265
- // Convert the produced object into a union type of the keys which passed the conditional test.
3266
- }[keyof Base]
3267
- >;
3268
-
3269
- /**
3270
- Exclude keys from a shape that matches the given `Condition`.
3271
-
3272
- 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.
3273
-
3274
- @example
3275
- ```
3276
- import type {Primitive, ConditionalExcept} from 'type-fest';
3277
-
3278
- class Awesome {
3279
- name: string;
3280
- successes: number;
3281
- failures: bigint;
3282
-
3283
- run() {}
3284
- }
3285
-
3286
- type ExceptPrimitivesFromAwesome = ConditionalExcept<Awesome, Primitive>;
3287
- //=> {run: () => void}
3288
- ```
3289
-
3290
- @example
3291
- ```
3292
- import type {ConditionalExcept} from 'type-fest';
3293
-
3294
- interface Example {
3295
- a: string;
3296
- b: string | number;
3297
- c: () => void;
3298
- d: {};
3299
- }
3300
-
3301
- type NonStringKeysOnly = ConditionalExcept<Example, string>;
3302
- //=> {b: string | number; c: () => void; d: {}}
3303
- ```
3304
-
3305
- @category Object
3306
- */
3307
- type ConditionalExcept$1<Base, Condition> = Except$1<
3308
- Base,
3309
- ConditionalKeys$1<Base, Condition>
3310
- >;
3311
-
3312
- /**
3313
- * Descriptors are objects that describe the API of a module, and the module
3314
- * can either be a REST module or a host module.
3315
- * This type is recursive, so it can describe nested modules.
3316
- */
3317
- type Descriptors$1 = RESTFunctionDescriptor$1 | AmbassadorFunctionDescriptor$1 | HostModule$1<any, any> | EventDefinition$2<any> | ServicePluginDefinition$1<any> | {
3318
- [key: string]: Descriptors$1 | PublicMetadata$1 | any;
3319
- };
3320
- /**
3321
- * This type takes in a descriptors object of a certain Host (including an `unknown` host)
3322
- * and returns an object with the same structure, but with all descriptors replaced with their API.
3323
- * Any non-descriptor properties are removed from the returned object, including descriptors that
3324
- * do not match the given host (as they will not work with the given host).
3325
- */
3326
- type BuildDescriptors$1<T extends Descriptors$1, H extends Host$1<any> | undefined, Depth extends number = 5> = {
3327
- done: T;
3328
- recurse: T extends {
3329
- __type: typeof SERVICE_PLUGIN_ERROR_TYPE$1;
3330
- } ? never : T extends AmbassadorFunctionDescriptor$1 ? BuildAmbassadorFunction$1<T> : T extends RESTFunctionDescriptor$1 ? BuildRESTFunction$1<T> : T extends EventDefinition$2<any> ? BuildEventDefinition$2<T> : T extends ServicePluginDefinition$1<any> ? BuildServicePluginDefinition$1<T> : T extends HostModule$1<any, any> ? HostModuleAPI$1<T> : ConditionalExcept$1<{
3331
- [Key in keyof T]: T[Key] extends Descriptors$1 ? BuildDescriptors$1<T[Key], H, [
3332
- -1,
3333
- 0,
3334
- 1,
3335
- 2,
3336
- 3,
3337
- 4,
3338
- 5
3339
- ][Depth]> : never;
3340
- }, EmptyObject$1>;
3341
- }[Depth extends -1 ? 'done' : 'recurse'];
3342
- type PublicMetadata$1 = {
3343
- PACKAGE_NAME?: string;
3344
- };
3345
-
3346
- declare global {
3347
- interface ContextualClient {
3348
- }
3349
- }
3350
- /**
3351
- * A type used to create concerete types from SDK descriptors in
3352
- * case a contextual client is available.
3353
- */
3354
- type MaybeContext$1<T extends Descriptors$1> = globalThis.ContextualClient extends {
3355
- host: Host$1;
3356
- } ? BuildDescriptors$1<T, globalThis.ContextualClient['host']> : T;
3357
-
3358
- interface DataItem {
3359
- /** Data item ID. */
3360
- _id?: string;
3361
- /**
3362
- * ID of the collection this item belongs to
3363
- * @readonly
3364
- */
3365
- dataCollectionId?: string;
3366
- /**
3367
- * Data item contents.
3368
- *
3369
- * Property-value pairs representing the data item's payload. When retrieving a data item, it also includes the following read-only fields:
3370
- *
3371
- * + `_id`: Item ID.
3372
- * + `_createdDate`: Date and time the item was added to the collection.
3373
- * + `_updatedDate`: Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have the same value.
3374
- * + `_ownerId`: ID of the user who created the item. Can be modified with site owner permissions.
3375
- */
3376
- data?: Record<string, any> | null;
3377
- }
3378
- interface InsertDataItemRequest {
3379
- /** ID of the collection in which to insert the item. */
3380
- dataCollectionId: string;
3381
- /** Item to insert. */
3382
- dataItem: DataItem;
3383
- /**
3384
- * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
3385
- *
3386
- * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
3387
- * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
3388
- * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
3389
- */
3390
- appOptions?: Record<string, any> | null;
2554
+ interface InsertDataItemRequest {
2555
+ /** ID of the collection in which to insert the item. */
2556
+ dataCollectionId: string;
2557
+ /** Item to insert. */
2558
+ dataItem: DataItem;
2559
+ /**
2560
+ * Additional parameters specific to the [Wix app collection](https://support.wix.com/en/article/cms-formerly-content-manager-working-with-wix-app-collections) you are querying.
2561
+ *
2562
+ * When querying the Wix Stores [Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-e-commerce-stores/wix-stores-products-collection-fields), pass the following optional parameters:
2563
+ * - `includeHiddenProducts`: Whether to include hidden products in the response. Default: `false`.
2564
+ * - `includeVariants`: Whether to include product variants in the query. Default: `false`.
2565
+ */
2566
+ appOptions?: Record<string, any> | null;
3391
2567
  }
3392
2568
  declare enum Environment$1 {
3393
2569
  LIVE = "LIVE",
@@ -5289,7 +4465,7 @@ interface ReplaceDataItemReferencesOptions {
5289
4465
  newReferencedItemIds?: string[];
5290
4466
  }
5291
4467
 
5292
- declare function insertDataItem$1(httpClient: HttpClient$1): InsertDataItemSignature;
4468
+ declare function insertDataItem$1(httpClient: HttpClient): InsertDataItemSignature;
5293
4469
  interface InsertDataItemSignature {
5294
4470
  /**
5295
4471
  * Adds an item to a collection.
@@ -5307,7 +4483,7 @@ interface InsertDataItemSignature {
5307
4483
  */
5308
4484
  (options?: InsertDataItemOptions | undefined): Promise<InsertDataItemResponse & InsertDataItemResponseNonNullableFields>;
5309
4485
  }
5310
- declare function updateDataItem$1(httpClient: HttpClient$1): UpdateDataItemSignature;
4486
+ declare function updateDataItem$1(httpClient: HttpClient): UpdateDataItemSignature;
5311
4487
  interface UpdateDataItemSignature {
5312
4488
  /**
5313
4489
  * Updates an item in a collection.
@@ -5329,7 +4505,7 @@ interface UpdateDataItemSignature {
5329
4505
  */
5330
4506
  (_id: string, options?: UpdateDataItemOptions | undefined): Promise<UpdateDataItemResponse & UpdateDataItemResponseNonNullableFields>;
5331
4507
  }
5332
- declare function saveDataItem$1(httpClient: HttpClient$1): SaveDataItemSignature;
4508
+ declare function saveDataItem$1(httpClient: HttpClient): SaveDataItemSignature;
5333
4509
  interface SaveDataItemSignature {
5334
4510
  /**
5335
4511
  * Inserts or updates an item in a collection.
@@ -5349,7 +4525,7 @@ interface SaveDataItemSignature {
5349
4525
  */
5350
4526
  (options?: SaveDataItemOptions | undefined): Promise<SaveDataItemResponse & SaveDataItemResponseNonNullableFields>;
5351
4527
  }
5352
- declare function getDataItem$1(httpClient: HttpClient$1): GetDataItemSignature;
4528
+ declare function getDataItem$1(httpClient: HttpClient): GetDataItemSignature;
5353
4529
  interface GetDataItemSignature {
5354
4530
  /**
5355
4531
  * Retrieves an item from a collection.
@@ -5362,7 +4538,7 @@ interface GetDataItemSignature {
5362
4538
  */
5363
4539
  (dataItemId: string, options?: GetDataItemOptions | undefined): Promise<DataItem & DataItemNonNullableFields>;
5364
4540
  }
5365
- declare function removeDataItem$1(httpClient: HttpClient$1): RemoveDataItemSignature;
4541
+ declare function removeDataItem$1(httpClient: HttpClient): RemoveDataItemSignature;
5366
4542
  interface RemoveDataItemSignature {
5367
4543
  /**
5368
4544
  * Removes an item from a collection.
@@ -5377,7 +4553,7 @@ interface RemoveDataItemSignature {
5377
4553
  */
5378
4554
  (dataItemId: string, options?: RemoveDataItemOptions | undefined): Promise<RemoveDataItemResponse & RemoveDataItemResponseNonNullableFields>;
5379
4555
  }
5380
- declare function truncateDataItems$1(httpClient: HttpClient$1): TruncateDataItemsSignature;
4556
+ declare function truncateDataItems$1(httpClient: HttpClient): TruncateDataItemsSignature;
5381
4557
  interface TruncateDataItemsSignature {
5382
4558
  /**
5383
4559
  * Removes all items from a collection.
@@ -5391,7 +4567,7 @@ interface TruncateDataItemsSignature {
5391
4567
  */
5392
4568
  (options: TruncateDataItemsOptions): Promise<void>;
5393
4569
  }
5394
- declare function queryDataItems$1(httpClient: HttpClient$1): QueryDataItemsSignature;
4570
+ declare function queryDataItems$1(httpClient: HttpClient): QueryDataItemsSignature;
5395
4571
  interface QueryDataItemsSignature {
5396
4572
  /**
5397
4573
  * Creates a query to retrieve items from a database collection.
@@ -5419,7 +4595,7 @@ interface QueryDataItemsSignature {
5419
4595
  */
5420
4596
  (options: QueryDataItemsOptions): DataItemsQueryBuilder;
5421
4597
  }
5422
- declare function aggregateDataItems$1(httpClient: HttpClient$1): AggregateDataItemsSignature;
4598
+ declare function aggregateDataItems$1(httpClient: HttpClient): AggregateDataItemsSignature;
5423
4599
  interface AggregateDataItemsSignature {
5424
4600
  /**
5425
4601
  * Runs an aggregation on a data collection and returns the resulting list of items.
@@ -5431,7 +4607,7 @@ interface AggregateDataItemsSignature {
5431
4607
  */
5432
4608
  (options?: AggregateDataItemsOptions | undefined): Promise<AggregateDataItemsResponse>;
5433
4609
  }
5434
- declare function countDataItems$1(httpClient: HttpClient$1): CountDataItemsSignature;
4610
+ declare function countDataItems$1(httpClient: HttpClient): CountDataItemsSignature;
5435
4611
  interface CountDataItemsSignature {
5436
4612
  /**
5437
4613
  * Counts the number of items in a data collection that match the provided filtering preferences.
@@ -5441,7 +4617,7 @@ interface CountDataItemsSignature {
5441
4617
  */
5442
4618
  (options?: CountDataItemsOptions | undefined): Promise<CountDataItemsResponse & CountDataItemsResponseNonNullableFields>;
5443
4619
  }
5444
- declare function queryDistinctValues$1(httpClient: HttpClient$1): QueryDistinctValuesSignature;
4620
+ declare function queryDistinctValues$1(httpClient: HttpClient): QueryDistinctValuesSignature;
5445
4621
  interface QueryDistinctValuesSignature {
5446
4622
  /**
5447
4623
  * Retrieves a list of distinct values for a given field in all items that match a query, without duplicates.
@@ -5459,7 +4635,7 @@ interface QueryDistinctValuesSignature {
5459
4635
  */
5460
4636
  (options?: QueryDistinctValuesOptions | undefined): Promise<QueryDistinctValuesResponse>;
5461
4637
  }
5462
- declare function bulkInsertDataItems$1(httpClient: HttpClient$1): BulkInsertDataItemsSignature;
4638
+ declare function bulkInsertDataItems$1(httpClient: HttpClient): BulkInsertDataItemsSignature;
5463
4639
  interface BulkInsertDataItemsSignature {
5464
4640
  /**
5465
4641
  * Adds multiple items to a collection.
@@ -5471,7 +4647,7 @@ interface BulkInsertDataItemsSignature {
5471
4647
  */
5472
4648
  (options?: BulkInsertDataItemsOptions | undefined): Promise<BulkInsertDataItemsResponse & BulkInsertDataItemsResponseNonNullableFields>;
5473
4649
  }
5474
- declare function bulkUpdateDataItems$1(httpClient: HttpClient$1): BulkUpdateDataItemsSignature;
4650
+ declare function bulkUpdateDataItems$1(httpClient: HttpClient): BulkUpdateDataItemsSignature;
5475
4651
  interface BulkUpdateDataItemsSignature {
5476
4652
  /**
5477
4653
  * Updates multiple items in a collection.
@@ -5491,7 +4667,7 @@ interface BulkUpdateDataItemsSignature {
5491
4667
  */
5492
4668
  (options?: BulkUpdateDataItemsOptions | undefined): Promise<BulkUpdateDataItemsResponse & BulkUpdateDataItemsResponseNonNullableFields>;
5493
4669
  }
5494
- declare function bulkSaveDataItems$1(httpClient: HttpClient$1): BulkSaveDataItemsSignature;
4670
+ declare function bulkSaveDataItems$1(httpClient: HttpClient): BulkSaveDataItemsSignature;
5495
4671
  interface BulkSaveDataItemsSignature {
5496
4672
  /**
5497
4673
  * Inserts or updates multiple items in a collection.
@@ -5511,7 +4687,7 @@ interface BulkSaveDataItemsSignature {
5511
4687
  */
5512
4688
  (options?: BulkSaveDataItemsOptions | undefined): Promise<BulkSaveDataItemsResponse & BulkSaveDataItemsResponseNonNullableFields>;
5513
4689
  }
5514
- declare function bulkRemoveDataItems$1(httpClient: HttpClient$1): BulkRemoveDataItemsSignature;
4690
+ declare function bulkRemoveDataItems$1(httpClient: HttpClient): BulkRemoveDataItemsSignature;
5515
4691
  interface BulkRemoveDataItemsSignature {
5516
4692
  /**
5517
4693
  * Removes multiple items from a collection.
@@ -5524,7 +4700,7 @@ interface BulkRemoveDataItemsSignature {
5524
4700
  */
5525
4701
  (options?: BulkRemoveDataItemsOptions | undefined): Promise<BulkRemoveDataItemsResponse & BulkRemoveDataItemsResponseNonNullableFields>;
5526
4702
  }
5527
- declare function queryReferencedDataItems$1(httpClient: HttpClient$1): QueryReferencedDataItemsSignature;
4703
+ declare function queryReferencedDataItems$1(httpClient: HttpClient): QueryReferencedDataItemsSignature;
5528
4704
  interface QueryReferencedDataItemsSignature {
5529
4705
  /**
5530
4706
  * Retrieves the full items referenced in the specified field of an item.
@@ -5542,7 +4718,7 @@ interface QueryReferencedDataItemsSignature {
5542
4718
  */
5543
4719
  (options?: QueryReferencedDataItemsOptions | undefined): Promise<QueryReferencedDataItemsResponse & QueryReferencedDataItemsResponseNonNullableFields>;
5544
4720
  }
5545
- declare function isReferencedDataItem$1(httpClient: HttpClient$1): IsReferencedDataItemSignature;
4721
+ declare function isReferencedDataItem$1(httpClient: HttpClient): IsReferencedDataItemSignature;
5546
4722
  interface IsReferencedDataItemSignature {
5547
4723
  /**
5548
4724
  * Checks whether a field in a referring item contains a reference to a specified item.
@@ -5552,7 +4728,7 @@ interface IsReferencedDataItemSignature {
5552
4728
  */
5553
4729
  (options?: IsReferencedDataItemOptions | undefined): Promise<IsReferencedDataItemResponse & IsReferencedDataItemResponseNonNullableFields>;
5554
4730
  }
5555
- declare function insertDataItemReference$1(httpClient: HttpClient$1): InsertDataItemReferenceSignature;
4731
+ declare function insertDataItemReference$1(httpClient: HttpClient): InsertDataItemReferenceSignature;
5556
4732
  interface InsertDataItemReferenceSignature {
5557
4733
  /**
5558
4734
  * Inserts a reference in the specified field in an item in a collection.
@@ -5563,7 +4739,7 @@ interface InsertDataItemReferenceSignature {
5563
4739
  */
5564
4740
  (options?: InsertDataItemReferenceOptions | undefined): Promise<InsertDataItemReferenceResponse & InsertDataItemReferenceResponseNonNullableFields>;
5565
4741
  }
5566
- declare function removeDataItemReference$1(httpClient: HttpClient$1): RemoveDataItemReferenceSignature;
4742
+ declare function removeDataItemReference$1(httpClient: HttpClient): RemoveDataItemReferenceSignature;
5567
4743
  interface RemoveDataItemReferenceSignature {
5568
4744
  /**
5569
4745
  * Removes the specified reference from the specified field.
@@ -5571,7 +4747,7 @@ interface RemoveDataItemReferenceSignature {
5571
4747
  */
5572
4748
  (options: RemoveDataItemReferenceOptions): Promise<RemoveDataItemReferenceResponse & RemoveDataItemReferenceResponseNonNullableFields>;
5573
4749
  }
5574
- declare function bulkInsertDataItemReferences$1(httpClient: HttpClient$1): BulkInsertDataItemReferencesSignature;
4750
+ declare function bulkInsertDataItemReferences$1(httpClient: HttpClient): BulkInsertDataItemReferencesSignature;
5575
4751
  interface BulkInsertDataItemReferencesSignature {
5576
4752
  /**
5577
4753
  * Inserts one or more references in the specified fields of items in a collection.
@@ -5583,7 +4759,7 @@ interface BulkInsertDataItemReferencesSignature {
5583
4759
  */
5584
4760
  (options?: BulkInsertDataItemReferencesOptions | undefined): Promise<BulkInsertDataItemReferencesResponse & BulkInsertDataItemReferencesResponseNonNullableFields>;
5585
4761
  }
5586
- declare function bulkRemoveDataItemReferences$1(httpClient: HttpClient$1): BulkRemoveDataItemReferencesSignature;
4762
+ declare function bulkRemoveDataItemReferences$1(httpClient: HttpClient): BulkRemoveDataItemReferencesSignature;
5587
4763
  interface BulkRemoveDataItemReferencesSignature {
5588
4764
  /**
5589
4765
  * Removes one or more references.
@@ -5591,7 +4767,7 @@ interface BulkRemoveDataItemReferencesSignature {
5591
4767
  */
5592
4768
  (options: BulkRemoveDataItemReferencesOptions): Promise<BulkRemoveDataItemReferencesResponse & BulkRemoveDataItemReferencesResponseNonNullableFields>;
5593
4769
  }
5594
- declare function replaceDataItemReferences$1(httpClient: HttpClient$1): ReplaceDataItemReferencesSignature;
4770
+ declare function replaceDataItemReferences$1(httpClient: HttpClient): ReplaceDataItemReferencesSignature;
5595
4771
  interface ReplaceDataItemReferencesSignature {
5596
4772
  /**
5597
4773
  * Replaces references in a specified field of a specified data item.
@@ -5605,664 +4781,254 @@ interface ReplaceDataItemReferencesSignature {
5605
4781
  */
5606
4782
  (options?: ReplaceDataItemReferencesOptions | undefined): Promise<ReplaceDataItemReferencesResponse & ReplaceDataItemReferencesResponseNonNullableFields>;
5607
4783
  }
5608
- declare const onDataItemCreated$1: EventDefinition$2<DataItemCreatedEnvelope, "wix.data.v2.data_item_created">;
5609
- declare const onDataItemUpdated$1: EventDefinition$2<DataItemUpdatedEnvelope, "wix.data.v2.data_item_updated">;
5610
- declare const onDataItemDeleted$1: EventDefinition$2<DataItemDeletedEnvelope, "wix.data.v2.data_item_deleted">;
4784
+ declare const onDataItemCreated$1: EventDefinition$3<DataItemCreatedEnvelope, "wix.data.v2.data_item_created">;
4785
+ declare const onDataItemUpdated$1: EventDefinition$3<DataItemUpdatedEnvelope, "wix.data.v2.data_item_updated">;
4786
+ declare const onDataItemDeleted$1: EventDefinition$3<DataItemDeletedEnvelope, "wix.data.v2.data_item_deleted">;
5611
4787
 
5612
- type EventDefinition$1<Payload = unknown, Type extends string = string> = {
4788
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
5613
4789
  __type: 'event-definition';
5614
4790
  type: Type;
5615
4791
  isDomainEvent?: boolean;
5616
4792
  transformations?: (envelope: unknown) => Payload;
5617
- __payload: Payload;
5618
- };
5619
- declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
5620
- type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
5621
- type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
5622
-
5623
- declare global {
5624
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5625
- interface SymbolConstructor {
5626
- readonly observable: symbol;
5627
- }
5628
- }
5629
-
5630
- declare function createEventModule<T extends EventDefinition$1<any, string>>(eventDefinition: T): BuildEventDefinition$1<T> & T;
5631
-
5632
- declare const insertDataItem: MaybeContext$1<BuildRESTFunction$1<typeof insertDataItem$1> & typeof insertDataItem$1>;
5633
- declare const updateDataItem: MaybeContext$1<BuildRESTFunction$1<typeof updateDataItem$1> & typeof updateDataItem$1>;
5634
- declare const saveDataItem: MaybeContext$1<BuildRESTFunction$1<typeof saveDataItem$1> & typeof saveDataItem$1>;
5635
- declare const getDataItem: MaybeContext$1<BuildRESTFunction$1<typeof getDataItem$1> & typeof getDataItem$1>;
5636
- declare const removeDataItem: MaybeContext$1<BuildRESTFunction$1<typeof removeDataItem$1> & typeof removeDataItem$1>;
5637
- declare const truncateDataItems: MaybeContext$1<BuildRESTFunction$1<typeof truncateDataItems$1> & typeof truncateDataItems$1>;
5638
- declare const queryDataItems: MaybeContext$1<BuildRESTFunction$1<typeof queryDataItems$1> & typeof queryDataItems$1>;
5639
- declare const aggregateDataItems: MaybeContext$1<BuildRESTFunction$1<typeof aggregateDataItems$1> & typeof aggregateDataItems$1>;
5640
- declare const countDataItems: MaybeContext$1<BuildRESTFunction$1<typeof countDataItems$1> & typeof countDataItems$1>;
5641
- declare const queryDistinctValues: MaybeContext$1<BuildRESTFunction$1<typeof queryDistinctValues$1> & typeof queryDistinctValues$1>;
5642
- declare const bulkInsertDataItems: MaybeContext$1<BuildRESTFunction$1<typeof bulkInsertDataItems$1> & typeof bulkInsertDataItems$1>;
5643
- declare const bulkUpdateDataItems: MaybeContext$1<BuildRESTFunction$1<typeof bulkUpdateDataItems$1> & typeof bulkUpdateDataItems$1>;
5644
- declare const bulkSaveDataItems: MaybeContext$1<BuildRESTFunction$1<typeof bulkSaveDataItems$1> & typeof bulkSaveDataItems$1>;
5645
- declare const bulkRemoveDataItems: MaybeContext$1<BuildRESTFunction$1<typeof bulkRemoveDataItems$1> & typeof bulkRemoveDataItems$1>;
5646
- declare const queryReferencedDataItems: MaybeContext$1<BuildRESTFunction$1<typeof queryReferencedDataItems$1> & typeof queryReferencedDataItems$1>;
5647
- declare const isReferencedDataItem: MaybeContext$1<BuildRESTFunction$1<typeof isReferencedDataItem$1> & typeof isReferencedDataItem$1>;
5648
- declare const insertDataItemReference: MaybeContext$1<BuildRESTFunction$1<typeof insertDataItemReference$1> & typeof insertDataItemReference$1>;
5649
- declare const removeDataItemReference: MaybeContext$1<BuildRESTFunction$1<typeof removeDataItemReference$1> & typeof removeDataItemReference$1>;
5650
- declare const bulkInsertDataItemReferences: MaybeContext$1<BuildRESTFunction$1<typeof bulkInsertDataItemReferences$1> & typeof bulkInsertDataItemReferences$1>;
5651
- declare const bulkRemoveDataItemReferences: MaybeContext$1<BuildRESTFunction$1<typeof bulkRemoveDataItemReferences$1> & typeof bulkRemoveDataItemReferences$1>;
5652
- declare const replaceDataItemReferences: MaybeContext$1<BuildRESTFunction$1<typeof replaceDataItemReferences$1> & typeof replaceDataItemReferences$1>;
5653
-
5654
- type _publicOnDataItemCreatedType = typeof onDataItemCreated$1;
5655
- /**
5656
- * Triggered when a data item is inserted.
5657
- */
5658
- declare const onDataItemCreated: ReturnType<typeof createEventModule<_publicOnDataItemCreatedType>>;
5659
-
5660
- type _publicOnDataItemUpdatedType = typeof onDataItemUpdated$1;
5661
- /**
5662
- * Triggered when a data item is updated.
5663
- *
5664
- * **Note**: When [scheduling an item's visibility change](https://support.wix.com/en/article/cms-controlling-live-site-item-visibility-from-your-collection#scheduling-changes-to-item-visibility), the event is triggered when the scheduled change is set up, not when it goes into effect.
5665
- */
5666
- declare const onDataItemUpdated: ReturnType<typeof createEventModule<_publicOnDataItemUpdatedType>>;
5667
-
5668
- type _publicOnDataItemDeletedType = typeof onDataItemDeleted$1;
5669
- /**
5670
- * Triggered when a data item is deleted.
5671
- */
5672
- declare const onDataItemDeleted: ReturnType<typeof createEventModule<_publicOnDataItemDeletedType>>;
5673
-
5674
- type index_d$1_ACTION = ACTION;
5675
- declare const index_d$1_ACTION: typeof ACTION;
5676
- type index_d$1_Action = Action;
5677
- declare const index_d$1_Action: typeof Action;
5678
- type index_d$1_ActionEvent = ActionEvent;
5679
- type index_d$1_AggregateDataItemsOptions = AggregateDataItemsOptions;
5680
- type index_d$1_AggregateDataItemsRequest = AggregateDataItemsRequest;
5681
- type index_d$1_AggregateDataItemsRequestPagingMethodOneOf = AggregateDataItemsRequestPagingMethodOneOf;
5682
- type index_d$1_AggregateDataItemsResponse = AggregateDataItemsResponse;
5683
- type index_d$1_Aggregation = Aggregation;
5684
- type index_d$1_AppendToArray = AppendToArray;
5685
- type index_d$1_ApplicationError = ApplicationError;
5686
- type index_d$1_Average = Average;
5687
- type index_d$1_BaseEventMetadata = BaseEventMetadata;
5688
- type index_d$1_BulkActionMetadata = BulkActionMetadata;
5689
- type index_d$1_BulkActionType = BulkActionType;
5690
- declare const index_d$1_BulkActionType: typeof BulkActionType;
5691
- type index_d$1_BulkDataItemReferenceResult = BulkDataItemReferenceResult;
5692
- type index_d$1_BulkDataItemResult = BulkDataItemResult;
5693
- type index_d$1_BulkInsertDataItemReferencesOptions = BulkInsertDataItemReferencesOptions;
5694
- type index_d$1_BulkInsertDataItemReferencesRequest = BulkInsertDataItemReferencesRequest;
5695
- type index_d$1_BulkInsertDataItemReferencesResponse = BulkInsertDataItemReferencesResponse;
5696
- type index_d$1_BulkInsertDataItemReferencesResponseNonNullableFields = BulkInsertDataItemReferencesResponseNonNullableFields;
5697
- type index_d$1_BulkInsertDataItemsOptions = BulkInsertDataItemsOptions;
5698
- type index_d$1_BulkInsertDataItemsRequest = BulkInsertDataItemsRequest;
5699
- type index_d$1_BulkInsertDataItemsResponse = BulkInsertDataItemsResponse;
5700
- type index_d$1_BulkInsertDataItemsResponseNonNullableFields = BulkInsertDataItemsResponseNonNullableFields;
5701
- type index_d$1_BulkPatchDataItemsRequest = BulkPatchDataItemsRequest;
5702
- type index_d$1_BulkPatchDataItemsResponse = BulkPatchDataItemsResponse;
5703
- type index_d$1_BulkRemoveDataItemReferencesOptions = BulkRemoveDataItemReferencesOptions;
5704
- type index_d$1_BulkRemoveDataItemReferencesRequest = BulkRemoveDataItemReferencesRequest;
5705
- type index_d$1_BulkRemoveDataItemReferencesResponse = BulkRemoveDataItemReferencesResponse;
5706
- type index_d$1_BulkRemoveDataItemReferencesResponseNonNullableFields = BulkRemoveDataItemReferencesResponseNonNullableFields;
5707
- type index_d$1_BulkRemoveDataItemsOptions = BulkRemoveDataItemsOptions;
5708
- type index_d$1_BulkRemoveDataItemsRequest = BulkRemoveDataItemsRequest;
5709
- type index_d$1_BulkRemoveDataItemsResponse = BulkRemoveDataItemsResponse;
5710
- type index_d$1_BulkRemoveDataItemsResponseNonNullableFields = BulkRemoveDataItemsResponseNonNullableFields;
5711
- type index_d$1_BulkSaveDataItemsOptions = BulkSaveDataItemsOptions;
5712
- type index_d$1_BulkSaveDataItemsRequest = BulkSaveDataItemsRequest;
5713
- type index_d$1_BulkSaveDataItemsResponse = BulkSaveDataItemsResponse;
5714
- type index_d$1_BulkSaveDataItemsResponseNonNullableFields = BulkSaveDataItemsResponseNonNullableFields;
5715
- type index_d$1_BulkUpdateDataItemsOptions = BulkUpdateDataItemsOptions;
5716
- type index_d$1_BulkUpdateDataItemsRequest = BulkUpdateDataItemsRequest;
5717
- type index_d$1_BulkUpdateDataItemsResponse = BulkUpdateDataItemsResponse;
5718
- type index_d$1_BulkUpdateDataItemsResponseNonNullableFields = BulkUpdateDataItemsResponseNonNullableFields;
5719
- type index_d$1_CachingInfo = CachingInfo;
5720
- type index_d$1_Count = Count;
5721
- type index_d$1_CountDataItemsOptions = CountDataItemsOptions;
5722
- type index_d$1_CountDataItemsRequest = CountDataItemsRequest;
5723
- type index_d$1_CountDataItemsResponse = CountDataItemsResponse;
5724
- type index_d$1_CountDataItemsResponseNonNullableFields = CountDataItemsResponseNonNullableFields;
5725
- type index_d$1_CursorPaging = CursorPaging;
5726
- type index_d$1_Cursors = Cursors;
5727
- type index_d$1_DataItem = DataItem;
5728
- type index_d$1_DataItemCreatedEnvelope = DataItemCreatedEnvelope;
5729
- type index_d$1_DataItemDeletedEnvelope = DataItemDeletedEnvelope;
5730
- type index_d$1_DataItemNonNullableFields = DataItemNonNullableFields;
5731
- type index_d$1_DataItemReference = DataItemReference;
5732
- type index_d$1_DataItemUpdatedEnvelope = DataItemUpdatedEnvelope;
5733
- type index_d$1_DataItemsQueryBuilder = DataItemsQueryBuilder;
5734
- type index_d$1_DataItemsQueryResult = DataItemsQueryResult;
5735
- type index_d$1_DataPublishPluginOptions = DataPublishPluginOptions;
5736
- type index_d$1_DomainEvent = DomainEvent;
5737
- type index_d$1_DomainEventBodyOneOf = DomainEventBodyOneOf;
5738
- type index_d$1_EntityCreatedEvent = EntityCreatedEvent;
5739
- type index_d$1_EntityDeletedEvent = EntityDeletedEvent;
5740
- type index_d$1_EntityUpdatedEvent = EntityUpdatedEvent;
5741
- type index_d$1_EventMetadata = EventMetadata;
5742
- type index_d$1_FieldUpdate = FieldUpdate;
5743
- type index_d$1_FieldUpdateActionOptionsOneOf = FieldUpdateActionOptionsOneOf;
5744
- type index_d$1_GetDataItemOptions = GetDataItemOptions;
5745
- type index_d$1_GetDataItemRequest = GetDataItemRequest;
5746
- type index_d$1_GetDataItemResponse = GetDataItemResponse;
5747
- type index_d$1_GetDataItemResponseNonNullableFields = GetDataItemResponseNonNullableFields;
5748
- type index_d$1_IdentificationData = IdentificationData;
5749
- type index_d$1_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
5750
- type index_d$1_IncrementField = IncrementField;
5751
- type index_d$1_InsertDataItemOptions = InsertDataItemOptions;
5752
- type index_d$1_InsertDataItemReferenceOptions = InsertDataItemReferenceOptions;
5753
- type index_d$1_InsertDataItemReferenceRequest = InsertDataItemReferenceRequest;
5754
- type index_d$1_InsertDataItemReferenceResponse = InsertDataItemReferenceResponse;
5755
- type index_d$1_InsertDataItemReferenceResponseNonNullableFields = InsertDataItemReferenceResponseNonNullableFields;
5756
- type index_d$1_InsertDataItemRequest = InsertDataItemRequest;
5757
- type index_d$1_InsertDataItemResponse = InsertDataItemResponse;
5758
- type index_d$1_InsertDataItemResponseNonNullableFields = InsertDataItemResponseNonNullableFields;
5759
- type index_d$1_IsReferencedDataItemOptions = IsReferencedDataItemOptions;
5760
- type index_d$1_IsReferencedDataItemRequest = IsReferencedDataItemRequest;
5761
- type index_d$1_IsReferencedDataItemResponse = IsReferencedDataItemResponse;
5762
- type index_d$1_IsReferencedDataItemResponseNonNullableFields = IsReferencedDataItemResponseNonNullableFields;
5763
- type index_d$1_ItemMetadata = ItemMetadata;
5764
- type index_d$1_Max = Max;
5765
- type index_d$1_MessageEnvelope = MessageEnvelope;
5766
- type index_d$1_Min = Min;
5767
- type index_d$1_Operation = Operation;
5768
- type index_d$1_OperationCalculateOneOf = OperationCalculateOneOf;
5769
- type index_d$1_Options = Options;
5770
- type index_d$1_PagingMetadataV2 = PagingMetadataV2;
5771
- type index_d$1_PatchDataItemRequest = PatchDataItemRequest;
5772
- type index_d$1_PatchDataItemResponse = PatchDataItemResponse;
5773
- type index_d$1_PatchSet = PatchSet;
5774
- type index_d$1_PublishPluginOptions = PublishPluginOptions;
5775
- type index_d$1_QueryDataItemsOptions = QueryDataItemsOptions;
5776
- type index_d$1_QueryDataItemsRequest = QueryDataItemsRequest;
5777
- type index_d$1_QueryDataItemsResponse = QueryDataItemsResponse;
5778
- type index_d$1_QueryDataItemsResponseNonNullableFields = QueryDataItemsResponseNonNullableFields;
5779
- type index_d$1_QueryDistinctValuesOptions = QueryDistinctValuesOptions;
5780
- type index_d$1_QueryDistinctValuesRequest = QueryDistinctValuesRequest;
5781
- type index_d$1_QueryDistinctValuesRequestPagingMethodOneOf = QueryDistinctValuesRequestPagingMethodOneOf;
5782
- type index_d$1_QueryDistinctValuesResponse = QueryDistinctValuesResponse;
5783
- type index_d$1_QueryReferencedDataItemsOptions = QueryReferencedDataItemsOptions;
5784
- type index_d$1_QueryReferencedDataItemsRequest = QueryReferencedDataItemsRequest;
5785
- type index_d$1_QueryReferencedDataItemsRequestPagingMethodOneOf = QueryReferencedDataItemsRequestPagingMethodOneOf;
5786
- type index_d$1_QueryReferencedDataItemsResponse = QueryReferencedDataItemsResponse;
5787
- type index_d$1_QueryReferencedDataItemsResponseNonNullableFields = QueryReferencedDataItemsResponseNonNullableFields;
5788
- type index_d$1_QueryV2 = QueryV2;
5789
- type index_d$1_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
5790
- type index_d$1_ReferencedItemOptions = ReferencedItemOptions;
5791
- type index_d$1_ReferencedResult = ReferencedResult;
5792
- type index_d$1_ReferencedResultEntityOneOf = ReferencedResultEntityOneOf;
5793
- type index_d$1_RemoveDataItemOptions = RemoveDataItemOptions;
5794
- type index_d$1_RemoveDataItemReferenceOptions = RemoveDataItemReferenceOptions;
5795
- type index_d$1_RemoveDataItemReferenceRequest = RemoveDataItemReferenceRequest;
5796
- type index_d$1_RemoveDataItemReferenceResponse = RemoveDataItemReferenceResponse;
5797
- type index_d$1_RemoveDataItemReferenceResponseNonNullableFields = RemoveDataItemReferenceResponseNonNullableFields;
5798
- type index_d$1_RemoveDataItemRequest = RemoveDataItemRequest;
5799
- type index_d$1_RemoveDataItemResponse = RemoveDataItemResponse;
5800
- type index_d$1_RemoveDataItemResponseNonNullableFields = RemoveDataItemResponseNonNullableFields;
5801
- type index_d$1_RemoveFromArray = RemoveFromArray;
5802
- type index_d$1_ReplaceDataItemReferencesOptions = ReplaceDataItemReferencesOptions;
5803
- type index_d$1_ReplaceDataItemReferencesRequest = ReplaceDataItemReferencesRequest;
5804
- type index_d$1_ReplaceDataItemReferencesResponse = ReplaceDataItemReferencesResponse;
5805
- type index_d$1_ReplaceDataItemReferencesResponseNonNullableFields = ReplaceDataItemReferencesResponseNonNullableFields;
5806
- type index_d$1_RestoreInfo = RestoreInfo;
5807
- type index_d$1_SaveDataItemOptions = SaveDataItemOptions;
5808
- type index_d$1_SaveDataItemRequest = SaveDataItemRequest;
5809
- type index_d$1_SaveDataItemResponse = SaveDataItemResponse;
5810
- type index_d$1_SaveDataItemResponseNonNullableFields = SaveDataItemResponseNonNullableFields;
5811
- type index_d$1_SetField = SetField;
5812
- type index_d$1_SortOrder = SortOrder;
5813
- declare const index_d$1_SortOrder: typeof SortOrder;
5814
- type index_d$1_Sorting = Sorting;
5815
- type index_d$1_Sum = Sum;
5816
- type index_d$1_TruncateDataItemsOptions = TruncateDataItemsOptions;
5817
- type index_d$1_TruncateDataItemsRequest = TruncateDataItemsRequest;
5818
- type index_d$1_TruncateDataItemsResponse = TruncateDataItemsResponse;
5819
- type index_d$1_UnresolvedReference = UnresolvedReference;
5820
- type index_d$1_UpdateDataItemOptions = UpdateDataItemOptions;
5821
- type index_d$1_UpdateDataItemRequest = UpdateDataItemRequest;
5822
- type index_d$1_UpdateDataItemResponse = UpdateDataItemResponse;
5823
- type index_d$1_UpdateDataItemResponseNonNullableFields = UpdateDataItemResponseNonNullableFields;
5824
- type index_d$1_WebhookIdentityType = WebhookIdentityType;
5825
- declare const index_d$1_WebhookIdentityType: typeof WebhookIdentityType;
5826
- type index_d$1__publicOnDataItemCreatedType = _publicOnDataItemCreatedType;
5827
- type index_d$1__publicOnDataItemDeletedType = _publicOnDataItemDeletedType;
5828
- type index_d$1__publicOnDataItemUpdatedType = _publicOnDataItemUpdatedType;
5829
- declare const index_d$1_aggregateDataItems: typeof aggregateDataItems;
5830
- declare const index_d$1_bulkInsertDataItemReferences: typeof bulkInsertDataItemReferences;
5831
- declare const index_d$1_bulkInsertDataItems: typeof bulkInsertDataItems;
5832
- declare const index_d$1_bulkRemoveDataItemReferences: typeof bulkRemoveDataItemReferences;
5833
- declare const index_d$1_bulkRemoveDataItems: typeof bulkRemoveDataItems;
5834
- declare const index_d$1_bulkSaveDataItems: typeof bulkSaveDataItems;
5835
- declare const index_d$1_bulkUpdateDataItems: typeof bulkUpdateDataItems;
5836
- declare const index_d$1_countDataItems: typeof countDataItems;
5837
- declare const index_d$1_getDataItem: typeof getDataItem;
5838
- declare const index_d$1_insertDataItem: typeof insertDataItem;
5839
- declare const index_d$1_insertDataItemReference: typeof insertDataItemReference;
5840
- declare const index_d$1_isReferencedDataItem: typeof isReferencedDataItem;
5841
- declare const index_d$1_onDataItemCreated: typeof onDataItemCreated;
5842
- declare const index_d$1_onDataItemDeleted: typeof onDataItemDeleted;
5843
- declare const index_d$1_onDataItemUpdated: typeof onDataItemUpdated;
5844
- declare const index_d$1_queryDataItems: typeof queryDataItems;
5845
- declare const index_d$1_queryDistinctValues: typeof queryDistinctValues;
5846
- declare const index_d$1_queryReferencedDataItems: typeof queryReferencedDataItems;
5847
- declare const index_d$1_removeDataItem: typeof removeDataItem;
5848
- declare const index_d$1_removeDataItemReference: typeof removeDataItemReference;
5849
- declare const index_d$1_replaceDataItemReferences: typeof replaceDataItemReferences;
5850
- declare const index_d$1_saveDataItem: typeof saveDataItem;
5851
- declare const index_d$1_truncateDataItems: typeof truncateDataItems;
5852
- declare const index_d$1_updateDataItem: typeof updateDataItem;
5853
- declare namespace index_d$1 {
5854
- export { index_d$1_ACTION as ACTION, index_d$1_Action as Action, type index_d$1_ActionEvent as ActionEvent, type index_d$1_AggregateDataItemsOptions as AggregateDataItemsOptions, type index_d$1_AggregateDataItemsRequest as AggregateDataItemsRequest, type index_d$1_AggregateDataItemsRequestPagingMethodOneOf as AggregateDataItemsRequestPagingMethodOneOf, type index_d$1_AggregateDataItemsResponse as AggregateDataItemsResponse, type index_d$1_Aggregation as Aggregation, type index_d$1_AppendToArray as AppendToArray, type index_d$1_ApplicationError as ApplicationError, type index_d$1_Average as Average, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_BulkActionMetadata as BulkActionMetadata, index_d$1_BulkActionType as BulkActionType, type index_d$1_BulkDataItemReferenceResult as BulkDataItemReferenceResult, type index_d$1_BulkDataItemResult as BulkDataItemResult, type index_d$1_BulkInsertDataItemReferencesOptions as BulkInsertDataItemReferencesOptions, type index_d$1_BulkInsertDataItemReferencesRequest as BulkInsertDataItemReferencesRequest, type index_d$1_BulkInsertDataItemReferencesResponse as BulkInsertDataItemReferencesResponse, type index_d$1_BulkInsertDataItemReferencesResponseNonNullableFields as BulkInsertDataItemReferencesResponseNonNullableFields, type index_d$1_BulkInsertDataItemsOptions as BulkInsertDataItemsOptions, type index_d$1_BulkInsertDataItemsRequest as BulkInsertDataItemsRequest, type index_d$1_BulkInsertDataItemsResponse as BulkInsertDataItemsResponse, type index_d$1_BulkInsertDataItemsResponseNonNullableFields as BulkInsertDataItemsResponseNonNullableFields, type index_d$1_BulkPatchDataItemsRequest as BulkPatchDataItemsRequest, type index_d$1_BulkPatchDataItemsResponse as BulkPatchDataItemsResponse, type index_d$1_BulkRemoveDataItemReferencesOptions as BulkRemoveDataItemReferencesOptions, type index_d$1_BulkRemoveDataItemReferencesRequest as BulkRemoveDataItemReferencesRequest, type index_d$1_BulkRemoveDataItemReferencesResponse as BulkRemoveDataItemReferencesResponse, type index_d$1_BulkRemoveDataItemReferencesResponseNonNullableFields as BulkRemoveDataItemReferencesResponseNonNullableFields, type index_d$1_BulkRemoveDataItemsOptions as BulkRemoveDataItemsOptions, type index_d$1_BulkRemoveDataItemsRequest as BulkRemoveDataItemsRequest, type index_d$1_BulkRemoveDataItemsResponse as BulkRemoveDataItemsResponse, type index_d$1_BulkRemoveDataItemsResponseNonNullableFields as BulkRemoveDataItemsResponseNonNullableFields, type index_d$1_BulkSaveDataItemsOptions as BulkSaveDataItemsOptions, type index_d$1_BulkSaveDataItemsRequest as BulkSaveDataItemsRequest, type index_d$1_BulkSaveDataItemsResponse as BulkSaveDataItemsResponse, type index_d$1_BulkSaveDataItemsResponseNonNullableFields as BulkSaveDataItemsResponseNonNullableFields, type index_d$1_BulkUpdateDataItemsOptions as BulkUpdateDataItemsOptions, type index_d$1_BulkUpdateDataItemsRequest as BulkUpdateDataItemsRequest, type index_d$1_BulkUpdateDataItemsResponse as BulkUpdateDataItemsResponse, type index_d$1_BulkUpdateDataItemsResponseNonNullableFields as BulkUpdateDataItemsResponseNonNullableFields, type index_d$1_CachingInfo as CachingInfo, type index_d$1_Count as Count, type index_d$1_CountDataItemsOptions as CountDataItemsOptions, type index_d$1_CountDataItemsRequest as CountDataItemsRequest, type index_d$1_CountDataItemsResponse as CountDataItemsResponse, type index_d$1_CountDataItemsResponseNonNullableFields as CountDataItemsResponseNonNullableFields, type index_d$1_CursorPaging as CursorPaging, type index_d$1_Cursors as Cursors, type index_d$1_DataItem as DataItem, type index_d$1_DataItemCreatedEnvelope as DataItemCreatedEnvelope, type index_d$1_DataItemDeletedEnvelope as DataItemDeletedEnvelope, type index_d$1_DataItemNonNullableFields as DataItemNonNullableFields, type index_d$1_DataItemReference as DataItemReference, type index_d$1_DataItemUpdatedEnvelope as DataItemUpdatedEnvelope, type index_d$1_DataItemsQueryBuilder as DataItemsQueryBuilder, type index_d$1_DataItemsQueryResult as DataItemsQueryResult, type index_d$1_DataPublishPluginOptions as DataPublishPluginOptions, type index_d$1_DomainEvent as DomainEvent, type index_d$1_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$1_EntityCreatedEvent as EntityCreatedEvent, type index_d$1_EntityDeletedEvent as EntityDeletedEvent, type index_d$1_EntityUpdatedEvent as EntityUpdatedEvent, Environment$1 as Environment, type index_d$1_EventMetadata as EventMetadata, type index_d$1_FieldUpdate as FieldUpdate, type index_d$1_FieldUpdateActionOptionsOneOf as FieldUpdateActionOptionsOneOf, type index_d$1_GetDataItemOptions as GetDataItemOptions, type index_d$1_GetDataItemRequest as GetDataItemRequest, type index_d$1_GetDataItemResponse as GetDataItemResponse, type index_d$1_GetDataItemResponseNonNullableFields as GetDataItemResponseNonNullableFields, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$1_IncrementField as IncrementField, type index_d$1_InsertDataItemOptions as InsertDataItemOptions, type index_d$1_InsertDataItemReferenceOptions as InsertDataItemReferenceOptions, type index_d$1_InsertDataItemReferenceRequest as InsertDataItemReferenceRequest, type index_d$1_InsertDataItemReferenceResponse as InsertDataItemReferenceResponse, type index_d$1_InsertDataItemReferenceResponseNonNullableFields as InsertDataItemReferenceResponseNonNullableFields, type index_d$1_InsertDataItemRequest as InsertDataItemRequest, type index_d$1_InsertDataItemResponse as InsertDataItemResponse, type index_d$1_InsertDataItemResponseNonNullableFields as InsertDataItemResponseNonNullableFields, type index_d$1_IsReferencedDataItemOptions as IsReferencedDataItemOptions, type index_d$1_IsReferencedDataItemRequest as IsReferencedDataItemRequest, type index_d$1_IsReferencedDataItemResponse as IsReferencedDataItemResponse, type index_d$1_IsReferencedDataItemResponseNonNullableFields as IsReferencedDataItemResponseNonNullableFields, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_Max as Max, type index_d$1_MessageEnvelope as MessageEnvelope, type index_d$1_Min as Min, type index_d$1_Operation as Operation, type index_d$1_OperationCalculateOneOf as OperationCalculateOneOf, type index_d$1_Options as Options, type Paging$1 as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_PatchDataItemRequest as PatchDataItemRequest, type index_d$1_PatchDataItemResponse as PatchDataItemResponse, type index_d$1_PatchSet as PatchSet, type index_d$1_PublishPluginOptions as PublishPluginOptions, type index_d$1_QueryDataItemsOptions as QueryDataItemsOptions, type index_d$1_QueryDataItemsRequest as QueryDataItemsRequest, type index_d$1_QueryDataItemsResponse as QueryDataItemsResponse, type index_d$1_QueryDataItemsResponseNonNullableFields as QueryDataItemsResponseNonNullableFields, type index_d$1_QueryDistinctValuesOptions as QueryDistinctValuesOptions, type index_d$1_QueryDistinctValuesRequest as QueryDistinctValuesRequest, type index_d$1_QueryDistinctValuesRequestPagingMethodOneOf as QueryDistinctValuesRequestPagingMethodOneOf, type index_d$1_QueryDistinctValuesResponse as QueryDistinctValuesResponse, type index_d$1_QueryReferencedDataItemsOptions as QueryReferencedDataItemsOptions, type index_d$1_QueryReferencedDataItemsRequest as QueryReferencedDataItemsRequest, type index_d$1_QueryReferencedDataItemsRequestPagingMethodOneOf as QueryReferencedDataItemsRequestPagingMethodOneOf, type index_d$1_QueryReferencedDataItemsResponse as QueryReferencedDataItemsResponse, type index_d$1_QueryReferencedDataItemsResponseNonNullableFields as QueryReferencedDataItemsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_ReferencedItemOptions as ReferencedItemOptions, type index_d$1_ReferencedResult as ReferencedResult, type index_d$1_ReferencedResultEntityOneOf as ReferencedResultEntityOneOf, type index_d$1_RemoveDataItemOptions as RemoveDataItemOptions, type index_d$1_RemoveDataItemReferenceOptions as RemoveDataItemReferenceOptions, type index_d$1_RemoveDataItemReferenceRequest as RemoveDataItemReferenceRequest, type index_d$1_RemoveDataItemReferenceResponse as RemoveDataItemReferenceResponse, type index_d$1_RemoveDataItemReferenceResponseNonNullableFields as RemoveDataItemReferenceResponseNonNullableFields, type index_d$1_RemoveDataItemRequest as RemoveDataItemRequest, type index_d$1_RemoveDataItemResponse as RemoveDataItemResponse, type index_d$1_RemoveDataItemResponseNonNullableFields as RemoveDataItemResponseNonNullableFields, type index_d$1_RemoveFromArray as RemoveFromArray, type index_d$1_ReplaceDataItemReferencesOptions as ReplaceDataItemReferencesOptions, type index_d$1_ReplaceDataItemReferencesRequest as ReplaceDataItemReferencesRequest, type index_d$1_ReplaceDataItemReferencesResponse as ReplaceDataItemReferencesResponse, type index_d$1_ReplaceDataItemReferencesResponseNonNullableFields as ReplaceDataItemReferencesResponseNonNullableFields, type index_d$1_RestoreInfo as RestoreInfo, type index_d$1_SaveDataItemOptions as SaveDataItemOptions, type index_d$1_SaveDataItemRequest as SaveDataItemRequest, type index_d$1_SaveDataItemResponse as SaveDataItemResponse, type index_d$1_SaveDataItemResponseNonNullableFields as SaveDataItemResponseNonNullableFields, type index_d$1_SetField as SetField, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_Sum as Sum, type index_d$1_TruncateDataItemsOptions as TruncateDataItemsOptions, type index_d$1_TruncateDataItemsRequest as TruncateDataItemsRequest, type index_d$1_TruncateDataItemsResponse as TruncateDataItemsResponse, type index_d$1_UnresolvedReference as UnresolvedReference, type index_d$1_UpdateDataItemOptions as UpdateDataItemOptions, type index_d$1_UpdateDataItemRequest as UpdateDataItemRequest, type index_d$1_UpdateDataItemResponse as UpdateDataItemResponse, type index_d$1_UpdateDataItemResponseNonNullableFields as UpdateDataItemResponseNonNullableFields, index_d$1_WebhookIdentityType as WebhookIdentityType, type index_d$1__publicOnDataItemCreatedType as _publicOnDataItemCreatedType, type index_d$1__publicOnDataItemDeletedType as _publicOnDataItemDeletedType, type index_d$1__publicOnDataItemUpdatedType as _publicOnDataItemUpdatedType, index_d$1_aggregateDataItems as aggregateDataItems, index_d$1_bulkInsertDataItemReferences as bulkInsertDataItemReferences, index_d$1_bulkInsertDataItems as bulkInsertDataItems, index_d$1_bulkRemoveDataItemReferences as bulkRemoveDataItemReferences, index_d$1_bulkRemoveDataItems as bulkRemoveDataItems, index_d$1_bulkSaveDataItems as bulkSaveDataItems, index_d$1_bulkUpdateDataItems as bulkUpdateDataItems, index_d$1_countDataItems as countDataItems, index_d$1_getDataItem as getDataItem, index_d$1_insertDataItem as insertDataItem, index_d$1_insertDataItemReference as insertDataItemReference, index_d$1_isReferencedDataItem as isReferencedDataItem, index_d$1_onDataItemCreated as onDataItemCreated, index_d$1_onDataItemDeleted as onDataItemDeleted, index_d$1_onDataItemUpdated as onDataItemUpdated, onDataItemCreated$1 as publicOnDataItemCreated, onDataItemDeleted$1 as publicOnDataItemDeleted, onDataItemUpdated$1 as publicOnDataItemUpdated, index_d$1_queryDataItems as queryDataItems, index_d$1_queryDistinctValues as queryDistinctValues, index_d$1_queryReferencedDataItems as queryReferencedDataItems, index_d$1_removeDataItem as removeDataItem, index_d$1_removeDataItemReference as removeDataItemReference, index_d$1_replaceDataItemReferences as replaceDataItemReferences, index_d$1_saveDataItem as saveDataItem, index_d$1_truncateDataItems as truncateDataItems, index_d$1_updateDataItem as updateDataItem };
5855
- }
5856
-
5857
- type HostModule<T, H extends Host> = {
5858
- __type: 'host';
5859
- create(host: H): T;
5860
- };
5861
- type HostModuleAPI<T extends HostModule<any, any>> = T extends HostModule<infer U, any> ? U : never;
5862
- type Host<Environment = unknown> = {
5863
- channel: {
5864
- observeState(callback: (props: unknown, environment: Environment) => unknown): {
5865
- disconnect: () => void;
5866
- } | Promise<{
5867
- disconnect: () => void;
5868
- }>;
5869
- };
5870
- environment?: Environment;
5871
- /**
5872
- * Optional bast url to use for API requests, for example `www.wixapis.com`
5873
- */
5874
- apiBaseUrl?: string;
5875
- /**
5876
- * Possible data to be provided by every host, for cross cutting concerns
5877
- * like internationalization, billing, etc.
5878
- */
5879
- essentials?: {
5880
- /**
5881
- * The language of the currently viewed session
5882
- */
5883
- language?: string;
5884
- /**
5885
- * The locale of the currently viewed session
5886
- */
5887
- locale?: string;
5888
- /**
5889
- * Any headers that should be passed through to the API requests
5890
- */
5891
- passThroughHeaders?: Record<string, string>;
5892
- };
5893
- };
5894
-
5895
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
5896
- interface HttpClient {
5897
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
5898
- fetchWithAuth: typeof fetch;
5899
- wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
5900
- getActiveToken?: () => string | undefined;
5901
- }
5902
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
5903
- type HttpResponse<T = any> = {
5904
- data: T;
5905
- status: number;
5906
- statusText: string;
5907
- headers: any;
5908
- request?: any;
5909
- };
5910
- type RequestOptions<_TResponse = any, Data = any> = {
5911
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
5912
- url: string;
5913
- data?: Data;
5914
- params?: URLSearchParams;
5915
- } & APIMetadata;
5916
- type APIMetadata = {
5917
- methodFqn?: string;
5918
- entityFqdn?: string;
5919
- packageName?: string;
5920
- };
5921
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
5922
- type EventDefinition<Payload = unknown, Type extends string = string> = {
5923
- __type: 'event-definition';
5924
- type: Type;
5925
- isDomainEvent?: boolean;
5926
- transformations?: (envelope: unknown) => Payload;
5927
- __payload: Payload;
5928
- };
5929
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
5930
- type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
5931
- type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
5932
-
5933
- type ServicePluginMethodInput = {
5934
- request: any;
5935
- metadata: any;
5936
- };
5937
- type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
5938
- type ServicePluginMethodMetadata = {
5939
- name: string;
5940
- primaryHttpMappingPath: string;
5941
- transformations: {
5942
- fromREST: (...args: unknown[]) => ServicePluginMethodInput;
5943
- toREST: (...args: unknown[]) => unknown;
5944
- };
5945
- };
5946
- type ServicePluginDefinition<Contract extends ServicePluginContract> = {
5947
- __type: 'service-plugin-definition';
5948
- componentType: string;
5949
- methods: ServicePluginMethodMetadata[];
5950
- __contract: Contract;
5951
- };
5952
- declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
5953
- type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
5954
- declare const SERVICE_PLUGIN_ERROR_TYPE = "wix_spi_error";
5955
-
5956
- type RequestContext = {
5957
- isSSR: boolean;
5958
- host: string;
5959
- protocol?: string;
5960
- };
5961
- type ResponseTransformer = (data: any, headers?: any) => any;
5962
- /**
5963
- * Ambassador request options types are copied mostly from AxiosRequestConfig.
5964
- * They are copied and not imported to reduce the amount of dependencies (to reduce install time).
5965
- * https://github.com/axios/axios/blob/3f53eb6960f05a1f88409c4b731a40de595cb825/index.d.ts#L307-L315
5966
- */
5967
- type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
5968
- type AmbassadorRequestOptions<T = any> = {
5969
- _?: T;
5970
- url?: string;
5971
- method?: Method;
5972
- params?: any;
5973
- data?: any;
5974
- transformResponse?: ResponseTransformer | ResponseTransformer[];
5975
- };
5976
- type AmbassadorFactory<Request, Response> = (payload: Request) => ((context: RequestContext) => AmbassadorRequestOptions<Response>) & {
5977
- __isAmbassador: boolean;
5978
- };
5979
- type AmbassadorFunctionDescriptor<Request = any, Response = any> = AmbassadorFactory<Request, Response>;
5980
- type BuildAmbassadorFunction<T extends AmbassadorFunctionDescriptor> = T extends AmbassadorFunctionDescriptor<infer Request, infer Response> ? (req: Request) => Promise<Response> : never;
5981
-
5982
- declare global {
5983
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5984
- interface SymbolConstructor {
5985
- readonly observable: symbol;
5986
- }
5987
- }
5988
-
5989
- declare const emptyObjectSymbol: unique symbol;
5990
-
5991
- /**
5992
- Represents a strictly empty plain object, the `{}` value.
5993
-
5994
- 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)).
5995
-
5996
- @example
5997
- ```
5998
- import type {EmptyObject} from 'type-fest';
5999
-
6000
- // The following illustrates the problem with `{}`.
6001
- const foo1: {} = {}; // Pass
6002
- const foo2: {} = []; // Pass
6003
- const foo3: {} = 42; // Pass
6004
- const foo4: {} = {a: 1}; // Pass
6005
-
6006
- // With `EmptyObject` only the first case is valid.
6007
- const bar1: EmptyObject = {}; // Pass
6008
- const bar2: EmptyObject = 42; // Fail
6009
- const bar3: EmptyObject = []; // Fail
6010
- const bar4: EmptyObject = {a: 1}; // Fail
6011
- ```
6012
-
6013
- 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}.
6014
-
6015
- @category Object
6016
- */
6017
- type EmptyObject = {[emptyObjectSymbol]?: never};
6018
-
6019
- /**
6020
- Returns a boolean for whether the two given types are equal.
6021
-
6022
- @link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650
6023
- @link https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796
6024
-
6025
- Use-cases:
6026
- - If you want to make a conditional branch based on the result of a comparison of two types.
6027
-
6028
- @example
6029
- ```
6030
- import type {IsEqual} from 'type-fest';
6031
-
6032
- // This type returns a boolean for whether the given array includes the given item.
6033
- // `IsEqual` is used to compare the given array at position 0 and the given item and then return true if they are equal.
6034
- type Includes<Value extends readonly any[], Item> =
6035
- Value extends readonly [Value[0], ...infer rest]
6036
- ? IsEqual<Value[0], Item> extends true
6037
- ? true
6038
- : Includes<rest, Item>
6039
- : false;
6040
- ```
6041
-
6042
- @category Type Guard
6043
- @category Utilities
6044
- */
6045
- type IsEqual<A, B> =
6046
- (<G>() => G extends A ? 1 : 2) extends
6047
- (<G>() => G extends B ? 1 : 2)
6048
- ? true
6049
- : false;
6050
-
6051
- /**
6052
- Filter out keys from an object.
6053
-
6054
- Returns `never` if `Exclude` is strictly equal to `Key`.
6055
- Returns `never` if `Key` extends `Exclude`.
6056
- Returns `Key` otherwise.
6057
-
6058
- @example
6059
- ```
6060
- type Filtered = Filter<'foo', 'foo'>;
6061
- //=> never
6062
- ```
6063
-
6064
- @example
6065
- ```
6066
- type Filtered = Filter<'bar', string>;
6067
- //=> never
6068
- ```
6069
-
6070
- @example
6071
- ```
6072
- type Filtered = Filter<'bar', 'foo'>;
6073
- //=> 'bar'
6074
- ```
6075
-
6076
- @see {Except}
6077
- */
6078
- type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
6079
-
6080
- type ExceptOptions = {
6081
- /**
6082
- Disallow assigning non-specified properties.
6083
-
6084
- Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.
6085
-
6086
- @default false
6087
- */
6088
- requireExactProps?: boolean;
6089
- };
6090
-
6091
- /**
6092
- Create a type from an object type without certain keys.
6093
-
6094
- We recommend setting the `requireExactProps` option to `true`.
6095
-
6096
- 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.
6097
-
6098
- 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)).
6099
-
6100
- @example
6101
- ```
6102
- import type {Except} from 'type-fest';
6103
-
6104
- type Foo = {
6105
- a: number;
6106
- b: string;
6107
- };
6108
-
6109
- type FooWithoutA = Except<Foo, 'a'>;
6110
- //=> {b: string}
6111
-
6112
- const fooWithoutA: FooWithoutA = {a: 1, b: '2'};
6113
- //=> errors: 'a' does not exist in type '{ b: string; }'
6114
-
6115
- type FooWithoutB = Except<Foo, 'b', {requireExactProps: true}>;
6116
- //=> {a: number} & Partial<Record<"b", never>>
6117
-
6118
- const fooWithoutB: FooWithoutB = {a: 1, b: '2'};
6119
- //=> errors at 'b': Type 'string' is not assignable to type 'undefined'.
6120
- ```
6121
-
6122
- @category Object
6123
- */
6124
- type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {requireExactProps: false}> = {
6125
- [KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
6126
- } & (Options['requireExactProps'] extends true
6127
- ? Partial<Record<KeysType, never>>
6128
- : {});
6129
-
6130
- /**
6131
- Extract the keys from a type where the value type of the key extends the given `Condition`.
6132
-
6133
- Internally this is used for the `ConditionalPick` and `ConditionalExcept` types.
6134
-
6135
- @example
6136
- ```
6137
- import type {ConditionalKeys} from 'type-fest';
6138
-
6139
- interface Example {
6140
- a: string;
6141
- b: string | number;
6142
- c?: string;
6143
- d: {};
6144
- }
6145
-
6146
- type StringKeysOnly = ConditionalKeys<Example, string>;
6147
- //=> 'a'
6148
- ```
6149
-
6150
- To support partial types, make sure your `Condition` is a union of undefined (for example, `string | undefined`) as demonstrated below.
6151
-
6152
- @example
6153
- ```
6154
- import type {ConditionalKeys} from 'type-fest';
6155
-
6156
- type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
6157
- //=> 'a' | 'c'
6158
- ```
6159
-
6160
- @category Object
6161
- */
6162
- type ConditionalKeys<Base, Condition> = NonNullable<
6163
- // Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
6164
- {
6165
- // Map through all the keys of the given base type.
6166
- [Key in keyof Base]:
6167
- // Pick only keys with types extending the given `Condition` type.
6168
- Base[Key] extends Condition
6169
- // Retain this key since the condition passes.
6170
- ? Key
6171
- // Discard this key since the condition fails.
6172
- : never;
6173
-
6174
- // Convert the produced object into a union type of the keys which passed the conditional test.
6175
- }[keyof Base]
6176
- >;
6177
-
6178
- /**
6179
- Exclude keys from a shape that matches the given `Condition`.
6180
-
6181
- 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.
6182
-
6183
- @example
6184
- ```
6185
- import type {Primitive, ConditionalExcept} from 'type-fest';
6186
-
6187
- class Awesome {
6188
- name: string;
6189
- successes: number;
6190
- failures: bigint;
6191
-
6192
- run() {}
6193
- }
6194
-
6195
- type ExceptPrimitivesFromAwesome = ConditionalExcept<Awesome, Primitive>;
6196
- //=> {run: () => void}
6197
- ```
6198
-
6199
- @example
6200
- ```
6201
- import type {ConditionalExcept} from 'type-fest';
4793
+ __payload: Payload;
4794
+ };
4795
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
4796
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
4797
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
6202
4798
 
6203
- interface Example {
6204
- a: string;
6205
- b: string | number;
6206
- c: () => void;
6207
- d: {};
4799
+ declare global {
4800
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
4801
+ interface SymbolConstructor {
4802
+ readonly observable: symbol;
4803
+ }
6208
4804
  }
6209
4805
 
6210
- type NonStringKeysOnly = ConditionalExcept<Example, string>;
6211
- //=> {b: string | number; c: () => void; d: {}}
6212
- ```
6213
-
6214
- @category Object
6215
- */
6216
- type ConditionalExcept<Base, Condition> = Except<
6217
- Base,
6218
- ConditionalKeys<Base, Condition>
6219
- >;
4806
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
4807
+
4808
+ declare const insertDataItem: MaybeContext<BuildRESTFunction<typeof insertDataItem$1> & typeof insertDataItem$1>;
4809
+ declare const updateDataItem: MaybeContext<BuildRESTFunction<typeof updateDataItem$1> & typeof updateDataItem$1>;
4810
+ declare const saveDataItem: MaybeContext<BuildRESTFunction<typeof saveDataItem$1> & typeof saveDataItem$1>;
4811
+ declare const getDataItem: MaybeContext<BuildRESTFunction<typeof getDataItem$1> & typeof getDataItem$1>;
4812
+ declare const removeDataItem: MaybeContext<BuildRESTFunction<typeof removeDataItem$1> & typeof removeDataItem$1>;
4813
+ declare const truncateDataItems: MaybeContext<BuildRESTFunction<typeof truncateDataItems$1> & typeof truncateDataItems$1>;
4814
+ declare const queryDataItems: MaybeContext<BuildRESTFunction<typeof queryDataItems$1> & typeof queryDataItems$1>;
4815
+ declare const aggregateDataItems: MaybeContext<BuildRESTFunction<typeof aggregateDataItems$1> & typeof aggregateDataItems$1>;
4816
+ declare const countDataItems: MaybeContext<BuildRESTFunction<typeof countDataItems$1> & typeof countDataItems$1>;
4817
+ declare const queryDistinctValues: MaybeContext<BuildRESTFunction<typeof queryDistinctValues$1> & typeof queryDistinctValues$1>;
4818
+ declare const bulkInsertDataItems: MaybeContext<BuildRESTFunction<typeof bulkInsertDataItems$1> & typeof bulkInsertDataItems$1>;
4819
+ declare const bulkUpdateDataItems: MaybeContext<BuildRESTFunction<typeof bulkUpdateDataItems$1> & typeof bulkUpdateDataItems$1>;
4820
+ declare const bulkSaveDataItems: MaybeContext<BuildRESTFunction<typeof bulkSaveDataItems$1> & typeof bulkSaveDataItems$1>;
4821
+ declare const bulkRemoveDataItems: MaybeContext<BuildRESTFunction<typeof bulkRemoveDataItems$1> & typeof bulkRemoveDataItems$1>;
4822
+ declare const queryReferencedDataItems: MaybeContext<BuildRESTFunction<typeof queryReferencedDataItems$1> & typeof queryReferencedDataItems$1>;
4823
+ declare const isReferencedDataItem: MaybeContext<BuildRESTFunction<typeof isReferencedDataItem$1> & typeof isReferencedDataItem$1>;
4824
+ declare const insertDataItemReference: MaybeContext<BuildRESTFunction<typeof insertDataItemReference$1> & typeof insertDataItemReference$1>;
4825
+ declare const removeDataItemReference: MaybeContext<BuildRESTFunction<typeof removeDataItemReference$1> & typeof removeDataItemReference$1>;
4826
+ declare const bulkInsertDataItemReferences: MaybeContext<BuildRESTFunction<typeof bulkInsertDataItemReferences$1> & typeof bulkInsertDataItemReferences$1>;
4827
+ declare const bulkRemoveDataItemReferences: MaybeContext<BuildRESTFunction<typeof bulkRemoveDataItemReferences$1> & typeof bulkRemoveDataItemReferences$1>;
4828
+ declare const replaceDataItemReferences: MaybeContext<BuildRESTFunction<typeof replaceDataItemReferences$1> & typeof replaceDataItemReferences$1>;
6220
4829
 
4830
+ type _publicOnDataItemCreatedType = typeof onDataItemCreated$1;
6221
4831
  /**
6222
- * Descriptors are objects that describe the API of a module, and the module
6223
- * can either be a REST module or a host module.
6224
- * This type is recursive, so it can describe nested modules.
4832
+ * Triggered when a data item is inserted.
6225
4833
  */
6226
- type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition<any> | ServicePluginDefinition<any> | {
6227
- [key: string]: Descriptors | PublicMetadata | any;
6228
- };
4834
+ declare const onDataItemCreated: ReturnType<typeof createEventModule<_publicOnDataItemCreatedType>>;
4835
+
4836
+ type _publicOnDataItemUpdatedType = typeof onDataItemUpdated$1;
6229
4837
  /**
6230
- * This type takes in a descriptors object of a certain Host (including an `unknown` host)
6231
- * and returns an object with the same structure, but with all descriptors replaced with their API.
6232
- * Any non-descriptor properties are removed from the returned object, including descriptors that
6233
- * do not match the given host (as they will not work with the given host).
4838
+ * Triggered when a data item is updated.
4839
+ *
4840
+ * **Note**: When [scheduling an item's visibility change](https://support.wix.com/en/article/cms-controlling-live-site-item-visibility-from-your-collection#scheduling-changes-to-item-visibility), the event is triggered when the scheduled change is set up, not when it goes into effect.
6234
4841
  */
6235
- type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, Depth extends number = 5> = {
6236
- done: T;
6237
- recurse: T extends {
6238
- __type: typeof SERVICE_PLUGIN_ERROR_TYPE;
6239
- } ? 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<{
6240
- [Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
6241
- -1,
6242
- 0,
6243
- 1,
6244
- 2,
6245
- 3,
6246
- 4,
6247
- 5
6248
- ][Depth]> : never;
6249
- }, EmptyObject>;
6250
- }[Depth extends -1 ? 'done' : 'recurse'];
6251
- type PublicMetadata = {
6252
- PACKAGE_NAME?: string;
6253
- };
4842
+ declare const onDataItemUpdated: ReturnType<typeof createEventModule<_publicOnDataItemUpdatedType>>;
6254
4843
 
6255
- declare global {
6256
- interface ContextualClient {
6257
- }
6258
- }
4844
+ type _publicOnDataItemDeletedType = typeof onDataItemDeleted$1;
6259
4845
  /**
6260
- * A type used to create concerete types from SDK descriptors in
6261
- * case a contextual client is available.
4846
+ * Triggered when a data item is deleted.
6262
4847
  */
6263
- type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
6264
- host: Host;
6265
- } ? BuildDescriptors<T, globalThis.ContextualClient['host']> : T;
4848
+ declare const onDataItemDeleted: ReturnType<typeof createEventModule<_publicOnDataItemDeletedType>>;
4849
+
4850
+ type index_d$1_ACTION = ACTION;
4851
+ declare const index_d$1_ACTION: typeof ACTION;
4852
+ type index_d$1_Action = Action;
4853
+ declare const index_d$1_Action: typeof Action;
4854
+ type index_d$1_ActionEvent = ActionEvent;
4855
+ type index_d$1_AggregateDataItemsOptions = AggregateDataItemsOptions;
4856
+ type index_d$1_AggregateDataItemsRequest = AggregateDataItemsRequest;
4857
+ type index_d$1_AggregateDataItemsRequestPagingMethodOneOf = AggregateDataItemsRequestPagingMethodOneOf;
4858
+ type index_d$1_AggregateDataItemsResponse = AggregateDataItemsResponse;
4859
+ type index_d$1_Aggregation = Aggregation;
4860
+ type index_d$1_AppendToArray = AppendToArray;
4861
+ type index_d$1_ApplicationError = ApplicationError;
4862
+ type index_d$1_Average = Average;
4863
+ type index_d$1_BaseEventMetadata = BaseEventMetadata;
4864
+ type index_d$1_BulkActionMetadata = BulkActionMetadata;
4865
+ type index_d$1_BulkActionType = BulkActionType;
4866
+ declare const index_d$1_BulkActionType: typeof BulkActionType;
4867
+ type index_d$1_BulkDataItemReferenceResult = BulkDataItemReferenceResult;
4868
+ type index_d$1_BulkDataItemResult = BulkDataItemResult;
4869
+ type index_d$1_BulkInsertDataItemReferencesOptions = BulkInsertDataItemReferencesOptions;
4870
+ type index_d$1_BulkInsertDataItemReferencesRequest = BulkInsertDataItemReferencesRequest;
4871
+ type index_d$1_BulkInsertDataItemReferencesResponse = BulkInsertDataItemReferencesResponse;
4872
+ type index_d$1_BulkInsertDataItemReferencesResponseNonNullableFields = BulkInsertDataItemReferencesResponseNonNullableFields;
4873
+ type index_d$1_BulkInsertDataItemsOptions = BulkInsertDataItemsOptions;
4874
+ type index_d$1_BulkInsertDataItemsRequest = BulkInsertDataItemsRequest;
4875
+ type index_d$1_BulkInsertDataItemsResponse = BulkInsertDataItemsResponse;
4876
+ type index_d$1_BulkInsertDataItemsResponseNonNullableFields = BulkInsertDataItemsResponseNonNullableFields;
4877
+ type index_d$1_BulkPatchDataItemsRequest = BulkPatchDataItemsRequest;
4878
+ type index_d$1_BulkPatchDataItemsResponse = BulkPatchDataItemsResponse;
4879
+ type index_d$1_BulkRemoveDataItemReferencesOptions = BulkRemoveDataItemReferencesOptions;
4880
+ type index_d$1_BulkRemoveDataItemReferencesRequest = BulkRemoveDataItemReferencesRequest;
4881
+ type index_d$1_BulkRemoveDataItemReferencesResponse = BulkRemoveDataItemReferencesResponse;
4882
+ type index_d$1_BulkRemoveDataItemReferencesResponseNonNullableFields = BulkRemoveDataItemReferencesResponseNonNullableFields;
4883
+ type index_d$1_BulkRemoveDataItemsOptions = BulkRemoveDataItemsOptions;
4884
+ type index_d$1_BulkRemoveDataItemsRequest = BulkRemoveDataItemsRequest;
4885
+ type index_d$1_BulkRemoveDataItemsResponse = BulkRemoveDataItemsResponse;
4886
+ type index_d$1_BulkRemoveDataItemsResponseNonNullableFields = BulkRemoveDataItemsResponseNonNullableFields;
4887
+ type index_d$1_BulkSaveDataItemsOptions = BulkSaveDataItemsOptions;
4888
+ type index_d$1_BulkSaveDataItemsRequest = BulkSaveDataItemsRequest;
4889
+ type index_d$1_BulkSaveDataItemsResponse = BulkSaveDataItemsResponse;
4890
+ type index_d$1_BulkSaveDataItemsResponseNonNullableFields = BulkSaveDataItemsResponseNonNullableFields;
4891
+ type index_d$1_BulkUpdateDataItemsOptions = BulkUpdateDataItemsOptions;
4892
+ type index_d$1_BulkUpdateDataItemsRequest = BulkUpdateDataItemsRequest;
4893
+ type index_d$1_BulkUpdateDataItemsResponse = BulkUpdateDataItemsResponse;
4894
+ type index_d$1_BulkUpdateDataItemsResponseNonNullableFields = BulkUpdateDataItemsResponseNonNullableFields;
4895
+ type index_d$1_CachingInfo = CachingInfo;
4896
+ type index_d$1_Count = Count;
4897
+ type index_d$1_CountDataItemsOptions = CountDataItemsOptions;
4898
+ type index_d$1_CountDataItemsRequest = CountDataItemsRequest;
4899
+ type index_d$1_CountDataItemsResponse = CountDataItemsResponse;
4900
+ type index_d$1_CountDataItemsResponseNonNullableFields = CountDataItemsResponseNonNullableFields;
4901
+ type index_d$1_CursorPaging = CursorPaging;
4902
+ type index_d$1_Cursors = Cursors;
4903
+ type index_d$1_DataItem = DataItem;
4904
+ type index_d$1_DataItemCreatedEnvelope = DataItemCreatedEnvelope;
4905
+ type index_d$1_DataItemDeletedEnvelope = DataItemDeletedEnvelope;
4906
+ type index_d$1_DataItemNonNullableFields = DataItemNonNullableFields;
4907
+ type index_d$1_DataItemReference = DataItemReference;
4908
+ type index_d$1_DataItemUpdatedEnvelope = DataItemUpdatedEnvelope;
4909
+ type index_d$1_DataItemsQueryBuilder = DataItemsQueryBuilder;
4910
+ type index_d$1_DataItemsQueryResult = DataItemsQueryResult;
4911
+ type index_d$1_DataPublishPluginOptions = DataPublishPluginOptions;
4912
+ type index_d$1_DomainEvent = DomainEvent;
4913
+ type index_d$1_DomainEventBodyOneOf = DomainEventBodyOneOf;
4914
+ type index_d$1_EntityCreatedEvent = EntityCreatedEvent;
4915
+ type index_d$1_EntityDeletedEvent = EntityDeletedEvent;
4916
+ type index_d$1_EntityUpdatedEvent = EntityUpdatedEvent;
4917
+ type index_d$1_EventMetadata = EventMetadata;
4918
+ type index_d$1_FieldUpdate = FieldUpdate;
4919
+ type index_d$1_FieldUpdateActionOptionsOneOf = FieldUpdateActionOptionsOneOf;
4920
+ type index_d$1_GetDataItemOptions = GetDataItemOptions;
4921
+ type index_d$1_GetDataItemRequest = GetDataItemRequest;
4922
+ type index_d$1_GetDataItemResponse = GetDataItemResponse;
4923
+ type index_d$1_GetDataItemResponseNonNullableFields = GetDataItemResponseNonNullableFields;
4924
+ type index_d$1_IdentificationData = IdentificationData;
4925
+ type index_d$1_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
4926
+ type index_d$1_IncrementField = IncrementField;
4927
+ type index_d$1_InsertDataItemOptions = InsertDataItemOptions;
4928
+ type index_d$1_InsertDataItemReferenceOptions = InsertDataItemReferenceOptions;
4929
+ type index_d$1_InsertDataItemReferenceRequest = InsertDataItemReferenceRequest;
4930
+ type index_d$1_InsertDataItemReferenceResponse = InsertDataItemReferenceResponse;
4931
+ type index_d$1_InsertDataItemReferenceResponseNonNullableFields = InsertDataItemReferenceResponseNonNullableFields;
4932
+ type index_d$1_InsertDataItemRequest = InsertDataItemRequest;
4933
+ type index_d$1_InsertDataItemResponse = InsertDataItemResponse;
4934
+ type index_d$1_InsertDataItemResponseNonNullableFields = InsertDataItemResponseNonNullableFields;
4935
+ type index_d$1_IsReferencedDataItemOptions = IsReferencedDataItemOptions;
4936
+ type index_d$1_IsReferencedDataItemRequest = IsReferencedDataItemRequest;
4937
+ type index_d$1_IsReferencedDataItemResponse = IsReferencedDataItemResponse;
4938
+ type index_d$1_IsReferencedDataItemResponseNonNullableFields = IsReferencedDataItemResponseNonNullableFields;
4939
+ type index_d$1_ItemMetadata = ItemMetadata;
4940
+ type index_d$1_Max = Max;
4941
+ type index_d$1_MessageEnvelope = MessageEnvelope;
4942
+ type index_d$1_Min = Min;
4943
+ type index_d$1_Operation = Operation;
4944
+ type index_d$1_OperationCalculateOneOf = OperationCalculateOneOf;
4945
+ type index_d$1_Options = Options;
4946
+ type index_d$1_PagingMetadataV2 = PagingMetadataV2;
4947
+ type index_d$1_PatchDataItemRequest = PatchDataItemRequest;
4948
+ type index_d$1_PatchDataItemResponse = PatchDataItemResponse;
4949
+ type index_d$1_PatchSet = PatchSet;
4950
+ type index_d$1_PublishPluginOptions = PublishPluginOptions;
4951
+ type index_d$1_QueryDataItemsOptions = QueryDataItemsOptions;
4952
+ type index_d$1_QueryDataItemsRequest = QueryDataItemsRequest;
4953
+ type index_d$1_QueryDataItemsResponse = QueryDataItemsResponse;
4954
+ type index_d$1_QueryDataItemsResponseNonNullableFields = QueryDataItemsResponseNonNullableFields;
4955
+ type index_d$1_QueryDistinctValuesOptions = QueryDistinctValuesOptions;
4956
+ type index_d$1_QueryDistinctValuesRequest = QueryDistinctValuesRequest;
4957
+ type index_d$1_QueryDistinctValuesRequestPagingMethodOneOf = QueryDistinctValuesRequestPagingMethodOneOf;
4958
+ type index_d$1_QueryDistinctValuesResponse = QueryDistinctValuesResponse;
4959
+ type index_d$1_QueryReferencedDataItemsOptions = QueryReferencedDataItemsOptions;
4960
+ type index_d$1_QueryReferencedDataItemsRequest = QueryReferencedDataItemsRequest;
4961
+ type index_d$1_QueryReferencedDataItemsRequestPagingMethodOneOf = QueryReferencedDataItemsRequestPagingMethodOneOf;
4962
+ type index_d$1_QueryReferencedDataItemsResponse = QueryReferencedDataItemsResponse;
4963
+ type index_d$1_QueryReferencedDataItemsResponseNonNullableFields = QueryReferencedDataItemsResponseNonNullableFields;
4964
+ type index_d$1_QueryV2 = QueryV2;
4965
+ type index_d$1_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
4966
+ type index_d$1_ReferencedItemOptions = ReferencedItemOptions;
4967
+ type index_d$1_ReferencedResult = ReferencedResult;
4968
+ type index_d$1_ReferencedResultEntityOneOf = ReferencedResultEntityOneOf;
4969
+ type index_d$1_RemoveDataItemOptions = RemoveDataItemOptions;
4970
+ type index_d$1_RemoveDataItemReferenceOptions = RemoveDataItemReferenceOptions;
4971
+ type index_d$1_RemoveDataItemReferenceRequest = RemoveDataItemReferenceRequest;
4972
+ type index_d$1_RemoveDataItemReferenceResponse = RemoveDataItemReferenceResponse;
4973
+ type index_d$1_RemoveDataItemReferenceResponseNonNullableFields = RemoveDataItemReferenceResponseNonNullableFields;
4974
+ type index_d$1_RemoveDataItemRequest = RemoveDataItemRequest;
4975
+ type index_d$1_RemoveDataItemResponse = RemoveDataItemResponse;
4976
+ type index_d$1_RemoveDataItemResponseNonNullableFields = RemoveDataItemResponseNonNullableFields;
4977
+ type index_d$1_RemoveFromArray = RemoveFromArray;
4978
+ type index_d$1_ReplaceDataItemReferencesOptions = ReplaceDataItemReferencesOptions;
4979
+ type index_d$1_ReplaceDataItemReferencesRequest = ReplaceDataItemReferencesRequest;
4980
+ type index_d$1_ReplaceDataItemReferencesResponse = ReplaceDataItemReferencesResponse;
4981
+ type index_d$1_ReplaceDataItemReferencesResponseNonNullableFields = ReplaceDataItemReferencesResponseNonNullableFields;
4982
+ type index_d$1_RestoreInfo = RestoreInfo;
4983
+ type index_d$1_SaveDataItemOptions = SaveDataItemOptions;
4984
+ type index_d$1_SaveDataItemRequest = SaveDataItemRequest;
4985
+ type index_d$1_SaveDataItemResponse = SaveDataItemResponse;
4986
+ type index_d$1_SaveDataItemResponseNonNullableFields = SaveDataItemResponseNonNullableFields;
4987
+ type index_d$1_SetField = SetField;
4988
+ type index_d$1_SortOrder = SortOrder;
4989
+ declare const index_d$1_SortOrder: typeof SortOrder;
4990
+ type index_d$1_Sorting = Sorting;
4991
+ type index_d$1_Sum = Sum;
4992
+ type index_d$1_TruncateDataItemsOptions = TruncateDataItemsOptions;
4993
+ type index_d$1_TruncateDataItemsRequest = TruncateDataItemsRequest;
4994
+ type index_d$1_TruncateDataItemsResponse = TruncateDataItemsResponse;
4995
+ type index_d$1_UnresolvedReference = UnresolvedReference;
4996
+ type index_d$1_UpdateDataItemOptions = UpdateDataItemOptions;
4997
+ type index_d$1_UpdateDataItemRequest = UpdateDataItemRequest;
4998
+ type index_d$1_UpdateDataItemResponse = UpdateDataItemResponse;
4999
+ type index_d$1_UpdateDataItemResponseNonNullableFields = UpdateDataItemResponseNonNullableFields;
5000
+ type index_d$1_WebhookIdentityType = WebhookIdentityType;
5001
+ declare const index_d$1_WebhookIdentityType: typeof WebhookIdentityType;
5002
+ type index_d$1__publicOnDataItemCreatedType = _publicOnDataItemCreatedType;
5003
+ type index_d$1__publicOnDataItemDeletedType = _publicOnDataItemDeletedType;
5004
+ type index_d$1__publicOnDataItemUpdatedType = _publicOnDataItemUpdatedType;
5005
+ declare const index_d$1_aggregateDataItems: typeof aggregateDataItems;
5006
+ declare const index_d$1_bulkInsertDataItemReferences: typeof bulkInsertDataItemReferences;
5007
+ declare const index_d$1_bulkInsertDataItems: typeof bulkInsertDataItems;
5008
+ declare const index_d$1_bulkRemoveDataItemReferences: typeof bulkRemoveDataItemReferences;
5009
+ declare const index_d$1_bulkRemoveDataItems: typeof bulkRemoveDataItems;
5010
+ declare const index_d$1_bulkSaveDataItems: typeof bulkSaveDataItems;
5011
+ declare const index_d$1_bulkUpdateDataItems: typeof bulkUpdateDataItems;
5012
+ declare const index_d$1_countDataItems: typeof countDataItems;
5013
+ declare const index_d$1_getDataItem: typeof getDataItem;
5014
+ declare const index_d$1_insertDataItem: typeof insertDataItem;
5015
+ declare const index_d$1_insertDataItemReference: typeof insertDataItemReference;
5016
+ declare const index_d$1_isReferencedDataItem: typeof isReferencedDataItem;
5017
+ declare const index_d$1_onDataItemCreated: typeof onDataItemCreated;
5018
+ declare const index_d$1_onDataItemDeleted: typeof onDataItemDeleted;
5019
+ declare const index_d$1_onDataItemUpdated: typeof onDataItemUpdated;
5020
+ declare const index_d$1_queryDataItems: typeof queryDataItems;
5021
+ declare const index_d$1_queryDistinctValues: typeof queryDistinctValues;
5022
+ declare const index_d$1_queryReferencedDataItems: typeof queryReferencedDataItems;
5023
+ declare const index_d$1_removeDataItem: typeof removeDataItem;
5024
+ declare const index_d$1_removeDataItemReference: typeof removeDataItemReference;
5025
+ declare const index_d$1_replaceDataItemReferences: typeof replaceDataItemReferences;
5026
+ declare const index_d$1_saveDataItem: typeof saveDataItem;
5027
+ declare const index_d$1_truncateDataItems: typeof truncateDataItems;
5028
+ declare const index_d$1_updateDataItem: typeof updateDataItem;
5029
+ declare namespace index_d$1 {
5030
+ export { index_d$1_ACTION as ACTION, index_d$1_Action as Action, type index_d$1_ActionEvent as ActionEvent, type index_d$1_AggregateDataItemsOptions as AggregateDataItemsOptions, type index_d$1_AggregateDataItemsRequest as AggregateDataItemsRequest, type index_d$1_AggregateDataItemsRequestPagingMethodOneOf as AggregateDataItemsRequestPagingMethodOneOf, type index_d$1_AggregateDataItemsResponse as AggregateDataItemsResponse, type index_d$1_Aggregation as Aggregation, type index_d$1_AppendToArray as AppendToArray, type index_d$1_ApplicationError as ApplicationError, type index_d$1_Average as Average, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_BulkActionMetadata as BulkActionMetadata, index_d$1_BulkActionType as BulkActionType, type index_d$1_BulkDataItemReferenceResult as BulkDataItemReferenceResult, type index_d$1_BulkDataItemResult as BulkDataItemResult, type index_d$1_BulkInsertDataItemReferencesOptions as BulkInsertDataItemReferencesOptions, type index_d$1_BulkInsertDataItemReferencesRequest as BulkInsertDataItemReferencesRequest, type index_d$1_BulkInsertDataItemReferencesResponse as BulkInsertDataItemReferencesResponse, type index_d$1_BulkInsertDataItemReferencesResponseNonNullableFields as BulkInsertDataItemReferencesResponseNonNullableFields, type index_d$1_BulkInsertDataItemsOptions as BulkInsertDataItemsOptions, type index_d$1_BulkInsertDataItemsRequest as BulkInsertDataItemsRequest, type index_d$1_BulkInsertDataItemsResponse as BulkInsertDataItemsResponse, type index_d$1_BulkInsertDataItemsResponseNonNullableFields as BulkInsertDataItemsResponseNonNullableFields, type index_d$1_BulkPatchDataItemsRequest as BulkPatchDataItemsRequest, type index_d$1_BulkPatchDataItemsResponse as BulkPatchDataItemsResponse, type index_d$1_BulkRemoveDataItemReferencesOptions as BulkRemoveDataItemReferencesOptions, type index_d$1_BulkRemoveDataItemReferencesRequest as BulkRemoveDataItemReferencesRequest, type index_d$1_BulkRemoveDataItemReferencesResponse as BulkRemoveDataItemReferencesResponse, type index_d$1_BulkRemoveDataItemReferencesResponseNonNullableFields as BulkRemoveDataItemReferencesResponseNonNullableFields, type index_d$1_BulkRemoveDataItemsOptions as BulkRemoveDataItemsOptions, type index_d$1_BulkRemoveDataItemsRequest as BulkRemoveDataItemsRequest, type index_d$1_BulkRemoveDataItemsResponse as BulkRemoveDataItemsResponse, type index_d$1_BulkRemoveDataItemsResponseNonNullableFields as BulkRemoveDataItemsResponseNonNullableFields, type index_d$1_BulkSaveDataItemsOptions as BulkSaveDataItemsOptions, type index_d$1_BulkSaveDataItemsRequest as BulkSaveDataItemsRequest, type index_d$1_BulkSaveDataItemsResponse as BulkSaveDataItemsResponse, type index_d$1_BulkSaveDataItemsResponseNonNullableFields as BulkSaveDataItemsResponseNonNullableFields, type index_d$1_BulkUpdateDataItemsOptions as BulkUpdateDataItemsOptions, type index_d$1_BulkUpdateDataItemsRequest as BulkUpdateDataItemsRequest, type index_d$1_BulkUpdateDataItemsResponse as BulkUpdateDataItemsResponse, type index_d$1_BulkUpdateDataItemsResponseNonNullableFields as BulkUpdateDataItemsResponseNonNullableFields, type index_d$1_CachingInfo as CachingInfo, type index_d$1_Count as Count, type index_d$1_CountDataItemsOptions as CountDataItemsOptions, type index_d$1_CountDataItemsRequest as CountDataItemsRequest, type index_d$1_CountDataItemsResponse as CountDataItemsResponse, type index_d$1_CountDataItemsResponseNonNullableFields as CountDataItemsResponseNonNullableFields, type index_d$1_CursorPaging as CursorPaging, type index_d$1_Cursors as Cursors, type index_d$1_DataItem as DataItem, type index_d$1_DataItemCreatedEnvelope as DataItemCreatedEnvelope, type index_d$1_DataItemDeletedEnvelope as DataItemDeletedEnvelope, type index_d$1_DataItemNonNullableFields as DataItemNonNullableFields, type index_d$1_DataItemReference as DataItemReference, type index_d$1_DataItemUpdatedEnvelope as DataItemUpdatedEnvelope, type index_d$1_DataItemsQueryBuilder as DataItemsQueryBuilder, type index_d$1_DataItemsQueryResult as DataItemsQueryResult, type index_d$1_DataPublishPluginOptions as DataPublishPluginOptions, type index_d$1_DomainEvent as DomainEvent, type index_d$1_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$1_EntityCreatedEvent as EntityCreatedEvent, type index_d$1_EntityDeletedEvent as EntityDeletedEvent, type index_d$1_EntityUpdatedEvent as EntityUpdatedEvent, Environment$1 as Environment, type index_d$1_EventMetadata as EventMetadata, type index_d$1_FieldUpdate as FieldUpdate, type index_d$1_FieldUpdateActionOptionsOneOf as FieldUpdateActionOptionsOneOf, type index_d$1_GetDataItemOptions as GetDataItemOptions, type index_d$1_GetDataItemRequest as GetDataItemRequest, type index_d$1_GetDataItemResponse as GetDataItemResponse, type index_d$1_GetDataItemResponseNonNullableFields as GetDataItemResponseNonNullableFields, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$1_IncrementField as IncrementField, type index_d$1_InsertDataItemOptions as InsertDataItemOptions, type index_d$1_InsertDataItemReferenceOptions as InsertDataItemReferenceOptions, type index_d$1_InsertDataItemReferenceRequest as InsertDataItemReferenceRequest, type index_d$1_InsertDataItemReferenceResponse as InsertDataItemReferenceResponse, type index_d$1_InsertDataItemReferenceResponseNonNullableFields as InsertDataItemReferenceResponseNonNullableFields, type index_d$1_InsertDataItemRequest as InsertDataItemRequest, type index_d$1_InsertDataItemResponse as InsertDataItemResponse, type index_d$1_InsertDataItemResponseNonNullableFields as InsertDataItemResponseNonNullableFields, type index_d$1_IsReferencedDataItemOptions as IsReferencedDataItemOptions, type index_d$1_IsReferencedDataItemRequest as IsReferencedDataItemRequest, type index_d$1_IsReferencedDataItemResponse as IsReferencedDataItemResponse, type index_d$1_IsReferencedDataItemResponseNonNullableFields as IsReferencedDataItemResponseNonNullableFields, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_Max as Max, type index_d$1_MessageEnvelope as MessageEnvelope, type index_d$1_Min as Min, type index_d$1_Operation as Operation, type index_d$1_OperationCalculateOneOf as OperationCalculateOneOf, type index_d$1_Options as Options, type Paging$1 as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_PatchDataItemRequest as PatchDataItemRequest, type index_d$1_PatchDataItemResponse as PatchDataItemResponse, type index_d$1_PatchSet as PatchSet, type index_d$1_PublishPluginOptions as PublishPluginOptions, type index_d$1_QueryDataItemsOptions as QueryDataItemsOptions, type index_d$1_QueryDataItemsRequest as QueryDataItemsRequest, type index_d$1_QueryDataItemsResponse as QueryDataItemsResponse, type index_d$1_QueryDataItemsResponseNonNullableFields as QueryDataItemsResponseNonNullableFields, type index_d$1_QueryDistinctValuesOptions as QueryDistinctValuesOptions, type index_d$1_QueryDistinctValuesRequest as QueryDistinctValuesRequest, type index_d$1_QueryDistinctValuesRequestPagingMethodOneOf as QueryDistinctValuesRequestPagingMethodOneOf, type index_d$1_QueryDistinctValuesResponse as QueryDistinctValuesResponse, type index_d$1_QueryReferencedDataItemsOptions as QueryReferencedDataItemsOptions, type index_d$1_QueryReferencedDataItemsRequest as QueryReferencedDataItemsRequest, type index_d$1_QueryReferencedDataItemsRequestPagingMethodOneOf as QueryReferencedDataItemsRequestPagingMethodOneOf, type index_d$1_QueryReferencedDataItemsResponse as QueryReferencedDataItemsResponse, type index_d$1_QueryReferencedDataItemsResponseNonNullableFields as QueryReferencedDataItemsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_ReferencedItemOptions as ReferencedItemOptions, type index_d$1_ReferencedResult as ReferencedResult, type index_d$1_ReferencedResultEntityOneOf as ReferencedResultEntityOneOf, type index_d$1_RemoveDataItemOptions as RemoveDataItemOptions, type index_d$1_RemoveDataItemReferenceOptions as RemoveDataItemReferenceOptions, type index_d$1_RemoveDataItemReferenceRequest as RemoveDataItemReferenceRequest, type index_d$1_RemoveDataItemReferenceResponse as RemoveDataItemReferenceResponse, type index_d$1_RemoveDataItemReferenceResponseNonNullableFields as RemoveDataItemReferenceResponseNonNullableFields, type index_d$1_RemoveDataItemRequest as RemoveDataItemRequest, type index_d$1_RemoveDataItemResponse as RemoveDataItemResponse, type index_d$1_RemoveDataItemResponseNonNullableFields as RemoveDataItemResponseNonNullableFields, type index_d$1_RemoveFromArray as RemoveFromArray, type index_d$1_ReplaceDataItemReferencesOptions as ReplaceDataItemReferencesOptions, type index_d$1_ReplaceDataItemReferencesRequest as ReplaceDataItemReferencesRequest, type index_d$1_ReplaceDataItemReferencesResponse as ReplaceDataItemReferencesResponse, type index_d$1_ReplaceDataItemReferencesResponseNonNullableFields as ReplaceDataItemReferencesResponseNonNullableFields, type index_d$1_RestoreInfo as RestoreInfo, type index_d$1_SaveDataItemOptions as SaveDataItemOptions, type index_d$1_SaveDataItemRequest as SaveDataItemRequest, type index_d$1_SaveDataItemResponse as SaveDataItemResponse, type index_d$1_SaveDataItemResponseNonNullableFields as SaveDataItemResponseNonNullableFields, type index_d$1_SetField as SetField, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_Sum as Sum, type index_d$1_TruncateDataItemsOptions as TruncateDataItemsOptions, type index_d$1_TruncateDataItemsRequest as TruncateDataItemsRequest, type index_d$1_TruncateDataItemsResponse as TruncateDataItemsResponse, type index_d$1_UnresolvedReference as UnresolvedReference, type index_d$1_UpdateDataItemOptions as UpdateDataItemOptions, type index_d$1_UpdateDataItemRequest as UpdateDataItemRequest, type index_d$1_UpdateDataItemResponse as UpdateDataItemResponse, type index_d$1_UpdateDataItemResponseNonNullableFields as UpdateDataItemResponseNonNullableFields, index_d$1_WebhookIdentityType as WebhookIdentityType, type index_d$1__publicOnDataItemCreatedType as _publicOnDataItemCreatedType, type index_d$1__publicOnDataItemDeletedType as _publicOnDataItemDeletedType, type index_d$1__publicOnDataItemUpdatedType as _publicOnDataItemUpdatedType, index_d$1_aggregateDataItems as aggregateDataItems, index_d$1_bulkInsertDataItemReferences as bulkInsertDataItemReferences, index_d$1_bulkInsertDataItems as bulkInsertDataItems, index_d$1_bulkRemoveDataItemReferences as bulkRemoveDataItemReferences, index_d$1_bulkRemoveDataItems as bulkRemoveDataItems, index_d$1_bulkSaveDataItems as bulkSaveDataItems, index_d$1_bulkUpdateDataItems as bulkUpdateDataItems, index_d$1_countDataItems as countDataItems, index_d$1_getDataItem as getDataItem, index_d$1_insertDataItem as insertDataItem, index_d$1_insertDataItemReference as insertDataItemReference, index_d$1_isReferencedDataItem as isReferencedDataItem, index_d$1_onDataItemCreated as onDataItemCreated, index_d$1_onDataItemDeleted as onDataItemDeleted, index_d$1_onDataItemUpdated as onDataItemUpdated, onDataItemCreated$1 as publicOnDataItemCreated, onDataItemDeleted$1 as publicOnDataItemDeleted, onDataItemUpdated$1 as publicOnDataItemUpdated, index_d$1_queryDataItems as queryDataItems, index_d$1_queryDistinctValues as queryDistinctValues, index_d$1_queryReferencedDataItems as queryReferencedDataItems, index_d$1_removeDataItem as removeDataItem, index_d$1_removeDataItemReference as removeDataItemReference, index_d$1_replaceDataItemReferences as replaceDataItemReferences, index_d$1_saveDataItem as saveDataItem, index_d$1_truncateDataItems as truncateDataItems, index_d$1_updateDataItem as updateDataItem };
5031
+ }
6266
5032
 
6267
5033
  /** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
6268
5034
  interface Index {