@longvansoftware/storefront-js-client 3.7.6 → 3.7.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.
Files changed (55) hide show
  1. package/dist/src/graphql/product/queries.d.ts +1 -0
  2. package/dist/src/graphql/product/queries.js +53 -1
  3. package/dist/src/lib/product/index.d.ts +1 -0
  4. package/dist/src/lib/product/index.js +17 -0
  5. package/package.json +2 -3
  6. package/dist/src/graphql/accounting_service/mutations.d.ts +0 -2
  7. package/dist/src/graphql/accounting_service/mutations.js +0 -102
  8. package/dist/src/graphql/accounting_service/queries.d.ts +0 -1
  9. package/dist/src/graphql/accounting_service/queries.js +0 -62
  10. package/dist/src/graphql/crm_camping/mutations.d.ts +0 -1
  11. package/dist/src/graphql/crm_camping/mutations.js +0 -37
  12. package/dist/src/graphql/crm_camping/queries.d.ts +0 -8
  13. package/dist/src/graphql/crm_camping/queries.js +0 -279
  14. package/dist/src/graphql/fragments/product.d.ts +0 -38
  15. package/dist/src/graphql/fragments/product.js +0 -196
  16. package/dist/src/graphql/orderGraphQL/mutations.d.ts +0 -4
  17. package/dist/src/graphql/orderGraphQL/mutations.js +0 -359
  18. package/dist/src/graphql/orderGraphQL/queries.d.ts +0 -7
  19. package/dist/src/graphql/orderGraphQL/queries.js +0 -402
  20. package/dist/src/graphql/paymentLV/mutations.d.ts +0 -2
  21. package/dist/src/graphql/paymentLV/mutations.js +0 -25
  22. package/dist/src/graphql/paymentLV/queries.d.ts +0 -4
  23. package/dist/src/graphql/paymentLV/queries.js +0 -83
  24. package/dist/src/graphql/quicklab_service/mutations.d.ts +0 -8
  25. package/dist/src/graphql/quicklab_service/mutations.js +0 -171
  26. package/dist/src/graphql/quicklab_service/queries.d.ts +0 -6
  27. package/dist/src/graphql/quicklab_service/queries.js +0 -121
  28. package/dist/src/graphql/resource_permission/mutations.d.ts +0 -2
  29. package/dist/src/graphql/resource_permission/mutations.js +0 -63
  30. package/dist/src/graphql/resource_permission/queries.d.ts +0 -1
  31. package/dist/src/graphql/resource_permission/queries.js +0 -18
  32. package/dist/src/lib/accounting_service/index.d.ts +0 -9
  33. package/dist/src/lib/accounting_service/index.js +0 -69
  34. package/dist/src/lib/cloud_rest/index.d.ts +0 -17
  35. package/dist/src/lib/cloud_rest/index.js +0 -101
  36. package/dist/src/lib/crm_camping/index.d.ts +0 -16
  37. package/dist/src/lib/crm_camping/index.js +0 -227
  38. package/dist/src/lib/dns/index.d.ts +0 -7
  39. package/dist/src/lib/dns/index.js +0 -40
  40. package/dist/src/lib/orderGraphQL/index.d.ts +0 -16
  41. package/dist/src/lib/orderGraphQL/index.js +0 -192
  42. package/dist/src/lib/order_cloud_rest/index.d.ts +0 -7
  43. package/dist/src/lib/order_cloud_rest/index.js +0 -39
  44. package/dist/src/lib/paymentLV/index.d.ts +0 -12
  45. package/dist/src/lib/paymentLV/index.js +0 -132
  46. package/dist/src/lib/quicklab_service/index.d.ts +0 -18
  47. package/dist/src/lib/quicklab_service/index.js +0 -197
  48. package/dist/src/lib/resource_permission/index.d.ts +0 -9
  49. package/dist/src/lib/resource_permission/index.js +0 -81
  50. package/dist/src/lib/shareZalo/index.d.ts +0 -5
  51. package/dist/src/lib/shareZalo/index.js +0 -32
  52. package/dist/src/types/common.d.ts +0 -264
  53. package/dist/src/types/common.js +0 -35
  54. package/dist/src/utils/errorHandler.d.ts +0 -64
  55. package/dist/src/utils/errorHandler.js +0 -197
@@ -1,196 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PRODUCT_EXTENDED_FIELDS = exports.PRODUCT_SIMPLE_FIELDS = exports.PRODUCT_FULL_DETAILS = exports.PRODUCT_UNIT = exports.PRODUCT_CATEGORIES = exports.PRODUCT_FEATURE_TYPES = exports.PRODUCT_VARIANTS = exports.PRODUCT_ATTRIBUTES = exports.PRODUCT_CORE_FIELDS = void 0;
4
- const graphql_tag_1 = require("graphql-tag");
5
- /**
6
- * Common product fields fragment
7
- * Used across multiple product queries to reduce duplication
8
- */
9
- exports.PRODUCT_CORE_FIELDS = (0, graphql_tag_1.gql) `
10
- fragment ProductCoreFields on Product {
11
- id
12
- title
13
- description
14
- sku
15
- shortDescription
16
- weight
17
- width
18
- depth
19
- height
20
- vat
21
- qualify
22
- parentId
23
- handle
24
- price
25
- options
26
- optionsRelationship
27
- compareAtPrice
28
- featuredImage
29
- images
30
- }
31
- `;
32
- /**
33
- * Product attributes fragment
34
- */
35
- exports.PRODUCT_ATTRIBUTES = (0, graphql_tag_1.gql) `
36
- fragment ProductAttributes on Product {
37
- productAttributes {
38
- attributeName
39
- attributeValue
40
- }
41
- }
42
- `;
43
- /**
44
- * Product variants fragment
45
- */
46
- exports.PRODUCT_VARIANTS = (0, graphql_tag_1.gql) `
47
- fragment ProductVariants on Product {
48
- variants {
49
- id
50
- handle
51
- title
52
- price
53
- compareAtPrice
54
- options
55
- optionsIds
56
- featuredImage
57
- sku
58
- }
59
- }
60
- `;
61
- /**
62
- * Product feature types fragment
63
- */
64
- exports.PRODUCT_FEATURE_TYPES = (0, graphql_tag_1.gql) `
65
- fragment ProductFeatureTypes on Product {
66
- featureTypes {
67
- id
68
- name
69
- values
70
- valuesFull {
71
- id
72
- name
73
- }
74
- }
75
- }
76
- `;
77
- /**
78
- * Product categories fragment
79
- */
80
- exports.PRODUCT_CATEGORIES = (0, graphql_tag_1.gql) `
81
- fragment ProductCategories on Product {
82
- categories {
83
- id
84
- title
85
- handle
86
- }
87
- }
88
- `;
89
- /**
90
- * Product unit fragment
91
- */
92
- exports.PRODUCT_UNIT = (0, graphql_tag_1.gql) `
93
- fragment ProductUnit on Product {
94
- unitDTO {
95
- id
96
- name
97
- }
98
- }
99
- `;
100
- /**
101
- * Complete product details fragment
102
- * Combines all product fragments for detailed queries
103
- */
104
- exports.PRODUCT_FULL_DETAILS = (0, graphql_tag_1.gql) `
105
- fragment ProductFullDetails on Product {
106
- ...ProductCoreFields
107
- ...ProductAttributes
108
- ...ProductVariants
109
- ...ProductFeatureTypes
110
- ...ProductCategories
111
- ...ProductUnit
112
- }
113
- ${exports.PRODUCT_CORE_FIELDS}
114
- ${exports.PRODUCT_ATTRIBUTES}
115
- ${exports.PRODUCT_VARIANTS}
116
- ${exports.PRODUCT_FEATURE_TYPES}
117
- ${exports.PRODUCT_CATEGORIES}
118
- ${exports.PRODUCT_UNIT}
119
- `;
120
- /**
121
- * Simple product fields for list views
122
- */
123
- exports.PRODUCT_SIMPLE_FIELDS = (0, graphql_tag_1.gql) `
124
- fragment ProductSimpleFields on Product {
125
- id
126
- title
127
- sku
128
- shortDescription
129
- description
130
- subType
131
- vat
132
- qualify
133
- parentId
134
- handle
135
- price
136
- compareAtPrice
137
- priceType
138
- priceTypeName
139
- featuredImage
140
- optionsRelationship
141
- images
142
- }
143
- `;
144
- /**
145
- * Extended product fields for getProducts query
146
- */
147
- exports.PRODUCT_EXTENDED_FIELDS = (0, graphql_tag_1.gql) `
148
- fragment ProductExtendedFields on Product {
149
- id
150
- title
151
- subType
152
- description
153
- sku
154
- shortDescription
155
- weight
156
- width
157
- depth
158
- height
159
- vat
160
- qualify
161
- parentId
162
- handle
163
- price
164
- priceType
165
- salePolicy
166
- priceTypeName
167
- priceVaries
168
- available
169
- tags
170
- options
171
- optionsRelationship
172
- compareAtPrice
173
- featuredImage
174
- images
175
- categories {
176
- id
177
- title
178
- image
179
- icon
180
- parentId
181
- level
182
- handle
183
- description
184
- }
185
- groups {
186
- id
187
- name
188
- policy
189
- image
190
- }
191
- unitDTO {
192
- id
193
- name
194
- }
195
- }
196
- `;
@@ -1,4 +0,0 @@
1
- export declare const CREATE_ORDER: import("graphql").DocumentNode;
2
- export declare const UPDATE_QUANTITY_V2: import("graphql").DocumentNode;
3
- export declare const ADD_TO_CART: import("graphql").DocumentNode;
4
- export declare const REMOVE_PRODUCT_OPTION_ORDER_LINE_ITEM: import("graphql").DocumentNode;
@@ -1,359 +0,0 @@
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
- `;
@@ -1,7 +0,0 @@
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;