@longvansoftware/storefront-js-client 2.9.4 → 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.
@@ -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
  `;