@chaosinsight/postoffice-portalclient 2.0.27 → 2.0.29

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.
@@ -69,9 +69,9 @@ export declare enum DealState {
69
69
  active = "active",
70
70
  expired = "expired"
71
71
  }
72
- export type DealTextKeysCommon = "OutOfStockHeader" | "ExpiredHeader" | "AlcoholFooter" | "PleaseTryAgain" | "PickupReminder" | "PickupReminderLastDay";
73
- export type DealTextKeysRegular = "Footer" | "VariantFooter" | "Confirmation" | "ConfirmationWithLink" | "ConfirmationWithExternalCheckout" | "ConfirmationWithWebshop" | "Expired" | "OutOfStock" | "ExceedsMaxAllowedQuantity" | "ExceedsStock";
74
- export type DealTextKeysLive = "LiveFooter" | "RobotDisconnectedHeader" | "OrderCheckout" | "Confirmation" | "ConfirmationWithLink" | "StreamEndedWithExternalCheckout" | "ConfirmationWithExternalCheckout" | "StreamEndedConfirmationWithExternalCheckout" | "StreamEndedWithWebshop" | "ConfirmationWithWebshop" | "StreamEndedConfirmationWithWebshop" | "RobotConnected" | "ProductSoldOut";
72
+ export type DealTextKeysCommon = "OutOfStockHeader" | "ExpiredHeader" | "AlcoholFooter" | "PleaseTryAgain" | "PickupReminder" | "PickupReminderLastDay" | "SalesSubscription";
73
+ export type DealTextKeysRegular = "Footer" | "VariantFooter" | "Confirmation" | "ConfirmationWithLink" | "ConfirmationWithExternalCheckout" | "ConfirmationWithWebshop" | "Expired" | "OutOfStock" | "ExceedsMaxAllowedQuantity" | "ExceedsStock" | "SalesSubscription";
74
+ export type DealTextKeysLive = "LiveFooter" | "RobotDisconnectedHeader" | "OrderCheckout" | "Confirmation" | "ConfirmationWithLink" | "StreamEndedWithExternalCheckout" | "ConfirmationWithExternalCheckout" | "StreamEndedConfirmationWithExternalCheckout" | "StreamEndedWithWebshop" | "ConfirmationWithWebshop" | "StreamEndedConfirmationWithWebshop" | "RobotConnected" | "ProductSoldOut" | "SalesSubscription";
75
75
  export type IDealTextConfiguration<T> = {
76
76
  Common: IDealConfigurationSection<DealTextKeysCommon, T>;
77
77
  Regular: IDealConfigurationSection<DealTextKeysRegular, T>;
@@ -2,7 +2,7 @@ import { Extension, HttpMethod } from "@chaosinsight/portalclient";
2
2
  export default class Products extends Extension {
3
3
  extensionName = "Products";
4
4
  checkoutSitesPost(locationId, checkoutData) {
5
- return this.call("CheckoutSites", { locationId, ...checkoutData }, HttpMethod.Post, true);
5
+ return this.call("CheckoutSites", { ...checkoutData, LocationId: locationId }, HttpMethod.Post, true);
6
6
  }
7
7
  }
8
8
  Extension.add(Products, "products");
@@ -1 +1 @@
1
- {"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/extensions/products.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAe,MAAM,4BAA4B,CAAA;AAE9E,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,SAAS;IACpC,aAAa,GAAW,UAAU,CAAA;IAErC,iBAAiB,CAAC,UAAkB,EAAE,YAA8G;QAC1J,OAAO,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,EAAC,UAAU,EAAE,GAAG,YAAY,EAAC,EAAE,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IACxF,CAAC;CACD;AA6CD,SAAS,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA"}
1
+ {"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/extensions/products.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAe,MAAM,4BAA4B,CAAA;AAE9E,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,SAAS;IACpC,aAAa,GAAW,UAAU,CAAA;IAErC,iBAAiB,CAAC,UAAkB,EAAE,YAA8G;QAC1J,OAAO,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,EAAC,GAAG,YAAY,EAAE,UAAU,EAAE,UAAU,EAAC,EAAE,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IACpG,CAAC;CACD;AA6CD,SAAS,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaosinsight/postoffice-portalclient",
3
- "version": "2.0.27",
3
+ "version": "2.0.29",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
6
  "main": "./src/index.ts",
@@ -87,9 +87,9 @@ export enum DealState {
87
87
  expired = "expired"
88
88
  }
89
89
 
90
- export type DealTextKeysCommon = "OutOfStockHeader" | "ExpiredHeader" | "AlcoholFooter" | "PleaseTryAgain" | "PickupReminder" | "PickupReminderLastDay"
91
- export type DealTextKeysRegular = "Footer" | "VariantFooter" | "Confirmation" | "ConfirmationWithLink" | "ConfirmationWithExternalCheckout" | "ConfirmationWithWebshop" | "Expired" | "OutOfStock" | "ExceedsMaxAllowedQuantity" | "ExceedsStock"
92
- export type DealTextKeysLive = "LiveFooter" | "RobotDisconnectedHeader" | "OrderCheckout" | "Confirmation" | "ConfirmationWithLink" | "StreamEndedWithExternalCheckout" | "ConfirmationWithExternalCheckout" | "StreamEndedConfirmationWithExternalCheckout" | "StreamEndedWithWebshop" | "ConfirmationWithWebshop" | "StreamEndedConfirmationWithWebshop" | "RobotConnected" | "ProductSoldOut"
90
+ export type DealTextKeysCommon = "OutOfStockHeader" | "ExpiredHeader" | "AlcoholFooter" | "PleaseTryAgain" | "PickupReminder" | "PickupReminderLastDay" | "SalesSubscription"
91
+ export type DealTextKeysRegular = "Footer" | "VariantFooter" | "Confirmation" | "ConfirmationWithLink" | "ConfirmationWithExternalCheckout" | "ConfirmationWithWebshop" | "Expired" | "OutOfStock" | "ExceedsMaxAllowedQuantity" | "ExceedsStock" | "SalesSubscription"
92
+ export type DealTextKeysLive = "LiveFooter" | "RobotDisconnectedHeader" | "OrderCheckout" | "Confirmation" | "ConfirmationWithLink" | "StreamEndedWithExternalCheckout" | "ConfirmationWithExternalCheckout" | "StreamEndedConfirmationWithExternalCheckout" | "StreamEndedWithWebshop" | "ConfirmationWithWebshop" | "StreamEndedConfirmationWithWebshop" | "RobotConnected" | "ProductSoldOut" | "SalesSubscription"
93
93
 
94
94
  export type IDealTextConfiguration<T> = {
95
95
  Common: IDealConfigurationSection<DealTextKeysCommon, T>
@@ -5,7 +5,7 @@ export default class Products extends Extension {
5
5
  protected extensionName: string = "Products"
6
6
 
7
7
  public checkoutSitesPost(locationId: number, checkoutData: ICheckoutSiteTestDanDomainData | ICheckoutSiteTestShopifyData | ICheckoutSiteTestWooCommerceData): IServiceCall<ICheckoutUrl> {
8
- return this.call("CheckoutSites", {locationId, ...checkoutData}, HttpMethod.Post, true)
8
+ return this.call("CheckoutSites", {...checkoutData, LocationId: locationId}, HttpMethod.Post, true)
9
9
  }
10
10
  }
11
11