@dv4resi/dvss-backend-module-offering-im 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -531,6 +531,9 @@ interface ICreateOrderResponse {
531
531
  items: (Pick<IBookableItem, 'externalId' | 'type' | 'name'> & {
532
532
  totalPrice?: number;
533
533
  primaryAsset?: IMedia;
534
+ meta: {
535
+ basketItemId: string;
536
+ };
534
537
  })[];
535
538
  }
536
539
  interface IAddItemToOrderItemConfig {
package/dist/index.js CHANGED
@@ -3103,9 +3103,9 @@ exports.TrybeAuthService = class _TrybeAuthService {
3103
3103
  if (Object.keys(integrationConfig).length > 0) {
3104
3104
  if (!integrationConfig.apiKey) {
3105
3105
  throw new Error("Integration configuration is invalid: API Key not found");
3106
- } else if (!integrationConfig.siteId) {
3106
+ } else if (!integrationConfig.siteId || integrationConfig.siteId.trim() === "") {
3107
3107
  throw new Error("Integration configuration is invalid: Site ID not found");
3108
- } else if (!integrationConfig.organisationId) {
3108
+ } else if (!integrationConfig.organisationId || integrationConfig.organisationId.trim() === "") {
3109
3109
  throw new Error("Integration configuration is invalid: Organisation ID not found");
3110
3110
  }
3111
3111
  } else {
@@ -3909,7 +3909,10 @@ exports.TrybeWellnessManagement = class _TrybeWellnessManagement {
3909
3909
  meta: {
3910
3910
  url: offering.data.image.original_url
3911
3911
  }
3912
- } : void 0
3912
+ } : void 0,
3913
+ meta: {
3914
+ basketItemId: bookableItem.id
3915
+ }
3913
3916
  };
3914
3917
  }) ?? []
3915
3918
  };