@01.software/sdk 0.34.0 → 0.36.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 (51) hide show
  1. package/dist/client.cjs +1 -1
  2. package/dist/client.cjs.map +1 -1
  3. package/dist/client.d.cts +6 -6
  4. package/dist/client.d.ts +6 -6
  5. package/dist/client.js +1 -1
  6. package/dist/client.js.map +1 -1
  7. package/dist/{collection-client-DkREjhQ9.d.ts → collection-client-Bq5Zd7p7.d.ts} +3 -3
  8. package/dist/{collection-client-CR2B8c1v.d.cts → collection-client-Cv0D2w1Q.d.cts} +3 -3
  9. package/dist/{const-CdqCauHQ.d.ts → const-BDUKFP9w.d.ts} +1 -1
  10. package/dist/{const-BTvdrXtY.d.cts → const-DVcM7Ac_.d.cts} +1 -1
  11. package/dist/errors.cjs +300 -0
  12. package/dist/errors.cjs.map +1 -0
  13. package/dist/{index-BGEhoDUs.d.cts → errors.d.cts} +13 -1
  14. package/dist/{index-BGEhoDUs.d.ts → errors.d.ts} +13 -1
  15. package/dist/errors.js +277 -0
  16. package/dist/errors.js.map +1 -0
  17. package/dist/{index-CjA3U6X3.d.cts → index-BHDKJ6B3.d.cts} +3 -3
  18. package/dist/{index-DK8_NXkh.d.ts → index-DTSXUYkr.d.ts} +3 -3
  19. package/dist/index.cjs +58 -5
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +8 -8
  22. package/dist/index.d.ts +8 -8
  23. package/dist/index.js +58 -5
  24. package/dist/index.js.map +1 -1
  25. package/dist/{payload-types-C7tb7Xbs.d.cts → payload-types-BCui2Oml.d.cts} +0 -20
  26. package/dist/{payload-types-C7tb7Xbs.d.ts → payload-types-BCui2Oml.d.ts} +0 -20
  27. package/dist/query.cjs +1 -1
  28. package/dist/query.cjs.map +1 -1
  29. package/dist/query.d.cts +6 -6
  30. package/dist/query.d.ts +6 -6
  31. package/dist/query.js +1 -1
  32. package/dist/query.js.map +1 -1
  33. package/dist/realtime.d.cts +2 -2
  34. package/dist/realtime.d.ts +2 -2
  35. package/dist/server.cjs +16 -1
  36. package/dist/server.cjs.map +1 -1
  37. package/dist/server.d.cts +7 -7
  38. package/dist/server.d.ts +7 -7
  39. package/dist/server.js +16 -1
  40. package/dist/server.js.map +1 -1
  41. package/dist/{types-1ylMrCuW.d.ts → types-3qV6sY7T.d.ts} +1 -1
  42. package/dist/{types-Bx558PU6.d.cts → types-CEzLf3PX.d.cts} +1 -1
  43. package/dist/{types-Byo_Rty4.d.ts → types-DK9EnLwJ.d.ts} +83 -17
  44. package/dist/{types-DDhtZI6E.d.cts → types-Dib-zdK6.d.cts} +83 -17
  45. package/dist/ui/form.d.cts +1 -1
  46. package/dist/ui/form.d.ts +1 -1
  47. package/dist/ui/video.d.cts +1 -1
  48. package/dist/ui/video.d.ts +1 -1
  49. package/dist/webhook.d.cts +4 -4
  50. package/dist/webhook.d.ts +4 -4
  51. package/package.json +11 -1
@@ -1382,10 +1382,6 @@ interface Product {
1382
1382
  * Maximum order quantity for this product.
1383
1383
  */
1384
1384
  maxOrderQuantity?: number | null;
1385
- /**
1386
- * Primary option used to expand this product into option-value cards.
1387
- */
1388
- listingPrimaryOption?: (string | null) | ProductOption;
1389
1385
  /**
1390
1386
  * Automatically computed values for product cards and search.
1391
1387
  */
@@ -1422,18 +1418,6 @@ interface Product {
1422
1418
  * Enabled when at least one variant is sellable.
1423
1419
  */
1424
1420
  availableForSale?: boolean | null;
1425
- /**
1426
- * Automatically derived from the primary option setting.
1427
- */
1428
- groupingState?: ('grouped' | 'no_primary_option' | 'empty') | null;
1429
- /**
1430
- * Shown when grouping produces zero cards. Visible before publish.
1431
- */
1432
- groupingEmptyReason?: ('primary_option_not_linked' | 'primary_option_has_no_values' | 'no_variants_for_primary_option') | null;
1433
- /**
1434
- * Number of expandable option-value cards.
1435
- */
1436
- groupingCount?: number | null;
1437
1421
  };
1438
1422
  seo?: {
1439
1423
  /**
@@ -7020,7 +7004,6 @@ interface ProductsSelect<T extends boolean = true> {
7020
7004
  collectionItems?: T;
7021
7005
  minOrderQuantity?: T;
7022
7006
  maxOrderQuantity?: T;
7023
- listingPrimaryOption?: T;
7024
7007
  listing?: T | {
7025
7008
  selectionHintVariant?: T;
7026
7009
  primaryImage?: T;
@@ -7030,9 +7013,6 @@ interface ProductsSelect<T extends boolean = true> {
7030
7013
  maxCompareAtPrice?: T;
7031
7014
  isPriceRange?: T;
7032
7015
  availableForSale?: T;
7033
- groupingState?: T;
7034
- groupingEmptyReason?: T;
7035
- groupingCount?: T;
7036
7016
  };
7037
7017
  seo?: T | {
7038
7018
  title?: T;
@@ -1382,10 +1382,6 @@ interface Product {
1382
1382
  * Maximum order quantity for this product.
1383
1383
  */
1384
1384
  maxOrderQuantity?: number | null;
1385
- /**
1386
- * Primary option used to expand this product into option-value cards.
1387
- */
1388
- listingPrimaryOption?: (string | null) | ProductOption;
1389
1385
  /**
1390
1386
  * Automatically computed values for product cards and search.
1391
1387
  */
@@ -1422,18 +1418,6 @@ interface Product {
1422
1418
  * Enabled when at least one variant is sellable.
1423
1419
  */
1424
1420
  availableForSale?: boolean | null;
1425
- /**
1426
- * Automatically derived from the primary option setting.
1427
- */
1428
- groupingState?: ('grouped' | 'no_primary_option' | 'empty') | null;
1429
- /**
1430
- * Shown when grouping produces zero cards. Visible before publish.
1431
- */
1432
- groupingEmptyReason?: ('primary_option_not_linked' | 'primary_option_has_no_values' | 'no_variants_for_primary_option') | null;
1433
- /**
1434
- * Number of expandable option-value cards.
1435
- */
1436
- groupingCount?: number | null;
1437
1421
  };
1438
1422
  seo?: {
1439
1423
  /**
@@ -7020,7 +7004,6 @@ interface ProductsSelect<T extends boolean = true> {
7020
7004
  collectionItems?: T;
7021
7005
  minOrderQuantity?: T;
7022
7006
  maxOrderQuantity?: T;
7023
- listingPrimaryOption?: T;
7024
7007
  listing?: T | {
7025
7008
  selectionHintVariant?: T;
7026
7009
  primaryImage?: T;
@@ -7030,9 +7013,6 @@ interface ProductsSelect<T extends boolean = true> {
7030
7013
  maxCompareAtPrice?: T;
7031
7014
  isPriceRange?: T;
7032
7015
  availableForSale?: T;
7033
- groupingState?: T;
7034
- groupingEmptyReason?: T;
7035
- groupingCount?: T;
7036
7016
  };
7037
7017
  seo?: T | {
7038
7018
  title?: T;
package/dist/query.cjs CHANGED
@@ -369,7 +369,7 @@ var CollectionHooks = class {
369
369
  // src/core/query/customer-hooks.ts
370
370
  var import_react_query3 = require("@tanstack/react-query");
371
371
 
372
- // src/core/internal/errors/index.ts
372
+ // src/core/errors.ts
373
373
  var SDKError = class extends Error {
374
374
  constructor(code, message, status, details, userMessage, suggestion, requestId) {
375
375
  super(message);