@blezgo/api-sdk 0.1.3 → 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 +153 -153
- package/dist/account/generated.d.ts.map +1 -1
- package/dist/activity/generated.d.ts +57 -57
- package/dist/activity/generated.d.ts.map +1 -1
- package/dist/addon/generated.d.ts +104 -104
- 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 +89 -89
- 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 +52 -52
- package/dist/announcements/generated.d.ts.map +1 -1
- package/dist/apikeys/generated.d.ts +43 -43
- 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 +116 -116
- package/dist/authentication/generated.d.ts.map +1 -1
- package/dist/blog/generated.d.ts +168 -168
- package/dist/blog/generated.d.ts.map +1 -1
- package/dist/bundle/generated.d.ts +116 -116
- package/dist/bundle/generated.d.ts.map +1 -1
- package/dist/cache/generated.d.ts +30 -30
- package/dist/cache/generated.d.ts.map +1 -1
- package/dist/calendar/generated.d.ts +37 -37
- package/dist/calendar/generated.d.ts.map +1 -1
- package/dist/campaigns/generated.d.ts +157 -157
- package/dist/campaigns/generated.d.ts.map +1 -1
- package/dist/cart/generated.d.ts +30 -30
- package/dist/cart/generated.d.ts.map +1 -1
- package/dist/changelog/generated.d.ts +107 -107
- package/dist/changelog/generated.d.ts.map +1 -1
- package/dist/channel/generated.d.ts +231 -231
- package/dist/channel/generated.d.ts.map +1 -1
- package/dist/company/generated.d.ts +44 -44
- package/dist/company/generated.d.ts.map +1 -1
- package/dist/conference/generated.d.ts +14 -14
- package/dist/conference/generated.d.ts.map +1 -1
- package/dist/config/generated.d.ts +60 -60
- package/dist/config/generated.d.ts.map +1 -1
- package/dist/content/generated.d.ts +527 -527
- package/dist/content/generated.d.ts.map +1 -1
- package/dist/cookies/generated.d.ts +60 -60
- package/dist/cookies/generated.d.ts.map +1 -1
- package/dist/courses/generated.d.ts +348 -348
- package/dist/courses/generated.d.ts.map +1 -1
- package/dist/custom/generated.d.ts +96 -96
- package/dist/custom/generated.d.ts.map +1 -1
- package/dist/dashboard/generated.d.ts +124 -124
- 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 +24 -24
- package/dist/errors/generated.d.ts.map +1 -1
- package/dist/eventconfig/generated.d.ts +103 -103
- package/dist/eventconfig/generated.d.ts.map +1 -1
- package/dist/funnels/generated.d.ts +111 -111
- package/dist/funnels/generated.d.ts.map +1 -1
- package/dist/gamification/generated.d.ts +105 -105
- package/dist/gamification/generated.d.ts.map +1 -1
- package/dist/impersonation/generated.d.ts +27 -27
- package/dist/impersonation/generated.d.ts.map +1 -1
- package/dist/inbox/generated.d.ts +117 -117
- 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 +85 -85
- package/dist/invitations/generated.d.ts.map +1 -1
- package/dist/meetings/generated.d.ts +295 -295
- package/dist/meetings/generated.d.ts.map +1 -1
- package/dist/metas/generated.d.ts +191 -191
- package/dist/metas/generated.d.ts.map +1 -1
- package/dist/notification/generated.d.ts +261 -261
- 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 +116 -116
- package/dist/onboarding/generated.d.ts.map +1 -1
- package/dist/packages/generated.d.ts +21 -21
- package/dist/packages/generated.d.ts.map +1 -1
- package/dist/payments/generated.d.ts +548 -548
- 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 +349 -349
- package/dist/plans/generated.d.ts.map +1 -1
- package/dist/pricing/generated.d.ts +41 -41
- package/dist/pricing/generated.d.ts.map +1 -1
- package/dist/products/generated.d.ts +398 -398
- package/dist/products/generated.d.ts.map +1 -1
- package/dist/profile/generated.d.ts +333 -333
- package/dist/profile/generated.d.ts.map +1 -1
- package/dist/reasons/generated.d.ts +81 -81
- package/dist/reasons/generated.d.ts.map +1 -1
- package/dist/registration/generated.d.ts +178 -178
- package/dist/registration/generated.d.ts.map +1 -1
- package/dist/reviews/generated.d.ts +63 -63
- package/dist/reviews/generated.d.ts.map +1 -1
- package/dist/role/generated.d.ts +218 -218
- package/dist/role/generated.d.ts.map +1 -1
- package/dist/scheduling/generated.d.ts +96 -96
- package/dist/scheduling/generated.d.ts.map +1 -1
- package/dist/services/generated.d.ts +957 -957
- package/dist/services/generated.d.ts.map +1 -1
- package/dist/sessions/generated.d.ts +370 -370
- package/dist/sessions/generated.d.ts.map +1 -1
- package/dist/spaces/generated.d.ts +533 -533
- 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 +1426 -1426
- package/dist/support/generated.d.ts.map +1 -1
- package/dist/sync/generated.d.ts +127 -127
- package/dist/sync/generated.d.ts.map +1 -1
- package/dist/tenant/generated.d.ts +528 -528
- package/dist/tenant/generated.d.ts.map +1 -1
- package/dist/testimonials/generated.d.ts +56 -56
- package/dist/testimonials/generated.d.ts.map +1 -1
- package/dist/tests/generated.d.ts +509 -509
- package/dist/tests/generated.d.ts.map +1 -1
- package/dist/tokens/generated.d.ts +50 -50
- package/dist/tokens/generated.d.ts.map +1 -1
- package/dist/uploads/generated.d.ts +29 -29
- package/dist/uploads/generated.d.ts.map +1 -1
- package/dist/upsell/generated.d.ts +80 -80
- package/dist/upsell/generated.d.ts.map +1 -1
- package/dist/user/generated.d.ts +76 -70
- package/dist/user/generated.d.ts.map +1 -1
- package/dist/webinars/generated.d.ts +336 -336
- package/dist/webinars/generated.d.ts.map +1 -1
- package/package.json +1 -1
- package/test-commit.txt +1 -0
|
@@ -871,55 +871,169 @@ export type webhooks = Record<string, never>;
|
|
|
871
871
|
export interface components {
|
|
872
872
|
schemas: {
|
|
873
873
|
/**
|
|
874
|
-
*
|
|
875
|
-
* @description
|
|
874
|
+
* TestSection
|
|
875
|
+
* @description Test-specific fields (maps to tests_tbl)
|
|
876
876
|
*/
|
|
877
|
-
|
|
877
|
+
TestSection: {
|
|
878
878
|
/**
|
|
879
|
-
*
|
|
880
|
-
* @description
|
|
881
|
-
* @default public
|
|
879
|
+
* Total Marks
|
|
880
|
+
* @description Total marks for the test
|
|
882
881
|
*/
|
|
883
|
-
|
|
882
|
+
total_marks: number;
|
|
884
883
|
/**
|
|
885
|
-
*
|
|
886
|
-
* @description
|
|
884
|
+
* Passing Marks
|
|
885
|
+
* @description Minimum marks to pass
|
|
886
|
+
*/
|
|
887
|
+
passing_marks?: number | null;
|
|
888
|
+
/**
|
|
889
|
+
* Has Time Limit
|
|
890
|
+
* @description Whether test has time limit
|
|
887
891
|
* @default true
|
|
888
892
|
*/
|
|
889
|
-
|
|
893
|
+
has_time_limit: boolean;
|
|
890
894
|
/**
|
|
891
|
-
*
|
|
892
|
-
* @description
|
|
895
|
+
* Duration Minutes
|
|
896
|
+
* @description Test duration in minutes (NULL = no time limit)
|
|
893
897
|
*/
|
|
894
|
-
|
|
898
|
+
duration_minutes?: number | null;
|
|
895
899
|
/**
|
|
896
|
-
*
|
|
897
|
-
* @description
|
|
898
|
-
* @default draft
|
|
900
|
+
* Max Attempts
|
|
901
|
+
* @description Maximum attempts allowed (NULL = unlimited)
|
|
899
902
|
*/
|
|
900
|
-
|
|
903
|
+
max_attempts?: number | null;
|
|
901
904
|
/**
|
|
902
|
-
*
|
|
903
|
-
* @description
|
|
905
|
+
* Has Validity Period
|
|
906
|
+
* @description Whether test has validity period
|
|
907
|
+
* @default false
|
|
908
|
+
*/
|
|
909
|
+
has_validity_period: boolean;
|
|
910
|
+
/**
|
|
911
|
+
* Starts At
|
|
912
|
+
* @description Test available from this date
|
|
913
|
+
*/
|
|
914
|
+
starts_at?: string | null;
|
|
915
|
+
/**
|
|
916
|
+
* Ends At
|
|
917
|
+
* @description Test available until this date
|
|
918
|
+
*/
|
|
919
|
+
ends_at?: string | null;
|
|
920
|
+
/**
|
|
921
|
+
* Randomize Questions
|
|
922
|
+
* @description Randomize question order
|
|
923
|
+
* @default false
|
|
924
|
+
*/
|
|
925
|
+
randomize_questions: boolean;
|
|
926
|
+
/**
|
|
927
|
+
* Randomize Options
|
|
928
|
+
* @description Randomize answer options
|
|
929
|
+
* @default false
|
|
930
|
+
*/
|
|
931
|
+
randomize_options: boolean;
|
|
932
|
+
/**
|
|
933
|
+
* Enable Question Pool
|
|
934
|
+
* @description Enable question pool (random selection)
|
|
935
|
+
* @default false
|
|
936
|
+
*/
|
|
937
|
+
enable_question_pool: boolean;
|
|
938
|
+
/**
|
|
939
|
+
* Pool Size
|
|
940
|
+
* @description Total questions in pool
|
|
941
|
+
*/
|
|
942
|
+
pool_size?: number | null;
|
|
943
|
+
/**
|
|
944
|
+
* Questions To Show
|
|
945
|
+
* @description Questions to show from pool
|
|
946
|
+
*/
|
|
947
|
+
questions_to_show?: number | null;
|
|
948
|
+
/**
|
|
949
|
+
* Show Score Immediately
|
|
950
|
+
* @description Show score after submission
|
|
904
951
|
* @default true
|
|
905
952
|
*/
|
|
906
|
-
|
|
953
|
+
show_score_immediately: boolean;
|
|
907
954
|
/**
|
|
908
|
-
*
|
|
909
|
-
* @description
|
|
955
|
+
* Show Correct Answers
|
|
956
|
+
* @description Show correct answers after submission
|
|
957
|
+
* @default false
|
|
910
958
|
*/
|
|
911
|
-
|
|
959
|
+
show_correct_answers: boolean;
|
|
912
960
|
/**
|
|
913
|
-
*
|
|
914
|
-
* @description
|
|
961
|
+
* Show Answer Explanations
|
|
962
|
+
* @description Show answer explanations
|
|
963
|
+
* @default false
|
|
915
964
|
*/
|
|
916
|
-
|
|
965
|
+
show_answer_explanations: boolean;
|
|
917
966
|
/**
|
|
918
|
-
*
|
|
919
|
-
* @description
|
|
967
|
+
* Show Result Breakdown
|
|
968
|
+
* @description Show section-wise breakdown
|
|
920
969
|
* @default false
|
|
921
970
|
*/
|
|
922
|
-
|
|
971
|
+
show_result_breakdown: boolean;
|
|
972
|
+
/**
|
|
973
|
+
* Allow Question Navigation
|
|
974
|
+
* @description Allow jumping to any question
|
|
975
|
+
* @default true
|
|
976
|
+
*/
|
|
977
|
+
allow_question_navigation: boolean;
|
|
978
|
+
/**
|
|
979
|
+
* Allow Previous Button
|
|
980
|
+
* @description Allow going back to previous questions
|
|
981
|
+
* @default true
|
|
982
|
+
*/
|
|
983
|
+
allow_previous_button: boolean;
|
|
984
|
+
/**
|
|
985
|
+
* Allow Mark For Review
|
|
986
|
+
* @description Allow marking questions for review
|
|
987
|
+
* @default true
|
|
988
|
+
*/
|
|
989
|
+
allow_mark_for_review: boolean;
|
|
990
|
+
/**
|
|
991
|
+
* Enable Proctoring
|
|
992
|
+
* @description Enable anti-cheating proctoring
|
|
993
|
+
* @default false
|
|
994
|
+
*/
|
|
995
|
+
enable_proctoring: boolean;
|
|
996
|
+
/**
|
|
997
|
+
* Enable Browser Lockdown
|
|
998
|
+
* @description Lock browser (disable new tabs, etc.)
|
|
999
|
+
* @default false
|
|
1000
|
+
*/
|
|
1001
|
+
enable_browser_lockdown: boolean;
|
|
1002
|
+
/**
|
|
1003
|
+
* Enable Copy Paste Prevention
|
|
1004
|
+
* @description Prevent copy-paste
|
|
1005
|
+
* @default false
|
|
1006
|
+
*/
|
|
1007
|
+
enable_copy_paste_prevention: boolean;
|
|
1008
|
+
/**
|
|
1009
|
+
* Webcam Required
|
|
1010
|
+
* @description Require webcam for proctoring
|
|
1011
|
+
* @default false
|
|
1012
|
+
*/
|
|
1013
|
+
webcam_required: boolean;
|
|
1014
|
+
/**
|
|
1015
|
+
* Enable Plagiarism Check
|
|
1016
|
+
* @description Enable plagiarism detection
|
|
1017
|
+
* @default false
|
|
1018
|
+
*/
|
|
1019
|
+
enable_plagiarism_check: boolean;
|
|
1020
|
+
/**
|
|
1021
|
+
* Allow Pause
|
|
1022
|
+
* @description Allow pausing the test
|
|
1023
|
+
* @default false
|
|
1024
|
+
*/
|
|
1025
|
+
allow_pause: boolean;
|
|
1026
|
+
/**
|
|
1027
|
+
* Max Pause Count
|
|
1028
|
+
* @description Maximum pause count (NULL = unlimited)
|
|
1029
|
+
*/
|
|
1030
|
+
max_pause_count?: number | null;
|
|
1031
|
+
/**
|
|
1032
|
+
* Is Published
|
|
1033
|
+
* @description Published status
|
|
1034
|
+
* @default false
|
|
1035
|
+
*/
|
|
1036
|
+
is_published: boolean;
|
|
923
1037
|
};
|
|
924
1038
|
/**
|
|
925
1039
|
* TestCreateRequest
|
|
@@ -950,7 +1064,7 @@ export interface components {
|
|
|
950
1064
|
* }
|
|
951
1065
|
* }
|
|
952
1066
|
*/
|
|
953
|
-
|
|
1067
|
+
app__models__products__test_models__TestCreateRequest: {
|
|
954
1068
|
/** @description Base product configuration */
|
|
955
1069
|
product: components["schemas"]["ProductSection"];
|
|
956
1070
|
/** @description Localized content (title, description) */
|
|
@@ -1000,414 +1114,165 @@ export interface components {
|
|
|
1000
1114
|
error?: components["schemas"]["ErrorResponse"];
|
|
1001
1115
|
};
|
|
1002
1116
|
/**
|
|
1003
|
-
*
|
|
1004
|
-
* @description
|
|
1005
|
-
*/
|
|
1006
|
-
ProductPrice: {
|
|
1007
|
-
/**
|
|
1008
|
-
* Price Type
|
|
1009
|
-
* @description free, one_time, subscription, monthly_plan
|
|
1010
|
-
*/
|
|
1011
|
-
price_type: string;
|
|
1012
|
-
/**
|
|
1013
|
-
* Currency
|
|
1014
|
-
* @description Currency code: INR, USD, EUR, etc.
|
|
1015
|
-
*/
|
|
1016
|
-
currency: string;
|
|
1017
|
-
/**
|
|
1018
|
-
* Amount
|
|
1019
|
-
* @description Price amount
|
|
1020
|
-
*/
|
|
1021
|
-
amount: number;
|
|
1022
|
-
/**
|
|
1023
|
-
* Compare At Amount
|
|
1024
|
-
* @description Original/strike-through price
|
|
1025
|
-
*/
|
|
1026
|
-
compare_at_amount?: number | null;
|
|
1027
|
-
/**
|
|
1028
|
-
* Interval
|
|
1029
|
-
* @description day, week, month, year (for subscription)
|
|
1030
|
-
*/
|
|
1031
|
-
interval?: string | null;
|
|
1032
|
-
/**
|
|
1033
|
-
* Interval Count
|
|
1034
|
-
* @description Number of intervals
|
|
1035
|
-
*/
|
|
1036
|
-
interval_count?: number | null;
|
|
1037
|
-
/**
|
|
1038
|
-
* Trial Period Days
|
|
1039
|
-
* @description Free trial days
|
|
1040
|
-
*/
|
|
1041
|
-
trial_period_days?: number | null;
|
|
1042
|
-
/**
|
|
1043
|
-
* Initial Amount
|
|
1044
|
-
* @description First payment amount
|
|
1045
|
-
*/
|
|
1046
|
-
initial_amount?: number | null;
|
|
1047
|
-
/**
|
|
1048
|
-
* Gateway
|
|
1049
|
-
* @description stripe, razorpay, paypal, etc.
|
|
1050
|
-
*/
|
|
1051
|
-
gateway?: string | null;
|
|
1052
|
-
/**
|
|
1053
|
-
* Requires Payment Method Upfront
|
|
1054
|
-
* @description Require payment method before trial
|
|
1055
|
-
* @default true
|
|
1056
|
-
*/
|
|
1057
|
-
requires_payment_method_upfront: boolean;
|
|
1058
|
-
};
|
|
1059
|
-
/**
|
|
1060
|
-
* MediaSection
|
|
1061
|
-
* @description Product media files - direct media data
|
|
1062
|
-
*/
|
|
1063
|
-
MediaSection: {
|
|
1064
|
-
/**
|
|
1065
|
-
* Media Items
|
|
1066
|
-
* @description List of media files to attach to product
|
|
1067
|
-
*/
|
|
1068
|
-
media_items?: components["schemas"]["MediaItem"][] | null;
|
|
1069
|
-
};
|
|
1070
|
-
/**
|
|
1071
|
-
* QuestionCreateRequest
|
|
1072
|
-
* @description Request model for creating a question
|
|
1117
|
+
* VariantItem
|
|
1118
|
+
* @description Product variant (maps to product_variants_tbl)
|
|
1073
1119
|
*/
|
|
1074
|
-
|
|
1075
|
-
/**
|
|
1076
|
-
* Question Text
|
|
1077
|
-
* @description Question text
|
|
1078
|
-
*/
|
|
1079
|
-
question_text: string;
|
|
1080
|
-
/**
|
|
1081
|
-
* Question Type
|
|
1082
|
-
* @description Question type: mcq_single, mcq_multiple, true_false, fill_blank, essay, code, matching, ordering
|
|
1083
|
-
*/
|
|
1084
|
-
question_type: string;
|
|
1085
|
-
/**
|
|
1086
|
-
* Default Marks
|
|
1087
|
-
* @description Marks for correct answer
|
|
1088
|
-
* @default 1
|
|
1089
|
-
*/
|
|
1090
|
-
default_marks: number;
|
|
1091
|
-
/**
|
|
1092
|
-
* Negative Marks
|
|
1093
|
-
* @description Marks deducted for wrong answer
|
|
1094
|
-
* @default 0
|
|
1095
|
-
*/
|
|
1096
|
-
negative_marks: number;
|
|
1097
|
-
/**
|
|
1098
|
-
* Difficulty Level
|
|
1099
|
-
* @description Difficulty: easy, medium, hard
|
|
1100
|
-
*/
|
|
1101
|
-
difficulty_level?: string | null;
|
|
1102
|
-
/**
|
|
1103
|
-
* Category Id
|
|
1104
|
-
* @description Question category ID
|
|
1105
|
-
*/
|
|
1106
|
-
category_id?: number | null;
|
|
1107
|
-
/**
|
|
1108
|
-
* Tags
|
|
1109
|
-
* @description List of tags
|
|
1110
|
-
*/
|
|
1111
|
-
tags?: string[] | null;
|
|
1112
|
-
/**
|
|
1113
|
-
* Company Id
|
|
1114
|
-
* @description Company ID
|
|
1115
|
-
*/
|
|
1116
|
-
company_id?: number | null;
|
|
1120
|
+
VariantItem: {
|
|
1117
1121
|
/**
|
|
1118
|
-
*
|
|
1119
|
-
* @description
|
|
1122
|
+
* Name
|
|
1123
|
+
* @description Variant display name
|
|
1120
1124
|
*/
|
|
1121
|
-
|
|
1125
|
+
name: string;
|
|
1122
1126
|
/**
|
|
1123
|
-
*
|
|
1124
|
-
* @description
|
|
1127
|
+
* Sku
|
|
1128
|
+
* @description Stock Keeping Unit
|
|
1125
1129
|
*/
|
|
1126
|
-
|
|
1130
|
+
sku?: string | null;
|
|
1127
1131
|
/**
|
|
1128
|
-
*
|
|
1129
|
-
* @description
|
|
1132
|
+
* Attributes
|
|
1133
|
+
* @description Custom attributes
|
|
1130
1134
|
*/
|
|
1131
|
-
|
|
1135
|
+
attributes?: {
|
|
1132
1136
|
[key: string]: unknown;
|
|
1133
1137
|
} | null;
|
|
1134
1138
|
/**
|
|
1135
|
-
*
|
|
1136
|
-
* @description
|
|
1137
|
-
*/
|
|
1138
|
-
code_time_limit_ms?: number | null;
|
|
1139
|
-
/**
|
|
1140
|
-
* Code Memory Limit Kb
|
|
1141
|
-
* @description Memory limit in KB
|
|
1142
|
-
*/
|
|
1143
|
-
code_memory_limit_kb?: number | null;
|
|
1144
|
-
/**
|
|
1145
|
-
* Code Starter Code
|
|
1146
|
-
* @description Starter code template
|
|
1147
|
-
*/
|
|
1148
|
-
code_starter_code?: string | null;
|
|
1149
|
-
/**
|
|
1150
|
-
* Matching Pairs
|
|
1151
|
-
* @description Matching pairs data
|
|
1152
|
-
*/
|
|
1153
|
-
matching_pairs?: {
|
|
1154
|
-
[key: string]: unknown;
|
|
1155
|
-
}[] | null;
|
|
1156
|
-
/**
|
|
1157
|
-
* Ordering Items
|
|
1158
|
-
* @description Ordering items data
|
|
1159
|
-
*/
|
|
1160
|
-
ordering_items?: {
|
|
1161
|
-
[key: string]: unknown;
|
|
1162
|
-
}[] | null;
|
|
1163
|
-
};
|
|
1164
|
-
/**
|
|
1165
|
-
* TestCreateRequest
|
|
1166
|
-
* @description Request model for creating a test
|
|
1167
|
-
*/
|
|
1168
|
-
app__models__tests__test_models__TestCreateRequest: {
|
|
1169
|
-
/**
|
|
1170
|
-
* Product Id
|
|
1171
|
-
* @description External product ID (prod_xxx)
|
|
1172
|
-
*/
|
|
1173
|
-
product_id: string;
|
|
1174
|
-
/**
|
|
1175
|
-
* Title
|
|
1176
|
-
* @description Test title
|
|
1177
|
-
*/
|
|
1178
|
-
title: string;
|
|
1179
|
-
/**
|
|
1180
|
-
* Description
|
|
1181
|
-
* @description Test description
|
|
1182
|
-
*/
|
|
1183
|
-
description?: string | null;
|
|
1184
|
-
/**
|
|
1185
|
-
* Total Marks
|
|
1186
|
-
* @description Total marks for test
|
|
1187
|
-
* @default 0
|
|
1188
|
-
*/
|
|
1189
|
-
total_marks: number;
|
|
1190
|
-
/**
|
|
1191
|
-
* Passing Marks
|
|
1192
|
-
* @description Minimum passing marks
|
|
1193
|
-
*/
|
|
1194
|
-
passing_marks?: number | null;
|
|
1195
|
-
/**
|
|
1196
|
-
* Has Time Limit
|
|
1197
|
-
* @description Whether test has time limit
|
|
1198
|
-
* @default true
|
|
1199
|
-
*/
|
|
1200
|
-
has_time_limit: boolean;
|
|
1201
|
-
/**
|
|
1202
|
-
* Duration Minutes
|
|
1203
|
-
* @description Test duration in minutes
|
|
1204
|
-
*/
|
|
1205
|
-
duration_minutes?: number | null;
|
|
1206
|
-
/**
|
|
1207
|
-
* Max Attempts
|
|
1208
|
-
* @description Maximum attempts allowed
|
|
1209
|
-
*/
|
|
1210
|
-
max_attempts?: number | null;
|
|
1211
|
-
/**
|
|
1212
|
-
* Randomize Questions
|
|
1213
|
-
* @description Randomize question order
|
|
1214
|
-
* @default false
|
|
1215
|
-
*/
|
|
1216
|
-
randomize_questions: boolean;
|
|
1217
|
-
/**
|
|
1218
|
-
* Randomize Options
|
|
1219
|
-
* @description Randomize option order (MCQs)
|
|
1220
|
-
* @default false
|
|
1221
|
-
*/
|
|
1222
|
-
randomize_options: boolean;
|
|
1223
|
-
/**
|
|
1224
|
-
* Enable Proctoring
|
|
1225
|
-
* @description Enable proctoring features
|
|
1226
|
-
* @default false
|
|
1227
|
-
*/
|
|
1228
|
-
enable_proctoring: boolean;
|
|
1229
|
-
/**
|
|
1230
|
-
* Enable Browser Lockdown
|
|
1231
|
-
* @description Enable browser lockdown
|
|
1139
|
+
* Is Default
|
|
1140
|
+
* @description Set as default variant
|
|
1232
1141
|
* @default false
|
|
1233
1142
|
*/
|
|
1234
|
-
|
|
1235
|
-
/**
|
|
1236
|
-
* Company Id
|
|
1237
|
-
* @description Company ID
|
|
1238
|
-
*/
|
|
1239
|
-
company_id?: number | null;
|
|
1240
|
-
};
|
|
1241
|
-
InvalidParam: {
|
|
1242
|
-
/** @example items[0].quantity */
|
|
1243
|
-
field?: string;
|
|
1244
|
-
/** @example Input should be greater than or equal to 1 */
|
|
1245
|
-
error?: string;
|
|
1246
|
-
};
|
|
1247
|
-
/**
|
|
1248
|
-
* TestSection
|
|
1249
|
-
* @description Test-specific fields (maps to tests_tbl)
|
|
1250
|
-
*/
|
|
1251
|
-
TestSection: {
|
|
1252
|
-
/**
|
|
1253
|
-
* Total Marks
|
|
1254
|
-
* @description Total marks for the test
|
|
1255
|
-
*/
|
|
1256
|
-
total_marks: number;
|
|
1257
|
-
/**
|
|
1258
|
-
* Passing Marks
|
|
1259
|
-
* @description Minimum marks to pass
|
|
1260
|
-
*/
|
|
1261
|
-
passing_marks?: number | null;
|
|
1262
|
-
/**
|
|
1263
|
-
* Has Time Limit
|
|
1264
|
-
* @description Whether test has time limit
|
|
1265
|
-
* @default true
|
|
1266
|
-
*/
|
|
1267
|
-
has_time_limit: boolean;
|
|
1268
|
-
/**
|
|
1269
|
-
* Duration Minutes
|
|
1270
|
-
* @description Test duration in minutes (NULL = no time limit)
|
|
1271
|
-
*/
|
|
1272
|
-
duration_minutes?: number | null;
|
|
1273
|
-
/**
|
|
1274
|
-
* Max Attempts
|
|
1275
|
-
* @description Maximum attempts allowed (NULL = unlimited)
|
|
1276
|
-
*/
|
|
1277
|
-
max_attempts?: number | null;
|
|
1143
|
+
is_default: boolean;
|
|
1278
1144
|
/**
|
|
1279
|
-
*
|
|
1280
|
-
* @description
|
|
1145
|
+
* Track Inventory
|
|
1146
|
+
* @description Track stock for this variant
|
|
1281
1147
|
* @default false
|
|
1282
1148
|
*/
|
|
1283
|
-
|
|
1284
|
-
/**
|
|
1285
|
-
* Starts At
|
|
1286
|
-
* @description Test available from this date
|
|
1287
|
-
*/
|
|
1288
|
-
starts_at?: string | null;
|
|
1289
|
-
/**
|
|
1290
|
-
* Ends At
|
|
1291
|
-
* @description Test available until this date
|
|
1292
|
-
*/
|
|
1293
|
-
ends_at?: string | null;
|
|
1149
|
+
track_inventory: boolean;
|
|
1294
1150
|
/**
|
|
1295
|
-
*
|
|
1296
|
-
* @description
|
|
1297
|
-
* @default false
|
|
1151
|
+
* Stock Quantity
|
|
1152
|
+
* @description Initial stock
|
|
1298
1153
|
*/
|
|
1299
|
-
|
|
1154
|
+
stock_quantity?: number | null;
|
|
1300
1155
|
/**
|
|
1301
|
-
*
|
|
1302
|
-
* @description
|
|
1156
|
+
* Allow Backorder
|
|
1157
|
+
* @description Allow orders when out of stock
|
|
1303
1158
|
* @default false
|
|
1304
1159
|
*/
|
|
1305
|
-
|
|
1160
|
+
allow_backorder: boolean;
|
|
1306
1161
|
/**
|
|
1307
|
-
*
|
|
1308
|
-
* @description
|
|
1309
|
-
* @default false
|
|
1162
|
+
* Weight
|
|
1163
|
+
* @description Weight in kg
|
|
1310
1164
|
*/
|
|
1311
|
-
|
|
1165
|
+
weight?: number | null;
|
|
1312
1166
|
/**
|
|
1313
|
-
*
|
|
1314
|
-
* @description
|
|
1167
|
+
* Length
|
|
1168
|
+
* @description Length in cm
|
|
1315
1169
|
*/
|
|
1316
|
-
|
|
1170
|
+
length?: number | null;
|
|
1317
1171
|
/**
|
|
1318
|
-
*
|
|
1319
|
-
* @description
|
|
1172
|
+
* Width
|
|
1173
|
+
* @description Width in cm
|
|
1320
1174
|
*/
|
|
1321
|
-
|
|
1175
|
+
width?: number | null;
|
|
1322
1176
|
/**
|
|
1323
|
-
*
|
|
1324
|
-
* @description
|
|
1325
|
-
* @default true
|
|
1177
|
+
* Height
|
|
1178
|
+
* @description Height in cm
|
|
1326
1179
|
*/
|
|
1327
|
-
|
|
1180
|
+
height?: number | null;
|
|
1328
1181
|
/**
|
|
1329
|
-
*
|
|
1330
|
-
* @description
|
|
1331
|
-
* @default
|
|
1182
|
+
* Display Order
|
|
1183
|
+
* @description Display order
|
|
1184
|
+
* @default 100
|
|
1332
1185
|
*/
|
|
1333
|
-
|
|
1186
|
+
display_order: number;
|
|
1334
1187
|
/**
|
|
1335
|
-
*
|
|
1336
|
-
* @description
|
|
1337
|
-
* @default false
|
|
1188
|
+
* Metadata
|
|
1189
|
+
* @description Flexible metadata
|
|
1338
1190
|
*/
|
|
1339
|
-
|
|
1191
|
+
metadata?: {
|
|
1192
|
+
[key: string]: unknown;
|
|
1193
|
+
} | null;
|
|
1194
|
+
};
|
|
1195
|
+
Extensions: {
|
|
1196
|
+
/** @example GENERIC_ERROR */
|
|
1197
|
+
message_code?: string;
|
|
1198
|
+
/** @example [] */
|
|
1199
|
+
invalid_params?: components["schemas"]["InvalidParam"][];
|
|
1200
|
+
extra_data?: Record<string, never> | null;
|
|
1201
|
+
/** @example Detailed debug information */
|
|
1202
|
+
debug?: string | null;
|
|
1203
|
+
};
|
|
1204
|
+
/**
|
|
1205
|
+
* ManualGradingSubmitRequest
|
|
1206
|
+
* @description Request model for submitting manual grading
|
|
1207
|
+
*/
|
|
1208
|
+
ManualGradingSubmitRequest: {
|
|
1340
1209
|
/**
|
|
1341
|
-
*
|
|
1342
|
-
* @description
|
|
1343
|
-
* @default false
|
|
1210
|
+
* Marks Awarded
|
|
1211
|
+
* @description Marks awarded
|
|
1344
1212
|
*/
|
|
1345
|
-
|
|
1213
|
+
marks_awarded: number;
|
|
1346
1214
|
/**
|
|
1347
|
-
*
|
|
1348
|
-
* @description
|
|
1349
|
-
* @default true
|
|
1215
|
+
* Grader Feedback
|
|
1216
|
+
* @description Grader feedback
|
|
1350
1217
|
*/
|
|
1351
|
-
|
|
1218
|
+
grader_feedback?: string | null;
|
|
1219
|
+
};
|
|
1220
|
+
/**
|
|
1221
|
+
* ProductPrice
|
|
1222
|
+
* @description Base product pricing (maps to product_pricings_tbl with variant_id=NULL)
|
|
1223
|
+
*/
|
|
1224
|
+
ProductPrice: {
|
|
1352
1225
|
/**
|
|
1353
|
-
*
|
|
1354
|
-
* @description
|
|
1355
|
-
* @default true
|
|
1226
|
+
* Price Type
|
|
1227
|
+
* @description free, one_time, subscription, monthly_plan
|
|
1356
1228
|
*/
|
|
1357
|
-
|
|
1229
|
+
price_type: string;
|
|
1358
1230
|
/**
|
|
1359
|
-
*
|
|
1360
|
-
* @description
|
|
1361
|
-
* @default true
|
|
1231
|
+
* Currency
|
|
1232
|
+
* @description Currency code: INR, USD, EUR, etc.
|
|
1362
1233
|
*/
|
|
1363
|
-
|
|
1234
|
+
currency: string;
|
|
1364
1235
|
/**
|
|
1365
|
-
*
|
|
1366
|
-
* @description
|
|
1367
|
-
* @default false
|
|
1236
|
+
* Amount
|
|
1237
|
+
* @description Price amount
|
|
1368
1238
|
*/
|
|
1369
|
-
|
|
1239
|
+
amount: number;
|
|
1370
1240
|
/**
|
|
1371
|
-
*
|
|
1372
|
-
* @description
|
|
1373
|
-
* @default false
|
|
1241
|
+
* Compare At Amount
|
|
1242
|
+
* @description Original/strike-through price
|
|
1374
1243
|
*/
|
|
1375
|
-
|
|
1244
|
+
compare_at_amount?: number | null;
|
|
1376
1245
|
/**
|
|
1377
|
-
*
|
|
1378
|
-
* @description
|
|
1379
|
-
* @default false
|
|
1246
|
+
* Interval
|
|
1247
|
+
* @description day, week, month, year (for subscription)
|
|
1380
1248
|
*/
|
|
1381
|
-
|
|
1249
|
+
interval?: string | null;
|
|
1382
1250
|
/**
|
|
1383
|
-
*
|
|
1384
|
-
* @description
|
|
1385
|
-
* @default false
|
|
1251
|
+
* Interval Count
|
|
1252
|
+
* @description Number of intervals
|
|
1386
1253
|
*/
|
|
1387
|
-
|
|
1254
|
+
interval_count?: number | null;
|
|
1388
1255
|
/**
|
|
1389
|
-
*
|
|
1390
|
-
* @description
|
|
1391
|
-
* @default false
|
|
1256
|
+
* Trial Period Days
|
|
1257
|
+
* @description Free trial days
|
|
1392
1258
|
*/
|
|
1393
|
-
|
|
1259
|
+
trial_period_days?: number | null;
|
|
1394
1260
|
/**
|
|
1395
|
-
*
|
|
1396
|
-
* @description
|
|
1397
|
-
* @default false
|
|
1261
|
+
* Initial Amount
|
|
1262
|
+
* @description First payment amount
|
|
1398
1263
|
*/
|
|
1399
|
-
|
|
1264
|
+
initial_amount?: number | null;
|
|
1400
1265
|
/**
|
|
1401
|
-
*
|
|
1402
|
-
* @description
|
|
1266
|
+
* Gateway
|
|
1267
|
+
* @description stripe, razorpay, paypal, etc.
|
|
1403
1268
|
*/
|
|
1404
|
-
|
|
1269
|
+
gateway?: string | null;
|
|
1405
1270
|
/**
|
|
1406
|
-
*
|
|
1407
|
-
* @description
|
|
1408
|
-
* @default
|
|
1271
|
+
* Requires Payment Method Upfront
|
|
1272
|
+
* @description Require payment method before trial
|
|
1273
|
+
* @default true
|
|
1409
1274
|
*/
|
|
1410
|
-
|
|
1275
|
+
requires_payment_method_upfront: boolean;
|
|
1411
1276
|
};
|
|
1412
1277
|
/**
|
|
1413
1278
|
* TestUpdateRequest
|
|
@@ -1438,31 +1303,36 @@ export interface components {
|
|
|
1438
1303
|
enable_browser_lockdown?: boolean | null;
|
|
1439
1304
|
};
|
|
1440
1305
|
/**
|
|
1441
|
-
*
|
|
1442
|
-
* @description
|
|
1306
|
+
* IdentitySection
|
|
1307
|
+
* @description Localized product content (maps to product_identity_tbl)
|
|
1443
1308
|
*/
|
|
1444
|
-
|
|
1309
|
+
IdentitySection: {
|
|
1445
1310
|
/**
|
|
1446
|
-
*
|
|
1447
|
-
* @description
|
|
1311
|
+
* Locale
|
|
1312
|
+
* @description Locale: en-US, es-PR, fr-FR, pt-BR, etc.
|
|
1313
|
+
* @default en-US
|
|
1448
1314
|
*/
|
|
1449
|
-
|
|
1315
|
+
locale: string;
|
|
1450
1316
|
/**
|
|
1451
|
-
*
|
|
1452
|
-
* @description
|
|
1453
|
-
* @default false
|
|
1317
|
+
* Title
|
|
1318
|
+
* @description Product title
|
|
1454
1319
|
*/
|
|
1455
|
-
|
|
1320
|
+
title: string;
|
|
1456
1321
|
/**
|
|
1457
|
-
*
|
|
1458
|
-
* @description
|
|
1322
|
+
* Subtitle
|
|
1323
|
+
* @description Product subtitle
|
|
1459
1324
|
*/
|
|
1460
|
-
|
|
1325
|
+
subtitle?: string | null;
|
|
1461
1326
|
/**
|
|
1462
|
-
*
|
|
1463
|
-
* @description
|
|
1327
|
+
* Description
|
|
1328
|
+
* @description Full product description
|
|
1464
1329
|
*/
|
|
1465
|
-
|
|
1330
|
+
description?: string | null;
|
|
1331
|
+
/**
|
|
1332
|
+
* Short Description
|
|
1333
|
+
* @description Short description for listings/previews
|
|
1334
|
+
*/
|
|
1335
|
+
short_description?: string | null;
|
|
1466
1336
|
};
|
|
1467
1337
|
/**
|
|
1468
1338
|
* MediaItem
|
|
@@ -1535,40 +1405,105 @@ export interface components {
|
|
|
1535
1405
|
*/
|
|
1536
1406
|
is_primary: boolean;
|
|
1537
1407
|
};
|
|
1408
|
+
InvalidParam: {
|
|
1409
|
+
/** @example items[0].quantity */
|
|
1410
|
+
field?: string;
|
|
1411
|
+
/** @example Input should be greater than or equal to 1 */
|
|
1412
|
+
error?: string;
|
|
1413
|
+
};
|
|
1538
1414
|
/**
|
|
1539
|
-
*
|
|
1540
|
-
* @description Request model for
|
|
1415
|
+
* QuestionCreateRequest
|
|
1416
|
+
* @description Request model for creating a question
|
|
1541
1417
|
*/
|
|
1542
|
-
|
|
1418
|
+
QuestionCreateRequest: {
|
|
1543
1419
|
/**
|
|
1544
|
-
* Question
|
|
1545
|
-
* @description
|
|
1420
|
+
* Question Text
|
|
1421
|
+
* @description Question text
|
|
1546
1422
|
*/
|
|
1547
|
-
|
|
1423
|
+
question_text: string;
|
|
1548
1424
|
/**
|
|
1549
|
-
*
|
|
1550
|
-
* @description
|
|
1425
|
+
* Question Type
|
|
1426
|
+
* @description Question type: mcq_single, mcq_multiple, true_false, fill_blank, essay, code, matching, ordering
|
|
1551
1427
|
*/
|
|
1552
|
-
|
|
1428
|
+
question_type: string;
|
|
1553
1429
|
/**
|
|
1554
|
-
*
|
|
1555
|
-
* @description
|
|
1430
|
+
* Default Marks
|
|
1431
|
+
* @description Marks for correct answer
|
|
1432
|
+
* @default 1
|
|
1556
1433
|
*/
|
|
1557
|
-
|
|
1434
|
+
default_marks: number;
|
|
1435
|
+
/**
|
|
1436
|
+
* Negative Marks
|
|
1437
|
+
* @description Marks deducted for wrong answer
|
|
1438
|
+
* @default 0
|
|
1439
|
+
*/
|
|
1440
|
+
negative_marks: number;
|
|
1441
|
+
/**
|
|
1442
|
+
* Difficulty Level
|
|
1443
|
+
* @description Difficulty: easy, medium, hard
|
|
1444
|
+
*/
|
|
1445
|
+
difficulty_level?: string | null;
|
|
1446
|
+
/**
|
|
1447
|
+
* Category Id
|
|
1448
|
+
* @description Question category ID
|
|
1449
|
+
*/
|
|
1450
|
+
category_id?: number | null;
|
|
1451
|
+
/**
|
|
1452
|
+
* Tags
|
|
1453
|
+
* @description List of tags
|
|
1454
|
+
*/
|
|
1455
|
+
tags?: string[] | null;
|
|
1456
|
+
/**
|
|
1457
|
+
* Company Id
|
|
1458
|
+
* @description Company ID
|
|
1459
|
+
*/
|
|
1460
|
+
company_id?: number | null;
|
|
1461
|
+
/**
|
|
1462
|
+
* Options
|
|
1463
|
+
* @description Options for MCQ questions
|
|
1464
|
+
*/
|
|
1465
|
+
options?: components["schemas"]["QuestionOptionCreate"][] | null;
|
|
1466
|
+
/**
|
|
1467
|
+
* Code Language
|
|
1468
|
+
* @description Programming language (python, javascript, java, etc.)
|
|
1469
|
+
*/
|
|
1470
|
+
code_language?: string | null;
|
|
1471
|
+
/**
|
|
1472
|
+
* Code Test Cases
|
|
1473
|
+
* @description Test cases for code evaluation
|
|
1474
|
+
*/
|
|
1475
|
+
code_test_cases?: {
|
|
1476
|
+
[key: string]: unknown;
|
|
1477
|
+
} | null;
|
|
1478
|
+
/**
|
|
1479
|
+
* Code Time Limit Ms
|
|
1480
|
+
* @description Time limit in milliseconds
|
|
1481
|
+
*/
|
|
1482
|
+
code_time_limit_ms?: number | null;
|
|
1483
|
+
/**
|
|
1484
|
+
* Code Memory Limit Kb
|
|
1485
|
+
* @description Memory limit in KB
|
|
1486
|
+
*/
|
|
1487
|
+
code_memory_limit_kb?: number | null;
|
|
1488
|
+
/**
|
|
1489
|
+
* Code Starter Code
|
|
1490
|
+
* @description Starter code template
|
|
1491
|
+
*/
|
|
1492
|
+
code_starter_code?: string | null;
|
|
1493
|
+
/**
|
|
1494
|
+
* Matching Pairs
|
|
1495
|
+
* @description Matching pairs data
|
|
1496
|
+
*/
|
|
1497
|
+
matching_pairs?: {
|
|
1498
|
+
[key: string]: unknown;
|
|
1499
|
+
}[] | null;
|
|
1558
1500
|
/**
|
|
1559
|
-
*
|
|
1560
|
-
* @description
|
|
1501
|
+
* Ordering Items
|
|
1502
|
+
* @description Ordering items data
|
|
1561
1503
|
*/
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
/** @example GENERIC_ERROR */
|
|
1566
|
-
message_code?: string;
|
|
1567
|
-
/** @example [] */
|
|
1568
|
-
invalid_params?: components["schemas"]["InvalidParam"][];
|
|
1569
|
-
extra_data?: Record<string, never> | null;
|
|
1570
|
-
/** @example Detailed debug information */
|
|
1571
|
-
debug?: string | null;
|
|
1504
|
+
ordering_items?: {
|
|
1505
|
+
[key: string]: unknown;
|
|
1506
|
+
}[] | null;
|
|
1572
1507
|
};
|
|
1573
1508
|
/**
|
|
1574
1509
|
* VariantPrice
|
|
@@ -1632,6 +1567,83 @@ export interface components {
|
|
|
1632
1567
|
*/
|
|
1633
1568
|
requires_payment_method_upfront: boolean;
|
|
1634
1569
|
};
|
|
1570
|
+
/**
|
|
1571
|
+
* AnswerSubmitRequest
|
|
1572
|
+
* @description Request model for submitting an answer
|
|
1573
|
+
*/
|
|
1574
|
+
AnswerSubmitRequest: {
|
|
1575
|
+
/**
|
|
1576
|
+
* Question Id
|
|
1577
|
+
* @description External question ID (que_xxx)
|
|
1578
|
+
*/
|
|
1579
|
+
question_id: string;
|
|
1580
|
+
/**
|
|
1581
|
+
* Selected Option Ids
|
|
1582
|
+
* @description Selected option IDs for MCQ
|
|
1583
|
+
*/
|
|
1584
|
+
selected_option_ids?: string[] | null;
|
|
1585
|
+
/**
|
|
1586
|
+
* Answer Text
|
|
1587
|
+
* @description Text answer for essay/fill-blank
|
|
1588
|
+
*/
|
|
1589
|
+
answer_text?: string | null;
|
|
1590
|
+
/**
|
|
1591
|
+
* Answer Code
|
|
1592
|
+
* @description Code answer for code questions
|
|
1593
|
+
*/
|
|
1594
|
+
answer_code?: string | null;
|
|
1595
|
+
};
|
|
1596
|
+
/**
|
|
1597
|
+
* ProductSection
|
|
1598
|
+
* @description Base product fields (maps to product_tbl)
|
|
1599
|
+
*/
|
|
1600
|
+
ProductSection: {
|
|
1601
|
+
/**
|
|
1602
|
+
* Visibility
|
|
1603
|
+
* @description public, private, hidden, unlisted
|
|
1604
|
+
* @default public
|
|
1605
|
+
*/
|
|
1606
|
+
visibility: string;
|
|
1607
|
+
/**
|
|
1608
|
+
* Is Digital
|
|
1609
|
+
* @description Digital product flag
|
|
1610
|
+
* @default true
|
|
1611
|
+
*/
|
|
1612
|
+
is_digital: boolean;
|
|
1613
|
+
/**
|
|
1614
|
+
* Company Id
|
|
1615
|
+
* @description Multi-company support
|
|
1616
|
+
*/
|
|
1617
|
+
company_id?: number | null;
|
|
1618
|
+
/**
|
|
1619
|
+
* Status
|
|
1620
|
+
* @description draft, published, archived, review_required, deleted
|
|
1621
|
+
* @default draft
|
|
1622
|
+
*/
|
|
1623
|
+
status: string;
|
|
1624
|
+
/**
|
|
1625
|
+
* Is Org Level
|
|
1626
|
+
* @description Org-level vs user-created product
|
|
1627
|
+
* @default true
|
|
1628
|
+
*/
|
|
1629
|
+
is_org_level: boolean;
|
|
1630
|
+
/**
|
|
1631
|
+
* Staff Id
|
|
1632
|
+
* @description Staff/instructor delivering product
|
|
1633
|
+
*/
|
|
1634
|
+
staff_id?: number | null;
|
|
1635
|
+
/**
|
|
1636
|
+
* Owner Id
|
|
1637
|
+
* @description Owner of the product
|
|
1638
|
+
*/
|
|
1639
|
+
owner_id?: number | null;
|
|
1640
|
+
/**
|
|
1641
|
+
* Featured
|
|
1642
|
+
* @description Featured product flag
|
|
1643
|
+
* @default false
|
|
1644
|
+
*/
|
|
1645
|
+
featured: boolean;
|
|
1646
|
+
};
|
|
1635
1647
|
ErrorResponse: {
|
|
1636
1648
|
/** @example about:blank */
|
|
1637
1649
|
type?: string;
|
|
@@ -1648,20 +1660,42 @@ export interface components {
|
|
|
1648
1660
|
extensions?: components["schemas"]["Extensions"];
|
|
1649
1661
|
};
|
|
1650
1662
|
/**
|
|
1651
|
-
*
|
|
1652
|
-
* @description
|
|
1663
|
+
* QuestionOptionCreate
|
|
1664
|
+
* @description Option for MCQ questions
|
|
1653
1665
|
*/
|
|
1654
|
-
|
|
1666
|
+
QuestionOptionCreate: {
|
|
1655
1667
|
/**
|
|
1656
|
-
*
|
|
1657
|
-
* @description
|
|
1668
|
+
* Option Text
|
|
1669
|
+
* @description Option text
|
|
1658
1670
|
*/
|
|
1659
|
-
|
|
1671
|
+
option_text: string;
|
|
1660
1672
|
/**
|
|
1661
|
-
*
|
|
1662
|
-
* @description
|
|
1673
|
+
* Is Correct
|
|
1674
|
+
* @description Whether this is correct answer
|
|
1675
|
+
* @default false
|
|
1663
1676
|
*/
|
|
1664
|
-
|
|
1677
|
+
is_correct: boolean;
|
|
1678
|
+
/**
|
|
1679
|
+
* Display Order
|
|
1680
|
+
* @description Display order
|
|
1681
|
+
*/
|
|
1682
|
+
display_order?: number | null;
|
|
1683
|
+
/**
|
|
1684
|
+
* Explanation
|
|
1685
|
+
* @description Explanation for this option
|
|
1686
|
+
*/
|
|
1687
|
+
explanation?: string | null;
|
|
1688
|
+
};
|
|
1689
|
+
/**
|
|
1690
|
+
* MediaSection
|
|
1691
|
+
* @description Product media files - direct media data
|
|
1692
|
+
*/
|
|
1693
|
+
MediaSection: {
|
|
1694
|
+
/**
|
|
1695
|
+
* Media Items
|
|
1696
|
+
* @description List of media files to attach to product
|
|
1697
|
+
*/
|
|
1698
|
+
media_items?: components["schemas"]["MediaItem"][] | null;
|
|
1665
1699
|
};
|
|
1666
1700
|
/**
|
|
1667
1701
|
* PricingSection
|
|
@@ -1677,115 +1711,81 @@ export interface components {
|
|
|
1677
1711
|
variant_prices?: components["schemas"]["VariantPrice"][] | null;
|
|
1678
1712
|
};
|
|
1679
1713
|
/**
|
|
1680
|
-
*
|
|
1681
|
-
* @description
|
|
1714
|
+
* TestCreateRequest
|
|
1715
|
+
* @description Request model for creating a test
|
|
1682
1716
|
*/
|
|
1683
|
-
|
|
1717
|
+
TestCreateRequest: {
|
|
1684
1718
|
/**
|
|
1685
|
-
*
|
|
1686
|
-
* @description
|
|
1687
|
-
* @default en-US
|
|
1719
|
+
* Product Id
|
|
1720
|
+
* @description External product ID (prod_xxx)
|
|
1688
1721
|
*/
|
|
1689
|
-
|
|
1722
|
+
product_id: string;
|
|
1690
1723
|
/**
|
|
1691
1724
|
* Title
|
|
1692
|
-
* @description
|
|
1725
|
+
* @description Test title
|
|
1693
1726
|
*/
|
|
1694
1727
|
title: string;
|
|
1695
|
-
/**
|
|
1696
|
-
* Subtitle
|
|
1697
|
-
* @description Product subtitle
|
|
1698
|
-
*/
|
|
1699
|
-
subtitle?: string | null;
|
|
1700
1728
|
/**
|
|
1701
1729
|
* Description
|
|
1702
|
-
* @description
|
|
1730
|
+
* @description Test description
|
|
1703
1731
|
*/
|
|
1704
1732
|
description?: string | null;
|
|
1705
1733
|
/**
|
|
1706
|
-
*
|
|
1707
|
-
* @description
|
|
1734
|
+
* Total Marks
|
|
1735
|
+
* @description Total marks for test
|
|
1736
|
+
* @default 0
|
|
1708
1737
|
*/
|
|
1709
|
-
|
|
1710
|
-
};
|
|
1711
|
-
/**
|
|
1712
|
-
* VariantItem
|
|
1713
|
-
* @description Product variant (maps to product_variants_tbl)
|
|
1714
|
-
*/
|
|
1715
|
-
VariantItem: {
|
|
1738
|
+
total_marks: number;
|
|
1716
1739
|
/**
|
|
1717
|
-
*
|
|
1718
|
-
* @description
|
|
1740
|
+
* Passing Marks
|
|
1741
|
+
* @description Minimum passing marks
|
|
1719
1742
|
*/
|
|
1720
|
-
|
|
1743
|
+
passing_marks?: number | null;
|
|
1721
1744
|
/**
|
|
1722
|
-
*
|
|
1723
|
-
* @description
|
|
1745
|
+
* Has Time Limit
|
|
1746
|
+
* @description Whether test has time limit
|
|
1747
|
+
* @default true
|
|
1724
1748
|
*/
|
|
1725
|
-
|
|
1749
|
+
has_time_limit: boolean;
|
|
1726
1750
|
/**
|
|
1727
|
-
*
|
|
1728
|
-
* @description
|
|
1751
|
+
* Duration Minutes
|
|
1752
|
+
* @description Test duration in minutes
|
|
1729
1753
|
*/
|
|
1730
|
-
|
|
1731
|
-
[key: string]: unknown;
|
|
1732
|
-
} | null;
|
|
1754
|
+
duration_minutes?: number | null;
|
|
1733
1755
|
/**
|
|
1734
|
-
*
|
|
1735
|
-
* @description
|
|
1736
|
-
* @default false
|
|
1756
|
+
* Max Attempts
|
|
1757
|
+
* @description Maximum attempts allowed
|
|
1737
1758
|
*/
|
|
1738
|
-
|
|
1759
|
+
max_attempts?: number | null;
|
|
1739
1760
|
/**
|
|
1740
|
-
*
|
|
1741
|
-
* @description
|
|
1761
|
+
* Randomize Questions
|
|
1762
|
+
* @description Randomize question order
|
|
1742
1763
|
* @default false
|
|
1743
1764
|
*/
|
|
1744
|
-
|
|
1745
|
-
/**
|
|
1746
|
-
* Stock Quantity
|
|
1747
|
-
* @description Initial stock
|
|
1748
|
-
*/
|
|
1749
|
-
stock_quantity?: number | null;
|
|
1765
|
+
randomize_questions: boolean;
|
|
1750
1766
|
/**
|
|
1751
|
-
*
|
|
1752
|
-
* @description
|
|
1767
|
+
* Randomize Options
|
|
1768
|
+
* @description Randomize option order (MCQs)
|
|
1753
1769
|
* @default false
|
|
1754
1770
|
*/
|
|
1755
|
-
|
|
1756
|
-
/**
|
|
1757
|
-
* Weight
|
|
1758
|
-
* @description Weight in kg
|
|
1759
|
-
*/
|
|
1760
|
-
weight?: number | null;
|
|
1761
|
-
/**
|
|
1762
|
-
* Length
|
|
1763
|
-
* @description Length in cm
|
|
1764
|
-
*/
|
|
1765
|
-
length?: number | null;
|
|
1766
|
-
/**
|
|
1767
|
-
* Width
|
|
1768
|
-
* @description Width in cm
|
|
1769
|
-
*/
|
|
1770
|
-
width?: number | null;
|
|
1771
|
+
randomize_options: boolean;
|
|
1771
1772
|
/**
|
|
1772
|
-
*
|
|
1773
|
-
* @description
|
|
1773
|
+
* Enable Proctoring
|
|
1774
|
+
* @description Enable proctoring features
|
|
1775
|
+
* @default false
|
|
1774
1776
|
*/
|
|
1775
|
-
|
|
1777
|
+
enable_proctoring: boolean;
|
|
1776
1778
|
/**
|
|
1777
|
-
*
|
|
1778
|
-
* @description
|
|
1779
|
-
* @default
|
|
1779
|
+
* Enable Browser Lockdown
|
|
1780
|
+
* @description Enable browser lockdown
|
|
1781
|
+
* @default false
|
|
1780
1782
|
*/
|
|
1781
|
-
|
|
1783
|
+
enable_browser_lockdown: boolean;
|
|
1782
1784
|
/**
|
|
1783
|
-
*
|
|
1784
|
-
* @description
|
|
1785
|
+
* Company Id
|
|
1786
|
+
* @description Company ID
|
|
1785
1787
|
*/
|
|
1786
|
-
|
|
1787
|
-
[key: string]: unknown;
|
|
1788
|
-
} | null;
|
|
1788
|
+
company_id?: number | null;
|
|
1789
1789
|
};
|
|
1790
1790
|
};
|
|
1791
1791
|
responses: never;
|
|
@@ -1807,7 +1807,7 @@ export interface operations {
|
|
|
1807
1807
|
};
|
|
1808
1808
|
requestBody: {
|
|
1809
1809
|
content: {
|
|
1810
|
-
"application/json": components["schemas"]["
|
|
1810
|
+
"application/json": components["schemas"]["app__models__products__test_models__TestCreateRequest"];
|
|
1811
1811
|
};
|
|
1812
1812
|
};
|
|
1813
1813
|
responses: {
|
|
@@ -2220,7 +2220,7 @@ export interface operations {
|
|
|
2220
2220
|
};
|
|
2221
2221
|
requestBody: {
|
|
2222
2222
|
content: {
|
|
2223
|
-
"application/json": components["schemas"]["
|
|
2223
|
+
"application/json": components["schemas"]["TestCreateRequest"];
|
|
2224
2224
|
};
|
|
2225
2225
|
};
|
|
2226
2226
|
responses: {
|