@epcc-sdk/sdks-shopper 0.0.29 → 0.0.31

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 (37) hide show
  1. package/README.md +4 -0
  2. package/dist/client/@tanstack/react-query.gen.cjs +38 -0
  3. package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
  4. package/dist/client/@tanstack/react-query.gen.d.cts +44 -2
  5. package/dist/client/@tanstack/react-query.gen.d.ts +44 -2
  6. package/dist/client/@tanstack/react-query.gen.mjs +36 -0
  7. package/dist/client/@tanstack/react-query.gen.mjs.map +1 -1
  8. package/dist/client/index.d.cts +2 -2
  9. package/dist/client/index.d.ts +2 -2
  10. package/dist/client/sdk.gen.cjs +100 -0
  11. package/dist/client/sdk.gen.cjs.map +1 -1
  12. package/dist/client/sdk.gen.d.cts +147 -90
  13. package/dist/client/sdk.gen.d.ts +147 -90
  14. package/dist/client/sdk.gen.mjs +98 -0
  15. package/dist/client/sdk.gen.mjs.map +1 -1
  16. package/dist/client/transformers.gen.cjs +18 -3
  17. package/dist/client/transformers.gen.cjs.map +1 -1
  18. package/dist/client/transformers.gen.d.cts +4 -2
  19. package/dist/client/transformers.gen.d.ts +4 -2
  20. package/dist/client/transformers.gen.mjs +16 -3
  21. package/dist/client/transformers.gen.mjs.map +1 -1
  22. package/dist/client/types.gen.cjs.map +1 -1
  23. package/dist/client/types.gen.d.cts +537 -139
  24. package/dist/client/types.gen.d.ts +537 -139
  25. package/dist/index.d.cts +3 -3
  26. package/dist/index.d.ts +3 -3
  27. package/dist/utils/extract-product-image.cjs.map +1 -1
  28. package/dist/utils/extract-product-image.d.cts +2 -2
  29. package/dist/utils/extract-product-image.d.ts +2 -2
  30. package/dist/utils/extract-product-image.mjs.map +1 -1
  31. package/dist/utils/get-cart-id.cjs +2 -2
  32. package/dist/utils/get-cart-id.cjs.map +1 -1
  33. package/dist/utils/get-cart-id.d.cts +3 -1
  34. package/dist/utils/get-cart-id.d.ts +3 -1
  35. package/dist/utils/get-cart-id.mjs +2 -2
  36. package/dist/utils/get-cart-id.mjs.map +1 -1
  37. package/package.json +1 -1
@@ -109,6 +109,12 @@ const getByContextAllProducts = (options) => {
109
109
  type: "http"
110
110
  }
111
111
  ],
112
+ querySerializer: {
113
+ array: {
114
+ explode: false,
115
+ style: "form"
116
+ }
117
+ },
112
118
  url: "/catalog/products"
113
119
  });
114
120
  };
@@ -121,9 +127,27 @@ const getByContextProduct = (options) => {
121
127
  type: "http"
122
128
  }
123
129
  ],
130
+ querySerializer: {
131
+ array: {
132
+ explode: false,
133
+ style: "form"
134
+ }
135
+ },
124
136
  url: "/catalog/products/{product_id}"
125
137
  });
126
138
  };
139
+ const getByContextAllRelatedProducts = (options) => {
140
+ return (options?.client ?? client).get({
141
+ ...options,
142
+ security: [
143
+ {
144
+ scheme: "bearer",
145
+ type: "http"
146
+ }
147
+ ],
148
+ url: "/catalog/products/{product_id}/relationships/{custom_relationship_slug}/products"
149
+ });
150
+ };
127
151
  const getByContextComponentProductIds = (options) => {
128
152
  return (options?.client ?? client).get({
129
153
  ...options,
@@ -145,6 +169,12 @@ const getByContextChildProducts = (options) => {
145
169
  type: "http"
146
170
  }
147
171
  ],
172
+ querySerializer: {
173
+ array: {
174
+ explode: false,
175
+ style: "form"
176
+ }
177
+ },
148
178
  url: "/catalog/products/{product_id}/relationships/children"
149
179
  });
150
180
  };
@@ -157,6 +187,12 @@ const getByContextProductsForHierarchy = (options) => {
157
187
  type: "http"
158
188
  }
159
189
  ],
190
+ querySerializer: {
191
+ array: {
192
+ explode: false,
193
+ style: "form"
194
+ }
195
+ },
160
196
  url: "/catalog/hierarchies/{hierarchy_id}/products"
161
197
  });
162
198
  };
@@ -169,6 +205,12 @@ const getByContextProductsForNode = (options) => {
169
205
  type: "http"
170
206
  }
171
207
  ],
208
+ querySerializer: {
209
+ array: {
210
+ explode: false,
211
+ style: "form"
212
+ }
213
+ },
172
214
  url: "/catalog/nodes/{node_id}/relationships/products"
173
215
  });
174
216
  };
@@ -185,6 +227,12 @@ const configureByContextProduct = (options) => {
185
227
  type: "http"
186
228
  }
187
229
  ],
230
+ querySerializer: {
231
+ array: {
232
+ explode: false,
233
+ style: "form"
234
+ }
235
+ },
188
236
  url: "/catalog/products/{product_id}/configure"
189
237
  });
190
238
  };
@@ -481,6 +529,12 @@ const getAllProducts = (options) => {
481
529
  type: "http"
482
530
  }
483
531
  ],
532
+ querySerializer: {
533
+ array: {
534
+ explode: false,
535
+ style: "form"
536
+ }
537
+ },
484
538
  url: "/catalogs/{catalog_id}/releases/{release_id}/products"
485
539
  });
486
540
  };
@@ -493,9 +547,27 @@ const getProduct = (options) => {
493
547
  type: "http"
494
548
  }
495
549
  ],
550
+ querySerializer: {
551
+ array: {
552
+ explode: false,
553
+ style: "form"
554
+ }
555
+ },
496
556
  url: "/catalogs/{catalog_id}/releases/{release_id}/products/{product_id}"
497
557
  });
498
558
  };
559
+ const getAllRelatedProducts = (options) => {
560
+ return (options?.client ?? client).get({
561
+ ...options,
562
+ security: [
563
+ {
564
+ scheme: "bearer",
565
+ type: "http"
566
+ }
567
+ ],
568
+ url: "/catalogs/{catalog_id}/releases/{release_id}/products/{product_id}/relationships/{custom_relationship_slug}/products"
569
+ });
570
+ };
499
571
  const getComponentProductIds = (options) => {
500
572
  return (options?.client ?? client).get({
501
573
  ...options,
@@ -505,6 +577,12 @@ const getComponentProductIds = (options) => {
505
577
  type: "http"
506
578
  }
507
579
  ],
580
+ querySerializer: {
581
+ array: {
582
+ explode: false,
583
+ style: "form"
584
+ }
585
+ },
508
586
  url: "/catalogs/{catalog_id}/releases/{release_id}/products/{product_id}/relationships/component_products"
509
587
  });
510
588
  };
@@ -517,6 +595,12 @@ const getChildProducts = (options) => {
517
595
  type: "http"
518
596
  }
519
597
  ],
598
+ querySerializer: {
599
+ array: {
600
+ explode: false,
601
+ style: "form"
602
+ }
603
+ },
520
604
  url: "/catalogs/{catalog_id}/releases/{release_id}/products/{product_id}/relationships/children"
521
605
  });
522
606
  };
@@ -529,6 +613,12 @@ const getProductsForHierarchy = (options) => {
529
613
  type: "http"
530
614
  }
531
615
  ],
616
+ querySerializer: {
617
+ array: {
618
+ explode: false,
619
+ style: "form"
620
+ }
621
+ },
532
622
  url: "/catalogs/{catalog_id}/releases/{release_id}/hierarchies/{hierarchy_id}/products"
533
623
  });
534
624
  };
@@ -541,6 +631,12 @@ const getProductsForNode = (options) => {
541
631
  type: "http"
542
632
  }
543
633
  ],
634
+ querySerializer: {
635
+ array: {
636
+ explode: false,
637
+ style: "form"
638
+ }
639
+ },
544
640
  url: "/catalogs/{catalog_id}/releases/{release_id}/nodes/{node_id}/relationships/products"
545
641
  });
546
642
  };
@@ -1724,10 +1820,12 @@ export {
1724
1820
  getAllHierarchies,
1725
1821
  getAllNodes,
1726
1822
  getAllProducts,
1823
+ getAllRelatedProducts,
1727
1824
  getAnOrder,
1728
1825
  getByContextAllHierarchies,
1729
1826
  getByContextAllNodes,
1730
1827
  getByContextAllProducts,
1828
+ getByContextAllRelatedProducts,
1731
1829
  getByContextChildNodes,
1732
1830
  getByContextChildProducts,
1733
1831
  getByContextComponentProductIds,