@transcommerce/cwm-shared 1.1.86 → 1.1.87

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.
@@ -28706,6 +28706,35 @@ const DEFAULT_INVENTORY_API_RESPONSE = {
28706
28706
  ]
28707
28707
  };
28708
28708
 
28709
+ class Product {
28710
+ id;
28711
+ name;
28712
+ description;
28713
+ brand;
28714
+ price;
28715
+ thcPercentage;
28716
+ cbdPercentage;
28717
+ category;
28718
+ quantity;
28719
+ type;
28720
+ pictureURL;
28721
+ terpenes;
28722
+ static newProduct(from) {
28723
+ const to = new Product();
28724
+ to.id = from.productId;
28725
+ to.name = from.productName;
28726
+ to.description = from.productDescription;
28727
+ to.brand = from.brand ?? "";
28728
+ to.price = from.postTaxPriceInPennies;
28729
+ to.thcPercentage = 30;
28730
+ to.category = Category.newCategory(from.category ?? "Uncategorized");
28731
+ to.quantity = from.quantity;
28732
+ to.pictureURL = from.productPictureURL ?? undefined;
28733
+ to.terpenes = from.terpenes;
28734
+ return to;
28735
+ }
28736
+ }
28737
+
28709
28738
  class SafeHtmlPipe {
28710
28739
  sanitizer;
28711
28740
  constructor(sanitizer) {
@@ -28978,35 +29007,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
28978
29007
  args: [DOCUMENT]
28979
29008
  }] }, { type: ConfigService }, { type: i2$1.HttpClient }, { type: ClassLoggerService }] });
28980
29009
 
28981
- class Product {
28982
- id;
28983
- name;
28984
- description;
28985
- brand;
28986
- price;
28987
- thcPercentage;
28988
- cbdPercentage;
28989
- category;
28990
- quantity;
28991
- type;
28992
- pictureURL;
28993
- terpenes;
28994
- static newProduct(from) {
28995
- const to = new Product();
28996
- to.id = from.productId;
28997
- to.name = from.productName;
28998
- to.description = from.productDescription;
28999
- to.brand = from.brand ?? "";
29000
- to.price = from.postTaxPriceInPennies;
29001
- to.thcPercentage = 30;
29002
- to.category = Category.newCategory(from.category ?? "Uncategorized");
29003
- to.quantity = from.quantity;
29004
- to.pictureURL = from.productPictureURL ?? undefined;
29005
- to.terpenes = from.terpenes;
29006
- return to;
29007
- }
29008
- }
29009
-
29010
29010
  class InventoryApiService extends BaseApiService {
29011
29011
  useMockData = false;
29012
29012
  constructor(document, configService, httpClient, logger) {
@@ -29504,5 +29504,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
29504
29504
  * Generated bundle index. Do not edit.
29505
29505
  */
29506
29506
 
29507
- export { API_CONFIG_SCHEMA, AUTH_CONFIG, AUTH_CONFIG_SCHEMA, BaseApiService, CAROUSEL_CONFIG_SCHEMA, CONFIGURATION_SCHEMA, Category, ClassLoggerService, ColorStyle, ConfigService, CoordinatesStyle, Customer, CwmSharedModule, DEFAULT_API_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_BACKCOLOR, DEFAULT_CAROUSEL_CONFIG, DEFAULT_CATEGORY_SLIDE, DEFAULT_COMPANY_NAME, DEFAULT_CONFIGURATION, DEFAULT_COORDINATES, DEFAULT_CUSTOMER, DEFAULT_FONT, DEFAULT_FORECOLOR, DEFAULT_IMAGE, DEFAULT_INVENTORY_API_RESPONSE, DEFAULT_MENU_BOARD_CONFIG, DEFAULT_PROFILE, DEFAULT_SIZE, DEFAULT_SLIDE, DEFAULT_SUBSCRIPTION_CONFIG, DEFAULT_TEXT_STYLE, DbKeys, EXAMPLE_CREATE_SUBSCRIPTION_REQUEST, ExternalNavigationComponent, FontStyle, ImageStyle, InventoryApiService, Justifications, LocalStorageService, LogService, MENU_BOARD_CONFIG_SCHEMA, MockConfig, MockCustomer, MockInventoryApiResponse, MockProfile, NavigateToRouteComponent, PageNotFoundComponent, Profile, RgbaColorStyle, SLIDE_SCHEMA, SUBSCRIPTION_CONFIG_SCHEMA, SafeHtmlPipe, SizeStyle, Stack, SubscriptionApiService, TextStyle, TimeSpan, TimeSpanOverflowError, UserTypes, Utilities, adjustAlpha, cloneRGBA, createRGBA, cssStringToRGBA, darkenRGBA, decodeToken, doWithLock, hexToNamedColor, hexToRGBA, isTokenValid, isValidNamedColor, lightenRGBA, msalGuardConfigFactory, msalInstanceFactory, msalInterceptorConfigFactory, namedColorToHexColor, namedColorToRGBA, rgbaEquals, rgbaObjectToHex, rgbaToCssString, rgbaToHex, rgbaToNamedColor, waitFor };
29507
+ export { API_CONFIG_SCHEMA, AUTH_CONFIG, AUTH_CONFIG_SCHEMA, BaseApiService, CAROUSEL_CONFIG_SCHEMA, CONFIGURATION_SCHEMA, Category, ClassLoggerService, ColorStyle, ConfigService, CoordinatesStyle, Customer, CwmSharedModule, DEFAULT_API_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_BACKCOLOR, DEFAULT_CAROUSEL_CONFIG, DEFAULT_CATEGORY_SLIDE, DEFAULT_COMPANY_NAME, DEFAULT_CONFIGURATION, DEFAULT_COORDINATES, DEFAULT_CUSTOMER, DEFAULT_FONT, DEFAULT_FORECOLOR, DEFAULT_IMAGE, DEFAULT_INVENTORY_API_RESPONSE, DEFAULT_MENU_BOARD_CONFIG, DEFAULT_PROFILE, DEFAULT_SIZE, DEFAULT_SLIDE, DEFAULT_SUBSCRIPTION_CONFIG, DEFAULT_TEXT_STYLE, DbKeys, EXAMPLE_CREATE_SUBSCRIPTION_REQUEST, ExternalNavigationComponent, FontStyle, ImageStyle, InventoryApiService, Justifications, LocalStorageService, LogService, MENU_BOARD_CONFIG_SCHEMA, MockConfig, MockCustomer, MockInventoryApiResponse, MockProfile, NavigateToRouteComponent, PageNotFoundComponent, Product, Profile, RgbaColorStyle, SLIDE_SCHEMA, SUBSCRIPTION_CONFIG_SCHEMA, SafeHtmlPipe, SizeStyle, Stack, SubscriptionApiService, TextStyle, TimeSpan, TimeSpanOverflowError, UserTypes, Utilities, adjustAlpha, cloneRGBA, createRGBA, cssStringToRGBA, darkenRGBA, decodeToken, doWithLock, hexToNamedColor, hexToRGBA, isTokenValid, isValidNamedColor, lightenRGBA, msalGuardConfigFactory, msalInstanceFactory, msalInterceptorConfigFactory, namedColorToHexColor, namedColorToRGBA, rgbaEquals, rgbaObjectToHex, rgbaToCssString, rgbaToHex, rgbaToNamedColor, waitFor };
29508
29508
  //# sourceMappingURL=transcommerce-cwm-shared.mjs.map