@propeller-commerce/propeller-sdk-v2 0.14.0 → 0.16.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 (60) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/README.md +19 -0
  3. package/dist/cjs/generated/operationVariables.d.ts +21 -0
  4. package/dist/cjs/generated/operations/category.js +30 -1
  5. package/dist/cjs/generated/operations/categoryAddProductsClusters.js +30 -1
  6. package/dist/cjs/generated/operations/categoryBySlug.js +30 -1
  7. package/dist/cjs/generated/operations/categoryBySource.js +30 -1
  8. package/dist/cjs/generated/operations/categoryChildren.js +30 -1
  9. package/dist/cjs/generated/operations/categoryCreate.js +30 -1
  10. package/dist/cjs/generated/operations/categoryHierarchy.js +30 -1
  11. package/dist/cjs/generated/operations/categoryMoveAbove.js +30 -1
  12. package/dist/cjs/generated/operations/categoryMoveBelow.js +30 -1
  13. package/dist/cjs/generated/operations/categoryRemoveProductsClusters.js +30 -1
  14. package/dist/cjs/generated/operations/categoryUpdate.js +30 -1
  15. package/dist/cjs/generated/operations/crossupsell.js +30 -1
  16. package/dist/cjs/generated/operations/crossupsellCreate.js +30 -1
  17. package/dist/cjs/generated/operations/crossupsellUpdate.js +30 -1
  18. package/dist/cjs/generated/operations/crossupsells.js +30 -1
  19. package/dist/cjs/generated/operations/favoriteList.js +30 -1
  20. package/dist/cjs/generated/operations/machine.js +30 -1
  21. package/dist/cjs/generated/operations/machineCreate.js +30 -1
  22. package/dist/cjs/generated/operations/machineUpsert.js +30 -1
  23. package/dist/cjs/generated/operations/machines.js +30 -1
  24. package/dist/cjs/generated/operations/products.js +30 -1
  25. package/dist/cjs/service/CategoryService.d.ts +2 -0
  26. package/dist/cjs/service/CrossupsellService.d.ts +3 -0
  27. package/dist/cjs/service/ProductService.d.ts +2 -0
  28. package/dist/cjs/type/CategoryProductSearchInput.d.ts +6 -0
  29. package/dist/cjs/type/ProductSearchByCategoryInput.d.ts +6 -0
  30. package/dist/cjs/type/ProductSearchInput.d.ts +6 -0
  31. package/dist/cjs/type/ProductSearchInventoryFilterInput.d.ts +30 -0
  32. package/dist/cjs/type/ProductSearchInventoryFilterInput.js +2 -0
  33. package/dist/cjs/type/ProductSearchSearchInput.d.ts +6 -0
  34. package/dist/cjs/type/SparePartsMachineProductSearchInput.d.ts +6 -0
  35. package/dist/cjs/type/index.d.ts +1 -0
  36. package/dist/cjs/type/index.js +1 -0
  37. package/dist/esm/generated/operations/category.js +30 -1
  38. package/dist/esm/generated/operations/categoryAddProductsClusters.js +30 -1
  39. package/dist/esm/generated/operations/categoryBySlug.js +30 -1
  40. package/dist/esm/generated/operations/categoryBySource.js +30 -1
  41. package/dist/esm/generated/operations/categoryChildren.js +30 -1
  42. package/dist/esm/generated/operations/categoryCreate.js +30 -1
  43. package/dist/esm/generated/operations/categoryHierarchy.js +30 -1
  44. package/dist/esm/generated/operations/categoryMoveAbove.js +30 -1
  45. package/dist/esm/generated/operations/categoryMoveBelow.js +30 -1
  46. package/dist/esm/generated/operations/categoryRemoveProductsClusters.js +30 -1
  47. package/dist/esm/generated/operations/categoryUpdate.js +30 -1
  48. package/dist/esm/generated/operations/crossupsell.js +30 -1
  49. package/dist/esm/generated/operations/crossupsellCreate.js +30 -1
  50. package/dist/esm/generated/operations/crossupsellUpdate.js +30 -1
  51. package/dist/esm/generated/operations/crossupsells.js +30 -1
  52. package/dist/esm/generated/operations/favoriteList.js +30 -1
  53. package/dist/esm/generated/operations/machine.js +30 -1
  54. package/dist/esm/generated/operations/machineCreate.js +30 -1
  55. package/dist/esm/generated/operations/machineUpsert.js +30 -1
  56. package/dist/esm/generated/operations/machines.js +30 -1
  57. package/dist/esm/generated/operations/products.js +30 -1
  58. package/dist/esm/type/ProductSearchInventoryFilterInput.js +1 -0
  59. package/dist/esm/type/index.js +1 -0
  60. package/package.json +1 -1
@@ -373,6 +373,11 @@ fragment ProductGridFields on Product {
373
373
  ...IBaseProductFields
374
374
  productId
375
375
  categoryId
376
+ attributes(input: \$attributeResultSearchInput) {
377
+ items {
378
+ ...AttributeResultGridFields
379
+ }
380
+ }
376
381
  inventory {
377
382
  ...ProductInventoryFields
378
383
  }
@@ -421,6 +426,30 @@ fragment ProductGridFields on Product {
421
426
  containerClass
422
427
  }
423
428
 
429
+ fragment AttributeResultGridFields on AttributeResult {
430
+ attributeDescription {
431
+ name
432
+ }
433
+ value {
434
+ __typename
435
+ ... on AttributeTextValue {
436
+ textValues {
437
+ language
438
+ values
439
+ }
440
+ }
441
+ ... on AttributeEnumValue {
442
+ enumValues
443
+ }
444
+ ... on AttributeIntValue {
445
+ intValue
446
+ }
447
+ ... on AttributeDecimalValue {
448
+ decimalValue
449
+ }
450
+ }
451
+ }
452
+
424
453
  fragment ProductInventoryFields on ProductInventory {
425
454
  productId
426
455
  totalQuantity
@@ -621,7 +650,7 @@ fragment AttributeFilterFields on AttributeFilter {
621
650
  }
622
651
  }
623
652
 
624
- mutation categoryMoveBelow(\$categoryUuid: String!, \$targetCategoryUuid: String!, \$categoryProductSearchInput: CategoryProductSearchInput, \$language: String, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$imageVariantFilters: TransformationsInput!) {
653
+ mutation categoryMoveBelow(\$categoryUuid: String!, \$targetCategoryUuid: String!, \$categoryProductSearchInput: CategoryProductSearchInput, \$language: String, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$imageVariantFilters: TransformationsInput!, \$attributeResultSearchInput: AttributeResultSearchInput) {
625
654
  categoryMoveBelow(
626
655
  categoryUuid: \$categoryUuid
627
656
  targetCategoryUuid: \$targetCategoryUuid
@@ -382,6 +382,11 @@ fragment ProductGridFields on Product {
382
382
  ...IBaseProductFields
383
383
  productId
384
384
  categoryId
385
+ attributes(input: \$attributeResultSearchInput) {
386
+ items {
387
+ ...AttributeResultGridFields
388
+ }
389
+ }
385
390
  inventory {
386
391
  ...ProductInventoryFields
387
392
  }
@@ -430,6 +435,30 @@ fragment ProductGridFields on Product {
430
435
  containerClass
431
436
  }
432
437
 
438
+ fragment AttributeResultGridFields on AttributeResult {
439
+ attributeDescription {
440
+ name
441
+ }
442
+ value {
443
+ __typename
444
+ ... on AttributeTextValue {
445
+ textValues {
446
+ language
447
+ values
448
+ }
449
+ }
450
+ ... on AttributeEnumValue {
451
+ enumValues
452
+ }
453
+ ... on AttributeIntValue {
454
+ intValue
455
+ }
456
+ ... on AttributeDecimalValue {
457
+ decimalValue
458
+ }
459
+ }
460
+ }
461
+
433
462
  fragment ProductInventoryFields on ProductInventory {
434
463
  productId
435
464
  totalQuantity
@@ -630,7 +659,7 @@ fragment AttributeFilterFields on AttributeFilter {
630
659
  }
631
660
  }
632
661
 
633
- mutation categoryRemoveProductsClusters(\$id: Int!, \$input: CategoryRemoveProductsClustersInput!, \$categoryProductSearchInput: CategoryProductSearchInput, \$language: String, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$imageVariantFilters: TransformationsInput!) {
662
+ mutation categoryRemoveProductsClusters(\$id: Int!, \$input: CategoryRemoveProductsClustersInput!, \$categoryProductSearchInput: CategoryProductSearchInput, \$language: String, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$imageVariantFilters: TransformationsInput!, \$attributeResultSearchInput: AttributeResultSearchInput) {
634
663
  categoryRemoveProductsClusters(id: \$id, input: \$input) {
635
664
  ...CategoryRemoveProductsClustersResponseFields
636
665
  }
@@ -373,6 +373,11 @@ fragment ProductGridFields on Product {
373
373
  ...IBaseProductFields
374
374
  productId
375
375
  categoryId
376
+ attributes(input: \$attributeResultSearchInput) {
377
+ items {
378
+ ...AttributeResultGridFields
379
+ }
380
+ }
376
381
  inventory {
377
382
  ...ProductInventoryFields
378
383
  }
@@ -421,6 +426,30 @@ fragment ProductGridFields on Product {
421
426
  containerClass
422
427
  }
423
428
 
429
+ fragment AttributeResultGridFields on AttributeResult {
430
+ attributeDescription {
431
+ name
432
+ }
433
+ value {
434
+ __typename
435
+ ... on AttributeTextValue {
436
+ textValues {
437
+ language
438
+ values
439
+ }
440
+ }
441
+ ... on AttributeEnumValue {
442
+ enumValues
443
+ }
444
+ ... on AttributeIntValue {
445
+ intValue
446
+ }
447
+ ... on AttributeDecimalValue {
448
+ decimalValue
449
+ }
450
+ }
451
+ }
452
+
424
453
  fragment ProductInventoryFields on ProductInventory {
425
454
  productId
426
455
  totalQuantity
@@ -621,7 +650,7 @@ fragment AttributeFilterFields on AttributeFilter {
621
650
  }
622
651
  }
623
652
 
624
- mutation categoryUpdate(\$categoryId: Float!, \$input: UpdateCategoryInput!, \$categoryProductSearchInput: CategoryProductSearchInput, \$language: String, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$imageVariantFilters: TransformationsInput!) {
653
+ mutation categoryUpdate(\$categoryId: Float!, \$input: UpdateCategoryInput!, \$categoryProductSearchInput: CategoryProductSearchInput, \$language: String, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$imageVariantFilters: TransformationsInput!, \$attributeResultSearchInput: AttributeResultSearchInput) {
625
654
  categoryUpdate(categoryId: \$categoryId, input: \$input) {
626
655
  ...CategoryFields
627
656
  }
@@ -96,6 +96,11 @@ fragment ProductGridFields on Product {
96
96
  ...IBaseProductFields
97
97
  productId
98
98
  categoryId
99
+ attributes(input: \$attributeResultSearchInput) {
100
+ items {
101
+ ...AttributeResultGridFields
102
+ }
103
+ }
99
104
  inventory {
100
105
  ...ProductInventoryFields
101
106
  }
@@ -144,6 +149,30 @@ fragment ProductGridFields on Product {
144
149
  containerClass
145
150
  }
146
151
 
152
+ fragment AttributeResultGridFields on AttributeResult {
153
+ attributeDescription {
154
+ name
155
+ }
156
+ value {
157
+ __typename
158
+ ... on AttributeTextValue {
159
+ textValues {
160
+ language
161
+ values
162
+ }
163
+ }
164
+ ... on AttributeEnumValue {
165
+ enumValues
166
+ }
167
+ ... on AttributeIntValue {
168
+ intValue
169
+ }
170
+ ... on AttributeDecimalValue {
171
+ decimalValue
172
+ }
173
+ }
174
+ }
175
+
147
176
  fragment ProductInventoryFields on ProductInventory {
148
177
  productId
149
178
  totalQuantity
@@ -311,7 +340,7 @@ fragment ProductClusterOptionsFields on Product {
311
340
  orderableTo
312
341
  }
313
342
 
314
- query crossupsell(\$id: String!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$language: String, \$imageVariantFilters: TransformationsInput!) {
343
+ query crossupsell(\$id: String!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$language: String, \$imageVariantFilters: TransformationsInput!, \$attributeResultSearchInput: AttributeResultSearchInput) {
315
344
  crossupsell(id: \$id) {
316
345
  ...CrossupsellFields
317
346
  }
@@ -96,6 +96,11 @@ fragment ProductGridFields on Product {
96
96
  ...IBaseProductFields
97
97
  productId
98
98
  categoryId
99
+ attributes(input: \$attributeResultSearchInput) {
100
+ items {
101
+ ...AttributeResultGridFields
102
+ }
103
+ }
99
104
  inventory {
100
105
  ...ProductInventoryFields
101
106
  }
@@ -144,6 +149,30 @@ fragment ProductGridFields on Product {
144
149
  containerClass
145
150
  }
146
151
 
152
+ fragment AttributeResultGridFields on AttributeResult {
153
+ attributeDescription {
154
+ name
155
+ }
156
+ value {
157
+ __typename
158
+ ... on AttributeTextValue {
159
+ textValues {
160
+ language
161
+ values
162
+ }
163
+ }
164
+ ... on AttributeEnumValue {
165
+ enumValues
166
+ }
167
+ ... on AttributeIntValue {
168
+ intValue
169
+ }
170
+ ... on AttributeDecimalValue {
171
+ decimalValue
172
+ }
173
+ }
174
+ }
175
+
147
176
  fragment ProductInventoryFields on ProductInventory {
148
177
  productId
149
178
  totalQuantity
@@ -311,7 +340,7 @@ fragment ProductClusterOptionsFields on Product {
311
340
  orderableTo
312
341
  }
313
342
 
314
- mutation crossupsellCreate(\$input: CrossupsellCreateInput!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$language: String, \$imageVariantFilters: TransformationsInput!) {
343
+ mutation crossupsellCreate(\$input: CrossupsellCreateInput!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$language: String, \$imageVariantFilters: TransformationsInput!, \$attributeResultSearchInput: AttributeResultSearchInput) {
315
344
  crossupsellCreate(input: \$input) {
316
345
  ...CrossupsellFields
317
346
  }
@@ -96,6 +96,11 @@ fragment ProductGridFields on Product {
96
96
  ...IBaseProductFields
97
97
  productId
98
98
  categoryId
99
+ attributes(input: \$attributeResultSearchInput) {
100
+ items {
101
+ ...AttributeResultGridFields
102
+ }
103
+ }
99
104
  inventory {
100
105
  ...ProductInventoryFields
101
106
  }
@@ -144,6 +149,30 @@ fragment ProductGridFields on Product {
144
149
  containerClass
145
150
  }
146
151
 
152
+ fragment AttributeResultGridFields on AttributeResult {
153
+ attributeDescription {
154
+ name
155
+ }
156
+ value {
157
+ __typename
158
+ ... on AttributeTextValue {
159
+ textValues {
160
+ language
161
+ values
162
+ }
163
+ }
164
+ ... on AttributeEnumValue {
165
+ enumValues
166
+ }
167
+ ... on AttributeIntValue {
168
+ intValue
169
+ }
170
+ ... on AttributeDecimalValue {
171
+ decimalValue
172
+ }
173
+ }
174
+ }
175
+
147
176
  fragment ProductInventoryFields on ProductInventory {
148
177
  productId
149
178
  totalQuantity
@@ -311,7 +340,7 @@ fragment ProductClusterOptionsFields on Product {
311
340
  orderableTo
312
341
  }
313
342
 
314
- mutation crossupsellUpdate(\$id: String!, \$input: CrossupsellUpdateInput!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$language: String, \$imageVariantFilters: TransformationsInput!) {
343
+ mutation crossupsellUpdate(\$id: String!, \$input: CrossupsellUpdateInput!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$language: String, \$imageVariantFilters: TransformationsInput!, \$attributeResultSearchInput: AttributeResultSearchInput) {
315
344
  crossupsellUpdate(id: \$id, input: \$input) {
316
345
  ...CrossupsellFields
317
346
  }
@@ -108,6 +108,11 @@ fragment ProductGridFields on Product {
108
108
  ...IBaseProductFields
109
109
  productId
110
110
  categoryId
111
+ attributes(input: \$attributeResultSearchInput) {
112
+ items {
113
+ ...AttributeResultGridFields
114
+ }
115
+ }
111
116
  inventory {
112
117
  ...ProductInventoryFields
113
118
  }
@@ -156,6 +161,30 @@ fragment ProductGridFields on Product {
156
161
  containerClass
157
162
  }
158
163
 
164
+ fragment AttributeResultGridFields on AttributeResult {
165
+ attributeDescription {
166
+ name
167
+ }
168
+ value {
169
+ __typename
170
+ ... on AttributeTextValue {
171
+ textValues {
172
+ language
173
+ values
174
+ }
175
+ }
176
+ ... on AttributeEnumValue {
177
+ enumValues
178
+ }
179
+ ... on AttributeIntValue {
180
+ intValue
181
+ }
182
+ ... on AttributeDecimalValue {
183
+ decimalValue
184
+ }
185
+ }
186
+ }
187
+
159
188
  fragment ProductInventoryFields on ProductInventory {
160
189
  productId
161
190
  totalQuantity
@@ -323,7 +352,7 @@ fragment ProductClusterOptionsFields on Product {
323
352
  orderableTo
324
353
  }
325
354
 
326
- query crossupsells(\$input: CrossupsellSearchInput, \$language: String, \$imageSearchFilters: MediaImageProductSearchInput, \$imageVariantFilters: TransformationsInput!, \$priceCalculateProductInput: PriceCalculateProductInput!) {
355
+ query crossupsells(\$input: CrossupsellSearchInput, \$language: String, \$imageSearchFilters: MediaImageProductSearchInput, \$imageVariantFilters: TransformationsInput!, \$priceCalculateProductInput: PriceCalculateProductInput!, \$attributeResultSearchInput: AttributeResultSearchInput) {
327
356
  crossupsells(input: \$input) {
328
357
  ...CrossupsellsResponseFields
329
358
  }
@@ -99,6 +99,11 @@ fragment ProductGridFields on Product {
99
99
  ...IBaseProductFields
100
100
  productId
101
101
  categoryId
102
+ attributes(input: \$attributeResultSearchInput) {
103
+ items {
104
+ ...AttributeResultGridFields
105
+ }
106
+ }
102
107
  inventory {
103
108
  ...ProductInventoryFields
104
109
  }
@@ -147,6 +152,30 @@ fragment ProductGridFields on Product {
147
152
  containerClass
148
153
  }
149
154
 
155
+ fragment AttributeResultGridFields on AttributeResult {
156
+ attributeDescription {
157
+ name
158
+ }
159
+ value {
160
+ __typename
161
+ ... on AttributeTextValue {
162
+ textValues {
163
+ language
164
+ values
165
+ }
166
+ }
167
+ ... on AttributeEnumValue {
168
+ enumValues
169
+ }
170
+ ... on AttributeIntValue {
171
+ intValue
172
+ }
173
+ ... on AttributeDecimalValue {
174
+ decimalValue
175
+ }
176
+ }
177
+ }
178
+
150
179
  fragment ProductInventoryFields on ProductInventory {
151
180
  productId
152
181
  totalQuantity
@@ -314,7 +343,7 @@ fragment ProductClusterOptionsFields on Product {
314
343
  orderableTo
315
344
  }
316
345
 
317
- query favoriteList(\$id: String!, \$language: String, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$imageVariantFilters: TransformationsInput!) {
346
+ query favoriteList(\$id: String!, \$language: String, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$imageVariantFilters: TransformationsInput!, \$attributeResultSearchInput: AttributeResultSearchInput) {
318
347
  favoriteList(id: \$id) {
319
348
  ...FavoriteListFields
320
349
  }
@@ -167,6 +167,11 @@ fragment ProductGridFields on Product {
167
167
  ...IBaseProductFields
168
168
  productId
169
169
  categoryId
170
+ attributes(input: \$attributeResultSearchInput) {
171
+ items {
172
+ ...AttributeResultGridFields
173
+ }
174
+ }
170
175
  inventory {
171
176
  ...ProductInventoryFields
172
177
  }
@@ -215,6 +220,30 @@ fragment ProductGridFields on Product {
215
220
  containerClass
216
221
  }
217
222
 
223
+ fragment AttributeResultGridFields on AttributeResult {
224
+ attributeDescription {
225
+ name
226
+ }
227
+ value {
228
+ __typename
229
+ ... on AttributeTextValue {
230
+ textValues {
231
+ language
232
+ values
233
+ }
234
+ }
235
+ ... on AttributeEnumValue {
236
+ enumValues
237
+ }
238
+ ... on AttributeIntValue {
239
+ intValue
240
+ }
241
+ ... on AttributeDecimalValue {
242
+ decimalValue
243
+ }
244
+ }
245
+ }
246
+
218
247
  fragment ProductInventoryFields on ProductInventory {
219
248
  productId
220
249
  totalQuantity
@@ -378,7 +407,7 @@ fragment AttributeFilterFields on AttributeFilter {
378
407
  }
379
408
  }
380
409
 
381
- query machine(\$id: String, \$slug: String, \$language: String, \$source: String, \$sourceId: String, \$sparePartsMachineProductSearchInput: SparePartsMachineProductSearchInput, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$imageVariantFilters: TransformationsInput!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput) {
410
+ query machine(\$id: String, \$slug: String, \$language: String, \$source: String, \$sourceId: String, \$sparePartsMachineProductSearchInput: SparePartsMachineProductSearchInput, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$imageVariantFilters: TransformationsInput!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$attributeResultSearchInput: AttributeResultSearchInput) {
382
411
  machine(
383
412
  id: \$id
384
413
  slug: \$slug
@@ -167,6 +167,11 @@ fragment ProductGridFields on Product {
167
167
  ...IBaseProductFields
168
168
  productId
169
169
  categoryId
170
+ attributes(input: \$attributeResultSearchInput) {
171
+ items {
172
+ ...AttributeResultGridFields
173
+ }
174
+ }
170
175
  inventory {
171
176
  ...ProductInventoryFields
172
177
  }
@@ -215,6 +220,30 @@ fragment ProductGridFields on Product {
215
220
  containerClass
216
221
  }
217
222
 
223
+ fragment AttributeResultGridFields on AttributeResult {
224
+ attributeDescription {
225
+ name
226
+ }
227
+ value {
228
+ __typename
229
+ ... on AttributeTextValue {
230
+ textValues {
231
+ language
232
+ values
233
+ }
234
+ }
235
+ ... on AttributeEnumValue {
236
+ enumValues
237
+ }
238
+ ... on AttributeIntValue {
239
+ intValue
240
+ }
241
+ ... on AttributeDecimalValue {
242
+ decimalValue
243
+ }
244
+ }
245
+ }
246
+
218
247
  fragment ProductInventoryFields on ProductInventory {
219
248
  productId
220
249
  totalQuantity
@@ -378,7 +407,7 @@ fragment AttributeFilterFields on AttributeFilter {
378
407
  }
379
408
  }
380
409
 
381
- mutation machineCreate(\$input: CreateSparePartsMachineInput!, \$language: String, \$sparePartsMachineProductSearchInput: SparePartsMachineProductSearchInput, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$imageVariantFilters: TransformationsInput!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput) {
410
+ mutation machineCreate(\$input: CreateSparePartsMachineInput!, \$language: String, \$sparePartsMachineProductSearchInput: SparePartsMachineProductSearchInput, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$imageVariantFilters: TransformationsInput!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$attributeResultSearchInput: AttributeResultSearchInput) {
382
411
  machineCreate(input: \$input) {
383
412
  ...SparePartsMachineFields
384
413
  }
@@ -167,6 +167,11 @@ fragment ProductGridFields on Product {
167
167
  ...IBaseProductFields
168
168
  productId
169
169
  categoryId
170
+ attributes(input: \$attributeResultSearchInput) {
171
+ items {
172
+ ...AttributeResultGridFields
173
+ }
174
+ }
170
175
  inventory {
171
176
  ...ProductInventoryFields
172
177
  }
@@ -215,6 +220,30 @@ fragment ProductGridFields on Product {
215
220
  containerClass
216
221
  }
217
222
 
223
+ fragment AttributeResultGridFields on AttributeResult {
224
+ attributeDescription {
225
+ name
226
+ }
227
+ value {
228
+ __typename
229
+ ... on AttributeTextValue {
230
+ textValues {
231
+ language
232
+ values
233
+ }
234
+ }
235
+ ... on AttributeEnumValue {
236
+ enumValues
237
+ }
238
+ ... on AttributeIntValue {
239
+ intValue
240
+ }
241
+ ... on AttributeDecimalValue {
242
+ decimalValue
243
+ }
244
+ }
245
+ }
246
+
218
247
  fragment ProductInventoryFields on ProductInventory {
219
248
  productId
220
249
  totalQuantity
@@ -378,7 +407,7 @@ fragment AttributeFilterFields on AttributeFilter {
378
407
  }
379
408
  }
380
409
 
381
- mutation machineUpsert(\$input: UpsertSparePartsMachineInput!, \$language: String, \$sparePartsMachineProductSearchInput: SparePartsMachineProductSearchInput, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$imageVariantFilters: TransformationsInput!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput) {
410
+ mutation machineUpsert(\$input: UpsertSparePartsMachineInput!, \$language: String, \$sparePartsMachineProductSearchInput: SparePartsMachineProductSearchInput, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$imageVariantFilters: TransformationsInput!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$attributeResultSearchInput: AttributeResultSearchInput) {
382
411
  machineUpsert(input: \$input) {
383
412
  ...SparePartsMachineFields
384
413
  }
@@ -179,6 +179,11 @@ fragment ProductGridFields on Product {
179
179
  ...IBaseProductFields
180
180
  productId
181
181
  categoryId
182
+ attributes(input: \$attributeResultSearchInput) {
183
+ items {
184
+ ...AttributeResultGridFields
185
+ }
186
+ }
182
187
  inventory {
183
188
  ...ProductInventoryFields
184
189
  }
@@ -227,6 +232,30 @@ fragment ProductGridFields on Product {
227
232
  containerClass
228
233
  }
229
234
 
235
+ fragment AttributeResultGridFields on AttributeResult {
236
+ attributeDescription {
237
+ name
238
+ }
239
+ value {
240
+ __typename
241
+ ... on AttributeTextValue {
242
+ textValues {
243
+ language
244
+ values
245
+ }
246
+ }
247
+ ... on AttributeEnumValue {
248
+ enumValues
249
+ }
250
+ ... on AttributeIntValue {
251
+ intValue
252
+ }
253
+ ... on AttributeDecimalValue {
254
+ decimalValue
255
+ }
256
+ }
257
+ }
258
+
230
259
  fragment ProductInventoryFields on ProductInventory {
231
260
  productId
232
261
  totalQuantity
@@ -390,7 +419,7 @@ fragment AttributeFilterFields on AttributeFilter {
390
419
  }
391
420
  }
392
421
 
393
- query machines(\$input: SearchSparePartsMachineInput, \$language: String, \$sparePartsMachineProductSearchInput: SparePartsMachineProductSearchInput, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$imageVariantFilters: TransformationsInput!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput) {
422
+ query machines(\$input: SearchSparePartsMachineInput, \$language: String, \$sparePartsMachineProductSearchInput: SparePartsMachineProductSearchInput, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$imageVariantFilters: TransformationsInput!, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$attributeResultSearchInput: AttributeResultSearchInput) {
394
423
  machines(input: \$input) {
395
424
  ...SparePartsMachineResponseFields
396
425
  }
@@ -78,6 +78,11 @@ fragment ProductGridFields on Product {
78
78
  ...IBaseProductFields
79
79
  productId
80
80
  categoryId
81
+ attributes(input: \$attributeResultSearchInput) {
82
+ items {
83
+ ...AttributeResultGridFields
84
+ }
85
+ }
81
86
  inventory {
82
87
  ...ProductInventoryFields
83
88
  }
@@ -126,6 +131,30 @@ fragment ProductGridFields on Product {
126
131
  containerClass
127
132
  }
128
133
 
134
+ fragment AttributeResultGridFields on AttributeResult {
135
+ attributeDescription {
136
+ name
137
+ }
138
+ value {
139
+ __typename
140
+ ... on AttributeTextValue {
141
+ textValues {
142
+ language
143
+ values
144
+ }
145
+ }
146
+ ... on AttributeEnumValue {
147
+ enumValues
148
+ }
149
+ ... on AttributeIntValue {
150
+ intValue
151
+ }
152
+ ... on AttributeDecimalValue {
153
+ decimalValue
154
+ }
155
+ }
156
+ }
157
+
129
158
  fragment ProductInventoryFields on ProductInventory {
130
159
  productId
131
160
  totalQuantity
@@ -326,7 +355,7 @@ fragment AttributeFilterFields on AttributeFilter {
326
355
  }
327
356
  }
328
357
 
329
- query products(\$input: ProductSearchInput, \$language: String, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$imageVariantFilters: TransformationsInput!, \$filterAvailableAttributeInput: FilterAvailableAttributeInput) {
358
+ query products(\$input: ProductSearchInput, \$language: String, \$priceCalculateProductInput: PriceCalculateProductInput, \$imageSearchFilters: MediaImageProductSearchInput, \$imageVariantFilters: TransformationsInput!, \$filterAvailableAttributeInput: FilterAvailableAttributeInput, \$attributeResultSearchInput: AttributeResultSearchInput) {
330
359
  products(input: \$input) {
331
360
  ...ProductsResponseFields
332
361
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -531,6 +531,7 @@ export * from './ProductPrice.js';
531
531
  export * from './ProductPriceFilterInput.js';
532
532
  export * from './ProductRangeFilterInput.js';
533
533
  export * from './ProductSearchInput.js';
534
+ export * from './ProductSearchInventoryFilterInput.js';
534
535
  export * from './ProductSortInput.js';
535
536
  export * from './ProductTextFilterInput.js';
536
537
  export * from './ProductsResponse.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propeller-commerce/propeller-sdk-v2",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "TypeScript GraphQL client for Propeller eCommerce V2 Platform - works with React, Vue, Angular and all JavaScript frameworks",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",