@longvansoftware/service-js-client 1.16.0 → 1.16.2

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 (91) 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/cloud/mutations.js +282 -282
  7. package/dist/src/graphql/cloud/queries.js +341 -341
  8. package/dist/src/graphql/computing/mutations.js +303 -303
  9. package/dist/src/graphql/computing/queries.js +548 -548
  10. package/dist/src/graphql/crm/mutations.js +390 -390
  11. package/dist/src/graphql/crm/queries.js +357 -357
  12. package/dist/src/graphql/crm_camping/mutations.js +32 -32
  13. package/dist/src/graphql/crm_camping/queries.js +228 -199
  14. package/dist/src/graphql/orderGraphQL/mutations.js +351 -351
  15. package/dist/src/graphql/orderGraphQL/queries.js +387 -387
  16. package/dist/src/graphql/payment/mutations.js +45 -45
  17. package/dist/src/graphql/payment/queries.js +60 -60
  18. package/dist/src/graphql/paymentLV/mutations.js +19 -19
  19. package/dist/src/graphql/paymentLV/queries.js +75 -75
  20. package/dist/src/graphql/product/queries.d.ts +1 -0
  21. package/dist/src/graphql/product/queries.js +910 -892
  22. package/dist/src/graphql/quicklab_service/mutations.js +154 -154
  23. package/dist/src/graphql/quicklab_service/queries.js +108 -108
  24. package/dist/src/graphql/resource_permission/mutations.js +57 -57
  25. package/dist/src/graphql/resource_permission/queries.js +13 -13
  26. package/dist/src/graphql/service/mutations.js +228 -228
  27. package/dist/src/graphql/service/queries.js +128 -128
  28. package/dist/src/graphql/user/mutations.js +214 -214
  29. package/dist/src/graphql/user/queries.js +312 -312
  30. package/dist/src/lib/crm_camping/index.d.ts +1 -1
  31. package/dist/src/lib/crm_camping/index.js +10 -6
  32. package/dist/src/lib/product/index.d.ts +1 -0
  33. package/dist/src/lib/product/index.js +18 -0
  34. package/dist/src/lib/service.d.ts +14 -0
  35. package/dist/src/lib/service.js +101 -0
  36. package/dist/src/lib/serviceSDK.js +12 -12
  37. package/dist/src/utils/build-field-string.d.ts +1 -0
  38. package/dist/src/utils/build-field-string.js +16 -0
  39. package/package.json +43 -44
  40. package/dist/src/graphql/campaign/mutations.d.ts +0 -1
  41. package/dist/src/graphql/campaign/mutations.js +0 -34
  42. package/dist/src/graphql/campaign/queries.d.ts +0 -9
  43. package/dist/src/graphql/campaign/queries.js +0 -412
  44. package/dist/src/graphql/cashbook/queries.d.ts +0 -2
  45. package/dist/src/graphql/cashbook/queries.js +0 -99
  46. package/dist/src/graphql/paymentV2/mutations.d.ts +0 -3
  47. package/dist/src/graphql/paymentV2/mutations.js +0 -54
  48. package/dist/src/graphql/paymentV2/queries.d.ts +0 -6
  49. package/dist/src/graphql/paymentV2/queries.js +0 -186
  50. package/dist/src/graphql/store/mutations.d.ts +0 -1
  51. package/dist/src/graphql/store/mutations.js +0 -29
  52. package/dist/src/graphql/store/queries.d.ts +0 -1
  53. package/dist/src/graphql/store/queries.js +0 -29
  54. package/dist/src/lib/accounting/index.d.ts +0 -5
  55. package/dist/src/lib/accounting/index.js +0 -32
  56. package/dist/src/lib/campaign/index.d.ts +0 -20
  57. package/dist/src/lib/campaign/index.js +0 -213
  58. package/dist/src/lib/cashbook/index.d.ts +0 -6
  59. package/dist/src/lib/cashbook/index.js +0 -56
  60. package/dist/src/lib/comhub/index.d.ts +0 -6
  61. package/dist/src/lib/comhub/index.js +0 -50
  62. package/dist/src/lib/deepLinkVietQr/index.d.ts +0 -6
  63. package/dist/src/lib/deepLinkVietQr/index.js +0 -45
  64. package/dist/src/lib/getImage/index.d.ts +0 -4
  65. package/dist/src/lib/getImage/index.js +0 -10
  66. package/dist/src/lib/image/index.d.ts +0 -7
  67. package/dist/src/lib/image/index.js +0 -49
  68. package/dist/src/lib/omnigateway/index.d.ts +0 -7
  69. package/dist/src/lib/omnigateway/index.js +0 -58
  70. package/dist/src/lib/paymentV2/index.d.ts +0 -13
  71. package/dist/src/lib/paymentV2/index.js +0 -163
  72. package/dist/src/lib/portal/index.d.ts +0 -21
  73. package/dist/src/lib/portal/index.js +0 -225
  74. package/dist/src/lib/store/index.d.ts +0 -30
  75. package/dist/src/lib/store/index.js +0 -74
  76. package/dist/src/lib/token/index.d.ts +0 -5
  77. package/dist/src/lib/token/index.js +0 -32
  78. package/dist/src/lib/upload/index.d.ts +0 -5
  79. package/dist/src/lib/upload/index.js +0 -35
  80. package/dist/src/lib/warehouseV2/index.d.ts +0 -13
  81. package/dist/src/lib/warehouseV2/index.js +0 -54
  82. package/dist/src/lib/zca/index.d.ts +0 -12
  83. package/dist/src/lib/zca/index.js +0 -41
  84. package/dist/src/types/campaign.d.ts +0 -14
  85. package/dist/src/types/campaign.js +0 -2
  86. package/dist/src/types/invoice.d.ts +0 -13
  87. package/dist/src/types/invoice.js +0 -2
  88. package/dist/src/types/store.d.ts +0 -158
  89. package/dist/src/types/store.js +0 -3
  90. package/dist/src/utils/validatePhoneNumber.d.ts +0 -1
  91. package/dist/src/utils/validatePhoneNumber.js +0 -20
@@ -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
  `;