@longvansoftware/storefront-js-client 4.5.9 → 4.6.1

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.
@@ -27,3 +27,6 @@ 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
29
  export declare const GET_PRODUCT_MARKET_PLACE: import("graphql").DocumentNode;
30
+ export declare const GET_PRODUCT_MARKET_PLACE_DETAIL_BY_SLUG: import("graphql").DocumentNode;
31
+ export declare const GET_PRODUCT_MARKET_PLACE_BY_ID: import("graphql").DocumentNode;
32
+ export declare const GET_PRODUCT_MARKET_PLACE_BY_SUPPLIER: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.GET_PRODUCT_MARKET_PLACE_BY_SUPPLIER = exports.GET_PRODUCT_MARKET_PLACE_BY_ID = exports.GET_PRODUCT_MARKET_PLACE_DETAIL_BY_SLUG = 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(
@@ -1369,3 +1369,399 @@ exports.GET_PRODUCT_MARKET_PLACE = (0, graphql_tag_1.gql) `
1369
1369
  }
1370
1370
  }
1371
1371
  `;
1372
+ exports.GET_PRODUCT_MARKET_PLACE_DETAIL_BY_SLUG = (0, graphql_tag_1.gql) `
1373
+ query GetProductMarketplaceDetailBySlug(
1374
+ $storeChannel: String!
1375
+ $slug: String!
1376
+ ) {
1377
+ getProductMarketplaceDetailBySlug(
1378
+ storeChannel: $storeChannel
1379
+ slug: $slug
1380
+ ) {
1381
+ partyId
1382
+ id
1383
+ title
1384
+ subType
1385
+ description
1386
+ sku
1387
+ shortDescription
1388
+ weight
1389
+ width
1390
+ depth
1391
+ height
1392
+ vat
1393
+ qualify
1394
+ parentId
1395
+ handle
1396
+ price
1397
+ displayPrice
1398
+ hint
1399
+ compareAtPrices
1400
+ priceUnit
1401
+ priceQuantity
1402
+ priceType
1403
+ salePolicy
1404
+ priceTypeName
1405
+ priceVaries
1406
+ available
1407
+ options
1408
+ optionsRelationship
1409
+ compareAtPrice
1410
+ featuredImage
1411
+ version
1412
+ images
1413
+ brand {
1414
+ id
1415
+ createStamp
1416
+ createdBy
1417
+ name
1418
+ image
1419
+ imageIcon
1420
+ }
1421
+ unitDTO {
1422
+ id
1423
+ name
1424
+ }
1425
+ productAttributes {
1426
+ attributeName
1427
+ attributeValue
1428
+ }
1429
+ attributeDTOS {
1430
+ id
1431
+ key
1432
+ keyId
1433
+ extendFromSource
1434
+ value {
1435
+ name
1436
+ value
1437
+ }
1438
+ metadata {
1439
+ type
1440
+ dataFrom
1441
+ description
1442
+ requiredData
1443
+ otherItem
1444
+ fill
1445
+ usedCreatedChild
1446
+ }
1447
+ }
1448
+ tags {
1449
+ id
1450
+ name
1451
+ slug
1452
+ type
1453
+ scope
1454
+ storeIds
1455
+ selected
1456
+ }
1457
+ variants {
1458
+ id
1459
+ handle
1460
+ title
1461
+ price
1462
+ priceType
1463
+ compareAtPrice
1464
+ options
1465
+ optionsIds
1466
+ featuredImage
1467
+ sku
1468
+ }
1469
+ featureTypes {
1470
+ id
1471
+ keyId
1472
+ name
1473
+ position
1474
+ type
1475
+ subType
1476
+ fill
1477
+ requireData
1478
+ otherItem
1479
+ values
1480
+ description
1481
+ createStamp
1482
+ createdBy
1483
+ usedCreatedChild
1484
+ }
1485
+ categories {
1486
+ id
1487
+ title
1488
+ image
1489
+ icon
1490
+ parentId
1491
+ level
1492
+ handle
1493
+ description
1494
+ }
1495
+ groups {
1496
+ id
1497
+ name
1498
+ policy
1499
+ image
1500
+ resourceId
1501
+ resourceType
1502
+ scope
1503
+ }
1504
+ }
1505
+ }
1506
+ `;
1507
+ exports.GET_PRODUCT_MARKET_PLACE_BY_ID = (0, graphql_tag_1.gql) `
1508
+ query GetProductMarketplaceDetailById($storeChannel: String!, $id: String!) {
1509
+ getProductMarketplaceDetailById(storeChannel: $storeChannel, id: $id) {
1510
+ partyId
1511
+ id
1512
+ title
1513
+ subType
1514
+ description
1515
+ sku
1516
+ shortDescription
1517
+ weight
1518
+ width
1519
+ depth
1520
+ height
1521
+ vat
1522
+ qualify
1523
+ parentId
1524
+ handle
1525
+ price
1526
+ displayPrice
1527
+ hint
1528
+ compareAtPrices
1529
+ priceUnit
1530
+ priceQuantity
1531
+ priceType
1532
+ salePolicy
1533
+ priceTypeName
1534
+ priceVaries
1535
+ available
1536
+ options
1537
+ optionsRelationship
1538
+ compareAtPrice
1539
+ featuredImage
1540
+ version
1541
+ images
1542
+ brand {
1543
+ id
1544
+ createStamp
1545
+ createdBy
1546
+ name
1547
+ image
1548
+ imageIcon
1549
+ }
1550
+ unitDTO {
1551
+ id
1552
+ name
1553
+ }
1554
+ productAttributes {
1555
+ attributeName
1556
+ attributeValue
1557
+ }
1558
+ attributeDTOS {
1559
+ id
1560
+ key
1561
+ keyId
1562
+ extendFromSource
1563
+ value {
1564
+ name
1565
+ value
1566
+ }
1567
+ metadata {
1568
+ type
1569
+ dataFrom
1570
+ description
1571
+ requiredData
1572
+ otherItem
1573
+ fill
1574
+ usedCreatedChild
1575
+ }
1576
+ }
1577
+ tags {
1578
+ id
1579
+ name
1580
+ slug
1581
+ type
1582
+ scope
1583
+ storeIds
1584
+ selected
1585
+ }
1586
+ variants {
1587
+ id
1588
+ handle
1589
+ title
1590
+ price
1591
+ priceType
1592
+ compareAtPrice
1593
+ options
1594
+ optionsIds
1595
+ featuredImage
1596
+ sku
1597
+ }
1598
+ featureTypes {
1599
+ id
1600
+ keyId
1601
+ name
1602
+ position
1603
+ type
1604
+ subType
1605
+ fill
1606
+ requireData
1607
+ otherItem
1608
+ values
1609
+ description
1610
+ createStamp
1611
+ createdBy
1612
+ usedCreatedChild
1613
+ }
1614
+ categories {
1615
+ id
1616
+ title
1617
+ image
1618
+ icon
1619
+ parentId
1620
+ level
1621
+ handle
1622
+ description
1623
+ }
1624
+ groups {
1625
+ id
1626
+ name
1627
+ policy
1628
+ image
1629
+ resourceId
1630
+ resourceType
1631
+ scope
1632
+ }
1633
+ }
1634
+ }
1635
+ `;
1636
+ exports.GET_PRODUCT_MARKET_PLACE_BY_SUPPLIER = (0, graphql_tag_1.gql) `
1637
+ query GetProductMarketplaceBySupplier(
1638
+ $storeChannel: String!
1639
+ $supplierId: String!
1640
+ $currentPage: Int
1641
+ $maxResult: Int
1642
+ ) {
1643
+ getProductMarketplaceBySupplier(
1644
+ storeChannel: $storeChannel
1645
+ supplierId: $supplierId
1646
+ currentPage: $currentPage
1647
+ maxResult: $maxResult
1648
+ ) {
1649
+ total
1650
+ currentPage
1651
+ maxResult
1652
+ totalPage
1653
+ data {
1654
+ partyId
1655
+ id
1656
+ title
1657
+ subType
1658
+ description
1659
+ sku
1660
+ shortDescription
1661
+ weight
1662
+ width
1663
+ depth
1664
+ height
1665
+ vat
1666
+ qualify
1667
+ parentId
1668
+ handle
1669
+ price
1670
+ displayPrice
1671
+ hint
1672
+ compareAtPrices
1673
+ priceUnit
1674
+ priceQuantity
1675
+ priceType
1676
+ salePolicy
1677
+ priceTypeName
1678
+ priceVaries
1679
+ available
1680
+ options
1681
+ optionsRelationship
1682
+ compareAtPrice
1683
+ featuredImage
1684
+ version
1685
+ images
1686
+ brand {
1687
+ id
1688
+ createStamp
1689
+ createdBy
1690
+ name
1691
+ image
1692
+ imageIcon
1693
+ }
1694
+ unitDTO {
1695
+ id
1696
+ name
1697
+ }
1698
+ productAttributes {
1699
+ attributeName
1700
+ attributeValue
1701
+ }
1702
+ attributeDTOS {
1703
+ id
1704
+ key
1705
+ keyId
1706
+ extendFromSource
1707
+ }
1708
+ variants {
1709
+ id
1710
+ handle
1711
+ title
1712
+ price
1713
+ priceType
1714
+ compareAtPrice
1715
+ options
1716
+ optionsIds
1717
+ featuredImage
1718
+ sku
1719
+ }
1720
+ featureTypes {
1721
+ id
1722
+ keyId
1723
+ name
1724
+ position
1725
+ type
1726
+ subType
1727
+ fill
1728
+ requireData
1729
+ otherItem
1730
+ values
1731
+ description
1732
+ createStamp
1733
+ createdBy
1734
+ usedCreatedChild
1735
+ }
1736
+ categories {
1737
+ id
1738
+ title
1739
+ image
1740
+ icon
1741
+ parentId
1742
+ level
1743
+ handle
1744
+ description
1745
+ }
1746
+ groups {
1747
+ id
1748
+ name
1749
+ policy
1750
+ image
1751
+ resourceId
1752
+ resourceType
1753
+ scope
1754
+ }
1755
+ tags {
1756
+ id
1757
+ name
1758
+ slug
1759
+ type
1760
+ scope
1761
+ storeIds
1762
+ selected
1763
+ }
1764
+ }
1765
+ }
1766
+ }
1767
+ `;
@@ -362,7 +362,6 @@ exports.GET_PARTY_GROUP_BY_ID = (0, graphql_tag_1.gql) `
362
362
  query GetPartyGroupById($id: String!) {
363
363
  getPartyGroupById(id: $id) {
364
364
  id
365
- partyId
366
365
  shortName
367
366
  groupName
368
367
  groupType
@@ -89,4 +89,7 @@ export declare class ProductService extends Service {
89
89
  getProductStorePublic(productId: string, isPublic: boolean): Promise<any>;
90
90
  publicProduct(storeId: string, productId: string, isPublic: boolean, updatedBy: string): Promise<any>;
91
91
  getProductMarketplace(dataQuery: any): Promise<any>;
92
+ getProductMarketplaceDetailBySlug(storeChannel: string, slug: string): Promise<any>;
93
+ getProductMarketplaceDetailById(storeChannel: string, id: string): Promise<any>;
94
+ getProductMarketplaceBySupplier(dataQuery: any): Promise<any>;
92
95
  }
@@ -1029,5 +1029,50 @@ class ProductService extends serviceSDK_1.Service {
1029
1029
  }
1030
1030
  });
1031
1031
  }
1032
+ getProductMarketplaceDetailBySlug(storeChannel, slug) {
1033
+ return __awaiter(this, void 0, void 0, function* () {
1034
+ const queries = queries_1.GET_PRODUCT_MARKET_PLACE_DETAIL_BY_SLUG;
1035
+ const variables = {
1036
+ storeChannel,
1037
+ slug,
1038
+ };
1039
+ try {
1040
+ const response = yield this.graphqlQuery(queries, variables);
1041
+ return response.getProductMarketplaceDetailBySlug;
1042
+ }
1043
+ catch (error) {
1044
+ throw error;
1045
+ }
1046
+ });
1047
+ }
1048
+ getProductMarketplaceDetailById(storeChannel, id) {
1049
+ return __awaiter(this, void 0, void 0, function* () {
1050
+ const queries = queries_1.GET_PRODUCT_MARKET_PLACE_BY_ID;
1051
+ const variables = {
1052
+ storeChannel,
1053
+ id,
1054
+ };
1055
+ try {
1056
+ const response = yield this.graphqlQuery(queries, variables);
1057
+ return response;
1058
+ }
1059
+ catch (error) {
1060
+ throw error;
1061
+ }
1062
+ });
1063
+ }
1064
+ getProductMarketplaceBySupplier(dataQuery) {
1065
+ return __awaiter(this, void 0, void 0, function* () {
1066
+ const queries = queries_1.GET_PRODUCT_MARKET_PLACE_BY_SUPPLIER;
1067
+ const variables = {};
1068
+ try {
1069
+ const response = yield this.graphqlQuery(queries, dataQuery);
1070
+ return response.getProductMarketplaceBySupplier;
1071
+ }
1072
+ catch (error) {
1073
+ throw error;
1074
+ }
1075
+ });
1076
+ }
1032
1077
  }
1033
1078
  exports.ProductService = ProductService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.5.9",
3
+ "version": "4.6.1",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [