@one-commerce/sdk-core 2.3.12 → 2.4.3
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/lib/bundles/bundle.esm.js +10 -0
- package/lib/bundles/bundle.esm.js.map +1 -1
- package/lib/bundles/bundle.esm.min.js +1 -1
- package/lib/bundles/bundle.esm.min.js.map +1 -1
- package/lib/bundles/bundle.umd.js +10 -0
- package/lib/bundles/bundle.umd.js.map +1 -1
- package/lib/bundles/bundle.umd.min.js +1 -1
- package/lib/bundles/bundle.umd.min.js.map +1 -1
- package/lib/cjs/shop/services.js +10 -0
- package/lib/cjs/shop/services.js.map +1 -1
- package/lib/esm/shop/services.js +8 -0
- package/lib/esm/shop/services.js.map +1 -1
- package/lib/types/shop/services.d.ts +5 -0
- package/lib/types/shop/services.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/shop/services.ts"],"names":["ShopCatalog","productId","call","page","products","warehouses","isGross","categoryId","BaseCallClass","ShopWishlist","wishlistId","newProduct","name","ShopAccount","ShopCart","amount","where","cartId","ShopAuthorization","ShopUtils","routes","getCategoryPath","getManufacturerSearchUrl","getProductUrl","isExternalUrl","options","id","manufacturer","product","url","ShopConfig","ShopTenant","ShopPlugin"],"mappings":";;;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;IAEaA,W;;;;;;;;;;;;;;;;kEACG,S;;;;;;;;;;;WAId,sBAAaC,SAAb,EAA8C;AAC5C,aAAO,KAAKC,IAAL,CAAU,cAAV,EAA0BD,SAA1B,CAAP;AACD;;;WAED,uBAAcE,IAAd,EAA+C;AAC7C,aAAO,KAAKD,IAAL,CAAU,eAAV,EAA2BC,IAA3B,CAAP;AACD;;;WAED,6CAAoCC,QAApC,EAA6DC,UAA7D,EAA0G;AACxG,aAAO,KAAKH,IAAL,CAAU,qCAAV,EAAiDE,QAAjD,EAA2DC,UAA3D,CAAP;AACD;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shop/services.ts"],"names":["ShopCatalog","productId","call","page","products","warehouses","isGross","categoryId","BaseCallClass","ShopWishlist","wishlistId","newProduct","name","ShopAccount","ShopCart","amount","where","cartId","newProducts","ShopAuthorization","ShopUtils","routes","getCategoryPath","getManufacturerSearchUrl","getProductUrl","isExternalUrl","options","id","manufacturer","product","url","ShopConfig","ShopTenant","ShopPlugin"],"mappings":";;;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;IAEaA,W;;;;;;;;;;;;;;;;kEACG,S;;;;;;;;;;;WAId,sBAAaC,SAAb,EAA8C;AAC5C,aAAO,KAAKC,IAAL,CAAU,cAAV,EAA0BD,SAA1B,CAAP;AACD;;;WAED,uBAAcE,IAAd,EAA+C;AAC7C,aAAO,KAAKD,IAAL,CAAU,eAAV,EAA2BC,IAA3B,CAAP;AACD;;;WAED,6CAAoCC,QAApC,EAA6DC,UAA7D,EAA0G;AACxG,aAAO,KAAKH,IAAL,CAAU,qCAAV,EAAiDE,QAAjD,EAA2DC,UAA3D,CAAP;AACD;;;WAED,yBAAgBJ,SAAhB,EAAmCK,OAAnC,EAAuE;AACrE,aAAO,KAAKJ,IAAL,CAAU,iBAAV,EAA6BD,SAA7B,EAAwCK,OAAxC,CAAP;AACD;;;WAED,iCAAwBF,QAAxB,EAGsB;AACpB,aAAO,KAAKF,IAAL,CAAU,yBAAV,EAAqCE,QAArC,CAAP;AACD;;;WAED,2BAAoC;AAClC,aAAO,KAAKF,IAAL,CAAU,iBAAV,CAAP;AACD;;;WAED,yBAAgBK,UAAhB,EAAkD;AAChD,aAAO,KAAKL,IAAL,CAAU,iBAAV,EAA6BK,UAA7B,CAAP;AACD;;;;EAlC8BC,oB;;;;IAoCpBC,Y;;;;;;;;;;;;;;;;mEACG,U;;;;;;;WAEd,+BAAsBC,UAAtB,EAA0CC,UAA1C,EAA0E;AACxE,aAAO,KAAKT,IAAL,CAAU,uBAAV,EAAmCQ,UAAnC,EAA+CC,UAA/C,CAAP;AACD;;;WAED,wB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KA,wBAFnB;AAGZC,MAAAA,aAAa,EAAE,OAAKA,aAHR;AAIZC,MAAAA,aAAa,EAAE,OAAKA;AAJR,KAAd;AAF6E;AAQ9E;;;;WAZD,gBAAOC,OAAP,EAA6D;AAC3D,aAAO,KAAKxB,IAAL,CAAU,QAAV,EAAoBwB,OAApB,CAAP;AACD;;;WAYD,yBAAgBC,EAAhB,EAAqD;AACnD,aAAO,KAAKzB,IAAL,CAAU,iBAAV,EAA6ByB,EAA7B,CAAP;AACD;;;WAED,kCAAyBC,YAAzB,EAAgE;AAC9D,aAAO,KAAK1B,IAAL,CAAU,0BAAV,EAAsC0B,YAAtC,CAAP;AACD;;;WAED,uBAAcC,OAAd,EAAoD;AAClD,aAAO,KAAK3B,IAAL,CAAU,eAAV,EAA2B2B,OAA3B,CAAP;AACD;;;WAED,uBAAcC,GAAd,EAA6C;AAC3C,aAAO,KAAK5B,IAAL,CAAU,eAAV,EAA2B4B,GAA3B,CAAP;AACD;;;;EApC4BtB,oB;;;;IA0DlBuB,U;;;;;;;;;;;;;;;;mEACG,Q;;;;;;;;;;;;;;;;;;;;;;;;EADgBvB,oB;;;;IAanBwB,U;;;;;;;;;;;;;;;;mEACG,Q;;;;;;;;;;EADgBxB,oB;;;;IAMnByB,U;;;;;;;;;;;;;;;;mEACG,Q;;;;;;;;;;;;EADgBzB,oB","sourcesContent":["import { Shop } from \"@one-commerce/sdk-shared\";\n\nimport { BaseCallClass } from \"../utils\";\n\nexport class ShopCatalog extends BaseCallClass implements Shop.Catalog {\n serviceName = 'catalog'\n categories!: Array<any>;\n selectedCategoryId!: string | null;\n\n fetchProduct(productId: string): Promise<any> {\n return this.call('fetchProduct', productId)\n }\n\n fetchProducts(page: unknown): Promise<unknown> {\n return this.call('fetchProducts', page)\n }\n\n fetchStocksForProductsAndWarehouses(products: Array<string>, warehouses: Array<string>): Promise<unknown> {\n return this.call('fetchStocksForProductsAndWarehouses', products, warehouses)\n }\n\n getProductPrice(productId: string, isGross: boolean): Promise<unknown> {\n return this.call('getProductPrice', productId, isGross)\n }\n\n fetchPricingForProducts(products: Array<{\n productId: string\n quantity?: number\n }>): Promise<unknown> {\n return this.call('fetchPricingForProducts', products)\n }\n\n fetchWarehouses(): Promise<unknown> {\n return this.call('fetchWarehouses')\n }\n\n getCategoryById(categoryId: string): Promise<any> {\n return this.call('getCategoryById', categoryId)\n }\n}\nexport class ShopWishlist extends BaseCallClass implements Shop.Wishlist {\n serviceName = 'wishlist'\n\n addProductsToWishlist(wishlistId: string, newProduct: any): Promise<void> {\n return this.call('addProductsToWishlist', wishlistId, newProduct)\n }\n\n getWishlists(): Promise<any> {\n return this.call('getWishlists')\n }\n\n createWishlist(name: string): Promise<any> {\n return this.call('createWishlist', name)\n }\n}\nexport class ShopAccount extends BaseCallClass implements Shop.Account {\n serviceName = 'account'\n client!: {\n id: string;\n name: string;\n externalId?: string;\n tin?: string;\n phone?: string;\n segmentId?: string;\n segments: {\n additionalSegments?: Array<{\n id: string;\n name: string;\n externalId?: string;\n parentSegmentId?: string;\n }>;\n mainSegment: {\n id: string;\n name: string;\n externalId?: string;\n parentSegmentId?: string;\n };\n };\n warehouseId?: string;\n termPayment?: {\n id: string;\n label?: string;\n paymentDaysPeriod?: number;\n };\n isTaxPayer?: boolean;\n billingAddress?: {\n city: string;\n country: string;\n id: string;\n isDefault: boolean;\n name: string;\n phone: string;\n street: string;\n type: string;\n zipCode: string\n }\n };\n isAuthenticated!: boolean;\n user!: {\n id?: string,\n clientId?: string,\n email?: string;\n name?: string;\n phone?: string;\n rol?: {\n name: string;\n id: string;\n }\n /**\n * @deprecated Use non-nested function instead\n */\n hasSegment(name: string): Promise<boolean>\n };\n\n hasSegment(name: string): Promise<boolean> {\n return this.call('hasSegment', name)\n }\n\n manager!: {\n additionalEmail?: string;\n email: string; id: string;\n landlinePhone?: string;\n mobilePhone?: string;\n name: string;\n photo?: string\n };\n\n logout(): void {\n // NotImplementedYet\n }\n}\n\nexport class ShopCart extends BaseCallClass implements Shop.Cart {\n serviceName = 'cart'\n carts!: Array<any>;\n currentCart!: any;\n totalCartPrice!: number;\n\n addToCart(productId: string, amount: number, where: string, cartId?: string): Promise<void> {\n return this.call('addToCart', productId, amount, where, cartId)\n }\n\n addMultipleProductsToCart(newProducts: Array<{ productId: string; amountOfProducts: number; }>, cartId?: string): Promise<any | null> {\n return this.call('addMultipleProductsToCart', newProducts, cartId)\n }\n\n fetchCart(cartId?: string): Promise<void> {\n return this.call('fetchCart', cartId)\n }\n}\n\nexport class ShopAuthorization extends BaseCallClass implements Shop.Authorization {\n serviceName = 'authorization'\n\n getAuthToken(): Promise<string> {\n return this.call('getAuthToken')\n }\n}\n\nexport class ShopUtils extends BaseCallClass implements Shop.Utils {\n serviceName = 'utils'\n currency!: any;\n isAnonymousAndPurchaseDisabled!: boolean;\n isB2B!: boolean;\n isB2BAndPlatformIsNotOpened!: boolean;\n isIndexPage!: boolean;\n isPurchaseEnabledOrAuthenticated!: boolean;\n notify(options: NotificationOptions | string): Promise<void> {\n return this.call('notify', options)\n }\n\n constructor(call: (service: string, fun: string, ...arg: any) => Promise<any>) {\n super(call)\n this.routes = {\n getCategoryPath: this.getCategoryPath,\n getManufacturerSearchUrl: this.getManufacturerSearchUrl,\n getProductUrl: this.getProductUrl,\n isExternalUrl: this.isExternalUrl\n }\n }\n\n getCategoryPath(id?: string): Promise<string | null> {\n return this.call('getCategoryPath', id)\n }\n\n getManufacturerSearchUrl(manufacturer: string): Promise<string> {\n return this.call('getManufacturerSearchUrl', manufacturer)\n }\n\n getProductUrl(product: any): Promise<string | null> {\n return this.call('getProductUrl', product)\n }\n\n isExternalUrl(url: string): Promise<boolean> {\n return this.call('isExternalUrl', url)\n }\n\n routes: {\n /**\n * @deprecated Use non-nested function instead\n */\n getCategoryPath(id?: string): (Promise<string | null> | string | null);\n /**\n * @deprecated Use non-nested function instead\n */\n getManufacturerSearchUrl(manufacturer: string): (Promise<string> | string);\n /**\n * @deprecated Use non-nested function instead\n */\n getProductUrl(product: any): (Promise<string | null> | string | null);\n /**\n * @deprecated Use non-nested function instead\n */\n isExternalUrl(url: string): (Promise<boolean> | boolean)\n };\n}\n\nexport class ShopConfig extends BaseCallClass implements Shop.Config {\n serviceName = 'config'\n accessMode!: string;\n isB2CRegistrationEnabled!: boolean;\n isCatalogOpened!: boolean;\n isGrossSelected!: boolean;\n isPlatformClosed!: boolean;\n isPlatformOpened!: boolean;\n isPurchaseEnabled!: boolean;\n isRegistrationEnabled!: boolean;\n currency: any;\n}\n\nexport class ShopTenant extends BaseCallClass implements Shop.Tenant {\n serviceName = 'tenant'\n tenantKey: string | null;\n language: string;\n}\n\nexport class ShopPlugin extends BaseCallClass implements Shop.Plugin {\n serviceName = 'plugin'\n id: string;\n srcUrl?: string;\n name?: string;\n}\n"],"file":"services.js"}
|
package/lib/esm/shop/services.js
CHANGED
|
@@ -101,6 +101,14 @@ export class ShopCart extends BaseCallClass {
|
|
|
101
101
|
return this.call('addToCart', productId, amount, where, cartId);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
addMultipleProductsToCart(newProducts, cartId) {
|
|
105
|
+
return this.call('addMultipleProductsToCart', newProducts, cartId);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
fetchCart(cartId) {
|
|
109
|
+
return this.call('fetchCart', cartId);
|
|
110
|
+
}
|
|
111
|
+
|
|
104
112
|
}
|
|
105
113
|
export class ShopAuthorization extends BaseCallClass {
|
|
106
114
|
constructor(...args) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/shop/services.ts"],"names":["BaseCallClass","ShopCatalog","fetchProduct","productId","call","fetchProducts","page","fetchStocksForProductsAndWarehouses","products","warehouses","getProductPrice","isGross","fetchPricingForProducts","fetchWarehouses","getCategoryById","categoryId","ShopWishlist","addProductsToWishlist","wishlistId","newProduct","getWishlists","createWishlist","name","ShopAccount","hasSegment","logout","ShopCart","addToCart","amount","where","cartId","ShopAuthorization","getAuthToken","ShopUtils","notify","options","constructor","routes","getCategoryPath","getManufacturerSearchUrl","getProductUrl","isExternalUrl","id","manufacturer","product","url","ShopConfig","ShopTenant","ShopPlugin"],"mappings":";;AAEA,SAASA,aAAT,QAA8B,UAA9B;AAEA,OAAO,MAAMC,WAAN,SAA0BD,aAA1B,CAAgE;AAAA;AAAA;;AAAA,yCACvD,SADuD;;AAAA;;AAAA;AAAA;;AAKrEE,EAAAA,YAAY,CAACC,SAAD,EAAkC;AAC5C,WAAO,KAAKC,IAAL,CAAU,cAAV,EAA0BD,SAA1B,CAAP;AACD;;AAEDE,EAAAA,aAAa,CAACC,IAAD,EAAkC;AAC7C,WAAO,KAAKF,IAAL,CAAU,eAAV,EAA2BE,IAA3B,CAAP;AACD;;AAEDC,EAAAA,mCAAmC,CAACC,QAAD,EAA0BC,UAA1B,EAAuE;AACxG,WAAO,KAAKL,IAAL,CAAU,qCAAV,EAAiDI,QAAjD,EAA2DC,UAA3D,CAAP;AACD;;AAEDC,EAAAA,eAAe,CAACP,SAAD,EAAoBQ,OAApB,EAAwD;AACrE,WAAO,KAAKP,IAAL,CAAU,iBAAV,EAA6BD,SAA7B,EAAwCQ,OAAxC,CAAP;AACD;;AAEDC,EAAAA,uBAAuB,CAACJ,QAAD,EAGD;AACpB,WAAO,KAAKJ,IAAL,CAAU,yBAAV,EAAqCI,QAArC,CAAP;AACD;;AAEDK,EAAAA,eAAe,GAAqB;AAClC,WAAO,KAAKT,IAAL,CAAU,iBAAV,CAAP;AACD;;AAEDU,EAAAA,eAAe,CAACC,UAAD,EAAmC;AAChD,WAAO,KAAKX,IAAL,CAAU,iBAAV,EAA6BW,UAA7B,CAAP;AACD;;AAlCoE;AAoCvE,OAAO,MAAMC,YAAN,SAA2BhB,aAA3B,CAAkE;AAAA;AAAA;;AAAA,yCACzD,UADyD;AAAA;;AAGvEiB,EAAAA,qBAAqB,CAACC,UAAD,EAAqBC,UAArB,EAAqD;AACxE,WAAO,KAAKf,IAAL,CAAU,uBAAV,EAAmCc,UAAnC,EAA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XjE,OAWiE;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAE7E,SAAKiC,MAAL,GAAc;AACZC,MAAAA,eAAe,EAAE,KAAKA,eADV;AAEZC,MAAAA,wBAAwB,EAAE,KAAKA,wBAFnB;AAGZC,MAAAA,aAAa,EAAE,KAAKA,aAHR;AAIZC,MAAAA,aAAa,EAAE,KAAKA;AAJR,KAAd;AAMD;;AAEDH,EAAAA,eAAe,CAACI,EAAD,EAAsC;AACnD,WAAO,KAAKtC,IAAL,CAAU,iBAAV,EAA6BsC,EAA7B,CAAP;AACD;;AAEDH,EAAAA,wBAAwB,CAACI,YAAD,EAAwC;AAC9D,WAAO,KAAKvC,IAAL,CAAU,0BAAV,EAAsCuC,YAAtC,CAAP;AACD;;AAEDH,EAAAA,aAAa,CAACI,OAAD,EAAuC;AAClD,WAAO,KAAKxC,IAAL,CAAU,eAAV,EAA2BwC,OAA3B,CAAP;AACD;;AAEDH,EAAAA,aAAa,CAACI,GAAD,EAAgC;AAC3C,WAAO,KAAKzC,IAAL,CAAU,eAAV,EAA2ByC,GAA3B,CAAP;AACD;;AApCgE;AA0DnE,OAAO,MAAMC,UAAN,SAAyB9C,aAAzB,CAA8D;AAAA;AAAA;;AAAA,yCACrD,QADqD;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAarE,OAAO,MAAM+C,UAAN,SAAyB/C,aAAzB,CAA8D;AAAA;AAAA;;AAAA,yCACrD,QADqD;;AAAA;;AAAA;AAAA;;AAAA;AAMrE,OAAO,MAAMgD,UAAN,SAAyBhD,aAAzB,CAA8D;AAAA;AAAA;;AAAA,yCACrD,QADqD;;AAAA;;AAAA;;AAAA;AAAA;;AAAA","sourcesContent":["import { Shop } from \"@one-commerce/sdk-shared\";\n\nimport { BaseCallClass } from \"../utils\";\n\nexport class ShopCatalog extends BaseCallClass implements Shop.Catalog {\n serviceName = 'catalog'\n categories!: Array<any>;\n selectedCategoryId!: string | null;\n\n fetchProduct(productId: string): Promise<any> {\n return this.call('fetchProduct', productId)\n }\n\n fetchProducts(page: unknown): Promise<unknown> {\n return this.call('fetchProducts', page)\n }\n\n fetchStocksForProductsAndWarehouses(products: Array<string>, warehouses: Array<string>): Promise<unknown> {\n return this.call('fetchStocksForProductsAndWarehouses', products, warehouses)\n }\n\n getProductPrice(productId: string, isGross: boolean): Promise<unknown> {\n return this.call('getProductPrice', productId, isGross)\n }\n\n fetchPricingForProducts(products: Array<{\n productId: string\n quantity?: number\n }>): Promise<unknown> {\n return this.call('fetchPricingForProducts', products)\n }\n\n fetchWarehouses(): Promise<unknown> {\n return this.call('fetchWarehouses')\n }\n\n getCategoryById(categoryId: string): Promise<any> {\n return this.call('getCategoryById', categoryId)\n }\n}\nexport class ShopWishlist extends BaseCallClass implements Shop.Wishlist {\n serviceName = 'wishlist'\n\n addProductsToWishlist(wishlistId: string, newProduct: any): Promise<void> {\n return this.call('addProductsToWishlist', wishlistId, newProduct)\n }\n\n getWishlists(): Promise<any> {\n return this.call('getWishlists')\n }\n\n createWishlist(name: string): Promise<any> {\n return this.call('createWishlist', name)\n }\n}\nexport class ShopAccount extends BaseCallClass implements Shop.Account {\n serviceName = 'account'\n client!: {\n id: string;\n name: string;\n externalId?: string;\n tin?: string;\n phone?: string;\n segmentId?: string;\n segments: {\n additionalSegments?: Array<{\n id: string;\n name: string;\n externalId?: string;\n parentSegmentId?: string;\n }>;\n mainSegment: {\n id: string;\n name: string;\n externalId?: string;\n parentSegmentId?: string;\n };\n };\n warehouseId?: string;\n termPayment?: {\n id: string;\n label?: string;\n paymentDaysPeriod?: number;\n };\n isTaxPayer?: boolean;\n billingAddress?: {\n city: string;\n country: string;\n id: string;\n isDefault: boolean;\n name: string;\n phone: string;\n street: string;\n type: string;\n zipCode: string\n }\n };\n isAuthenticated!: boolean;\n user!: {\n id?: string,\n clientId?: string,\n email?: string;\n name?: string;\n phone?: string;\n rol?: {\n name: string;\n id: string;\n }\n /**\n * @deprecated Use non-nested function instead\n */\n hasSegment(name: string): Promise<boolean>\n };\n\n hasSegment(name: string): Promise<boolean> {\n return this.call('hasSegment', name)\n }\n\n manager!: {\n additionalEmail?: string;\n email: string; id: string;\n landlinePhone?: string;\n mobilePhone?: string;\n name: string;\n photo?: string\n };\n\n logout(): void {\n // NotImplementedYet\n }\n}\n\nexport class ShopCart extends BaseCallClass implements Shop.Cart {\n serviceName = 'cart'\n carts!: Array<any>;\n currentCart!: any;\n totalCartPrice!: number;\n\n addToCart(productId: string, amount: number, where: string, cartId?: string): Promise<void> {\n return this.call('addToCart', productId, amount, where, cartId)\n }\n}\n\nexport class ShopAuthorization extends BaseCallClass implements Shop.Authorization {\n serviceName = 'authorization'\n\n getAuthToken(): Promise<string> {\n return this.call('getAuthToken')\n }\n}\n\nexport class ShopUtils extends BaseCallClass implements Shop.Utils {\n serviceName = 'utils'\n currency!: any;\n isAnonymousAndPurchaseDisabled!: boolean;\n isB2B!: boolean;\n isB2BAndPlatformIsNotOpened!: boolean;\n isIndexPage!: boolean;\n isPurchaseEnabledOrAuthenticated!: boolean;\n notify(options: NotificationOptions | string): Promise<void> {\n return this.call('notify', options)\n }\n\n constructor(call: (service: string, fun: string, ...arg: any) => Promise<any>) {\n super(call)\n this.routes = {\n getCategoryPath: this.getCategoryPath,\n getManufacturerSearchUrl: this.getManufacturerSearchUrl,\n getProductUrl: this.getProductUrl,\n isExternalUrl: this.isExternalUrl\n }\n }\n\n getCategoryPath(id?: string): Promise<string | null> {\n return this.call('getCategoryPath', id)\n }\n\n getManufacturerSearchUrl(manufacturer: string): Promise<string> {\n return this.call('getManufacturerSearchUrl', manufacturer)\n }\n\n getProductUrl(product: any): Promise<string | null> {\n return this.call('getProductUrl', product)\n }\n\n isExternalUrl(url: string): Promise<boolean> {\n return this.call('isExternalUrl', url)\n }\n\n routes: {\n /**\n * @deprecated Use non-nested function instead\n */\n getCategoryPath(id?: string): (Promise<string | null> | string | null);\n /**\n * @deprecated Use non-nested function instead\n */\n getManufacturerSearchUrl(manufacturer: string): (Promise<string> | string);\n /**\n * @deprecated Use non-nested function instead\n */\n getProductUrl(product: any): (Promise<string | null> | string | null);\n /**\n * @deprecated Use non-nested function instead\n */\n isExternalUrl(url: string): (Promise<boolean> | boolean)\n };\n}\n\nexport class ShopConfig extends BaseCallClass implements Shop.Config {\n serviceName = 'config'\n accessMode!: string;\n isB2CRegistrationEnabled!: boolean;\n isCatalogOpened!: boolean;\n isGrossSelected!: boolean;\n isPlatformClosed!: boolean;\n isPlatformOpened!: boolean;\n isPurchaseEnabled!: boolean;\n isRegistrationEnabled!: boolean;\n currency: any;\n}\n\nexport class ShopTenant extends BaseCallClass implements Shop.Tenant {\n serviceName = 'tenant'\n tenantKey: string | null;\n language: string;\n}\n\nexport class ShopPlugin extends BaseCallClass implements Shop.Plugin {\n serviceName = 'plugin'\n id: string;\n srcUrl?: string;\n name?: string;\n}\n"],"file":"services.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/shop/services.ts"],"names":["BaseCallClass","ShopCatalog","fetchProduct","productId","call","fetchProducts","page","fetchStocksForProductsAndWarehouses","products","warehouses","getProductPrice","isGross","fetchPricingForProducts","fetchWarehouses","getCategoryById","categoryId","ShopWishlist","addProductsToWishlist","wishlistId","newProduct","getWishlists","createWishlist","name","ShopAccount","hasSegment","logout","ShopCart","addToCart","amount","where","cartId","addMultipleProductsToCart","newProducts","fetchCart","ShopAuthorization","getAuthToken","ShopUtils","notify","options","constructor","routes","getCategoryPath","getManufacturerSearchUrl","getProductUrl","isExternalUrl","id","manufacturer","product","url","ShopConfig","ShopTenant","ShopPlugin"],"mappings":";;AAEA,SAASA,aAAT,QAA8B,UAA9B;AAEA,OAAO,MAAMC,WAAN,SAA0BD,aAA1B,CAAgE;AAAA;AAAA;;AAAA,yCACvD,SADuD;;AAAA;;AAAA;AAAA;;AAKrEE,EAAAA,YAAY,CAACC,SAAD,EAAkC;AAC5C,WAAO,KAAKC,IAAL,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AAA;;AAAA;;AAE7E,SAAKoC,MAAL,GAAc;AACZC,MAAAA,eAAe,EAAE,KAAKA,eADV;AAEZC,MAAAA,wBAAwB,EAAE,KAAKA,wBAFnB;AAGZC,MAAAA,aAAa,EAAE,KAAKA,aAHR;AAIZC,MAAAA,aAAa,EAAE,KAAKA;AAJR,KAAd;AAMD;;AAEDH,EAAAA,eAAe,CAACI,EAAD,EAAsC;AACnD,WAAO,KAAKzC,IAAL,CAAU,iBAAV,EAA6ByC,EAA7B,CAAP;AACD;;AAEDH,EAAAA,wBAAwB,CAACI,YAAD,EAAwC;AAC9D,WAAO,KAAK1C,IAAL,CAAU,0BAAV,EAAsC0C,YAAtC,CAAP;AACD;;AAEDH,EAAAA,aAAa,CAACI,OAAD,EAAuC;AAClD,WAAO,KAAK3C,IAAL,CAAU,eAAV,EAA2B2C,OAA3B,CAAP;AACD;;AAEDH,EAAAA,aAAa,CAACI,GAAD,EAAgC;AAC3C,WAAO,KAAK5C,IAAL,CAAU,eAAV,EAA2B4C,GAA3B,CAAP;AACD;;AApCgE;AA0DnE,OAAO,MAAMC,UAAN,SAAyBjD,aAAzB,CAA8D;AAAA;AAAA;;AAAA,yCACrD,QADqD;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAarE,OAAO,MAAMkD,UAAN,SAAyBlD,aAAzB,CAA8D;AAAA;AAAA;;AAAA,yCACrD,QADqD;;AAAA;;AAAA;AAAA;;AAAA;AAMrE,OAAO,MAAMmD,UAAN,SAAyBnD,aAAzB,CAA8D;AAAA;AAAA;;AAAA,yCACrD,QADqD;;AAAA;;AAAA;;AAAA;AAAA;;AAAA","sourcesContent":["import { Shop } from \"@one-commerce/sdk-shared\";\n\nimport { BaseCallClass } from \"../utils\";\n\nexport class ShopCatalog extends BaseCallClass implements Shop.Catalog {\n serviceName = 'catalog'\n categories!: Array<any>;\n selectedCategoryId!: string | null;\n\n fetchProduct(productId: string): Promise<any> {\n return this.call('fetchProduct', productId)\n }\n\n fetchProducts(page: unknown): Promise<unknown> {\n return this.call('fetchProducts', page)\n }\n\n fetchStocksForProductsAndWarehouses(products: Array<string>, warehouses: Array<string>): Promise<unknown> {\n return this.call('fetchStocksForProductsAndWarehouses', products, warehouses)\n }\n\n getProductPrice(productId: string, isGross: boolean): Promise<unknown> {\n return this.call('getProductPrice', productId, isGross)\n }\n\n fetchPricingForProducts(products: Array<{\n productId: string\n quantity?: number\n }>): Promise<unknown> {\n return this.call('fetchPricingForProducts', products)\n }\n\n fetchWarehouses(): Promise<unknown> {\n return this.call('fetchWarehouses')\n }\n\n getCategoryById(categoryId: string): Promise<any> {\n return this.call('getCategoryById', categoryId)\n }\n}\nexport class ShopWishlist extends BaseCallClass implements Shop.Wishlist {\n serviceName = 'wishlist'\n\n addProductsToWishlist(wishlistId: string, newProduct: any): Promise<void> {\n return this.call('addProductsToWishlist', wishlistId, newProduct)\n }\n\n getWishlists(): Promise<any> {\n return this.call('getWishlists')\n }\n\n createWishlist(name: string): Promise<any> {\n return this.call('createWishlist', name)\n }\n}\nexport class ShopAccount extends BaseCallClass implements Shop.Account {\n serviceName = 'account'\n client!: {\n id: string;\n name: string;\n externalId?: string;\n tin?: string;\n phone?: string;\n segmentId?: string;\n segments: {\n additionalSegments?: Array<{\n id: string;\n name: string;\n externalId?: string;\n parentSegmentId?: string;\n }>;\n mainSegment: {\n id: string;\n name: string;\n externalId?: string;\n parentSegmentId?: string;\n };\n };\n warehouseId?: string;\n termPayment?: {\n id: string;\n label?: string;\n paymentDaysPeriod?: number;\n };\n isTaxPayer?: boolean;\n billingAddress?: {\n city: string;\n country: string;\n id: string;\n isDefault: boolean;\n name: string;\n phone: string;\n street: string;\n type: string;\n zipCode: string\n }\n };\n isAuthenticated!: boolean;\n user!: {\n id?: string,\n clientId?: string,\n email?: string;\n name?: string;\n phone?: string;\n rol?: {\n name: string;\n id: string;\n }\n /**\n * @deprecated Use non-nested function instead\n */\n hasSegment(name: string): Promise<boolean>\n };\n\n hasSegment(name: string): Promise<boolean> {\n return this.call('hasSegment', name)\n }\n\n manager!: {\n additionalEmail?: string;\n email: string; id: string;\n landlinePhone?: string;\n mobilePhone?: string;\n name: string;\n photo?: string\n };\n\n logout(): void {\n // NotImplementedYet\n }\n}\n\nexport class ShopCart extends BaseCallClass implements Shop.Cart {\n serviceName = 'cart'\n carts!: Array<any>;\n currentCart!: any;\n totalCartPrice!: number;\n\n addToCart(productId: string, amount: number, where: string, cartId?: string): Promise<void> {\n return this.call('addToCart', productId, amount, where, cartId)\n }\n\n addMultipleProductsToCart(newProducts: Array<{ productId: string; amountOfProducts: number; }>, cartId?: string): Promise<any | null> {\n return this.call('addMultipleProductsToCart', newProducts, cartId)\n }\n\n fetchCart(cartId?: string): Promise<void> {\n return this.call('fetchCart', cartId)\n }\n}\n\nexport class ShopAuthorization extends BaseCallClass implements Shop.Authorization {\n serviceName = 'authorization'\n\n getAuthToken(): Promise<string> {\n return this.call('getAuthToken')\n }\n}\n\nexport class ShopUtils extends BaseCallClass implements Shop.Utils {\n serviceName = 'utils'\n currency!: any;\n isAnonymousAndPurchaseDisabled!: boolean;\n isB2B!: boolean;\n isB2BAndPlatformIsNotOpened!: boolean;\n isIndexPage!: boolean;\n isPurchaseEnabledOrAuthenticated!: boolean;\n notify(options: NotificationOptions | string): Promise<void> {\n return this.call('notify', options)\n }\n\n constructor(call: (service: string, fun: string, ...arg: any) => Promise<any>) {\n super(call)\n this.routes = {\n getCategoryPath: this.getCategoryPath,\n getManufacturerSearchUrl: this.getManufacturerSearchUrl,\n getProductUrl: this.getProductUrl,\n isExternalUrl: this.isExternalUrl\n }\n }\n\n getCategoryPath(id?: string): Promise<string | null> {\n return this.call('getCategoryPath', id)\n }\n\n getManufacturerSearchUrl(manufacturer: string): Promise<string> {\n return this.call('getManufacturerSearchUrl', manufacturer)\n }\n\n getProductUrl(product: any): Promise<string | null> {\n return this.call('getProductUrl', product)\n }\n\n isExternalUrl(url: string): Promise<boolean> {\n return this.call('isExternalUrl', url)\n }\n\n routes: {\n /**\n * @deprecated Use non-nested function instead\n */\n getCategoryPath(id?: string): (Promise<string | null> | string | null);\n /**\n * @deprecated Use non-nested function instead\n */\n getManufacturerSearchUrl(manufacturer: string): (Promise<string> | string);\n /**\n * @deprecated Use non-nested function instead\n */\n getProductUrl(product: any): (Promise<string | null> | string | null);\n /**\n * @deprecated Use non-nested function instead\n */\n isExternalUrl(url: string): (Promise<boolean> | boolean)\n };\n}\n\nexport class ShopConfig extends BaseCallClass implements Shop.Config {\n serviceName = 'config'\n accessMode!: string;\n isB2CRegistrationEnabled!: boolean;\n isCatalogOpened!: boolean;\n isGrossSelected!: boolean;\n isPlatformClosed!: boolean;\n isPlatformOpened!: boolean;\n isPurchaseEnabled!: boolean;\n isRegistrationEnabled!: boolean;\n currency: any;\n}\n\nexport class ShopTenant extends BaseCallClass implements Shop.Tenant {\n serviceName = 'tenant'\n tenantKey: string | null;\n language: string;\n}\n\nexport class ShopPlugin extends BaseCallClass implements Shop.Plugin {\n serviceName = 'plugin'\n id: string;\n srcUrl?: string;\n name?: string;\n}\n"],"file":"services.js"}
|
|
@@ -97,6 +97,11 @@ export declare class ShopCart extends BaseCallClass implements Shop.Cart {
|
|
|
97
97
|
currentCart: any;
|
|
98
98
|
totalCartPrice: number;
|
|
99
99
|
addToCart(productId: string, amount: number, where: string, cartId?: string): Promise<void>;
|
|
100
|
+
addMultipleProductsToCart(newProducts: Array<{
|
|
101
|
+
productId: string;
|
|
102
|
+
amountOfProducts: number;
|
|
103
|
+
}>, cartId?: string): Promise<any | null>;
|
|
104
|
+
fetchCart(cartId?: string): Promise<void>;
|
|
100
105
|
}
|
|
101
106
|
export declare class ShopAuthorization extends BaseCallClass implements Shop.Authorization {
|
|
102
107
|
serviceName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src/shop/services.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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,GAAG,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,CAAA;KACzD,CAAC;CACH;AAED,qBAAa,UAAW,SAAQ,aAAc,YAAW,IAAI,CAAC,MAAM;IAClE,WAAW,SAAW;IACtB,UAAU,EAAG,MAAM,CAAC;IACpB,wBAAwB,EAAG,OAAO,CAAC;IACnC,eAAe,EAAG,OAAO,CAAC;IAC1B,eAAe,EAAG,OAAO,CAAC;IAC1B,gBAAgB,EAAG,OAAO,CAAC;IAC3B,gBAAgB,EAAG,OAAO,CAAC;IAC3B,iBAAiB,EAAG,OAAO,CAAC;IAC5B,qBAAqB,EAAG,OAAO,CAAC;IAChC,QAAQ,EAAE,GAAG,CAAC;CACf;AAED,qBAAa,UAAW,SAAQ,aAAc,YAAW,IAAI,CAAC,MAAM;IAClE,WAAW,SAAW;IACtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,UAAW,SAAQ,aAAc,YAAW,IAAI,CAAC,MAAM;IAClE,WAAW,SAAW;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@one-commerce/sdk-core",
|
|
3
|
-
"version": "2.3
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "Core package for One Plugins",
|
|
5
5
|
"module": "lib/esm/index.js",
|
|
6
6
|
"main": "lib/cjs/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"node": ">=16"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@one-commerce/sdk-shared": "^2.3
|
|
58
|
+
"@one-commerce/sdk-shared": "^2.4.3",
|
|
59
59
|
"iframe-channel": "^1.2.5"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
"**/*.spec.js"
|
|
127
127
|
]
|
|
128
128
|
},
|
|
129
|
-
"gitHead": "
|
|
129
|
+
"gitHead": "a5a269d0af1a1936be60096c96136fa662531ff2"
|
|
130
130
|
}
|