@01.software/sdk 0.2.8 → 0.2.9-dev.260305.35fd2d4

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.
@@ -43,13 +43,13 @@ interface Config {
43
43
  'product-images': ProductImage;
44
44
  orders: Order;
45
45
  'order-products': OrderProduct;
46
+ transactions: Transaction;
47
+ fulfillments: Fulfillment;
48
+ 'fulfillment-items': FulfillmentItem;
46
49
  returns: Return;
47
50
  'return-products': ReturnProduct;
48
51
  exchanges: Exchange;
49
52
  'exchange-products': ExchangeProduct;
50
- fulfillments: Fulfillment;
51
- 'fulfillment-items': FulfillmentItem;
52
- transactions: Transaction;
53
53
  customers: Customer;
54
54
  'customer-addresses': CustomerAddress;
55
55
  'customer-groups': CustomerGroup;
@@ -70,6 +70,8 @@ interface Config {
70
70
  playlists: Playlist;
71
71
  musics: Music;
72
72
  'playlist-images': PlaylistImage;
73
+ flows: Flow;
74
+ 'flow-images': FlowImage;
73
75
  forms: Form;
74
76
  'form-submissions': FormSubmission;
75
77
  'payload-kv': PayloadKv;
@@ -93,15 +95,15 @@ interface Config {
93
95
  exchanges: 'exchanges';
94
96
  fulfillments: 'fulfillments';
95
97
  };
98
+ fulfillments: {
99
+ items: 'fulfillment-items';
100
+ };
96
101
  returns: {
97
102
  returnProducts: 'return-products';
98
103
  };
99
104
  exchanges: {
100
105
  exchangeProducts: 'exchange-products';
101
106
  };
102
- fulfillments: {
103
- items: 'fulfillment-items';
104
- };
105
107
  customers: {
106
108
  orders: 'orders';
107
109
  addresses: 'customer-addresses';
@@ -142,13 +144,13 @@ interface Config {
142
144
  'product-images': ProductImagesSelect<false> | ProductImagesSelect<true>;
143
145
  orders: OrdersSelect<false> | OrdersSelect<true>;
144
146
  'order-products': OrderProductsSelect<false> | OrderProductsSelect<true>;
147
+ transactions: TransactionsSelect<false> | TransactionsSelect<true>;
148
+ fulfillments: FulfillmentsSelect<false> | FulfillmentsSelect<true>;
149
+ 'fulfillment-items': FulfillmentItemsSelect<false> | FulfillmentItemsSelect<true>;
145
150
  returns: ReturnsSelect<false> | ReturnsSelect<true>;
146
151
  'return-products': ReturnProductsSelect<false> | ReturnProductsSelect<true>;
147
152
  exchanges: ExchangesSelect<false> | ExchangesSelect<true>;
148
153
  'exchange-products': ExchangeProductsSelect<false> | ExchangeProductsSelect<true>;
149
- fulfillments: FulfillmentsSelect<false> | FulfillmentsSelect<true>;
150
- 'fulfillment-items': FulfillmentItemsSelect<false> | FulfillmentItemsSelect<true>;
151
- transactions: TransactionsSelect<false> | TransactionsSelect<true>;
152
154
  customers: CustomersSelect<false> | CustomersSelect<true>;
153
155
  'customer-addresses': CustomerAddressesSelect<false> | CustomerAddressesSelect<true>;
154
156
  'customer-groups': CustomerGroupsSelect<false> | CustomerGroupsSelect<true>;
@@ -169,6 +171,8 @@ interface Config {
169
171
  playlists: PlaylistsSelect<false> | PlaylistsSelect<true>;
170
172
  musics: MusicsSelect<false> | MusicsSelect<true>;
171
173
  'playlist-images': PlaylistImagesSelect<false> | PlaylistImagesSelect<true>;
174
+ flows: FlowsSelect<false> | FlowsSelect<true>;
175
+ 'flow-images': FlowImagesSelect<false> | FlowImagesSelect<true>;
172
176
  forms: FormsSelect<false> | FormsSelect<true>;
173
177
  'form-submissions': FormSubmissionsSelect<false> | FormSubmissionsSelect<true>;
174
178
  'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
@@ -311,7 +315,7 @@ interface Tenant {
311
315
  origin: string;
312
316
  id?: string | null;
313
317
  }[] | null;
314
- features?: ('ecommerce' | 'playlists' | 'links' | 'forms' | 'posts' | 'documents')[] | null;
318
+ features?: ('ecommerce' | 'playlists' | 'forms' | 'posts' | 'documents' | 'flows')[] | null;
315
319
  plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
316
320
  clientKey: string;
317
321
  secretKeys?: {
@@ -732,25 +736,25 @@ interface Subscription {
732
736
  plan: 'starter' | 'basic' | 'pro';
733
737
  billingCycle: 'monthly' | 'yearly';
734
738
  /**
735
- * 결제 금액 (KRW)
739
+ * Payment amount (KRW)
736
740
  */
737
741
  amount: number;
738
742
  status: 'active' | 'past_due' | 'canceled' | 'expired' | 'suspended';
739
743
  /**
740
- * 토스 빌링키 (AES-256-GCM 암호화)
744
+ * Toss billing key (AES-256-GCM encrypted)
741
745
  */
742
746
  billingKey?: string | null;
743
747
  /**
744
- * 토스 고객키 (UUID)
748
+ * Toss customer key (UUID)
745
749
  */
746
750
  customerKey?: string | null;
747
751
  /**
748
- * 등록된 카드 정보
752
+ * Registered card info
749
753
  */
750
754
  cardInfo?: {
751
755
  issuerCode?: string | null;
752
756
  /**
753
- * 마스킹된 카드번호
757
+ * Masked card number
754
758
  */
755
759
  number?: string | null;
756
760
  cardType?: string | null;
@@ -797,27 +801,27 @@ interface BillingHistory {
797
801
  type: 'payment' | 'refund' | 'plan_change';
798
802
  status: 'success' | 'failed' | 'refunded' | 'partial_refund';
799
803
  /**
800
- * 금액 (KRW)
804
+ * Amount (KRW)
801
805
  */
802
806
  amount: number;
803
807
  /**
804
- * 토스 결제키
808
+ * Toss payment key
805
809
  */
806
810
  paymentKey?: string | null;
807
811
  /**
808
- * 고유 주문번호
812
+ * Unique order number
809
813
  */
810
814
  orderId: string;
811
815
  orderName?: string | null;
812
816
  /**
813
- * 결제 시점 플랜
817
+ * Plan at time of payment
814
818
  */
815
819
  plan?: string | null;
816
820
  billingCycle?: ('monthly' | 'yearly') | null;
817
821
  periodStart?: string | null;
818
822
  periodEnd?: string | null;
819
823
  /**
820
- * 토스 API 전체 응답
824
+ * Full Toss API response
821
825
  */
822
826
  tossResponse?: {
823
827
  [k: string]: unknown;
@@ -827,14 +831,14 @@ interface BillingHistory {
827
831
  */
828
832
  polarOrderId?: string | null;
829
833
  /**
830
- * Polar API 전체 응답
834
+ * Full Polar API response
831
835
  */
832
836
  polarResponse?: {
833
837
  [k: string]: unknown;
834
838
  } | unknown[] | string | number | boolean | null;
835
839
  errorMessage?: string | null;
836
840
  /**
837
- * 재시도 원본 결제 내역
841
+ * Original billing record for retry
838
842
  */
839
843
  retryOf?: (string | null) | BillingHistory;
840
844
  updatedAt: string;
@@ -1273,7 +1277,7 @@ interface ShippingPolicy {
1273
1277
  _order?: string | null;
1274
1278
  tenant?: (string | null) | Tenant;
1275
1279
  /**
1276
- * e.g. 기본 배송비, 대형 상품
1280
+ * e.g. Standard shipping, Large items
1277
1281
  */
1278
1282
  title: string;
1279
1283
  /**
@@ -1549,7 +1553,7 @@ interface OrderProduct {
1549
1553
  */
1550
1554
  unitPrice: number;
1551
1555
  /**
1552
- * unitPrice * quantity
1556
+ * unitPrice × quantity
1553
1557
  */
1554
1558
  totalPrice: number;
1555
1559
  title?: string | null;
@@ -1772,7 +1776,7 @@ interface Discount {
1772
1776
  */
1773
1777
  code: string;
1774
1778
  /**
1775
- * Internal name (e.g. 신규가입 10% 할인)
1779
+ * Internal name (e.g. New member 10% discount)
1776
1780
  */
1777
1781
  title: string;
1778
1782
  /**
@@ -2291,6 +2295,87 @@ interface PlaylistImage {
2291
2295
  };
2292
2296
  };
2293
2297
  }
2298
+ /**
2299
+ * This interface was referenced by `Config`'s JSON-Schema
2300
+ * via the `definition` "flows".
2301
+ */
2302
+ interface Flow {
2303
+ id: string;
2304
+ tenant?: (string | null) | Tenant;
2305
+ title: string;
2306
+ /**
2307
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
2308
+ */
2309
+ generateSlug?: boolean | null;
2310
+ slug?: string | null;
2311
+ description?: string | null;
2312
+ canvas: {
2313
+ [k: string]: unknown;
2314
+ } | unknown[] | string | number | boolean | null;
2315
+ status?: ('draft' | 'published') | null;
2316
+ metadata?: {
2317
+ [k: string]: unknown;
2318
+ } | unknown[] | string | number | boolean | null;
2319
+ updatedAt: string;
2320
+ createdAt: string;
2321
+ deletedAt?: string | null;
2322
+ }
2323
+ /**
2324
+ * This interface was referenced by `Config`'s JSON-Schema
2325
+ * via the `definition` "flow-images".
2326
+ */
2327
+ interface FlowImage {
2328
+ id: string;
2329
+ tenant?: (string | null) | Tenant;
2330
+ alt?: string | null;
2331
+ lqip?: string | null;
2332
+ palette?: {
2333
+ vibrant?: string | null;
2334
+ muted?: string | null;
2335
+ darkVibrant?: string | null;
2336
+ darkMuted?: string | null;
2337
+ lightVibrant?: string | null;
2338
+ lightMuted?: string | null;
2339
+ };
2340
+ prefix?: string | null;
2341
+ updatedAt: string;
2342
+ createdAt: string;
2343
+ url?: string | null;
2344
+ thumbnailURL?: string | null;
2345
+ filename?: string | null;
2346
+ mimeType?: string | null;
2347
+ filesize?: number | null;
2348
+ width?: number | null;
2349
+ height?: number | null;
2350
+ focalX?: number | null;
2351
+ focalY?: number | null;
2352
+ sizes?: {
2353
+ '384'?: {
2354
+ url?: string | null;
2355
+ width?: number | null;
2356
+ height?: number | null;
2357
+ mimeType?: string | null;
2358
+ filesize?: number | null;
2359
+ filename?: string | null;
2360
+ };
2361
+ '768'?: {
2362
+ url?: string | null;
2363
+ width?: number | null;
2364
+ height?: number | null;
2365
+ mimeType?: string | null;
2366
+ filesize?: number | null;
2367
+ filename?: string | null;
2368
+ };
2369
+ '1536'?: {
2370
+ url?: string | null;
2371
+ width?: number | null;
2372
+ height?: number | null;
2373
+ mimeType?: string | null;
2374
+ filesize?: number | null;
2375
+ filename?: string | null;
2376
+ };
2377
+ };
2378
+ }
2294
2379
  /**
2295
2380
  * This interface was referenced by `Config`'s JSON-Schema
2296
2381
  * via the `definition` "forms".
@@ -2560,6 +2645,15 @@ interface PayloadLockedDocument {
2560
2645
  } | null) | ({
2561
2646
  relationTo: 'order-products';
2562
2647
  value: string | OrderProduct;
2648
+ } | null) | ({
2649
+ relationTo: 'transactions';
2650
+ value: string | Transaction;
2651
+ } | null) | ({
2652
+ relationTo: 'fulfillments';
2653
+ value: string | Fulfillment;
2654
+ } | null) | ({
2655
+ relationTo: 'fulfillment-items';
2656
+ value: string | FulfillmentItem;
2563
2657
  } | null) | ({
2564
2658
  relationTo: 'returns';
2565
2659
  value: string | Return;
@@ -2572,15 +2666,6 @@ interface PayloadLockedDocument {
2572
2666
  } | null) | ({
2573
2667
  relationTo: 'exchange-products';
2574
2668
  value: string | ExchangeProduct;
2575
- } | null) | ({
2576
- relationTo: 'fulfillments';
2577
- value: string | Fulfillment;
2578
- } | null) | ({
2579
- relationTo: 'fulfillment-items';
2580
- value: string | FulfillmentItem;
2581
- } | null) | ({
2582
- relationTo: 'transactions';
2583
- value: string | Transaction;
2584
2669
  } | null) | ({
2585
2670
  relationTo: 'customers';
2586
2671
  value: string | Customer;
@@ -2641,6 +2726,12 @@ interface PayloadLockedDocument {
2641
2726
  } | null) | ({
2642
2727
  relationTo: 'playlist-images';
2643
2728
  value: string | PlaylistImage;
2729
+ } | null) | ({
2730
+ relationTo: 'flows';
2731
+ value: string | Flow;
2732
+ } | null) | ({
2733
+ relationTo: 'flow-images';
2734
+ value: string | FlowImage;
2644
2735
  } | null) | ({
2645
2736
  relationTo: 'forms';
2646
2737
  value: string | Form;
@@ -3412,6 +3503,50 @@ interface OrderProductsSelect<T extends boolean = true> {
3412
3503
  updatedAt?: T;
3413
3504
  createdAt?: T;
3414
3505
  }
3506
+ /**
3507
+ * This interface was referenced by `Config`'s JSON-Schema
3508
+ * via the `definition` "transactions_select".
3509
+ */
3510
+ interface TransactionsSelect<T extends boolean = true> {
3511
+ tenant?: T;
3512
+ status?: T;
3513
+ order?: T;
3514
+ paymentId?: T;
3515
+ paymentMethod?: T;
3516
+ receiptUrl?: T;
3517
+ totalAmount?: T;
3518
+ updatedAt?: T;
3519
+ createdAt?: T;
3520
+ }
3521
+ /**
3522
+ * This interface was referenced by `Config`'s JSON-Schema
3523
+ * via the `definition` "fulfillments_select".
3524
+ */
3525
+ interface FulfillmentsSelect<T extends boolean = true> {
3526
+ tenant?: T;
3527
+ order?: T;
3528
+ status?: T;
3529
+ carrier?: T;
3530
+ trackingNumber?: T;
3531
+ shippedAt?: T;
3532
+ deliveredAt?: T;
3533
+ items?: T;
3534
+ metadata?: T;
3535
+ updatedAt?: T;
3536
+ createdAt?: T;
3537
+ }
3538
+ /**
3539
+ * This interface was referenced by `Config`'s JSON-Schema
3540
+ * via the `definition` "fulfillment-items_select".
3541
+ */
3542
+ interface FulfillmentItemsSelect<T extends boolean = true> {
3543
+ tenant?: T;
3544
+ fulfillment?: T;
3545
+ orderProduct?: T;
3546
+ quantity?: T;
3547
+ updatedAt?: T;
3548
+ createdAt?: T;
3549
+ }
3415
3550
  /**
3416
3551
  * This interface was referenced by `Config`'s JSON-Schema
3417
3552
  * via the `definition` "returns_select".
@@ -3479,50 +3614,6 @@ interface ExchangeProductsSelect<T extends boolean = true> {
3479
3614
  updatedAt?: T;
3480
3615
  createdAt?: T;
3481
3616
  }
3482
- /**
3483
- * This interface was referenced by `Config`'s JSON-Schema
3484
- * via the `definition` "fulfillments_select".
3485
- */
3486
- interface FulfillmentsSelect<T extends boolean = true> {
3487
- tenant?: T;
3488
- order?: T;
3489
- status?: T;
3490
- carrier?: T;
3491
- trackingNumber?: T;
3492
- shippedAt?: T;
3493
- deliveredAt?: T;
3494
- items?: T;
3495
- metadata?: T;
3496
- updatedAt?: T;
3497
- createdAt?: T;
3498
- }
3499
- /**
3500
- * This interface was referenced by `Config`'s JSON-Schema
3501
- * via the `definition` "fulfillment-items_select".
3502
- */
3503
- interface FulfillmentItemsSelect<T extends boolean = true> {
3504
- tenant?: T;
3505
- fulfillment?: T;
3506
- orderProduct?: T;
3507
- quantity?: T;
3508
- updatedAt?: T;
3509
- createdAt?: T;
3510
- }
3511
- /**
3512
- * This interface was referenced by `Config`'s JSON-Schema
3513
- * via the `definition` "transactions_select".
3514
- */
3515
- interface TransactionsSelect<T extends boolean = true> {
3516
- tenant?: T;
3517
- status?: T;
3518
- order?: T;
3519
- paymentId?: T;
3520
- paymentMethod?: T;
3521
- receiptUrl?: T;
3522
- totalAmount?: T;
3523
- updatedAt?: T;
3524
- createdAt?: T;
3525
- }
3526
3617
  /**
3527
3618
  * This interface was referenced by `Config`'s JSON-Schema
3528
3619
  * via the `definition` "customers_select".
@@ -4088,6 +4179,78 @@ interface PlaylistImagesSelect<T extends boolean = true> {
4088
4179
  };
4089
4180
  };
4090
4181
  }
4182
+ /**
4183
+ * This interface was referenced by `Config`'s JSON-Schema
4184
+ * via the `definition` "flows_select".
4185
+ */
4186
+ interface FlowsSelect<T extends boolean = true> {
4187
+ tenant?: T;
4188
+ title?: T;
4189
+ generateSlug?: T;
4190
+ slug?: T;
4191
+ description?: T;
4192
+ canvas?: T;
4193
+ status?: T;
4194
+ metadata?: T;
4195
+ updatedAt?: T;
4196
+ createdAt?: T;
4197
+ deletedAt?: T;
4198
+ }
4199
+ /**
4200
+ * This interface was referenced by `Config`'s JSON-Schema
4201
+ * via the `definition` "flow-images_select".
4202
+ */
4203
+ interface FlowImagesSelect<T extends boolean = true> {
4204
+ tenant?: T;
4205
+ alt?: T;
4206
+ lqip?: T;
4207
+ palette?: T | {
4208
+ vibrant?: T;
4209
+ muted?: T;
4210
+ darkVibrant?: T;
4211
+ darkMuted?: T;
4212
+ lightVibrant?: T;
4213
+ lightMuted?: T;
4214
+ };
4215
+ prefix?: T;
4216
+ updatedAt?: T;
4217
+ createdAt?: T;
4218
+ url?: T;
4219
+ thumbnailURL?: T;
4220
+ filename?: T;
4221
+ mimeType?: T;
4222
+ filesize?: T;
4223
+ width?: T;
4224
+ height?: T;
4225
+ focalX?: T;
4226
+ focalY?: T;
4227
+ sizes?: T | {
4228
+ '384'?: T | {
4229
+ url?: T;
4230
+ width?: T;
4231
+ height?: T;
4232
+ mimeType?: T;
4233
+ filesize?: T;
4234
+ filename?: T;
4235
+ };
4236
+ '768'?: T | {
4237
+ url?: T;
4238
+ width?: T;
4239
+ height?: T;
4240
+ mimeType?: T;
4241
+ filesize?: T;
4242
+ filename?: T;
4243
+ };
4244
+ '1536'?: T | {
4245
+ url?: T;
4246
+ width?: T;
4247
+ height?: T;
4248
+ mimeType?: T;
4249
+ filesize?: T;
4250
+ filename?: T;
4251
+ };
4252
+ };
4253
+ }
4091
4254
  /**
4092
4255
  * This interface was referenced by `Config`'s JSON-Schema
4093
4256
  * via the `definition` "forms_select".
@@ -4281,4 +4444,4 @@ declare module 'payload' {
4281
4444
  }
4282
4445
  }
4283
4446
 
4284
- export type { DocumentCategory as $, Audience as A, BrandLogo as B, CartItem as C, ReturnProduct as D, EmailLog as E, Form as F, Exchange as G, ExchangeProduct as H, IframeBlock as I, FulfillmentItem as J, Cart as K, Discount as L, Media as M, Post as N, Order as O, ProductOption as P, PostImage as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, PostAuthor as V, PostCategory as W, PostTag as X, Document as Y, DocumentType as Z, DocumentImage as _, OrderProduct as a, CollectionsWidget as a$, Playlist as a0, Music as a1, PlaylistImage as a2, FormSubmission as a3, PayloadKv as a4, PayloadLockedDocument as a5, PayloadPreference as a6, PayloadMigration as a7, UsersSelect as a8, MediaSelect as a9, TransactionsSelect as aA, CustomersSelect as aB, CustomerAddressesSelect as aC, CustomerGroupsSelect as aD, CustomerGroupImagesSelect as aE, CartsSelect as aF, CartItemsSelect as aG, DiscountsSelect as aH, ShippingPoliciesSelect as aI, PostsSelect as aJ, PostAuthorsSelect as aK, PostCategoriesSelect as aL, PostTagsSelect as aM, PostImagesSelect as aN, DocumentsSelect as aO, DocumentCategoriesSelect as aP, DocumentTypesSelect as aQ, DocumentImagesSelect as aR, PlaylistsSelect as aS, MusicsSelect as aT, PlaylistImagesSelect as aU, FormsSelect as aV, FormSubmissionsSelect as aW, PayloadKvSelect as aX, PayloadLockedDocumentsSelect as aY, PayloadPreferencesSelect as aZ, PayloadMigrationsSelect as a_, AudiencesSelect as aa, EmailLogsSelect as ab, TenantsSelect as ac, TenantMetadataSelect as ad, ApiUsageSelect as ae, SubscriptionsSelect as af, BillingHistorySelect as ag, TenantLogosSelect as ah, TenantOgImagesSelect as ai, ProductsSelect as aj, ProductVariantsSelect as ak, ProductOptionsSelect as al, ProductCategoriesSelect as am, ProductTagsSelect as an, ProductCollectionsSelect as ao, BrandsSelect as ap, BrandLogosSelect as aq, ProductImagesSelect as ar, OrdersSelect as as, OrderProductsSelect as at, ReturnsSelect as au, ReturnProductsSelect as av, ExchangesSelect as aw, ExchangeProductsSelect as ax, FulfillmentsSelect as ay, FulfillmentItemsSelect as az, Fulfillment as b, Auth as b0, Config as c, CustomerAuthOperations as d, PlayerBlock as e, CodeBlock as f, User as g, Tenant as h, TenantMetadatum as i, TenantOgImage as j, ApiUsage as k, Subscription as l, BillingHistory as m, TenantLogo as n, Product as o, ProductImage as p, ProductVariant as q, ProductCategory as r, ProductTag as s, ProductCollection as t, Brand as u, ShippingPolicy as v, Customer as w, CustomerGroup as x, CustomerGroupImage as y, CustomerAddress as z };
4447
+ export type { DocumentCategory as $, Audience as A, BrandLogo as B, CartItem as C, ReturnProduct as D, EmailLog as E, Form as F, Exchange as G, ExchangeProduct as H, IframeBlock as I, FulfillmentItem as J, Cart as K, Discount as L, Media as M, Post as N, Order as O, ProductOption as P, PostImage as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, PostAuthor as V, PostCategory as W, PostTag as X, Document as Y, DocumentType as Z, DocumentImage as _, OrderProduct as a, PayloadKvSelect as a$, Playlist as a0, Music as a1, PlaylistImage as a2, Flow as a3, FlowImage as a4, FormSubmission as a5, PayloadKv as a6, PayloadLockedDocument as a7, PayloadPreference as a8, PayloadMigration as a9, ReturnProductsSelect as aA, ExchangesSelect as aB, ExchangeProductsSelect as aC, CustomersSelect as aD, CustomerAddressesSelect as aE, CustomerGroupsSelect as aF, CustomerGroupImagesSelect as aG, CartsSelect as aH, CartItemsSelect as aI, DiscountsSelect as aJ, ShippingPoliciesSelect as aK, PostsSelect as aL, PostAuthorsSelect as aM, PostCategoriesSelect as aN, PostTagsSelect as aO, PostImagesSelect as aP, DocumentsSelect as aQ, DocumentCategoriesSelect as aR, DocumentTypesSelect as aS, DocumentImagesSelect as aT, PlaylistsSelect as aU, MusicsSelect as aV, PlaylistImagesSelect as aW, FlowsSelect as aX, FlowImagesSelect as aY, FormsSelect as aZ, FormSubmissionsSelect as a_, UsersSelect as aa, MediaSelect as ab, AudiencesSelect as ac, EmailLogsSelect as ad, TenantsSelect as ae, TenantMetadataSelect as af, ApiUsageSelect as ag, SubscriptionsSelect as ah, BillingHistorySelect as ai, TenantLogosSelect as aj, TenantOgImagesSelect as ak, ProductsSelect as al, ProductVariantsSelect as am, ProductOptionsSelect as an, ProductCategoriesSelect as ao, ProductTagsSelect as ap, ProductCollectionsSelect as aq, BrandsSelect as ar, BrandLogosSelect as as, ProductImagesSelect as at, OrdersSelect as au, OrderProductsSelect as av, TransactionsSelect as aw, FulfillmentsSelect as ax, FulfillmentItemsSelect as ay, ReturnsSelect as az, Fulfillment as b, PayloadLockedDocumentsSelect as b0, PayloadPreferencesSelect as b1, PayloadMigrationsSelect as b2, CollectionsWidget as b3, Auth as b4, Config as c, CustomerAuthOperations as d, PlayerBlock as e, CodeBlock as f, User as g, Tenant as h, TenantMetadatum as i, TenantOgImage as j, ApiUsage as k, Subscription as l, BillingHistory as m, TenantLogo as n, Product as o, ProductImage as p, ProductVariant as q, ProductCategory as r, ProductTag as s, ProductCollection as t, Brand as u, ShippingPolicy as v, Customer as w, CustomerGroup as x, CustomerGroupImage as y, CustomerAddress as z };
@@ -1,4 +1,4 @@
1
- import { c as Config } from './payload-types-CRSz8jfP.cjs';
1
+ import { c as Config } from './payload-types-BFAXKjly.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", "tenant-og-images", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-images", "product-collections", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "exchanges", "exchange-products", "fulfillments", "fulfillment-items", "transactions", "customers", "customer-addresses", "customer-groups", "customer-group-images", "carts", "cart-items", "discounts", "shipping-policies", "documents", "document-categories", "document-types", "document-images", "posts", "post-categories", "post-tags", "post-images", "playlists", "playlist-images", "musics", "forms", "form-submissions", "media"];
12
+ declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "tenant-og-images", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-images", "product-collections", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "exchanges", "exchange-products", "fulfillments", "fulfillment-items", "transactions", "customers", "customer-addresses", "customer-groups", "customer-group-images", "carts", "cart-items", "discounts", "shipping-policies", "documents", "document-categories", "document-types", "document-images", "posts", "post-categories", "post-tags", "post-images", "playlists", "playlist-images", "musics", "flows", "flow-images", "forms", "form-submissions", "media"];
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-CRSz8jfP.js';
1
+ import { c as Config } from './payload-types-BFAXKjly.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", "tenant-og-images", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-images", "product-collections", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "exchanges", "exchange-products", "fulfillments", "fulfillment-items", "transactions", "customers", "customer-addresses", "customer-groups", "customer-group-images", "carts", "cart-items", "discounts", "shipping-policies", "documents", "document-categories", "document-types", "document-images", "posts", "post-categories", "post-tags", "post-images", "playlists", "playlist-images", "musics", "forms", "form-submissions", "media"];
12
+ declare const COLLECTIONS: readonly ["tenants", "tenant-metadata", "tenant-logos", "tenant-og-images", "products", "product-variants", "product-options", "product-categories", "product-tags", "product-images", "product-collections", "brands", "brand-logos", "orders", "order-products", "returns", "return-products", "exchanges", "exchange-products", "fulfillments", "fulfillment-items", "transactions", "customers", "customer-addresses", "customer-groups", "customer-group-images", "carts", "cart-items", "discounts", "shipping-policies", "documents", "document-categories", "document-types", "document-images", "posts", "post-categories", "post-tags", "post-images", "playlists", "playlist-images", "musics", "flows", "flow-images", "forms", "form-submissions", "media"];
13
13
  /**
14
14
  * Public collections available for SDK access.
15
15
  * Derived from the COLLECTIONS array (single source of truth).
@@ -1,2 +1,2 @@
1
- export { c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-Dn5o0LXq.cjs';
2
- import './payload-types-CRSz8jfP.cjs';
1
+ export { c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-CmbS5Uu3.cjs';
2
+ import './payload-types-BFAXKjly.cjs';
package/dist/webhook.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-C_DHB0Sw.js';
2
- import './payload-types-CRSz8jfP.js';
1
+ export { c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-Ct6PD0Ys.js';
2
+ import './payload-types-BFAXKjly.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01.software/sdk",
3
- "version": "0.2.8",
3
+ "version": "0.2.9-dev.260305.35fd2d4",
4
4
  "description": "01.software SDK",
5
5
  "author": "<office@01.works>",
6
6
  "keywords": [],
@@ -49,6 +49,16 @@
49
49
  "default": "./dist/components.cjs"
50
50
  }
51
51
  },
52
+ "./flow": {
53
+ "import": {
54
+ "types": "./dist/flow.d.ts",
55
+ "default": "./dist/flow.js"
56
+ },
57
+ "require": {
58
+ "types": "./dist/flow.d.cts",
59
+ "default": "./dist/flow.cjs"
60
+ }
61
+ },
52
62
  "./package.json": "./package.json"
53
63
  },
54
64
  "sideEffects": false,
@@ -64,6 +74,7 @@
64
74
  "@types/node": "^22.15.3",
65
75
  "@types/react": "19.2.3",
66
76
  "@types/react-dom": "19.2.3",
77
+ "@xyflow/react": "^12.10.1",
67
78
  "next": "15.4.10",
68
79
  "publint": "^0.3.16",
69
80
  "react": "^19.2.3",
@@ -84,10 +95,16 @@
84
95
  },
85
96
  "peerDependencies": {
86
97
  "@tanstack/react-query": ">=5",
98
+ "@xyflow/react": ">=12",
87
99
  "next": ">=14",
88
100
  "react": ">=18",
89
101
  "react-dom": ">=18"
90
102
  },
103
+ "peerDependenciesMeta": {
104
+ "@xyflow/react": {
105
+ "optional": true
106
+ }
107
+ },
91
108
  "publishConfig": {
92
109
  "access": "public"
93
110
  },