@01.software/sdk 0.6.0 → 0.7.1

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 (44) hide show
  1. package/README.md +2 -2
  2. package/dist/auth.d.cts +1 -1
  3. package/dist/auth.d.ts +1 -1
  4. package/dist/{const-DQZQAXex.d.cts → const-B8iE-mDN.d.cts} +2 -2
  5. package/dist/{const-Bk3-zigV.d.ts → const-Chw71pKS.d.ts} +2 -2
  6. package/dist/index.cjs +9 -9
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.cts +8 -8
  9. package/dist/index.d.ts +8 -8
  10. package/dist/index.js +9 -9
  11. package/dist/index.js.map +1 -1
  12. package/dist/{payload-types-DCVm1syH.d.cts → payload-types-Cp10MoF6.d.cts} +53 -48
  13. package/dist/{payload-types-DCVm1syH.d.ts → payload-types-Cp10MoF6.d.ts} +53 -48
  14. package/dist/realtime.d.cts +2 -2
  15. package/dist/realtime.d.ts +2 -2
  16. package/dist/{server-StNHlSjW.d.cts → server-DxhuG-_s.d.cts} +34 -34
  17. package/dist/{server-StNHlSjW.d.ts → server-DxhuG-_s.d.ts} +34 -34
  18. package/dist/ui/{flow → canvas}/server.cjs +20 -20
  19. package/dist/ui/canvas/server.cjs.map +1 -0
  20. package/dist/ui/canvas/server.d.cts +3 -0
  21. package/dist/ui/canvas/server.d.ts +3 -0
  22. package/dist/ui/{flow → canvas}/server.js +19 -19
  23. package/dist/ui/canvas/server.js.map +1 -0
  24. package/dist/ui/{flow.cjs → canvas.cjs} +63 -63
  25. package/dist/ui/canvas.cjs.map +1 -0
  26. package/dist/ui/{flow.d.cts → canvas.d.cts} +35 -35
  27. package/dist/ui/{flow.d.ts → canvas.d.ts} +35 -35
  28. package/dist/ui/{flow.js → canvas.js} +59 -59
  29. package/dist/ui/canvas.js.map +1 -0
  30. package/dist/ui/form.d.cts +1 -1
  31. package/dist/ui/form.d.ts +1 -1
  32. package/dist/ui/video.d.cts +1 -1
  33. package/dist/ui/video.d.ts +1 -1
  34. package/dist/{webhook-BTtG_8f2.d.ts → webhook-BKhMTlFN.d.ts} +2 -2
  35. package/dist/{webhook-TDfT7aKA.d.cts → webhook-CiWsseVz.d.cts} +2 -2
  36. package/dist/webhook.d.cts +3 -3
  37. package/dist/webhook.d.ts +3 -3
  38. package/package.json +13 -13
  39. package/dist/ui/flow/server.cjs.map +0 -1
  40. package/dist/ui/flow/server.d.cts +0 -3
  41. package/dist/ui/flow/server.d.ts +0 -3
  42. package/dist/ui/flow/server.js.map +0 -1
  43. package/dist/ui/flow.cjs.map +0 -1
  44. package/dist/ui/flow.js.map +0 -1
package/README.md CHANGED
@@ -47,7 +47,7 @@ import { RichTextContent } from '@01.software/sdk/ui/rich-text'
47
47
  import { Image } from '@01.software/sdk/ui/image'
48
48
  import { FormRenderer } from '@01.software/sdk/ui/form'
49
49
  import { CodeBlock } from '@01.software/sdk/ui/code-block'
50
- import { FlowRenderer } from '@01.software/sdk/ui/flow'
50
+ import { CanvasRenderer } from '@01.software/sdk/ui/canvas'
51
51
  import { VideoPlayer } from '@01.software/sdk/ui/video'
52
52
  ```
53
53
 
@@ -435,7 +435,7 @@ const handler = createTypedWebhookHandler('orders', async (event) => {
435
435
  | Content | `posts`, `post-categories`, `post-tags`, `documents`, `document-categories`, `document-types` |
436
436
  | Playlists | `playlists`, `playlist-categories`, `playlist-tags`, `musics` |
437
437
  | Galleries | `galleries`, `gallery-items`, `gallery-categories`, `gallery-tags` |
438
- | Flows | `flows`, `flow-node-types`, `flow-edge-types`, `flow-categories`, `flow-tags` |
438
+ | Canvas | `canvases`, `canvas-node-types`, `canvas-edge-types`, `canvas-categories`, `canvas-tags` |
439
439
  | Videos | `videos`, `video-categories`, `video-tags` |
440
440
  | Live Streams | `live-streams` |
441
441
  | Forms | `forms`, `form-submissions` |
package/dist/auth.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import './payload-types-DCVm1syH.cjs';
1
+ import './payload-types-Cp10MoF6.cjs';
2
2
 
3
3
  interface JwtPayload {
4
4
  clientKey: string;
package/dist/auth.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import './payload-types-DCVm1syH.js';
1
+ import './payload-types-Cp10MoF6.js';
2
2
 
3
3
  interface JwtPayload {
4
4
  clientKey: string;
@@ -1,4 +1,4 @@
1
- import { C as Config } from './payload-types-DCVm1syH.cjs';
1
+ import { C as Config } from './payload-types-Cp10MoF6.cjs';
2
2
 
3
3
  /**
4
4
  * Collection type derived from Payload Config.
@@ -9,7 +9,7 @@ type Collection = keyof Config['collections'];
9
9
  * Array of all public collection names for runtime use (e.g., Zod enum validation).
10
10
  * This is the single source of truth for which collections are publicly accessible via SDK.
11
11
  */
12
- declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-collections", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "exchanges", "exchange-products", "fulfillments", "fulfillment-items", "transactions", "customers", "customer-addresses", "customer-groups", "carts", "cart-items", "discounts", "shipping-policies", "documents", "document-categories", "document-types", "posts", "post-authors", "post-categories", "post-tags", "playlists", "playlist-categories", "playlist-tags", "musics", "music-categories", "music-tags", "galleries", "gallery-categories", "gallery-tags", "gallery-items", "links", "link-categories", "link-tags", "flows", "flow-node-types", "flow-edge-types", "flow-categories", "flow-tags", "videos", "video-categories", "video-tags", "live-streams", "images", "forms", "form-submissions", "threads", "comments", "reactions", "reaction-types", "bookmarks", "thread-categories", "reports", "community-bans"];
12
+ declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-collections", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "exchanges", "exchange-products", "fulfillments", "fulfillment-items", "transactions", "customers", "customer-addresses", "customer-groups", "carts", "cart-items", "discounts", "shipping-policies", "documents", "document-categories", "document-types", "posts", "post-authors", "post-categories", "post-tags", "playlists", "playlist-categories", "playlist-tags", "musics", "music-categories", "music-tags", "galleries", "gallery-categories", "gallery-tags", "gallery-items", "links", "link-categories", "link-tags", "canvases", "canvas-node-types", "canvas-edge-types", "canvas-categories", "canvas-tags", "videos", "video-categories", "video-tags", "live-streams", "images", "forms", "form-submissions", "threads", "comments", "reactions", "reaction-types", "bookmarks", "thread-categories", "reports", "community-bans"];
13
13
  /**
14
14
  * Public collections available for SDK access.
15
15
  * Derived from the COLLECTIONS array (single source of truth).
@@ -1,4 +1,4 @@
1
- import { C as Config } from './payload-types-DCVm1syH.js';
1
+ import { C as Config } from './payload-types-Cp10MoF6.js';
2
2
 
3
3
  /**
4
4
  * Collection type derived from Payload Config.
@@ -9,7 +9,7 @@ type Collection = keyof Config['collections'];
9
9
  * Array of all public collection names for runtime use (e.g., Zod enum validation).
10
10
  * This is the single source of truth for which collections are publicly accessible via SDK.
11
11
  */
12
- declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-collections", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "exchanges", "exchange-products", "fulfillments", "fulfillment-items", "transactions", "customers", "customer-addresses", "customer-groups", "carts", "cart-items", "discounts", "shipping-policies", "documents", "document-categories", "document-types", "posts", "post-authors", "post-categories", "post-tags", "playlists", "playlist-categories", "playlist-tags", "musics", "music-categories", "music-tags", "galleries", "gallery-categories", "gallery-tags", "gallery-items", "links", "link-categories", "link-tags", "flows", "flow-node-types", "flow-edge-types", "flow-categories", "flow-tags", "videos", "video-categories", "video-tags", "live-streams", "images", "forms", "form-submissions", "threads", "comments", "reactions", "reaction-types", "bookmarks", "thread-categories", "reports", "community-bans"];
12
+ declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-collections", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "exchanges", "exchange-products", "fulfillments", "fulfillment-items", "transactions", "customers", "customer-addresses", "customer-groups", "carts", "cart-items", "discounts", "shipping-policies", "documents", "document-categories", "document-types", "posts", "post-authors", "post-categories", "post-tags", "playlists", "playlist-categories", "playlist-tags", "musics", "music-categories", "music-tags", "galleries", "gallery-categories", "gallery-tags", "gallery-items", "links", "link-categories", "link-tags", "canvases", "canvas-node-types", "canvas-edge-types", "canvas-categories", "canvas-tags", "videos", "video-categories", "video-tags", "live-streams", "images", "forms", "form-submissions", "threads", "comments", "reactions", "reaction-types", "bookmarks", "thread-categories", "reports", "community-bans"];
13
13
  /**
14
14
  * Public collections available for SDK access.
15
15
  * Derived from the COLLECTIONS array (single source of truth).
package/dist/index.cjs CHANGED
@@ -825,7 +825,7 @@ var CollectionQueryBuilder = class {
825
825
  async find(options) {
826
826
  return this.api.requestFind(
827
827
  `/api/${String(this.collection)}`,
828
- { depth: 1, ...options }
828
+ options
829
829
  );
830
830
  }
831
831
  /**
@@ -836,7 +836,7 @@ var CollectionQueryBuilder = class {
836
836
  async findById(id, options) {
837
837
  return this.api.requestFindById(
838
838
  `/api/${String(this.collection)}/${String(id)}`,
839
- { depth: 1, ...options }
839
+ options
840
840
  );
841
841
  }
842
842
  /**
@@ -886,7 +886,7 @@ var CollectionQueryBuilder = class {
886
886
  }
887
887
  /**
888
888
  * Find first matching document and return its Next.js Metadata.
889
- * Applies depth: 1 (image populate) and limit: 1 automatically.
889
+ * Applies depth: 1 (SEO image populate) and limit: 1 automatically.
890
890
  * @returns Metadata or null if no document matches
891
891
  */
892
892
  async findMetadata(options, metadataOptions) {
@@ -900,7 +900,7 @@ var CollectionQueryBuilder = class {
900
900
  }
901
901
  /**
902
902
  * Find document by ID and return its Next.js Metadata.
903
- * Applies depth: 1 (image populate) automatically.
903
+ * Applies depth: 1 (SEO image populate) automatically.
904
904
  * @returns Metadata (throws on 404)
905
905
  */
906
906
  async findMetadataById(id, metadataOptions) {
@@ -1255,11 +1255,11 @@ var COLLECTIONS = [
1255
1255
  "links",
1256
1256
  "link-categories",
1257
1257
  "link-tags",
1258
- "flows",
1259
- "flow-node-types",
1260
- "flow-edge-types",
1261
- "flow-categories",
1262
- "flow-tags",
1258
+ "canvases",
1259
+ "canvas-node-types",
1260
+ "canvas-edge-types",
1261
+ "canvas-categories",
1262
+ "canvas-tags",
1263
1263
  "videos",
1264
1264
  "video-categories",
1265
1265
  "video-tags",