@longvansoftware/storefront-js-client 4.3.7-beta.0 → 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,211 +2,211 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UPDATE_RELATED_PARTY = exports.CREATE_RELATED_PARTY = 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
- sourceCustomer
86
- }
87
- }
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
+ sourceCustomer
86
+ }
87
+ }
88
88
  `;
89
- exports.CREATE_CUSTOMER_V2 = (0, graphql_tag_1.gql) `
90
- mutation CreateCustomerV2(
91
- $name: String!
92
- $phone: String
93
- $email: String
94
- $birthDate: DateCustom
95
- $tenantId: String!
96
- $createdBy: String
97
- $sourceCustomer: String
98
- ) {
99
- createCustomerV2(
100
- name: $name
101
- phone: $phone
102
- email: $email
103
- birthDate: $birthDate
104
- tenantId: $tenantId
105
- createdBy: $createdBy
106
- sourceCustomer: $sourceCustomer
107
- ) {
108
- id
109
- name
110
- address
111
- gender
112
- identityNumber
113
- birthDate
114
- email
115
- phone
116
- createdStamp
117
- createdBy
118
- memberLevel
119
- sourceCustomer
120
- }
121
- }
89
+ exports.CREATE_CUSTOMER_V2 = (0, graphql_tag_1.gql) `
90
+ mutation CreateCustomerV2(
91
+ $name: String!
92
+ $phone: String
93
+ $email: String
94
+ $birthDate: DateCustom
95
+ $tenantId: String!
96
+ $createdBy: String
97
+ $sourceCustomer: String
98
+ ) {
99
+ createCustomerV2(
100
+ name: $name
101
+ phone: $phone
102
+ email: $email
103
+ birthDate: $birthDate
104
+ tenantId: $tenantId
105
+ createdBy: $createdBy
106
+ sourceCustomer: $sourceCustomer
107
+ ) {
108
+ id
109
+ name
110
+ address
111
+ gender
112
+ identityNumber
113
+ birthDate
114
+ email
115
+ phone
116
+ createdStamp
117
+ createdBy
118
+ memberLevel
119
+ sourceCustomer
120
+ }
121
+ }
122
122
  `;
123
- exports.CREATE_VAT_INFO = (0, graphql_tag_1.gql) `
124
- mutation CreateVatInfo(
125
- $company: String!
126
- $taxCode: String!
127
- $address: String!
128
- $invoiceReceiveEmail1: String
129
- $ownerPartyId: String!
130
- $createdBy: String!
131
- ) {
132
- createVatInfo(
133
- createVatInfoRequest: {
134
- company: $company
135
- taxCode: $taxCode
136
- address: $address
137
- invoiceReceiveEmail1: $invoiceReceiveEmail1
138
- ownerPartyId: $ownerPartyId
139
- }
140
- createdBy: $createdBy
141
- ) {
142
- id
143
- company
144
- taxCode
145
- address
146
- invoiceReceiveEmail1
147
- invoiceReceiveEmail2
148
- ownerPartyId
149
- createdStamp
150
- updatedStamp
151
- updatedBy
152
- createdBy
153
- }
154
- }
123
+ exports.CREATE_VAT_INFO = (0, graphql_tag_1.gql) `
124
+ mutation CreateVatInfo(
125
+ $company: String!
126
+ $taxCode: String!
127
+ $address: String!
128
+ $invoiceReceiveEmail1: String
129
+ $ownerPartyId: String!
130
+ $createdBy: String!
131
+ ) {
132
+ createVatInfo(
133
+ createVatInfoRequest: {
134
+ company: $company
135
+ taxCode: $taxCode
136
+ address: $address
137
+ invoiceReceiveEmail1: $invoiceReceiveEmail1
138
+ ownerPartyId: $ownerPartyId
139
+ }
140
+ createdBy: $createdBy
141
+ ) {
142
+ id
143
+ company
144
+ taxCode
145
+ address
146
+ invoiceReceiveEmail1
147
+ invoiceReceiveEmail2
148
+ ownerPartyId
149
+ createdStamp
150
+ updatedStamp
151
+ updatedBy
152
+ createdBy
153
+ }
154
+ }
155
155
  `;
156
- exports.CREATE_RELATED_PARTY = (0, graphql_tag_1.gql) `
157
- mutation CreateRelatedParty(
158
- $orgId: String!
159
- $name: String
160
- $phone: String
161
- $relationshipName: String
162
- $email: String
163
- $birthDate: DateCustom
164
- $createdBy: String!
165
- $partyId: String
166
- ) {
167
- createRelatedParty(
168
- orgId: $orgId
169
- name: $name
170
- phone: $phone
171
- relationshipName: $relationshipName
172
- email: $email
173
- birthDate: $birthDate
174
- createdBy: $createdBy
175
- partyId: $partyId
176
- ) {
177
- id
178
- name
179
- address
180
- gender
181
- identityNumber
182
- birthDate
183
- email
184
- phone
185
- createdStamp
186
- createdBy
187
- memberLevel
188
- imageUrl
189
- customAttribute
190
- relationshipName
191
- source
192
- sourceCustomer
193
- }
194
- }
156
+ exports.CREATE_RELATED_PARTY = (0, graphql_tag_1.gql) `
157
+ mutation CreateRelatedParty(
158
+ $orgId: String!
159
+ $name: String
160
+ $phone: String
161
+ $relationshipName: String
162
+ $email: String
163
+ $birthDate: DateCustom
164
+ $createdBy: String!
165
+ $partyId: String
166
+ ) {
167
+ createRelatedParty(
168
+ orgId: $orgId
169
+ name: $name
170
+ phone: $phone
171
+ relationshipName: $relationshipName
172
+ email: $email
173
+ birthDate: $birthDate
174
+ createdBy: $createdBy
175
+ partyId: $partyId
176
+ ) {
177
+ id
178
+ name
179
+ address
180
+ gender
181
+ identityNumber
182
+ birthDate
183
+ email
184
+ phone
185
+ createdStamp
186
+ createdBy
187
+ memberLevel
188
+ imageUrl
189
+ customAttribute
190
+ relationshipName
191
+ source
192
+ sourceCustomer
193
+ }
194
+ }
195
195
  `;
196
- exports.UPDATE_RELATED_PARTY = (0, graphql_tag_1.gql) `
197
- mutation UpdateRelatedParty(
198
- $relatedPartyId: String!
199
- $partyId: String!
200
- $updateRelatedPartyRequest: UpdateRelatedPartyRequest!
201
- $orgId: String!
202
- $updatedBy: String!
203
- ) {
204
- updateRelatedParty(
205
- relatedPartyId: $relatedPartyId
206
- partyId: $partyId
207
- updateRelatedPartyRequest: $updateRelatedPartyRequest
208
- orgId: $orgId
209
- updatedBy: $updatedBy
210
- )
211
- }
196
+ exports.UPDATE_RELATED_PARTY = (0, graphql_tag_1.gql) `
197
+ mutation UpdateRelatedParty(
198
+ $relatedPartyId: String!
199
+ $partyId: String!
200
+ $updateRelatedPartyRequest: UpdateRelatedPartyRequest!
201
+ $orgId: String!
202
+ $updatedBy: String!
203
+ ) {
204
+ updateRelatedParty(
205
+ relatedPartyId: $relatedPartyId
206
+ partyId: $partyId
207
+ updateRelatedPartyRequest: $updateRelatedPartyRequest
208
+ orgId: $orgId
209
+ updatedBy: $updatedBy
210
+ )
211
+ }
212
212
  `;