@longvansoftware/storefront-js-client 4.5.4 → 4.5.5

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.
@@ -24,3 +24,4 @@ export declare const GET_PRODUCT_BY_GROUPID: import("graphql").DocumentNode;
24
24
  export declare const GET_CATEGORY_BY_ID: import("graphql").DocumentNode;
25
25
  export declare const GET_CATEGORY_BY_HANDLE: import("graphql").DocumentNode;
26
26
  export declare const GET_TAGS_BY_PRODUCT: import("graphql").DocumentNode;
27
+ export declare const GET_PRODUCT_STORE_BY_SCOPE: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_TAGS_BY_PRODUCT = exports.GET_CATEGORY_BY_HANDLE = exports.GET_CATEGORY_BY_ID = exports.GET_PRODUCT_BY_GROUPID = exports.GET_TAGS = exports.GET_BRAND = exports.GET_GROUPS = exports.GET_PRODUCT_TEMPLATES = exports.GET_PRODUCT_VARIANT_BY_ID = exports.GET_UNITS = exports.GET_PRODUCT = exports.GET_PRODUCT_IMAGE = exports.GET_DETAIL_STORES = exports.GET_STORES = exports.GET_POLICY = exports.GET_PRODUCT_OPTION = exports.GET_BRAND_DETAIL_QUERY = exports.GET_BRANDS_BY_CATEGORY_QUERY = exports.GET_BRANDS_QUERY = exports.GET_CATEGORY_BY_ID_QUERY = exports.GET_CATEGORY_BY_HANDLE_QUERY = exports.GET_CATEGORIES_QUERY = exports.GET_SIMPLE_PRODUCTS_QUERY = exports.GET_PRODUCT_BY_SLUG_QUERY = exports.GET_SIMPLE_PRODUCT_BY_ID_QUERY = exports.GET_PRODUCT_BY_ID_QUERY = void 0;
3
+ exports.GET_PRODUCT_STORE_BY_SCOPE = exports.GET_TAGS_BY_PRODUCT = exports.GET_CATEGORY_BY_HANDLE = exports.GET_CATEGORY_BY_ID = exports.GET_PRODUCT_BY_GROUPID = exports.GET_TAGS = exports.GET_BRAND = exports.GET_GROUPS = exports.GET_PRODUCT_TEMPLATES = exports.GET_PRODUCT_VARIANT_BY_ID = exports.GET_UNITS = exports.GET_PRODUCT = exports.GET_PRODUCT_IMAGE = exports.GET_DETAIL_STORES = exports.GET_STORES = exports.GET_POLICY = exports.GET_PRODUCT_OPTION = exports.GET_BRAND_DETAIL_QUERY = exports.GET_BRANDS_BY_CATEGORY_QUERY = exports.GET_BRANDS_QUERY = exports.GET_CATEGORY_BY_ID_QUERY = exports.GET_CATEGORY_BY_HANDLE_QUERY = exports.GET_CATEGORIES_QUERY = exports.GET_SIMPLE_PRODUCTS_QUERY = exports.GET_PRODUCT_BY_SLUG_QUERY = exports.GET_SIMPLE_PRODUCT_BY_ID_QUERY = exports.GET_PRODUCT_BY_ID_QUERY = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  // export const GET_PRODUCT_BY_ID_QUERY = gql`
6
6
  // query GetProductById(
@@ -1181,3 +1181,41 @@ exports.GET_TAGS_BY_PRODUCT = (0, graphql_tag_1.gql) `
1181
1181
  }
1182
1182
  }
1183
1183
  `;
1184
+ exports.GET_PRODUCT_STORE_BY_SCOPE = (0, graphql_tag_1.gql) `
1185
+ query GetProductStoreByScope($scope: String!, $enable: Boolean) {
1186
+ getProductStoreByScope(scope: $scope, enable: $enable) {
1187
+ id
1188
+ createdStamp
1189
+ name
1190
+ type
1191
+ enable
1192
+ partyId
1193
+ warehouses
1194
+ warehouseIdDefault
1195
+ enableOrderAbleFuture
1196
+ enableOrderNegativeQuantity
1197
+ storeEcommerceName
1198
+ shippingCompanies
1199
+ shippingCompanyIdPrimary
1200
+ customerIdPrimary
1201
+ paymentMethodIdPrimary
1202
+ enableCustomProductPrice
1203
+ enablePaymentPartial
1204
+ paymentPartialPercent
1205
+ productStoreLink
1206
+ applyVat
1207
+ scope
1208
+ description {
1209
+ name
1210
+ phone
1211
+ address
1212
+ footer
1213
+ showInfoStore
1214
+ showBarcode
1215
+ showFooter
1216
+ showVat
1217
+ showPromotion
1218
+ }
1219
+ }
1220
+ }
1221
+ `;
@@ -85,4 +85,5 @@ export declare class ProductService extends Service {
85
85
  addProductTag(dataTag: any): Promise<any>;
86
86
  removeProductTag(dataTag: any): Promise<any>;
87
87
  getTagsByProduct(productId: string): Promise<any>;
88
+ getProductStoreByScope(scope: string, enable: boolean): Promise<any>;
88
89
  }
@@ -967,5 +967,21 @@ class ProductService extends serviceSDK_1.Service {
967
967
  }
968
968
  });
969
969
  }
970
+ getProductStoreByScope(scope, enable) {
971
+ return __awaiter(this, void 0, void 0, function* () {
972
+ const queries = queries_1.GET_PRODUCT_STORE_BY_SCOPE;
973
+ const variables = {
974
+ scope,
975
+ enable,
976
+ };
977
+ try {
978
+ const response = yield this.graphqlQuery(queries, variables);
979
+ return response.getProductStoreByScope;
980
+ }
981
+ catch (error) {
982
+ throw error;
983
+ }
984
+ });
985
+ }
970
986
  }
971
987
  exports.ProductService = ProductService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.5.4",
3
+ "version": "4.5.5",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [