@longvansoftware/storefront-js-client 2.9.3 → 2.9.5
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/README.md +186 -93
- package/dist/src/graphql/auth/mutations.js +130 -130
- package/dist/src/graphql/auth/queries.js +55 -55
- package/dist/src/graphql/campaign/mutations.js +26 -26
- package/dist/src/graphql/campaign/queries.js +375 -375
- package/dist/src/graphql/cloud/mutations.js +103 -103
- package/dist/src/graphql/cloud/queries.js +112 -112
- package/dist/src/graphql/computing/mutations.js +96 -96
- package/dist/src/graphql/computing/queries.js +41 -41
- package/dist/src/graphql/crm/mutations.js +813 -813
- package/dist/src/graphql/crm/queries.js +661 -661
- package/dist/src/graphql/payment/mutations.js +146 -146
- package/dist/src/graphql/payment/queries.js +116 -116
- package/dist/src/graphql/paymentV2/mutations.js +47 -47
- package/dist/src/graphql/paymentV2/queries.js +176 -176
- package/dist/src/graphql/product/mutations.js +94 -94
- package/dist/src/graphql/product/queries.js +468 -464
- package/dist/src/graphql/service/mutations.js +304 -304
- package/dist/src/graphql/service/queries.js +131 -131
- package/dist/src/graphql/user/mutations.js +142 -142
- package/dist/src/graphql/user/queries.js +298 -298
- package/dist/src/lib/order/index.d.ts +10 -3
- package/dist/src/lib/order/index.js +25 -4
- package/dist/src/lib/serviceSDK.js +12 -12
- package/dist/src/types/order.d.ts +6 -0
- package/package.json +44 -43
- package/dist/src/lib/shareZalo/index.d.ts +0 -5
- package/dist/src/lib/shareZalo/index.js +0 -32
|
@@ -2,36 +2,36 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LOGIN_ZALO = exports.LOGIN_FACEBOOK = exports.LOGIN_GOOGLE = exports.CHECK_USERNAME_EXISTED = exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = exports.GET_USER_LOGIN_BY_TOKEN = exports.GET_USER_DETAIL = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
-
exports.GET_USER_DETAIL = (0, graphql_tag_1.gql) `
|
|
6
|
-
query GetUserDetail($orgId: String!, $accessToken: String!) {
|
|
7
|
-
getUserDetail(orgId: $orgId, accessToken: $accessToken) {
|
|
8
|
-
partyId
|
|
9
|
-
orgId
|
|
10
|
-
fullName
|
|
11
|
-
email
|
|
12
|
-
phone
|
|
13
|
-
address
|
|
14
|
-
identityNumber
|
|
15
|
-
gender
|
|
16
|
-
birthDate
|
|
17
|
-
avatarUrl
|
|
18
|
-
accessToken
|
|
19
|
-
username
|
|
20
|
-
orgPermissionsMap
|
|
21
|
-
orgPositionsMap
|
|
22
|
-
orgRolesMap
|
|
23
|
-
}
|
|
24
|
-
}
|
|
5
|
+
exports.GET_USER_DETAIL = (0, graphql_tag_1.gql) `
|
|
6
|
+
query GetUserDetail($orgId: String!, $accessToken: String!) {
|
|
7
|
+
getUserDetail(orgId: $orgId, accessToken: $accessToken) {
|
|
8
|
+
partyId
|
|
9
|
+
orgId
|
|
10
|
+
fullName
|
|
11
|
+
email
|
|
12
|
+
phone
|
|
13
|
+
address
|
|
14
|
+
identityNumber
|
|
15
|
+
gender
|
|
16
|
+
birthDate
|
|
17
|
+
avatarUrl
|
|
18
|
+
accessToken
|
|
19
|
+
username
|
|
20
|
+
orgPermissionsMap
|
|
21
|
+
orgPositionsMap
|
|
22
|
+
orgRolesMap
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
25
|
`;
|
|
26
|
-
exports.GET_USER_LOGIN_BY_TOKEN = (0, graphql_tag_1.gql) `
|
|
27
|
-
query GetUserLoginByToken($accessToken: String!) {
|
|
28
|
-
getUserLoginByToken(accessToken: $accessToken) {
|
|
29
|
-
id
|
|
30
|
-
status
|
|
31
|
-
partyId
|
|
32
|
-
userLoginId
|
|
33
|
-
}
|
|
34
|
-
}
|
|
26
|
+
exports.GET_USER_LOGIN_BY_TOKEN = (0, graphql_tag_1.gql) `
|
|
27
|
+
query GetUserLoginByToken($accessToken: String!) {
|
|
28
|
+
getUserLoginByToken(accessToken: $accessToken) {
|
|
29
|
+
id
|
|
30
|
+
status
|
|
31
|
+
partyId
|
|
32
|
+
userLoginId
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
35
|
`;
|
|
36
36
|
// query GetUserLoginByUserLoginId {
|
|
37
37
|
// getUserLoginByUserLoginId(userLoginId: "0971879660") {
|
|
@@ -42,34 +42,34 @@ exports.GET_USER_LOGIN_BY_TOKEN = (0, graphql_tag_1.gql) `
|
|
|
42
42
|
// partyId
|
|
43
43
|
// }
|
|
44
44
|
// }
|
|
45
|
-
exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = (0, graphql_tag_1.gql) `
|
|
46
|
-
query GetUserLoginByUserLoginId($userLoginId: String!) {
|
|
47
|
-
getUserLoginByUserLoginId(userLoginId: $userLoginId) {
|
|
48
|
-
id
|
|
49
|
-
userLoginId
|
|
50
|
-
accessToken
|
|
51
|
-
status
|
|
52
|
-
partyId
|
|
53
|
-
}
|
|
54
|
-
}
|
|
45
|
+
exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = (0, graphql_tag_1.gql) `
|
|
46
|
+
query GetUserLoginByUserLoginId($userLoginId: String!) {
|
|
47
|
+
getUserLoginByUserLoginId(userLoginId: $userLoginId) {
|
|
48
|
+
id
|
|
49
|
+
userLoginId
|
|
50
|
+
accessToken
|
|
51
|
+
status
|
|
52
|
+
partyId
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
55
|
`;
|
|
56
|
-
exports.CHECK_USERNAME_EXISTED = (0, graphql_tag_1.gql) `
|
|
57
|
-
query CheckUsernameExisted($username: String!, $orgId: String!) {
|
|
58
|
-
checkUsernameExisted(username: $username, orgId: $orgId)
|
|
59
|
-
}
|
|
56
|
+
exports.CHECK_USERNAME_EXISTED = (0, graphql_tag_1.gql) `
|
|
57
|
+
query CheckUsernameExisted($username: String!, $orgId: String!) {
|
|
58
|
+
checkUsernameExisted(username: $username, orgId: $orgId)
|
|
59
|
+
}
|
|
60
60
|
`;
|
|
61
|
-
exports.LOGIN_GOOGLE = (0, graphql_tag_1.gql) `
|
|
62
|
-
query LoginGoogle($orgId: String!, $type: String!, $redirectUrl: String!) {
|
|
63
|
-
loginGoogle(orgId: $orgId, type: $type, redirectUrl: $redirectUrl)
|
|
64
|
-
}
|
|
61
|
+
exports.LOGIN_GOOGLE = (0, graphql_tag_1.gql) `
|
|
62
|
+
query LoginGoogle($orgId: String!, $type: String!, $redirectUrl: String!) {
|
|
63
|
+
loginGoogle(orgId: $orgId, type: $type, redirectUrl: $redirectUrl)
|
|
64
|
+
}
|
|
65
65
|
`;
|
|
66
|
-
exports.LOGIN_FACEBOOK = (0, graphql_tag_1.gql) `
|
|
67
|
-
query LoginFacebook($orgId: String!, $type: String!, $redirectUrl: String!) {
|
|
68
|
-
loginFacebook(orgId: $orgId, type: $type, redirectUrl: $redirectUrl)
|
|
69
|
-
}
|
|
66
|
+
exports.LOGIN_FACEBOOK = (0, graphql_tag_1.gql) `
|
|
67
|
+
query LoginFacebook($orgId: String!, $type: String!, $redirectUrl: String!) {
|
|
68
|
+
loginFacebook(orgId: $orgId, type: $type, redirectUrl: $redirectUrl)
|
|
69
|
+
}
|
|
70
70
|
`;
|
|
71
|
-
exports.LOGIN_ZALO = (0, graphql_tag_1.gql) `
|
|
72
|
-
query LoginZalo($orgId: String!, $type: String!, $redirectUrl: String!) {
|
|
73
|
-
loginZalo(orgId: $orgId, type: $type, redirectUrl: $redirectUrl)
|
|
74
|
-
}
|
|
71
|
+
exports.LOGIN_ZALO = (0, graphql_tag_1.gql) `
|
|
72
|
+
query LoginZalo($orgId: String!, $type: String!, $redirectUrl: String!) {
|
|
73
|
+
loginZalo(orgId: $orgId, type: $type, redirectUrl: $redirectUrl)
|
|
74
|
+
}
|
|
75
75
|
`;
|
|
@@ -5,30 +5,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ADD_CUSTOMER_ID_INTO_VOUCHER = void 0;
|
|
7
7
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.ADD_CUSTOMER_ID_INTO_VOUCHER = (0, graphql_tag_1.default) `
|
|
9
|
-
mutation AddCustomerToVoucher(
|
|
10
|
-
$partyId: String!
|
|
11
|
-
$voucherCode: String!
|
|
12
|
-
$userId: String!
|
|
13
|
-
$affiliateId: String
|
|
14
|
-
) {
|
|
15
|
-
addCustomerToVoucher(
|
|
16
|
-
partyId: $partyId
|
|
17
|
-
voucherCode: $voucherCode
|
|
18
|
-
userId: $userId
|
|
19
|
-
affiliateId: $affiliateId
|
|
20
|
-
) {
|
|
21
|
-
id
|
|
22
|
-
customerId
|
|
23
|
-
campaignActionId
|
|
24
|
-
campaignId
|
|
25
|
-
partyId
|
|
26
|
-
voucherCode
|
|
27
|
-
voucherType
|
|
28
|
-
status
|
|
29
|
-
discountAmount
|
|
30
|
-
discountPercent
|
|
31
|
-
usageLimitPerVoucher
|
|
32
|
-
}
|
|
33
|
-
}
|
|
8
|
+
exports.ADD_CUSTOMER_ID_INTO_VOUCHER = (0, graphql_tag_1.default) `
|
|
9
|
+
mutation AddCustomerToVoucher(
|
|
10
|
+
$partyId: String!
|
|
11
|
+
$voucherCode: String!
|
|
12
|
+
$userId: String!
|
|
13
|
+
$affiliateId: String
|
|
14
|
+
) {
|
|
15
|
+
addCustomerToVoucher(
|
|
16
|
+
partyId: $partyId
|
|
17
|
+
voucherCode: $voucherCode
|
|
18
|
+
userId: $userId
|
|
19
|
+
affiliateId: $affiliateId
|
|
20
|
+
) {
|
|
21
|
+
id
|
|
22
|
+
customerId
|
|
23
|
+
campaignActionId
|
|
24
|
+
campaignId
|
|
25
|
+
partyId
|
|
26
|
+
voucherCode
|
|
27
|
+
voucherType
|
|
28
|
+
status
|
|
29
|
+
discountAmount
|
|
30
|
+
discountPercent
|
|
31
|
+
usageLimitPerVoucher
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
34
|
`;
|