@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
|
@@ -870,168 +870,6 @@ export interface paths {
|
|
|
870
870
|
export type webhooks = Record<string, never>;
|
|
871
871
|
export interface components {
|
|
872
872
|
schemas: {
|
|
873
|
-
/**
|
|
874
|
-
* VariantItem
|
|
875
|
-
* @description Product variant (maps to product_variants_tbl)
|
|
876
|
-
*/
|
|
877
|
-
VariantItem: {
|
|
878
|
-
/**
|
|
879
|
-
* Name
|
|
880
|
-
* @description Variant display name
|
|
881
|
-
*/
|
|
882
|
-
name: string;
|
|
883
|
-
/**
|
|
884
|
-
* Sku
|
|
885
|
-
* @description Stock Keeping Unit
|
|
886
|
-
*/
|
|
887
|
-
sku?: string | null;
|
|
888
|
-
/**
|
|
889
|
-
* Attributes
|
|
890
|
-
* @description Custom attributes
|
|
891
|
-
*/
|
|
892
|
-
attributes?: {
|
|
893
|
-
[key: string]: unknown;
|
|
894
|
-
} | null;
|
|
895
|
-
/**
|
|
896
|
-
* Is Default
|
|
897
|
-
* @description Set as default variant
|
|
898
|
-
* @default false
|
|
899
|
-
*/
|
|
900
|
-
is_default: boolean;
|
|
901
|
-
/**
|
|
902
|
-
* Track Inventory
|
|
903
|
-
* @description Track stock for this variant
|
|
904
|
-
* @default false
|
|
905
|
-
*/
|
|
906
|
-
track_inventory: boolean;
|
|
907
|
-
/**
|
|
908
|
-
* Stock Quantity
|
|
909
|
-
* @description Initial stock
|
|
910
|
-
*/
|
|
911
|
-
stock_quantity?: number | null;
|
|
912
|
-
/**
|
|
913
|
-
* Allow Backorder
|
|
914
|
-
* @description Allow orders when out of stock
|
|
915
|
-
* @default false
|
|
916
|
-
*/
|
|
917
|
-
allow_backorder: boolean;
|
|
918
|
-
/**
|
|
919
|
-
* Weight
|
|
920
|
-
* @description Weight in kg
|
|
921
|
-
*/
|
|
922
|
-
weight?: number | null;
|
|
923
|
-
/**
|
|
924
|
-
* Length
|
|
925
|
-
* @description Length in cm
|
|
926
|
-
*/
|
|
927
|
-
length?: number | null;
|
|
928
|
-
/**
|
|
929
|
-
* Width
|
|
930
|
-
* @description Width in cm
|
|
931
|
-
*/
|
|
932
|
-
width?: number | null;
|
|
933
|
-
/**
|
|
934
|
-
* Height
|
|
935
|
-
* @description Height in cm
|
|
936
|
-
*/
|
|
937
|
-
height?: number | null;
|
|
938
|
-
/**
|
|
939
|
-
* Display Order
|
|
940
|
-
* @description Display order
|
|
941
|
-
* @default 100
|
|
942
|
-
*/
|
|
943
|
-
display_order: number;
|
|
944
|
-
/**
|
|
945
|
-
* Metadata
|
|
946
|
-
* @description Flexible metadata
|
|
947
|
-
*/
|
|
948
|
-
metadata?: {
|
|
949
|
-
[key: string]: unknown;
|
|
950
|
-
} | null;
|
|
951
|
-
};
|
|
952
|
-
/**
|
|
953
|
-
* TestCreateRequest
|
|
954
|
-
* @description Request model for creating a test
|
|
955
|
-
*/
|
|
956
|
-
app__models__tests__test_models__TestCreateRequest: {
|
|
957
|
-
/**
|
|
958
|
-
* Product Id
|
|
959
|
-
* @description External product ID (prod_xxx)
|
|
960
|
-
*/
|
|
961
|
-
product_id: string;
|
|
962
|
-
/**
|
|
963
|
-
* Title
|
|
964
|
-
* @description Test title
|
|
965
|
-
*/
|
|
966
|
-
title: string;
|
|
967
|
-
/**
|
|
968
|
-
* Description
|
|
969
|
-
* @description Test description
|
|
970
|
-
*/
|
|
971
|
-
description?: string | null;
|
|
972
|
-
/**
|
|
973
|
-
* Total Marks
|
|
974
|
-
* @description Total marks for test
|
|
975
|
-
* @default 0
|
|
976
|
-
*/
|
|
977
|
-
total_marks: number;
|
|
978
|
-
/**
|
|
979
|
-
* Passing Marks
|
|
980
|
-
* @description Minimum passing marks
|
|
981
|
-
*/
|
|
982
|
-
passing_marks?: number | null;
|
|
983
|
-
/**
|
|
984
|
-
* Has Time Limit
|
|
985
|
-
* @description Whether test has time limit
|
|
986
|
-
* @default true
|
|
987
|
-
*/
|
|
988
|
-
has_time_limit: boolean;
|
|
989
|
-
/**
|
|
990
|
-
* Duration Minutes
|
|
991
|
-
* @description Test duration in minutes
|
|
992
|
-
*/
|
|
993
|
-
duration_minutes?: number | null;
|
|
994
|
-
/**
|
|
995
|
-
* Max Attempts
|
|
996
|
-
* @description Maximum attempts allowed
|
|
997
|
-
*/
|
|
998
|
-
max_attempts?: number | null;
|
|
999
|
-
/**
|
|
1000
|
-
* Randomize Questions
|
|
1001
|
-
* @description Randomize question order
|
|
1002
|
-
* @default false
|
|
1003
|
-
*/
|
|
1004
|
-
randomize_questions: boolean;
|
|
1005
|
-
/**
|
|
1006
|
-
* Randomize Options
|
|
1007
|
-
* @description Randomize option order (MCQs)
|
|
1008
|
-
* @default false
|
|
1009
|
-
*/
|
|
1010
|
-
randomize_options: boolean;
|
|
1011
|
-
/**
|
|
1012
|
-
* Enable Proctoring
|
|
1013
|
-
* @description Enable proctoring features
|
|
1014
|
-
* @default false
|
|
1015
|
-
*/
|
|
1016
|
-
enable_proctoring: boolean;
|
|
1017
|
-
/**
|
|
1018
|
-
* Enable Browser Lockdown
|
|
1019
|
-
* @description Enable browser lockdown
|
|
1020
|
-
* @default false
|
|
1021
|
-
*/
|
|
1022
|
-
enable_browser_lockdown: boolean;
|
|
1023
|
-
/**
|
|
1024
|
-
* Company Id
|
|
1025
|
-
* @description Company ID
|
|
1026
|
-
*/
|
|
1027
|
-
company_id?: number | null;
|
|
1028
|
-
};
|
|
1029
|
-
InvalidParam: {
|
|
1030
|
-
/** @example items[0].quantity */
|
|
1031
|
-
field?: string;
|
|
1032
|
-
/** @example Input should be greater than or equal to 1 */
|
|
1033
|
-
error?: string;
|
|
1034
|
-
};
|
|
1035
873
|
/**
|
|
1036
874
|
* TestSection
|
|
1037
875
|
* @description Test-specific fields (maps to tests_tbl)
|
|
@@ -1197,6 +1035,57 @@ export interface components {
|
|
|
1197
1035
|
*/
|
|
1198
1036
|
is_published: boolean;
|
|
1199
1037
|
};
|
|
1038
|
+
/**
|
|
1039
|
+
* TestCreateRequest
|
|
1040
|
+
* @description Test creation request - inherits common fields, adds test-specific section
|
|
1041
|
+
* @example {
|
|
1042
|
+
* "identity": {
|
|
1043
|
+
* "locale": "en-US",
|
|
1044
|
+
* "title": "Python Programming Assessment"
|
|
1045
|
+
* },
|
|
1046
|
+
* "pricing": {
|
|
1047
|
+
* "product_price": {
|
|
1048
|
+
* "amount": 500,
|
|
1049
|
+
* "currency": "INR",
|
|
1050
|
+
* "price_type": "one_time"
|
|
1051
|
+
* }
|
|
1052
|
+
* },
|
|
1053
|
+
* "product": {
|
|
1054
|
+
* "is_digital": true,
|
|
1055
|
+
* "status": "draft",
|
|
1056
|
+
* "visibility": "public"
|
|
1057
|
+
* },
|
|
1058
|
+
* "test": {
|
|
1059
|
+
* "duration_minutes": 90,
|
|
1060
|
+
* "has_time_limit": true,
|
|
1061
|
+
* "max_attempts": 3,
|
|
1062
|
+
* "passing_marks": 60,
|
|
1063
|
+
* "total_marks": 100
|
|
1064
|
+
* }
|
|
1065
|
+
* }
|
|
1066
|
+
*/
|
|
1067
|
+
app__models__products__test_models__TestCreateRequest: {
|
|
1068
|
+
/** @description Base product configuration */
|
|
1069
|
+
product: components["schemas"]["ProductSection"];
|
|
1070
|
+
/** @description Localized content (title, description) */
|
|
1071
|
+
identity: components["schemas"]["IdentitySection"];
|
|
1072
|
+
/** @description Pre-uploaded image IDs */
|
|
1073
|
+
media?: components["schemas"]["MediaSection"] | null;
|
|
1074
|
+
/**
|
|
1075
|
+
* Tags
|
|
1076
|
+
* @description Tag IDs to associate with product
|
|
1077
|
+
*/
|
|
1078
|
+
tags?: number[] | null;
|
|
1079
|
+
/**
|
|
1080
|
+
* Variants
|
|
1081
|
+
* @description Product variants (optional)
|
|
1082
|
+
*/
|
|
1083
|
+
variants?: components["schemas"]["VariantItem"][] | null;
|
|
1084
|
+
/** @description Pricing for product and variants */
|
|
1085
|
+
pricing?: components["schemas"]["PricingSection"] | null;
|
|
1086
|
+
/** @description Test-specific configuration */
|
|
1087
|
+
test: components["schemas"]["TestSection"];
|
|
1088
|
+
};
|
|
1200
1089
|
/**
|
|
1201
1090
|
* @example {
|
|
1202
1091
|
* "status": "success",
|
|
@@ -1225,47 +1114,226 @@ export interface components {
|
|
|
1225
1114
|
error?: components["schemas"]["ErrorResponse"];
|
|
1226
1115
|
};
|
|
1227
1116
|
/**
|
|
1228
|
-
*
|
|
1229
|
-
* @description
|
|
1117
|
+
* VariantItem
|
|
1118
|
+
* @description Product variant (maps to product_variants_tbl)
|
|
1230
1119
|
*/
|
|
1231
|
-
|
|
1120
|
+
VariantItem: {
|
|
1232
1121
|
/**
|
|
1233
|
-
*
|
|
1234
|
-
* @description
|
|
1122
|
+
* Name
|
|
1123
|
+
* @description Variant display name
|
|
1235
1124
|
*/
|
|
1236
|
-
|
|
1125
|
+
name: string;
|
|
1237
1126
|
/**
|
|
1238
|
-
*
|
|
1239
|
-
* @description
|
|
1127
|
+
* Sku
|
|
1128
|
+
* @description Stock Keeping Unit
|
|
1240
1129
|
*/
|
|
1241
|
-
|
|
1130
|
+
sku?: string | null;
|
|
1242
1131
|
/**
|
|
1243
|
-
*
|
|
1244
|
-
* @description
|
|
1132
|
+
* Attributes
|
|
1133
|
+
* @description Custom attributes
|
|
1245
1134
|
*/
|
|
1246
|
-
|
|
1135
|
+
attributes?: {
|
|
1136
|
+
[key: string]: unknown;
|
|
1137
|
+
} | null;
|
|
1247
1138
|
/**
|
|
1248
|
-
*
|
|
1249
|
-
* @description
|
|
1139
|
+
* Is Default
|
|
1140
|
+
* @description Set as default variant
|
|
1141
|
+
* @default false
|
|
1250
1142
|
*/
|
|
1251
|
-
|
|
1252
|
-
};
|
|
1253
|
-
/**
|
|
1254
|
-
* ManualGradingSubmitRequest
|
|
1255
|
-
* @description Request model for submitting manual grading
|
|
1256
|
-
*/
|
|
1257
|
-
ManualGradingSubmitRequest: {
|
|
1143
|
+
is_default: boolean;
|
|
1258
1144
|
/**
|
|
1259
|
-
*
|
|
1260
|
-
* @description
|
|
1145
|
+
* Track Inventory
|
|
1146
|
+
* @description Track stock for this variant
|
|
1147
|
+
* @default false
|
|
1261
1148
|
*/
|
|
1262
|
-
|
|
1149
|
+
track_inventory: boolean;
|
|
1150
|
+
/**
|
|
1151
|
+
* Stock Quantity
|
|
1152
|
+
* @description Initial stock
|
|
1153
|
+
*/
|
|
1154
|
+
stock_quantity?: number | null;
|
|
1155
|
+
/**
|
|
1156
|
+
* Allow Backorder
|
|
1157
|
+
* @description Allow orders when out of stock
|
|
1158
|
+
* @default false
|
|
1159
|
+
*/
|
|
1160
|
+
allow_backorder: boolean;
|
|
1161
|
+
/**
|
|
1162
|
+
* Weight
|
|
1163
|
+
* @description Weight in kg
|
|
1164
|
+
*/
|
|
1165
|
+
weight?: number | null;
|
|
1166
|
+
/**
|
|
1167
|
+
* Length
|
|
1168
|
+
* @description Length in cm
|
|
1169
|
+
*/
|
|
1170
|
+
length?: number | null;
|
|
1171
|
+
/**
|
|
1172
|
+
* Width
|
|
1173
|
+
* @description Width in cm
|
|
1174
|
+
*/
|
|
1175
|
+
width?: number | null;
|
|
1176
|
+
/**
|
|
1177
|
+
* Height
|
|
1178
|
+
* @description Height in cm
|
|
1179
|
+
*/
|
|
1180
|
+
height?: number | null;
|
|
1181
|
+
/**
|
|
1182
|
+
* Display Order
|
|
1183
|
+
* @description Display order
|
|
1184
|
+
* @default 100
|
|
1185
|
+
*/
|
|
1186
|
+
display_order: number;
|
|
1187
|
+
/**
|
|
1188
|
+
* Metadata
|
|
1189
|
+
* @description Flexible metadata
|
|
1190
|
+
*/
|
|
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: {
|
|
1209
|
+
/**
|
|
1210
|
+
* Marks Awarded
|
|
1211
|
+
* @description Marks awarded
|
|
1212
|
+
*/
|
|
1213
|
+
marks_awarded: number;
|
|
1263
1214
|
/**
|
|
1264
1215
|
* Grader Feedback
|
|
1265
1216
|
* @description Grader feedback
|
|
1266
1217
|
*/
|
|
1267
1218
|
grader_feedback?: string | null;
|
|
1268
1219
|
};
|
|
1220
|
+
/**
|
|
1221
|
+
* ProductPrice
|
|
1222
|
+
* @description Base product pricing (maps to product_pricings_tbl with variant_id=NULL)
|
|
1223
|
+
*/
|
|
1224
|
+
ProductPrice: {
|
|
1225
|
+
/**
|
|
1226
|
+
* Price Type
|
|
1227
|
+
* @description free, one_time, subscription, monthly_plan
|
|
1228
|
+
*/
|
|
1229
|
+
price_type: string;
|
|
1230
|
+
/**
|
|
1231
|
+
* Currency
|
|
1232
|
+
* @description Currency code: INR, USD, EUR, etc.
|
|
1233
|
+
*/
|
|
1234
|
+
currency: string;
|
|
1235
|
+
/**
|
|
1236
|
+
* Amount
|
|
1237
|
+
* @description Price amount
|
|
1238
|
+
*/
|
|
1239
|
+
amount: number;
|
|
1240
|
+
/**
|
|
1241
|
+
* Compare At Amount
|
|
1242
|
+
* @description Original/strike-through price
|
|
1243
|
+
*/
|
|
1244
|
+
compare_at_amount?: number | null;
|
|
1245
|
+
/**
|
|
1246
|
+
* Interval
|
|
1247
|
+
* @description day, week, month, year (for subscription)
|
|
1248
|
+
*/
|
|
1249
|
+
interval?: string | null;
|
|
1250
|
+
/**
|
|
1251
|
+
* Interval Count
|
|
1252
|
+
* @description Number of intervals
|
|
1253
|
+
*/
|
|
1254
|
+
interval_count?: number | null;
|
|
1255
|
+
/**
|
|
1256
|
+
* Trial Period Days
|
|
1257
|
+
* @description Free trial days
|
|
1258
|
+
*/
|
|
1259
|
+
trial_period_days?: number | null;
|
|
1260
|
+
/**
|
|
1261
|
+
* Initial Amount
|
|
1262
|
+
* @description First payment amount
|
|
1263
|
+
*/
|
|
1264
|
+
initial_amount?: number | null;
|
|
1265
|
+
/**
|
|
1266
|
+
* Gateway
|
|
1267
|
+
* @description stripe, razorpay, paypal, etc.
|
|
1268
|
+
*/
|
|
1269
|
+
gateway?: string | null;
|
|
1270
|
+
/**
|
|
1271
|
+
* Requires Payment Method Upfront
|
|
1272
|
+
* @description Require payment method before trial
|
|
1273
|
+
* @default true
|
|
1274
|
+
*/
|
|
1275
|
+
requires_payment_method_upfront: boolean;
|
|
1276
|
+
};
|
|
1277
|
+
/**
|
|
1278
|
+
* TestUpdateRequest
|
|
1279
|
+
* @description Request model for updating a test
|
|
1280
|
+
*/
|
|
1281
|
+
TestUpdateRequest: {
|
|
1282
|
+
/** Title */
|
|
1283
|
+
title?: string | null;
|
|
1284
|
+
/** Description */
|
|
1285
|
+
description?: string | null;
|
|
1286
|
+
/** Total Marks */
|
|
1287
|
+
total_marks?: number | null;
|
|
1288
|
+
/** Passing Marks */
|
|
1289
|
+
passing_marks?: number | null;
|
|
1290
|
+
/** Has Time Limit */
|
|
1291
|
+
has_time_limit?: boolean | null;
|
|
1292
|
+
/** Duration Minutes */
|
|
1293
|
+
duration_minutes?: number | null;
|
|
1294
|
+
/** Max Attempts */
|
|
1295
|
+
max_attempts?: number | null;
|
|
1296
|
+
/** Randomize Questions */
|
|
1297
|
+
randomize_questions?: boolean | null;
|
|
1298
|
+
/** Randomize Options */
|
|
1299
|
+
randomize_options?: boolean | null;
|
|
1300
|
+
/** Enable Proctoring */
|
|
1301
|
+
enable_proctoring?: boolean | null;
|
|
1302
|
+
/** Enable Browser Lockdown */
|
|
1303
|
+
enable_browser_lockdown?: boolean | null;
|
|
1304
|
+
};
|
|
1305
|
+
/**
|
|
1306
|
+
* IdentitySection
|
|
1307
|
+
* @description Localized product content (maps to product_identity_tbl)
|
|
1308
|
+
*/
|
|
1309
|
+
IdentitySection: {
|
|
1310
|
+
/**
|
|
1311
|
+
* Locale
|
|
1312
|
+
* @description Locale: en-US, es-PR, fr-FR, pt-BR, etc.
|
|
1313
|
+
* @default en-US
|
|
1314
|
+
*/
|
|
1315
|
+
locale: string;
|
|
1316
|
+
/**
|
|
1317
|
+
* Title
|
|
1318
|
+
* @description Product title
|
|
1319
|
+
*/
|
|
1320
|
+
title: string;
|
|
1321
|
+
/**
|
|
1322
|
+
* Subtitle
|
|
1323
|
+
* @description Product subtitle
|
|
1324
|
+
*/
|
|
1325
|
+
subtitle?: string | null;
|
|
1326
|
+
/**
|
|
1327
|
+
* Description
|
|
1328
|
+
* @description Full product description
|
|
1329
|
+
*/
|
|
1330
|
+
description?: string | null;
|
|
1331
|
+
/**
|
|
1332
|
+
* Short Description
|
|
1333
|
+
* @description Short description for listings/previews
|
|
1334
|
+
*/
|
|
1335
|
+
short_description?: string | null;
|
|
1336
|
+
};
|
|
1269
1337
|
/**
|
|
1270
1338
|
* MediaItem
|
|
1271
1339
|
* @description Single media file item
|
|
@@ -1329,143 +1397,19 @@ export interface components {
|
|
|
1329
1397
|
* @description Display order
|
|
1330
1398
|
* @default 0
|
|
1331
1399
|
*/
|
|
1332
|
-
display_order: number;
|
|
1333
|
-
/**
|
|
1334
|
-
* Is Primary
|
|
1335
|
-
* @description Mark as primary media
|
|
1336
|
-
* @default false
|
|
1337
|
-
*/
|
|
1338
|
-
is_primary: boolean;
|
|
1339
|
-
};
|
|
1340
|
-
/**
|
|
1341
|
-
* QuestionOptionCreate
|
|
1342
|
-
* @description Option for MCQ questions
|
|
1343
|
-
*/
|
|
1344
|
-
QuestionOptionCreate: {
|
|
1345
|
-
/**
|
|
1346
|
-
* Option Text
|
|
1347
|
-
* @description Option text
|
|
1348
|
-
*/
|
|
1349
|
-
option_text: string;
|
|
1350
|
-
/**
|
|
1351
|
-
* Is Correct
|
|
1352
|
-
* @description Whether this is correct answer
|
|
1353
|
-
* @default false
|
|
1354
|
-
*/
|
|
1355
|
-
is_correct: boolean;
|
|
1356
|
-
/**
|
|
1357
|
-
* Display Order
|
|
1358
|
-
* @description Display order
|
|
1359
|
-
*/
|
|
1360
|
-
display_order?: number | null;
|
|
1361
|
-
/**
|
|
1362
|
-
* Explanation
|
|
1363
|
-
* @description Explanation for this option
|
|
1364
|
-
*/
|
|
1365
|
-
explanation?: string | null;
|
|
1366
|
-
};
|
|
1367
|
-
/**
|
|
1368
|
-
* MediaSection
|
|
1369
|
-
* @description Product media files - direct media data
|
|
1370
|
-
*/
|
|
1371
|
-
MediaSection: {
|
|
1372
|
-
/**
|
|
1373
|
-
* Media Items
|
|
1374
|
-
* @description List of media files to attach to product
|
|
1375
|
-
*/
|
|
1376
|
-
media_items?: components["schemas"]["MediaItem"][] | null;
|
|
1377
|
-
};
|
|
1378
|
-
Extensions: {
|
|
1379
|
-
/** @example GENERIC_ERROR */
|
|
1380
|
-
message_code?: string;
|
|
1381
|
-
/** @example [] */
|
|
1382
|
-
invalid_params?: components["schemas"]["InvalidParam"][];
|
|
1383
|
-
extra_data?: Record<string, never> | null;
|
|
1384
|
-
/** @example Detailed debug information */
|
|
1385
|
-
debug?: string | null;
|
|
1386
|
-
};
|
|
1387
|
-
/**
|
|
1388
|
-
* TestCreateRequest
|
|
1389
|
-
* @description Test creation request - inherits common fields, adds test-specific section
|
|
1390
|
-
* @example {
|
|
1391
|
-
* "identity": {
|
|
1392
|
-
* "locale": "en-US",
|
|
1393
|
-
* "title": "Python Programming Assessment"
|
|
1394
|
-
* },
|
|
1395
|
-
* "pricing": {
|
|
1396
|
-
* "product_price": {
|
|
1397
|
-
* "amount": 500,
|
|
1398
|
-
* "currency": "INR",
|
|
1399
|
-
* "price_type": "one_time"
|
|
1400
|
-
* }
|
|
1401
|
-
* },
|
|
1402
|
-
* "product": {
|
|
1403
|
-
* "is_digital": true,
|
|
1404
|
-
* "status": "draft",
|
|
1405
|
-
* "visibility": "public"
|
|
1406
|
-
* },
|
|
1407
|
-
* "test": {
|
|
1408
|
-
* "duration_minutes": 90,
|
|
1409
|
-
* "has_time_limit": true,
|
|
1410
|
-
* "max_attempts": 3,
|
|
1411
|
-
* "passing_marks": 60,
|
|
1412
|
-
* "total_marks": 100
|
|
1413
|
-
* }
|
|
1414
|
-
* }
|
|
1415
|
-
*/
|
|
1416
|
-
TestCreateRequest: {
|
|
1417
|
-
/** @description Base product configuration */
|
|
1418
|
-
product: components["schemas"]["ProductSection"];
|
|
1419
|
-
/** @description Localized content (title, description) */
|
|
1420
|
-
identity: components["schemas"]["IdentitySection"];
|
|
1421
|
-
/** @description Pre-uploaded image IDs */
|
|
1422
|
-
media?: components["schemas"]["MediaSection"] | null;
|
|
1423
|
-
/**
|
|
1424
|
-
* Tags
|
|
1425
|
-
* @description Tag IDs to associate with product
|
|
1426
|
-
*/
|
|
1427
|
-
tags?: number[] | null;
|
|
1428
|
-
/**
|
|
1429
|
-
* Variants
|
|
1430
|
-
* @description Product variants (optional)
|
|
1431
|
-
*/
|
|
1432
|
-
variants?: components["schemas"]["VariantItem"][] | null;
|
|
1433
|
-
/** @description Pricing for product and variants */
|
|
1434
|
-
pricing?: components["schemas"]["PricingSection"] | null;
|
|
1435
|
-
/** @description Test-specific configuration */
|
|
1436
|
-
test: components["schemas"]["TestSection"];
|
|
1437
|
-
};
|
|
1438
|
-
/**
|
|
1439
|
-
* IdentitySection
|
|
1440
|
-
* @description Localized product content (maps to product_identity_tbl)
|
|
1441
|
-
*/
|
|
1442
|
-
IdentitySection: {
|
|
1443
|
-
/**
|
|
1444
|
-
* Locale
|
|
1445
|
-
* @description Locale: en-US, es-PR, fr-FR, pt-BR, etc.
|
|
1446
|
-
* @default en-US
|
|
1447
|
-
*/
|
|
1448
|
-
locale: string;
|
|
1449
|
-
/**
|
|
1450
|
-
* Title
|
|
1451
|
-
* @description Product title
|
|
1452
|
-
*/
|
|
1453
|
-
title: string;
|
|
1454
|
-
/**
|
|
1455
|
-
* Subtitle
|
|
1456
|
-
* @description Product subtitle
|
|
1457
|
-
*/
|
|
1458
|
-
subtitle?: string | null;
|
|
1459
|
-
/**
|
|
1460
|
-
* Description
|
|
1461
|
-
* @description Full product description
|
|
1462
|
-
*/
|
|
1463
|
-
description?: string | null;
|
|
1400
|
+
display_order: number;
|
|
1464
1401
|
/**
|
|
1465
|
-
*
|
|
1466
|
-
* @description
|
|
1402
|
+
* Is Primary
|
|
1403
|
+
* @description Mark as primary media
|
|
1404
|
+
* @default false
|
|
1467
1405
|
*/
|
|
1468
|
-
|
|
1406
|
+
is_primary: boolean;
|
|
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;
|
|
1469
1413
|
};
|
|
1470
1414
|
/**
|
|
1471
1415
|
* QuestionCreateRequest
|
|
@@ -1561,63 +1505,6 @@ export interface components {
|
|
|
1561
1505
|
[key: string]: unknown;
|
|
1562
1506
|
}[] | null;
|
|
1563
1507
|
};
|
|
1564
|
-
/**
|
|
1565
|
-
* ProductPrice
|
|
1566
|
-
* @description Base product pricing (maps to product_pricings_tbl with variant_id=NULL)
|
|
1567
|
-
*/
|
|
1568
|
-
ProductPrice: {
|
|
1569
|
-
/**
|
|
1570
|
-
* Price Type
|
|
1571
|
-
* @description free, one_time, subscription, monthly_plan
|
|
1572
|
-
*/
|
|
1573
|
-
price_type: string;
|
|
1574
|
-
/**
|
|
1575
|
-
* Currency
|
|
1576
|
-
* @description Currency code: INR, USD, EUR, etc.
|
|
1577
|
-
*/
|
|
1578
|
-
currency: string;
|
|
1579
|
-
/**
|
|
1580
|
-
* Amount
|
|
1581
|
-
* @description Price amount
|
|
1582
|
-
*/
|
|
1583
|
-
amount: number;
|
|
1584
|
-
/**
|
|
1585
|
-
* Compare At Amount
|
|
1586
|
-
* @description Original/strike-through price
|
|
1587
|
-
*/
|
|
1588
|
-
compare_at_amount?: number | null;
|
|
1589
|
-
/**
|
|
1590
|
-
* Interval
|
|
1591
|
-
* @description day, week, month, year (for subscription)
|
|
1592
|
-
*/
|
|
1593
|
-
interval?: string | null;
|
|
1594
|
-
/**
|
|
1595
|
-
* Interval Count
|
|
1596
|
-
* @description Number of intervals
|
|
1597
|
-
*/
|
|
1598
|
-
interval_count?: number | null;
|
|
1599
|
-
/**
|
|
1600
|
-
* Trial Period Days
|
|
1601
|
-
* @description Free trial days
|
|
1602
|
-
*/
|
|
1603
|
-
trial_period_days?: number | null;
|
|
1604
|
-
/**
|
|
1605
|
-
* Initial Amount
|
|
1606
|
-
* @description First payment amount
|
|
1607
|
-
*/
|
|
1608
|
-
initial_amount?: number | null;
|
|
1609
|
-
/**
|
|
1610
|
-
* Gateway
|
|
1611
|
-
* @description stripe, razorpay, paypal, etc.
|
|
1612
|
-
*/
|
|
1613
|
-
gateway?: string | null;
|
|
1614
|
-
/**
|
|
1615
|
-
* Requires Payment Method Upfront
|
|
1616
|
-
* @description Require payment method before trial
|
|
1617
|
-
* @default true
|
|
1618
|
-
*/
|
|
1619
|
-
requires_payment_method_upfront: boolean;
|
|
1620
|
-
};
|
|
1621
1508
|
/**
|
|
1622
1509
|
* VariantPrice
|
|
1623
1510
|
* @description Variant-specific pricing (maps to product_pricings_tbl with variant_id set)
|
|
@@ -1680,20 +1567,31 @@ export interface components {
|
|
|
1680
1567
|
*/
|
|
1681
1568
|
requires_payment_method_upfront: boolean;
|
|
1682
1569
|
};
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
/**
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
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;
|
|
1697
1595
|
};
|
|
1698
1596
|
/**
|
|
1699
1597
|
* ProductSection
|
|
@@ -1746,6 +1644,59 @@ export interface components {
|
|
|
1746
1644
|
*/
|
|
1747
1645
|
featured: boolean;
|
|
1748
1646
|
};
|
|
1647
|
+
ErrorResponse: {
|
|
1648
|
+
/** @example about:blank */
|
|
1649
|
+
type?: string;
|
|
1650
|
+
/** @example GENERIC_ERROR */
|
|
1651
|
+
code?: string;
|
|
1652
|
+
/** @example Client Error */
|
|
1653
|
+
title?: string;
|
|
1654
|
+
/** @example 400 */
|
|
1655
|
+
status?: number;
|
|
1656
|
+
/** @example An error occurred */
|
|
1657
|
+
detail?: string;
|
|
1658
|
+
/** @example /v1/cart/items */
|
|
1659
|
+
instance?: string;
|
|
1660
|
+
extensions?: components["schemas"]["Extensions"];
|
|
1661
|
+
};
|
|
1662
|
+
/**
|
|
1663
|
+
* QuestionOptionCreate
|
|
1664
|
+
* @description Option for MCQ questions
|
|
1665
|
+
*/
|
|
1666
|
+
QuestionOptionCreate: {
|
|
1667
|
+
/**
|
|
1668
|
+
* Option Text
|
|
1669
|
+
* @description Option text
|
|
1670
|
+
*/
|
|
1671
|
+
option_text: string;
|
|
1672
|
+
/**
|
|
1673
|
+
* Is Correct
|
|
1674
|
+
* @description Whether this is correct answer
|
|
1675
|
+
* @default false
|
|
1676
|
+
*/
|
|
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;
|
|
1699
|
+
};
|
|
1749
1700
|
/**
|
|
1750
1701
|
* PricingSection
|
|
1751
1702
|
* @description Pricing configuration (optional - can have product price, variant prices, or both)
|
|
@@ -1760,32 +1711,81 @@ export interface components {
|
|
|
1760
1711
|
variant_prices?: components["schemas"]["VariantPrice"][] | null;
|
|
1761
1712
|
};
|
|
1762
1713
|
/**
|
|
1763
|
-
*
|
|
1764
|
-
* @description Request model for
|
|
1714
|
+
* TestCreateRequest
|
|
1715
|
+
* @description Request model for creating a test
|
|
1765
1716
|
*/
|
|
1766
|
-
|
|
1767
|
-
/**
|
|
1768
|
-
|
|
1769
|
-
|
|
1717
|
+
TestCreateRequest: {
|
|
1718
|
+
/**
|
|
1719
|
+
* Product Id
|
|
1720
|
+
* @description External product ID (prod_xxx)
|
|
1721
|
+
*/
|
|
1722
|
+
product_id: string;
|
|
1723
|
+
/**
|
|
1724
|
+
* Title
|
|
1725
|
+
* @description Test title
|
|
1726
|
+
*/
|
|
1727
|
+
title: string;
|
|
1728
|
+
/**
|
|
1729
|
+
* Description
|
|
1730
|
+
* @description Test description
|
|
1731
|
+
*/
|
|
1770
1732
|
description?: string | null;
|
|
1771
|
-
/**
|
|
1772
|
-
|
|
1773
|
-
|
|
1733
|
+
/**
|
|
1734
|
+
* Total Marks
|
|
1735
|
+
* @description Total marks for test
|
|
1736
|
+
* @default 0
|
|
1737
|
+
*/
|
|
1738
|
+
total_marks: number;
|
|
1739
|
+
/**
|
|
1740
|
+
* Passing Marks
|
|
1741
|
+
* @description Minimum passing marks
|
|
1742
|
+
*/
|
|
1774
1743
|
passing_marks?: number | null;
|
|
1775
|
-
/**
|
|
1776
|
-
|
|
1777
|
-
|
|
1744
|
+
/**
|
|
1745
|
+
* Has Time Limit
|
|
1746
|
+
* @description Whether test has time limit
|
|
1747
|
+
* @default true
|
|
1748
|
+
*/
|
|
1749
|
+
has_time_limit: boolean;
|
|
1750
|
+
/**
|
|
1751
|
+
* Duration Minutes
|
|
1752
|
+
* @description Test duration in minutes
|
|
1753
|
+
*/
|
|
1778
1754
|
duration_minutes?: number | null;
|
|
1779
|
-
/**
|
|
1755
|
+
/**
|
|
1756
|
+
* Max Attempts
|
|
1757
|
+
* @description Maximum attempts allowed
|
|
1758
|
+
*/
|
|
1780
1759
|
max_attempts?: number | null;
|
|
1781
|
-
/**
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
/**
|
|
1788
|
-
|
|
1760
|
+
/**
|
|
1761
|
+
* Randomize Questions
|
|
1762
|
+
* @description Randomize question order
|
|
1763
|
+
* @default false
|
|
1764
|
+
*/
|
|
1765
|
+
randomize_questions: boolean;
|
|
1766
|
+
/**
|
|
1767
|
+
* Randomize Options
|
|
1768
|
+
* @description Randomize option order (MCQs)
|
|
1769
|
+
* @default false
|
|
1770
|
+
*/
|
|
1771
|
+
randomize_options: boolean;
|
|
1772
|
+
/**
|
|
1773
|
+
* Enable Proctoring
|
|
1774
|
+
* @description Enable proctoring features
|
|
1775
|
+
* @default false
|
|
1776
|
+
*/
|
|
1777
|
+
enable_proctoring: boolean;
|
|
1778
|
+
/**
|
|
1779
|
+
* Enable Browser Lockdown
|
|
1780
|
+
* @description Enable browser lockdown
|
|
1781
|
+
* @default false
|
|
1782
|
+
*/
|
|
1783
|
+
enable_browser_lockdown: boolean;
|
|
1784
|
+
/**
|
|
1785
|
+
* Company Id
|
|
1786
|
+
* @description Company ID
|
|
1787
|
+
*/
|
|
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: {
|