@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
package/dist/config/config.js
CHANGED
|
@@ -7,9 +7,9 @@ exports.defaultTokens = {
|
|
|
7
7
|
};
|
|
8
8
|
exports.environmentEndpoints = {
|
|
9
9
|
dev: {
|
|
10
|
-
product: "https://dev.
|
|
10
|
+
product: "https://product-service.dev.longvan.vn/product-service/graphql",
|
|
11
11
|
crm: "https://crm-ticket-gateway.dev.longvan.vn/crm-graph-gateway/graphql",
|
|
12
|
-
auth: "https://dev.
|
|
12
|
+
auth: "https://crm.dev.longvan.vn/authorization-gateway/graphql",
|
|
13
13
|
order: "https://storefront.dev.longvan.vn/v2",
|
|
14
14
|
user: "https://user.dev.longvan.vn/user-gateway/graphql",
|
|
15
15
|
payment: "https://portal.dev.longvan.vn/invoice-gateway/graphql",
|
|
@@ -32,18 +32,18 @@ exports.environmentEndpoints = {
|
|
|
32
32
|
cashbook: "https://api-gateway.dev.longvan.vn/cashbook-service/graphql",
|
|
33
33
|
store: "https://storefront.dev.longvan.vn/v2",
|
|
34
34
|
fileService: "https://fileservice.dev.longvan.vn/omnichannel",
|
|
35
|
-
orderCloud: "https://
|
|
36
|
-
cloudCloud: "https://
|
|
37
|
-
truedoc: "https://
|
|
35
|
+
orderCloud: "https://api-gateway.dev.longvan.vn/order-cloud-service/graphql",
|
|
36
|
+
cloudCloud: "https://api-gateway.dev.longvan.vn/cloud-service-api/graphql",
|
|
37
|
+
truedoc: "https://api-gateway.dev.truedoc.vn/bmlconnector/graphql",
|
|
38
38
|
},
|
|
39
39
|
live: {
|
|
40
|
-
product: "https://
|
|
40
|
+
product: "https://product-service.longvan.vn/product-service/graphql",
|
|
41
41
|
crm: "https://crm-ticket-gateway.longvan.vn/crm-graph-gateway/graphql",
|
|
42
|
-
auth: "https://
|
|
42
|
+
auth: "https://crm.longvan.vn/authorization-gateway/graphql",
|
|
43
43
|
order: "https://storefront.longvan.vn/v2",
|
|
44
|
-
user: "https://
|
|
44
|
+
user: "https://user.longvan.vn/user-gateway/graphql",
|
|
45
45
|
payment: "https://portal.longvan.vn/invoice-gateway/graphql",
|
|
46
|
-
service: "https://api-gateway.
|
|
46
|
+
service: "https://api-gateway.longvan.vn/service-api/graphql",
|
|
47
47
|
warehouse: "https://portal.longvan.vn/facility-api/public-facility/1.0.0/inventory-item",
|
|
48
48
|
computing: "https://api-gateway.longvan.vn/computing-service/graphql",
|
|
49
49
|
campaign: "https://crm.longvan.vn/campaign-gateway/graphql",
|
|
@@ -62,8 +62,8 @@ exports.environmentEndpoints = {
|
|
|
62
62
|
cashbook: "https://api-gateway.longvan.vn/cashbook-service/graphql",
|
|
63
63
|
store: "https://storefront.longvan.vn/v2",
|
|
64
64
|
fileService: "https://fileservice.longvan.vn/longvan",
|
|
65
|
-
orderCloud: "https://api-gateway.
|
|
66
|
-
cloudCloud: "https://api-gateway.
|
|
65
|
+
orderCloud: "https://api-gateway.longvan.vn/order-cloud-service/graphql",
|
|
66
|
+
cloudCloud: "https://api-gateway.longvan.vn/cloud-service-api/graphql",
|
|
67
67
|
truedoc: "https://api-gateway.truedoc.vn/bmlconnector/graphql",
|
|
68
68
|
},
|
|
69
69
|
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CONFIRM_DEPOSIT_WALLET = exports.DEPOSIT_WALLET = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
exports.DEPOSIT_WALLET = (0, graphql_tag_1.gql) `
|
|
6
|
+
mutation DepositWallet(
|
|
7
|
+
$partnerId: String!
|
|
8
|
+
$storeId: String!
|
|
9
|
+
$partyId: String!
|
|
10
|
+
$storeName: String
|
|
11
|
+
$amountDeposit: BigDecimal!
|
|
12
|
+
$amountPromotion: BigDecimal
|
|
13
|
+
$orderNote: String
|
|
14
|
+
$paymentMethodCode: String
|
|
15
|
+
$sourcePayment: String
|
|
16
|
+
$returnUrl: String
|
|
17
|
+
$createBy: String
|
|
18
|
+
) {
|
|
19
|
+
depositWallet(
|
|
20
|
+
partnerId: $partnerId
|
|
21
|
+
partyId: $partyId
|
|
22
|
+
storeId: $storeId
|
|
23
|
+
storeName: $storeName
|
|
24
|
+
amountDeposit: $amountDeposit
|
|
25
|
+
amountPromotion: $amountPromotion
|
|
26
|
+
orderNote: $orderNote
|
|
27
|
+
paymentMethodCode: $paymentMethodCode
|
|
28
|
+
sourcePayment: $sourcePayment
|
|
29
|
+
returnUrl: $returnUrl
|
|
30
|
+
createBy: $createBy
|
|
31
|
+
) {
|
|
32
|
+
order {
|
|
33
|
+
orderId
|
|
34
|
+
}
|
|
35
|
+
payment {
|
|
36
|
+
code
|
|
37
|
+
message
|
|
38
|
+
data
|
|
39
|
+
qrCodeUrl
|
|
40
|
+
deeplink
|
|
41
|
+
deeplinkMiniApp
|
|
42
|
+
invoiceId
|
|
43
|
+
orderId
|
|
44
|
+
paymentId
|
|
45
|
+
}
|
|
46
|
+
financialOrder {
|
|
47
|
+
partnerId
|
|
48
|
+
name
|
|
49
|
+
userId
|
|
50
|
+
totalAmount
|
|
51
|
+
type
|
|
52
|
+
transactionId
|
|
53
|
+
status
|
|
54
|
+
accountNumber
|
|
55
|
+
method
|
|
56
|
+
gateway
|
|
57
|
+
extOrderId
|
|
58
|
+
extTransactionId
|
|
59
|
+
transactionTime
|
|
60
|
+
description
|
|
61
|
+
source
|
|
62
|
+
level
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
exports.CONFIRM_DEPOSIT_WALLET = (0, graphql_tag_1.gql) `
|
|
68
|
+
mutation ConfirmDepositWallet(
|
|
69
|
+
$partnerId: String!
|
|
70
|
+
$orderId: String!
|
|
71
|
+
$transactionId: String
|
|
72
|
+
$transactionTime: Long!
|
|
73
|
+
$createBy: String
|
|
74
|
+
) {
|
|
75
|
+
confirmDepositWallet(
|
|
76
|
+
partnerId: $partnerId
|
|
77
|
+
orderId: $orderId
|
|
78
|
+
transactionId: $transactionId
|
|
79
|
+
transactionTime: $transactionTime
|
|
80
|
+
createBy: $createBy
|
|
81
|
+
) {
|
|
82
|
+
partnerId
|
|
83
|
+
name
|
|
84
|
+
userId
|
|
85
|
+
totalAmount
|
|
86
|
+
type
|
|
87
|
+
transactionId
|
|
88
|
+
status
|
|
89
|
+
accountNumber
|
|
90
|
+
method
|
|
91
|
+
gateway
|
|
92
|
+
extOrderId
|
|
93
|
+
extTransactionId
|
|
94
|
+
transactionTime
|
|
95
|
+
description
|
|
96
|
+
source
|
|
97
|
+
level
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FINANCIAL_ACCOUNT_WALLET_INFO: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FINANCIAL_ACCOUNT_WALLET_INFO = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
exports.FINANCIAL_ACCOUNT_WALLET_INFO = (0, graphql_tag_1.gql) `
|
|
6
|
+
query FinancialAccountWalletInfo(
|
|
7
|
+
$partnerId: String!
|
|
8
|
+
$partyId: String
|
|
9
|
+
$showTransaction: Boolean!
|
|
10
|
+
) {
|
|
11
|
+
financialAccountWalletInfo(
|
|
12
|
+
partnerId: $partnerId
|
|
13
|
+
partyId: $partyId
|
|
14
|
+
showTransaction: $showTransaction
|
|
15
|
+
) {
|
|
16
|
+
financialAccount {
|
|
17
|
+
id
|
|
18
|
+
partyId
|
|
19
|
+
partnerId
|
|
20
|
+
type
|
|
21
|
+
description
|
|
22
|
+
glAccountNumber
|
|
23
|
+
created
|
|
24
|
+
updated
|
|
25
|
+
}
|
|
26
|
+
glAccount {
|
|
27
|
+
partnerId
|
|
28
|
+
accountNumber
|
|
29
|
+
owner
|
|
30
|
+
debit
|
|
31
|
+
credit
|
|
32
|
+
balance
|
|
33
|
+
type
|
|
34
|
+
parent
|
|
35
|
+
level
|
|
36
|
+
description
|
|
37
|
+
created
|
|
38
|
+
updated
|
|
39
|
+
deleteAble
|
|
40
|
+
}
|
|
41
|
+
transactions {
|
|
42
|
+
partnerId
|
|
43
|
+
name
|
|
44
|
+
userId
|
|
45
|
+
totalAmount
|
|
46
|
+
type
|
|
47
|
+
transactionId
|
|
48
|
+
status
|
|
49
|
+
accountNumber
|
|
50
|
+
method
|
|
51
|
+
gateway
|
|
52
|
+
extOrderId
|
|
53
|
+
extTransactionId
|
|
54
|
+
transactionTime
|
|
55
|
+
description
|
|
56
|
+
source
|
|
57
|
+
level
|
|
58
|
+
createdStamp
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_ARTICLE_RELATED_TO_PRODUCT = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
const GET_ARTICLE_RELATED_TO_PRODUCT = (fields = []) => {
|
|
6
|
+
const fieldStr = fields.join("\n ");
|
|
7
|
+
const hasFields = fields.length > 0;
|
|
8
|
+
return (0, graphql_tag_1.gql) `
|
|
9
|
+
query getArticleRelatedToProduct(
|
|
10
|
+
$partnerId: String!
|
|
11
|
+
$productId: String!
|
|
12
|
+
) {
|
|
13
|
+
getArticleRelatedToProduct(
|
|
14
|
+
partnerId: $partnerId
|
|
15
|
+
productId: $productId
|
|
16
|
+
)
|
|
17
|
+
{
|
|
18
|
+
${hasFields ? `${fieldStr}` : ""}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
};
|
|
23
|
+
exports.GET_ARTICLE_RELATED_TO_PRODUCT = GET_ARTICLE_RELATED_TO_PRODUCT;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ADD_CUSTOMER_TO_VOUCHER: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ADD_CUSTOMER_TO_VOUCHER = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
exports.ADD_CUSTOMER_TO_VOUCHER = (0, graphql_tag_1.gql) `
|
|
6
|
+
mutation AddCustomerToVoucher(
|
|
7
|
+
$partyId: String!
|
|
8
|
+
$userId: String!
|
|
9
|
+
$voucherCode: String!
|
|
10
|
+
) {
|
|
11
|
+
addCustomerToVoucher(
|
|
12
|
+
partyId: $partyId
|
|
13
|
+
userId: $userId
|
|
14
|
+
voucherCode: $voucherCode
|
|
15
|
+
) {
|
|
16
|
+
campaignActionId
|
|
17
|
+
campaignId
|
|
18
|
+
partyId
|
|
19
|
+
voucherCode
|
|
20
|
+
voucherType
|
|
21
|
+
status
|
|
22
|
+
discountAmount
|
|
23
|
+
discountPercent
|
|
24
|
+
usageLimitPerVoucher
|
|
25
|
+
maximumDiscount
|
|
26
|
+
numberOfTimeUsed
|
|
27
|
+
id
|
|
28
|
+
createdStamp
|
|
29
|
+
updatedStamp
|
|
30
|
+
updatedBy
|
|
31
|
+
createdBy
|
|
32
|
+
isBirthday
|
|
33
|
+
customerId
|
|
34
|
+
scope
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DocumentNode } from "graphql";
|
|
2
|
+
export declare const SEARCH_PRODUCT_QUANTITY_PROMOTION_ACTION: DocumentNode;
|
|
3
|
+
export declare const GET_CAMPAIGN_ACTION_BY_ID: DocumentNode;
|
|
4
|
+
export declare const GET_PRODUCT_DISCOUNT_BUY_WITH_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
5
|
+
export declare const SUGGEST_VOUCHER: DocumentNode;
|
|
6
|
+
export declare const GET_VOUCHERS: DocumentNode;
|
|
7
|
+
export declare const GET_AVERAGE_RATING: DocumentNode;
|
|
8
|
+
export declare const GET_URL_EVALUATION: DocumentNode;
|
|
9
|
+
export declare const GET_NUMBER_OF_TICKET_EVALUATION: DocumentNode;
|
|
10
|
+
export declare const SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE: DocumentNode;
|
|
11
|
+
export declare const GET_VOUCHERS_V2: DocumentNode;
|
|
12
|
+
export declare const SEARCH_CAMPAIGN: DocumentNode;
|
|
13
|
+
export declare const GET_CONDITION_BY_ORGID_CAMPAIGN_ACTIONIDS: DocumentNode;
|
|
14
|
+
export declare const GET_VOUCHERS_FOR_USER: (fields?: string[]) => DocumentNode;
|