@longvansoftware/storefront-js-client 4.5.6 → 4.5.7

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.
@@ -26,3 +26,4 @@ export declare const GET_CATEGORY_BY_HANDLE: import("graphql").DocumentNode;
26
26
  export declare const GET_TAGS_BY_PRODUCT: import("graphql").DocumentNode;
27
27
  export declare const GET_PRODUCT_STORE_BY_SCOPE: import("graphql").DocumentNode;
28
28
  export declare const GET_PRODUCT_STORE_PUBLIC: import("graphql").DocumentNode;
29
+ export declare const GET_PRODUCT_MARKET_PLACE: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_PRODUCT_STORE_PUBLIC = 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;
3
+ exports.GET_PRODUCT_MARKET_PLACE = exports.GET_PRODUCT_STORE_PUBLIC = 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(
@@ -1210,6 +1210,17 @@ exports.GET_PRODUCT_STORE_BY_SCOPE = (0, graphql_tag_1.gql) `
1210
1210
  phone
1211
1211
  address
1212
1212
  footer
1213
+ description
1214
+ slug
1215
+ logo
1216
+ banner
1217
+ ward
1218
+ wardId
1219
+ province
1220
+ provinceId
1221
+ showLogo
1222
+ showBanner
1223
+ showMap
1213
1224
  showInfoStore
1214
1225
  showBarcode
1215
1226
  showFooter
@@ -1224,3 +1235,134 @@ exports.GET_PRODUCT_STORE_PUBLIC = (0, graphql_tag_1.gql) `
1224
1235
  getProductStorePublic(productId: $productId, isPublic: $isPublic)
1225
1236
  }
1226
1237
  `;
1238
+ exports.GET_PRODUCT_MARKET_PLACE = (0, graphql_tag_1.gql) `
1239
+ query GetProductMarketplace(
1240
+ $storeChannel: String!
1241
+ $supplierId: String
1242
+ $categoryId: String
1243
+ $productId: String
1244
+ ) {
1245
+ getProductMarketplace(
1246
+ storeChannel: $storeChannel
1247
+ supplierId: $supplierId
1248
+ categoryId: $categoryId
1249
+ productId: $productId
1250
+ ) {
1251
+ total
1252
+ currentPage
1253
+ maxResult
1254
+ totalPage
1255
+ data {
1256
+ id
1257
+ title
1258
+ subType
1259
+ description
1260
+ sku
1261
+ shortDescription
1262
+ weight
1263
+ width
1264
+ depth
1265
+ height
1266
+ vat
1267
+ qualify
1268
+ parentId
1269
+ handle
1270
+ price
1271
+ displayPrice
1272
+ hint
1273
+ compareAtPrices
1274
+ priceUnit
1275
+ priceQuantity
1276
+ priceType
1277
+ salePolicy
1278
+ priceTypeName
1279
+ priceVaries
1280
+ available
1281
+ options
1282
+ optionsRelationship
1283
+ compareAtPrice
1284
+ featuredImage
1285
+ version
1286
+ images
1287
+ tags {
1288
+ id
1289
+ name
1290
+ slug
1291
+ type
1292
+ scope
1293
+ storeIds
1294
+ selected
1295
+ }
1296
+ featureTypes {
1297
+ id
1298
+ keyId
1299
+ name
1300
+ position
1301
+ type
1302
+ subType
1303
+ fill
1304
+ requireData
1305
+ otherItem
1306
+ values
1307
+ description
1308
+ createStamp
1309
+ createdBy
1310
+ usedCreatedChild
1311
+ }
1312
+ variants {
1313
+ id
1314
+ handle
1315
+ title
1316
+ price
1317
+ priceType
1318
+ compareAtPrice
1319
+ options
1320
+ optionsIds
1321
+ featuredImage
1322
+ sku
1323
+ }
1324
+ categories {
1325
+ id
1326
+ title
1327
+ image
1328
+ icon
1329
+ parentId
1330
+ level
1331
+ handle
1332
+ description
1333
+ }
1334
+ groups {
1335
+ id
1336
+ name
1337
+ policy
1338
+ image
1339
+ resourceId
1340
+ resourceType
1341
+ scope
1342
+ }
1343
+ attributeDTOS {
1344
+ id
1345
+ key
1346
+ keyId
1347
+ extendFromSource
1348
+ }
1349
+ productAttributes {
1350
+ attributeName
1351
+ attributeValue
1352
+ }
1353
+ unitDTO {
1354
+ id
1355
+ name
1356
+ }
1357
+ brand {
1358
+ id
1359
+ createStamp
1360
+ createdBy
1361
+ name
1362
+ image
1363
+ imageIcon
1364
+ }
1365
+ }
1366
+ }
1367
+ }
1368
+ `;
@@ -88,4 +88,5 @@ export declare class ProductService extends Service {
88
88
  getProductStoreByScope(scope: string, enable: boolean): Promise<any>;
89
89
  getProductStorePublic(productId: string, isPublic: boolean): Promise<any>;
90
90
  publicProduct(storeId: string, productId: string, isPublic: boolean, updatedBy: string): Promise<any>;
91
+ getProductMarketplace(dataQuery: any): Promise<any>;
91
92
  }
@@ -1017,5 +1017,17 @@ class ProductService extends serviceSDK_1.Service {
1017
1017
  }
1018
1018
  });
1019
1019
  }
1020
+ getProductMarketplace(dataQuery) {
1021
+ return __awaiter(this, void 0, void 0, function* () {
1022
+ const queries = queries_1.GET_PRODUCT_MARKET_PLACE;
1023
+ try {
1024
+ const response = yield this.graphqlQuery(queries, dataQuery);
1025
+ return response.getProductMarketplace;
1026
+ }
1027
+ catch (error) {
1028
+ throw error;
1029
+ }
1030
+ });
1031
+ }
1020
1032
  }
1021
1033
  exports.ProductService = ProductService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.5.6",
3
+ "version": "4.5.7",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [