@longvansoftware/storefront-js-client 2.9.5 → 2.9.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 (33) hide show
  1. package/README.md +185 -185
  2. package/dist/config/config.d.ts +2 -0
  3. package/dist/config/config.js +2 -0
  4. package/dist/src/graphql/auth/mutations.js +130 -130
  5. package/dist/src/graphql/auth/queries.js +55 -55
  6. package/dist/src/graphql/campaign/mutations.js +26 -26
  7. package/dist/src/graphql/campaign/queries.js +375 -375
  8. package/dist/src/graphql/cashbook/queries.d.ts +2 -0
  9. package/dist/src/graphql/cashbook/queries.js +99 -0
  10. package/dist/src/graphql/cloud/mutations.js +103 -103
  11. package/dist/src/graphql/cloud/queries.js +112 -112
  12. package/dist/src/graphql/computing/mutations.js +96 -96
  13. package/dist/src/graphql/computing/queries.js +41 -41
  14. package/dist/src/graphql/crm/mutations.js +813 -813
  15. package/dist/src/graphql/crm/queries.js +661 -661
  16. package/dist/src/graphql/payment/mutations.js +146 -146
  17. package/dist/src/graphql/payment/queries.js +116 -116
  18. package/dist/src/graphql/paymentV2/mutations.js +47 -47
  19. package/dist/src/graphql/paymentV2/queries.js +176 -176
  20. package/dist/src/graphql/product/mutations.js +94 -94
  21. package/dist/src/graphql/product/queries.js +472 -468
  22. package/dist/src/graphql/service/mutations.js +304 -304
  23. package/dist/src/graphql/service/queries.js +131 -131
  24. package/dist/src/graphql/user/mutations.js +142 -142
  25. package/dist/src/graphql/user/queries.js +298 -298
  26. package/dist/src/lib/SDK.d.ts +3 -0
  27. package/dist/src/lib/SDK.js +5 -0
  28. package/dist/src/lib/cashbook/index.d.ts +6 -0
  29. package/dist/src/lib/cashbook/index.js +56 -0
  30. package/dist/src/lib/serviceSDK.js +12 -12
  31. package/dist/src/lib/shareZalo/index.d.ts +5 -0
  32. package/dist/src/lib/shareZalo/index.js +32 -0
  33. package/package.json +43 -44
@@ -2,67 +2,67 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GET_ACTION_ATTRIBUTE = exports.GET_SERVICE_TICKETS = exports.GET_SERVICE_ACTION = exports.GET_SERVICE_BY_OWNER_ID = exports.GET_SERVICE_BY_TYPE = exports.GET_SERVICE_BY_ID = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.GET_SERVICE_BY_ID = (0, graphql_tag_1.gql) `
6
- query GetServiceById($partnerId: String!, $serviceId: String!) {
7
- getServiceById(partnerId: $partnerId, serviceId: $serviceId) {
8
- createdStamp
9
- updatedStamp
10
- updatedBy
11
- createdBy
12
- partnerId
13
- serviceName
14
- serviceId
15
- type
16
- typeName
17
- orderId
18
- orderLineItemId
19
- status
20
- ownerId
21
- ownerName
22
- ownerEmail
23
- ownerPhone
24
- saleName
25
- salePartyId
26
- startDate
27
- endDate
28
- location
29
- description
30
- serviceType
31
- actionResult
32
- attrs
33
- }
34
- }
5
+ exports.GET_SERVICE_BY_ID = (0, graphql_tag_1.gql) `
6
+ query GetServiceById($partnerId: String!, $serviceId: String!) {
7
+ getServiceById(partnerId: $partnerId, serviceId: $serviceId) {
8
+ createdStamp
9
+ updatedStamp
10
+ updatedBy
11
+ createdBy
12
+ partnerId
13
+ serviceName
14
+ serviceId
15
+ type
16
+ typeName
17
+ orderId
18
+ orderLineItemId
19
+ status
20
+ ownerId
21
+ ownerName
22
+ ownerEmail
23
+ ownerPhone
24
+ saleName
25
+ salePartyId
26
+ startDate
27
+ endDate
28
+ location
29
+ description
30
+ serviceType
31
+ actionResult
32
+ attrs
33
+ }
34
+ }
35
35
  `;
36
36
  // GET_SERVICE_BY_TYPE
37
- exports.GET_SERVICE_BY_TYPE = (0, graphql_tag_1.gql) `
38
- query GetServiceByType($partnerId: String!, $type: String!) {
39
- getServiceByType(partnerId: $partnerId, type: $type) {
40
- createdStamp
41
- updatedStamp
42
- updatedBy
43
- createdBy
44
- partnerId
45
- serviceName
46
- serviceId
47
- type
48
- typeName
49
- orderId
50
- status
51
- ownerId
52
- ownerName
53
- ownerEmail
54
- ownerPhone
55
- saleName
56
- salePartyId
57
- startDate
58
- endDate
59
- version
60
- location
61
- description
62
- serviceType
63
- actionResult
64
- }
65
- }
37
+ exports.GET_SERVICE_BY_TYPE = (0, graphql_tag_1.gql) `
38
+ query GetServiceByType($partnerId: String!, $type: String!) {
39
+ getServiceByType(partnerId: $partnerId, type: $type) {
40
+ createdStamp
41
+ updatedStamp
42
+ updatedBy
43
+ createdBy
44
+ partnerId
45
+ serviceName
46
+ serviceId
47
+ type
48
+ typeName
49
+ orderId
50
+ status
51
+ ownerId
52
+ ownerName
53
+ ownerEmail
54
+ ownerPhone
55
+ saleName
56
+ salePartyId
57
+ startDate
58
+ endDate
59
+ version
60
+ location
61
+ description
62
+ serviceType
63
+ actionResult
64
+ }
65
+ }
66
66
  `;
67
67
  // query GetServiceByOwnerId {
68
68
  // getServiceByOwnerId(partnerId: "LONGVAN", ownerId: "20.52731") {
@@ -99,79 +99,79 @@ exports.GET_SERVICE_BY_TYPE = (0, graphql_tag_1.gql) `
99
99
  // attrs
100
100
  // }
101
101
  // }
102
- exports.GET_SERVICE_BY_OWNER_ID = (0, graphql_tag_1.gql) `
103
- query GetServiceByOwnerId($partnerId: String!, $ownerId: String!) {
104
- getServiceByOwnerId(partnerId: $partnerId, ownerId: $ownerId) {
105
- createdStamp
106
- updatedStamp
107
- updatedBy
108
- createdBy
109
- partnerId
110
- serviceName
111
- serviceId
112
- type
113
- typeName
114
- orderId
115
- orderLineItemId
116
- status
117
- ownerId
118
- ownerName
119
- ownerEmail
120
- ownerPhone
121
- saleName
122
- salePartyId
123
- startDate
124
- endDate
125
- location
126
- description
127
- serviceType
128
- actionResult
129
- attrs
130
- }
131
- }
102
+ exports.GET_SERVICE_BY_OWNER_ID = (0, graphql_tag_1.gql) `
103
+ query GetServiceByOwnerId($partnerId: String!, $ownerId: String!) {
104
+ getServiceByOwnerId(partnerId: $partnerId, ownerId: $ownerId) {
105
+ createdStamp
106
+ updatedStamp
107
+ updatedBy
108
+ createdBy
109
+ partnerId
110
+ serviceName
111
+ serviceId
112
+ type
113
+ typeName
114
+ orderId
115
+ orderLineItemId
116
+ status
117
+ ownerId
118
+ ownerName
119
+ ownerEmail
120
+ ownerPhone
121
+ saleName
122
+ salePartyId
123
+ startDate
124
+ endDate
125
+ location
126
+ description
127
+ serviceType
128
+ actionResult
129
+ attrs
130
+ }
131
+ }
132
132
  `;
133
- exports.GET_SERVICE_ACTION = (0, graphql_tag_1.gql) `
134
- query GetServiceActions(
135
- $serviceId: String!
136
- $actionType: String
137
- $updatedBy: String
138
- ) {
139
- getServiceActions(
140
- serviceId: $serviceId
141
- actionType: $actionType
142
- updatedBy: $updatedBy
143
- ) {
144
- id
145
- serviceId
146
- actionType
147
- description
148
- status
149
- processStatus
150
- createdBy
151
- createdStamp
152
- updatedBy
153
- updatedStamp
154
- attributes
155
- }
156
- }
133
+ exports.GET_SERVICE_ACTION = (0, graphql_tag_1.gql) `
134
+ query GetServiceActions(
135
+ $serviceId: String!
136
+ $actionType: String
137
+ $updatedBy: String
138
+ ) {
139
+ getServiceActions(
140
+ serviceId: $serviceId
141
+ actionType: $actionType
142
+ updatedBy: $updatedBy
143
+ ) {
144
+ id
145
+ serviceId
146
+ actionType
147
+ description
148
+ status
149
+ processStatus
150
+ createdBy
151
+ createdStamp
152
+ updatedBy
153
+ updatedStamp
154
+ attributes
155
+ }
156
+ }
157
157
  `;
158
- exports.GET_SERVICE_TICKETS = (0, graphql_tag_1.gql) `
159
- query GetServiceTickets($serviceId: String!) {
160
- getServiceTickets(serviceId: $serviceId) {
161
- id
162
- serviceId
163
- description
164
- status
165
- processStatus
166
- createdBy
167
- createdStamp
168
- updatedBy
169
- updatedStamp
170
- }
171
- }
158
+ exports.GET_SERVICE_TICKETS = (0, graphql_tag_1.gql) `
159
+ query GetServiceTickets($serviceId: String!) {
160
+ getServiceTickets(serviceId: $serviceId) {
161
+ id
162
+ serviceId
163
+ description
164
+ status
165
+ processStatus
166
+ createdBy
167
+ createdStamp
168
+ updatedBy
169
+ updatedStamp
170
+ }
171
+ }
172
172
  `;
173
- exports.GET_ACTION_ATTRIBUTE = (0, graphql_tag_1.gql) `
174
- query GetActionAttribute($actionId: String!, $attributeName: String!) {
175
- getActionAttribute(actionId: $actionId, attributeName: $attributeName)
176
- }
173
+ exports.GET_ACTION_ATTRIBUTE = (0, graphql_tag_1.gql) `
174
+ query GetActionAttribute($actionId: String!, $attributeName: String!) {
175
+ getActionAttribute(actionId: $actionId, attributeName: $attributeName)
176
+ }
177
177
  `;
@@ -2,150 +2,150 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CREATE_VAT_INFO = exports.CREATE_CUSTOMER_V2 = exports.UPDATE_CUSTOMER_V2 = exports.UPDATE_COMPANY_INFOR = exports.CREATE_COMPANY = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.CREATE_COMPANY = (0, graphql_tag_1.gql) `
6
- mutation CreateCompany(
7
- $createCompanyRequest: CreateCompanyRequest!
8
- $createTaxCodeRequest: CreateTaxCodeRequest
9
- $orgId: String!
10
- $createdBy: String!
11
- ) {
12
- createCompany(
13
- createCompanyRequest: $createCompanyRequest
14
- createTaxCodeRequest: $createTaxCodeRequest
15
- orgId: $orgId
16
- createdBy: $createdBy
17
- ) {
18
- id
19
- name
20
- address
21
- gender
22
- identityNumber
23
- birthDate
24
- email
25
- phone
26
- createdStamp
27
- createdBy
28
- memberLevel
29
- }
30
- }
5
+ exports.CREATE_COMPANY = (0, graphql_tag_1.gql) `
6
+ mutation CreateCompany(
7
+ $createCompanyRequest: CreateCompanyRequest!
8
+ $createTaxCodeRequest: CreateTaxCodeRequest
9
+ $orgId: String!
10
+ $createdBy: String!
11
+ ) {
12
+ createCompany(
13
+ createCompanyRequest: $createCompanyRequest
14
+ createTaxCodeRequest: $createTaxCodeRequest
15
+ orgId: $orgId
16
+ createdBy: $createdBy
17
+ ) {
18
+ id
19
+ name
20
+ address
21
+ gender
22
+ identityNumber
23
+ birthDate
24
+ email
25
+ phone
26
+ createdStamp
27
+ createdBy
28
+ memberLevel
29
+ }
30
+ }
31
31
  `;
32
- exports.UPDATE_COMPANY_INFOR = (0, graphql_tag_1.gql) `
33
- mutation UpdateCompanyInfo(
34
- $id: String!
35
- $fieldName: String!
36
- $valueUpdate: String!
37
- $orgId: String!
38
- $updatedBy: String!
39
- ) {
40
- updateCompanyInfo(
41
- id: $id
42
- fieldName: $fieldName
43
- valueUpdate: $valueUpdate
44
- orgId: $orgId
45
- updatedBy: $updatedBy
46
- ) {
47
- id
48
- name
49
- address
50
- gender
51
- identityNumber
52
- birthDate
53
- email
54
- phone
55
- createdStamp
56
- createdBy
57
- memberLevel
58
- }
59
- }
32
+ exports.UPDATE_COMPANY_INFOR = (0, graphql_tag_1.gql) `
33
+ mutation UpdateCompanyInfo(
34
+ $id: String!
35
+ $fieldName: String!
36
+ $valueUpdate: String!
37
+ $orgId: String!
38
+ $updatedBy: String!
39
+ ) {
40
+ updateCompanyInfo(
41
+ id: $id
42
+ fieldName: $fieldName
43
+ valueUpdate: $valueUpdate
44
+ orgId: $orgId
45
+ updatedBy: $updatedBy
46
+ ) {
47
+ id
48
+ name
49
+ address
50
+ gender
51
+ identityNumber
52
+ birthDate
53
+ email
54
+ phone
55
+ createdStamp
56
+ createdBy
57
+ memberLevel
58
+ }
59
+ }
60
60
  `;
61
- exports.UPDATE_CUSTOMER_V2 = (0, graphql_tag_1.gql) `
62
- mutation UpdateCustomerV2(
63
- $id: String!
64
- $updateCustomerRequest: UpdateCustomerRequest!
65
- $tenantId: String!
66
- $updatedBy: String!
67
- ) {
68
- updateCustomerV2(
69
- id: $id
70
- updateCustomerRequest: $updateCustomerRequest
71
- tenantId: $tenantId
72
- updatedBy: $updatedBy
73
- ) {
74
- id
75
- name
76
- address
77
- gender
78
- identityNumber
79
- birthDate
80
- email
81
- phone
82
- createdStamp
83
- createdBy
84
- memberLevel
85
- }
86
- }
61
+ exports.UPDATE_CUSTOMER_V2 = (0, graphql_tag_1.gql) `
62
+ mutation UpdateCustomerV2(
63
+ $id: String!
64
+ $updateCustomerRequest: UpdateCustomerRequest!
65
+ $tenantId: String!
66
+ $updatedBy: String!
67
+ ) {
68
+ updateCustomerV2(
69
+ id: $id
70
+ updateCustomerRequest: $updateCustomerRequest
71
+ tenantId: $tenantId
72
+ updatedBy: $updatedBy
73
+ ) {
74
+ id
75
+ name
76
+ address
77
+ gender
78
+ identityNumber
79
+ birthDate
80
+ email
81
+ phone
82
+ createdStamp
83
+ createdBy
84
+ memberLevel
85
+ }
86
+ }
87
87
  `;
88
- exports.CREATE_CUSTOMER_V2 = (0, graphql_tag_1.gql) `
89
- mutation CreateCustomerV2(
90
- $name: String!
91
- $phone: String
92
- $email: String
93
- $birthDate: DateCustom
94
- $tenantId: String!
95
- $createdBy: String
96
- ) {
97
- createCustomerV2(
98
- name: $name
99
- phone: $phone
100
- email: $email
101
- birthDate: $birthDate
102
- tenantId: $tenantId
103
- createdBy: $createdBy
104
- ) {
105
- id
106
- name
107
- address
108
- gender
109
- identityNumber
110
- birthDate
111
- email
112
- phone
113
- createdStamp
114
- createdBy
115
- memberLevel
116
- }
117
- }
88
+ exports.CREATE_CUSTOMER_V2 = (0, graphql_tag_1.gql) `
89
+ mutation CreateCustomerV2(
90
+ $name: String!
91
+ $phone: String
92
+ $email: String
93
+ $birthDate: DateCustom
94
+ $tenantId: String!
95
+ $createdBy: String
96
+ ) {
97
+ createCustomerV2(
98
+ name: $name
99
+ phone: $phone
100
+ email: $email
101
+ birthDate: $birthDate
102
+ tenantId: $tenantId
103
+ createdBy: $createdBy
104
+ ) {
105
+ id
106
+ name
107
+ address
108
+ gender
109
+ identityNumber
110
+ birthDate
111
+ email
112
+ phone
113
+ createdStamp
114
+ createdBy
115
+ memberLevel
116
+ }
117
+ }
118
118
  `;
119
- exports.CREATE_VAT_INFO = (0, graphql_tag_1.gql) `
120
- mutation CreateVatInfo(
121
- $company: String!
122
- $taxCode: String!
123
- $address: String!
124
- $invoiceReceiveEmail1: String
125
- $ownerPartyId: String!
126
- $createdBy: String!
127
- ) {
128
- createVatInfo(
129
- createVatInfoRequest: {
130
- company: $company
131
- taxCode: $taxCode
132
- address: $address
133
- invoiceReceiveEmail1: $invoiceReceiveEmail1
134
- ownerPartyId: $ownerPartyId
135
- }
136
- createdBy: $createdBy
137
- ) {
138
- id
139
- company
140
- taxCode
141
- address
142
- invoiceReceiveEmail1
143
- invoiceReceiveEmail2
144
- ownerPartyId
145
- createdStamp
146
- updatedStamp
147
- updatedBy
148
- createdBy
149
- }
150
- }
119
+ exports.CREATE_VAT_INFO = (0, graphql_tag_1.gql) `
120
+ mutation CreateVatInfo(
121
+ $company: String!
122
+ $taxCode: String!
123
+ $address: String!
124
+ $invoiceReceiveEmail1: String
125
+ $ownerPartyId: String!
126
+ $createdBy: String!
127
+ ) {
128
+ createVatInfo(
129
+ createVatInfoRequest: {
130
+ company: $company
131
+ taxCode: $taxCode
132
+ address: $address
133
+ invoiceReceiveEmail1: $invoiceReceiveEmail1
134
+ ownerPartyId: $ownerPartyId
135
+ }
136
+ createdBy: $createdBy
137
+ ) {
138
+ id
139
+ company
140
+ taxCode
141
+ address
142
+ invoiceReceiveEmail1
143
+ invoiceReceiveEmail2
144
+ ownerPartyId
145
+ createdStamp
146
+ updatedStamp
147
+ updatedBy
148
+ createdBy
149
+ }
150
+ }
151
151
  `;