@01.software/sdk 0.35.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 (39) hide show
  1. package/dist/client.cjs.map +1 -1
  2. package/dist/client.d.cts +6 -6
  3. package/dist/client.d.ts +6 -6
  4. package/dist/client.js.map +1 -1
  5. package/dist/{collection-client-DkREjhQ9.d.ts → collection-client-Bq5Zd7p7.d.ts} +3 -3
  6. package/dist/{collection-client-CR2B8c1v.d.cts → collection-client-Cv0D2w1Q.d.cts} +3 -3
  7. package/dist/{const-CdqCauHQ.d.ts → const-BDUKFP9w.d.ts} +1 -1
  8. package/dist/{const-BTvdrXtY.d.cts → const-DVcM7Ac_.d.cts} +1 -1
  9. package/dist/{index-CjA3U6X3.d.cts → index-BHDKJ6B3.d.cts} +3 -3
  10. package/dist/{index-DK8_NXkh.d.ts → index-DTSXUYkr.d.ts} +3 -3
  11. package/dist/index.cjs +57 -4
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +7 -7
  14. package/dist/index.d.ts +7 -7
  15. package/dist/index.js +57 -4
  16. package/dist/index.js.map +1 -1
  17. package/dist/{payload-types-C7tb7Xbs.d.cts → payload-types-BCui2Oml.d.cts} +0 -20
  18. package/dist/{payload-types-C7tb7Xbs.d.ts → payload-types-BCui2Oml.d.ts} +0 -20
  19. package/dist/query.d.cts +5 -5
  20. package/dist/query.d.ts +5 -5
  21. package/dist/realtime.d.cts +2 -2
  22. package/dist/realtime.d.ts +2 -2
  23. package/dist/server.cjs +15 -0
  24. package/dist/server.cjs.map +1 -1
  25. package/dist/server.d.cts +7 -7
  26. package/dist/server.d.ts +7 -7
  27. package/dist/server.js +15 -0
  28. package/dist/server.js.map +1 -1
  29. package/dist/{types-1ylMrCuW.d.ts → types-3qV6sY7T.d.ts} +1 -1
  30. package/dist/{types-Bx558PU6.d.cts → types-CEzLf3PX.d.cts} +1 -1
  31. package/dist/{types-Byo_Rty4.d.ts → types-DK9EnLwJ.d.ts} +83 -17
  32. package/dist/{types-DDhtZI6E.d.cts → types-Dib-zdK6.d.cts} +83 -17
  33. package/dist/ui/form.d.cts +1 -1
  34. package/dist/ui/form.d.ts +1 -1
  35. package/dist/ui/video.d.cts +1 -1
  36. package/dist/ui/video.d.ts +1 -1
  37. package/dist/webhook.d.cts +4 -4
  38. package/dist/webhook.d.ts +4 -4
  39. package/package.json +3 -3
@@ -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.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { QueryClient, UseQueryResult, UseSuspenseQueryResult, InfiniteData, UseInfiniteQueryResult, UseSuspenseInfiniteQueryResult } from '@tanstack/react-query';
3
- import { A as ApiQueryOptions, P as PayloadFindResponse, h as PayloadMutationResponse, a8 as CustomerAuth, a9 as CustomerProfile, aa as CustomerAuthResponse, ab as CustomerLoginData, ac as CustomerRegisterResponse, ad as CustomerRegisterData, ae as CustomerRefreshResponse, af as UpdateProfileData, ag as ProductDetailParams, ah as ProductDetailResult, ai as ProductListingGroupsItem, i as RootClient, Y as RootServerClient } from './types-DDhtZI6E.cjs';
4
- import './payload-types-C7tb7Xbs.cjs';
5
- import { C as CollectionClient } from './collection-client-CR2B8c1v.cjs';
6
- import { S as ServerCollection, P as PublicCollection } from './const-BTvdrXtY.cjs';
7
- import { C as CollectionType } from './types-Bx558PU6.cjs';
3
+ import { A as ApiQueryOptions, P as PayloadFindResponse, h as PayloadMutationResponse, a8 as CustomerAuth, a9 as CustomerProfile, aa as CustomerAuthResponse, ab as CustomerLoginData, ac as CustomerRegisterResponse, ad as CustomerRegisterData, ae as CustomerRefreshResponse, af as UpdateProfileData, ag as ProductDetailParams, ah as ProductDetailResult, ai as ProductListingGroupsItem, i as RootClient, Y as RootServerClient } from './types-Dib-zdK6.cjs';
4
+ import './payload-types-BCui2Oml.cjs';
5
+ import { C as CollectionClient } from './collection-client-Cv0D2w1Q.cjs';
6
+ import { S as ServerCollection, P as PublicCollection } from './const-DVcM7Ac_.cjs';
7
+ import { C as CollectionType } from './types-CEzLf3PX.cjs';
8
8
  import { SDKError } from './errors.cjs';
9
9
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
10
10
  import './metadata.cjs';
package/dist/query.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { QueryClient, UseQueryResult, UseSuspenseQueryResult, InfiniteData, UseInfiniteQueryResult, UseSuspenseInfiniteQueryResult } from '@tanstack/react-query';
3
- import { A as ApiQueryOptions, P as PayloadFindResponse, h as PayloadMutationResponse, a8 as CustomerAuth, a9 as CustomerProfile, aa as CustomerAuthResponse, ab as CustomerLoginData, ac as CustomerRegisterResponse, ad as CustomerRegisterData, ae as CustomerRefreshResponse, af as UpdateProfileData, ag as ProductDetailParams, ah as ProductDetailResult, ai as ProductListingGroupsItem, i as RootClient, Y as RootServerClient } from './types-Byo_Rty4.js';
4
- import './payload-types-C7tb7Xbs.js';
5
- import { C as CollectionClient } from './collection-client-DkREjhQ9.js';
6
- import { S as ServerCollection, P as PublicCollection } from './const-CdqCauHQ.js';
7
- import { C as CollectionType } from './types-1ylMrCuW.js';
3
+ import { A as ApiQueryOptions, P as PayloadFindResponse, h as PayloadMutationResponse, a8 as CustomerAuth, a9 as CustomerProfile, aa as CustomerAuthResponse, ab as CustomerLoginData, ac as CustomerRegisterResponse, ad as CustomerRegisterData, ae as CustomerRefreshResponse, af as UpdateProfileData, ag as ProductDetailParams, ah as ProductDetailResult, ai as ProductListingGroupsItem, i as RootClient, Y as RootServerClient } from './types-DK9EnLwJ.js';
4
+ import './payload-types-BCui2Oml.js';
5
+ import { C as CollectionClient } from './collection-client-Bq5Zd7p7.js';
6
+ import { S as ServerCollection, P as PublicCollection } from './const-BDUKFP9w.js';
7
+ import { C as CollectionType } from './types-3qV6sY7T.js';
8
8
  import { SDKError } from './errors.js';
9
9
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
10
10
  import './metadata.js';
@@ -1,7 +1,7 @@
1
1
  import { R as RealtimeEvent } from './realtime-D7HtUpqt.cjs';
2
2
  export { a as RealtimeConnection, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
3
- import { P as PublicCollection } from './const-BTvdrXtY.cjs';
4
- import './payload-types-C7tb7Xbs.cjs';
3
+ import { P as PublicCollection } from './const-DVcM7Ac_.cjs';
4
+ import './payload-types-BCui2Oml.cjs';
5
5
 
6
6
  interface UseRealtimeQueryOptions {
7
7
  /** Filter events to specific collections. Empty/undefined = all collections. */
@@ -1,7 +1,7 @@
1
1
  import { R as RealtimeEvent } from './realtime-D7HtUpqt.js';
2
2
  export { a as RealtimeConnection, b as RealtimeListener } from './realtime-D7HtUpqt.js';
3
- import { P as PublicCollection } from './const-CdqCauHQ.js';
4
- import './payload-types-C7tb7Xbs.js';
3
+ import { P as PublicCollection } from './const-BDUKFP9w.js';
4
+ import './payload-types-BCui2Oml.js';
5
5
 
6
6
  interface UseRealtimeQueryOptions {
7
7
  /** Filter events to specific collections. Empty/undefined = all collections. */
package/dist/server.cjs CHANGED
@@ -1815,6 +1815,20 @@ var OrderApi = class extends BaseApi {
1815
1815
  idempotencyKey ? { headers: { "X-Idempotency-Key": idempotencyKey } } : void 0
1816
1816
  );
1817
1817
  }
1818
+ resolveCancelRefund(params) {
1819
+ return this.request(
1820
+ "/api/orders/resolve-cancel-refund",
1821
+ {
1822
+ orderNumber: params.orderNumber,
1823
+ idempotencyKey: params.idempotencyKey,
1824
+ outcome: params.outcome,
1825
+ refundedAmount: params.refundedAmount,
1826
+ pgProvider: params.pgProvider,
1827
+ ...params.pgRefundId ? { pgRefundId: params.pgRefundId } : {}
1828
+ },
1829
+ idempotencyRequestOptions(params.idempotencyKey)
1830
+ );
1831
+ }
1818
1832
  checkout(params) {
1819
1833
  const { body, idempotencyKey } = splitIdempotencyKey(params);
1820
1834
  return this.request(
@@ -1957,6 +1971,7 @@ var ServerCommerceClient = class {
1957
1971
  updateTransaction: orderApi.updateTransaction.bind(orderApi),
1958
1972
  confirmPayment: orderApi.confirmPayment.bind(orderApi),
1959
1973
  cancelOrder: orderApi.cancelOrder.bind(orderApi),
1974
+ resolveCancelRefund: orderApi.resolveCancelRefund.bind(orderApi),
1960
1975
  createFulfillment: orderApi.createFulfillment.bind(orderApi),
1961
1976
  updateFulfillment: orderApi.updateFulfillment.bind(orderApi),
1962
1977
  bulkImportFulfillments: orderApi.bulkImportFulfillments.bind(orderApi),