@blezgo/api-sdk 0.1.3 → 0.1.4

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 (138) hide show
  1. package/dist/account/generated.d.ts +180 -180
  2. package/dist/account/generated.d.ts.map +1 -1
  3. package/dist/activity/generated.d.ts +60 -60
  4. package/dist/activity/generated.d.ts.map +1 -1
  5. package/dist/addon/generated.d.ts +83 -83
  6. package/dist/addon/generated.d.ts.map +1 -1
  7. package/dist/admin/generated.d.ts +126 -126
  8. package/dist/admin/generated.d.ts.map +1 -1
  9. package/dist/affiliate/generated.d.ts +83 -83
  10. package/dist/affiliate/generated.d.ts.map +1 -1
  11. package/dist/analytics/generated.d.ts +30 -30
  12. package/dist/analytics/generated.d.ts.map +1 -1
  13. package/dist/announcements/generated.d.ts +64 -64
  14. package/dist/announcements/generated.d.ts.map +1 -1
  15. package/dist/apikeys/generated.d.ts +79 -79
  16. package/dist/apikeys/generated.d.ts.map +1 -1
  17. package/dist/assistance/generated.d.ts +30 -30
  18. package/dist/assistance/generated.d.ts.map +1 -1
  19. package/dist/authentication/generated.d.ts +83 -83
  20. package/dist/authentication/generated.d.ts.map +1 -1
  21. package/dist/blog/generated.d.ts +204 -204
  22. package/dist/blog/generated.d.ts.map +1 -1
  23. package/dist/bundle/generated.d.ts +147 -147
  24. package/dist/bundle/generated.d.ts.map +1 -1
  25. package/dist/cache/generated.d.ts +33 -33
  26. package/dist/cache/generated.d.ts.map +1 -1
  27. package/dist/calendar/generated.d.ts +80 -80
  28. package/dist/calendar/generated.d.ts.map +1 -1
  29. package/dist/campaigns/generated.d.ts +198 -198
  30. package/dist/campaigns/generated.d.ts.map +1 -1
  31. package/dist/cart/generated.d.ts +40 -40
  32. package/dist/cart/generated.d.ts.map +1 -1
  33. package/dist/changelog/generated.d.ts +95 -95
  34. package/dist/changelog/generated.d.ts.map +1 -1
  35. package/dist/channel/generated.d.ts +251 -251
  36. package/dist/channel/generated.d.ts.map +1 -1
  37. package/dist/company/generated.d.ts +69 -69
  38. package/dist/company/generated.d.ts.map +1 -1
  39. package/dist/conference/generated.d.ts +166 -166
  40. package/dist/conference/generated.d.ts.map +1 -1
  41. package/dist/config/generated.d.ts +54 -54
  42. package/dist/config/generated.d.ts.map +1 -1
  43. package/dist/content/generated.d.ts +477 -477
  44. package/dist/content/generated.d.ts.map +1 -1
  45. package/dist/cookies/generated.d.ts +77 -77
  46. package/dist/cookies/generated.d.ts.map +1 -1
  47. package/dist/courses/generated.d.ts +397 -397
  48. package/dist/courses/generated.d.ts.map +1 -1
  49. package/dist/custom/generated.d.ts +99 -99
  50. package/dist/custom/generated.d.ts.map +1 -1
  51. package/dist/dashboard/generated.d.ts +177 -177
  52. package/dist/dashboard/generated.d.ts.map +1 -1
  53. package/dist/elasticsearch/generated.d.ts +30 -30
  54. package/dist/elasticsearch/generated.d.ts.map +1 -1
  55. package/dist/enrollments/generated.d.ts +30 -30
  56. package/dist/enrollments/generated.d.ts.map +1 -1
  57. package/dist/errors/generated.d.ts +30 -30
  58. package/dist/errors/generated.d.ts.map +1 -1
  59. package/dist/eventconfig/generated.d.ts +94 -94
  60. package/dist/eventconfig/generated.d.ts.map +1 -1
  61. package/dist/funnels/generated.d.ts +146 -146
  62. package/dist/funnels/generated.d.ts.map +1 -1
  63. package/dist/gamification/generated.d.ts +154 -154
  64. package/dist/gamification/generated.d.ts.map +1 -1
  65. package/dist/impersonation/generated.d.ts +71 -71
  66. package/dist/impersonation/generated.d.ts.map +1 -1
  67. package/dist/inbox/generated.d.ts +140 -140
  68. package/dist/inbox/generated.d.ts.map +1 -1
  69. package/dist/internal/generated.d.ts +30 -30
  70. package/dist/internal/generated.d.ts.map +1 -1
  71. package/dist/internationalization/generated.d.ts +30 -30
  72. package/dist/internationalization/generated.d.ts.map +1 -1
  73. package/dist/invitations/generated.d.ts +123 -123
  74. package/dist/invitations/generated.d.ts.map +1 -1
  75. package/dist/meetings/generated.d.ts +337 -337
  76. package/dist/meetings/generated.d.ts.map +1 -1
  77. package/dist/metas/generated.d.ts +170 -170
  78. package/dist/metas/generated.d.ts.map +1 -1
  79. package/dist/notification/generated.d.ts +382 -382
  80. package/dist/notification/generated.d.ts.map +1 -1
  81. package/dist/notifications/generated.d.ts +30 -30
  82. package/dist/notifications/generated.d.ts.map +1 -1
  83. package/dist/onboarding/generated.d.ts +106 -106
  84. package/dist/onboarding/generated.d.ts.map +1 -1
  85. package/dist/packages/generated.d.ts +83 -83
  86. package/dist/packages/generated.d.ts.map +1 -1
  87. package/dist/payments/generated.d.ts +502 -502
  88. package/dist/payments/generated.d.ts.map +1 -1
  89. package/dist/payouts/generated.d.ts +30 -30
  90. package/dist/payouts/generated.d.ts.map +1 -1
  91. package/dist/plans/generated.d.ts +470 -470
  92. package/dist/plans/generated.d.ts.map +1 -1
  93. package/dist/pricing/generated.d.ts +87 -87
  94. package/dist/pricing/generated.d.ts.map +1 -1
  95. package/dist/products/generated.d.ts +552 -552
  96. package/dist/products/generated.d.ts.map +1 -1
  97. package/dist/profile/generated.d.ts +272 -272
  98. package/dist/profile/generated.d.ts.map +1 -1
  99. package/dist/reasons/generated.d.ts +78 -78
  100. package/dist/reasons/generated.d.ts.map +1 -1
  101. package/dist/registration/generated.d.ts +145 -145
  102. package/dist/registration/generated.d.ts.map +1 -1
  103. package/dist/reviews/generated.d.ts +47 -47
  104. package/dist/reviews/generated.d.ts.map +1 -1
  105. package/dist/role/generated.d.ts +217 -217
  106. package/dist/role/generated.d.ts.map +1 -1
  107. package/dist/scheduling/generated.d.ts +139 -139
  108. package/dist/scheduling/generated.d.ts.map +1 -1
  109. package/dist/services/generated.d.ts +989 -989
  110. package/dist/services/generated.d.ts.map +1 -1
  111. package/dist/sessions/generated.d.ts +334 -334
  112. package/dist/sessions/generated.d.ts.map +1 -1
  113. package/dist/spaces/generated.d.ts +390 -390
  114. package/dist/spaces/generated.d.ts.map +1 -1
  115. package/dist/storefront/generated.d.ts +30 -30
  116. package/dist/storefront/generated.d.ts.map +1 -1
  117. package/dist/support/generated.d.ts +1465 -1465
  118. package/dist/support/generated.d.ts.map +1 -1
  119. package/dist/sync/generated.d.ts +157 -157
  120. package/dist/sync/generated.d.ts.map +1 -1
  121. package/dist/tenant/generated.d.ts +562 -562
  122. package/dist/tenant/generated.d.ts.map +1 -1
  123. package/dist/testimonials/generated.d.ts +67 -67
  124. package/dist/testimonials/generated.d.ts.map +1 -1
  125. package/dist/tests/generated.d.ts +619 -619
  126. package/dist/tests/generated.d.ts.map +1 -1
  127. package/dist/tokens/generated.d.ts +59 -59
  128. package/dist/tokens/generated.d.ts.map +1 -1
  129. package/dist/uploads/generated.d.ts +65 -65
  130. package/dist/uploads/generated.d.ts.map +1 -1
  131. package/dist/upsell/generated.d.ts +130 -130
  132. package/dist/upsell/generated.d.ts.map +1 -1
  133. package/dist/user/generated.d.ts +123 -117
  134. package/dist/user/generated.d.ts.map +1 -1
  135. package/dist/webinars/generated.d.ts +298 -298
  136. package/dist/webinars/generated.d.ts.map +1 -1
  137. package/package.json +1 -1
  138. package/test-commit.txt +1 -0
@@ -181,55 +181,83 @@ export type webhooks = Record<string, never>;
181
181
  export interface components {
182
182
  schemas: {
183
183
  /**
184
- * ProductSection
185
- * @description Base product fields (maps to product_tbl)
184
+ * VariantItem
185
+ * @description Product variant (maps to product_variants_tbl)
186
186
  */
187
- ProductSection: {
187
+ VariantItem: {
188
188
  /**
189
- * Visibility
190
- * @description public, private, hidden, unlisted
191
- * @default public
189
+ * Name
190
+ * @description Variant display name
192
191
  */
193
- visibility: string;
192
+ name: string;
194
193
  /**
195
- * Is Digital
196
- * @description Digital product flag
197
- * @default true
194
+ * Sku
195
+ * @description Stock Keeping Unit
198
196
  */
199
- is_digital: boolean;
197
+ sku?: string | null;
200
198
  /**
201
- * Company Id
202
- * @description Multi-company support
199
+ * Attributes
200
+ * @description Custom attributes
203
201
  */
204
- company_id?: number | null;
202
+ attributes?: {
203
+ [key: string]: unknown;
204
+ } | null;
205
205
  /**
206
- * Status
207
- * @description draft, published, archived, review_required, deleted
208
- * @default draft
206
+ * Is Default
207
+ * @description Set as default variant
208
+ * @default false
209
209
  */
210
- status: string;
210
+ is_default: boolean;
211
211
  /**
212
- * Is Org Level
213
- * @description Org-level vs user-created product
214
- * @default true
212
+ * Track Inventory
213
+ * @description Track stock for this variant
214
+ * @default false
215
215
  */
216
- is_org_level: boolean;
216
+ track_inventory: boolean;
217
217
  /**
218
- * Staff Id
219
- * @description Staff/instructor delivering product
218
+ * Stock Quantity
219
+ * @description Initial stock
220
220
  */
221
- staff_id?: number | null;
221
+ stock_quantity?: number | null;
222
222
  /**
223
- * Owner Id
224
- * @description Owner of the product
223
+ * Allow Backorder
224
+ * @description Allow orders when out of stock
225
+ * @default false
225
226
  */
226
- owner_id?: number | null;
227
+ allow_backorder: boolean;
227
228
  /**
228
- * Featured
229
- * @description Featured product flag
230
- * @default false
229
+ * Weight
230
+ * @description Weight in kg
231
231
  */
232
- featured: boolean;
232
+ weight?: number | null;
233
+ /**
234
+ * Length
235
+ * @description Length in cm
236
+ */
237
+ length?: number | null;
238
+ /**
239
+ * Width
240
+ * @description Width in cm
241
+ */
242
+ width?: number | null;
243
+ /**
244
+ * Height
245
+ * @description Height in cm
246
+ */
247
+ height?: number | null;
248
+ /**
249
+ * Display Order
250
+ * @description Display order
251
+ * @default 100
252
+ */
253
+ display_order: number;
254
+ /**
255
+ * Metadata
256
+ * @description Flexible metadata
257
+ */
258
+ metadata?: {
259
+ [key: string]: unknown;
260
+ } | null;
233
261
  };
234
262
  /**
235
263
  * WebinarCreateRequest
@@ -280,22 +308,11 @@ export interface components {
280
308
  /** @description Webinar-specific configuration */
281
309
  webinar: components["schemas"]["WebinarSection"];
282
310
  };
283
- /** Body_updateWebinar */
284
- Body_updateWebinar: {
285
- /** Starts At */
286
- starts_at?: string | null;
287
- /** Ends At */
288
- ends_at?: string | null;
289
- /** Duration Minutes */
290
- duration_minutes?: number | null;
291
- /** Max Attendees */
292
- max_attendees?: number | null;
293
- /** Status */
294
- status?: string | null;
295
- /** Qa Enabled */
296
- qa_enabled?: boolean | null;
297
- /** Polling Enabled */
298
- polling_enabled?: boolean | null;
311
+ InvalidParam: {
312
+ /** @example items[0].quantity */
313
+ field?: string;
314
+ /** @example Input should be greater than or equal to 1 */
315
+ error?: string;
299
316
  };
300
317
  /**
301
318
  * @example {
@@ -324,80 +341,6 @@ export interface components {
324
341
  metadata?: Record<string, never> | null;
325
342
  error?: components["schemas"]["ErrorResponse"];
326
343
  };
327
- /**
328
- * ProductPrice
329
- * @description Base product pricing (maps to product_pricings_tbl with variant_id=NULL)
330
- */
331
- ProductPrice: {
332
- /**
333
- * Price Type
334
- * @description free, one_time, subscription, monthly_plan
335
- */
336
- price_type: string;
337
- /**
338
- * Currency
339
- * @description Currency code: INR, USD, EUR, etc.
340
- */
341
- currency: string;
342
- /**
343
- * Amount
344
- * @description Price amount
345
- */
346
- amount: number;
347
- /**
348
- * Compare At Amount
349
- * @description Original/strike-through price
350
- */
351
- compare_at_amount?: number | null;
352
- /**
353
- * Interval
354
- * @description day, week, month, year (for subscription)
355
- */
356
- interval?: string | null;
357
- /**
358
- * Interval Count
359
- * @description Number of intervals
360
- */
361
- interval_count?: number | null;
362
- /**
363
- * Trial Period Days
364
- * @description Free trial days
365
- */
366
- trial_period_days?: number | null;
367
- /**
368
- * Initial Amount
369
- * @description First payment amount
370
- */
371
- initial_amount?: number | null;
372
- /**
373
- * Gateway
374
- * @description stripe, razorpay, paypal, etc.
375
- */
376
- gateway?: string | null;
377
- /**
378
- * Requires Payment Method Upfront
379
- * @description Require payment method before trial
380
- * @default true
381
- */
382
- requires_payment_method_upfront: boolean;
383
- };
384
- /**
385
- * MediaSection
386
- * @description Product media files - direct media data
387
- */
388
- MediaSection: {
389
- /**
390
- * Media Items
391
- * @description List of media files to attach to product
392
- */
393
- media_items?: components["schemas"]["MediaItem"][] | null;
394
- };
395
- InvalidParam: {
396
- /** @example items[0].quantity */
397
- field?: string;
398
- /** @example Input should be greater than or equal to 1 */
399
- error?: string;
400
- };
401
344
  /**
402
345
  * MediaItem
403
346
  * @description Single media file item
@@ -469,142 +412,56 @@ export interface components {
469
412
  */
470
413
  is_primary: boolean;
471
414
  };
472
- Extensions: {
473
- /** @example GENERIC_ERROR */
474
- message_code?: string;
475
- /** @example [] */
476
- invalid_params?: components["schemas"]["InvalidParam"][];
477
- extra_data?: Record<string, never> | null;
478
- /** @example Detailed debug information */
479
- debug?: string | null;
480
- };
481
415
  /**
482
- * VariantPrice
483
- * @description Variant-specific pricing (maps to product_pricings_tbl with variant_id set)
416
+ * WebinarSection
417
+ * @description Webinar-specific fields (maps to webinars_tbl)
484
418
  */
485
- VariantPrice: {
419
+ WebinarSection: {
486
420
  /**
487
- * Variant Index
488
- * @description Index in variants array (0-based)
421
+ * Primary Presenter Id
422
+ * @description External user ID of primary presenter (usr_xxx)
489
423
  */
490
- variant_index: number;
424
+ primary_presenter_id?: string | null;
491
425
  /**
492
- * Price Type
493
- * @description free, one_time, subscription, monthly_plan
426
+ * Co Presenters
427
+ * @description Co-presenters with external user_id (usr_xxx)
494
428
  */
495
- price_type: string;
429
+ co_presenters?: {
430
+ [key: string]: unknown;
431
+ }[] | null;
496
432
  /**
497
- * Currency
498
- * @description Currency code
433
+ * Starts At
434
+ * Format: date-time
435
+ * @description Webinar start time (UTC)
499
436
  */
500
- currency: string;
437
+ starts_at: string;
501
438
  /**
502
- * Amount
503
- * @description Price amount
439
+ * Ends At
440
+ * Format: date-time
441
+ * @description Webinar end time (UTC)
504
442
  */
505
- amount: number;
443
+ ends_at: string;
506
444
  /**
507
- * Compare At Amount
508
- * @description Original/strike-through price
445
+ * Duration Minutes
446
+ * @description Webinar duration in minutes
509
447
  */
510
- compare_at_amount?: number | null;
448
+ duration_minutes?: number | null;
511
449
  /**
512
- * Interval
513
- * @description day, week, month, year
450
+ * Is Recurring
451
+ * @description Is this a recurring webinar
452
+ * @default false
514
453
  */
515
- interval?: string | null;
454
+ is_recurring: boolean;
516
455
  /**
517
- * Interval Count
518
- * @description Number of intervals
456
+ * Recurrence Rule
457
+ * @description RRULE format for recurrence
519
458
  */
520
- interval_count?: number | null;
459
+ recurrence_rule?: string | null;
521
460
  /**
522
- * Trial Period Days
523
- * @description Free trial days
461
+ * Recurrence End Date
462
+ * @description End date for recurring webinars
524
463
  */
525
- trial_period_days?: number | null;
526
- /**
527
- * Initial Amount
528
- * @description First payment amount
529
- */
530
- initial_amount?: number | null;
531
- /**
532
- * Gateway
533
- * @description stripe, razorpay, paypal, etc.
534
- */
535
- gateway?: string | null;
536
- /**
537
- * Requires Payment Method Upfront
538
- * @description Require payment method before trial
539
- * @default true
540
- */
541
- requires_payment_method_upfront: boolean;
542
- };
543
- ErrorResponse: {
544
- /** @example about:blank */
545
- type?: string;
546
- /** @example GENERIC_ERROR */
547
- code?: string;
548
- /** @example Client Error */
549
- title?: string;
550
- /** @example 400 */
551
- status?: number;
552
- /** @example An error occurred */
553
- detail?: string;
554
- /** @example /v1/cart/items */
555
- instance?: string;
556
- extensions?: components["schemas"]["Extensions"];
557
- };
558
- /**
559
- * WebinarSection
560
- * @description Webinar-specific fields (maps to webinars_tbl)
561
- */
562
- WebinarSection: {
563
- /**
564
- * Primary Presenter Id
565
- * @description External user ID of primary presenter (usr_xxx)
566
- */
567
- primary_presenter_id?: string | null;
568
- /**
569
- * Co Presenters
570
- * @description Co-presenters with external user_id (usr_xxx)
571
- */
572
- co_presenters?: {
573
- [key: string]: unknown;
574
- }[] | null;
575
- /**
576
- * Starts At
577
- * Format: date-time
578
- * @description Webinar start time (UTC)
579
- */
580
- starts_at: string;
581
- /**
582
- * Ends At
583
- * Format: date-time
584
- * @description Webinar end time (UTC)
585
- */
586
- ends_at: string;
587
- /**
588
- * Duration Minutes
589
- * @description Webinar duration in minutes
590
- */
591
- duration_minutes?: number | null;
592
- /**
593
- * Is Recurring
594
- * @description Is this a recurring webinar
595
- * @default false
596
- */
597
- is_recurring: boolean;
598
- /**
599
- * Recurrence Rule
600
- * @description RRULE format for recurrence
601
- */
602
- recurrence_rule?: string | null;
603
- /**
604
- * Recurrence End Date
605
- * @description End date for recurring webinars
606
- */
607
- recurrence_end_date?: string | null;
464
+ recurrence_end_date?: string | null;
608
465
  /**
609
466
  * Registration Required
610
467
  * @description Require registration to attend
@@ -696,18 +553,42 @@ export interface components {
696
553
  */
697
554
  locale?: string | null;
698
555
  };
556
+ /** Body_updateWebinar */
557
+ Body_updateWebinar: {
558
+ /** Starts At */
559
+ starts_at?: string | null;
560
+ /** Ends At */
561
+ ends_at?: string | null;
562
+ /** Duration Minutes */
563
+ duration_minutes?: number | null;
564
+ /** Max Attendees */
565
+ max_attendees?: number | null;
566
+ /** Status */
567
+ status?: string | null;
568
+ /** Qa Enabled */
569
+ qa_enabled?: boolean | null;
570
+ /** Polling Enabled */
571
+ polling_enabled?: boolean | null;
572
+ };
699
573
  /**
700
- * PricingSection
701
- * @description Pricing configuration (optional - can have product price, variant prices, or both)
574
+ * MediaSection
575
+ * @description Product media files - direct media data
702
576
  */
703
- PricingSection: {
704
- /** @description Base product price (no variant) */
705
- product_price?: components["schemas"]["ProductPrice"] | null;
577
+ MediaSection: {
706
578
  /**
707
- * Variant Prices
708
- * @description Variant-specific prices
579
+ * Media Items
580
+ * @description List of media files to attach to product
709
581
  */
710
- variant_prices?: components["schemas"]["VariantPrice"][] | null;
582
+ media_items?: components["schemas"]["MediaItem"][] | null;
583
+ };
584
+ Extensions: {
585
+ /** @example GENERIC_ERROR */
586
+ message_code?: string;
587
+ /** @example [] */
588
+ invalid_params?: components["schemas"]["InvalidParam"][];
589
+ extra_data?: Record<string, never> | null;
590
+ /** @example Detailed debug information */
591
+ debug?: string | null;
711
592
  };
712
593
  /**
713
594
  * IdentitySection
@@ -742,83 +623,202 @@ export interface components {
742
623
  short_description?: string | null;
743
624
  };
744
625
  /**
745
- * VariantItem
746
- * @description Product variant (maps to product_variants_tbl)
626
+ * ProductPrice
627
+ * @description Base product pricing (maps to product_pricings_tbl with variant_id=NULL)
747
628
  */
748
- VariantItem: {
629
+ ProductPrice: {
749
630
  /**
750
- * Name
751
- * @description Variant display name
631
+ * Price Type
632
+ * @description free, one_time, subscription, monthly_plan
752
633
  */
753
- name: string;
634
+ price_type: string;
754
635
  /**
755
- * Sku
756
- * @description Stock Keeping Unit
636
+ * Currency
637
+ * @description Currency code: INR, USD, EUR, etc.
757
638
  */
758
- sku?: string | null;
639
+ currency: string;
759
640
  /**
760
- * Attributes
761
- * @description Custom attributes
641
+ * Amount
642
+ * @description Price amount
762
643
  */
763
- attributes?: {
764
- [key: string]: unknown;
765
- } | null;
644
+ amount: number;
766
645
  /**
767
- * Is Default
768
- * @description Set as default variant
769
- * @default false
646
+ * Compare At Amount
647
+ * @description Original/strike-through price
770
648
  */
771
- is_default: boolean;
649
+ compare_at_amount?: number | null;
772
650
  /**
773
- * Track Inventory
774
- * @description Track stock for this variant
775
- * @default false
651
+ * Interval
652
+ * @description day, week, month, year (for subscription)
776
653
  */
777
- track_inventory: boolean;
654
+ interval?: string | null;
778
655
  /**
779
- * Stock Quantity
780
- * @description Initial stock
656
+ * Interval Count
657
+ * @description Number of intervals
781
658
  */
782
- stock_quantity?: number | null;
659
+ interval_count?: number | null;
783
660
  /**
784
- * Allow Backorder
785
- * @description Allow orders when out of stock
786
- * @default false
661
+ * Trial Period Days
662
+ * @description Free trial days
787
663
  */
788
- allow_backorder: boolean;
664
+ trial_period_days?: number | null;
789
665
  /**
790
- * Weight
791
- * @description Weight in kg
666
+ * Initial Amount
667
+ * @description First payment amount
792
668
  */
793
- weight?: number | null;
669
+ initial_amount?: number | null;
794
670
  /**
795
- * Length
796
- * @description Length in cm
671
+ * Gateway
672
+ * @description stripe, razorpay, paypal, etc.
797
673
  */
798
- length?: number | null;
674
+ gateway?: string | null;
799
675
  /**
800
- * Width
801
- * @description Width in cm
676
+ * Requires Payment Method Upfront
677
+ * @description Require payment method before trial
678
+ * @default true
802
679
  */
803
- width?: number | null;
680
+ requires_payment_method_upfront: boolean;
681
+ };
682
+ /**
683
+ * VariantPrice
684
+ * @description Variant-specific pricing (maps to product_pricings_tbl with variant_id set)
685
+ */
686
+ VariantPrice: {
804
687
  /**
805
- * Height
806
- * @description Height in cm
688
+ * Variant Index
689
+ * @description Index in variants array (0-based)
807
690
  */
808
- height?: number | null;
691
+ variant_index: number;
809
692
  /**
810
- * Display Order
811
- * @description Display order
812
- * @default 100
693
+ * Price Type
694
+ * @description free, one_time, subscription, monthly_plan
813
695
  */
814
- display_order: number;
696
+ price_type: string;
815
697
  /**
816
- * Metadata
817
- * @description Flexible metadata
698
+ * Currency
699
+ * @description Currency code
818
700
  */
819
- metadata?: {
820
- [key: string]: unknown;
821
- } | null;
701
+ currency: string;
702
+ /**
703
+ * Amount
704
+ * @description Price amount
705
+ */
706
+ amount: number;
707
+ /**
708
+ * Compare At Amount
709
+ * @description Original/strike-through price
710
+ */
711
+ compare_at_amount?: number | null;
712
+ /**
713
+ * Interval
714
+ * @description day, week, month, year
715
+ */
716
+ interval?: string | null;
717
+ /**
718
+ * Interval Count
719
+ * @description Number of intervals
720
+ */
721
+ interval_count?: number | null;
722
+ /**
723
+ * Trial Period Days
724
+ * @description Free trial days
725
+ */
726
+ trial_period_days?: number | null;
727
+ /**
728
+ * Initial Amount
729
+ * @description First payment amount
730
+ */
731
+ initial_amount?: number | null;
732
+ /**
733
+ * Gateway
734
+ * @description stripe, razorpay, paypal, etc.
735
+ */
736
+ gateway?: string | null;
737
+ /**
738
+ * Requires Payment Method Upfront
739
+ * @description Require payment method before trial
740
+ * @default true
741
+ */
742
+ requires_payment_method_upfront: boolean;
743
+ };
744
+ ErrorResponse: {
745
+ /** @example about:blank */
746
+ type?: string;
747
+ /** @example GENERIC_ERROR */
748
+ code?: string;
749
+ /** @example Client Error */
750
+ title?: string;
751
+ /** @example 400 */
752
+ status?: number;
753
+ /** @example An error occurred */
754
+ detail?: string;
755
+ /** @example /v1/cart/items */
756
+ instance?: string;
757
+ extensions?: components["schemas"]["Extensions"];
758
+ };
759
+ /**
760
+ * ProductSection
761
+ * @description Base product fields (maps to product_tbl)
762
+ */
763
+ ProductSection: {
764
+ /**
765
+ * Visibility
766
+ * @description public, private, hidden, unlisted
767
+ * @default public
768
+ */
769
+ visibility: string;
770
+ /**
771
+ * Is Digital
772
+ * @description Digital product flag
773
+ * @default true
774
+ */
775
+ is_digital: boolean;
776
+ /**
777
+ * Company Id
778
+ * @description Multi-company support
779
+ */
780
+ company_id?: number | null;
781
+ /**
782
+ * Status
783
+ * @description draft, published, archived, review_required, deleted
784
+ * @default draft
785
+ */
786
+ status: string;
787
+ /**
788
+ * Is Org Level
789
+ * @description Org-level vs user-created product
790
+ * @default true
791
+ */
792
+ is_org_level: boolean;
793
+ /**
794
+ * Staff Id
795
+ * @description Staff/instructor delivering product
796
+ */
797
+ staff_id?: number | null;
798
+ /**
799
+ * Owner Id
800
+ * @description Owner of the product
801
+ */
802
+ owner_id?: number | null;
803
+ /**
804
+ * Featured
805
+ * @description Featured product flag
806
+ * @default false
807
+ */
808
+ featured: boolean;
809
+ };
810
+ /**
811
+ * PricingSection
812
+ * @description Pricing configuration (optional - can have product price, variant prices, or both)
813
+ */
814
+ PricingSection: {
815
+ /** @description Base product price (no variant) */
816
+ product_price?: components["schemas"]["ProductPrice"] | null;
817
+ /**
818
+ * Variant Prices
819
+ * @description Variant-specific prices
820
+ */
821
+ variant_prices?: components["schemas"]["VariantPrice"][] | null;
822
822
  };
823
823
  };
824
824
  responses: never;