@longvansoftware/storefront-js-client 4.3.8 → 4.4.0

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 (43) 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.d.ts +1 -0
  20. package/dist/src/graphql/payment/mutations.js +212 -195
  21. package/dist/src/graphql/payment/queries.d.ts +1 -0
  22. package/dist/src/graphql/payment/queries.js +123 -118
  23. package/dist/src/graphql/paymentV2/mutations.js +115 -115
  24. package/dist/src/graphql/paymentV2/queries.js +263 -263
  25. package/dist/src/graphql/product/mutations.d.ts +1 -0
  26. package/dist/src/graphql/product/mutations.js +671 -653
  27. package/dist/src/graphql/product/queries.js +996 -990
  28. package/dist/src/graphql/service/mutations.js +304 -304
  29. package/dist/src/graphql/service/queries.js +131 -131
  30. package/dist/src/graphql/store/mutations.js +24 -24
  31. package/dist/src/graphql/store/queries.js +24 -24
  32. package/dist/src/graphql/user/mutations.js +201 -201
  33. package/dist/src/graphql/user/queries.js +339 -339
  34. package/dist/src/lib/cloudService/index.d.ts +5 -0
  35. package/dist/src/lib/cloudService/index.js +35 -0
  36. package/dist/src/lib/payment/index.d.ts +2 -0
  37. package/dist/src/lib/payment/index.js +33 -0
  38. package/dist/src/lib/product/index.d.ts +1 -0
  39. package/dist/src/lib/product/index.js +17 -0
  40. package/dist/src/lib/serviceSDK.js +14 -14
  41. package/package.json +43 -43
  42. package/dist/index.d.ts +0 -1698
  43. package/dist/index.js +0 -13673
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FIND_ORDER_BY_OWNER_PARTYID = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.FIND_ORDER_BY_OWNER_PARTYID = (0, graphql_tag_1.gql) `
6
- mutation FindOrderByOwnerPartyId(
7
- $partnerId: String!
8
- $ownerPartyId: String!
9
- ) {
10
- findOrderByOwnerPartyId(partnerId: $partnerId, ownerPartyId: $ownerPartyId)
11
- }
5
+ exports.FIND_ORDER_BY_OWNER_PARTYID = (0, graphql_tag_1.gql) `
6
+ mutation FindOrderByOwnerPartyId(
7
+ $partnerId: String!
8
+ $ownerPartyId: String!
9
+ ) {
10
+ findOrderByOwnerPartyId(partnerId: $partnerId, ownerPartyId: $ownerPartyId)
11
+ }
12
12
  `;
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FIND_ORDER_BY_OWNER_PARTYID = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.FIND_ORDER_BY_OWNER_PARTYID = (0, graphql_tag_1.gql) `
6
- query FindOrderByOwnerPartyId(
7
- $partnerId: String!
8
- $ownerPartyId: String!
9
- ) {
10
- findOrderByOwnerPartyId(partnerId: $partnerId, ownerPartyId: $ownerPartyId)
11
- }
5
+ exports.FIND_ORDER_BY_OWNER_PARTYID = (0, graphql_tag_1.gql) `
6
+ query FindOrderByOwnerPartyId(
7
+ $partnerId: String!
8
+ $ownerPartyId: String!
9
+ ) {
10
+ findOrderByOwnerPartyId(partnerId: $partnerId, ownerPartyId: $ownerPartyId)
11
+ }
12
12
  `;
@@ -4,3 +4,4 @@ export declare const REQUEST_PUBLISH_VAT_INVOICE: import("graphql").DocumentNode
4
4
  export declare const UPDATE_INVOICE_ITEM: import("graphql").DocumentNode;
5
5
  export declare const ADD_INVOICE_ITEM: import("graphql").DocumentNode;
6
6
  export declare const DELETE_INVOICE_ITEM: import("graphql").DocumentNode;
7
+ export declare const REORDER_INVOINCE_ITEMS: import("graphql").DocumentNode;
@@ -1,204 +1,221 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DELETE_INVOICE_ITEM = exports.ADD_INVOICE_ITEM = exports.UPDATE_INVOICE_ITEM = exports.REQUEST_PUBLISH_VAT_INVOICE = exports.REQUEST_UNPUBLISH_VAT_INVOICE = exports.CREATE_PAYMENT_ORDER_MUTATION = void 0;
3
+ exports.REORDER_INVOINCE_ITEMS = exports.DELETE_INVOICE_ITEM = exports.ADD_INVOICE_ITEM = exports.UPDATE_INVOICE_ITEM = exports.REQUEST_PUBLISH_VAT_INVOICE = exports.REQUEST_UNPUBLISH_VAT_INVOICE = exports.CREATE_PAYMENT_ORDER_MUTATION = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.CREATE_PAYMENT_ORDER_MUTATION = (0, graphql_tag_1.gql) `
6
- mutation CreatePaymentOrder(
7
- $orgId: String!
8
- $orderId: String!
9
- $paymentMethod: String!
10
- $storeId: String!
11
- $source: String!
12
- $appliedAmount: BigDecimal
13
- $payDate: String!
14
- $returnUrl: String
15
- $paymentType: String!
16
- $createBy: String!
17
- $paymentInfo: String
18
- $attributes: JSON
19
- ) {
20
- createPaymentOrder(
21
- orgId: $orgId
22
- orderId: $orderId
23
- paymentMethod: $paymentMethod
24
- storeId: $storeId
25
- source: $source
26
- appliedAmount: $appliedAmount
27
- payDate: $payDate
28
- returnUrl: $returnUrl
29
- paymentType: $paymentType
30
- createBy: $createBy
31
- paymentInfo: $paymentInfo
32
- attributes: $attributes
33
- ) {
34
- code
35
- message
36
- data
37
- qrCodeUrl
38
- deeplink
39
- deeplinkMiniApp
40
- invoiceId
41
- orderId
42
- paymentId
43
- }
44
- }
5
+ exports.CREATE_PAYMENT_ORDER_MUTATION = (0, graphql_tag_1.gql) `
6
+ mutation CreatePaymentOrder(
7
+ $orgId: String!
8
+ $orderId: String!
9
+ $paymentMethod: String!
10
+ $storeId: String!
11
+ $source: String!
12
+ $appliedAmount: BigDecimal
13
+ $payDate: String!
14
+ $returnUrl: String
15
+ $paymentType: String!
16
+ $createBy: String!
17
+ $paymentInfo: String
18
+ $attributes: JSON
19
+ ) {
20
+ createPaymentOrder(
21
+ orgId: $orgId
22
+ orderId: $orderId
23
+ paymentMethod: $paymentMethod
24
+ storeId: $storeId
25
+ source: $source
26
+ appliedAmount: $appliedAmount
27
+ payDate: $payDate
28
+ returnUrl: $returnUrl
29
+ paymentType: $paymentType
30
+ createBy: $createBy
31
+ paymentInfo: $paymentInfo
32
+ attributes: $attributes
33
+ ) {
34
+ code
35
+ message
36
+ data
37
+ qrCodeUrl
38
+ deeplink
39
+ deeplinkMiniApp
40
+ invoiceId
41
+ orderId
42
+ paymentId
43
+ }
44
+ }
45
45
  `;
46
- exports.REQUEST_UNPUBLISH_VAT_INVOICE = (0, graphql_tag_1.gql) `
47
- mutation RequestUnpublishVatInvoice(
48
- $partnerId: String!
49
- $sourceId: String!
50
- $sourceType: String!
51
- $signType: String
52
- $includeBuyerTaxCode: Boolean
53
- $buyerName: String
54
- $buyerPhone: String
55
- $buyerTaxCode: String
56
- $buyerCompany: String
57
- $buyerAddress: String
58
- $sendMail: Boolean
59
- $receiverName: String
60
- $receiverEmail: String
61
- $byUser: String!
62
- ) {
63
- requestUnpublishVatInvoice(
64
- vatInvoiceRequest: {
65
- partnerId: $partnerId
66
- sourceId: $sourceId
67
- sourceType: $sourceType
68
- signType: $signType
69
- includeBuyerTaxCode: $includeBuyerTaxCode
70
- buyerName: $buyerName
71
- buyerPhone: $buyerPhone
72
- buyerTaxCode: $buyerTaxCode
73
- buyerCompany: $buyerCompany
74
- buyerAddress: $buyerAddress
75
- sendMail: $sendMail
76
- receiverName: $receiverName
77
- receiverEmail: $receiverEmail
78
- }
79
- byUser: $byUser
80
- ) {
81
- code
82
- message
83
- invoiceId
84
- sourceId
85
- sourceType
86
- previewLink
87
- lookupLink
88
- }
89
- }
46
+ exports.REQUEST_UNPUBLISH_VAT_INVOICE = (0, graphql_tag_1.gql) `
47
+ mutation RequestUnpublishVatInvoice(
48
+ $partnerId: String!
49
+ $sourceId: String!
50
+ $sourceType: String!
51
+ $signType: String
52
+ $includeBuyerTaxCode: Boolean
53
+ $buyerName: String
54
+ $buyerPhone: String
55
+ $buyerTaxCode: String
56
+ $buyerCompany: String
57
+ $buyerAddress: String
58
+ $sendMail: Boolean
59
+ $receiverName: String
60
+ $receiverEmail: String
61
+ $byUser: String!
62
+ ) {
63
+ requestUnpublishVatInvoice(
64
+ vatInvoiceRequest: {
65
+ partnerId: $partnerId
66
+ sourceId: $sourceId
67
+ sourceType: $sourceType
68
+ signType: $signType
69
+ includeBuyerTaxCode: $includeBuyerTaxCode
70
+ buyerName: $buyerName
71
+ buyerPhone: $buyerPhone
72
+ buyerTaxCode: $buyerTaxCode
73
+ buyerCompany: $buyerCompany
74
+ buyerAddress: $buyerAddress
75
+ sendMail: $sendMail
76
+ receiverName: $receiverName
77
+ receiverEmail: $receiverEmail
78
+ }
79
+ byUser: $byUser
80
+ ) {
81
+ code
82
+ message
83
+ invoiceId
84
+ sourceId
85
+ sourceType
86
+ previewLink
87
+ lookupLink
88
+ }
89
+ }
90
90
  `;
91
- exports.REQUEST_PUBLISH_VAT_INVOICE = (0, graphql_tag_1.gql) `
92
- mutation RequestPublishVatInvoice(
93
- $partnerId: String!
94
- $sourceId: String!
95
- $sourceType: String!
96
- $signType: String
97
- $includeBuyerTaxCode: Boolean
98
- $buyerName: String
99
- $buyerPhone: String
100
- $buyerTaxCode: String
101
- $buyerCompany: String
102
- $buyerAddress: String
103
- $sendMail: Boolean
104
- $receiverName: String
105
- $receiverEmail: String
106
- $byUser: String!
107
- ) {
108
- requestPublishVatInvoice(
109
- vatInvoiceRequest: {
110
- partnerId: $partnerId
111
- sourceId: $sourceId
112
- sourceType: $sourceType
113
- signType: $signType
114
- includeBuyerTaxCode: $includeBuyerTaxCode
115
- buyerName: $buyerName
116
- buyerPhone: $buyerPhone
117
- buyerTaxCode: $buyerTaxCode
118
- buyerCompany: $buyerCompany
119
- buyerAddress: $buyerAddress
120
- sendMail: $sendMail
121
- receiverName: $receiverName
122
- receiverEmail: $receiverEmail
123
- }
124
- byUser: $byUser
125
- ) {
126
- code
127
- message
128
- invoiceId
129
- sourceId
130
- sourceType
131
- previewLink
132
- lookupLink
133
- }
134
- }
91
+ exports.REQUEST_PUBLISH_VAT_INVOICE = (0, graphql_tag_1.gql) `
92
+ mutation RequestPublishVatInvoice(
93
+ $partnerId: String!
94
+ $sourceId: String!
95
+ $sourceType: String!
96
+ $signType: String
97
+ $includeBuyerTaxCode: Boolean
98
+ $buyerName: String
99
+ $buyerPhone: String
100
+ $buyerTaxCode: String
101
+ $buyerCompany: String
102
+ $buyerAddress: String
103
+ $sendMail: Boolean
104
+ $receiverName: String
105
+ $receiverEmail: String
106
+ $byUser: String!
107
+ ) {
108
+ requestPublishVatInvoice(
109
+ vatInvoiceRequest: {
110
+ partnerId: $partnerId
111
+ sourceId: $sourceId
112
+ sourceType: $sourceType
113
+ signType: $signType
114
+ includeBuyerTaxCode: $includeBuyerTaxCode
115
+ buyerName: $buyerName
116
+ buyerPhone: $buyerPhone
117
+ buyerTaxCode: $buyerTaxCode
118
+ buyerCompany: $buyerCompany
119
+ buyerAddress: $buyerAddress
120
+ sendMail: $sendMail
121
+ receiverName: $receiverName
122
+ receiverEmail: $receiverEmail
123
+ }
124
+ byUser: $byUser
125
+ ) {
126
+ code
127
+ message
128
+ invoiceId
129
+ sourceId
130
+ sourceType
131
+ previewLink
132
+ lookupLink
133
+ }
134
+ }
135
135
  `;
136
- exports.UPDATE_INVOICE_ITEM = (0, graphql_tag_1.gql) `
137
- mutation UpdateInvoiceItem(
138
- $partnerId: String!
139
- $invoiceId: String!
140
- $updateInvoiceItemDTO: UpdateInvoiceItemDTO!
141
- $byUser: String!
142
- ) {
143
- updateInvoiceItem(
144
- partnerId: $partnerId
145
- invoiceId: $invoiceId
146
- updateInvoiceItemDTO: $updateInvoiceItemDTO
147
- byUser: $byUser
148
- ) {
149
- code
150
- message
151
- invoiceId
152
- sourceId
153
- sourceType
154
- previewLink
155
- lookupLink
156
- }
157
- }
136
+ exports.UPDATE_INVOICE_ITEM = (0, graphql_tag_1.gql) `
137
+ mutation UpdateInvoiceItem(
138
+ $partnerId: String!
139
+ $invoiceId: String!
140
+ $updateInvoiceItemDTO: UpdateInvoiceItemDTO!
141
+ $byUser: String!
142
+ ) {
143
+ updateInvoiceItem(
144
+ partnerId: $partnerId
145
+ invoiceId: $invoiceId
146
+ updateInvoiceItemDTO: $updateInvoiceItemDTO
147
+ byUser: $byUser
148
+ ) {
149
+ code
150
+ message
151
+ invoiceId
152
+ sourceId
153
+ sourceType
154
+ previewLink
155
+ lookupLink
156
+ }
157
+ }
158
158
  `;
159
- exports.ADD_INVOICE_ITEM = (0, graphql_tag_1.gql) `
160
- mutation AddInvoiceItem(
161
- $partnerId: String!
162
- $invoiceId: String!
163
- $invoiceItem: InvoiceItemInput!
164
- $byUser: String!
165
- ) {
166
- addInvoiceItem(
167
- partnerId: $partnerId
168
- invoiceId: $invoiceId
169
- invoiceItem: $invoiceItem
170
- byUser: $byUser
171
- ) {
172
- code
173
- message
174
- invoiceId
175
- sourceId
176
- sourceType
177
- previewLink
178
- lookupLink
179
- }
180
- }
159
+ exports.ADD_INVOICE_ITEM = (0, graphql_tag_1.gql) `
160
+ mutation AddInvoiceItem(
161
+ $partnerId: String!
162
+ $invoiceId: String!
163
+ $invoiceItem: InvoiceItemInput!
164
+ $byUser: String!
165
+ ) {
166
+ addInvoiceItem(
167
+ partnerId: $partnerId
168
+ invoiceId: $invoiceId
169
+ invoiceItem: $invoiceItem
170
+ byUser: $byUser
171
+ ) {
172
+ code
173
+ message
174
+ invoiceId
175
+ sourceId
176
+ sourceType
177
+ previewLink
178
+ lookupLink
179
+ }
180
+ }
181
181
  `;
182
- exports.DELETE_INVOICE_ITEM = (0, graphql_tag_1.gql) `
183
- mutation DeleteInvoiceItem(
184
- $partnerId: String!
185
- $invoiceId: String!
186
- $invoiceItemId: String!
187
- $byUser: String!
188
- ) {
189
- deleteInvoiceItem(
190
- partnerId: $partnerId
191
- invoiceId: $invoiceId
192
- invoiceItemId: $invoiceItemId
193
- byUser: $byUser
194
- ) {
195
- code
196
- message
197
- invoiceId
198
- sourceId
199
- sourceType
200
- previewLink
201
- lookupLink
202
- }
203
- }
182
+ exports.DELETE_INVOICE_ITEM = (0, graphql_tag_1.gql) `
183
+ mutation DeleteInvoiceItem(
184
+ $partnerId: String!
185
+ $invoiceId: String!
186
+ $invoiceItemId: String!
187
+ $byUser: String!
188
+ ) {
189
+ deleteInvoiceItem(
190
+ partnerId: $partnerId
191
+ invoiceId: $invoiceId
192
+ invoiceItemId: $invoiceItemId
193
+ byUser: $byUser
194
+ ) {
195
+ code
196
+ message
197
+ invoiceId
198
+ sourceId
199
+ sourceType
200
+ previewLink
201
+ lookupLink
202
+ }
203
+ }
204
+ `;
205
+ exports.REORDER_INVOINCE_ITEMS = (0, graphql_tag_1.gql) `
206
+ mutation ReorderInvoiceItems(
207
+ $invoiceId: String!
208
+ $items: [ReorderInvoiceItemInput]!
209
+ $byUser: String!
210
+ ) {
211
+ reorderInvoiceItems(invoiceId: $invoiceId, items: $items, byUser: $byUser) {
212
+ code
213
+ message
214
+ invoiceId
215
+ sourceId
216
+ sourceType
217
+ previewLink
218
+ lookupLink
219
+ }
220
+ }
204
221
  `;
@@ -5,3 +5,4 @@ export declare const GET_INVOICE_DETAIL: import("graphql").DocumentNode;
5
5
  export declare const GET_INVOICES_OF_ORDER: import("graphql").DocumentNode;
6
6
  export declare const VIEW_PUBLISHED_INVOICE: import("graphql").DocumentNode;
7
7
  export declare const GET_INVOICE_ITEM_OF_INVOICE: import("graphql").DocumentNode;
8
+ export declare const SUGGEST_INVOINCE_NOTE: import("graphql").DocumentNode;