@01.software/sdk 0.10.0 → 0.10.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.
@@ -1,4 +1,4 @@
1
- import { C as Config } from './payload-types-D0zFPijW.js';
1
+ import { C as Config } from './payload-types-Bz2HCi4m.js';
2
2
 
3
3
  /**
4
4
  * Collection type derived from Payload Config.
@@ -1,4 +1,4 @@
1
- import { C as Config } from './payload-types-D0zFPijW.cjs';
1
+ import { C as Config } from './payload-types-Bz2HCi4m.cjs';
2
2
 
3
3
  /**
4
4
  * Collection type derived from Payload Config.
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
- import { O as Order, a as OrderItem$1, T as Transaction, b as Fulfillment, R as Return, c as Cart, d as CartItem, P as Product } from './payload-types-D0zFPijW.cjs';
2
- export { D as Document, I as Image, e as Post, f as PostCategory, g as PostTag, h as ProductVariant, i as Tenant, V as Video } from './payload-types-D0zFPijW.cjs';
1
+ import { O as Order, a as OrderItem$1, T as Transaction, b as Fulfillment, R as Return, c as Cart, d as CartItem, P as Product } from './payload-types-Bz2HCi4m.cjs';
2
+ export { D as Document, I as Image, e as Post, f as PostCategory, g as PostTag, h as ProductVariant, i as Tenant, V as Video } from './payload-types-Bz2HCi4m.cjs';
3
3
  import { Sort, Where } from 'payload';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { QueryClient, InfiniteData } from '@tanstack/react-query';
6
6
  import { Metadata } from 'next';
7
- import { P as PublicCollection } from './const-k0fqIBda.cjs';
8
- export { a as COLLECTIONS, C as Collection } from './const-k0fqIBda.cjs';
9
- import { C as CollectionType } from './webhook-DXr8B9E6.cjs';
10
- export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-DXr8B9E6.cjs';
7
+ import { P as PublicCollection } from './const-RfHA7d5C.cjs';
8
+ export { a as COLLECTIONS, C as Collection } from './const-RfHA7d5C.cjs';
9
+ import { C as CollectionType } from './webhook-DRFCvRt5.cjs';
10
+ export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-DRFCvRt5.cjs';
11
11
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
12
12
  export { b as IMAGE_SIZES, I as ImageData, a as ImagePalette, f as ImagePlaceholderOptions, d as getImageLqip, e as getImagePalette, h as getImagePlaceholderStyle, c as getImageSrcSet, g as getImageUrl } from './image-TT8lTsk5.cjs';
13
13
  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';
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { O as Order, a as OrderItem$1, T as Transaction, b as Fulfillment, R as Return, c as Cart, d as CartItem, P as Product } from './payload-types-D0zFPijW.js';
2
- export { D as Document, I as Image, e as Post, f as PostCategory, g as PostTag, h as ProductVariant, i as Tenant, V as Video } from './payload-types-D0zFPijW.js';
1
+ import { O as Order, a as OrderItem$1, T as Transaction, b as Fulfillment, R as Return, c as Cart, d as CartItem, P as Product } from './payload-types-Bz2HCi4m.js';
2
+ export { D as Document, I as Image, e as Post, f as PostCategory, g as PostTag, h as ProductVariant, i as Tenant, V as Video } from './payload-types-Bz2HCi4m.js';
3
3
  import { Sort, Where } from 'payload';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { QueryClient, InfiniteData } from '@tanstack/react-query';
6
6
  import { Metadata } from 'next';
7
- import { P as PublicCollection } from './const-Dmgge6oQ.js';
8
- export { a as COLLECTIONS, C as Collection } from './const-Dmgge6oQ.js';
9
- import { C as CollectionType } from './webhook-caDRhnd7.js';
10
- export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-caDRhnd7.js';
7
+ import { P as PublicCollection } from './const-Cv2Wikcq.js';
8
+ export { a as COLLECTIONS, C as Collection } from './const-Cv2Wikcq.js';
9
+ import { C as CollectionType } from './webhook-DmO6DslJ.js';
10
+ export { a as WebhookEvent, b as WebhookHandler, W as WebhookOperation, c as WebhookOptions, d as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-DmO6DslJ.js';
11
11
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
12
12
  export { b as IMAGE_SIZES, I as ImageData, a as ImagePalette, f as ImagePlaceholderOptions, d as getImageLqip, e as getImagePalette, h as getImagePlaceholderStyle, c as getImageSrcSet, g as getImageUrl } from './image-TT8lTsk5.js';
13
13
  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';
@@ -1255,6 +1255,19 @@ interface Product {
1255
1255
  * Maximum order quantity
1256
1256
  */
1257
1257
  maxOrderQuantity?: number | null;
1258
+ /**
1259
+ * Derived listing projection for product cards and search
1260
+ */
1261
+ listing?: {
1262
+ selectionHintVariant?: (string | null) | ProductVariant;
1263
+ primaryImage?: (string | null) | Image;
1264
+ minPrice?: number | null;
1265
+ maxPrice?: number | null;
1266
+ minCompareAtPrice?: number | null;
1267
+ maxCompareAtPrice?: number | null;
1268
+ isPriceRange?: boolean | null;
1269
+ availableForSale?: boolean | null;
1270
+ };
1258
1271
  metadata?: {
1259
1272
  [k: string]: unknown;
1260
1273
  } | unknown[] | string | number | boolean | null;
@@ -4887,6 +4900,16 @@ interface ProductsSelect<T extends boolean = true> {
4887
4900
  collections?: T;
4888
4901
  minOrderQuantity?: T;
4889
4902
  maxOrderQuantity?: T;
4903
+ listing?: T | {
4904
+ selectionHintVariant?: T;
4905
+ primaryImage?: T;
4906
+ minPrice?: T;
4907
+ maxPrice?: T;
4908
+ minCompareAtPrice?: T;
4909
+ maxCompareAtPrice?: T;
4910
+ isPriceRange?: T;
4911
+ availableForSale?: T;
4912
+ };
4890
4913
  metadata?: T;
4891
4914
  seo?: T | {
4892
4915
  title?: T;
@@ -1255,6 +1255,19 @@ interface Product {
1255
1255
  * Maximum order quantity
1256
1256
  */
1257
1257
  maxOrderQuantity?: number | null;
1258
+ /**
1259
+ * Derived listing projection for product cards and search
1260
+ */
1261
+ listing?: {
1262
+ selectionHintVariant?: (string | null) | ProductVariant;
1263
+ primaryImage?: (string | null) | Image;
1264
+ minPrice?: number | null;
1265
+ maxPrice?: number | null;
1266
+ minCompareAtPrice?: number | null;
1267
+ maxCompareAtPrice?: number | null;
1268
+ isPriceRange?: boolean | null;
1269
+ availableForSale?: boolean | null;
1270
+ };
1258
1271
  metadata?: {
1259
1272
  [k: string]: unknown;
1260
1273
  } | unknown[] | string | number | boolean | null;
@@ -4887,6 +4900,16 @@ interface ProductsSelect<T extends boolean = true> {
4887
4900
  collections?: T;
4888
4901
  minOrderQuantity?: T;
4889
4902
  maxOrderQuantity?: T;
4903
+ listing?: T | {
4904
+ selectionHintVariant?: T;
4905
+ primaryImage?: T;
4906
+ minPrice?: T;
4907
+ maxPrice?: T;
4908
+ minCompareAtPrice?: T;
4909
+ maxCompareAtPrice?: T;
4910
+ isPriceRange?: T;
4911
+ availableForSale?: T;
4912
+ };
4890
4913
  metadata?: T;
4891
4914
  seo?: T | {
4892
4915
  title?: T;
@@ -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-k0fqIBda.cjs';
4
- import './payload-types-D0zFPijW.cjs';
3
+ import { P as PublicCollection } from './const-RfHA7d5C.cjs';
4
+ import './payload-types-Bz2HCi4m.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-Dmgge6oQ.js';
4
- import './payload-types-D0zFPijW.js';
3
+ import { P as PublicCollection } from './const-Cv2Wikcq.js';
4
+ import './payload-types-Bz2HCi4m.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-D0zFPijW.cjs';
2
+ import { F as Form } from '../payload-types-Bz2HCi4m.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-D0zFPijW.js';
2
+ import { F as Form } from '../payload-types-Bz2HCi4m.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-D0zFPijW.cjs';
4
+ import { V as Video } from '../payload-types-Bz2HCi4m.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-D0zFPijW.js';
4
+ import { V as Video } from '../payload-types-Bz2HCi4m.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-k0fqIBda.cjs';
2
- import { C as Config } from './payload-types-D0zFPijW.cjs';
1
+ import { C as Collection } from './const-RfHA7d5C.cjs';
2
+ import { C as Config } from './payload-types-Bz2HCi4m.cjs';
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-Dmgge6oQ.js';
2
- import { C as Config } from './payload-types-D0zFPijW.js';
1
+ import { C as Collection } from './const-Cv2Wikcq.js';
2
+ import { C as Config } from './payload-types-Bz2HCi4m.js';
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-DXr8B9E6.cjs';
2
- import './const-k0fqIBda.cjs';
3
- import './payload-types-D0zFPijW.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-DRFCvRt5.cjs';
2
+ import './const-RfHA7d5C.cjs';
3
+ import './payload-types-Bz2HCi4m.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-caDRhnd7.js';
2
- import './const-Dmgge6oQ.js';
3
- import './payload-types-D0zFPijW.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-DmO6DslJ.js';
2
+ import './const-Cv2Wikcq.js';
3
+ import './payload-types-Bz2HCi4m.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01.software/sdk",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "01.software SDK",
5
5
  "author": "<office@01.works>",
6
6
  "keywords": [],