@longvansoftware/storefront-js-client 4.3.7-beta.1 → 4.3.7

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 (38) hide show
  1. package/README.md +221 -221
  2. package/dist/src/graphql/auth/mutations.js +309 -309
  3. package/dist/src/graphql/auth/queries.js +209 -209
  4. package/dist/src/graphql/campaign/mutations.js +26 -26
  5. package/dist/src/graphql/campaign/queries.js +457 -457
  6. package/dist/src/graphql/cashbook/queries.js +93 -93
  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/cloudCloud/mutations.js +12 -12
  10. package/dist/src/graphql/cloudCloud/queries.js +117 -117
  11. package/dist/src/graphql/cloudService/queries.d.ts +1 -0
  12. package/dist/src/graphql/cloudService/queries.js +71 -0
  13. package/dist/src/graphql/computing/mutations.js +96 -96
  14. package/dist/src/graphql/computing/queries.js +41 -41
  15. package/dist/src/graphql/crm/mutations.js +1064 -1064
  16. package/dist/src/graphql/crm/queries.js +920 -920
  17. package/dist/src/graphql/orderCloud/mutations.js +7 -7
  18. package/dist/src/graphql/orderCloud/queries.js +7 -7
  19. package/dist/src/graphql/payment/mutations.js +194 -194
  20. package/dist/src/graphql/payment/queries.js +117 -117
  21. package/dist/src/graphql/paymentV2/mutations.js +115 -115
  22. package/dist/src/graphql/paymentV2/queries.js +263 -263
  23. package/dist/src/graphql/product/mutations.js +652 -652
  24. package/dist/src/graphql/product/queries.js +990 -989
  25. package/dist/src/graphql/service/mutations.js +304 -304
  26. package/dist/src/graphql/service/queries.js +131 -131
  27. package/dist/src/graphql/store/mutations.js +24 -24
  28. package/dist/src/graphql/store/queries.js +24 -24
  29. package/dist/src/graphql/user/mutations.js +201 -201
  30. package/dist/src/graphql/user/queries.js +339 -339
  31. package/dist/src/lib/cloudService/index.d.ts +5 -0
  32. package/dist/src/lib/cloudService/index.js +35 -0
  33. package/dist/src/lib/order/index.d.ts +0 -9
  34. package/dist/src/lib/order/index.js +0 -21
  35. package/dist/src/lib/serviceSDK.js +14 -14
  36. package/package.json +43 -43
  37. package/dist/index.d.ts +0 -1698
  38. package/dist/index.js +0 -13673
@@ -2,359 +2,359 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GET_RELATED_PARTIES = exports.GET_VAT_INFO_BY_OWNER_PARTYID = exports.GET_PERSON_BY_PARTY_ID = exports.GET_WARDS = exports.GET_DISTRICTS = exports.GET_WARDS_BY_PROVINCEID = 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
- sourceCustomer
66
- }
67
- }
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
+ sourceCustomer
66
+ }
67
+ }
68
68
  `;
69
- exports.SEARCH_CUSTOMER = (0, graphql_tag_1.gql) `
70
- query SearchCustomers(
71
- $keyword: String
72
- $type: String
73
- $startCreatedDate: DateCustom
74
- $endCreatedDate: DateCustom
75
- $memberLevel: String
76
- $partnerId: String!
77
- $currentPage: Int!
78
- $pageSize: Int!
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
- ) {
90
- totalPages
91
- totalElements
92
- currentPage
93
- content {
94
- id
95
- name
96
- address
97
- gender
98
- identityNumber
99
- birthDate
100
- email
101
- phone
102
- createdStamp
103
- createdBy
104
- memberLevel
105
- }
106
- }
107
- }
69
+ exports.SEARCH_CUSTOMER = (0, graphql_tag_1.gql) `
70
+ query SearchCustomers(
71
+ $keyword: String
72
+ $type: String
73
+ $startCreatedDate: DateCustom
74
+ $endCreatedDate: DateCustom
75
+ $memberLevel: String
76
+ $partnerId: String!
77
+ $currentPage: Int!
78
+ $pageSize: Int!
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
+ ) {
90
+ totalPages
91
+ totalElements
92
+ currentPage
93
+ content {
94
+ id
95
+ name
96
+ address
97
+ gender
98
+ identityNumber
99
+ birthDate
100
+ email
101
+ phone
102
+ createdStamp
103
+ createdBy
104
+ memberLevel
105
+ }
106
+ }
107
+ }
108
108
  `;
109
- exports.SEARCH_EMPLOYEES = (0, graphql_tag_1.gql) `
110
- query SearchEmployees(
111
- $keyword: String
112
- $positionShortName: String
113
- $partnerId: String
114
- ) {
115
- searchEmployees(
116
- keyword: $keyword
117
- positionShortName: $positionShortName
118
- partnerId: $partnerId
119
- ) {
120
- id
121
- name
122
- address
123
- gender
124
- identityNumber
125
- birthDate
126
- email
127
- phone
128
- createdStamp
129
- createdBy
130
- memberLevel
131
- }
132
- }
109
+ exports.SEARCH_EMPLOYEES = (0, graphql_tag_1.gql) `
110
+ query SearchEmployees(
111
+ $keyword: String
112
+ $positionShortName: String
113
+ $partnerId: String
114
+ ) {
115
+ searchEmployees(
116
+ keyword: $keyword
117
+ positionShortName: $positionShortName
118
+ partnerId: $partnerId
119
+ ) {
120
+ id
121
+ name
122
+ address
123
+ gender
124
+ identityNumber
125
+ birthDate
126
+ email
127
+ phone
128
+ createdStamp
129
+ createdBy
130
+ memberLevel
131
+ }
132
+ }
133
133
  `;
134
- exports.GET_POSTIONS_BY_EMPLOYEES_ID = (0, graphql_tag_1.gql) `
135
- query GetPositionsByEmployeeId($employeeId: String!, $partnerId: String!) {
136
- getPositionsByEmployeeId(employeeId: $employeeId, partnerId: $partnerId)
137
- }
134
+ exports.GET_POSTIONS_BY_EMPLOYEES_ID = (0, graphql_tag_1.gql) `
135
+ query GetPositionsByEmployeeId($employeeId: String!, $partnerId: String!) {
136
+ getPositionsByEmployeeId(employeeId: $employeeId, partnerId: $partnerId)
137
+ }
138
138
  `;
139
- exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = (0, graphql_tag_1.gql) `
140
- query GetStoreChannelIdsByEmployeeId(
141
- $employeeId: String!
142
- $partnerId: String!
143
- ) {
144
- getStoreChannelIdsByEmployeeId(
145
- employeeId: $employeeId
146
- partnerId: $partnerId
147
- )
148
- }
139
+ exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = (0, graphql_tag_1.gql) `
140
+ query GetStoreChannelIdsByEmployeeId(
141
+ $employeeId: String!
142
+ $partnerId: String!
143
+ ) {
144
+ getStoreChannelIdsByEmployeeId(
145
+ employeeId: $employeeId
146
+ partnerId: $partnerId
147
+ )
148
+ }
149
149
  `;
150
- exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = (0, graphql_tag_1.gql) `
151
- query GetEmployeesByStoreChannelId(
152
- $storeChannelId: String!
153
- $partnerId: String!
154
- ) {
155
- getEmployeesByStoreChannelId(
156
- storeChannelId: $storeChannelId
157
- partnerId: $partnerId
158
- ) {
159
- id
160
- name
161
- address
162
- gender
163
- identityNumber
164
- birthDate
165
- email
166
- phone
167
- createdStamp
168
- createdBy
169
- memberLevel
170
- }
171
- }
150
+ exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = (0, graphql_tag_1.gql) `
151
+ query GetEmployeesByStoreChannelId(
152
+ $storeChannelId: String!
153
+ $partnerId: String!
154
+ ) {
155
+ getEmployeesByStoreChannelId(
156
+ storeChannelId: $storeChannelId
157
+ partnerId: $partnerId
158
+ ) {
159
+ id
160
+ name
161
+ address
162
+ gender
163
+ identityNumber
164
+ birthDate
165
+ email
166
+ phone
167
+ createdStamp
168
+ createdBy
169
+ memberLevel
170
+ }
171
+ }
172
172
  `;
173
- exports.GET_COMPANY_BY_CONTACT_INFO_ID = (0, graphql_tag_1.gql) `
174
- query GetCompanyByContactInfoId($contactId: String!, $partnerId: String!) {
175
- getCompanyByContactInfoId(contactId: $contactId, partnerId: $partnerId) {
176
- id
177
- name
178
- address
179
- gender
180
- identityNumber
181
- birthDate
182
- email
183
- phone
184
- createdStamp
185
- createdBy
186
- memberLevel
187
- }
188
- }
173
+ exports.GET_COMPANY_BY_CONTACT_INFO_ID = (0, graphql_tag_1.gql) `
174
+ query GetCompanyByContactInfoId($contactId: String!, $partnerId: String!) {
175
+ getCompanyByContactInfoId(contactId: $contactId, partnerId: $partnerId) {
176
+ id
177
+ name
178
+ address
179
+ gender
180
+ identityNumber
181
+ birthDate
182
+ email
183
+ phone
184
+ createdStamp
185
+ createdBy
186
+ memberLevel
187
+ }
188
+ }
189
189
  `;
190
- exports.GET_CONTACT_INFOS_BY_COMPANY_ID = (0, graphql_tag_1.gql) `
191
- query GetContactInfosByCompanyId($companyId: String!, $partnerId: String!) {
192
- getContactInfosByCompanyId(companyId: $companyId, partnerId: $partnerId) {
193
- id
194
- name
195
- address
196
- gender
197
- identityNumber
198
- birthDate
199
- email
200
- phone
201
- createdStamp
202
- createdBy
203
- memberLevel
204
- }
205
- }
190
+ exports.GET_CONTACT_INFOS_BY_COMPANY_ID = (0, graphql_tag_1.gql) `
191
+ query GetContactInfosByCompanyId($companyId: String!, $partnerId: String!) {
192
+ getContactInfosByCompanyId(companyId: $companyId, partnerId: $partnerId) {
193
+ id
194
+ name
195
+ address
196
+ gender
197
+ identityNumber
198
+ birthDate
199
+ email
200
+ phone
201
+ createdStamp
202
+ createdBy
203
+ memberLevel
204
+ }
205
+ }
206
206
  `;
207
- exports.GET_PROVINCES = (0, graphql_tag_1.gql) `
208
- query GetProvinces($version: Int) {
209
- getProvinces(version: $version) {
210
- geoId
211
- geoTypeId
212
- geoName
213
- geoNameLocal
214
- geoCode
215
- geoSecCode
216
- abbreviation
217
- vnPostId
218
- jtExpressId
219
- vnPostRegion
220
- inetId
221
- lastUpdatedStamp
222
- lastUpdatedTxStamp
223
- createdStamp
224
- createdTxStamp
225
- }
226
- }
207
+ exports.GET_PROVINCES = (0, graphql_tag_1.gql) `
208
+ query GetProvinces($version: Int) {
209
+ getProvinces(version: $version) {
210
+ geoId
211
+ geoTypeId
212
+ geoName
213
+ geoNameLocal
214
+ geoCode
215
+ geoSecCode
216
+ abbreviation
217
+ vnPostId
218
+ jtExpressId
219
+ vnPostRegion
220
+ inetId
221
+ lastUpdatedStamp
222
+ lastUpdatedTxStamp
223
+ createdStamp
224
+ createdTxStamp
225
+ }
226
+ }
227
227
  `;
228
- exports.GET_WARDS_BY_PROVINCEID = (0, graphql_tag_1.gql) `
229
- query getWardsByProvinceId($provinceId: String!) {
230
- getWardsByProvinceId(provinceId: $provinceId) {
231
- geoId
232
- geoTypeId
233
- geoName
234
- geoNameLocal
235
- geoCode
236
- geoSecCode
237
- abbreviation
238
- vnPostId
239
- vnnicId
240
- jtExpressId
241
- vnPostRegion
242
- inetId
243
- lastUpdatedStamp
244
- lastUpdatedTxStamp
245
- createdStamp
246
- createdTxStamp
247
- version
248
- }
249
- }
228
+ exports.GET_WARDS_BY_PROVINCEID = (0, graphql_tag_1.gql) `
229
+ query getWardsByProvinceId($provinceId: String!) {
230
+ getWardsByProvinceId(provinceId: $provinceId) {
231
+ geoId
232
+ geoTypeId
233
+ geoName
234
+ geoNameLocal
235
+ geoCode
236
+ geoSecCode
237
+ abbreviation
238
+ vnPostId
239
+ vnnicId
240
+ jtExpressId
241
+ vnPostRegion
242
+ inetId
243
+ lastUpdatedStamp
244
+ lastUpdatedTxStamp
245
+ createdStamp
246
+ createdTxStamp
247
+ version
248
+ }
249
+ }
250
250
  `;
251
- exports.GET_DISTRICTS = (0, graphql_tag_1.gql) `
252
- query GetDistricts($provinceId: String!) {
253
- getDistricts(provinceId: $provinceId) {
254
- geoId
255
- geoTypeId
256
- geoName
257
- geoNameLocal
258
- geoCode
259
- geoSecCode
260
- abbreviation
261
- vnPostId
262
- jtExpressId
263
- vnPostRegion
264
- inetId
265
- lastUpdatedStamp
266
- lastUpdatedTxStamp
267
- createdStamp
268
- createdTxStamp
269
- }
270
- }
251
+ exports.GET_DISTRICTS = (0, graphql_tag_1.gql) `
252
+ query GetDistricts($provinceId: String!) {
253
+ getDistricts(provinceId: $provinceId) {
254
+ geoId
255
+ geoTypeId
256
+ geoName
257
+ geoNameLocal
258
+ geoCode
259
+ geoSecCode
260
+ abbreviation
261
+ vnPostId
262
+ jtExpressId
263
+ vnPostRegion
264
+ inetId
265
+ lastUpdatedStamp
266
+ lastUpdatedTxStamp
267
+ createdStamp
268
+ createdTxStamp
269
+ }
270
+ }
271
271
  `;
272
- exports.GET_WARDS = (0, graphql_tag_1.gql) `
273
- query GetWards($districtId: String!) {
274
- getWards(districtId: $districtId) {
275
- geoId
276
- geoTypeId
277
- geoName
278
- geoNameLocal
279
- geoCode
280
- geoSecCode
281
- abbreviation
282
- vnPostId
283
- jtExpressId
284
- vnPostRegion
285
- inetId
286
- lastUpdatedStamp
287
- lastUpdatedTxStamp
288
- createdStamp
289
- createdTxStamp
290
- }
291
- }
272
+ exports.GET_WARDS = (0, graphql_tag_1.gql) `
273
+ query GetWards($districtId: String!) {
274
+ getWards(districtId: $districtId) {
275
+ geoId
276
+ geoTypeId
277
+ geoName
278
+ geoNameLocal
279
+ geoCode
280
+ geoSecCode
281
+ abbreviation
282
+ vnPostId
283
+ jtExpressId
284
+ vnPostRegion
285
+ inetId
286
+ lastUpdatedStamp
287
+ lastUpdatedTxStamp
288
+ createdStamp
289
+ createdTxStamp
290
+ }
291
+ }
292
292
  `;
293
- exports.GET_PERSON_BY_PARTY_ID = (0, graphql_tag_1.gql) `
294
- query GetPersonByPartyId($partyId: String!) {
295
- getPersonByPartyId(partyId: $partyId) {
296
- status
297
- partyId
298
- fullName
299
- phone
300
- address
301
- gender
302
- birthDate
303
- email
304
- personalTitle
305
- imageUrl
306
- identityNumber
307
- id
308
- addressModel {
309
- id
310
- addressInfo
311
- provinceGeoId
312
- districtGeoId
313
- wardGeoId
314
- provinceName
315
- districtName
316
- wardName
317
- isDefault
318
- }
319
- }
320
- }
293
+ exports.GET_PERSON_BY_PARTY_ID = (0, graphql_tag_1.gql) `
294
+ query GetPersonByPartyId($partyId: String!) {
295
+ getPersonByPartyId(partyId: $partyId) {
296
+ status
297
+ partyId
298
+ fullName
299
+ phone
300
+ address
301
+ gender
302
+ birthDate
303
+ email
304
+ personalTitle
305
+ imageUrl
306
+ identityNumber
307
+ id
308
+ addressModel {
309
+ id
310
+ addressInfo
311
+ provinceGeoId
312
+ districtGeoId
313
+ wardGeoId
314
+ provinceName
315
+ districtName
316
+ wardName
317
+ isDefault
318
+ }
319
+ }
320
+ }
321
321
  `;
322
- exports.GET_VAT_INFO_BY_OWNER_PARTYID = (0, graphql_tag_1.gql) `
323
- query GetVatInfoByOwnerPartyId($ownerPartyId: String!) {
324
- getVatInfoByOwnerPartyId(ownerPartyId: $ownerPartyId) {
325
- id
326
- company
327
- taxCode
328
- address
329
- invoiceReceiveEmail1
330
- invoiceReceiveEmail2
331
- ownerPartyId
332
- createdStamp
333
- updatedStamp
334
- updatedBy
335
- createdBy
336
- }
337
- }
322
+ exports.GET_VAT_INFO_BY_OWNER_PARTYID = (0, graphql_tag_1.gql) `
323
+ query GetVatInfoByOwnerPartyId($ownerPartyId: String!) {
324
+ getVatInfoByOwnerPartyId(ownerPartyId: $ownerPartyId) {
325
+ id
326
+ company
327
+ taxCode
328
+ address
329
+ invoiceReceiveEmail1
330
+ invoiceReceiveEmail2
331
+ ownerPartyId
332
+ createdStamp
333
+ updatedStamp
334
+ updatedBy
335
+ createdBy
336
+ }
337
+ }
338
338
  `;
339
- exports.GET_RELATED_PARTIES = (0, graphql_tag_1.gql) `
340
- query GetRelatedParties($partyId: String, $orgId: String) {
341
- getRelatedParties(partyId: $partyId, orgId: $orgId) {
342
- id
343
- name
344
- address
345
- gender
346
- identityNumber
347
- birthDate
348
- email
349
- phone
350
- createdStamp
351
- createdBy
352
- memberLevel
353
- imageUrl
354
- customAttribute
355
- relationshipName
356
- source
357
- sourceCustomer
358
- }
359
- }
339
+ exports.GET_RELATED_PARTIES = (0, graphql_tag_1.gql) `
340
+ query GetRelatedParties($partyId: String, $orgId: String) {
341
+ getRelatedParties(partyId: $partyId, orgId: $orgId) {
342
+ id
343
+ name
344
+ address
345
+ gender
346
+ identityNumber
347
+ birthDate
348
+ email
349
+ phone
350
+ createdStamp
351
+ createdBy
352
+ memberLevel
353
+ imageUrl
354
+ customAttribute
355
+ relationshipName
356
+ source
357
+ sourceCustomer
358
+ }
359
+ }
360
360
  `;