@01.software/sdk 0.43.0 → 0.44.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 (37) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +17 -18
  3. package/dist/client.cjs.map +1 -1
  4. package/dist/client.d.cts +6 -6
  5. package/dist/client.d.ts +6 -6
  6. package/dist/client.js.map +1 -1
  7. package/dist/{collection-client-gWsA7BVP.d.ts → collection-client-DWooaiTr.d.ts} +3 -3
  8. package/dist/{collection-client-U70KizLf.d.cts → collection-client-Dyl-CDcj.d.cts} +3 -3
  9. package/dist/{const-BBynifk0.d.cts → const-1vleZ6ov.d.cts} +1 -1
  10. package/dist/{const-_WWHU-gX.d.ts → const-pGDnsy0o.d.ts} +1 -1
  11. package/dist/{index-DPi5NWU8.d.ts → index-DUNySyxV.d.ts} +3 -3
  12. package/dist/{index-Dg4Y6Aq7.d.cts → index-a6g7vqAD.d.cts} +3 -3
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +7 -7
  15. package/dist/index.d.ts +7 -7
  16. package/dist/index.js.map +1 -1
  17. package/dist/{payload-types-DLxkB7Mv.d.cts → payload-types-CDsuOEfM.d.cts} +4 -9
  18. package/dist/{payload-types-DLxkB7Mv.d.ts → payload-types-CDsuOEfM.d.ts} +4 -9
  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.map +1 -1
  24. package/dist/server.d.cts +7 -7
  25. package/dist/server.d.ts +7 -7
  26. package/dist/server.js.map +1 -1
  27. package/dist/{types-Bpx5sYKo.d.cts → types-CDND3hzq.d.cts} +12 -7
  28. package/dist/{types-B9lGhZlB.d.ts → types-Dt9FJisi.d.ts} +12 -7
  29. package/dist/{types-B1ngKbWI.d.cts → types-SoXsbKhj.d.cts} +1 -1
  30. package/dist/{types-BiKNBwRA.d.ts → types-oiae_LMm.d.ts} +1 -1
  31. package/dist/ui/form.d.cts +1 -1
  32. package/dist/ui/form.d.ts +1 -1
  33. package/dist/ui/video.d.cts +1 -1
  34. package/dist/ui/video.d.ts +1 -1
  35. package/dist/webhook.d.cts +4 -4
  36. package/dist/webhook.d.ts +4 -4
  37. package/package.json +1 -1
@@ -1579,13 +1579,9 @@ interface Product {
1579
1579
  */
1580
1580
  slug?: string | null;
1581
1581
  /**
1582
- * Publication status for this product.
1582
+ * Publication status for this product. Unlisted hides the product from listings while keeping detail lookup available.
1583
1583
  */
1584
- status?: ('draft' | 'published' | 'archived') | null;
1585
- /**
1586
- * Controls whether this product appears in listings and detail pages.
1587
- */
1588
- storefrontVisibility?: ('listed' | 'unlisted' | 'hidden') | null;
1584
+ status?: ('draft' | 'published' | 'unlisted' | 'archived') | null;
1589
1585
  /**
1590
1586
  * Automatically enabled when no variant is sellable.
1591
1587
  */
@@ -2464,8 +2460,8 @@ interface Market {
2464
2460
  tenant?: (string | null) | Tenant;
2465
2461
  name: string;
2466
2462
  handle: string;
2467
- countryCode: string;
2468
- currency: string;
2463
+ countryCode: 'KR' | 'US';
2464
+ currency: 'KRW' | 'USD';
2469
2465
  isPrimary?: boolean | null;
2470
2466
  isActive?: boolean | null;
2471
2467
  metadata?: {
@@ -7793,7 +7789,6 @@ interface ProductsSelect<T extends boolean = true> {
7793
7789
  generateSlug?: T;
7794
7790
  slug?: T;
7795
7791
  status?: T;
7796
- storefrontVisibility?: T;
7797
7792
  isSoldOut?: T;
7798
7793
  isFeatured?: T;
7799
7794
  publishedAt?: T;
@@ -1579,13 +1579,9 @@ interface Product {
1579
1579
  */
1580
1580
  slug?: string | null;
1581
1581
  /**
1582
- * Publication status for this product.
1582
+ * Publication status for this product. Unlisted hides the product from listings while keeping detail lookup available.
1583
1583
  */
1584
- status?: ('draft' | 'published' | 'archived') | null;
1585
- /**
1586
- * Controls whether this product appears in listings and detail pages.
1587
- */
1588
- storefrontVisibility?: ('listed' | 'unlisted' | 'hidden') | null;
1584
+ status?: ('draft' | 'published' | 'unlisted' | 'archived') | null;
1589
1585
  /**
1590
1586
  * Automatically enabled when no variant is sellable.
1591
1587
  */
@@ -2464,8 +2460,8 @@ interface Market {
2464
2460
  tenant?: (string | null) | Tenant;
2465
2461
  name: string;
2466
2462
  handle: string;
2467
- countryCode: string;
2468
- currency: string;
2463
+ countryCode: 'KR' | 'US';
2464
+ currency: 'KRW' | 'USD';
2469
2465
  isPrimary?: boolean | null;
2470
2466
  isActive?: boolean | null;
2471
2467
  metadata?: {
@@ -7793,7 +7789,6 @@ interface ProductsSelect<T extends boolean = true> {
7793
7789
  generateSlug?: T;
7794
7790
  slug?: T;
7795
7791
  status?: T;
7796
- storefrontVisibility?: T;
7797
7792
  isSoldOut?: T;
7798
7793
  isFeatured?: T;
7799
7794
  publishedAt?: 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 { g as ApiQueryOptions, P as PayloadFindResponse, aD as PublicReadQueryOptions, o as PayloadMutationResponse, aE as CustomerAuth, aF as CustomerProfile, aG as CustomerAuthResponse, aH as CustomerLoginData, aI as CustomerRegisterResponse, aJ as CustomerRegisterData, aK as CustomerRefreshResponse, aL as UpdateProfileData, aM as ProductListingPageBaseParams, aN as ProductListingPageParams, aO as ProductDetailParams, aP as ProductDetailResult, aQ as ProductListingPageCatalogParams, aR as ProductListingPageResult, aS as ProductListingGroupsCatalogItem, aT as ProductListingPageFullParams, aU as ProductListingGroupsItem, S as Sort, W as Where, z as RootClient, aq as RootServerClient } from './types-Bpx5sYKo.cjs';
4
- import './payload-types-DLxkB7Mv.cjs';
5
- import { C as CollectionClient } from './collection-client-U70KizLf.cjs';
6
- import { S as ServerCollection, P as PublicCollection } from './const-BBynifk0.cjs';
7
- import { C as CollectionType } from './types-B1ngKbWI.cjs';
3
+ import { g as ApiQueryOptions, P as PayloadFindResponse, aD as PublicReadQueryOptions, o as PayloadMutationResponse, aE as CustomerAuth, aF as CustomerProfile, aG as CustomerAuthResponse, aH as CustomerLoginData, aI as CustomerRegisterResponse, aJ as CustomerRegisterData, aK as CustomerRefreshResponse, aL as UpdateProfileData, aM as ProductListingPageBaseParams, aN as ProductListingPageParams, aO as ProductDetailParams, aP as ProductDetailResult, aQ as ProductListingPageCatalogParams, aR as ProductListingPageResult, aS as ProductListingGroupsCatalogItem, aT as ProductListingPageFullParams, aU as ProductListingGroupsItem, S as Sort, W as Where, z as RootClient, aq as RootServerClient } from './types-CDND3hzq.cjs';
4
+ import './payload-types-CDsuOEfM.cjs';
5
+ import { C as CollectionClient } from './collection-client-Dyl-CDcj.cjs';
6
+ import { S as ServerCollection, P as PublicCollection } from './const-1vleZ6ov.cjs';
7
+ import { C as CollectionType } from './types-SoXsbKhj.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 { g as ApiQueryOptions, P as PayloadFindResponse, aD as PublicReadQueryOptions, o as PayloadMutationResponse, aE as CustomerAuth, aF as CustomerProfile, aG as CustomerAuthResponse, aH as CustomerLoginData, aI as CustomerRegisterResponse, aJ as CustomerRegisterData, aK as CustomerRefreshResponse, aL as UpdateProfileData, aM as ProductListingPageBaseParams, aN as ProductListingPageParams, aO as ProductDetailParams, aP as ProductDetailResult, aQ as ProductListingPageCatalogParams, aR as ProductListingPageResult, aS as ProductListingGroupsCatalogItem, aT as ProductListingPageFullParams, aU as ProductListingGroupsItem, S as Sort, W as Where, z as RootClient, aq as RootServerClient } from './types-B9lGhZlB.js';
4
- import './payload-types-DLxkB7Mv.js';
5
- import { C as CollectionClient } from './collection-client-gWsA7BVP.js';
6
- import { S as ServerCollection, P as PublicCollection } from './const-_WWHU-gX.js';
7
- import { C as CollectionType } from './types-BiKNBwRA.js';
3
+ import { g as ApiQueryOptions, P as PayloadFindResponse, aD as PublicReadQueryOptions, o as PayloadMutationResponse, aE as CustomerAuth, aF as CustomerProfile, aG as CustomerAuthResponse, aH as CustomerLoginData, aI as CustomerRegisterResponse, aJ as CustomerRegisterData, aK as CustomerRefreshResponse, aL as UpdateProfileData, aM as ProductListingPageBaseParams, aN as ProductListingPageParams, aO as ProductDetailParams, aP as ProductDetailResult, aQ as ProductListingPageCatalogParams, aR as ProductListingPageResult, aS as ProductListingGroupsCatalogItem, aT as ProductListingPageFullParams, aU as ProductListingGroupsItem, S as Sort, W as Where, z as RootClient, aq as RootServerClient } from './types-Dt9FJisi.js';
4
+ import './payload-types-CDsuOEfM.js';
5
+ import { C as CollectionClient } from './collection-client-DWooaiTr.js';
6
+ import { S as ServerCollection, P as PublicCollection } from './const-pGDnsy0o.js';
7
+ import { C as CollectionType } from './types-oiae_LMm.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-BBynifk0.cjs';
4
- import './payload-types-DLxkB7Mv.cjs';
3
+ import { P as PublicCollection } from './const-1vleZ6ov.cjs';
4
+ import './payload-types-CDsuOEfM.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-_WWHU-gX.js';
4
- import './payload-types-DLxkB7Mv.js';
3
+ import { P as PublicCollection } from './const-pGDnsy0o.js';
4
+ import './payload-types-CDsuOEfM.js';
5
5
 
6
6
  interface UseRealtimeQueryOptions {
7
7
  /** Filter events to specific collections. Empty/undefined = all collections. */