@01.software/sdk 0.5.8 → 0.5.9

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.
@@ -410,7 +410,7 @@ interface Tenant {
410
410
  interface FieldConfig {
411
411
  id: string;
412
412
  tenant?: (string | null) | Tenant;
413
- collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'customers' | 'customer-groups' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'exchanges' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'music-categories' | 'music-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'flows' | 'flow-categories' | 'flow-tags' | 'flow-node-types' | 'flow-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms';
413
+ collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'exchanges' | 'customers' | 'customer-groups' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'music-categories' | 'music-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'flows' | 'flow-categories' | 'flow-tags' | 'flow-node-types' | 'flow-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms';
414
414
  isHidden?: boolean | null;
415
415
  hiddenFields?: {
416
416
  [k: string]: unknown;
@@ -1403,8 +1403,8 @@ interface VideoTag {
1403
1403
  */
1404
1404
  interface ProductVariant {
1405
1405
  id: string;
1406
- _order?: string | null;
1407
1406
  '_product-variants_variants_order'?: string | null;
1407
+ _order?: string | null;
1408
1408
  tenant?: (string | null) | Tenant;
1409
1409
  product: string | Product;
1410
1410
  title: string;
@@ -1453,9 +1453,9 @@ interface ProductVariant {
1453
1453
  */
1454
1454
  interface ProductOption {
1455
1455
  id: string;
1456
- _order?: string | null;
1457
1456
  '_product-options_productOptions_order'?: string | null;
1458
1457
  '_product-options_options_order'?: string | null;
1458
+ _order?: string | null;
1459
1459
  tenant?: (string | null) | Tenant;
1460
1460
  product: string | Product;
1461
1461
  variant?: (string | null) | ProductVariant;
@@ -1466,7 +1466,7 @@ interface ProductOption {
1466
1466
  sku?: string | null;
1467
1467
  stock: number;
1468
1468
  /**
1469
- * Reserved by carts (available = stock - reservedStock)
1469
+ * Paid orders in transit (informational stock alone gates new purchases)
1470
1470
  */
1471
1471
  reservedStock?: number | null;
1472
1472
  /**
@@ -1623,7 +1623,7 @@ interface Brand {
1623
1623
  */
1624
1624
  generateSlug?: boolean | null;
1625
1625
  slug?: string | null;
1626
- status?: ('draft' | 'published') | null;
1626
+ status?: ('draft' | 'published' | 'archived') | null;
1627
1627
  isFeatured?: boolean | null;
1628
1628
  publishedAt?: string | null;
1629
1629
  metadata?: {
@@ -2769,8 +2769,8 @@ interface PlaylistTag {
2769
2769
  */
2770
2770
  interface Music {
2771
2771
  id: string;
2772
- _order?: string | null;
2773
2772
  _musics_musics_order?: string | null;
2773
+ _order?: string | null;
2774
2774
  tenant?: (string | null) | Tenant;
2775
2775
  playlist: string | Playlist;
2776
2776
  url: string;
@@ -2935,7 +2935,7 @@ interface Gallery {
2935
2935
  generateSlug?: boolean | null;
2936
2936
  slug?: string | null;
2937
2937
  thumbnail?: (string | null) | Image;
2938
- status: 'draft' | 'published' | 'archived';
2938
+ status?: ('draft' | 'published' | 'archived') | null;
2939
2939
  isFeatured?: boolean | null;
2940
2940
  publishedAt?: string | null;
2941
2941
  metadata?: {
@@ -3001,8 +3001,8 @@ interface GalleryTag {
3001
3001
  */
3002
3002
  interface GalleryItem {
3003
3003
  id: string;
3004
- _order?: string | null;
3005
3004
  '_gallery-items_items_order'?: string | null;
3005
+ _order?: string | null;
3006
3006
  tenant?: (string | null) | Tenant;
3007
3007
  gallery: string | Gallery;
3008
3008
  title?: string | null;
@@ -3059,7 +3059,7 @@ interface Link {
3059
3059
  slug?: string | null;
3060
3060
  type?: ('external' | 'social' | 'internal') | null;
3061
3061
  thumbnail?: (string | null) | Image;
3062
- status: 'draft' | 'published' | 'archived';
3062
+ status?: ('draft' | 'published' | 'archived') | null;
3063
3063
  isFeatured?: boolean | null;
3064
3064
  metadata?: {
3065
3065
  [k: string]: unknown;
@@ -3360,7 +3360,7 @@ interface Form {
3360
3360
  * Short summary for listing/cards
3361
3361
  */
3362
3362
  description?: string | null;
3363
- status: 'active' | 'inactive';
3363
+ status?: ('active' | 'inactive') | null;
3364
3364
  /**
3365
3365
  * When enabled, the slug will auto-generate from the title field on save and autosave.
3366
3366
  */
@@ -4285,8 +4285,8 @@ interface ProductsSelect<T extends boolean = true> {
4285
4285
  * via the `definition` "product-variants_select".
4286
4286
  */
4287
4287
  interface ProductVariantsSelect<T extends boolean = true> {
4288
- _order?: T;
4289
4288
  '_product-variants_variants_order'?: T;
4289
+ _order?: T;
4290
4290
  tenant?: T;
4291
4291
  product?: T;
4292
4292
  title?: T;
@@ -4310,9 +4310,9 @@ interface ProductVariantsSelect<T extends boolean = true> {
4310
4310
  * via the `definition` "product-options_select".
4311
4311
  */
4312
4312
  interface ProductOptionsSelect<T extends boolean = true> {
4313
- _order?: T;
4314
4313
  '_product-options_productOptions_order'?: T;
4315
4314
  '_product-options_options_order'?: T;
4315
+ _order?: T;
4316
4316
  tenant?: T;
4317
4317
  product?: T;
4318
4318
  variant?: T;
@@ -5143,8 +5143,8 @@ interface PlaylistTagsSelect<T extends boolean = true> {
5143
5143
  * via the `definition` "musics_select".
5144
5144
  */
5145
5145
  interface MusicsSelect<T extends boolean = true> {
5146
- _order?: T;
5147
5146
  _musics_musics_order?: T;
5147
+ _order?: T;
5148
5148
  tenant?: T;
5149
5149
  playlist?: T;
5150
5150
  url?: T;
@@ -5281,8 +5281,8 @@ interface GalleryTagsSelect<T extends boolean = true> {
5281
5281
  * via the `definition` "gallery-items_select".
5282
5282
  */
5283
5283
  interface GalleryItemsSelect<T extends boolean = true> {
5284
- _order?: T;
5285
5284
  '_gallery-items_items_order'?: T;
5285
+ _order?: T;
5286
5286
  tenant?: T;
5287
5287
  gallery?: T;
5288
5288
  title?: T;
@@ -410,7 +410,7 @@ interface Tenant {
410
410
  interface FieldConfig {
411
411
  id: string;
412
412
  tenant?: (string | null) | Tenant;
413
- collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'customers' | 'customer-groups' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'exchanges' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'music-categories' | 'music-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'flows' | 'flow-categories' | 'flow-tags' | 'flow-node-types' | 'flow-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms';
413
+ collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'exchanges' | 'customers' | 'customer-groups' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'music-categories' | 'music-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'flows' | 'flow-categories' | 'flow-tags' | 'flow-node-types' | 'flow-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms';
414
414
  isHidden?: boolean | null;
415
415
  hiddenFields?: {
416
416
  [k: string]: unknown;
@@ -1403,8 +1403,8 @@ interface VideoTag {
1403
1403
  */
1404
1404
  interface ProductVariant {
1405
1405
  id: string;
1406
- _order?: string | null;
1407
1406
  '_product-variants_variants_order'?: string | null;
1407
+ _order?: string | null;
1408
1408
  tenant?: (string | null) | Tenant;
1409
1409
  product: string | Product;
1410
1410
  title: string;
@@ -1453,9 +1453,9 @@ interface ProductVariant {
1453
1453
  */
1454
1454
  interface ProductOption {
1455
1455
  id: string;
1456
- _order?: string | null;
1457
1456
  '_product-options_productOptions_order'?: string | null;
1458
1457
  '_product-options_options_order'?: string | null;
1458
+ _order?: string | null;
1459
1459
  tenant?: (string | null) | Tenant;
1460
1460
  product: string | Product;
1461
1461
  variant?: (string | null) | ProductVariant;
@@ -1466,7 +1466,7 @@ interface ProductOption {
1466
1466
  sku?: string | null;
1467
1467
  stock: number;
1468
1468
  /**
1469
- * Reserved by carts (available = stock - reservedStock)
1469
+ * Paid orders in transit (informational stock alone gates new purchases)
1470
1470
  */
1471
1471
  reservedStock?: number | null;
1472
1472
  /**
@@ -1623,7 +1623,7 @@ interface Brand {
1623
1623
  */
1624
1624
  generateSlug?: boolean | null;
1625
1625
  slug?: string | null;
1626
- status?: ('draft' | 'published') | null;
1626
+ status?: ('draft' | 'published' | 'archived') | null;
1627
1627
  isFeatured?: boolean | null;
1628
1628
  publishedAt?: string | null;
1629
1629
  metadata?: {
@@ -2769,8 +2769,8 @@ interface PlaylistTag {
2769
2769
  */
2770
2770
  interface Music {
2771
2771
  id: string;
2772
- _order?: string | null;
2773
2772
  _musics_musics_order?: string | null;
2773
+ _order?: string | null;
2774
2774
  tenant?: (string | null) | Tenant;
2775
2775
  playlist: string | Playlist;
2776
2776
  url: string;
@@ -2935,7 +2935,7 @@ interface Gallery {
2935
2935
  generateSlug?: boolean | null;
2936
2936
  slug?: string | null;
2937
2937
  thumbnail?: (string | null) | Image;
2938
- status: 'draft' | 'published' | 'archived';
2938
+ status?: ('draft' | 'published' | 'archived') | null;
2939
2939
  isFeatured?: boolean | null;
2940
2940
  publishedAt?: string | null;
2941
2941
  metadata?: {
@@ -3001,8 +3001,8 @@ interface GalleryTag {
3001
3001
  */
3002
3002
  interface GalleryItem {
3003
3003
  id: string;
3004
- _order?: string | null;
3005
3004
  '_gallery-items_items_order'?: string | null;
3005
+ _order?: string | null;
3006
3006
  tenant?: (string | null) | Tenant;
3007
3007
  gallery: string | Gallery;
3008
3008
  title?: string | null;
@@ -3059,7 +3059,7 @@ interface Link {
3059
3059
  slug?: string | null;
3060
3060
  type?: ('external' | 'social' | 'internal') | null;
3061
3061
  thumbnail?: (string | null) | Image;
3062
- status: 'draft' | 'published' | 'archived';
3062
+ status?: ('draft' | 'published' | 'archived') | null;
3063
3063
  isFeatured?: boolean | null;
3064
3064
  metadata?: {
3065
3065
  [k: string]: unknown;
@@ -3360,7 +3360,7 @@ interface Form {
3360
3360
  * Short summary for listing/cards
3361
3361
  */
3362
3362
  description?: string | null;
3363
- status: 'active' | 'inactive';
3363
+ status?: ('active' | 'inactive') | null;
3364
3364
  /**
3365
3365
  * When enabled, the slug will auto-generate from the title field on save and autosave.
3366
3366
  */
@@ -4285,8 +4285,8 @@ interface ProductsSelect<T extends boolean = true> {
4285
4285
  * via the `definition` "product-variants_select".
4286
4286
  */
4287
4287
  interface ProductVariantsSelect<T extends boolean = true> {
4288
- _order?: T;
4289
4288
  '_product-variants_variants_order'?: T;
4289
+ _order?: T;
4290
4290
  tenant?: T;
4291
4291
  product?: T;
4292
4292
  title?: T;
@@ -4310,9 +4310,9 @@ interface ProductVariantsSelect<T extends boolean = true> {
4310
4310
  * via the `definition` "product-options_select".
4311
4311
  */
4312
4312
  interface ProductOptionsSelect<T extends boolean = true> {
4313
- _order?: T;
4314
4313
  '_product-options_productOptions_order'?: T;
4315
4314
  '_product-options_options_order'?: T;
4315
+ _order?: T;
4316
4316
  tenant?: T;
4317
4317
  product?: T;
4318
4318
  variant?: T;
@@ -5143,8 +5143,8 @@ interface PlaylistTagsSelect<T extends boolean = true> {
5143
5143
  * via the `definition` "musics_select".
5144
5144
  */
5145
5145
  interface MusicsSelect<T extends boolean = true> {
5146
- _order?: T;
5147
5146
  _musics_musics_order?: T;
5147
+ _order?: T;
5148
5148
  tenant?: T;
5149
5149
  playlist?: T;
5150
5150
  url?: T;
@@ -5281,8 +5281,8 @@ interface GalleryTagsSelect<T extends boolean = true> {
5281
5281
  * via the `definition` "gallery-items_select".
5282
5282
  */
5283
5283
  interface GalleryItemsSelect<T extends boolean = true> {
5284
- _order?: T;
5285
5284
  '_gallery-items_items_order'?: T;
5285
+ _order?: T;
5286
5286
  tenant?: T;
5287
5287
  gallery?: T;
5288
5288
  title?: T;
@@ -1,7 +1,7 @@
1
1
  import { R as RealtimeEvent } from './realtime-DupPIYx-.cjs';
2
2
  export { a as RealtimeConnection, b as RealtimeListener } from './realtime-DupPIYx-.cjs';
3
- import { P as PublicCollection } from './const-MzPYopC7.cjs';
4
- import './payload-types-CyaSGIFI.cjs';
3
+ import { P as PublicCollection } from './const-rK0y0s2r.cjs';
4
+ import './payload-types-D70l0uF9.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-DupPIYx-.js';
2
2
  export { a as RealtimeConnection, b as RealtimeListener } from './realtime-DupPIYx-.js';
3
- import { P as PublicCollection } from './const-Dde6Z3er.js';
4
- import './payload-types-CyaSGIFI.js';
3
+ import { P as PublicCollection } from './const-EdTT21dc.js';
4
+ import './payload-types-D70l0uF9.js';
5
5
 
6
6
  interface UseRealtimeQueryOptions {
7
7
  /** Filter events to specific collections. Empty/undefined = all collections. */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { F as Form } from '../payload-types-CyaSGIFI.cjs';
2
+ import { F as Form } from '../payload-types-D70l0uF9.cjs';
3
3
  import { RichTextData } from './rich-text.cjs';
4
4
  import '@payloadcms/richtext-lexical';
5
5
  import '@payloadcms/richtext-lexical/lexical';
package/dist/ui/form.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { F as Form } from '../payload-types-CyaSGIFI.js';
2
+ import { F as Form } from '../payload-types-D70l0uF9.js';
3
3
  import { RichTextData } from './rich-text.js';
4
4
  import '@payloadcms/richtext-lexical';
5
5
  import '@payloadcms/richtext-lexical/lexical';
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { MuxPlayerProps, MuxPlayerRefAttributes } from '@mux/mux-player-react';
3
3
  export { MuxPlayerRefAttributes as VideoPlayerRef } from '@mux/mux-player-react';
4
- import { V as Video } from '../payload-types-CyaSGIFI.cjs';
4
+ import { V as Video } from '../payload-types-D70l0uF9.cjs';
5
5
  export { e as VideoGifOptions, V as VideoThumbnailOptions, a as getVideoGif, c as getVideoMp4Url, d as getVideoStoryboard, b as getVideoStreamUrl, g as getVideoThumbnail } from '../video-DbLL8yuc.cjs';
6
6
 
7
7
  interface VideoPlayerCSSProperties extends CSSProperties {
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { MuxPlayerProps, MuxPlayerRefAttributes } from '@mux/mux-player-react';
3
3
  export { MuxPlayerRefAttributes as VideoPlayerRef } from '@mux/mux-player-react';
4
- import { V as Video } from '../payload-types-CyaSGIFI.js';
4
+ import { V as Video } from '../payload-types-D70l0uF9.js';
5
5
  export { e as VideoGifOptions, V as VideoThumbnailOptions, a as getVideoGif, c as getVideoMp4Url, d as getVideoStoryboard, b as getVideoStreamUrl, g as getVideoThumbnail } from '../video-DbLL8yuc.js';
6
6
 
7
7
  interface VideoPlayerCSSProperties extends CSSProperties {
@@ -1,5 +1,5 @@
1
- import { C as Collection } from './const-Dde6Z3er.js';
2
- import { C as Config } from './payload-types-CyaSGIFI.js';
1
+ import { C as Collection } from './const-EdTT21dc.js';
2
+ import { C as Config } from './payload-types-D70l0uF9.js';
3
3
 
4
4
  type CollectionType<T extends string> = T extends keyof Config['collections'] ? Config['collections'][T] : never;
5
5
 
@@ -1,5 +1,5 @@
1
- import { C as Collection } from './const-MzPYopC7.cjs';
2
- import { C as Config } from './payload-types-CyaSGIFI.cjs';
1
+ import { C as Collection } from './const-rK0y0s2r.cjs';
2
+ import { C as Config } from './payload-types-D70l0uF9.cjs';
3
3
 
4
4
  type CollectionType<T extends string> = T extends keyof Config['collections'] ? Config['collections'][T] : never;
5
5
 
@@ -1,3 +1,3 @@
1
- export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-D78o4MiB.cjs';
2
- import './const-MzPYopC7.cjs';
3
- import './payload-types-CyaSGIFI.cjs';
1
+ export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-C_aXaaBz.cjs';
2
+ import './const-rK0y0s2r.cjs';
3
+ import './payload-types-D70l0uF9.cjs';
package/dist/webhook.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-cfGx5lXy.js';
2
- import './const-Dde6Z3er.js';
3
- import './payload-types-CyaSGIFI.js';
1
+ export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-BVU0Qfsu.js';
2
+ import './const-EdTT21dc.js';
3
+ import './payload-types-D70l0uF9.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01.software/sdk",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "description": "01.software SDK",
5
5
  "author": "<office@01.works>",
6
6
  "keywords": [],
@@ -152,10 +152,10 @@
152
152
  "@repo/typescript-config": "0.0.0"
153
153
  },
154
154
  "dependencies": {
155
- "@payloadcms/richtext-lexical": ">=3.78.0",
155
+ "@payloadcms/richtext-lexical": ">=3.82.0",
156
156
  "hast-util-to-jsx-runtime": "^2.3.6",
157
157
  "jose": "^6.1.3",
158
- "payload": ">=3.78.0",
158
+ "payload": ">=3.82.0",
159
159
  "postcss": "^8.4.35",
160
160
  "qs-esm": "^7.0.2",
161
161
  "quickjs-emscripten": "0.29.2",