@blezgo/api-sdk 0.1.4 → 0.1.5
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.
- package/dist/account/generated.d.ts +193 -193
- package/dist/account/generated.d.ts.map +1 -1
- package/dist/activity/generated.d.ts +82 -82
- package/dist/activity/generated.d.ts.map +1 -1
- package/dist/addon/generated.d.ts +96 -96
- package/dist/addon/generated.d.ts.map +1 -1
- package/dist/admin/generated.d.ts +85 -85
- package/dist/admin/generated.d.ts.map +1 -1
- package/dist/affiliate/generated.d.ts +87 -87
- package/dist/affiliate/generated.d.ts.map +1 -1
- package/dist/analytics/generated.d.ts +15 -15
- package/dist/analytics/generated.d.ts.map +1 -1
- package/dist/announcements/generated.d.ts +34 -34
- package/dist/announcements/generated.d.ts.map +1 -1
- package/dist/apikeys/generated.d.ts +99 -99
- package/dist/apikeys/generated.d.ts.map +1 -1
- package/dist/assistance/generated.d.ts +15 -15
- package/dist/assistance/generated.d.ts.map +1 -1
- package/dist/authentication/generated.d.ts +74 -74
- package/dist/authentication/generated.d.ts.map +1 -1
- package/dist/blog/generated.d.ts +144 -144
- package/dist/blog/generated.d.ts.map +1 -1
- package/dist/bundle/generated.d.ts +177 -177
- package/dist/bundle/generated.d.ts.map +1 -1
- package/dist/cache/generated.d.ts +37 -37
- package/dist/cache/generated.d.ts.map +1 -1
- package/dist/calendar/generated.d.ts +69 -69
- package/dist/calendar/generated.d.ts.map +1 -1
- package/dist/campaigns/generated.d.ts +215 -215
- package/dist/campaigns/generated.d.ts.map +1 -1
- package/dist/cart/generated.d.ts +57 -57
- package/dist/cart/generated.d.ts.map +1 -1
- package/dist/changelog/generated.d.ts +103 -103
- package/dist/changelog/generated.d.ts.map +1 -1
- package/dist/channel/generated.d.ts +221 -221
- package/dist/channel/generated.d.ts.map +1 -1
- package/dist/company/generated.d.ts +35 -35
- package/dist/company/generated.d.ts.map +1 -1
- package/dist/conference/generated.d.ts +155 -155
- package/dist/conference/generated.d.ts.map +1 -1
- package/dist/config/generated.d.ts +44 -44
- package/dist/config/generated.d.ts.map +1 -1
- package/dist/content/generated.d.ts +500 -500
- package/dist/content/generated.d.ts.map +1 -1
- package/dist/cookies/generated.d.ts +89 -89
- package/dist/cookies/generated.d.ts.map +1 -1
- package/dist/courses/generated.d.ts +350 -350
- package/dist/courses/generated.d.ts.map +1 -1
- package/dist/custom/generated.d.ts +70 -70
- package/dist/custom/generated.d.ts.map +1 -1
- package/dist/dashboard/generated.d.ts +185 -185
- package/dist/dashboard/generated.d.ts.map +1 -1
- package/dist/elasticsearch/generated.d.ts +15 -15
- package/dist/elasticsearch/generated.d.ts.map +1 -1
- package/dist/enrollments/generated.d.ts +15 -15
- package/dist/enrollments/generated.d.ts.map +1 -1
- package/dist/errors/generated.d.ts +15 -15
- package/dist/errors/generated.d.ts.map +1 -1
- package/dist/eventconfig/generated.d.ts +95 -95
- package/dist/eventconfig/generated.d.ts.map +1 -1
- package/dist/funnels/generated.d.ts +131 -131
- package/dist/funnels/generated.d.ts.map +1 -1
- package/dist/gamification/generated.d.ts +144 -144
- package/dist/gamification/generated.d.ts.map +1 -1
- package/dist/impersonation/generated.d.ts +60 -60
- package/dist/impersonation/generated.d.ts.map +1 -1
- package/dist/inbox/generated.d.ts +133 -133
- package/dist/inbox/generated.d.ts.map +1 -1
- package/dist/internal/generated.d.ts +15 -15
- package/dist/internal/generated.d.ts.map +1 -1
- package/dist/internationalization/generated.d.ts +15 -15
- package/dist/internationalization/generated.d.ts.map +1 -1
- package/dist/invitations/generated.d.ts +124 -124
- package/dist/invitations/generated.d.ts.map +1 -1
- package/dist/meetings/generated.d.ts +213 -213
- package/dist/meetings/generated.d.ts.map +1 -1
- package/dist/metas/generated.d.ts +169 -169
- package/dist/metas/generated.d.ts.map +1 -1
- package/dist/notification/generated.d.ts +411 -411
- package/dist/notification/generated.d.ts.map +1 -1
- package/dist/notifications/generated.d.ts +15 -15
- package/dist/notifications/generated.d.ts.map +1 -1
- package/dist/onboarding/generated.d.ts +96 -96
- package/dist/onboarding/generated.d.ts.map +1 -1
- package/dist/packages/generated.d.ts +78 -78
- package/dist/packages/generated.d.ts.map +1 -1
- package/dist/payments/generated.d.ts +530 -530
- package/dist/payments/generated.d.ts.map +1 -1
- package/dist/payouts/generated.d.ts +15 -15
- package/dist/payouts/generated.d.ts.map +1 -1
- package/dist/plans/generated.d.ts +281 -281
- package/dist/plans/generated.d.ts.map +1 -1
- package/dist/pricing/generated.d.ts +97 -97
- package/dist/pricing/generated.d.ts.map +1 -1
- package/dist/products/generated.d.ts +491 -491
- package/dist/products/generated.d.ts.map +1 -1
- package/dist/profile/generated.d.ts +265 -265
- package/dist/profile/generated.d.ts.map +1 -1
- package/dist/reasons/generated.d.ts +100 -100
- package/dist/reasons/generated.d.ts.map +1 -1
- package/dist/registration/generated.d.ts +140 -140
- package/dist/registration/generated.d.ts.map +1 -1
- package/dist/reviews/generated.d.ts +67 -67
- package/dist/reviews/generated.d.ts.map +1 -1
- package/dist/role/generated.d.ts +216 -216
- package/dist/role/generated.d.ts.map +1 -1
- package/dist/scheduling/generated.d.ts +118 -118
- package/dist/scheduling/generated.d.ts.map +1 -1
- package/dist/services/generated.d.ts +819 -819
- package/dist/services/generated.d.ts.map +1 -1
- package/dist/sessions/generated.d.ts +236 -236
- package/dist/sessions/generated.d.ts.map +1 -1
- package/dist/spaces/generated.d.ts +423 -423
- package/dist/spaces/generated.d.ts.map +1 -1
- package/dist/storefront/generated.d.ts +15 -15
- package/dist/storefront/generated.d.ts.map +1 -1
- package/dist/support/generated.d.ts +1605 -1605
- package/dist/support/generated.d.ts.map +1 -1
- package/dist/sync/generated.d.ts +156 -156
- package/dist/sync/generated.d.ts.map +1 -1
- package/dist/tenant/generated.d.ts +435 -435
- package/dist/tenant/generated.d.ts.map +1 -1
- package/dist/testimonials/generated.d.ts +60 -60
- package/dist/testimonials/generated.d.ts.map +1 -1
- package/dist/tests/generated.d.ts +415 -415
- package/dist/tests/generated.d.ts.map +1 -1
- package/dist/tokens/generated.d.ts +48 -48
- package/dist/tokens/generated.d.ts.map +1 -1
- package/dist/uploads/generated.d.ts +56 -56
- package/dist/uploads/generated.d.ts.map +1 -1
- package/dist/upsell/generated.d.ts +86 -86
- package/dist/upsell/generated.d.ts.map +1 -1
- package/dist/user/generated.d.ts +99 -99
- package/dist/user/generated.d.ts.map +1 -1
- package/dist/webinars/generated.d.ts +185 -185
- package/dist/webinars/generated.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -571,6 +571,73 @@ export interface paths {
|
|
|
571
571
|
export type webhooks = Record<string, never>;
|
|
572
572
|
export interface components {
|
|
573
573
|
schemas: {
|
|
574
|
+
/** Body_createCourseBatch */
|
|
575
|
+
Body_createCourseBatch: {
|
|
576
|
+
/** Batch Name */
|
|
577
|
+
batch_name: string;
|
|
578
|
+
/** Instructor Id */
|
|
579
|
+
instructor_id: number;
|
|
580
|
+
/** Starts At */
|
|
581
|
+
starts_at: string;
|
|
582
|
+
/** Ends At */
|
|
583
|
+
ends_at?: string | null;
|
|
584
|
+
/** Class Duration Minutes */
|
|
585
|
+
class_duration_minutes: number;
|
|
586
|
+
/** Class Time */
|
|
587
|
+
class_time: string;
|
|
588
|
+
/** Weekdays */
|
|
589
|
+
weekdays: string[];
|
|
590
|
+
/**
|
|
591
|
+
* Max Students
|
|
592
|
+
* @default 25
|
|
593
|
+
*/
|
|
594
|
+
max_students: number;
|
|
595
|
+
/** Batch Code */
|
|
596
|
+
batch_code?: string | null;
|
|
597
|
+
/**
|
|
598
|
+
* Is Private
|
|
599
|
+
* @default false
|
|
600
|
+
*/
|
|
601
|
+
is_private: boolean;
|
|
602
|
+
/**
|
|
603
|
+
* Timezone
|
|
604
|
+
* @default UTC
|
|
605
|
+
*/
|
|
606
|
+
timezone: string;
|
|
607
|
+
/** Meeting Platform */
|
|
608
|
+
meeting_platform?: string | null;
|
|
609
|
+
/** Meeting Credentials */
|
|
610
|
+
meeting_credentials?: {
|
|
611
|
+
[key: string]: unknown;
|
|
612
|
+
} | null;
|
|
613
|
+
};
|
|
614
|
+
/**
|
|
615
|
+
* @example {
|
|
616
|
+
* "status": "success",
|
|
617
|
+
* "message": "Operation successful",
|
|
618
|
+
* "message_code": "api_suc_20001",
|
|
619
|
+
* "data": {},
|
|
620
|
+
* "metadata": {
|
|
621
|
+
* "timestamp": "2026-03-26T10:00:00.000Z",
|
|
622
|
+
* "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
|
|
623
|
+
* "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
|
|
624
|
+
* "version": "v1",
|
|
625
|
+
* "executionTime": 42,
|
|
626
|
+
* "language": "en-US"
|
|
627
|
+
* }
|
|
628
|
+
* }
|
|
629
|
+
*/
|
|
630
|
+
StandardResponse: {
|
|
631
|
+
/** @example success */
|
|
632
|
+
status?: string;
|
|
633
|
+
data?: Record<string, never> | null;
|
|
634
|
+
/** @example Operation successful */
|
|
635
|
+
message?: string | null;
|
|
636
|
+
/** @example api_suc_20001 */
|
|
637
|
+
message_code?: string | null;
|
|
638
|
+
metadata?: Record<string, never> | null;
|
|
639
|
+
error?: components["schemas"]["ErrorResponse"];
|
|
640
|
+
};
|
|
574
641
|
/**
|
|
575
642
|
* VariantItem
|
|
576
643
|
* @description Product variant (maps to product_variants_tbl)
|
|
@@ -650,157 +717,6 @@ export interface components {
|
|
|
650
717
|
[key: string]: unknown;
|
|
651
718
|
} | null;
|
|
652
719
|
};
|
|
653
|
-
/** Body_validateBatchSchedule */
|
|
654
|
-
Body_validateBatchSchedule: {
|
|
655
|
-
/** Starts At */
|
|
656
|
-
starts_at: string;
|
|
657
|
-
/** Ends At */
|
|
658
|
-
ends_at: string;
|
|
659
|
-
/** Weekdays */
|
|
660
|
-
weekdays: string[];
|
|
661
|
-
/** Duration Minutes */
|
|
662
|
-
duration_minutes: number;
|
|
663
|
-
/**
|
|
664
|
-
* Timezone
|
|
665
|
-
* @default UTC
|
|
666
|
-
*/
|
|
667
|
-
timezone: string;
|
|
668
|
-
};
|
|
669
|
-
InvalidParam: {
|
|
670
|
-
/** @example items[0].quantity */
|
|
671
|
-
field?: string;
|
|
672
|
-
/** @example Input should be greater than or equal to 1 */
|
|
673
|
-
error?: string;
|
|
674
|
-
};
|
|
675
|
-
/**
|
|
676
|
-
* @example {
|
|
677
|
-
* "status": "success",
|
|
678
|
-
* "message": "Operation successful",
|
|
679
|
-
* "message_code": "api_suc_20001",
|
|
680
|
-
* "data": {},
|
|
681
|
-
* "metadata": {
|
|
682
|
-
* "timestamp": "2026-03-26T10:00:00.000Z",
|
|
683
|
-
* "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
|
|
684
|
-
* "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
|
|
685
|
-
* "version": "v1",
|
|
686
|
-
* "executionTime": 42,
|
|
687
|
-
* "language": "en-US"
|
|
688
|
-
* }
|
|
689
|
-
* }
|
|
690
|
-
*/
|
|
691
|
-
StandardResponse: {
|
|
692
|
-
/** @example success */
|
|
693
|
-
status?: string;
|
|
694
|
-
data?: Record<string, never> | null;
|
|
695
|
-
/** @example Operation successful */
|
|
696
|
-
message?: string | null;
|
|
697
|
-
/** @example api_suc_20001 */
|
|
698
|
-
message_code?: string | null;
|
|
699
|
-
metadata?: Record<string, never> | null;
|
|
700
|
-
error?: components["schemas"]["ErrorResponse"];
|
|
701
|
-
};
|
|
702
|
-
/** Body_createBatchCurriculumItem */
|
|
703
|
-
Body_createBatchCurriculumItem: {
|
|
704
|
-
/** Title */
|
|
705
|
-
title: string;
|
|
706
|
-
/** Content Type */
|
|
707
|
-
content_type: string;
|
|
708
|
-
/** Is Section */
|
|
709
|
-
is_section: number;
|
|
710
|
-
/** Parent Id */
|
|
711
|
-
parent_id?: number | null;
|
|
712
|
-
/**
|
|
713
|
-
* Section Order
|
|
714
|
-
* @default 0
|
|
715
|
-
*/
|
|
716
|
-
section_order: number;
|
|
717
|
-
/**
|
|
718
|
-
* Chapter Order
|
|
719
|
-
* @default 0
|
|
720
|
-
*/
|
|
721
|
-
chapter_order: number;
|
|
722
|
-
/** Description */
|
|
723
|
-
description?: string | null;
|
|
724
|
-
/** Content Id */
|
|
725
|
-
content_id?: number | null;
|
|
726
|
-
/** Instructor Id */
|
|
727
|
-
instructor_id?: number | null;
|
|
728
|
-
/** Scheduled At */
|
|
729
|
-
scheduled_at?: string | null;
|
|
730
|
-
/** Duration Minutes */
|
|
731
|
-
duration_minutes?: number | null;
|
|
732
|
-
};
|
|
733
|
-
/**
|
|
734
|
-
* MediaItem
|
|
735
|
-
* @description Single media file item
|
|
736
|
-
*/
|
|
737
|
-
MediaItem: {
|
|
738
|
-
/**
|
|
739
|
-
* Media Type
|
|
740
|
-
* @description logo, banner, promo_video, gallery_image, gallery_video, swatch
|
|
741
|
-
*/
|
|
742
|
-
media_type: string;
|
|
743
|
-
/**
|
|
744
|
-
* File Path
|
|
745
|
-
* @description Path to media file on storage (S3, CDN, local)
|
|
746
|
-
*/
|
|
747
|
-
file_path: string;
|
|
748
|
-
/**
|
|
749
|
-
* File Name
|
|
750
|
-
* @description Original filename
|
|
751
|
-
*/
|
|
752
|
-
file_name: string;
|
|
753
|
-
/**
|
|
754
|
-
* File Size
|
|
755
|
-
* @description File size in bytes
|
|
756
|
-
*/
|
|
757
|
-
file_size?: number | null;
|
|
758
|
-
/**
|
|
759
|
-
* Mime Type
|
|
760
|
-
* @description MIME type (image/png, video/mp4, etc.)
|
|
761
|
-
*/
|
|
762
|
-
mime_type?: string | null;
|
|
763
|
-
/**
|
|
764
|
-
* Width
|
|
765
|
-
* @description Width in pixels (for images/videos)
|
|
766
|
-
*/
|
|
767
|
-
width?: number | null;
|
|
768
|
-
/**
|
|
769
|
-
* Height
|
|
770
|
-
* @description Height in pixels (for images/videos)
|
|
771
|
-
*/
|
|
772
|
-
height?: number | null;
|
|
773
|
-
/**
|
|
774
|
-
* Responsive Versions
|
|
775
|
-
* @description JSON with thumbnail, small, medium, large, xlarge, original paths
|
|
776
|
-
*/
|
|
777
|
-
responsive_versions?: {
|
|
778
|
-
[key: string]: string;
|
|
779
|
-
} | null;
|
|
780
|
-
/**
|
|
781
|
-
* Alt Text
|
|
782
|
-
* @description Alt text for SEO/accessibility
|
|
783
|
-
*/
|
|
784
|
-
alt_text?: string | null;
|
|
785
|
-
/**
|
|
786
|
-
* Locale
|
|
787
|
-
* @description Media locale (en-US, es-PR, etc.)
|
|
788
|
-
* @default en-US
|
|
789
|
-
*/
|
|
790
|
-
locale: string;
|
|
791
|
-
/**
|
|
792
|
-
* Display Order
|
|
793
|
-
* @description Display order
|
|
794
|
-
* @default 0
|
|
795
|
-
*/
|
|
796
|
-
display_order: number;
|
|
797
|
-
/**
|
|
798
|
-
* Is Primary
|
|
799
|
-
* @description Mark as primary media
|
|
800
|
-
* @default false
|
|
801
|
-
*/
|
|
802
|
-
is_primary: boolean;
|
|
803
|
-
};
|
|
804
720
|
/**
|
|
805
721
|
* CourseSection
|
|
806
722
|
* @description Course-specific fields (maps to courses_tbl)
|
|
@@ -837,17 +753,6 @@ export interface components {
|
|
|
837
753
|
*/
|
|
838
754
|
locale?: string | null;
|
|
839
755
|
};
|
|
840
|
-
/**
|
|
841
|
-
* MediaSection
|
|
842
|
-
* @description Product media files - direct media data
|
|
843
|
-
*/
|
|
844
|
-
MediaSection: {
|
|
845
|
-
/**
|
|
846
|
-
* Media Items
|
|
847
|
-
* @description List of media files to attach to product
|
|
848
|
-
*/
|
|
849
|
-
media_items?: components["schemas"]["MediaItem"][] | null;
|
|
850
|
-
};
|
|
851
756
|
Extensions: {
|
|
852
757
|
/** @example GENERIC_ERROR */
|
|
853
758
|
message_code?: string;
|
|
@@ -885,199 +790,254 @@ export interface components {
|
|
|
885
790
|
/** Meeting Platform */
|
|
886
791
|
meeting_platform?: string | null;
|
|
887
792
|
};
|
|
793
|
+
/** Body_updateCourse */
|
|
794
|
+
Body_updateCourse: {
|
|
795
|
+
/** Title */
|
|
796
|
+
title?: string | null;
|
|
797
|
+
/** Description */
|
|
798
|
+
description?: string | null;
|
|
799
|
+
/** Learning Outcomes */
|
|
800
|
+
learning_outcomes?: string | null;
|
|
801
|
+
/** Prerequisites */
|
|
802
|
+
prerequisites?: string | null;
|
|
803
|
+
/** Target Audience */
|
|
804
|
+
target_audience?: string | null;
|
|
805
|
+
/** Difficulty Level */
|
|
806
|
+
difficulty_level?: string | null;
|
|
807
|
+
/** Co Instructors */
|
|
808
|
+
co_instructors?: number[] | null;
|
|
809
|
+
};
|
|
888
810
|
/**
|
|
889
|
-
*
|
|
890
|
-
* @description
|
|
811
|
+
* ProductPrice
|
|
812
|
+
* @description Base product pricing (maps to product_pricings_tbl with variant_id=NULL)
|
|
891
813
|
*/
|
|
892
|
-
|
|
814
|
+
ProductPrice: {
|
|
893
815
|
/**
|
|
894
|
-
*
|
|
895
|
-
* @description
|
|
896
|
-
* @default en-US
|
|
816
|
+
* Price Type
|
|
817
|
+
* @description free, one_time, subscription, monthly_plan
|
|
897
818
|
*/
|
|
898
|
-
|
|
819
|
+
price_type: string;
|
|
899
820
|
/**
|
|
900
|
-
*
|
|
901
|
-
* @description
|
|
821
|
+
* Currency
|
|
822
|
+
* @description Currency code: INR, USD, EUR, etc.
|
|
902
823
|
*/
|
|
903
|
-
|
|
824
|
+
currency: string;
|
|
904
825
|
/**
|
|
905
|
-
*
|
|
906
|
-
* @description
|
|
826
|
+
* Amount
|
|
827
|
+
* @description Price amount
|
|
907
828
|
*/
|
|
908
|
-
|
|
829
|
+
amount: number;
|
|
909
830
|
/**
|
|
910
|
-
*
|
|
911
|
-
* @description
|
|
831
|
+
* Compare At Amount
|
|
832
|
+
* @description Original/strike-through price
|
|
912
833
|
*/
|
|
913
|
-
|
|
834
|
+
compare_at_amount?: number | null;
|
|
914
835
|
/**
|
|
915
|
-
*
|
|
916
|
-
* @description
|
|
836
|
+
* Interval
|
|
837
|
+
* @description day, week, month, year (for subscription)
|
|
917
838
|
*/
|
|
918
|
-
|
|
839
|
+
interval?: string | null;
|
|
840
|
+
/**
|
|
841
|
+
* Interval Count
|
|
842
|
+
* @description Number of intervals
|
|
843
|
+
*/
|
|
844
|
+
interval_count?: number | null;
|
|
845
|
+
/**
|
|
846
|
+
* Trial Period Days
|
|
847
|
+
* @description Free trial days
|
|
848
|
+
*/
|
|
849
|
+
trial_period_days?: number | null;
|
|
850
|
+
/**
|
|
851
|
+
* Initial Amount
|
|
852
|
+
* @description First payment amount
|
|
853
|
+
*/
|
|
854
|
+
initial_amount?: number | null;
|
|
855
|
+
/**
|
|
856
|
+
* Gateway
|
|
857
|
+
* @description stripe, razorpay, paypal, etc.
|
|
858
|
+
*/
|
|
859
|
+
gateway?: string | null;
|
|
860
|
+
/**
|
|
861
|
+
* Requires Payment Method Upfront
|
|
862
|
+
* @description Require payment method before trial
|
|
863
|
+
* @default true
|
|
864
|
+
*/
|
|
865
|
+
requires_payment_method_upfront: boolean;
|
|
919
866
|
};
|
|
920
|
-
/**
|
|
921
|
-
|
|
922
|
-
/**
|
|
923
|
-
|
|
924
|
-
/**
|
|
925
|
-
|
|
926
|
-
/**
|
|
927
|
-
|
|
928
|
-
/**
|
|
929
|
-
|
|
930
|
-
/** Class Duration Minutes */
|
|
931
|
-
class_duration_minutes: number;
|
|
932
|
-
/** Class Time */
|
|
933
|
-
class_time: string;
|
|
934
|
-
/** Weekdays */
|
|
935
|
-
weekdays: string[];
|
|
867
|
+
/** Body_createCourseCurriculumItem */
|
|
868
|
+
Body_createCourseCurriculumItem: {
|
|
869
|
+
/** Title */
|
|
870
|
+
title: string;
|
|
871
|
+
/** Content Type */
|
|
872
|
+
content_type: string;
|
|
873
|
+
/** Is Section */
|
|
874
|
+
is_section: number;
|
|
875
|
+
/** Parent Id */
|
|
876
|
+
parent_id?: number | null;
|
|
936
877
|
/**
|
|
937
|
-
*
|
|
938
|
-
* @default
|
|
878
|
+
* Section Order
|
|
879
|
+
* @default 0
|
|
939
880
|
*/
|
|
940
|
-
|
|
941
|
-
/** Batch Code */
|
|
942
|
-
batch_code?: string | null;
|
|
881
|
+
section_order: number;
|
|
943
882
|
/**
|
|
944
|
-
*
|
|
883
|
+
* Chapter Order
|
|
884
|
+
* @default 0
|
|
885
|
+
*/
|
|
886
|
+
chapter_order: number;
|
|
887
|
+
/** Description */
|
|
888
|
+
description?: string | null;
|
|
889
|
+
/** Content Id */
|
|
890
|
+
content_id?: number | null;
|
|
891
|
+
/**
|
|
892
|
+
* Drip Days
|
|
893
|
+
* @default 0
|
|
894
|
+
*/
|
|
895
|
+
drip_days: number;
|
|
896
|
+
/**
|
|
897
|
+
* Is Locked
|
|
945
898
|
* @default false
|
|
946
899
|
*/
|
|
947
|
-
|
|
900
|
+
is_locked: boolean;
|
|
901
|
+
};
|
|
902
|
+
/** Body_createBatchCurriculumItem */
|
|
903
|
+
Body_createBatchCurriculumItem: {
|
|
904
|
+
/** Title */
|
|
905
|
+
title: string;
|
|
906
|
+
/** Content Type */
|
|
907
|
+
content_type: string;
|
|
908
|
+
/** Is Section */
|
|
909
|
+
is_section: number;
|
|
910
|
+
/** Parent Id */
|
|
911
|
+
parent_id?: number | null;
|
|
948
912
|
/**
|
|
949
|
-
*
|
|
950
|
-
* @default
|
|
913
|
+
* Section Order
|
|
914
|
+
* @default 0
|
|
951
915
|
*/
|
|
952
|
-
|
|
953
|
-
/**
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
916
|
+
section_order: number;
|
|
917
|
+
/**
|
|
918
|
+
* Chapter Order
|
|
919
|
+
* @default 0
|
|
920
|
+
*/
|
|
921
|
+
chapter_order: number;
|
|
922
|
+
/** Description */
|
|
923
|
+
description?: string | null;
|
|
924
|
+
/** Content Id */
|
|
925
|
+
content_id?: number | null;
|
|
926
|
+
/** Instructor Id */
|
|
927
|
+
instructor_id?: number | null;
|
|
928
|
+
/** Scheduled At */
|
|
929
|
+
scheduled_at?: string | null;
|
|
930
|
+
/** Duration Minutes */
|
|
931
|
+
duration_minutes?: number | null;
|
|
959
932
|
};
|
|
960
933
|
/**
|
|
961
|
-
*
|
|
962
|
-
* @description
|
|
963
|
-
* @example {
|
|
964
|
-
* "course": {
|
|
965
|
-
* "course_type": "instructor_led",
|
|
966
|
-
* "primary_instructor_id": 456
|
|
967
|
-
* },
|
|
968
|
-
* "identity": {
|
|
969
|
-
* "locale": "en-US",
|
|
970
|
-
* "title": "Advanced Python Programming"
|
|
971
|
-
* },
|
|
972
|
-
* "pricing": {
|
|
973
|
-
* "product_price": {
|
|
974
|
-
* "amount": 5000,
|
|
975
|
-
* "currency": "INR",
|
|
976
|
-
* "price_type": "one_time"
|
|
977
|
-
* }
|
|
978
|
-
* },
|
|
979
|
-
* "product": {
|
|
980
|
-
* "is_digital": true,
|
|
981
|
-
* "status": "draft",
|
|
982
|
-
* "visibility": "public"
|
|
983
|
-
* }
|
|
984
|
-
* }
|
|
934
|
+
* IdentitySection
|
|
935
|
+
* @description Localized product content (maps to product_identity_tbl)
|
|
985
936
|
*/
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
937
|
+
IdentitySection: {
|
|
938
|
+
/**
|
|
939
|
+
* Locale
|
|
940
|
+
* @description Locale: en-US, es-PR, fr-FR, pt-BR, etc.
|
|
941
|
+
* @default en-US
|
|
942
|
+
*/
|
|
943
|
+
locale: string;
|
|
944
|
+
/**
|
|
945
|
+
* Title
|
|
946
|
+
* @description Product title
|
|
947
|
+
*/
|
|
948
|
+
title: string;
|
|
993
949
|
/**
|
|
994
|
-
*
|
|
995
|
-
* @description
|
|
950
|
+
* Subtitle
|
|
951
|
+
* @description Product subtitle
|
|
996
952
|
*/
|
|
997
|
-
|
|
953
|
+
subtitle?: string | null;
|
|
998
954
|
/**
|
|
999
|
-
*
|
|
1000
|
-
* @description
|
|
955
|
+
* Description
|
|
956
|
+
* @description Full product description
|
|
1001
957
|
*/
|
|
1002
|
-
variants?: components["schemas"]["VariantItem"][] | null;
|
|
1003
|
-
/** @description Pricing for product and variants */
|
|
1004
|
-
pricing?: components["schemas"]["PricingSection"] | null;
|
|
1005
|
-
/** @description Course-specific configuration */
|
|
1006
|
-
course: components["schemas"]["CourseSection"];
|
|
1007
|
-
};
|
|
1008
|
-
/** Body_updateCourse */
|
|
1009
|
-
Body_updateCourse: {
|
|
1010
|
-
/** Title */
|
|
1011
|
-
title?: string | null;
|
|
1012
|
-
/** Description */
|
|
1013
958
|
description?: string | null;
|
|
1014
|
-
/**
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
target_audience?: string | null;
|
|
1020
|
-
/** Difficulty Level */
|
|
1021
|
-
difficulty_level?: string | null;
|
|
1022
|
-
/** Co Instructors */
|
|
1023
|
-
co_instructors?: number[] | null;
|
|
959
|
+
/**
|
|
960
|
+
* Short Description
|
|
961
|
+
* @description Short description for listings/previews
|
|
962
|
+
*/
|
|
963
|
+
short_description?: string | null;
|
|
1024
964
|
};
|
|
1025
965
|
/**
|
|
1026
|
-
*
|
|
1027
|
-
* @description
|
|
966
|
+
* MediaItem
|
|
967
|
+
* @description Single media file item
|
|
1028
968
|
*/
|
|
1029
|
-
|
|
969
|
+
MediaItem: {
|
|
1030
970
|
/**
|
|
1031
|
-
*
|
|
1032
|
-
* @description
|
|
971
|
+
* Media Type
|
|
972
|
+
* @description logo, banner, promo_video, gallery_image, gallery_video, swatch
|
|
1033
973
|
*/
|
|
1034
|
-
|
|
974
|
+
media_type: string;
|
|
1035
975
|
/**
|
|
1036
|
-
*
|
|
1037
|
-
* @description
|
|
976
|
+
* File Path
|
|
977
|
+
* @description Path to media file on storage (S3, CDN, local)
|
|
1038
978
|
*/
|
|
1039
|
-
|
|
979
|
+
file_path: string;
|
|
1040
980
|
/**
|
|
1041
|
-
*
|
|
1042
|
-
* @description
|
|
981
|
+
* File Name
|
|
982
|
+
* @description Original filename
|
|
1043
983
|
*/
|
|
1044
|
-
|
|
984
|
+
file_name: string;
|
|
1045
985
|
/**
|
|
1046
|
-
*
|
|
1047
|
-
* @description
|
|
986
|
+
* File Size
|
|
987
|
+
* @description File size in bytes
|
|
1048
988
|
*/
|
|
1049
|
-
|
|
989
|
+
file_size?: number | null;
|
|
1050
990
|
/**
|
|
1051
|
-
*
|
|
1052
|
-
* @description
|
|
991
|
+
* Mime Type
|
|
992
|
+
* @description MIME type (image/png, video/mp4, etc.)
|
|
1053
993
|
*/
|
|
1054
|
-
|
|
994
|
+
mime_type?: string | null;
|
|
1055
995
|
/**
|
|
1056
|
-
*
|
|
1057
|
-
* @description
|
|
996
|
+
* Width
|
|
997
|
+
* @description Width in pixels (for images/videos)
|
|
1058
998
|
*/
|
|
1059
|
-
|
|
999
|
+
width?: number | null;
|
|
1060
1000
|
/**
|
|
1061
|
-
*
|
|
1062
|
-
* @description
|
|
1001
|
+
* Height
|
|
1002
|
+
* @description Height in pixels (for images/videos)
|
|
1063
1003
|
*/
|
|
1064
|
-
|
|
1004
|
+
height?: number | null;
|
|
1065
1005
|
/**
|
|
1066
|
-
*
|
|
1067
|
-
* @description
|
|
1006
|
+
* Responsive Versions
|
|
1007
|
+
* @description JSON with thumbnail, small, medium, large, xlarge, original paths
|
|
1068
1008
|
*/
|
|
1069
|
-
|
|
1009
|
+
responsive_versions?: {
|
|
1010
|
+
[key: string]: string;
|
|
1011
|
+
} | null;
|
|
1070
1012
|
/**
|
|
1071
|
-
*
|
|
1072
|
-
* @description
|
|
1013
|
+
* Alt Text
|
|
1014
|
+
* @description Alt text for SEO/accessibility
|
|
1073
1015
|
*/
|
|
1074
|
-
|
|
1016
|
+
alt_text?: string | null;
|
|
1075
1017
|
/**
|
|
1076
|
-
*
|
|
1077
|
-
* @description
|
|
1078
|
-
* @default
|
|
1018
|
+
* Locale
|
|
1019
|
+
* @description Media locale (en-US, es-PR, etc.)
|
|
1020
|
+
* @default en-US
|
|
1079
1021
|
*/
|
|
1080
|
-
|
|
1022
|
+
locale: string;
|
|
1023
|
+
/**
|
|
1024
|
+
* Display Order
|
|
1025
|
+
* @description Display order
|
|
1026
|
+
* @default 0
|
|
1027
|
+
*/
|
|
1028
|
+
display_order: number;
|
|
1029
|
+
/**
|
|
1030
|
+
* Is Primary
|
|
1031
|
+
* @description Mark as primary media
|
|
1032
|
+
* @default false
|
|
1033
|
+
*/
|
|
1034
|
+
is_primary: boolean;
|
|
1035
|
+
};
|
|
1036
|
+
InvalidParam: {
|
|
1037
|
+
/** @example items[0].quantity */
|
|
1038
|
+
field?: string;
|
|
1039
|
+
/** @example Input should be greater than or equal to 1 */
|
|
1040
|
+
error?: string;
|
|
1081
1041
|
};
|
|
1082
1042
|
/**
|
|
1083
1043
|
* VariantPrice
|
|
@@ -1141,20 +1101,53 @@ export interface components {
|
|
|
1141
1101
|
*/
|
|
1142
1102
|
requires_payment_method_upfront: boolean;
|
|
1143
1103
|
};
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1104
|
+
/**
|
|
1105
|
+
* CourseCreateRequest
|
|
1106
|
+
* @description Course creation request - inherits common fields, adds course-specific section
|
|
1107
|
+
* @example {
|
|
1108
|
+
* "course": {
|
|
1109
|
+
* "course_type": "instructor_led",
|
|
1110
|
+
* "primary_instructor_id": 456
|
|
1111
|
+
* },
|
|
1112
|
+
* "identity": {
|
|
1113
|
+
* "locale": "en-US",
|
|
1114
|
+
* "title": "Advanced Python Programming"
|
|
1115
|
+
* },
|
|
1116
|
+
* "pricing": {
|
|
1117
|
+
* "product_price": {
|
|
1118
|
+
* "amount": 5000,
|
|
1119
|
+
* "currency": "INR",
|
|
1120
|
+
* "price_type": "one_time"
|
|
1121
|
+
* }
|
|
1122
|
+
* },
|
|
1123
|
+
* "product": {
|
|
1124
|
+
* "is_digital": true,
|
|
1125
|
+
* "status": "draft",
|
|
1126
|
+
* "visibility": "public"
|
|
1127
|
+
* }
|
|
1128
|
+
* }
|
|
1129
|
+
*/
|
|
1130
|
+
CourseCreateRequest: {
|
|
1131
|
+
/** @description Base product configuration */
|
|
1132
|
+
product: components["schemas"]["ProductSection"];
|
|
1133
|
+
/** @description Localized content (title, description) */
|
|
1134
|
+
identity: components["schemas"]["IdentitySection"];
|
|
1135
|
+
/** @description Pre-uploaded image IDs */
|
|
1136
|
+
media?: components["schemas"]["MediaSection"] | null;
|
|
1137
|
+
/**
|
|
1138
|
+
* Tags
|
|
1139
|
+
* @description Tag IDs to associate with product
|
|
1140
|
+
*/
|
|
1141
|
+
tags?: number[] | null;
|
|
1142
|
+
/**
|
|
1143
|
+
* Variants
|
|
1144
|
+
* @description Product variants (optional)
|
|
1145
|
+
*/
|
|
1146
|
+
variants?: components["schemas"]["VariantItem"][] | null;
|
|
1147
|
+
/** @description Pricing for product and variants */
|
|
1148
|
+
pricing?: components["schemas"]["PricingSection"] | null;
|
|
1149
|
+
/** @description Course-specific configuration */
|
|
1150
|
+
course: components["schemas"]["CourseSection"];
|
|
1158
1151
|
};
|
|
1159
1152
|
/**
|
|
1160
1153
|
* ProductSection
|
|
@@ -1207,6 +1200,32 @@ export interface components {
|
|
|
1207
1200
|
*/
|
|
1208
1201
|
featured: boolean;
|
|
1209
1202
|
};
|
|
1203
|
+
ErrorResponse: {
|
|
1204
|
+
/** @example about:blank */
|
|
1205
|
+
type?: string;
|
|
1206
|
+
/** @example GENERIC_ERROR */
|
|
1207
|
+
code?: string;
|
|
1208
|
+
/** @example Client Error */
|
|
1209
|
+
title?: string;
|
|
1210
|
+
/** @example 400 */
|
|
1211
|
+
status?: number;
|
|
1212
|
+
/** @example An error occurred */
|
|
1213
|
+
detail?: string;
|
|
1214
|
+
/** @example /v1/cart/items */
|
|
1215
|
+
instance?: string;
|
|
1216
|
+
extensions?: components["schemas"]["Extensions"];
|
|
1217
|
+
};
|
|
1218
|
+
/**
|
|
1219
|
+
* MediaSection
|
|
1220
|
+
* @description Product media files - direct media data
|
|
1221
|
+
*/
|
|
1222
|
+
MediaSection: {
|
|
1223
|
+
/**
|
|
1224
|
+
* Media Items
|
|
1225
|
+
* @description List of media files to attach to product
|
|
1226
|
+
*/
|
|
1227
|
+
media_items?: components["schemas"]["MediaItem"][] | null;
|
|
1228
|
+
};
|
|
1210
1229
|
/**
|
|
1211
1230
|
* PricingSection
|
|
1212
1231
|
* @description Pricing configuration (optional - can have product price, variant prices, or both)
|
|
@@ -1220,40 +1239,21 @@ export interface components {
|
|
|
1220
1239
|
*/
|
|
1221
1240
|
variant_prices?: components["schemas"]["VariantPrice"][] | null;
|
|
1222
1241
|
};
|
|
1223
|
-
/**
|
|
1224
|
-
|
|
1225
|
-
/**
|
|
1226
|
-
|
|
1227
|
-
/**
|
|
1228
|
-
|
|
1229
|
-
/**
|
|
1230
|
-
|
|
1231
|
-
/**
|
|
1232
|
-
|
|
1233
|
-
/**
|
|
1234
|
-
* Section Order
|
|
1235
|
-
* @default 0
|
|
1236
|
-
*/
|
|
1237
|
-
section_order: number;
|
|
1238
|
-
/**
|
|
1239
|
-
* Chapter Order
|
|
1240
|
-
* @default 0
|
|
1241
|
-
*/
|
|
1242
|
-
chapter_order: number;
|
|
1243
|
-
/** Description */
|
|
1244
|
-
description?: string | null;
|
|
1245
|
-
/** Content Id */
|
|
1246
|
-
content_id?: number | null;
|
|
1247
|
-
/**
|
|
1248
|
-
* Drip Days
|
|
1249
|
-
* @default 0
|
|
1250
|
-
*/
|
|
1251
|
-
drip_days: number;
|
|
1242
|
+
/** Body_validateBatchSchedule */
|
|
1243
|
+
Body_validateBatchSchedule: {
|
|
1244
|
+
/** Starts At */
|
|
1245
|
+
starts_at: string;
|
|
1246
|
+
/** Ends At */
|
|
1247
|
+
ends_at: string;
|
|
1248
|
+
/** Weekdays */
|
|
1249
|
+
weekdays: string[];
|
|
1250
|
+
/** Duration Minutes */
|
|
1251
|
+
duration_minutes: number;
|
|
1252
1252
|
/**
|
|
1253
|
-
*
|
|
1254
|
-
* @default
|
|
1253
|
+
* Timezone
|
|
1254
|
+
* @default UTC
|
|
1255
1255
|
*/
|
|
1256
|
-
|
|
1256
|
+
timezone: string;
|
|
1257
1257
|
};
|
|
1258
1258
|
};
|
|
1259
1259
|
responses: never;
|