@longvansoftware/service-js-client 1.15.7 → 1.15.9

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.
Files changed (93) hide show
  1. package/README.md +93 -93
  2. package/dist/src/graphql/accounting_service/mutations.js +96 -96
  3. package/dist/src/graphql/accounting_service/queries.js +57 -57
  4. package/dist/src/graphql/auth/mutations.js +235 -235
  5. package/dist/src/graphql/auth/queries.js +68 -68
  6. package/dist/src/graphql/campaign/mutations.d.ts +1 -0
  7. package/dist/src/graphql/campaign/mutations.js +34 -0
  8. package/dist/src/graphql/campaign/queries.d.ts +9 -0
  9. package/dist/src/graphql/campaign/queries.js +412 -0
  10. package/dist/src/graphql/cashbook/queries.d.ts +2 -0
  11. package/dist/src/graphql/cashbook/queries.js +99 -0
  12. package/dist/src/graphql/cloud/mutations.d.ts +4 -0
  13. package/dist/src/graphql/cloud/mutations.js +287 -241
  14. package/dist/src/graphql/cloud/queries.js +341 -341
  15. package/dist/src/graphql/computing/mutations.js +303 -303
  16. package/dist/src/graphql/computing/queries.js +548 -548
  17. package/dist/src/graphql/crm/mutations.d.ts +1 -0
  18. package/dist/src/graphql/crm/mutations.js +392 -375
  19. package/dist/src/graphql/crm/queries.d.ts +1 -0
  20. package/dist/src/graphql/crm/queries.js +359 -332
  21. package/dist/src/graphql/crm_camping/mutations.js +32 -32
  22. package/dist/src/graphql/crm_camping/queries.js +198 -198
  23. package/dist/src/graphql/orderGraphQL/mutations.js +351 -351
  24. package/dist/src/graphql/orderGraphQL/queries.js +387 -387
  25. package/dist/src/graphql/payment/mutations.js +45 -45
  26. package/dist/src/graphql/payment/queries.js +60 -60
  27. package/dist/src/graphql/paymentLV/mutations.js +19 -19
  28. package/dist/src/graphql/paymentLV/queries.js +75 -75
  29. package/dist/src/graphql/paymentV2/mutations.d.ts +3 -0
  30. package/dist/src/graphql/paymentV2/mutations.js +54 -0
  31. package/dist/src/graphql/paymentV2/queries.d.ts +6 -0
  32. package/dist/src/graphql/paymentV2/queries.js +186 -0
  33. package/dist/src/graphql/product/queries.js +891 -891
  34. package/dist/src/graphql/quicklab_service/mutations.js +154 -154
  35. package/dist/src/graphql/quicklab_service/queries.js +108 -108
  36. package/dist/src/graphql/resource_permission/mutations.js +57 -57
  37. package/dist/src/graphql/resource_permission/queries.js +13 -13
  38. package/dist/src/graphql/service/mutations.js +228 -228
  39. package/dist/src/graphql/service/queries.js +128 -128
  40. package/dist/src/graphql/store/mutations.d.ts +1 -0
  41. package/dist/src/graphql/store/mutations.js +29 -0
  42. package/dist/src/graphql/store/queries.d.ts +1 -0
  43. package/dist/src/graphql/store/queries.js +29 -0
  44. package/dist/src/graphql/user/mutations.js +214 -214
  45. package/dist/src/graphql/user/queries.js +312 -312
  46. package/dist/src/lib/accounting/index.d.ts +5 -0
  47. package/dist/src/lib/accounting/index.js +32 -0
  48. package/dist/src/lib/campaign/index.d.ts +20 -0
  49. package/dist/src/lib/campaign/index.js +213 -0
  50. package/dist/src/lib/cashbook/index.d.ts +6 -0
  51. package/dist/src/lib/cashbook/index.js +56 -0
  52. package/dist/src/lib/cloud/index.d.ts +4 -0
  53. package/dist/src/lib/cloud/index.js +69 -0
  54. package/dist/src/lib/comhub/index.d.ts +6 -0
  55. package/dist/src/lib/comhub/index.js +50 -0
  56. package/dist/src/lib/crm/index.d.ts +2 -0
  57. package/dist/src/lib/crm/index.js +40 -0
  58. package/dist/src/lib/deepLinkVietQr/index.d.ts +6 -0
  59. package/dist/src/lib/deepLinkVietQr/index.js +45 -0
  60. package/dist/src/lib/getImage/index.d.ts +4 -0
  61. package/dist/src/lib/getImage/index.js +10 -0
  62. package/dist/src/lib/image/index.d.ts +7 -0
  63. package/dist/src/lib/image/index.js +49 -0
  64. package/dist/src/lib/omnigateway/index.d.ts +7 -0
  65. package/dist/src/lib/omnigateway/index.js +58 -0
  66. package/dist/src/lib/paymentV2/index.d.ts +13 -0
  67. package/dist/src/lib/paymentV2/index.js +163 -0
  68. package/dist/src/lib/portal/index.d.ts +21 -0
  69. package/dist/src/lib/portal/index.js +225 -0
  70. package/dist/src/lib/serviceSDK.js +12 -12
  71. package/dist/src/lib/store/index.d.ts +30 -0
  72. package/dist/src/lib/store/index.js +74 -0
  73. package/dist/src/lib/token/index.d.ts +5 -0
  74. package/dist/src/lib/token/index.js +32 -0
  75. package/dist/src/lib/upload/index.d.ts +5 -0
  76. package/dist/src/lib/upload/index.js +35 -0
  77. package/dist/src/lib/warehouseV2/index.d.ts +13 -0
  78. package/dist/src/lib/warehouseV2/index.js +54 -0
  79. package/dist/src/lib/zca/index.d.ts +12 -0
  80. package/dist/src/lib/zca/index.js +41 -0
  81. package/dist/src/types/campaign.d.ts +14 -0
  82. package/dist/src/types/campaign.js +2 -0
  83. package/dist/src/types/invoice.d.ts +13 -0
  84. package/dist/src/types/invoice.js +2 -0
  85. package/dist/src/types/store.d.ts +158 -0
  86. package/dist/src/types/store.js +3 -0
  87. package/dist/src/utils/validatePhoneNumber.d.ts +1 -0
  88. package/dist/src/utils/validatePhoneNumber.js +20 -0
  89. package/package.json +44 -43
  90. package/dist/src/lib/service.d.ts +0 -14
  91. package/dist/src/lib/service.js +0 -101
  92. package/dist/src/utils/build-field-string.d.ts +0 -1
  93. package/dist/src/utils/build-field-string.js +0 -16
@@ -2,239 +2,239 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CREATE_USER_DETAIL_WITHOUT_USER_LOGIN = exports.CREATE_USER_LOGIN = exports.VALIDATE_OTP = exports.SEND_OTP = exports.LINKING_USER_LOGIN_AND_USER_DETAIL = exports.CREATE_USER_DETAIL = exports.UPDATE_PROFILE = exports.CHECK_RESET_KEY = exports.CREATE_RESET_KEY = exports.LOGIN_v2 = exports.UPDATE_PASSWORD_MUTATION = exports.UPDATE_INFO_MUTATION = exports.RESET_PASSWORD_MUTATION = exports.VERIFY_CODE_MUTATION = exports.SEND_SMS_VERIFY_CODE_MUTATION = exports.REGISTER_MUTATION = exports.LOGIN_MUTATION = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.LOGIN_MUTATION = (0, graphql_tag_1.gql) `
6
- mutation Login($loginRequest: LoginRequest!) {
7
- login(loginRequest: $loginRequest) {
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
- `;
26
- exports.REGISTER_MUTATION = (0, graphql_tag_1.gql) `
27
- mutation Register($orgId: String!, $registerRequest: RegisterRequest!) {
28
- register(orgId: $orgId, registerRequest: $registerRequest) {
29
- id
30
- partyId
31
- type
32
- username
33
- status
34
- accessToken
35
- }
36
- }
37
- `;
38
- exports.SEND_SMS_VERIFY_CODE_MUTATION = (0, graphql_tag_1.gql) `
39
- mutation SendSmsVerifyCode($orgId: String!, $username: String!) {
40
- sendSmsVerifyCode(orgId: $orgId, username: $username) {
41
- id
42
- code
43
- username
44
- timeExpired
45
- }
46
- }
47
- `;
48
- exports.VERIFY_CODE_MUTATION = (0, graphql_tag_1.gql) `
49
- mutation VerifyCode($orgId: String!, $verifyCodeRequest: VerifyCodeRequest!) {
50
- verifyCode(orgId: $orgId, verifyCodeRequest: $verifyCodeRequest)
51
- }
52
- `;
53
- exports.RESET_PASSWORD_MUTATION = (0, graphql_tag_1.gql) `
54
- mutation ResetPassword(
55
- $orgId: String!
56
- $username: String!
57
- $newPassword: String!
58
- $accessToken: String!
59
- ) {
60
- resetPassword(
61
- orgId: $orgId
62
- username: $username
63
- newPassword: $newPassword
64
- accessToken: $accessToken
65
- )
66
- }
67
- `;
68
- exports.UPDATE_INFO_MUTATION = (0, graphql_tag_1.gql) `
69
- mutation UpdateInfo(
70
- $orgId: String!
71
- $accessToken: String!
72
- $updateUserRequest: UpdateUserRequest
73
- $type: String
74
- $password: String
75
- ) {
76
- updateInfo(
77
- orgId: $orgId
78
- accessToken: $accessToken
79
- updateUserRequest: $updateUserRequest
80
- type: $type
81
- password: $password
82
- ) {
83
- partyId
84
- fullName
85
- email
86
- phone
87
- address
88
- identityNumber
89
- gender
90
- birthDate
91
- avatarUrl
92
- }
93
- }
94
- `;
95
- exports.UPDATE_PASSWORD_MUTATION = (0, graphql_tag_1.gql) `
96
- mutation UpdatePassword(
97
- $orgId: String!
98
- $accessToken: String!
99
- $currentPassword: String!
100
- $newPassword: String!
101
- ) {
102
- updatePassword(
103
- orgId: $orgId
104
- accessToken: $accessToken
105
- currentPassword: $currentPassword
106
- newPassword: $newPassword
107
- )
108
- }
109
- `;
110
- exports.LOGIN_v2 = (0, graphql_tag_1.gql) `
111
- mutation LoginV2($loginRequest: LoginRequest!) {
112
- loginV2(loginRequest: $loginRequest) {
113
- partyId
114
- orgId
115
- fullName
116
- email
117
- phone
118
- address
119
- identityNumber
120
- gender
121
- birthDate
122
- avatarUrl
123
- accessToken
124
- username
125
- readyV2
126
- orgPermissionsMap
127
- orgPositionsMap
128
- orgRolesMap
129
- }
130
- }
131
- `;
132
- exports.CREATE_RESET_KEY = (0, graphql_tag_1.gql) `
133
- mutation CreateResetKey($userLoginId: String!) {
134
- createResetKey(userLoginId: $userLoginId)
135
- }
136
- `;
137
- exports.CHECK_RESET_KEY = (0, graphql_tag_1.gql) `
138
- mutation CheckResetKey($resetKey: String!) {
139
- checkResetKey(resetKey: $resetKey) {
140
- userLoginId
141
- isVerified
142
- accessToken
143
- errorMessage
144
- }
145
- }
146
- `;
147
- exports.UPDATE_PROFILE = (0, graphql_tag_1.gql) `
148
- mutation UpdateProfile(
149
- $userLoginId: String!
150
- $name: String!
151
- $phone: String!
152
- $email: String
153
- ) {
154
- updateProfile(
155
- userLoginId: $userLoginId
156
- name: $name
157
- phone: $phone
158
- email: $email
159
- )
160
- }
161
- `;
162
- exports.CREATE_USER_DETAIL = (0, graphql_tag_1.gql) `
163
- mutation CreateUserDetail($userLoginId: String!, $partnerId: String!) {
164
- createUserDetail(userLoginId: $userLoginId, partnerId: $partnerId) {
165
- partyId
166
- orgId
167
- fullName
168
- email
169
- phone
170
- address
171
- identityNumber
172
- gender
173
- birthDate
174
- avatarUrl
175
- accessToken
176
- username
177
- readyV2
178
- orgPermissionsMap
179
- orgPositionsMap
180
- orgRolesMap
181
- }
182
- }
183
- `;
184
- exports.LINKING_USER_LOGIN_AND_USER_DETAIL = (0, graphql_tag_1.gql) `
185
- mutation LinkingUserLoginAndUserDetail(
186
- $userLoginId: String!
187
- $partyId: String!
188
- ) {
189
- linkingUserLoginAndUserDetail(userLoginId: $userLoginId, partyId: $partyId)
190
- }
191
- `;
192
- exports.SEND_OTP = (0, graphql_tag_1.gql) `
193
- mutation SendOTP($orgId: String!, $phone: String!, $channelType: String) {
194
- sendOTP(orgId: $orgId, phone: $phone, channelType: $channelType) {
195
- id
196
- code
197
- username
198
- timeExpired
199
- }
200
- }
201
- `;
202
- exports.VALIDATE_OTP = (0, graphql_tag_1.gql) `
203
- mutation ValidateOTP($otpCode: String!, $phone: String!, $channelType: String) {
204
- validateOTP(otpCode: $otpCode, phone: $phone, channelType: $channelType)
205
- }
206
- `;
207
- exports.CREATE_USER_LOGIN = (0, graphql_tag_1.gql) `
208
- mutation CreateUserLogin($userLoginId: String!) {
209
- createUserLogin(userLoginId: $userLoginId) {
210
- id
211
- partyId
212
- type
213
- username
214
- status
215
- accessToken
216
- }
217
- }
218
- `;
219
- exports.CREATE_USER_DETAIL_WITHOUT_USER_LOGIN = (0, graphql_tag_1.gql) `
220
- mutation CreateUserDetailWithoutUserLogin(
221
- $name: String!
222
- $phone: String!
223
- $email: String
224
- $partnerId: String!
225
- ) {
226
- createUserDetailWithoutUserLogin(
227
- name: $name
228
- phone: $phone
229
- email: $email
230
- partnerId: $partnerId
231
- ) {
232
- id
233
- partyId
234
- type
235
- username
236
- status
237
- accessToken
238
- }
239
- }
5
+ exports.LOGIN_MUTATION = (0, graphql_tag_1.gql) `
6
+ mutation Login($loginRequest: LoginRequest!) {
7
+ login(loginRequest: $loginRequest) {
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
+ `;
26
+ exports.REGISTER_MUTATION = (0, graphql_tag_1.gql) `
27
+ mutation Register($orgId: String!, $registerRequest: RegisterRequest!) {
28
+ register(orgId: $orgId, registerRequest: $registerRequest) {
29
+ id
30
+ partyId
31
+ type
32
+ username
33
+ status
34
+ accessToken
35
+ }
36
+ }
37
+ `;
38
+ exports.SEND_SMS_VERIFY_CODE_MUTATION = (0, graphql_tag_1.gql) `
39
+ mutation SendSmsVerifyCode($orgId: String!, $username: String!) {
40
+ sendSmsVerifyCode(orgId: $orgId, username: $username) {
41
+ id
42
+ code
43
+ username
44
+ timeExpired
45
+ }
46
+ }
47
+ `;
48
+ exports.VERIFY_CODE_MUTATION = (0, graphql_tag_1.gql) `
49
+ mutation VerifyCode($orgId: String!, $verifyCodeRequest: VerifyCodeRequest!) {
50
+ verifyCode(orgId: $orgId, verifyCodeRequest: $verifyCodeRequest)
51
+ }
52
+ `;
53
+ exports.RESET_PASSWORD_MUTATION = (0, graphql_tag_1.gql) `
54
+ mutation ResetPassword(
55
+ $orgId: String!
56
+ $username: String!
57
+ $newPassword: String!
58
+ $accessToken: String!
59
+ ) {
60
+ resetPassword(
61
+ orgId: $orgId
62
+ username: $username
63
+ newPassword: $newPassword
64
+ accessToken: $accessToken
65
+ )
66
+ }
67
+ `;
68
+ exports.UPDATE_INFO_MUTATION = (0, graphql_tag_1.gql) `
69
+ mutation UpdateInfo(
70
+ $orgId: String!
71
+ $accessToken: String!
72
+ $updateUserRequest: UpdateUserRequest
73
+ $type: String
74
+ $password: String
75
+ ) {
76
+ updateInfo(
77
+ orgId: $orgId
78
+ accessToken: $accessToken
79
+ updateUserRequest: $updateUserRequest
80
+ type: $type
81
+ password: $password
82
+ ) {
83
+ partyId
84
+ fullName
85
+ email
86
+ phone
87
+ address
88
+ identityNumber
89
+ gender
90
+ birthDate
91
+ avatarUrl
92
+ }
93
+ }
94
+ `;
95
+ exports.UPDATE_PASSWORD_MUTATION = (0, graphql_tag_1.gql) `
96
+ mutation UpdatePassword(
97
+ $orgId: String!
98
+ $accessToken: String!
99
+ $currentPassword: String!
100
+ $newPassword: String!
101
+ ) {
102
+ updatePassword(
103
+ orgId: $orgId
104
+ accessToken: $accessToken
105
+ currentPassword: $currentPassword
106
+ newPassword: $newPassword
107
+ )
108
+ }
109
+ `;
110
+ exports.LOGIN_v2 = (0, graphql_tag_1.gql) `
111
+ mutation LoginV2($loginRequest: LoginRequest!) {
112
+ loginV2(loginRequest: $loginRequest) {
113
+ partyId
114
+ orgId
115
+ fullName
116
+ email
117
+ phone
118
+ address
119
+ identityNumber
120
+ gender
121
+ birthDate
122
+ avatarUrl
123
+ accessToken
124
+ username
125
+ readyV2
126
+ orgPermissionsMap
127
+ orgPositionsMap
128
+ orgRolesMap
129
+ }
130
+ }
131
+ `;
132
+ exports.CREATE_RESET_KEY = (0, graphql_tag_1.gql) `
133
+ mutation CreateResetKey($userLoginId: String!) {
134
+ createResetKey(userLoginId: $userLoginId)
135
+ }
136
+ `;
137
+ exports.CHECK_RESET_KEY = (0, graphql_tag_1.gql) `
138
+ mutation CheckResetKey($resetKey: String!) {
139
+ checkResetKey(resetKey: $resetKey) {
140
+ userLoginId
141
+ isVerified
142
+ accessToken
143
+ errorMessage
144
+ }
145
+ }
146
+ `;
147
+ exports.UPDATE_PROFILE = (0, graphql_tag_1.gql) `
148
+ mutation UpdateProfile(
149
+ $userLoginId: String!
150
+ $name: String!
151
+ $phone: String!
152
+ $email: String
153
+ ) {
154
+ updateProfile(
155
+ userLoginId: $userLoginId
156
+ name: $name
157
+ phone: $phone
158
+ email: $email
159
+ )
160
+ }
161
+ `;
162
+ exports.CREATE_USER_DETAIL = (0, graphql_tag_1.gql) `
163
+ mutation CreateUserDetail($userLoginId: String!, $partnerId: String!) {
164
+ createUserDetail(userLoginId: $userLoginId, partnerId: $partnerId) {
165
+ partyId
166
+ orgId
167
+ fullName
168
+ email
169
+ phone
170
+ address
171
+ identityNumber
172
+ gender
173
+ birthDate
174
+ avatarUrl
175
+ accessToken
176
+ username
177
+ readyV2
178
+ orgPermissionsMap
179
+ orgPositionsMap
180
+ orgRolesMap
181
+ }
182
+ }
183
+ `;
184
+ exports.LINKING_USER_LOGIN_AND_USER_DETAIL = (0, graphql_tag_1.gql) `
185
+ mutation LinkingUserLoginAndUserDetail(
186
+ $userLoginId: String!
187
+ $partyId: String!
188
+ ) {
189
+ linkingUserLoginAndUserDetail(userLoginId: $userLoginId, partyId: $partyId)
190
+ }
191
+ `;
192
+ exports.SEND_OTP = (0, graphql_tag_1.gql) `
193
+ mutation SendOTP($orgId: String!, $phone: String!, $channelType: String) {
194
+ sendOTP(orgId: $orgId, phone: $phone, channelType: $channelType) {
195
+ id
196
+ code
197
+ username
198
+ timeExpired
199
+ }
200
+ }
201
+ `;
202
+ exports.VALIDATE_OTP = (0, graphql_tag_1.gql) `
203
+ mutation ValidateOTP($otpCode: String!, $phone: String!, $channelType: String) {
204
+ validateOTP(otpCode: $otpCode, phone: $phone, channelType: $channelType)
205
+ }
206
+ `;
207
+ exports.CREATE_USER_LOGIN = (0, graphql_tag_1.gql) `
208
+ mutation CreateUserLogin($userLoginId: String!) {
209
+ createUserLogin(userLoginId: $userLoginId) {
210
+ id
211
+ partyId
212
+ type
213
+ username
214
+ status
215
+ accessToken
216
+ }
217
+ }
218
+ `;
219
+ exports.CREATE_USER_DETAIL_WITHOUT_USER_LOGIN = (0, graphql_tag_1.gql) `
220
+ mutation CreateUserDetailWithoutUserLogin(
221
+ $name: String!
222
+ $phone: String!
223
+ $email: String
224
+ $partnerId: String!
225
+ ) {
226
+ createUserDetailWithoutUserLogin(
227
+ name: $name
228
+ phone: $phone
229
+ email: $email
230
+ partnerId: $partnerId
231
+ ) {
232
+ id
233
+ partyId
234
+ type
235
+ username
236
+ status
237
+ accessToken
238
+ }
239
+ }
240
240
  `;
@@ -2,79 +2,79 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GET_ACCESS_TOKEN_BY_OTP = exports.GET_EMAIL_BY_PARTYID = exports.GET_PHONE_BY_PARTYID = exports.GET_USER_LOGIN_BY_PARTY_ID = 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
- userLoginId
30
- accessToken
31
- status
32
- partyId
33
- id
34
- }
35
- }
26
+ exports.GET_USER_LOGIN_BY_TOKEN = (0, graphql_tag_1.gql) `
27
+ query GetUserLoginByToken($accessToken: String!) {
28
+ getUserLoginByToken(accessToken: $accessToken) {
29
+ userLoginId
30
+ accessToken
31
+ status
32
+ partyId
33
+ id
34
+ }
35
+ }
36
36
  `;
37
- exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = (0, graphql_tag_1.gql) `
38
- query GetUserLoginByUserLoginId($userLoginId: String!) {
39
- getUserLoginByUserLoginId(userLoginId: $userLoginId) {
40
- id
41
- userLoginId
42
- accessToken
43
- status
44
- partyId
45
- }
46
- }
37
+ exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = (0, graphql_tag_1.gql) `
38
+ query GetUserLoginByUserLoginId($userLoginId: String!) {
39
+ getUserLoginByUserLoginId(userLoginId: $userLoginId) {
40
+ id
41
+ userLoginId
42
+ accessToken
43
+ status
44
+ partyId
45
+ }
46
+ }
47
47
  `;
48
- exports.CHECK_USERNAME_EXISTED = (0, graphql_tag_1.gql) `
49
- query CheckUsernameExisted($username: String!, $orgId: String!) {
50
- checkUsernameExisted(username: $username, orgId: $orgId)
51
- }
48
+ exports.CHECK_USERNAME_EXISTED = (0, graphql_tag_1.gql) `
49
+ query CheckUsernameExisted($username: String!, $orgId: String!) {
50
+ checkUsernameExisted(username: $username, orgId: $orgId)
51
+ }
52
52
  `;
53
- exports.GET_USER_LOGIN_BY_PARTY_ID = (0, graphql_tag_1.gql) `
54
- query GetUserLoginsByPartyId($partyId: String!) {
55
- getUserLoginsByPartyId(partyId: $partyId) {
56
- id
57
- userLoginId
58
- accessToken
59
- status
60
- partyId
61
- profile
62
- type
63
- }
64
- }
53
+ exports.GET_USER_LOGIN_BY_PARTY_ID = (0, graphql_tag_1.gql) `
54
+ query GetUserLoginsByPartyId($partyId: String!) {
55
+ getUserLoginsByPartyId(partyId: $partyId) {
56
+ id
57
+ userLoginId
58
+ accessToken
59
+ status
60
+ partyId
61
+ profile
62
+ type
63
+ }
64
+ }
65
65
  `;
66
- exports.GET_PHONE_BY_PARTYID = (0, graphql_tag_1.gql) `
67
- query GetPhoneByPartyId($partyId: String!) {
68
- getPhoneByPartyId(partyId: $partyId)
69
- }
66
+ exports.GET_PHONE_BY_PARTYID = (0, graphql_tag_1.gql) `
67
+ query GetPhoneByPartyId($partyId: String!) {
68
+ getPhoneByPartyId(partyId: $partyId)
69
+ }
70
70
  `;
71
- exports.GET_EMAIL_BY_PARTYID = (0, graphql_tag_1.gql) `
72
- query GetEmailByPartyId($partyId: String!) {
73
- getEmailByPartyId(partyId: $partyId)
74
- }
71
+ exports.GET_EMAIL_BY_PARTYID = (0, graphql_tag_1.gql) `
72
+ query GetEmailByPartyId($partyId: String!) {
73
+ getEmailByPartyId(partyId: $partyId)
74
+ }
75
75
  `;
76
- exports.GET_ACCESS_TOKEN_BY_OTP = (0, graphql_tag_1.gql) `
77
- query GetAccessTokenByOTP($otpCode: String!, $phone: String!, $channelType: String) {
78
- getAccessTokenByOTP(otpCode: $otpCode, phone: $phone, channelType: $channelType)
79
- }
76
+ exports.GET_ACCESS_TOKEN_BY_OTP = (0, graphql_tag_1.gql) `
77
+ query GetAccessTokenByOTP($otpCode: String!, $phone: String!, $channelType: String) {
78
+ getAccessTokenByOTP(otpCode: $otpCode, phone: $phone, channelType: $channelType)
79
+ }
80
80
  `;
@@ -0,0 +1 @@
1
+ export declare const ADD_CUSTOMER_ID_INTO_VOUCHER: import("graphql").DocumentNode;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ADD_CUSTOMER_ID_INTO_VOUCHER = void 0;
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
+ }
34
+ `;
@@ -0,0 +1,9 @@
1
+ export declare const GET_CAMPAIGN_ACTION_ACTIVE_NOW: import("graphql").DocumentNode;
2
+ export declare const GET_VOUCHERS: import("graphql").DocumentNode;
3
+ export declare const CHECK_VALID_VOUCHER: import("graphql").DocumentNode;
4
+ export declare const GET_CAMPAIGN_ACTIVE_NOW: import("graphql").DocumentNode;
5
+ export declare const GET_PROMOTION_PRODUCT_PRICE: import("graphql").DocumentNode;
6
+ export declare const GET_VOUCHER_AVAILABLE_FOR_CUSTOMER: import("graphql").DocumentNode;
7
+ export declare const SUGGEST_VOUCHER: import("graphql").DocumentNode;
8
+ export declare const GET_CAMPAIGN_ACTION_BY_ID: import("graphql").DocumentNode;
9
+ export declare const SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE: import("graphql").DocumentNode;