@longvansoftware/storefront-js-client 4.5.6 → 4.5.8

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,137 @@ 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
+ $handle: String
1245
+ ) {
1246
+ getProductMarketplace(
1247
+ storeChannel: $storeChannel
1248
+ supplierId: $supplierId
1249
+ categoryId: $categoryId
1250
+ productId: $productId
1251
+ handle: $handle
1252
+ ) {
1253
+ total
1254
+ currentPage
1255
+ maxResult
1256
+ totalPage
1257
+ data {
1258
+ partyId
1259
+ id
1260
+ title
1261
+ subType
1262
+ description
1263
+ sku
1264
+ shortDescription
1265
+ weight
1266
+ width
1267
+ depth
1268
+ height
1269
+ vat
1270
+ qualify
1271
+ parentId
1272
+ handle
1273
+ price
1274
+ displayPrice
1275
+ hint
1276
+ compareAtPrices
1277
+ priceUnit
1278
+ priceQuantity
1279
+ priceType
1280
+ salePolicy
1281
+ priceTypeName
1282
+ priceVaries
1283
+ available
1284
+ options
1285
+ optionsRelationship
1286
+ compareAtPrice
1287
+ featuredImage
1288
+ version
1289
+ images
1290
+ tags {
1291
+ id
1292
+ name
1293
+ slug
1294
+ type
1295
+ scope
1296
+ storeIds
1297
+ selected
1298
+ }
1299
+ featureTypes {
1300
+ id
1301
+ keyId
1302
+ name
1303
+ position
1304
+ type
1305
+ subType
1306
+ fill
1307
+ requireData
1308
+ otherItem
1309
+ values
1310
+ description
1311
+ createStamp
1312
+ createdBy
1313
+ usedCreatedChild
1314
+ }
1315
+ variants {
1316
+ id
1317
+ handle
1318
+ title
1319
+ price
1320
+ priceType
1321
+ compareAtPrice
1322
+ options
1323
+ optionsIds
1324
+ featuredImage
1325
+ sku
1326
+ }
1327
+ categories {
1328
+ id
1329
+ title
1330
+ image
1331
+ icon
1332
+ parentId
1333
+ level
1334
+ handle
1335
+ description
1336
+ }
1337
+ groups {
1338
+ id
1339
+ name
1340
+ policy
1341
+ image
1342
+ resourceId
1343
+ resourceType
1344
+ scope
1345
+ }
1346
+ attributeDTOS {
1347
+ id
1348
+ key
1349
+ keyId
1350
+ extendFromSource
1351
+ }
1352
+ productAttributes {
1353
+ attributeName
1354
+ attributeValue
1355
+ }
1356
+ unitDTO {
1357
+ id
1358
+ name
1359
+ }
1360
+ brand {
1361
+ id
1362
+ createStamp
1363
+ createdBy
1364
+ name
1365
+ image
1366
+ imageIcon
1367
+ }
1368
+ }
1369
+ }
1370
+ }
1371
+ `;
@@ -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.8",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [