@longvansoftware/storefront-js-client 4.6.2-truedoc.1 → 4.6.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/dist/config/config.js +11 -11
- package/dist/src/graphql/accounting_service/mutations.d.ts +2 -0
- package/dist/src/graphql/accounting_service/mutations.js +100 -0
- package/dist/src/graphql/accounting_service/queries.d.ts +1 -0
- package/dist/src/graphql/accounting_service/queries.js +62 -0
- package/dist/src/graphql/content_api/queries.d.ts +2 -0
- package/dist/src/graphql/content_api/queries.js +23 -0
- package/dist/src/graphql/crm_camping/mutations.d.ts +1 -0
- package/dist/src/graphql/crm_camping/mutations.js +37 -0
- package/dist/src/graphql/crm_camping/queries.d.ts +14 -0
- package/dist/src/graphql/crm_camping/queries.js +420 -0
- package/dist/src/graphql/orderGraphQL/mutations.d.ts +10 -0
- package/dist/src/graphql/orderGraphQL/mutations.js +410 -0
- package/dist/src/graphql/orderGraphQL/queries.d.ts +10 -0
- package/dist/src/graphql/orderGraphQL/queries.js +480 -0
- package/dist/src/graphql/paymentLV/mutations.d.ts +2 -0
- package/dist/src/graphql/paymentLV/mutations.js +31 -0
- package/dist/src/graphql/paymentLV/queries.d.ts +5 -0
- package/dist/src/graphql/paymentLV/queries.js +135 -0
- package/dist/src/graphql/product/queries.d.ts +31 -26
- package/dist/src/graphql/product/queries.js +420 -18
- package/dist/src/graphql/quicklab_service/mutations.d.ts +8 -0
- package/dist/src/graphql/quicklab_service/mutations.js +171 -0
- package/dist/src/graphql/quicklab_service/queries.d.ts +7 -0
- package/dist/src/graphql/quicklab_service/queries.js +131 -0
- package/dist/src/graphql/remote_access_service/mutations.d.ts +7 -0
- package/dist/src/graphql/remote_access_service/mutations.js +89 -0
- package/dist/src/graphql/remote_access_service/queries.d.ts +2 -0
- package/dist/src/graphql/remote_access_service/queries.js +34 -0
- package/dist/src/graphql/resource_permission/mutations.d.ts +2 -0
- package/dist/src/graphql/resource_permission/mutations.js +65 -0
- package/dist/src/graphql/resource_permission/queries.d.ts +1 -0
- package/dist/src/graphql/resource_permission/queries.js +18 -0
- package/dist/src/graphql/storage_s3/mutations.d.ts +27 -0
- package/dist/src/graphql/storage_s3/mutations.js +603 -0
- package/dist/src/graphql/storage_s3/queries.d.ts +12 -0
- package/dist/src/graphql/storage_s3/queries.js +129 -0
- package/dist/src/lib/accounting_service/index.d.ts +9 -0
- package/dist/src/lib/accounting_service/index.js +69 -0
- package/dist/src/lib/cloud_rest/index.d.ts +17 -0
- package/dist/src/lib/cloud_rest/index.js +101 -0
- package/dist/src/lib/content_api/index.d.ts +7 -0
- package/dist/src/lib/content_api/index.js +43 -0
- package/dist/src/lib/crm_camping/index.d.ts +21 -0
- package/dist/src/lib/crm_camping/index.js +302 -0
- package/dist/src/lib/dns/index.d.ts +7 -0
- package/dist/src/lib/{cloudService → dns}/index.js +16 -11
- package/dist/src/lib/orderGraphQL/index.d.ts +24 -0
- package/dist/src/lib/orderGraphQL/index.js +342 -0
- package/dist/src/lib/order_cloud_rest/index.d.ts +7 -0
- package/dist/src/lib/order_cloud_rest/index.js +39 -0
- package/dist/src/lib/paymentLV/index.d.ts +13 -0
- package/dist/src/lib/paymentLV/index.js +149 -0
- package/dist/src/lib/product/index.d.ts +4 -0
- package/dist/src/lib/product/index.js +63 -0
- package/dist/src/lib/quicklab_service/index.d.ts +19 -0
- package/dist/src/lib/quicklab_service/index.js +211 -0
- package/dist/src/lib/remote_access_service/index.d.ts +16 -0
- package/dist/src/lib/remote_access_service/index.js +181 -0
- package/dist/src/lib/resource_permission/index.d.ts +9 -0
- package/dist/src/lib/resource_permission/index.js +82 -0
- package/dist/src/lib/service.d.ts +14 -0
- package/dist/src/lib/service.js +101 -0
- package/dist/src/lib/storage_s3/index.d.ts +42 -0
- package/dist/src/lib/storage_s3/index.js +736 -0
- package/dist/src/types/remote_access_service.d.ts +12 -0
- package/dist/src/types/remote_access_service.js +2 -0
- package/dist/src/types/storage_s3.d.ts +10 -0
- package/dist/src/types/storage_s3.js +2 -0
- package/dist/src/utils/build-field-string.d.ts +1 -0
- package/dist/src/utils/build-field-string.js +16 -0
- package/package.json +3 -2
- package/dist/src/graphql/cloudService/queries.d.ts +0 -1
- package/dist/src/graphql/cloudService/queries.js +0 -71
- package/dist/src/lib/cloudService/index.d.ts +0 -5
|
@@ -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_SIMPLE_BY_HANDLE_DYNAMIC = 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(
|
|
@@ -527,15 +527,7 @@ exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
|
|
|
527
527
|
vat
|
|
528
528
|
qualify
|
|
529
529
|
parentId
|
|
530
|
-
|
|
531
|
-
id
|
|
532
|
-
name
|
|
533
|
-
slug
|
|
534
|
-
type
|
|
535
|
-
scope
|
|
536
|
-
storeIds
|
|
537
|
-
selected
|
|
538
|
-
}
|
|
530
|
+
|
|
539
531
|
handle
|
|
540
532
|
price
|
|
541
533
|
compareAtPrice
|
|
@@ -1238,17 +1230,13 @@ exports.GET_PRODUCT_STORE_PUBLIC = (0, graphql_tag_1.gql) `
|
|
|
1238
1230
|
exports.GET_PRODUCT_MARKET_PLACE = (0, graphql_tag_1.gql) `
|
|
1239
1231
|
query GetProductMarketplace(
|
|
1240
1232
|
$storeChannel: String!
|
|
1241
|
-
$
|
|
1242
|
-
$
|
|
1243
|
-
$productId: String
|
|
1244
|
-
$handle: String
|
|
1233
|
+
$currentPage:Int
|
|
1234
|
+
$maxResult: Int
|
|
1245
1235
|
) {
|
|
1246
1236
|
getProductMarketplace(
|
|
1247
1237
|
storeChannel: $storeChannel
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
productId: $productId
|
|
1251
|
-
handle: $handle
|
|
1238
|
+
currentPage:$currentPage
|
|
1239
|
+
maxResult:$maxResult
|
|
1252
1240
|
) {
|
|
1253
1241
|
total
|
|
1254
1242
|
currentPage
|
|
@@ -1369,3 +1357,417 @@ exports.GET_PRODUCT_MARKET_PLACE = (0, graphql_tag_1.gql) `
|
|
|
1369
1357
|
}
|
|
1370
1358
|
}
|
|
1371
1359
|
`;
|
|
1360
|
+
exports.GET_PRODUCT_MARKET_PLACE_DETAIL_BY_SLUG = (0, graphql_tag_1.gql) `
|
|
1361
|
+
query GetProductMarketplaceDetailBySlug(
|
|
1362
|
+
$storeChannel: String!
|
|
1363
|
+
$slug: String!
|
|
1364
|
+
) {
|
|
1365
|
+
getProductMarketplaceDetailBySlug(
|
|
1366
|
+
storeChannel: $storeChannel
|
|
1367
|
+
slug: $slug
|
|
1368
|
+
) {
|
|
1369
|
+
partyId
|
|
1370
|
+
id
|
|
1371
|
+
title
|
|
1372
|
+
subType
|
|
1373
|
+
description
|
|
1374
|
+
sku
|
|
1375
|
+
shortDescription
|
|
1376
|
+
weight
|
|
1377
|
+
width
|
|
1378
|
+
depth
|
|
1379
|
+
height
|
|
1380
|
+
vat
|
|
1381
|
+
qualify
|
|
1382
|
+
parentId
|
|
1383
|
+
handle
|
|
1384
|
+
price
|
|
1385
|
+
displayPrice
|
|
1386
|
+
hint
|
|
1387
|
+
compareAtPrices
|
|
1388
|
+
priceUnit
|
|
1389
|
+
priceQuantity
|
|
1390
|
+
priceType
|
|
1391
|
+
salePolicy
|
|
1392
|
+
priceTypeName
|
|
1393
|
+
priceVaries
|
|
1394
|
+
available
|
|
1395
|
+
options
|
|
1396
|
+
optionsRelationship
|
|
1397
|
+
compareAtPrice
|
|
1398
|
+
featuredImage
|
|
1399
|
+
version
|
|
1400
|
+
images
|
|
1401
|
+
brand {
|
|
1402
|
+
id
|
|
1403
|
+
createStamp
|
|
1404
|
+
createdBy
|
|
1405
|
+
name
|
|
1406
|
+
image
|
|
1407
|
+
imageIcon
|
|
1408
|
+
}
|
|
1409
|
+
unitDTO {
|
|
1410
|
+
id
|
|
1411
|
+
name
|
|
1412
|
+
}
|
|
1413
|
+
productAttributes {
|
|
1414
|
+
attributeName
|
|
1415
|
+
attributeValue
|
|
1416
|
+
}
|
|
1417
|
+
attributeDTOS {
|
|
1418
|
+
id
|
|
1419
|
+
key
|
|
1420
|
+
keyId
|
|
1421
|
+
extendFromSource
|
|
1422
|
+
value {
|
|
1423
|
+
name
|
|
1424
|
+
value
|
|
1425
|
+
}
|
|
1426
|
+
metadata {
|
|
1427
|
+
type
|
|
1428
|
+
dataFrom
|
|
1429
|
+
description
|
|
1430
|
+
requiredData
|
|
1431
|
+
otherItem
|
|
1432
|
+
fill
|
|
1433
|
+
usedCreatedChild
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
tags {
|
|
1437
|
+
id
|
|
1438
|
+
name
|
|
1439
|
+
slug
|
|
1440
|
+
type
|
|
1441
|
+
scope
|
|
1442
|
+
storeIds
|
|
1443
|
+
selected
|
|
1444
|
+
}
|
|
1445
|
+
variants {
|
|
1446
|
+
id
|
|
1447
|
+
handle
|
|
1448
|
+
title
|
|
1449
|
+
price
|
|
1450
|
+
priceType
|
|
1451
|
+
compareAtPrice
|
|
1452
|
+
options
|
|
1453
|
+
optionsIds
|
|
1454
|
+
featuredImage
|
|
1455
|
+
sku
|
|
1456
|
+
}
|
|
1457
|
+
featureTypes {
|
|
1458
|
+
id
|
|
1459
|
+
keyId
|
|
1460
|
+
name
|
|
1461
|
+
position
|
|
1462
|
+
type
|
|
1463
|
+
subType
|
|
1464
|
+
fill
|
|
1465
|
+
requireData
|
|
1466
|
+
otherItem
|
|
1467
|
+
values
|
|
1468
|
+
description
|
|
1469
|
+
createStamp
|
|
1470
|
+
createdBy
|
|
1471
|
+
usedCreatedChild
|
|
1472
|
+
}
|
|
1473
|
+
categories {
|
|
1474
|
+
id
|
|
1475
|
+
title
|
|
1476
|
+
image
|
|
1477
|
+
icon
|
|
1478
|
+
parentId
|
|
1479
|
+
level
|
|
1480
|
+
handle
|
|
1481
|
+
description
|
|
1482
|
+
}
|
|
1483
|
+
groups {
|
|
1484
|
+
id
|
|
1485
|
+
name
|
|
1486
|
+
policy
|
|
1487
|
+
image
|
|
1488
|
+
resourceId
|
|
1489
|
+
resourceType
|
|
1490
|
+
scope
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
`;
|
|
1495
|
+
exports.GET_PRODUCT_MARKET_PLACE_BY_ID = (0, graphql_tag_1.gql) `
|
|
1496
|
+
query GetProductMarketplaceDetailById($storeChannel: String!, $id: String!) {
|
|
1497
|
+
getProductMarketplaceDetailById(storeChannel: $storeChannel, id: $id) {
|
|
1498
|
+
partyId
|
|
1499
|
+
id
|
|
1500
|
+
title
|
|
1501
|
+
subType
|
|
1502
|
+
description
|
|
1503
|
+
sku
|
|
1504
|
+
shortDescription
|
|
1505
|
+
weight
|
|
1506
|
+
width
|
|
1507
|
+
depth
|
|
1508
|
+
height
|
|
1509
|
+
vat
|
|
1510
|
+
qualify
|
|
1511
|
+
parentId
|
|
1512
|
+
handle
|
|
1513
|
+
price
|
|
1514
|
+
displayPrice
|
|
1515
|
+
hint
|
|
1516
|
+
compareAtPrices
|
|
1517
|
+
priceUnit
|
|
1518
|
+
priceQuantity
|
|
1519
|
+
priceType
|
|
1520
|
+
salePolicy
|
|
1521
|
+
priceTypeName
|
|
1522
|
+
priceVaries
|
|
1523
|
+
available
|
|
1524
|
+
options
|
|
1525
|
+
optionsRelationship
|
|
1526
|
+
compareAtPrice
|
|
1527
|
+
featuredImage
|
|
1528
|
+
version
|
|
1529
|
+
images
|
|
1530
|
+
brand {
|
|
1531
|
+
id
|
|
1532
|
+
createStamp
|
|
1533
|
+
createdBy
|
|
1534
|
+
name
|
|
1535
|
+
image
|
|
1536
|
+
imageIcon
|
|
1537
|
+
}
|
|
1538
|
+
unitDTO {
|
|
1539
|
+
id
|
|
1540
|
+
name
|
|
1541
|
+
}
|
|
1542
|
+
productAttributes {
|
|
1543
|
+
attributeName
|
|
1544
|
+
attributeValue
|
|
1545
|
+
}
|
|
1546
|
+
attributeDTOS {
|
|
1547
|
+
id
|
|
1548
|
+
key
|
|
1549
|
+
keyId
|
|
1550
|
+
extendFromSource
|
|
1551
|
+
value {
|
|
1552
|
+
name
|
|
1553
|
+
value
|
|
1554
|
+
}
|
|
1555
|
+
metadata {
|
|
1556
|
+
type
|
|
1557
|
+
dataFrom
|
|
1558
|
+
description
|
|
1559
|
+
requiredData
|
|
1560
|
+
otherItem
|
|
1561
|
+
fill
|
|
1562
|
+
usedCreatedChild
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
tags {
|
|
1566
|
+
id
|
|
1567
|
+
name
|
|
1568
|
+
slug
|
|
1569
|
+
type
|
|
1570
|
+
scope
|
|
1571
|
+
storeIds
|
|
1572
|
+
selected
|
|
1573
|
+
}
|
|
1574
|
+
variants {
|
|
1575
|
+
id
|
|
1576
|
+
handle
|
|
1577
|
+
title
|
|
1578
|
+
price
|
|
1579
|
+
priceType
|
|
1580
|
+
compareAtPrice
|
|
1581
|
+
options
|
|
1582
|
+
optionsIds
|
|
1583
|
+
featuredImage
|
|
1584
|
+
sku
|
|
1585
|
+
}
|
|
1586
|
+
featureTypes {
|
|
1587
|
+
id
|
|
1588
|
+
keyId
|
|
1589
|
+
name
|
|
1590
|
+
position
|
|
1591
|
+
type
|
|
1592
|
+
subType
|
|
1593
|
+
fill
|
|
1594
|
+
requireData
|
|
1595
|
+
otherItem
|
|
1596
|
+
values
|
|
1597
|
+
description
|
|
1598
|
+
createStamp
|
|
1599
|
+
createdBy
|
|
1600
|
+
usedCreatedChild
|
|
1601
|
+
}
|
|
1602
|
+
categories {
|
|
1603
|
+
id
|
|
1604
|
+
title
|
|
1605
|
+
image
|
|
1606
|
+
icon
|
|
1607
|
+
parentId
|
|
1608
|
+
level
|
|
1609
|
+
handle
|
|
1610
|
+
description
|
|
1611
|
+
}
|
|
1612
|
+
groups {
|
|
1613
|
+
id
|
|
1614
|
+
name
|
|
1615
|
+
policy
|
|
1616
|
+
image
|
|
1617
|
+
resourceId
|
|
1618
|
+
resourceType
|
|
1619
|
+
scope
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
`;
|
|
1624
|
+
exports.GET_PRODUCT_MARKET_PLACE_BY_SUPPLIER = (0, graphql_tag_1.gql) `
|
|
1625
|
+
query GetProductMarketplaceBySupplier(
|
|
1626
|
+
$storeChannel: String!
|
|
1627
|
+
$supplierId: String!
|
|
1628
|
+
$currentPage: Int
|
|
1629
|
+
$maxResult: Int
|
|
1630
|
+
) {
|
|
1631
|
+
getProductMarketplaceBySupplier(
|
|
1632
|
+
storeChannel: $storeChannel
|
|
1633
|
+
supplierId: $supplierId
|
|
1634
|
+
currentPage: $currentPage
|
|
1635
|
+
maxResult: $maxResult
|
|
1636
|
+
) {
|
|
1637
|
+
total
|
|
1638
|
+
currentPage
|
|
1639
|
+
maxResult
|
|
1640
|
+
totalPage
|
|
1641
|
+
data {
|
|
1642
|
+
partyId
|
|
1643
|
+
id
|
|
1644
|
+
title
|
|
1645
|
+
subType
|
|
1646
|
+
description
|
|
1647
|
+
sku
|
|
1648
|
+
shortDescription
|
|
1649
|
+
weight
|
|
1650
|
+
width
|
|
1651
|
+
depth
|
|
1652
|
+
height
|
|
1653
|
+
vat
|
|
1654
|
+
qualify
|
|
1655
|
+
parentId
|
|
1656
|
+
handle
|
|
1657
|
+
price
|
|
1658
|
+
displayPrice
|
|
1659
|
+
hint
|
|
1660
|
+
compareAtPrices
|
|
1661
|
+
priceUnit
|
|
1662
|
+
priceQuantity
|
|
1663
|
+
priceType
|
|
1664
|
+
salePolicy
|
|
1665
|
+
priceTypeName
|
|
1666
|
+
priceVaries
|
|
1667
|
+
available
|
|
1668
|
+
options
|
|
1669
|
+
optionsRelationship
|
|
1670
|
+
compareAtPrice
|
|
1671
|
+
featuredImage
|
|
1672
|
+
version
|
|
1673
|
+
images
|
|
1674
|
+
brand {
|
|
1675
|
+
id
|
|
1676
|
+
createStamp
|
|
1677
|
+
createdBy
|
|
1678
|
+
name
|
|
1679
|
+
image
|
|
1680
|
+
imageIcon
|
|
1681
|
+
}
|
|
1682
|
+
unitDTO {
|
|
1683
|
+
id
|
|
1684
|
+
name
|
|
1685
|
+
}
|
|
1686
|
+
productAttributes {
|
|
1687
|
+
attributeName
|
|
1688
|
+
attributeValue
|
|
1689
|
+
}
|
|
1690
|
+
attributeDTOS {
|
|
1691
|
+
id
|
|
1692
|
+
key
|
|
1693
|
+
keyId
|
|
1694
|
+
extendFromSource
|
|
1695
|
+
}
|
|
1696
|
+
variants {
|
|
1697
|
+
id
|
|
1698
|
+
handle
|
|
1699
|
+
title
|
|
1700
|
+
price
|
|
1701
|
+
priceType
|
|
1702
|
+
compareAtPrice
|
|
1703
|
+
options
|
|
1704
|
+
optionsIds
|
|
1705
|
+
featuredImage
|
|
1706
|
+
sku
|
|
1707
|
+
}
|
|
1708
|
+
featureTypes {
|
|
1709
|
+
id
|
|
1710
|
+
keyId
|
|
1711
|
+
name
|
|
1712
|
+
position
|
|
1713
|
+
type
|
|
1714
|
+
subType
|
|
1715
|
+
fill
|
|
1716
|
+
requireData
|
|
1717
|
+
otherItem
|
|
1718
|
+
values
|
|
1719
|
+
description
|
|
1720
|
+
createStamp
|
|
1721
|
+
createdBy
|
|
1722
|
+
usedCreatedChild
|
|
1723
|
+
}
|
|
1724
|
+
categories {
|
|
1725
|
+
id
|
|
1726
|
+
title
|
|
1727
|
+
image
|
|
1728
|
+
icon
|
|
1729
|
+
parentId
|
|
1730
|
+
level
|
|
1731
|
+
handle
|
|
1732
|
+
description
|
|
1733
|
+
}
|
|
1734
|
+
groups {
|
|
1735
|
+
id
|
|
1736
|
+
name
|
|
1737
|
+
policy
|
|
1738
|
+
image
|
|
1739
|
+
resourceId
|
|
1740
|
+
resourceType
|
|
1741
|
+
scope
|
|
1742
|
+
}
|
|
1743
|
+
tags {
|
|
1744
|
+
id
|
|
1745
|
+
name
|
|
1746
|
+
slug
|
|
1747
|
+
type
|
|
1748
|
+
scope
|
|
1749
|
+
storeIds
|
|
1750
|
+
selected
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
`;
|
|
1756
|
+
const GET_PRODUCT_SIMPLE_BY_HANDLE_DYNAMIC = (fields = []) => {
|
|
1757
|
+
const fieldStr = fields.join("\n ");
|
|
1758
|
+
const hasFields = fields.length > 0;
|
|
1759
|
+
return (0, graphql_tag_1.gql) `
|
|
1760
|
+
query getProductSimpleByHandle(
|
|
1761
|
+
$partnerId: String!
|
|
1762
|
+
$storeChannel: String!
|
|
1763
|
+
$handle: String
|
|
1764
|
+
) {
|
|
1765
|
+
getProductSimpleByHandle(
|
|
1766
|
+
partnerId: $partnerId
|
|
1767
|
+
storeChannel: $storeChannel
|
|
1768
|
+
handle: $handle
|
|
1769
|
+
) ${hasFields ? `{ ${fieldStr} }` : ""}
|
|
1770
|
+
}
|
|
1771
|
+
`;
|
|
1772
|
+
};
|
|
1773
|
+
exports.GET_PRODUCT_SIMPLE_BY_HANDLE_DYNAMIC = GET_PRODUCT_SIMPLE_BY_HANDLE_DYNAMIC;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DocumentNode } from "graphql";
|
|
2
|
+
export declare const CREATE_LAB_SESSION_BY_TEMPLATE_ID: DocumentNode;
|
|
3
|
+
export declare const CREATE_LAB_SESSION_BY_LAB_SESSION_ID: DocumentNode;
|
|
4
|
+
export declare const CREATE_LAB_SESSION_BY_COMPUTING_ID: DocumentNode;
|
|
5
|
+
export declare const UPDATE_END_TIME_LAB_SESSION: DocumentNode;
|
|
6
|
+
export declare const STOP_LAB_SESSION: DocumentNode;
|
|
7
|
+
export declare const UPDATE_TYPE_LAB_SESSION: DocumentNode;
|
|
8
|
+
export declare const STOP_LAB_SESSION_FOR_CUSTOMER: DocumentNode;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STOP_LAB_SESSION_FOR_CUSTOMER = exports.UPDATE_TYPE_LAB_SESSION = exports.STOP_LAB_SESSION = exports.UPDATE_END_TIME_LAB_SESSION = exports.CREATE_LAB_SESSION_BY_COMPUTING_ID = exports.CREATE_LAB_SESSION_BY_LAB_SESSION_ID = exports.CREATE_LAB_SESSION_BY_TEMPLATE_ID = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
// Tạo phiên thực hành từ template
|
|
6
|
+
exports.CREATE_LAB_SESSION_BY_TEMPLATE_ID = (0, graphql_tag_1.gql) `
|
|
7
|
+
mutation CreateLabSessionByTemplateId(
|
|
8
|
+
$templateId: String!
|
|
9
|
+
$userId: String!
|
|
10
|
+
$articleId: String!
|
|
11
|
+
$typeLabSessionCode: String!
|
|
12
|
+
) {
|
|
13
|
+
createLabSessionByTemplateId(
|
|
14
|
+
templateId: $templateId
|
|
15
|
+
userId: $userId
|
|
16
|
+
articleId: $articleId
|
|
17
|
+
typeLabSessionCode: $typeLabSessionCode
|
|
18
|
+
) {
|
|
19
|
+
labSessionId
|
|
20
|
+
userId
|
|
21
|
+
typeLabSession
|
|
22
|
+
statusUseName
|
|
23
|
+
statusUse
|
|
24
|
+
startTime
|
|
25
|
+
endTime
|
|
26
|
+
note
|
|
27
|
+
articleId
|
|
28
|
+
articleTitle
|
|
29
|
+
computingId
|
|
30
|
+
computingName
|
|
31
|
+
computingState
|
|
32
|
+
templateId
|
|
33
|
+
templateName
|
|
34
|
+
productId
|
|
35
|
+
productName
|
|
36
|
+
parent
|
|
37
|
+
labSessionIdLast
|
|
38
|
+
statusUseLast
|
|
39
|
+
startTimeLast
|
|
40
|
+
endTimeLast
|
|
41
|
+
noteLast
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
// Tạo phiên thực hành con từ phiên thực hành chính
|
|
46
|
+
exports.CREATE_LAB_SESSION_BY_LAB_SESSION_ID = (0, graphql_tag_1.gql) `
|
|
47
|
+
mutation CreateLabSessionByLabSessionId(
|
|
48
|
+
$labSessionId: String!
|
|
49
|
+
$userId: String!
|
|
50
|
+
$articleId: String!
|
|
51
|
+
) {
|
|
52
|
+
createLabSessionByLabSessionId(
|
|
53
|
+
labSessionId: $labSessionId
|
|
54
|
+
userId: $userId
|
|
55
|
+
articleId: $articleId
|
|
56
|
+
) {
|
|
57
|
+
labSessionId
|
|
58
|
+
userId
|
|
59
|
+
typeLabSession
|
|
60
|
+
statusUseName
|
|
61
|
+
statusUse
|
|
62
|
+
startTime
|
|
63
|
+
endTime
|
|
64
|
+
note
|
|
65
|
+
articleId
|
|
66
|
+
articleTitle
|
|
67
|
+
computingId
|
|
68
|
+
computingName
|
|
69
|
+
computingState
|
|
70
|
+
templateId
|
|
71
|
+
templateName
|
|
72
|
+
productId
|
|
73
|
+
productName
|
|
74
|
+
parent
|
|
75
|
+
labSessionIdLast
|
|
76
|
+
statusUseLast
|
|
77
|
+
startTimeLast
|
|
78
|
+
endTimeLast
|
|
79
|
+
noteLast
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
// Tạo phiên thực hành từ computing của khách hàng
|
|
84
|
+
exports.CREATE_LAB_SESSION_BY_COMPUTING_ID = (0, graphql_tag_1.gql) `
|
|
85
|
+
mutation CreateLabSessionByComputingId(
|
|
86
|
+
$computingId: String!
|
|
87
|
+
$userId: String!
|
|
88
|
+
$articleId: String!
|
|
89
|
+
) {
|
|
90
|
+
createLabSessionByComputingId(
|
|
91
|
+
computingId: $computingId
|
|
92
|
+
userId: $userId
|
|
93
|
+
articleId: $articleId
|
|
94
|
+
) {
|
|
95
|
+
labSessionId
|
|
96
|
+
userId
|
|
97
|
+
typeLabSession
|
|
98
|
+
statusUseName
|
|
99
|
+
statusUse
|
|
100
|
+
startTime
|
|
101
|
+
endTime
|
|
102
|
+
note
|
|
103
|
+
articleId
|
|
104
|
+
articleTitle
|
|
105
|
+
computingId
|
|
106
|
+
computingName
|
|
107
|
+
computingState
|
|
108
|
+
templateId
|
|
109
|
+
templateName
|
|
110
|
+
productId
|
|
111
|
+
productName
|
|
112
|
+
parent
|
|
113
|
+
labSessionIdLast
|
|
114
|
+
statusUseLast
|
|
115
|
+
startTimeLast
|
|
116
|
+
endTimeLast
|
|
117
|
+
noteLast
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
// Cập nhật lại thời gian thực hành mỗi phút 1 lần(setup realtime ở FE)
|
|
122
|
+
exports.UPDATE_END_TIME_LAB_SESSION = (0, graphql_tag_1.gql) `
|
|
123
|
+
mutation UpdateEndTimeLabSession($labSessionId: String!, $userId: String!) {
|
|
124
|
+
updateEndTimeLabSession(labSessionId: $labSessionId, userId: $userId) {
|
|
125
|
+
status
|
|
126
|
+
message
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
`;
|
|
130
|
+
// Dừng thực hành
|
|
131
|
+
exports.STOP_LAB_SESSION = (0, graphql_tag_1.gql) `
|
|
132
|
+
mutation StopLabSession(
|
|
133
|
+
$labSessionId: String!
|
|
134
|
+
$userId: String!
|
|
135
|
+
$note: String
|
|
136
|
+
) {
|
|
137
|
+
stopLabSession(labSessionId: $labSessionId, userId: $userId, note: $note) {
|
|
138
|
+
status
|
|
139
|
+
message
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
`;
|
|
143
|
+
exports.UPDATE_TYPE_LAB_SESSION = (0, graphql_tag_1.gql) `
|
|
144
|
+
mutation StopLabSession(
|
|
145
|
+
$labSessionId: String!
|
|
146
|
+
$typeLabSessionCode: String!
|
|
147
|
+
$userId: String!
|
|
148
|
+
) {
|
|
149
|
+
updateTypeLabSession(
|
|
150
|
+
labSessionId: $labSessionId
|
|
151
|
+
typeLabSessionCode: $typeLabSessionCode
|
|
152
|
+
userId: $userId
|
|
153
|
+
) {
|
|
154
|
+
status
|
|
155
|
+
message
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
`;
|
|
159
|
+
// Dừng thực hành
|
|
160
|
+
exports.STOP_LAB_SESSION_FOR_CUSTOMER = (0, graphql_tag_1.gql) `
|
|
161
|
+
mutation StopLabSessionForCustomer(
|
|
162
|
+
$labSessionId: String!
|
|
163
|
+
$userId: String!
|
|
164
|
+
$note: String
|
|
165
|
+
) {
|
|
166
|
+
stopLabSessionForCustomer(labSessionId: $labSessionId, userId: $userId, note: $note) {
|
|
167
|
+
status
|
|
168
|
+
message
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
`;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DocumentNode } from "graphql";
|
|
2
|
+
export declare const GET_TEMPLATE_BY_ARTICLE_ID: DocumentNode;
|
|
3
|
+
export declare const GET_TYPE_LAB_SESSION: DocumentNode;
|
|
4
|
+
export declare const GET_LAB_SESSIONS_BY_USER_ID: DocumentNode;
|
|
5
|
+
export declare const GET_LAB_SESSIONS_BY_USER_ID_AND_ARTICLE_ID: DocumentNode;
|
|
6
|
+
export declare const GET_LAB_SESSIONS_CHILL_BY_PARENT: DocumentNode;
|
|
7
|
+
export declare const GET_LAB_DOING_AND_DONE_BY_USERID: (fields?: string[]) => DocumentNode;
|