@wix/motion 1.0.40 → 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,8 +216,11 @@ interface UpdateAlarm {
212
216
  seconds?: number;
213
217
  }
214
218
 
219
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
215
220
  interface HttpClient {
216
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
225
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
219
226
  type HttpResponse<T = any> = {
@@ -234,75 +241,34 @@ type APIMetadata = {
234
241
  entityFqdn?: string;
235
242
  packageName?: string;
236
243
  };
244
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
237
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<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<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): (seconds: number, options?: AlarmOptions) => Promise<AlarmResponse>;
299
- /**
300
- * Another thing
301
- */
302
- declare function updateAlarm(httpClient: HttpClient): (_id: string, alarm: UpdateAlarm) => Promise<UpdateAlarmResponse & UpdateAlarmResponseNonNullableFields>;
303
- declare const onAlarmTriggered: EventDefinition<AlarmTriggeredEnvelope, "wix.alarm.v1.alarm_alarm_triggered">;
304
- declare const onAlarmSnoozed: EventDefinition<AlarmSnoozedEnvelope, "wix.alarm.v1.alarm_alarm_snoozed">;
305
- declare const onAlarmDeleted: EventDefinition<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,7 +292,7 @@ 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
298
  interface MessageItem {
@@ -376,7 +342,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
376
342
  slug?: string;
377
343
  /** ID of the entity associated with the event. */
378
344
  entityId?: string;
379
- /** 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 */
380
346
  eventTime?: Date;
381
347
  /**
382
348
  * Whether the event was triggered as a result of a privacy regulation application
@@ -405,6 +371,9 @@ interface DomainEventBodyOneOf$1 {
405
371
  interface EntityCreatedEvent$1 {
406
372
  entity?: string;
407
373
  }
374
+ interface RestoreInfo$1 {
375
+ deletedDate?: Date;
376
+ }
408
377
  interface EntityUpdatedEvent$1 {
409
378
  /**
410
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.
@@ -463,14 +432,16 @@ declare enum WebhookIdentityType$1 {
463
432
  interface EchoRequestRequiredFields {
464
433
  arg1: string;
465
434
  }
435
+ interface MessageItemNonNullableFields {
436
+ innerMessage: string;
437
+ }
438
+ interface EchoMessageNonNullableFields {
439
+ message: string;
440
+ messagesList: MessageItemNonNullableFields[];
441
+ _id: string;
442
+ }
466
443
  interface EchoResponseNonNullableFields {
467
- echoMessage?: {
468
- message: string;
469
- messagesList: {
470
- innerMessage: string;
471
- }[];
472
- _id: string;
473
- };
444
+ echoMessage?: EchoMessageNonNullableFields;
474
445
  message: string;
475
446
  }
476
447
  interface EchoMessage {
@@ -504,7 +475,7 @@ interface EventMetadata extends BaseEventMetadata {
504
475
  slug?: string;
505
476
  /** ID of the entity associated with the event. */
506
477
  entityId?: string;
507
- /** 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 */
508
479
  eventTime?: Date;
509
480
  /**
510
481
  * Whether the event was triggered as a result of a privacy regulation application
@@ -536,11 +507,12 @@ interface EchoOptions {
536
507
  someDate?: Date;
537
508
  }
538
509
 
539
- declare const __metadata$1: {
540
- PACKAGE_NAME: string;
541
- };
542
- declare function echo(httpClient: HttpClient): (arg1: string, options?: EchoOptions) => Promise<string>;
543
- 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>>;
544
516
 
545
517
  type index_d$1_BaseEventMetadata = BaseEventMetadata;
546
518
  type index_d$1_Dispatched = Dispatched;
@@ -556,7 +528,7 @@ type index_d$1_MessageItem = MessageItem;
556
528
  declare const index_d$1_echo: typeof echo;
557
529
  declare const index_d$1_onEchoDispatched: typeof onEchoDispatched;
558
530
  declare namespace index_d$1 {
559
- 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 };
560
532
  }
561
533
 
562
534
  /** Physical address */
@@ -884,7 +856,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
884
856
  slug?: string;
885
857
  /** ID of the entity associated with the event. */
886
858
  entityId?: string;
887
- /** 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 */
888
860
  eventTime?: Date;
889
861
  /**
890
862
  * Whether the event was triggered as a result of a privacy regulation application
@@ -913,6 +885,9 @@ interface DomainEventBodyOneOf {
913
885
  interface EntityCreatedEvent {
914
886
  entity?: string;
915
887
  }
888
+ interface RestoreInfo {
889
+ deletedDate?: Date;
890
+ }
916
891
  interface EntityUpdatedEvent {
917
892
  /**
918
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.
@@ -973,30 +948,42 @@ interface CreateProductRequestRequiredFields {
973
948
  title: string;
974
949
  };
975
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
+ }
976
985
  interface CreateProductResponseNonNullableFields {
977
- product?: {
978
- _id: string;
979
- collectionId: string;
980
- image: string;
981
- document: string;
982
- video: string;
983
- pageLink?: {
984
- pageId: string;
985
- rel: LinkRel[];
986
- };
987
- audio: string;
988
- variants: {
989
- name: string;
990
- value: string;
991
- image: string;
992
- }[];
993
- mainVariant?: {
994
- name: string;
995
- value: string;
996
- image: string;
997
- };
998
- guid: string;
999
- };
986
+ product?: ProductNonNullableFields;
1000
987
  }
1001
988
  interface DeleteProductRequestRequiredFields {
1002
989
  productId: string;
@@ -1008,216 +995,68 @@ interface UpdateProductRequestRequiredFields {
1008
995
  productId: string;
1009
996
  }
1010
997
  interface UpdateProductResponseNonNullableFields {
1011
- product?: {
1012
- _id: string;
1013
- collectionId: string;
1014
- image: string;
1015
- document: string;
1016
- video: string;
1017
- pageLink?: {
1018
- pageId: string;
1019
- rel: LinkRel[];
1020
- };
1021
- audio: string;
1022
- variants: {
1023
- name: string;
1024
- value: string;
1025
- image: string;
1026
- }[];
1027
- mainVariant?: {
1028
- name: string;
1029
- value: string;
1030
- image: string;
1031
- };
1032
- guid: string;
1033
- };
998
+ product?: ProductNonNullableFields;
1034
999
  }
1035
1000
  interface GetProductRequestRequiredFields {
1036
1001
  productId: string;
1037
1002
  }
1038
1003
  interface GetProductResponseNonNullableFields {
1039
- product?: {
1040
- _id: string;
1041
- collectionId: string;
1042
- image: string;
1043
- document: string;
1044
- video: string;
1045
- pageLink?: {
1046
- pageId: string;
1047
- rel: LinkRel[];
1048
- };
1049
- audio: string;
1050
- variants: {
1051
- name: string;
1052
- value: string;
1053
- image: string;
1054
- }[];
1055
- mainVariant?: {
1056
- name: string;
1057
- value: string;
1058
- image: string;
1059
- };
1060
- guid: string;
1061
- };
1004
+ product?: ProductNonNullableFields;
1062
1005
  }
1063
1006
  interface GetProductsStartWithRequestRequiredFields {
1064
1007
  title: string;
1065
1008
  }
1066
1009
  interface GetProductsStartWithResponseNonNullableFields {
1067
- products: {
1068
- _id: string;
1069
- collectionId: string;
1070
- image: string;
1071
- document: string;
1072
- video: string;
1073
- pageLink?: {
1074
- pageId: string;
1075
- rel: LinkRel[];
1076
- };
1077
- audio: string;
1078
- variants: {
1079
- name: string;
1080
- value: string;
1081
- image: string;
1082
- }[];
1083
- mainVariant?: {
1084
- name: string;
1085
- value: string;
1086
- image: string;
1087
- };
1088
- guid: string;
1089
- }[];
1010
+ products: ProductNonNullableFields[];
1090
1011
  }
1091
1012
  interface QueryProductsResponseNonNullableFields {
1092
- products: {
1093
- _id: string;
1094
- collectionId: string;
1095
- image: string;
1096
- document: string;
1097
- video: string;
1098
- pageLink?: {
1099
- pageId: string;
1100
- rel: LinkRel[];
1101
- };
1102
- audio: string;
1103
- variants: {
1104
- name: string;
1105
- value: string;
1106
- image: string;
1107
- }[];
1108
- mainVariant?: {
1109
- name: string;
1110
- value: string;
1111
- image: string;
1112
- };
1113
- guid: string;
1114
- }[];
1013
+ products: ProductNonNullableFields[];
1115
1014
  }
1116
1015
  interface BulkCreateProductsRequestRequiredFields {
1117
1016
  products: Product[];
1118
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
+ }
1119
1036
  interface BulkCreateProductsResponseNonNullableFields {
1120
- results: {
1121
- itemMetadata?: {
1122
- originalIndex: number;
1123
- success: boolean;
1124
- error?: {
1125
- code: string;
1126
- description: string;
1127
- };
1128
- };
1129
- item?: {
1130
- _id: string;
1131
- collectionId: string;
1132
- image: string;
1133
- document: string;
1134
- video: string;
1135
- pageLink?: {
1136
- pageId: string;
1137
- rel: LinkRel[];
1138
- };
1139
- audio: string;
1140
- variants: {
1141
- name: string;
1142
- value: string;
1143
- image: string;
1144
- }[];
1145
- mainVariant?: {
1146
- name: string;
1147
- value: string;
1148
- image: string;
1149
- };
1150
- guid: string;
1151
- };
1152
- }[];
1153
- bulkActionMetadata?: {
1154
- totalSuccesses: number;
1155
- totalFailures: number;
1156
- undetailedFailures: number;
1157
- };
1037
+ results: BulkProductResultNonNullableFields[];
1038
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1158
1039
  }
1159
1040
  interface BulkUpdateProductsRequestRequiredFields {
1160
1041
  products: MaskedProduct[];
1161
1042
  }
1043
+ interface BulkUpdateProductsResponseBulkProductResultNonNullableFields {
1044
+ itemMetadata?: ItemMetadataNonNullableFields;
1045
+ item?: ProductNonNullableFields;
1046
+ }
1162
1047
  interface BulkUpdateProductsResponseNonNullableFields {
1163
- results: {
1164
- itemMetadata?: {
1165
- originalIndex: number;
1166
- success: boolean;
1167
- error?: {
1168
- code: string;
1169
- description: string;
1170
- };
1171
- };
1172
- item?: {
1173
- _id: string;
1174
- collectionId: string;
1175
- image: string;
1176
- document: string;
1177
- video: string;
1178
- pageLink?: {
1179
- pageId: string;
1180
- rel: LinkRel[];
1181
- };
1182
- audio: string;
1183
- variants: {
1184
- name: string;
1185
- value: string;
1186
- image: string;
1187
- }[];
1188
- mainVariant?: {
1189
- name: string;
1190
- value: string;
1191
- image: string;
1192
- };
1193
- guid: string;
1194
- };
1195
- }[];
1196
- bulkActionMetadata?: {
1197
- totalSuccesses: number;
1198
- totalFailures: number;
1199
- undetailedFailures: number;
1200
- };
1048
+ results: BulkUpdateProductsResponseBulkProductResultNonNullableFields[];
1049
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1201
1050
  }
1202
1051
  interface BulkDeleteProductsRequestRequiredFields {
1203
1052
  productIds: string[];
1204
1053
  }
1054
+ interface BulkDeleteProductsResponseBulkProductResultNonNullableFields {
1055
+ itemMetadata?: ItemMetadataNonNullableFields;
1056
+ }
1205
1057
  interface BulkDeleteProductsResponseNonNullableFields {
1206
- results: {
1207
- itemMetadata?: {
1208
- originalIndex: number;
1209
- success: boolean;
1210
- error?: {
1211
- code: string;
1212
- description: string;
1213
- };
1214
- };
1215
- }[];
1216
- bulkActionMetadata?: {
1217
- totalSuccesses: number;
1218
- totalFailures: number;
1219
- undetailedFailures: number;
1220
- };
1058
+ results: BulkDeleteProductsResponseBulkProductResultNonNullableFields[];
1059
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1221
1060
  }
1222
1061
  interface Product {
1223
1062
  _id: string;
@@ -1333,84 +1172,17 @@ interface BulkUpdateProductsOptions {
1333
1172
  returnEntity?: boolean;
1334
1173
  }
1335
1174
 
1336
- declare const __metadata: {
1337
- PACKAGE_NAME: string;
1338
- };
1339
- declare function createProduct(httpClient: HttpClient): (options?: CreateProductOptions & CreateProductOptionsRequiredFields) => Promise<Product & {
1340
- _id: string;
1341
- collectionId: string;
1342
- image: string;
1343
- document: string;
1344
- video: string;
1345
- pageLink?: {
1346
- pageId: string;
1347
- rel: LinkRel[];
1348
- } | undefined;
1349
- audio: string;
1350
- variants: {
1351
- name: string;
1352
- value: string;
1353
- image: string;
1354
- }[];
1355
- mainVariant?: {
1356
- name: string;
1357
- value: string;
1358
- image: string;
1359
- } | undefined;
1360
- guid: string;
1361
- }>;
1362
- declare function deleteProduct(httpClient: HttpClient): (productId: string) => Promise<void>;
1363
- declare function updateProduct(httpClient: HttpClient): (productId: string, options?: UpdateProductOptions & UpdateProductOptionsRequiredFields) => Promise<Product & {
1364
- _id: string;
1365
- collectionId: string;
1366
- image: string;
1367
- document: string;
1368
- video: string;
1369
- pageLink?: {
1370
- pageId: string;
1371
- rel: LinkRel[];
1372
- } | undefined;
1373
- audio: string;
1374
- variants: {
1375
- name: string;
1376
- value: string;
1377
- image: string;
1378
- }[];
1379
- mainVariant?: {
1380
- name: string;
1381
- value: string;
1382
- image: string;
1383
- } | undefined;
1384
- guid: string;
1385
- }>;
1386
- declare function getProduct(httpClient: HttpClient): (productId: string) => Promise<Product & {
1387
- _id: string;
1388
- collectionId: string;
1389
- image: string;
1390
- document: string;
1391
- video: string;
1392
- pageLink?: {
1393
- pageId: string;
1394
- rel: LinkRel[];
1395
- } | undefined;
1396
- audio: string;
1397
- variants: {
1398
- name: string;
1399
- value: string;
1400
- image: string;
1401
- }[];
1402
- mainVariant?: {
1403
- name: string;
1404
- value: string;
1405
- image: string;
1406
- } | undefined;
1407
- guid: string;
1408
- }>;
1409
- declare function getProductsStartWith(httpClient: HttpClient): (title: string, options?: GetProductsStartWithOptions) => Promise<GetProductsStartWithResponse & GetProductsStartWithResponseNonNullableFields>;
1410
- declare function queryProducts(httpClient: HttpClient): (options?: QueryProductsOptions) => ProductsQueryBuilder;
1411
- declare function bulkCreateProducts(httpClient: HttpClient): (products: Product[], options?: BulkCreateProductsOptions) => Promise<BulkCreateProductsResponse & BulkCreateProductsResponseNonNullableFields>;
1412
- declare function bulkUpdateProducts(httpClient: HttpClient): (products: MaskedProduct[], options?: BulkUpdateProductsOptions) => Promise<BulkUpdateProductsResponse & BulkUpdateProductsResponseNonNullableFields>;
1413
- declare function bulkDeleteProducts(httpClient: HttpClient): (productIds: string[]) => Promise<BulkDeleteProductsResponse & BulkDeleteProductsResponseNonNullableFields>;
1175
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1176
+
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>>;
1414
1186
 
1415
1187
  type index_d_ActionEvent = ActionEvent;
1416
1188
  type index_d_Address = Address;
@@ -1472,6 +1244,7 @@ type index_d_PageLink = PageLink;
1472
1244
  type index_d_Paging = Paging;
1473
1245
  type index_d_PagingMetadataV2 = PagingMetadataV2;
1474
1246
  type index_d_Product = Product;
1247
+ type index_d_ProductNonNullableFields = ProductNonNullableFields;
1475
1248
  type index_d_ProductsQueryBuilder = ProductsQueryBuilder;
1476
1249
  type index_d_ProductsQueryResult = ProductsQueryResult;
1477
1250
  type index_d_QueryProductsOptions = QueryProductsOptions;
@@ -1482,6 +1255,7 @@ type index_d_QueryV2 = QueryV2;
1482
1255
  type index_d_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
1483
1256
  type index_d_ResetProductsDbRequest = ResetProductsDbRequest;
1484
1257
  type index_d_ResetProductsDbResponse = ResetProductsDbResponse;
1258
+ type index_d_RestoreInfo = RestoreInfo;
1485
1259
  type index_d_SortOrder = SortOrder;
1486
1260
  declare const index_d_SortOrder: typeof SortOrder;
1487
1261
  type index_d_Sorting = Sorting;
@@ -1500,7 +1274,6 @@ type index_d_Variant = Variant;
1500
1274
  type index_d_VideoResolution = VideoResolution;
1501
1275
  type index_d_WebhookIdentityType = WebhookIdentityType;
1502
1276
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
1503
- declare const index_d___metadata: typeof __metadata;
1504
1277
  declare const index_d_bulkCreateProducts: typeof bulkCreateProducts;
1505
1278
  declare const index_d_bulkDeleteProducts: typeof bulkDeleteProducts;
1506
1279
  declare const index_d_bulkUpdateProducts: typeof bulkUpdateProducts;
@@ -1511,7 +1284,7 @@ declare const index_d_getProductsStartWith: typeof getProductsStartWith;
1511
1284
  declare const index_d_queryProducts: typeof queryProducts;
1512
1285
  declare const index_d_updateProduct: typeof updateProduct;
1513
1286
  declare namespace index_d {
1514
- 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 };
1515
1288
  }
1516
1289
 
1517
1290
  export { index_d$2 as alarms, index_d$1 as metroinspector, index_d as products };