@longvansoftware/storefront-js-client 3.4.6 → 3.4.8
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.
- package/dist/config/config.js +2 -2
- package/dist/src/graphql/accounting_service/mutations.d.ts +2 -0
- package/dist/src/graphql/accounting_service/mutations.js +102 -0
- package/dist/src/graphql/accounting_service/queries.d.ts +1 -0
- package/dist/src/graphql/accounting_service/queries.js +62 -0
- package/dist/src/graphql/auth/mutations.d.ts +3 -0
- package/dist/src/graphql/auth/mutations.js +41 -3
- package/dist/src/graphql/crm_camping/mutations.d.ts +1 -0
- package/dist/src/graphql/crm_camping/mutations.js +37 -0
- package/dist/src/graphql/crm_camping/queries.d.ts +8 -0
- package/dist/src/graphql/crm_camping/queries.js +279 -0
- package/dist/src/graphql/orderGraphQL/mutations.d.ts +4 -0
- package/dist/src/graphql/orderGraphQL/mutations.js +359 -0
- package/dist/src/graphql/orderGraphQL/queries.d.ts +7 -0
- package/dist/src/graphql/orderGraphQL/queries.js +402 -0
- package/dist/src/graphql/paymentLV/mutations.d.ts +2 -0
- package/dist/src/graphql/paymentLV/mutations.js +25 -0
- package/dist/src/graphql/paymentLV/queries.d.ts +4 -0
- package/dist/src/graphql/paymentLV/queries.js +83 -0
- package/dist/src/graphql/quicklab_service/mutations.d.ts +8 -0
- package/dist/src/graphql/quicklab_service/mutations.js +171 -0
- package/dist/src/graphql/quicklab_service/queries.d.ts +6 -0
- package/dist/src/graphql/quicklab_service/queries.js +121 -0
- package/dist/src/graphql/resource_permission/mutations.d.ts +2 -0
- package/dist/src/graphql/resource_permission/mutations.js +63 -0
- package/dist/src/graphql/resource_permission/queries.d.ts +1 -0
- package/dist/src/graphql/resource_permission/queries.js +18 -0
- package/dist/src/lib/accounting_service/index.d.ts +9 -0
- package/dist/src/lib/accounting_service/index.js +69 -0
- package/dist/src/lib/auth/index.d.ts +7 -3
- package/dist/src/lib/auth/index.js +68 -3
- package/dist/src/lib/cloud_rest/index.d.ts +17 -0
- package/dist/src/lib/cloud_rest/index.js +101 -0
- package/dist/src/lib/crm_camping/index.d.ts +16 -0
- package/dist/src/lib/crm_camping/index.js +227 -0
- package/dist/src/lib/dns/index.d.ts +7 -0
- package/dist/src/lib/dns/index.js +40 -0
- package/dist/src/lib/fileService/index.js +2 -2
- package/dist/src/lib/orderGraphQL/index.d.ts +16 -0
- package/dist/src/lib/orderGraphQL/index.js +192 -0
- package/dist/src/lib/order_cloud_rest/index.d.ts +7 -0
- package/dist/src/lib/order_cloud_rest/index.js +39 -0
- package/dist/src/lib/paymentLV/index.d.ts +12 -0
- package/dist/src/lib/paymentLV/index.js +132 -0
- package/dist/src/lib/quicklab_service/index.d.ts +18 -0
- package/dist/src/lib/quicklab_service/index.js +197 -0
- package/dist/src/lib/resource_permission/index.d.ts +9 -0
- package/dist/src/lib/resource_permission/index.js +81 -0
- package/package.json +1 -1
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REMOVE_PRODUCT_OPTION_ORDER_LINE_ITEM = exports.ADD_TO_CART = exports.UPDATE_QUANTITY_V2 = exports.CREATE_ORDER = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
exports.CREATE_ORDER = (0, graphql_tag_1.gql) `
|
|
6
|
+
mutation CreateOrder($input: CreateOrderInput!) {
|
|
7
|
+
createOrder(input: $input) {
|
|
8
|
+
cancelReason
|
|
9
|
+
currencyCode
|
|
10
|
+
currentSubtotalPrice {
|
|
11
|
+
amount
|
|
12
|
+
currencyCode
|
|
13
|
+
}
|
|
14
|
+
currentTotalDuties {
|
|
15
|
+
amount
|
|
16
|
+
currencyCode
|
|
17
|
+
}
|
|
18
|
+
currentTotalPrice {
|
|
19
|
+
amount
|
|
20
|
+
currencyCode
|
|
21
|
+
}
|
|
22
|
+
currentTotalTax {
|
|
23
|
+
amount
|
|
24
|
+
currencyCode
|
|
25
|
+
}
|
|
26
|
+
edited
|
|
27
|
+
financialStatus
|
|
28
|
+
fulfillmentStatus
|
|
29
|
+
orderStatus
|
|
30
|
+
id
|
|
31
|
+
partnerId
|
|
32
|
+
ownerName
|
|
33
|
+
ownerEmail
|
|
34
|
+
ownerPhone
|
|
35
|
+
orderNumber
|
|
36
|
+
originalTotalDuties {
|
|
37
|
+
amount
|
|
38
|
+
currencyCode
|
|
39
|
+
}
|
|
40
|
+
originalTotalPrice {
|
|
41
|
+
amount
|
|
42
|
+
currencyCode
|
|
43
|
+
}
|
|
44
|
+
shippingAddress {
|
|
45
|
+
address1
|
|
46
|
+
address2
|
|
47
|
+
city
|
|
48
|
+
company
|
|
49
|
+
country
|
|
50
|
+
countryCode
|
|
51
|
+
firstName
|
|
52
|
+
formattedArea
|
|
53
|
+
id
|
|
54
|
+
lastName
|
|
55
|
+
latitude
|
|
56
|
+
longitude
|
|
57
|
+
name
|
|
58
|
+
phone
|
|
59
|
+
province
|
|
60
|
+
provinceCode
|
|
61
|
+
zip
|
|
62
|
+
}
|
|
63
|
+
subtotalPrice {
|
|
64
|
+
amount
|
|
65
|
+
currencyCode
|
|
66
|
+
}
|
|
67
|
+
totalPrice {
|
|
68
|
+
amount
|
|
69
|
+
currencyCode
|
|
70
|
+
}
|
|
71
|
+
totalRefunded {
|
|
72
|
+
amount
|
|
73
|
+
currencyCode
|
|
74
|
+
}
|
|
75
|
+
totalShippingPrice {
|
|
76
|
+
amount
|
|
77
|
+
currencyCode
|
|
78
|
+
}
|
|
79
|
+
totalTax {
|
|
80
|
+
amount
|
|
81
|
+
currencyCode
|
|
82
|
+
}
|
|
83
|
+
discountTotalPrice {
|
|
84
|
+
amount
|
|
85
|
+
currencyCode
|
|
86
|
+
}
|
|
87
|
+
cod {
|
|
88
|
+
amount
|
|
89
|
+
currencyCode
|
|
90
|
+
}
|
|
91
|
+
rawData
|
|
92
|
+
orderId
|
|
93
|
+
note
|
|
94
|
+
pending
|
|
95
|
+
checkCommodities
|
|
96
|
+
shipmentNote
|
|
97
|
+
shopId
|
|
98
|
+
facilityId
|
|
99
|
+
orderType
|
|
100
|
+
shippingServiceId
|
|
101
|
+
carrierId
|
|
102
|
+
fromOrderId
|
|
103
|
+
externalCode
|
|
104
|
+
createdAt
|
|
105
|
+
createdStamp
|
|
106
|
+
canceledAt
|
|
107
|
+
updatedAt
|
|
108
|
+
approvedAt
|
|
109
|
+
processedAt
|
|
110
|
+
completedAt
|
|
111
|
+
createdBy
|
|
112
|
+
saleName
|
|
113
|
+
salePartyId
|
|
114
|
+
ownerPartyId
|
|
115
|
+
customerLocale
|
|
116
|
+
orderParentId
|
|
117
|
+
totalVAT {
|
|
118
|
+
amount
|
|
119
|
+
currencyCode
|
|
120
|
+
}
|
|
121
|
+
shopName
|
|
122
|
+
version
|
|
123
|
+
discountApplications {
|
|
124
|
+
allocationMethod
|
|
125
|
+
targetSelection
|
|
126
|
+
targetType
|
|
127
|
+
title
|
|
128
|
+
value {
|
|
129
|
+
amount
|
|
130
|
+
currencyCode
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
`;
|
|
136
|
+
exports.UPDATE_QUANTITY_V2 = (0, graphql_tag_1.gql) `
|
|
137
|
+
mutation UpdateQuantityV2(
|
|
138
|
+
$partnerId: String!
|
|
139
|
+
$orderId: String!
|
|
140
|
+
$updateItemInputs: [UpdateItemInput]!
|
|
141
|
+
$updateBy: String!
|
|
142
|
+
) {
|
|
143
|
+
updateQuantityV2(
|
|
144
|
+
partnerId: $partnerId
|
|
145
|
+
orderId: $orderId
|
|
146
|
+
updateItemInputs: $updateItemInputs
|
|
147
|
+
updateBy: $updateBy
|
|
148
|
+
) {
|
|
149
|
+
cancelReason
|
|
150
|
+
currencyCode
|
|
151
|
+
currentSubtotalPrice {
|
|
152
|
+
amount
|
|
153
|
+
currencyCode
|
|
154
|
+
}
|
|
155
|
+
currentTotalDuties {
|
|
156
|
+
amount
|
|
157
|
+
currencyCode
|
|
158
|
+
}
|
|
159
|
+
currentTotalPrice {
|
|
160
|
+
amount
|
|
161
|
+
currencyCode
|
|
162
|
+
}
|
|
163
|
+
currentTotalTax {
|
|
164
|
+
amount
|
|
165
|
+
currencyCode
|
|
166
|
+
}
|
|
167
|
+
edited
|
|
168
|
+
financialStatus
|
|
169
|
+
fulfillmentStatus
|
|
170
|
+
orderStatus
|
|
171
|
+
id
|
|
172
|
+
partnerId
|
|
173
|
+
ownerName
|
|
174
|
+
ownerEmail
|
|
175
|
+
ownerPhone
|
|
176
|
+
orderNumber
|
|
177
|
+
originalTotalDuties {
|
|
178
|
+
amount
|
|
179
|
+
currencyCode
|
|
180
|
+
}
|
|
181
|
+
originalTotalPrice {
|
|
182
|
+
amount
|
|
183
|
+
currencyCode
|
|
184
|
+
}
|
|
185
|
+
shippingAddress {
|
|
186
|
+
address1
|
|
187
|
+
address2
|
|
188
|
+
city
|
|
189
|
+
company
|
|
190
|
+
country
|
|
191
|
+
countryCode
|
|
192
|
+
firstName
|
|
193
|
+
formattedArea
|
|
194
|
+
id
|
|
195
|
+
lastName
|
|
196
|
+
latitude
|
|
197
|
+
longitude
|
|
198
|
+
name
|
|
199
|
+
phone
|
|
200
|
+
province
|
|
201
|
+
provinceCode
|
|
202
|
+
zip
|
|
203
|
+
}
|
|
204
|
+
subtotalPrice {
|
|
205
|
+
amount
|
|
206
|
+
currencyCode
|
|
207
|
+
}
|
|
208
|
+
totalPrice {
|
|
209
|
+
amount
|
|
210
|
+
currencyCode
|
|
211
|
+
}
|
|
212
|
+
totalRefunded {
|
|
213
|
+
amount
|
|
214
|
+
currencyCode
|
|
215
|
+
}
|
|
216
|
+
totalShippingPrice {
|
|
217
|
+
amount
|
|
218
|
+
currencyCode
|
|
219
|
+
}
|
|
220
|
+
totalTax {
|
|
221
|
+
amount
|
|
222
|
+
currencyCode
|
|
223
|
+
}
|
|
224
|
+
discountTotalPrice {
|
|
225
|
+
amount
|
|
226
|
+
currencyCode
|
|
227
|
+
}
|
|
228
|
+
cod {
|
|
229
|
+
amount
|
|
230
|
+
currencyCode
|
|
231
|
+
}
|
|
232
|
+
rawData
|
|
233
|
+
orderId
|
|
234
|
+
note
|
|
235
|
+
pending
|
|
236
|
+
checkCommodities
|
|
237
|
+
shipmentNote
|
|
238
|
+
shopId
|
|
239
|
+
facilityId
|
|
240
|
+
orderType
|
|
241
|
+
shippingServiceId
|
|
242
|
+
carrierId
|
|
243
|
+
fromOrderId
|
|
244
|
+
externalCode
|
|
245
|
+
createdAt
|
|
246
|
+
createdStamp
|
|
247
|
+
canceledAt
|
|
248
|
+
updatedAt
|
|
249
|
+
approvedAt
|
|
250
|
+
processedAt
|
|
251
|
+
completedAt
|
|
252
|
+
createdBy
|
|
253
|
+
saleName
|
|
254
|
+
salePartyId
|
|
255
|
+
ownerPartyId
|
|
256
|
+
customerLocale
|
|
257
|
+
orderParentId
|
|
258
|
+
totalVAT {
|
|
259
|
+
amount
|
|
260
|
+
currencyCode
|
|
261
|
+
}
|
|
262
|
+
shopName
|
|
263
|
+
version
|
|
264
|
+
discountApplications {
|
|
265
|
+
allocationMethod
|
|
266
|
+
targetSelection
|
|
267
|
+
targetType
|
|
268
|
+
title
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
`;
|
|
273
|
+
exports.ADD_TO_CART = (0, graphql_tag_1.gql) `
|
|
274
|
+
mutation AddToCart($serviceId: String!, $actorId: String!, $cartId: String) {
|
|
275
|
+
addToCart(serviceId: $serviceId, actorId: $actorId, cartId: $cartId) {
|
|
276
|
+
order {
|
|
277
|
+
financialStatus
|
|
278
|
+
orderStatus
|
|
279
|
+
ownerName
|
|
280
|
+
ownerEmail
|
|
281
|
+
ownerPhone
|
|
282
|
+
ownerPartyId
|
|
283
|
+
orderId
|
|
284
|
+
id
|
|
285
|
+
createdAt
|
|
286
|
+
currentTotalPrice {
|
|
287
|
+
amount
|
|
288
|
+
currencyCode
|
|
289
|
+
}
|
|
290
|
+
createdStamp
|
|
291
|
+
}
|
|
292
|
+
lineItems {
|
|
293
|
+
orderLineItem {
|
|
294
|
+
unitType
|
|
295
|
+
customAttributes {
|
|
296
|
+
key
|
|
297
|
+
value
|
|
298
|
+
}
|
|
299
|
+
id
|
|
300
|
+
orderItemId
|
|
301
|
+
quantity
|
|
302
|
+
totalVAT {
|
|
303
|
+
amount
|
|
304
|
+
currencyCode
|
|
305
|
+
}
|
|
306
|
+
variant {
|
|
307
|
+
id
|
|
308
|
+
price {
|
|
309
|
+
amount
|
|
310
|
+
currencyCode
|
|
311
|
+
}
|
|
312
|
+
product {
|
|
313
|
+
id
|
|
314
|
+
title
|
|
315
|
+
}
|
|
316
|
+
title
|
|
317
|
+
unitPrice {
|
|
318
|
+
amount
|
|
319
|
+
currencyCode
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
productOptions {
|
|
323
|
+
idOption
|
|
324
|
+
name
|
|
325
|
+
value
|
|
326
|
+
title
|
|
327
|
+
}
|
|
328
|
+
resourceItems {
|
|
329
|
+
name
|
|
330
|
+
quantity
|
|
331
|
+
unit
|
|
332
|
+
productId
|
|
333
|
+
}
|
|
334
|
+
resourceConfigs {
|
|
335
|
+
name
|
|
336
|
+
quantity
|
|
337
|
+
unit
|
|
338
|
+
productId
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
`;
|
|
345
|
+
exports.REMOVE_PRODUCT_OPTION_ORDER_LINE_ITEM = (0, graphql_tag_1.gql) `
|
|
346
|
+
mutation RemoveProductOptionOrderLineItem(
|
|
347
|
+
$partnerId: String!
|
|
348
|
+
$orderLineItemId: String!
|
|
349
|
+
$optionId: String!
|
|
350
|
+
$updateBy: String!
|
|
351
|
+
) {
|
|
352
|
+
removeProductOptionOrderLineItem(
|
|
353
|
+
partnerId: $partnerId
|
|
354
|
+
orderLineItemId: $orderLineItemId
|
|
355
|
+
optionId: $optionId
|
|
356
|
+
updateBy: $updateBy
|
|
357
|
+
)
|
|
358
|
+
}
|
|
359
|
+
`;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DocumentNode } from "graphql";
|
|
2
|
+
export declare const GET_ORDER_DETAIL: DocumentNode;
|
|
3
|
+
export declare const GET_ORDER_DETAIL_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
4
|
+
export declare const GET_QUANTITY_ORDER_LINEITEMS: DocumentNode;
|
|
5
|
+
export declare const GET_ORDER_LINE_ITEM_BY_SERVICE_ID: DocumentNode;
|
|
6
|
+
export declare const GET_ORDER_BY_SERVICE_ID: DocumentNode;
|
|
7
|
+
export declare const FIND_ORDER_BY_OWNER_PARTYID: DocumentNode;
|