@wix/motion 1.0.41 → 1.0.42

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.
@@ -46,7 +46,7 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
46
46
  slug?: string;
47
47
  /** ID of the entity associated with the event. */
48
48
  entityId?: string;
49
- /** Event timestamp. */
49
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
50
50
  eventTime?: Date;
51
51
  /**
52
52
  * Whether the event was triggered as a result of a privacy regulation application
@@ -75,6 +75,9 @@ interface DomainEventBodyOneOf$2 {
75
75
  interface EntityCreatedEvent$2 {
76
76
  entity?: string;
77
77
  }
78
+ interface RestoreInfo$2 {
79
+ deletedDate?: Date;
80
+ }
78
81
  interface EntityUpdatedEvent$2 {
79
82
  /**
80
83
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
@@ -138,11 +141,12 @@ interface UpdateAlarmRequestRequiredFields {
138
141
  _id: string;
139
142
  };
140
143
  }
144
+ interface AlarmMessageNonNullableFields {
145
+ _id: string;
146
+ seconds: number;
147
+ }
141
148
  interface UpdateAlarmResponseNonNullableFields {
142
- alarm?: {
143
- _id: string;
144
- seconds: number;
145
- };
149
+ alarm?: AlarmMessageNonNullableFields;
146
150
  }
147
151
  interface BaseEventMetadata$1 {
148
152
  /** App instance ID. */
@@ -171,7 +175,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
171
175
  slug?: string;
172
176
  /** ID of the entity associated with the event. */
173
177
  entityId?: string;
174
- /** Event timestamp. */
178
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
175
179
  eventTime?: Date;
176
180
  /**
177
181
  * Whether the event was triggered as a result of a privacy regulation application
@@ -212,97 +216,59 @@ interface UpdateAlarm {
212
216
  seconds?: number;
213
217
  }
214
218
 
215
- interface HttpClient$2 {
216
- request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
219
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
220
+ interface HttpClient {
221
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
222
+ fetchWithAuth: typeof fetch;
223
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
217
224
  }
218
- type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
219
- type HttpResponse$2<T = any> = {
225
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
226
+ type HttpResponse<T = any> = {
220
227
  data: T;
221
228
  status: number;
222
229
  statusText: string;
223
230
  headers: any;
224
231
  request?: any;
225
232
  };
226
- type RequestOptions$2<_TResponse = any, Data = any> = {
233
+ type RequestOptions<_TResponse = any, Data = any> = {
227
234
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
228
235
  url: string;
229
236
  data?: Data;
230
237
  params?: URLSearchParams;
231
- } & APIMetadata$2;
232
- type APIMetadata$2 = {
238
+ } & APIMetadata;
239
+ type APIMetadata = {
233
240
  methodFqn?: string;
234
241
  entityFqdn?: string;
235
242
  packageName?: string;
236
243
  };
237
- type EventDefinition$1<Payload = unknown, Type extends string = string> = {
244
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
245
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
238
246
  __type: 'event-definition';
239
247
  type: Type;
240
248
  isDomainEvent?: boolean;
241
- transformations?: unknown;
249
+ transformations?: (envelope: unknown) => Payload;
242
250
  __payload: Payload;
243
251
  };
244
- declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
252
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
253
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
254
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
245
255
 
246
- declare const __metadata$2: {
247
- PACKAGE_NAME: string;
248
- };
249
- /**
250
- * Creates a booking.
251
- *
252
- *
253
- * To create a booking for an appointment or a session of a class, pass a booking with the relevant `slot`.
254
- *
255
- * To create a booking for the entire course, pass a booking with the relevant `schedule`.
256
- * You can use Query Availability to check the availability beforehand.
257
- *
258
- * If you create a booking for an existing session, we recommend that you only pass `slot.sessionId`.
259
- * Then, any specified slot details are calculated.
260
- *
261
- * If you create a booking for a new session, we recommend to call Query Availability first.
262
- * Then, pass the retrieved `availability.slot` object as the BookedEntity.Slot of the booking in the request.
263
- *
264
- * Bookings are created with a status of `CREATED`.
265
- * `CREATED` bookings don't appear on the business calendar and don't affect a related schedule's availability.
266
- *
267
- * To create a booking with a given status, pass a booking with the wanted status.
268
- * This is only permitted for site Owners.
269
- *
270
- * You can pass a `participantNotification.message` to notify the customer of the booking with a message.
271
- * It's also necessary to pass `participantNotification.notifyParticipants`as `true` to send the message.
272
- *
273
- * You can pass `sendSmsReminder` as `true`, if you want an SMS reminder to be sent to the phone number specified in the ContactDetails, 24 hours before the session starts.
274
- *
275
- * When creating a booking you must pass either `participantsChoices` or `totalParticipants`. If you pass `participantsChoices`, all the
276
- * provided choices must exist for the service, otherwise the call returns an `INVALID_SERVICE_CHOICES` error.
277
- *
278
- * When creating a booking, you can pass `selectedPaymentOption`.
279
- * This specifies which payment method the customer plans to use.
280
- * But it's possible for them to later use another supported payment method.
281
- *
282
- * You can skip the checkout and payment flow if you call Confirm Or Decline Booking otherwise, after you create the booking, you can use the
283
- * Wix eCommerce APIs (coming soon) for the checkout and payment flow or use a different service for checkout.
284
- * @param booking - The booking to create.
285
- * @public
286
- * @documentationMaturity preview
287
- * @requiredField booking
288
- * @requiredField booking.additionalFields._id
289
- * @requiredField booking.bookedEntity
290
- * @permissionScope Manage Bookings
291
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
292
- * @permissionScope Manage Bookings - all permissions
293
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
294
- * @applicableIdentity APP
295
- * @applicableIdentity MEMBER
296
- * @applicableIdentity VISITOR
297
- */
298
- declare function alarm(httpClient: HttpClient$2): (seconds: number, options?: AlarmOptions) => Promise<AlarmResponse>;
299
- /**
300
- * Another thing
301
- */
302
- declare function updateAlarm(httpClient: HttpClient$2): (_id: string, alarm: UpdateAlarm) => Promise<UpdateAlarmResponse & UpdateAlarmResponseNonNullableFields>;
303
- declare const onAlarmTriggered: EventDefinition$1<AlarmTriggeredEnvelope, "wix.alarm.v1.alarm_alarm_triggered">;
304
- declare const onAlarmSnoozed: EventDefinition$1<AlarmSnoozedEnvelope, "wix.alarm.v1.alarm_alarm_snoozed">;
305
- declare const onAlarmDeleted: EventDefinition$1<AlarmDeletedEnvelope, "wix.alarm.v1.alarm_alarm_deleted">;
256
+ declare global {
257
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
258
+ interface SymbolConstructor {
259
+ readonly observable: symbol;
260
+ }
261
+ }
262
+
263
+ declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
264
+
265
+ declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
266
+
267
+ declare const alarm: ReturnType<typeof createRESTModule$2<typeof publicAlarm>>;
268
+ declare const updateAlarm: ReturnType<typeof createRESTModule$2<typeof publicUpdateAlarm>>;
269
+ declare const onAlarmTriggered: ReturnType<typeof createEventModule$1<typeof publicOnAlarmTriggered>>;
270
+ declare const onAlarmSnoozed: ReturnType<typeof createEventModule$1<typeof publicOnAlarmSnoozed>>;
271
+ declare const onAlarmDeleted: ReturnType<typeof createEventModule$1<typeof publicOnAlarmDeleted>>;
306
272
 
307
273
  type index_d$2_AlarmDeleted = AlarmDeleted;
308
274
  type index_d$2_AlarmDeletedEnvelope = AlarmDeletedEnvelope;
@@ -326,40 +292,9 @@ declare const index_d$2_onAlarmSnoozed: typeof onAlarmSnoozed;
326
292
  declare const index_d$2_onAlarmTriggered: typeof onAlarmTriggered;
327
293
  declare const index_d$2_updateAlarm: typeof updateAlarm;
328
294
  declare namespace index_d$2 {
329
- export { type ActionEvent$2 as ActionEvent, type index_d$2_AlarmDeleted as AlarmDeleted, type index_d$2_AlarmDeletedEnvelope as AlarmDeletedEnvelope, type index_d$2_AlarmMessage as AlarmMessage, type index_d$2_AlarmOptions as AlarmOptions, type index_d$2_AlarmRequest as AlarmRequest, type index_d$2_AlarmRequestRequiredFields as AlarmRequestRequiredFields, type index_d$2_AlarmResponse as AlarmResponse, type index_d$2_AlarmSnoozed as AlarmSnoozed, type index_d$2_AlarmSnoozedEnvelope as AlarmSnoozedEnvelope, type index_d$2_AlarmTriggered as AlarmTriggered, type index_d$2_AlarmTriggeredEnvelope as AlarmTriggeredEnvelope, type BaseEventMetadata$1 as BaseEventMetadata, 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$1 as EventMetadata, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type MessageEnvelope$2 as MessageEnvelope, type index_d$2_UpdateAlarm as UpdateAlarm, type index_d$2_UpdateAlarmRequest as UpdateAlarmRequest, type index_d$2_UpdateAlarmRequestRequiredFields as UpdateAlarmRequestRequiredFields, type index_d$2_UpdateAlarmResponse as UpdateAlarmResponse, type index_d$2_UpdateAlarmResponseNonNullableFields as UpdateAlarmResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_alarm as alarm, index_d$2_onAlarmDeleted as onAlarmDeleted, index_d$2_onAlarmSnoozed as onAlarmSnoozed, index_d$2_onAlarmTriggered as onAlarmTriggered, index_d$2_updateAlarm as updateAlarm };
295
+ export { type ActionEvent$2 as ActionEvent, type index_d$2_AlarmDeleted as AlarmDeleted, type index_d$2_AlarmDeletedEnvelope as AlarmDeletedEnvelope, type index_d$2_AlarmMessage as AlarmMessage, type index_d$2_AlarmOptions as AlarmOptions, type index_d$2_AlarmRequest as AlarmRequest, type index_d$2_AlarmRequestRequiredFields as AlarmRequestRequiredFields, type index_d$2_AlarmResponse as AlarmResponse, type index_d$2_AlarmSnoozed as AlarmSnoozed, type index_d$2_AlarmSnoozedEnvelope as AlarmSnoozedEnvelope, type index_d$2_AlarmTriggered as AlarmTriggered, type index_d$2_AlarmTriggeredEnvelope as AlarmTriggeredEnvelope, type BaseEventMetadata$1 as BaseEventMetadata, 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$1 as EventMetadata, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type MessageEnvelope$2 as MessageEnvelope, type RestoreInfo$2 as RestoreInfo, type index_d$2_UpdateAlarm as UpdateAlarm, type index_d$2_UpdateAlarmRequest as UpdateAlarmRequest, type index_d$2_UpdateAlarmRequestRequiredFields as UpdateAlarmRequestRequiredFields, type index_d$2_UpdateAlarmResponse as UpdateAlarmResponse, type index_d$2_UpdateAlarmResponseNonNullableFields as UpdateAlarmResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, index_d$2_alarm as alarm, index_d$2_onAlarmDeleted as onAlarmDeleted, index_d$2_onAlarmSnoozed as onAlarmSnoozed, index_d$2_onAlarmTriggered as onAlarmTriggered, index_d$2_updateAlarm as updateAlarm };
330
296
  }
331
297
 
332
- interface HttpClient$1 {
333
- request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
334
- }
335
- type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
336
- type HttpResponse$1<T = any> = {
337
- data: T;
338
- status: number;
339
- statusText: string;
340
- headers: any;
341
- request?: any;
342
- };
343
- type RequestOptions$1<_TResponse = any, Data = any> = {
344
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
345
- url: string;
346
- data?: Data;
347
- params?: URLSearchParams;
348
- } & APIMetadata$1;
349
- type APIMetadata$1 = {
350
- methodFqn?: string;
351
- entityFqdn?: string;
352
- packageName?: string;
353
- };
354
- type EventDefinition<Payload = unknown, Type extends string = string> = {
355
- __type: 'event-definition';
356
- type: Type;
357
- isDomainEvent?: boolean;
358
- transformations?: unknown;
359
- __payload: Payload;
360
- };
361
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
362
-
363
298
  interface MessageItem {
364
299
  /** inner_message comment from EchoMessage proto def */
365
300
  innerMessage?: string;
@@ -407,7 +342,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
407
342
  slug?: string;
408
343
  /** ID of the entity associated with the event. */
409
344
  entityId?: string;
410
- /** Event timestamp. */
345
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
411
346
  eventTime?: Date;
412
347
  /**
413
348
  * Whether the event was triggered as a result of a privacy regulation application
@@ -436,6 +371,9 @@ interface DomainEventBodyOneOf$1 {
436
371
  interface EntityCreatedEvent$1 {
437
372
  entity?: string;
438
373
  }
374
+ interface RestoreInfo$1 {
375
+ deletedDate?: Date;
376
+ }
439
377
  interface EntityUpdatedEvent$1 {
440
378
  /**
441
379
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
@@ -494,14 +432,16 @@ declare enum WebhookIdentityType$1 {
494
432
  interface EchoRequestRequiredFields {
495
433
  arg1: string;
496
434
  }
435
+ interface MessageItemNonNullableFields {
436
+ innerMessage: string;
437
+ }
438
+ interface EchoMessageNonNullableFields {
439
+ message: string;
440
+ messagesList: MessageItemNonNullableFields[];
441
+ _id: string;
442
+ }
497
443
  interface EchoResponseNonNullableFields {
498
- echoMessage?: {
499
- message: string;
500
- messagesList: {
501
- innerMessage: string;
502
- }[];
503
- _id: string;
504
- };
444
+ echoMessage?: EchoMessageNonNullableFields;
505
445
  message: string;
506
446
  }
507
447
  interface EchoMessage {
@@ -535,7 +475,7 @@ interface EventMetadata extends BaseEventMetadata {
535
475
  slug?: string;
536
476
  /** ID of the entity associated with the event. */
537
477
  entityId?: string;
538
- /** Event timestamp. */
478
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
539
479
  eventTime?: Date;
540
480
  /**
541
481
  * Whether the event was triggered as a result of a privacy regulation application
@@ -567,11 +507,12 @@ interface EchoOptions {
567
507
  someDate?: Date;
568
508
  }
569
509
 
570
- declare const __metadata$1: {
571
- PACKAGE_NAME: string;
572
- };
573
- declare function echo(httpClient: HttpClient$1): (arg1: string, options?: EchoOptions) => Promise<string>;
574
- declare const onEchoDispatched: EventDefinition<EchoDispatchedEnvelope, "wix.metroinspector.v1.echo_dispatched">;
510
+ declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
511
+
512
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
513
+
514
+ declare const echo: ReturnType<typeof createRESTModule$1<typeof publicEcho>>;
515
+ declare const onEchoDispatched: ReturnType<typeof createEventModule<typeof publicOnEchoDispatched>>;
575
516
 
576
517
  type index_d$1_BaseEventMetadata = BaseEventMetadata;
577
518
  type index_d$1_Dispatched = Dispatched;
@@ -587,7 +528,7 @@ type index_d$1_MessageItem = MessageItem;
587
528
  declare const index_d$1_echo: typeof echo;
588
529
  declare const index_d$1_onEchoDispatched: typeof onEchoDispatched;
589
530
  declare namespace index_d$1 {
590
- export { type ActionEvent$1 as ActionEvent, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_Dispatched as Dispatched, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_EchoDispatchedEnvelope as EchoDispatchedEnvelope, type index_d$1_EchoMessage as EchoMessage, type index_d$1_EchoOptions as EchoOptions, type index_d$1_EchoRequest as EchoRequest, type index_d$1_EchoRequestRequiredFields as EchoRequestRequiredFields, type index_d$1_EchoResponse as EchoResponse, type index_d$1_EchoResponseNonNullableFields as EchoResponseNonNullableFields, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_MessageItem as MessageItem, WebhookIdentityType$1 as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_echo as echo, index_d$1_onEchoDispatched as onEchoDispatched };
531
+ export { type ActionEvent$1 as ActionEvent, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_Dispatched as Dispatched, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_EchoDispatchedEnvelope as EchoDispatchedEnvelope, type index_d$1_EchoMessage as EchoMessage, type index_d$1_EchoOptions as EchoOptions, type index_d$1_EchoRequest as EchoRequest, type index_d$1_EchoRequestRequiredFields as EchoRequestRequiredFields, type index_d$1_EchoResponse as EchoResponse, type index_d$1_EchoResponseNonNullableFields as EchoResponseNonNullableFields, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_MessageItem as MessageItem, type RestoreInfo$1 as RestoreInfo, WebhookIdentityType$1 as WebhookIdentityType, index_d$1_echo as echo, index_d$1_onEchoDispatched as onEchoDispatched };
591
532
  }
592
533
 
593
534
  /** Physical address */
@@ -915,7 +856,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
915
856
  slug?: string;
916
857
  /** ID of the entity associated with the event. */
917
858
  entityId?: string;
918
- /** Event timestamp. */
859
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
919
860
  eventTime?: Date;
920
861
  /**
921
862
  * Whether the event was triggered as a result of a privacy regulation application
@@ -944,6 +885,9 @@ interface DomainEventBodyOneOf {
944
885
  interface EntityCreatedEvent {
945
886
  entity?: string;
946
887
  }
888
+ interface RestoreInfo {
889
+ deletedDate?: Date;
890
+ }
947
891
  interface EntityUpdatedEvent {
948
892
  /**
949
893
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
@@ -1004,30 +948,42 @@ interface CreateProductRequestRequiredFields {
1004
948
  title: string;
1005
949
  };
1006
950
  }
951
+ interface StreetAddressNonNullableFields {
952
+ number: string;
953
+ name: string;
954
+ apt: string;
955
+ }
956
+ interface AddressNonNullableFields {
957
+ streetAddress?: StreetAddressNonNullableFields;
958
+ }
959
+ interface PageLinkNonNullableFields {
960
+ pageId: string;
961
+ rel: LinkRel[];
962
+ }
963
+ interface VariantNonNullableFields {
964
+ name: string;
965
+ value: string;
966
+ image: string;
967
+ }
968
+ interface MyAddressNonNullableFields {
969
+ streetAddress?: StreetAddressNonNullableFields;
970
+ }
971
+ interface ProductNonNullableFields {
972
+ _id: string;
973
+ collectionId: string;
974
+ image: string;
975
+ address?: AddressNonNullableFields;
976
+ document: string;
977
+ video: string;
978
+ pageLink?: PageLinkNonNullableFields;
979
+ audio: string;
980
+ variants: VariantNonNullableFields[];
981
+ mainVariant?: VariantNonNullableFields;
982
+ customAddress?: MyAddressNonNullableFields;
983
+ guid: string;
984
+ }
1007
985
  interface CreateProductResponseNonNullableFields {
1008
- product?: {
1009
- _id: string;
1010
- collectionId: string;
1011
- image: string;
1012
- document: string;
1013
- video: string;
1014
- pageLink?: {
1015
- pageId: string;
1016
- rel: LinkRel[];
1017
- };
1018
- audio: string;
1019
- variants: {
1020
- name: string;
1021
- value: string;
1022
- image: string;
1023
- }[];
1024
- mainVariant?: {
1025
- name: string;
1026
- value: string;
1027
- image: string;
1028
- };
1029
- guid: string;
1030
- };
986
+ product?: ProductNonNullableFields;
1031
987
  }
1032
988
  interface DeleteProductRequestRequiredFields {
1033
989
  productId: string;
@@ -1039,216 +995,68 @@ interface UpdateProductRequestRequiredFields {
1039
995
  productId: string;
1040
996
  }
1041
997
  interface UpdateProductResponseNonNullableFields {
1042
- product?: {
1043
- _id: string;
1044
- collectionId: string;
1045
- image: string;
1046
- document: string;
1047
- video: string;
1048
- pageLink?: {
1049
- pageId: string;
1050
- rel: LinkRel[];
1051
- };
1052
- audio: string;
1053
- variants: {
1054
- name: string;
1055
- value: string;
1056
- image: string;
1057
- }[];
1058
- mainVariant?: {
1059
- name: string;
1060
- value: string;
1061
- image: string;
1062
- };
1063
- guid: string;
1064
- };
998
+ product?: ProductNonNullableFields;
1065
999
  }
1066
1000
  interface GetProductRequestRequiredFields {
1067
1001
  productId: string;
1068
1002
  }
1069
1003
  interface GetProductResponseNonNullableFields {
1070
- product?: {
1071
- _id: string;
1072
- collectionId: string;
1073
- image: string;
1074
- document: string;
1075
- video: string;
1076
- pageLink?: {
1077
- pageId: string;
1078
- rel: LinkRel[];
1079
- };
1080
- audio: string;
1081
- variants: {
1082
- name: string;
1083
- value: string;
1084
- image: string;
1085
- }[];
1086
- mainVariant?: {
1087
- name: string;
1088
- value: string;
1089
- image: string;
1090
- };
1091
- guid: string;
1092
- };
1004
+ product?: ProductNonNullableFields;
1093
1005
  }
1094
1006
  interface GetProductsStartWithRequestRequiredFields {
1095
1007
  title: string;
1096
1008
  }
1097
1009
  interface GetProductsStartWithResponseNonNullableFields {
1098
- products: {
1099
- _id: string;
1100
- collectionId: string;
1101
- image: string;
1102
- document: string;
1103
- video: string;
1104
- pageLink?: {
1105
- pageId: string;
1106
- rel: LinkRel[];
1107
- };
1108
- audio: string;
1109
- variants: {
1110
- name: string;
1111
- value: string;
1112
- image: string;
1113
- }[];
1114
- mainVariant?: {
1115
- name: string;
1116
- value: string;
1117
- image: string;
1118
- };
1119
- guid: string;
1120
- }[];
1010
+ products: ProductNonNullableFields[];
1121
1011
  }
1122
1012
  interface QueryProductsResponseNonNullableFields {
1123
- products: {
1124
- _id: string;
1125
- collectionId: string;
1126
- image: string;
1127
- document: string;
1128
- video: string;
1129
- pageLink?: {
1130
- pageId: string;
1131
- rel: LinkRel[];
1132
- };
1133
- audio: string;
1134
- variants: {
1135
- name: string;
1136
- value: string;
1137
- image: string;
1138
- }[];
1139
- mainVariant?: {
1140
- name: string;
1141
- value: string;
1142
- image: string;
1143
- };
1144
- guid: string;
1145
- }[];
1013
+ products: ProductNonNullableFields[];
1146
1014
  }
1147
1015
  interface BulkCreateProductsRequestRequiredFields {
1148
1016
  products: Product[];
1149
1017
  }
1018
+ interface ApplicationErrorNonNullableFields {
1019
+ code: string;
1020
+ description: string;
1021
+ }
1022
+ interface ItemMetadataNonNullableFields {
1023
+ originalIndex: number;
1024
+ success: boolean;
1025
+ error?: ApplicationErrorNonNullableFields;
1026
+ }
1027
+ interface BulkProductResultNonNullableFields {
1028
+ itemMetadata?: ItemMetadataNonNullableFields;
1029
+ item?: ProductNonNullableFields;
1030
+ }
1031
+ interface BulkActionMetadataNonNullableFields {
1032
+ totalSuccesses: number;
1033
+ totalFailures: number;
1034
+ undetailedFailures: number;
1035
+ }
1150
1036
  interface BulkCreateProductsResponseNonNullableFields {
1151
- results: {
1152
- itemMetadata?: {
1153
- originalIndex: number;
1154
- success: boolean;
1155
- error?: {
1156
- code: string;
1157
- description: string;
1158
- };
1159
- };
1160
- item?: {
1161
- _id: string;
1162
- collectionId: string;
1163
- image: string;
1164
- document: string;
1165
- video: string;
1166
- pageLink?: {
1167
- pageId: string;
1168
- rel: LinkRel[];
1169
- };
1170
- audio: string;
1171
- variants: {
1172
- name: string;
1173
- value: string;
1174
- image: string;
1175
- }[];
1176
- mainVariant?: {
1177
- name: string;
1178
- value: string;
1179
- image: string;
1180
- };
1181
- guid: string;
1182
- };
1183
- }[];
1184
- bulkActionMetadata?: {
1185
- totalSuccesses: number;
1186
- totalFailures: number;
1187
- undetailedFailures: number;
1188
- };
1037
+ results: BulkProductResultNonNullableFields[];
1038
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1189
1039
  }
1190
1040
  interface BulkUpdateProductsRequestRequiredFields {
1191
1041
  products: MaskedProduct[];
1192
1042
  }
1043
+ interface BulkUpdateProductsResponseBulkProductResultNonNullableFields {
1044
+ itemMetadata?: ItemMetadataNonNullableFields;
1045
+ item?: ProductNonNullableFields;
1046
+ }
1193
1047
  interface BulkUpdateProductsResponseNonNullableFields {
1194
- results: {
1195
- itemMetadata?: {
1196
- originalIndex: number;
1197
- success: boolean;
1198
- error?: {
1199
- code: string;
1200
- description: string;
1201
- };
1202
- };
1203
- item?: {
1204
- _id: string;
1205
- collectionId: string;
1206
- image: string;
1207
- document: string;
1208
- video: string;
1209
- pageLink?: {
1210
- pageId: string;
1211
- rel: LinkRel[];
1212
- };
1213
- audio: string;
1214
- variants: {
1215
- name: string;
1216
- value: string;
1217
- image: string;
1218
- }[];
1219
- mainVariant?: {
1220
- name: string;
1221
- value: string;
1222
- image: string;
1223
- };
1224
- guid: string;
1225
- };
1226
- }[];
1227
- bulkActionMetadata?: {
1228
- totalSuccesses: number;
1229
- totalFailures: number;
1230
- undetailedFailures: number;
1231
- };
1048
+ results: BulkUpdateProductsResponseBulkProductResultNonNullableFields[];
1049
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1232
1050
  }
1233
1051
  interface BulkDeleteProductsRequestRequiredFields {
1234
1052
  productIds: string[];
1235
1053
  }
1054
+ interface BulkDeleteProductsResponseBulkProductResultNonNullableFields {
1055
+ itemMetadata?: ItemMetadataNonNullableFields;
1056
+ }
1236
1057
  interface BulkDeleteProductsResponseNonNullableFields {
1237
- results: {
1238
- itemMetadata?: {
1239
- originalIndex: number;
1240
- success: boolean;
1241
- error?: {
1242
- code: string;
1243
- description: string;
1244
- };
1245
- };
1246
- }[];
1247
- bulkActionMetadata?: {
1248
- totalSuccesses: number;
1249
- totalFailures: number;
1250
- undetailedFailures: number;
1251
- };
1058
+ results: BulkDeleteProductsResponseBulkProductResultNonNullableFields[];
1059
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1252
1060
  }
1253
1061
  interface Product {
1254
1062
  _id: string;
@@ -1364,107 +1172,17 @@ interface BulkUpdateProductsOptions {
1364
1172
  returnEntity?: boolean;
1365
1173
  }
1366
1174
 
1367
- interface HttpClient {
1368
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1369
- }
1370
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
1371
- type HttpResponse<T = any> = {
1372
- data: T;
1373
- status: number;
1374
- statusText: string;
1375
- headers: any;
1376
- request?: any;
1377
- };
1378
- type RequestOptions<_TResponse = any, Data = any> = {
1379
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1380
- url: string;
1381
- data?: Data;
1382
- params?: URLSearchParams;
1383
- } & APIMetadata;
1384
- type APIMetadata = {
1385
- methodFqn?: string;
1386
- entityFqdn?: string;
1387
- packageName?: string;
1388
- };
1175
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1389
1176
 
1390
- declare const __metadata: {
1391
- PACKAGE_NAME: string;
1392
- };
1393
- declare function createProduct(httpClient: HttpClient): (options?: CreateProductOptions & CreateProductOptionsRequiredFields) => Promise<Product & {
1394
- _id: string;
1395
- collectionId: string;
1396
- image: string;
1397
- document: string;
1398
- video: string;
1399
- pageLink?: {
1400
- pageId: string;
1401
- rel: LinkRel[];
1402
- } | undefined;
1403
- audio: string;
1404
- variants: {
1405
- name: string;
1406
- value: string;
1407
- image: string;
1408
- }[];
1409
- mainVariant?: {
1410
- name: string;
1411
- value: string;
1412
- image: string;
1413
- } | undefined;
1414
- guid: string;
1415
- }>;
1416
- declare function deleteProduct(httpClient: HttpClient): (productId: string) => Promise<void>;
1417
- declare function updateProduct(httpClient: HttpClient): (productId: string, options?: UpdateProductOptions & UpdateProductOptionsRequiredFields) => Promise<Product & {
1418
- _id: string;
1419
- collectionId: string;
1420
- image: string;
1421
- document: string;
1422
- video: string;
1423
- pageLink?: {
1424
- pageId: string;
1425
- rel: LinkRel[];
1426
- } | undefined;
1427
- audio: string;
1428
- variants: {
1429
- name: string;
1430
- value: string;
1431
- image: string;
1432
- }[];
1433
- mainVariant?: {
1434
- name: string;
1435
- value: string;
1436
- image: string;
1437
- } | undefined;
1438
- guid: string;
1439
- }>;
1440
- declare function getProduct(httpClient: HttpClient): (productId: string) => Promise<Product & {
1441
- _id: string;
1442
- collectionId: string;
1443
- image: string;
1444
- document: string;
1445
- video: string;
1446
- pageLink?: {
1447
- pageId: string;
1448
- rel: LinkRel[];
1449
- } | undefined;
1450
- audio: string;
1451
- variants: {
1452
- name: string;
1453
- value: string;
1454
- image: string;
1455
- }[];
1456
- mainVariant?: {
1457
- name: string;
1458
- value: string;
1459
- image: string;
1460
- } | undefined;
1461
- guid: string;
1462
- }>;
1463
- declare function getProductsStartWith(httpClient: HttpClient): (title: string, options?: GetProductsStartWithOptions) => Promise<GetProductsStartWithResponse & GetProductsStartWithResponseNonNullableFields>;
1464
- declare function queryProducts(httpClient: HttpClient): (options?: QueryProductsOptions) => ProductsQueryBuilder;
1465
- declare function bulkCreateProducts(httpClient: HttpClient): (products: Product[], options?: BulkCreateProductsOptions) => Promise<BulkCreateProductsResponse & BulkCreateProductsResponseNonNullableFields>;
1466
- declare function bulkUpdateProducts(httpClient: HttpClient): (products: MaskedProduct[], options?: BulkUpdateProductsOptions) => Promise<BulkUpdateProductsResponse & BulkUpdateProductsResponseNonNullableFields>;
1467
- declare function bulkDeleteProducts(httpClient: HttpClient): (productIds: string[]) => Promise<BulkDeleteProductsResponse & BulkDeleteProductsResponseNonNullableFields>;
1177
+ declare const createProduct: ReturnType<typeof createRESTModule<typeof publicCreateProduct>>;
1178
+ declare const deleteProduct: ReturnType<typeof createRESTModule<typeof publicDeleteProduct>>;
1179
+ declare const updateProduct: ReturnType<typeof createRESTModule<typeof publicUpdateProduct>>;
1180
+ declare const getProduct: ReturnType<typeof createRESTModule<typeof publicGetProduct>>;
1181
+ declare const getProductsStartWith: ReturnType<typeof createRESTModule<typeof publicGetProductsStartWith>>;
1182
+ declare const queryProducts: ReturnType<typeof createRESTModule<typeof publicQueryProducts>>;
1183
+ declare const bulkCreateProducts: ReturnType<typeof createRESTModule<typeof publicBulkCreateProducts>>;
1184
+ declare const bulkUpdateProducts: ReturnType<typeof createRESTModule<typeof publicBulkUpdateProducts>>;
1185
+ declare const bulkDeleteProducts: ReturnType<typeof createRESTModule<typeof publicBulkDeleteProducts>>;
1468
1186
 
1469
1187
  type index_d_ActionEvent = ActionEvent;
1470
1188
  type index_d_Address = Address;
@@ -1526,6 +1244,7 @@ type index_d_PageLink = PageLink;
1526
1244
  type index_d_Paging = Paging;
1527
1245
  type index_d_PagingMetadataV2 = PagingMetadataV2;
1528
1246
  type index_d_Product = Product;
1247
+ type index_d_ProductNonNullableFields = ProductNonNullableFields;
1529
1248
  type index_d_ProductsQueryBuilder = ProductsQueryBuilder;
1530
1249
  type index_d_ProductsQueryResult = ProductsQueryResult;
1531
1250
  type index_d_QueryProductsOptions = QueryProductsOptions;
@@ -1536,6 +1255,7 @@ type index_d_QueryV2 = QueryV2;
1536
1255
  type index_d_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
1537
1256
  type index_d_ResetProductsDbRequest = ResetProductsDbRequest;
1538
1257
  type index_d_ResetProductsDbResponse = ResetProductsDbResponse;
1258
+ type index_d_RestoreInfo = RestoreInfo;
1539
1259
  type index_d_SortOrder = SortOrder;
1540
1260
  declare const index_d_SortOrder: typeof SortOrder;
1541
1261
  type index_d_Sorting = Sorting;
@@ -1554,7 +1274,6 @@ type index_d_Variant = Variant;
1554
1274
  type index_d_VideoResolution = VideoResolution;
1555
1275
  type index_d_WebhookIdentityType = WebhookIdentityType;
1556
1276
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
1557
- declare const index_d___metadata: typeof __metadata;
1558
1277
  declare const index_d_bulkCreateProducts: typeof bulkCreateProducts;
1559
1278
  declare const index_d_bulkDeleteProducts: typeof bulkDeleteProducts;
1560
1279
  declare const index_d_bulkUpdateProducts: typeof bulkUpdateProducts;
@@ -1565,7 +1284,7 @@ declare const index_d_getProductsStartWith: typeof getProductsStartWith;
1565
1284
  declare const index_d_queryProducts: typeof queryProducts;
1566
1285
  declare const index_d_updateProduct: typeof updateProduct;
1567
1286
  declare namespace index_d {
1568
- export { type index_d_ActionEvent as ActionEvent, type index_d_Address as Address, type index_d_AddressLocation as AddressLocation, type index_d_AddressStreetOneOf as AddressStreetOneOf, type index_d_ApplicationError as ApplicationError, type index_d_BulkActionMetadata as BulkActionMetadata, type index_d_BulkCreateProductsOptions as BulkCreateProductsOptions, type index_d_BulkCreateProductsRequest as BulkCreateProductsRequest, type index_d_BulkCreateProductsRequestRequiredFields as BulkCreateProductsRequestRequiredFields, type index_d_BulkCreateProductsResponse as BulkCreateProductsResponse, type index_d_BulkCreateProductsResponseNonNullableFields as BulkCreateProductsResponseNonNullableFields, type index_d_BulkDeleteProductsRequest as BulkDeleteProductsRequest, type index_d_BulkDeleteProductsRequestRequiredFields as BulkDeleteProductsRequestRequiredFields, type index_d_BulkDeleteProductsResponse as BulkDeleteProductsResponse, type index_d_BulkDeleteProductsResponseBulkProductResult as BulkDeleteProductsResponseBulkProductResult, type index_d_BulkDeleteProductsResponseNonNullableFields as BulkDeleteProductsResponseNonNullableFields, type index_d_BulkProductResult as BulkProductResult, type index_d_BulkUpdateProductsOptions as BulkUpdateProductsOptions, type index_d_BulkUpdateProductsRequest as BulkUpdateProductsRequest, type index_d_BulkUpdateProductsRequestRequiredFields as BulkUpdateProductsRequestRequiredFields, type index_d_BulkUpdateProductsResponse as BulkUpdateProductsResponse, type index_d_BulkUpdateProductsResponseBulkProductResult as BulkUpdateProductsResponseBulkProductResult, type index_d_BulkUpdateProductsResponseNonNullableFields as BulkUpdateProductsResponseNonNullableFields, type index_d_CreateProductOptions as CreateProductOptions, type index_d_CreateProductOptionsRequiredFields as CreateProductOptionsRequiredFields, type index_d_CreateProductRequest as CreateProductRequest, type index_d_CreateProductRequestRequiredFields as CreateProductRequestRequiredFields, type index_d_CreateProductResponse as CreateProductResponse, type index_d_CreateProductResponseNonNullableFields as CreateProductResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteProductRequest as DeleteProductRequest, type index_d_DeleteProductRequestRequiredFields as DeleteProductRequestRequiredFields, type index_d_DeleteProductResponse as DeleteProductResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_GetProductRequest as GetProductRequest, type index_d_GetProductRequestRequiredFields as GetProductRequestRequiredFields, type index_d_GetProductResponse as GetProductResponse, type index_d_GetProductResponseNonNullableFields as GetProductResponseNonNullableFields, type index_d_GetProductsStartWithOptions as GetProductsStartWithOptions, type index_d_GetProductsStartWithRequest as GetProductsStartWithRequest, type index_d_GetProductsStartWithRequestRequiredFields as GetProductsStartWithRequestRequiredFields, type index_d_GetProductsStartWithResponse as GetProductsStartWithResponse, type index_d_GetProductsStartWithResponseNonNullableFields as GetProductsStartWithResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ItemMetadata as ItemMetadata, index_d_LinkRel as LinkRel, type index_d_MaskedProduct as MaskedProduct, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MyAddress as MyAddress, type index_d_PageLink as PageLink, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_Product as Product, type index_d_ProductsQueryBuilder as ProductsQueryBuilder, type index_d_ProductsQueryResult as ProductsQueryResult, type index_d_QueryProductsOptions as QueryProductsOptions, type index_d_QueryProductsRequest as QueryProductsRequest, type index_d_QueryProductsResponse as QueryProductsResponse, type index_d_QueryProductsResponseNonNullableFields as QueryProductsResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_ResetProductsDbRequest as ResetProductsDbRequest, type index_d_ResetProductsDbResponse as ResetProductsDbResponse, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_StandardDetails as StandardDetails, type index_d_StreetAddress as StreetAddress, type index_d_Subdivision as Subdivision, index_d_SubdivisionType as SubdivisionType, type index_d_UpdateProductOptions as UpdateProductOptions, type index_d_UpdateProductOptionsRequiredFields as UpdateProductOptionsRequiredFields, type index_d_UpdateProductRequest as UpdateProductRequest, type index_d_UpdateProductRequestRequiredFields as UpdateProductRequestRequiredFields, type index_d_UpdateProductResponse as UpdateProductResponse, type index_d_UpdateProductResponseNonNullableFields as UpdateProductResponseNonNullableFields, type index_d_Variant as Variant, type index_d_VideoResolution as VideoResolution, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_bulkCreateProducts as bulkCreateProducts, index_d_bulkDeleteProducts as bulkDeleteProducts, index_d_bulkUpdateProducts as bulkUpdateProducts, index_d_createProduct as createProduct, index_d_deleteProduct as deleteProduct, index_d_getProduct as getProduct, index_d_getProductsStartWith as getProductsStartWith, index_d_queryProducts as queryProducts, index_d_updateProduct as updateProduct };
1287
+ export { type index_d_ActionEvent as ActionEvent, type index_d_Address as Address, type index_d_AddressLocation as AddressLocation, type index_d_AddressStreetOneOf as AddressStreetOneOf, type index_d_ApplicationError as ApplicationError, type index_d_BulkActionMetadata as BulkActionMetadata, type index_d_BulkCreateProductsOptions as BulkCreateProductsOptions, type index_d_BulkCreateProductsRequest as BulkCreateProductsRequest, type index_d_BulkCreateProductsRequestRequiredFields as BulkCreateProductsRequestRequiredFields, type index_d_BulkCreateProductsResponse as BulkCreateProductsResponse, type index_d_BulkCreateProductsResponseNonNullableFields as BulkCreateProductsResponseNonNullableFields, type index_d_BulkDeleteProductsRequest as BulkDeleteProductsRequest, type index_d_BulkDeleteProductsRequestRequiredFields as BulkDeleteProductsRequestRequiredFields, type index_d_BulkDeleteProductsResponse as BulkDeleteProductsResponse, type index_d_BulkDeleteProductsResponseBulkProductResult as BulkDeleteProductsResponseBulkProductResult, type index_d_BulkDeleteProductsResponseNonNullableFields as BulkDeleteProductsResponseNonNullableFields, type index_d_BulkProductResult as BulkProductResult, type index_d_BulkUpdateProductsOptions as BulkUpdateProductsOptions, type index_d_BulkUpdateProductsRequest as BulkUpdateProductsRequest, type index_d_BulkUpdateProductsRequestRequiredFields as BulkUpdateProductsRequestRequiredFields, type index_d_BulkUpdateProductsResponse as BulkUpdateProductsResponse, type index_d_BulkUpdateProductsResponseBulkProductResult as BulkUpdateProductsResponseBulkProductResult, type index_d_BulkUpdateProductsResponseNonNullableFields as BulkUpdateProductsResponseNonNullableFields, type index_d_CreateProductOptions as CreateProductOptions, type index_d_CreateProductOptionsRequiredFields as CreateProductOptionsRequiredFields, type index_d_CreateProductRequest as CreateProductRequest, type index_d_CreateProductRequestRequiredFields as CreateProductRequestRequiredFields, type index_d_CreateProductResponse as CreateProductResponse, type index_d_CreateProductResponseNonNullableFields as CreateProductResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteProductRequest as DeleteProductRequest, type index_d_DeleteProductRequestRequiredFields as DeleteProductRequestRequiredFields, type index_d_DeleteProductResponse as DeleteProductResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_GetProductRequest as GetProductRequest, type index_d_GetProductRequestRequiredFields as GetProductRequestRequiredFields, type index_d_GetProductResponse as GetProductResponse, type index_d_GetProductResponseNonNullableFields as GetProductResponseNonNullableFields, type index_d_GetProductsStartWithOptions as GetProductsStartWithOptions, type index_d_GetProductsStartWithRequest as GetProductsStartWithRequest, type index_d_GetProductsStartWithRequestRequiredFields as GetProductsStartWithRequestRequiredFields, type index_d_GetProductsStartWithResponse as GetProductsStartWithResponse, type index_d_GetProductsStartWithResponseNonNullableFields as GetProductsStartWithResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ItemMetadata as ItemMetadata, index_d_LinkRel as LinkRel, type index_d_MaskedProduct as MaskedProduct, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MyAddress as MyAddress, type index_d_PageLink as PageLink, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_Product as Product, type index_d_ProductNonNullableFields as ProductNonNullableFields, type index_d_ProductsQueryBuilder as ProductsQueryBuilder, type index_d_ProductsQueryResult as ProductsQueryResult, type index_d_QueryProductsOptions as QueryProductsOptions, type index_d_QueryProductsRequest as QueryProductsRequest, type index_d_QueryProductsResponse as QueryProductsResponse, type index_d_QueryProductsResponseNonNullableFields as QueryProductsResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_ResetProductsDbRequest as ResetProductsDbRequest, type index_d_ResetProductsDbResponse as ResetProductsDbResponse, type index_d_RestoreInfo as RestoreInfo, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_StandardDetails as StandardDetails, type index_d_StreetAddress as StreetAddress, type index_d_Subdivision as Subdivision, index_d_SubdivisionType as SubdivisionType, type index_d_UpdateProductOptions as UpdateProductOptions, type index_d_UpdateProductOptionsRequiredFields as UpdateProductOptionsRequiredFields, type index_d_UpdateProductRequest as UpdateProductRequest, type index_d_UpdateProductRequestRequiredFields as UpdateProductRequestRequiredFields, type index_d_UpdateProductResponse as UpdateProductResponse, type index_d_UpdateProductResponseNonNullableFields as UpdateProductResponseNonNullableFields, type index_d_Variant as Variant, type index_d_VideoResolution as VideoResolution, index_d_WebhookIdentityType as WebhookIdentityType, index_d_bulkCreateProducts as bulkCreateProducts, index_d_bulkDeleteProducts as bulkDeleteProducts, index_d_bulkUpdateProducts as bulkUpdateProducts, index_d_createProduct as createProduct, index_d_deleteProduct as deleteProduct, index_d_getProduct as getProduct, index_d_getProductsStartWith as getProductsStartWith, index_d_queryProducts as queryProducts, index_d_updateProduct as updateProduct };
1569
1288
  }
1570
1289
 
1571
1290
  export { index_d$2 as alarms, index_d$1 as metroinspector, index_d as products };