@longvansoftware/storefront-js-client 2.2.7-beta.1 → 2.2.8

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 (32) hide show
  1. package/README.md +93 -93
  2. package/dist/src/graphql/auth/mutations.d.ts +0 -3
  3. package/dist/src/graphql/auth/mutations.js +89 -154
  4. package/dist/src/graphql/auth/queries.d.ts +0 -3
  5. package/dist/src/graphql/auth/queries.js +21 -56
  6. package/dist/src/graphql/campaign/queries.js +248 -248
  7. package/dist/src/graphql/cloud/mutations.js +103 -103
  8. package/dist/src/graphql/cloud/queries.js +112 -112
  9. package/dist/src/graphql/computing/mutations.js +96 -96
  10. package/dist/src/graphql/computing/queries.js +41 -41
  11. package/dist/src/graphql/crm/mutations.js +799 -799
  12. package/dist/src/graphql/crm/queries.js +615 -615
  13. package/dist/src/graphql/payment/mutations.js +39 -39
  14. package/dist/src/graphql/payment/queries.js +57 -57
  15. package/dist/src/graphql/paymentV2/mutations.d.ts +1 -0
  16. package/dist/src/graphql/paymentV2/mutations.js +18 -5
  17. package/dist/src/graphql/paymentV2/queries.d.ts +2 -0
  18. package/dist/src/graphql/paymentV2/queries.js +160 -60
  19. package/dist/src/graphql/product/queries.js +431 -431
  20. package/dist/src/graphql/service/mutations.js +304 -304
  21. package/dist/src/graphql/service/queries.js +131 -131
  22. package/dist/src/graphql/user/mutations.js +110 -110
  23. package/dist/src/graphql/user/queries.js +279 -281
  24. package/dist/src/lib/auth/index.d.ts +0 -13
  25. package/dist/src/lib/auth/index.js +0 -107
  26. package/dist/src/lib/paymentV2/index.d.ts +3 -0
  27. package/dist/src/lib/paymentV2/index.js +46 -0
  28. package/dist/src/lib/serviceSDK.js +12 -12
  29. package/dist/src/lib/shareZalo/index.d.ts +5 -0
  30. package/dist/src/lib/shareZalo/index.js +32 -0
  31. package/dist/src/lib/user/index.js +0 -1
  32. package/package.json +43 -43
@@ -2,298 +2,296 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GET_PERSON_BY_PARTY_ID = exports.GET_WARDS = exports.GET_DISTRICTS = exports.GET_PROVINCES = exports.GET_CONTACT_INFOS_BY_COMPANY_ID = exports.GET_COMPANY_BY_CONTACT_INFO_ID = exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = exports.GET_POSTIONS_BY_EMPLOYEES_ID = exports.SEARCH_EMPLOYEES = exports.SEARCH_CUSTOMER = exports.GET_CUSTOMER_BY_ID = exports.SEARCH_COMPANY = exports.GET_PERSON_BY_IDS_QUERY = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.GET_PERSON_BY_IDS_QUERY = (0, graphql_tag_1.gql) `
6
- query GetPersonByIds($partyIds: [String!]!) {
7
- getPersonByPartyIds(partyIds: $partyIds) {
8
- status
9
- partyId
10
- fullName
11
- phone
12
- address
13
- gender
14
- birthDate
15
- email
16
- personalTitle
17
- imageUrl
18
- identityNumber
19
- id
20
- addressModel {
21
- id
22
- addressInfo
23
- provinceGeoId
24
- districtGeoId
25
- wardGeoId
26
- provinceName
27
- districtName
28
- wardName
29
- isDefault
30
- }
31
- }
32
- }
5
+ exports.GET_PERSON_BY_IDS_QUERY = (0, graphql_tag_1.gql) `
6
+ query GetPersonByIds($partyIds: [String!]!) {
7
+ getPersonByPartyIds(partyIds: $partyIds) {
8
+ status
9
+ partyId
10
+ fullName
11
+ phone
12
+ address
13
+ gender
14
+ birthDate
15
+ email
16
+ personalTitle
17
+ imageUrl
18
+ identityNumber
19
+ id
20
+ addressModel {
21
+ id
22
+ addressInfo
23
+ provinceGeoId
24
+ districtGeoId
25
+ wardGeoId
26
+ provinceName
27
+ districtName
28
+ wardName
29
+ isDefault
30
+ }
31
+ }
32
+ }
33
33
  `;
34
- exports.SEARCH_COMPANY = (0, graphql_tag_1.gql) `
35
- query SearchCompany($keyword: String, $orgId: String!, $limit: Int) {
36
- searchCompany(keyword: $keyword, orgId: $orgId, limit: $limit) {
37
- id
38
- name
39
- address
40
- gender
41
- identityNumber
42
- birthDate
43
- email
44
- phone
45
- createdStamp
46
- createdBy
47
- memberLevel
48
- }
49
- }
34
+ exports.SEARCH_COMPANY = (0, graphql_tag_1.gql) `
35
+ query SearchCompany($keyword: String, $orgId: String!, $limit: Int) {
36
+ searchCompany(keyword: $keyword, orgId: $orgId, limit: $limit) {
37
+ id
38
+ name
39
+ address
40
+ gender
41
+ identityNumber
42
+ birthDate
43
+ email
44
+ phone
45
+ createdStamp
46
+ createdBy
47
+ memberLevel
48
+ }
49
+ }
50
50
  `;
51
- exports.GET_CUSTOMER_BY_ID = (0, graphql_tag_1.gql) `
52
- query GetCustomerById($id: String!) {
53
- getCustomerById(id: $id) {
54
- id
55
- name
56
- address
57
- gender
58
- identityNumber
59
- birthDate
60
- email
61
- phone
62
- createdStamp
63
- createdBy
64
- memberLevel
65
- }
66
- }
51
+ exports.GET_CUSTOMER_BY_ID = (0, graphql_tag_1.gql) `
52
+ query GetCustomerById($id: String!) {
53
+ getCustomerById(id: $id) {
54
+ id
55
+ name
56
+ address
57
+ gender
58
+ identityNumber
59
+ birthDate
60
+ email
61
+ phone
62
+ createdStamp
63
+ createdBy
64
+ memberLevel
65
+ }
66
+ }
67
67
  `;
68
- exports.SEARCH_CUSTOMER = (0, graphql_tag_1.gql) `
69
- query SearchCustomers(
70
- $keyword: String
71
- $type: String
72
- $startCreatedDate: DateCustom
73
- $endCreatedDate: DateCustom
74
- $memberLevel: String
75
- $partnerId: String!
76
- $currentPage: Int!
77
- $pageSize: Int!
78
- $followSocialAppId: String
79
- ) {
80
- searchCustomers(
81
- keyword: $keyword
82
- type: $type
83
- startCreatedDate: $startCreatedDate
84
- endCreatedDate: $endCreatedDate
85
- memberLevel: $memberLevel
86
- partnerId: $partnerId
87
- currentPage: $currentPage
88
- pageSize: $pageSize
89
- followSocialAppId: $followSocialAppId
90
- ) {
91
- totalPages
92
- totalElements
93
- currentPage
94
- content {
95
- id
96
- name
97
- address
98
- gender
99
- identityNumber
100
- birthDate
101
- email
102
- phone
103
- createdStamp
104
- createdBy
105
- memberLevel
106
- }
107
- }
108
- }
68
+ exports.SEARCH_CUSTOMER = (0, graphql_tag_1.gql) `
69
+ query SearchCustomers(
70
+ $keyword: String
71
+ $type: String
72
+ $startCreatedDate: DateCustom
73
+ $endCreatedDate: DateCustom
74
+ $memberLevel: String
75
+ $partnerId: String!
76
+ $currentPage: Int!
77
+ $pageSize: Int!
78
+ ) {
79
+ searchCustomers(
80
+ keyword: $keyword
81
+ type: $type
82
+ startCreatedDate: $startCreatedDate
83
+ endCreatedDate: $endCreatedDate
84
+ memberLevel: $memberLevel
85
+ partnerId: $partnerId
86
+ currentPage: $currentPage
87
+ pageSize: $pageSize
88
+ ) {
89
+ totalPages
90
+ totalElements
91
+ currentPage
92
+ content {
93
+ id
94
+ name
95
+ address
96
+ gender
97
+ identityNumber
98
+ birthDate
99
+ email
100
+ phone
101
+ createdStamp
102
+ createdBy
103
+ memberLevel
104
+ }
105
+ }
106
+ }
109
107
  `;
110
- exports.SEARCH_EMPLOYEES = (0, graphql_tag_1.gql) `
111
- query SearchEmployees(
112
- $keyword: String
113
- $positionShortName: String
114
- $partnerId: String
115
- ) {
116
- searchEmployees(
117
- keyword: $keyword
118
- positionShortName: $positionShortName
119
- partnerId: $partnerId
120
- ) {
121
- id
122
- name
123
- address
124
- gender
125
- identityNumber
126
- birthDate
127
- email
128
- phone
129
- createdStamp
130
- createdBy
131
- memberLevel
132
- }
133
- }
108
+ exports.SEARCH_EMPLOYEES = (0, graphql_tag_1.gql) `
109
+ query SearchEmployees(
110
+ $keyword: String
111
+ $positionShortName: String
112
+ $partnerId: String
113
+ ) {
114
+ searchEmployees(
115
+ keyword: $keyword
116
+ positionShortName: $positionShortName
117
+ partnerId: $partnerId
118
+ ) {
119
+ id
120
+ name
121
+ address
122
+ gender
123
+ identityNumber
124
+ birthDate
125
+ email
126
+ phone
127
+ createdStamp
128
+ createdBy
129
+ memberLevel
130
+ }
131
+ }
134
132
  `;
135
- exports.GET_POSTIONS_BY_EMPLOYEES_ID = (0, graphql_tag_1.gql) `
136
- query GetPositionsByEmployeeId($employeeId: String!, $partnerId: String!) {
137
- getPositionsByEmployeeId(employeeId: $employeeId, partnerId: $partnerId)
138
- }
133
+ exports.GET_POSTIONS_BY_EMPLOYEES_ID = (0, graphql_tag_1.gql) `
134
+ query GetPositionsByEmployeeId($employeeId: String!, $partnerId: String!) {
135
+ getPositionsByEmployeeId(employeeId: $employeeId, partnerId: $partnerId)
136
+ }
139
137
  `;
140
- exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = (0, graphql_tag_1.gql) `
141
- query GetStoreChannelIdsByEmployeeId(
142
- $employeeId: String!
143
- $partnerId: String!
144
- ) {
145
- getStoreChannelIdsByEmployeeId(
146
- employeeId: $employeeId
147
- partnerId: $partnerId
148
- )
149
- }
138
+ exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = (0, graphql_tag_1.gql) `
139
+ query GetStoreChannelIdsByEmployeeId(
140
+ $employeeId: String!
141
+ $partnerId: String!
142
+ ) {
143
+ getStoreChannelIdsByEmployeeId(
144
+ employeeId: $employeeId
145
+ partnerId: $partnerId
146
+ )
147
+ }
150
148
  `;
151
- exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = (0, graphql_tag_1.gql) `
152
- query GetEmployeesByStoreChannelId(
153
- $storeChannelId: String!
154
- $partnerId: String!
155
- ) {
156
- getEmployeesByStoreChannelId(
157
- storeChannelId: $storeChannelId
158
- partnerId: $partnerId
159
- ) {
160
- id
161
- name
162
- address
163
- gender
164
- identityNumber
165
- birthDate
166
- email
167
- phone
168
- createdStamp
169
- createdBy
170
- memberLevel
171
- }
172
- }
149
+ exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = (0, graphql_tag_1.gql) `
150
+ query GetEmployeesByStoreChannelId(
151
+ $storeChannelId: String!
152
+ $partnerId: String!
153
+ ) {
154
+ getEmployeesByStoreChannelId(
155
+ storeChannelId: $storeChannelId
156
+ partnerId: $partnerId
157
+ ) {
158
+ id
159
+ name
160
+ address
161
+ gender
162
+ identityNumber
163
+ birthDate
164
+ email
165
+ phone
166
+ createdStamp
167
+ createdBy
168
+ memberLevel
169
+ }
170
+ }
173
171
  `;
174
- exports.GET_COMPANY_BY_CONTACT_INFO_ID = (0, graphql_tag_1.gql) `
175
- query GetCompanyByContactInfoId($contactId: String!, $partnerId: String!) {
176
- getCompanyByContactInfoId(contactId: $contactId, partnerId: $partnerId) {
177
- id
178
- name
179
- address
180
- gender
181
- identityNumber
182
- birthDate
183
- email
184
- phone
185
- createdStamp
186
- createdBy
187
- memberLevel
188
- }
189
- }
172
+ exports.GET_COMPANY_BY_CONTACT_INFO_ID = (0, graphql_tag_1.gql) `
173
+ query GetCompanyByContactInfoId($contactId: String!, $partnerId: String!) {
174
+ getCompanyByContactInfoId(contactId: $contactId, partnerId: $partnerId) {
175
+ id
176
+ name
177
+ address
178
+ gender
179
+ identityNumber
180
+ birthDate
181
+ email
182
+ phone
183
+ createdStamp
184
+ createdBy
185
+ memberLevel
186
+ }
187
+ }
190
188
  `;
191
- exports.GET_CONTACT_INFOS_BY_COMPANY_ID = (0, graphql_tag_1.gql) `
192
- query GetContactInfosByCompanyId($companyId: String!, $partnerId: String!) {
193
- getContactInfosByCompanyId(companyId: $companyId, partnerId: $partnerId) {
194
- id
195
- name
196
- address
197
- gender
198
- identityNumber
199
- birthDate
200
- email
201
- phone
202
- createdStamp
203
- createdBy
204
- memberLevel
205
- }
206
- }
189
+ exports.GET_CONTACT_INFOS_BY_COMPANY_ID = (0, graphql_tag_1.gql) `
190
+ query GetContactInfosByCompanyId($companyId: String!, $partnerId: String!) {
191
+ getContactInfosByCompanyId(companyId: $companyId, partnerId: $partnerId) {
192
+ id
193
+ name
194
+ address
195
+ gender
196
+ identityNumber
197
+ birthDate
198
+ email
199
+ phone
200
+ createdStamp
201
+ createdBy
202
+ memberLevel
203
+ }
204
+ }
207
205
  `;
208
- exports.GET_PROVINCES = (0, graphql_tag_1.gql) `
209
- query GetProvinces {
210
- getProvinces {
211
- geoId
212
- geoTypeId
213
- geoName
214
- geoNameLocal
215
- geoCode
216
- geoSecCode
217
- abbreviation
218
- vnPostId
219
- jtExpressId
220
- vnPostRegion
221
- inetId
222
- lastUpdatedStamp
223
- lastUpdatedTxStamp
224
- createdStamp
225
- createdTxStamp
226
- }
227
- }
206
+ exports.GET_PROVINCES = (0, graphql_tag_1.gql) `
207
+ query GetProvinces {
208
+ getProvinces {
209
+ geoId
210
+ geoTypeId
211
+ geoName
212
+ geoNameLocal
213
+ geoCode
214
+ geoSecCode
215
+ abbreviation
216
+ vnPostId
217
+ jtExpressId
218
+ vnPostRegion
219
+ inetId
220
+ lastUpdatedStamp
221
+ lastUpdatedTxStamp
222
+ createdStamp
223
+ createdTxStamp
224
+ }
225
+ }
228
226
  `;
229
- exports.GET_DISTRICTS = (0, graphql_tag_1.gql) `
230
- query GetDistricts($provinceId: String!) {
231
- getDistricts(provinceId: $provinceId) {
232
- geoId
233
- geoTypeId
234
- geoName
235
- geoNameLocal
236
- geoCode
237
- geoSecCode
238
- abbreviation
239
- vnPostId
240
- jtExpressId
241
- vnPostRegion
242
- inetId
243
- lastUpdatedStamp
244
- lastUpdatedTxStamp
245
- createdStamp
246
- createdTxStamp
247
- }
248
- }
227
+ exports.GET_DISTRICTS = (0, graphql_tag_1.gql) `
228
+ query GetDistricts($provinceId: String!) {
229
+ getDistricts(provinceId: $provinceId) {
230
+ geoId
231
+ geoTypeId
232
+ geoName
233
+ geoNameLocal
234
+ geoCode
235
+ geoSecCode
236
+ abbreviation
237
+ vnPostId
238
+ jtExpressId
239
+ vnPostRegion
240
+ inetId
241
+ lastUpdatedStamp
242
+ lastUpdatedTxStamp
243
+ createdStamp
244
+ createdTxStamp
245
+ }
246
+ }
249
247
  `;
250
- exports.GET_WARDS = (0, graphql_tag_1.gql) `
251
- query GetWards($districtId: String!) {
252
- getWards(districtId: $districtId) {
253
- geoId
254
- geoTypeId
255
- geoName
256
- geoNameLocal
257
- geoCode
258
- geoSecCode
259
- abbreviation
260
- vnPostId
261
- jtExpressId
262
- vnPostRegion
263
- inetId
264
- lastUpdatedStamp
265
- lastUpdatedTxStamp
266
- createdStamp
267
- createdTxStamp
268
- }
269
- }
248
+ exports.GET_WARDS = (0, graphql_tag_1.gql) `
249
+ query GetWards($districtId: String!) {
250
+ getWards(districtId: $districtId) {
251
+ geoId
252
+ geoTypeId
253
+ geoName
254
+ geoNameLocal
255
+ geoCode
256
+ geoSecCode
257
+ abbreviation
258
+ vnPostId
259
+ jtExpressId
260
+ vnPostRegion
261
+ inetId
262
+ lastUpdatedStamp
263
+ lastUpdatedTxStamp
264
+ createdStamp
265
+ createdTxStamp
266
+ }
267
+ }
270
268
  `;
271
- exports.GET_PERSON_BY_PARTY_ID = (0, graphql_tag_1.gql) `
272
- query GetPersonByPartyId($partyId: String!) {
273
- getPersonByPartyId(partyId: $partyId) {
274
- status
275
- partyId
276
- fullName
277
- phone
278
- address
279
- gender
280
- birthDate
281
- email
282
- personalTitle
283
- imageUrl
284
- identityNumber
285
- id
286
- addressModel {
287
- id
288
- addressInfo
289
- provinceGeoId
290
- districtGeoId
291
- wardGeoId
292
- provinceName
293
- districtName
294
- wardName
295
- isDefault
296
- }
297
- }
298
- }
269
+ exports.GET_PERSON_BY_PARTY_ID = (0, graphql_tag_1.gql) `
270
+ query GetPersonByPartyId($partyId: String!) {
271
+ getPersonByPartyId(partyId: $partyId) {
272
+ status
273
+ partyId
274
+ fullName
275
+ phone
276
+ address
277
+ gender
278
+ birthDate
279
+ email
280
+ personalTitle
281
+ imageUrl
282
+ identityNumber
283
+ id
284
+ addressModel {
285
+ id
286
+ addressInfo
287
+ provinceGeoId
288
+ districtGeoId
289
+ wardGeoId
290
+ provinceName
291
+ districtName
292
+ wardName
293
+ isDefault
294
+ }
295
+ }
296
+ }
299
297
  `;
@@ -24,17 +24,4 @@ export declare class AuthService extends Service {
24
24
  */
25
25
  register(registerRequest: RegisterRequest): Promise<void>;
26
26
  getUserDetail(accessToken: string): Promise<any>;
27
- /**
28
- * Retrieves user login information using the provided access token.
29
- *
30
- * @param {string} accessToken - The access token used to authenticate the request.
31
- * @returns {Promise<any>} A promise that resolves to the user login information.
32
- * @throws Will throw an error if the GraphQL query fails.
33
- */
34
- getUserLoginByToken(accessToken: string): Promise<any>;
35
- updateProfile(userLoginId: string, name: string, phone: string, email: string): Promise<any>;
36
- getUserLoginByUserLoginId(userLoginId: string): Promise<any>;
37
- checkUsernameExisted(username: string): Promise<any>;
38
- linkingUserLoginAndUserDetail(userLoginId: string, partyId: string): Promise<any>;
39
- createUserDetail(userLoginId: string): Promise<any>;
40
27
  }