@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,276 +2,276 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GET_TRANSFER_INFO = exports.GET_PAYMENT_METHOD_TYPES_V2 = exports.GET_PAYEMNT_GATEWAYS_BY_METHOD_CODE = exports.GET_PAYMENT_METHOD_TITLES = exports.GW_CONFIG_DETAIL = exports.PAYMENT_STATUS = exports.PAYMENT_INFO = exports.GET_PAYMENT_METHOD_TYPES = exports.PAYMENT_METHODS = exports.PAYMENTS_BY_ORDERS = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
6
- query PaymentsByOrders($orderIds: [String!]!) {
7
- paymentsByOrders(orderIds: $orderIds) {
8
- methodCode
9
- methodTypeCode
10
- gatewayConfigId
11
- partnerCode
12
- totalAmount
13
- fee
14
- discountAmount
15
- payDate
16
- payType
17
- transactionDate
18
- orderId
19
- paymentId
20
- invoiceId
21
- orderInfo
22
- orderType
23
- locale
24
- merchantIp
25
- extraData
26
- storeID
27
- bankCode
28
- appUser
29
- phone
30
- email
31
- address
32
- statusCode
33
- statusDescription
34
- transactionId
35
- createBy
36
- methodDescription
37
- methodMapping
38
- baseMethodCode
39
- confirmPaidBy
40
- confirmPaidDate
41
- qrCode
42
- payUrl
43
- paymentNote
44
- }
45
- }
5
+ exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
6
+ query PaymentsByOrders($orderIds: [String!]!) {
7
+ paymentsByOrders(orderIds: $orderIds) {
8
+ methodCode
9
+ methodTypeCode
10
+ gatewayConfigId
11
+ partnerCode
12
+ totalAmount
13
+ fee
14
+ discountAmount
15
+ payDate
16
+ payType
17
+ transactionDate
18
+ orderId
19
+ paymentId
20
+ invoiceId
21
+ orderInfo
22
+ orderType
23
+ locale
24
+ merchantIp
25
+ extraData
26
+ storeID
27
+ bankCode
28
+ appUser
29
+ phone
30
+ email
31
+ address
32
+ statusCode
33
+ statusDescription
34
+ transactionId
35
+ createBy
36
+ methodDescription
37
+ methodMapping
38
+ baseMethodCode
39
+ confirmPaidBy
40
+ confirmPaidDate
41
+ qrCode
42
+ payUrl
43
+ paymentNote
44
+ }
45
+ }
46
46
  `;
47
- exports.PAYMENT_METHODS = (0, graphql_tag_1.gql) `
48
- query PaymentMethods {
49
- paymentMethods {
50
- id
51
- code
52
- name
53
- description
54
- image
55
- titles {
56
- id
57
- code
58
- name
59
- lang
60
- showField
61
- required
62
- }
63
- }
64
- }
47
+ exports.PAYMENT_METHODS = (0, graphql_tag_1.gql) `
48
+ query PaymentMethods {
49
+ paymentMethods {
50
+ id
51
+ code
52
+ name
53
+ description
54
+ image
55
+ titles {
56
+ id
57
+ code
58
+ name
59
+ lang
60
+ showField
61
+ required
62
+ }
63
+ }
64
+ }
65
65
  `;
66
- exports.GET_PAYMENT_METHOD_TYPES = (0, graphql_tag_1.gql) `
67
- query GetPaymentMethodTypes($partnerId: String!, $storeId: String!) {
68
- getPaymentMethodTypes(partnerId: $partnerId, storeId: $storeId) {
69
- code
70
- name
71
- description
72
- image
73
- }
74
- }
66
+ exports.GET_PAYMENT_METHOD_TYPES = (0, graphql_tag_1.gql) `
67
+ query GetPaymentMethodTypes($partnerId: String!, $storeId: String!) {
68
+ getPaymentMethodTypes(partnerId: $partnerId, storeId: $storeId) {
69
+ code
70
+ name
71
+ description
72
+ image
73
+ }
74
+ }
75
75
  `;
76
- exports.PAYMENT_INFO = (0, graphql_tag_1.gql) `
77
- query PaymentInfo($paymentId: String!) {
78
- paymentInfo(paymentId: $paymentId) {
79
- id
80
- payType
81
- payDate
82
- dueDate
83
- completePayment
84
- paymentTerm
85
- methodCode
86
- methodTypeCode
87
- gatewayConfigId
88
- partnerCode
89
- totalAmount
90
- remain
91
- currCode
92
- invoiceId
93
- orderId
94
- orderInfo
95
- orderGroup
96
- orderType
97
- returnUrl
98
- ipnUrl
99
- merchantIp
100
- extraData
101
- storeID
102
- bankCode
103
- appUser
104
- phone
105
- email
106
- address
107
- signature
108
- createBy
109
- transactionId
110
- baseMethodCode
111
- retry
112
- postToOrder
113
- editAble
114
- approved
115
- statusCode
116
- paymentGroup
117
- userId
118
- type
119
- attributes
120
- items {
121
- id
122
- partnerCode
123
- paymentId
124
- type
125
- orderId
126
- invoiceId
127
- orderGroup
128
- orderType
129
- orderInfo
130
- totalAmount
131
- }
132
- }
133
- }
76
+ exports.PAYMENT_INFO = (0, graphql_tag_1.gql) `
77
+ query PaymentInfo($paymentId: String!) {
78
+ paymentInfo(paymentId: $paymentId) {
79
+ id
80
+ payType
81
+ payDate
82
+ dueDate
83
+ completePayment
84
+ paymentTerm
85
+ methodCode
86
+ methodTypeCode
87
+ gatewayConfigId
88
+ partnerCode
89
+ totalAmount
90
+ remain
91
+ currCode
92
+ invoiceId
93
+ orderId
94
+ orderInfo
95
+ orderGroup
96
+ orderType
97
+ returnUrl
98
+ ipnUrl
99
+ merchantIp
100
+ extraData
101
+ storeID
102
+ bankCode
103
+ appUser
104
+ phone
105
+ email
106
+ address
107
+ signature
108
+ createBy
109
+ transactionId
110
+ baseMethodCode
111
+ retry
112
+ postToOrder
113
+ editAble
114
+ approved
115
+ statusCode
116
+ paymentGroup
117
+ userId
118
+ type
119
+ attributes
120
+ items {
121
+ id
122
+ partnerCode
123
+ paymentId
124
+ type
125
+ orderId
126
+ invoiceId
127
+ orderGroup
128
+ orderType
129
+ orderInfo
130
+ totalAmount
131
+ }
132
+ }
133
+ }
134
134
  `;
135
- exports.PAYMENT_STATUS = (0, graphql_tag_1.gql) `
136
- query PaymentStatus($paymentId: String!) {
137
- paymentStatus(paymentId: $paymentId) {
138
- methodCode
139
- methodTypeCode
140
- gatewayConfigId
141
- partnerCode
142
- totalAmount
143
- fee
144
- discountAmount
145
- payDate
146
- payType
147
- transactionDate
148
- paymentId
149
- invoiceId
150
- orderInfo
151
- orderType
152
- locale
153
- merchantIp
154
- extraData
155
- storeID
156
- bankCode
157
- appUser
158
- phone
159
- email
160
- address
161
- statusCode
162
- statusDescription
163
- transactionId
164
- createBy
165
- methodDescription
166
- methodMapping
167
- baseMethodCode
168
- confirmPaidBy
169
- confirmPaidDate
170
- qrCode
171
- payUrl
172
- attributes
173
- }
174
- }
135
+ exports.PAYMENT_STATUS = (0, graphql_tag_1.gql) `
136
+ query PaymentStatus($paymentId: String!) {
137
+ paymentStatus(paymentId: $paymentId) {
138
+ methodCode
139
+ methodTypeCode
140
+ gatewayConfigId
141
+ partnerCode
142
+ totalAmount
143
+ fee
144
+ discountAmount
145
+ payDate
146
+ payType
147
+ transactionDate
148
+ paymentId
149
+ invoiceId
150
+ orderInfo
151
+ orderType
152
+ locale
153
+ merchantIp
154
+ extraData
155
+ storeID
156
+ bankCode
157
+ appUser
158
+ phone
159
+ email
160
+ address
161
+ statusCode
162
+ statusDescription
163
+ transactionId
164
+ createBy
165
+ methodDescription
166
+ methodMapping
167
+ baseMethodCode
168
+ confirmPaidBy
169
+ confirmPaidDate
170
+ qrCode
171
+ payUrl
172
+ attributes
173
+ }
174
+ }
175
175
  `;
176
- exports.GW_CONFIG_DETAIL = (0, graphql_tag_1.gql) `
177
- query GwConfigDetail($configId: String!) {
178
- gwConfigDetail(configId: $configId) {
179
- id
180
- name
181
- methodCode
182
- partnerCode
183
- subMethodCode
184
- gwPartnerCode
185
- gwPartnerName
186
- gwSubChannel
187
- gwMethodVersion
188
- accessKey
189
- secretKey
190
- description
191
- activated
192
- }
193
- }
176
+ exports.GW_CONFIG_DETAIL = (0, graphql_tag_1.gql) `
177
+ query GwConfigDetail($configId: String!) {
178
+ gwConfigDetail(configId: $configId) {
179
+ id
180
+ name
181
+ methodCode
182
+ partnerCode
183
+ subMethodCode
184
+ gwPartnerCode
185
+ gwPartnerName
186
+ gwSubChannel
187
+ gwMethodVersion
188
+ accessKey
189
+ secretKey
190
+ description
191
+ activated
192
+ }
193
+ }
194
194
  `;
195
- exports.GET_PAYMENT_METHOD_TITLES = (0, graphql_tag_1.gql) `
196
- query GetPaymentMethodTitles($methodCode: String!) {
197
- getPaymentMethodTitles(methodCode: $methodCode) {
198
- id
199
- code
200
- name
201
- lang
202
- showField
203
- required
204
- }
205
- }
195
+ exports.GET_PAYMENT_METHOD_TITLES = (0, graphql_tag_1.gql) `
196
+ query GetPaymentMethodTitles($methodCode: String!) {
197
+ getPaymentMethodTitles(methodCode: $methodCode) {
198
+ id
199
+ code
200
+ name
201
+ lang
202
+ showField
203
+ required
204
+ }
205
+ }
206
206
  `;
207
- exports.GET_PAYEMNT_GATEWAYS_BY_METHOD_CODE = (0, graphql_tag_1.gql) `
208
- query GetPaymentGatewaysByMethodCode(
209
- $partnerId: String!
210
- $methodCode: String!
211
- $storeId: String
212
- ) {
213
- getPaymentGatewaysByMethodCode(
214
- partnerId: $partnerId
215
- methodCode: $methodCode
216
- storeId: $storeId
217
- ) {
218
- id
219
- name
220
- methodCode
221
- partnerCode
222
- subMethodCode
223
- gwPartnerCode
224
- gwPartnerName
225
- gwSubChannel
226
- gwMethodVersion
227
- hashAlgorithm
228
- accessKey
229
- secretKey
230
- requestUrl
231
- description
232
- activated
233
- storeActive
234
- }
235
- }
207
+ exports.GET_PAYEMNT_GATEWAYS_BY_METHOD_CODE = (0, graphql_tag_1.gql) `
208
+ query GetPaymentGatewaysByMethodCode(
209
+ $partnerId: String!
210
+ $methodCode: String!
211
+ $storeId: String
212
+ ) {
213
+ getPaymentGatewaysByMethodCode(
214
+ partnerId: $partnerId
215
+ methodCode: $methodCode
216
+ storeId: $storeId
217
+ ) {
218
+ id
219
+ name
220
+ methodCode
221
+ partnerCode
222
+ subMethodCode
223
+ gwPartnerCode
224
+ gwPartnerName
225
+ gwSubChannel
226
+ gwMethodVersion
227
+ hashAlgorithm
228
+ accessKey
229
+ secretKey
230
+ requestUrl
231
+ description
232
+ activated
233
+ storeActive
234
+ }
235
+ }
236
236
  `;
237
- exports.GET_PAYMENT_METHOD_TYPES_V2 = (0, graphql_tag_1.gql) `
238
- query GetPaymentMethodTypes(
239
- $partnerId: String!
240
- $storeId: String!
241
- $storeActive: StoreActive
242
- $allMethodTypes: Boolean
243
- ) {
244
- getPaymentMethodTypes(
245
- partnerId: $partnerId
246
- storeId: $storeId
247
- storeActive: $storeActive
248
- allMethodTypes: $allMethodTypes
249
- ) {
250
- code
251
- name
252
- description
253
- image
254
- storeActive
255
- }
256
- }
237
+ exports.GET_PAYMENT_METHOD_TYPES_V2 = (0, graphql_tag_1.gql) `
238
+ query GetPaymentMethodTypes(
239
+ $partnerId: String!
240
+ $storeId: String!
241
+ $storeActive: StoreActive
242
+ $allMethodTypes: Boolean
243
+ ) {
244
+ getPaymentMethodTypes(
245
+ partnerId: $partnerId
246
+ storeId: $storeId
247
+ storeActive: $storeActive
248
+ allMethodTypes: $allMethodTypes
249
+ ) {
250
+ code
251
+ name
252
+ description
253
+ image
254
+ storeActive
255
+ }
256
+ }
257
257
  `;
258
- exports.GET_TRANSFER_INFO = (0, graphql_tag_1.gql) `
259
- query GetTransferInfo(
260
- $partnerId: String!
261
- $storeId: String
262
- $paymentId: String
263
- ) {
264
- getTransferInfo(
265
- partnerId: $partnerId
266
- storeId: $storeId
267
- paymentId: $paymentId
268
- ) {
269
- bankCode
270
- bankName
271
- accountNumber
272
- accountName
273
- description
274
- transferInfo
275
- }
276
- }
258
+ exports.GET_TRANSFER_INFO = (0, graphql_tag_1.gql) `
259
+ query GetTransferInfo(
260
+ $partnerId: String!
261
+ $storeId: String
262
+ $paymentId: String
263
+ ) {
264
+ getTransferInfo(
265
+ partnerId: $partnerId
266
+ storeId: $storeId
267
+ paymentId: $paymentId
268
+ ) {
269
+ bankCode
270
+ bankName
271
+ accountNumber
272
+ accountName
273
+ description
274
+ transferInfo
275
+ }
276
+ }
277
277
  `;