@wix/auto_sdk_online-programs_quizzes 1.0.13 → 1.0.15
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/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +7 -1
- package/build/internal/cjs/meta.d.ts +49 -1
- package/build/internal/es/index.typings.d.mts +7 -1
- package/build/internal/es/meta.d.mts +49 -1
- package/package.json +5 -12
- package/build/cjs/schemas.d.ts +0 -748
- package/build/cjs/schemas.js +0 -1074
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -748
- package/build/es/schemas.mjs +0 -1024
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -594
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -531
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -482
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -748
- package/build/internal/cjs/schemas.js +0 -1074
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -562
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -499
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -447
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -748
- package/build/internal/es/schemas.mjs +0 -1024
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
|
@@ -1,1074 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// schemas.ts
|
|
31
|
-
var schemas_exports = {};
|
|
32
|
-
__export(schemas_exports, {
|
|
33
|
-
BulkCloneQuizRequest: () => BulkCloneQuizRequest,
|
|
34
|
-
BulkCloneQuizResponse: () => BulkCloneQuizResponse,
|
|
35
|
-
BulkCreateQuizRequest: () => BulkCreateQuizRequest,
|
|
36
|
-
BulkCreateQuizResponse: () => BulkCreateQuizResponse,
|
|
37
|
-
BulkDeleteQuizRequest: () => BulkDeleteQuizRequest,
|
|
38
|
-
BulkDeleteQuizResponse: () => BulkDeleteQuizResponse,
|
|
39
|
-
CloneQuizRequest: () => CloneQuizRequest,
|
|
40
|
-
CloneQuizResponse: () => CloneQuizResponse,
|
|
41
|
-
CreateQuizRequest: () => CreateQuizRequest,
|
|
42
|
-
CreateQuizResponse: () => CreateQuizResponse,
|
|
43
|
-
DeleteQuizRequest: () => DeleteQuizRequest,
|
|
44
|
-
DeleteQuizResponse: () => DeleteQuizResponse,
|
|
45
|
-
GetQuizRequest: () => GetQuizRequest,
|
|
46
|
-
GetQuizResponse: () => GetQuizResponse
|
|
47
|
-
});
|
|
48
|
-
module.exports = __toCommonJS(schemas_exports);
|
|
49
|
-
|
|
50
|
-
// src/achievements-quizzes-v1-quiz-quizzes.schemas.ts
|
|
51
|
-
var z = __toESM(require("zod"));
|
|
52
|
-
var CreateQuizRequest = z.object({
|
|
53
|
-
quiz: z.object({
|
|
54
|
-
_id: z.string().describe("ID of the quiz").regex(
|
|
55
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
56
|
-
"Must be a valid GUID"
|
|
57
|
-
).optional().nullable(),
|
|
58
|
-
settings: z.object({
|
|
59
|
-
passingGrade: z.number().int().describe("Minimal grade to pass the quiz").min(0).max(100).optional().nullable(),
|
|
60
|
-
title: z.string().describe("Quiz title").max(200).optional().nullable(),
|
|
61
|
-
attempts: z.number().int().describe("Maximal number of submission attempts").min(1).optional().nullable()
|
|
62
|
-
}).describe("Quiz settings").optional(),
|
|
63
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
64
|
-
"Represents the current state of the quiz. Each time the it is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision"
|
|
65
|
-
).optional().nullable(),
|
|
66
|
-
_createdDate: z.date().describe("The time this quiz was created").optional().nullable(),
|
|
67
|
-
_updatedDate: z.date().describe("The time this quiz was last updated").optional().nullable(),
|
|
68
|
-
fields: z.array(
|
|
69
|
-
z.intersection(
|
|
70
|
-
z.object({
|
|
71
|
-
_id: z.string().describe("Field ID").regex(
|
|
72
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
73
|
-
"Must be a valid GUID"
|
|
74
|
-
),
|
|
75
|
-
target: z.string().describe("Key used in submission").max(200),
|
|
76
|
-
question: z.string().describe("Question").min(1).max(350),
|
|
77
|
-
score: z.number().describe("Score of the question when answered right").optional().nullable(),
|
|
78
|
-
rightMessage: z.string().describe("Message shown for right answer").max(350).optional().nullable(),
|
|
79
|
-
wrongMessage: z.string().describe("Message shown for wrong answer").max(350).optional().nullable()
|
|
80
|
-
}),
|
|
81
|
-
z.xor([
|
|
82
|
-
z.object({
|
|
83
|
-
shortText: z.never().optional(),
|
|
84
|
-
singleChoice: z.never().optional(),
|
|
85
|
-
multiChoice: z.never().optional(),
|
|
86
|
-
fileUpload: z.never().optional(),
|
|
87
|
-
numeric: z.object({
|
|
88
|
-
rightAnswer: z.number().describe("Right answer").optional().nullable()
|
|
89
|
-
}).describe("Type for numeric input")
|
|
90
|
-
}),
|
|
91
|
-
z.object({
|
|
92
|
-
numeric: z.never().optional(),
|
|
93
|
-
singleChoice: z.never().optional(),
|
|
94
|
-
multiChoice: z.never().optional(),
|
|
95
|
-
fileUpload: z.never().optional(),
|
|
96
|
-
shortText: z.object({
|
|
97
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(200).optional().nullable()
|
|
98
|
-
}).describe("Type for text input")
|
|
99
|
-
}),
|
|
100
|
-
z.object({
|
|
101
|
-
numeric: z.never().optional(),
|
|
102
|
-
shortText: z.never().optional(),
|
|
103
|
-
multiChoice: z.never().optional(),
|
|
104
|
-
fileUpload: z.never().optional(),
|
|
105
|
-
singleChoice: z.object({
|
|
106
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(350).optional().nullable(),
|
|
107
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
108
|
-
}).describe(
|
|
109
|
-
"Type for input with predefined options where only one can be selected"
|
|
110
|
-
)
|
|
111
|
-
}),
|
|
112
|
-
z.object({
|
|
113
|
-
numeric: z.never().optional(),
|
|
114
|
-
shortText: z.never().optional(),
|
|
115
|
-
singleChoice: z.never().optional(),
|
|
116
|
-
fileUpload: z.never().optional(),
|
|
117
|
-
multiChoice: z.object({
|
|
118
|
-
rightAnswer: z.array(z.string()).min(0).max(90).optional(),
|
|
119
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
120
|
-
}).describe(
|
|
121
|
-
"Type for input with predefined options where multiple can be selected"
|
|
122
|
-
)
|
|
123
|
-
}),
|
|
124
|
-
z.object({
|
|
125
|
-
numeric: z.never().optional(),
|
|
126
|
-
shortText: z.never().optional(),
|
|
127
|
-
singleChoice: z.never().optional(),
|
|
128
|
-
multiChoice: z.never().optional(),
|
|
129
|
-
fileUpload: z.object({
|
|
130
|
-
buttonText: z.string().describe("Text for upload button").min(1).max(100).optional().nullable(),
|
|
131
|
-
itemsLimit: z.number().int().describe("Limit of upload items").min(1).max(10).optional().nullable(),
|
|
132
|
-
fileFormats: z.array(
|
|
133
|
-
z.enum([
|
|
134
|
-
"IMAGE",
|
|
135
|
-
"VIDEO",
|
|
136
|
-
"AUDIO",
|
|
137
|
-
"DOCUMENT",
|
|
138
|
-
"ARCHIVE"
|
|
139
|
-
])
|
|
140
|
-
).min(1).max(4).optional()
|
|
141
|
-
}).describe("Type for file input")
|
|
142
|
-
})
|
|
143
|
-
])
|
|
144
|
-
)
|
|
145
|
-
).min(1).max(200)
|
|
146
|
-
}).describe("Quiz to created")
|
|
147
|
-
});
|
|
148
|
-
var CreateQuizResponse = z.object({
|
|
149
|
-
_id: z.string().describe("ID of the quiz").regex(
|
|
150
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
151
|
-
"Must be a valid GUID"
|
|
152
|
-
).optional().nullable(),
|
|
153
|
-
settings: z.object({
|
|
154
|
-
passingGrade: z.number().int().describe("Minimal grade to pass the quiz").min(0).max(100).optional().nullable(),
|
|
155
|
-
title: z.string().describe("Quiz title").max(200).optional().nullable(),
|
|
156
|
-
attempts: z.number().int().describe("Maximal number of submission attempts").min(1).optional().nullable()
|
|
157
|
-
}).describe("Quiz settings").optional(),
|
|
158
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
159
|
-
"Represents the current state of the quiz. Each time the it is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision"
|
|
160
|
-
).optional().nullable(),
|
|
161
|
-
_createdDate: z.date().describe("The time this quiz was created").optional().nullable(),
|
|
162
|
-
_updatedDate: z.date().describe("The time this quiz was last updated").optional().nullable(),
|
|
163
|
-
fields: z.array(
|
|
164
|
-
z.intersection(
|
|
165
|
-
z.object({
|
|
166
|
-
_id: z.string().describe("Field ID").regex(
|
|
167
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
168
|
-
"Must be a valid GUID"
|
|
169
|
-
).optional(),
|
|
170
|
-
target: z.string().describe("Key used in submission").max(200).optional().nullable(),
|
|
171
|
-
question: z.string().describe("Question").min(1).max(350).optional().nullable(),
|
|
172
|
-
score: z.number().describe("Score of the question when answered right").optional().nullable(),
|
|
173
|
-
rightMessage: z.string().describe("Message shown for right answer").max(350).optional().nullable(),
|
|
174
|
-
wrongMessage: z.string().describe("Message shown for wrong answer").max(350).optional().nullable()
|
|
175
|
-
}),
|
|
176
|
-
z.xor([
|
|
177
|
-
z.object({
|
|
178
|
-
numeric: z.never().optional(),
|
|
179
|
-
shortText: z.never().optional(),
|
|
180
|
-
singleChoice: z.never().optional(),
|
|
181
|
-
multiChoice: z.never().optional(),
|
|
182
|
-
fileUpload: z.never().optional()
|
|
183
|
-
}),
|
|
184
|
-
z.object({
|
|
185
|
-
shortText: z.never().optional(),
|
|
186
|
-
singleChoice: z.never().optional(),
|
|
187
|
-
multiChoice: z.never().optional(),
|
|
188
|
-
fileUpload: z.never().optional(),
|
|
189
|
-
numeric: z.object({
|
|
190
|
-
rightAnswer: z.number().describe("Right answer").optional().nullable()
|
|
191
|
-
}).describe("Type for numeric input")
|
|
192
|
-
}),
|
|
193
|
-
z.object({
|
|
194
|
-
numeric: z.never().optional(),
|
|
195
|
-
singleChoice: z.never().optional(),
|
|
196
|
-
multiChoice: z.never().optional(),
|
|
197
|
-
fileUpload: z.never().optional(),
|
|
198
|
-
shortText: z.object({
|
|
199
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(200).optional().nullable()
|
|
200
|
-
}).describe("Type for text input")
|
|
201
|
-
}),
|
|
202
|
-
z.object({
|
|
203
|
-
numeric: z.never().optional(),
|
|
204
|
-
shortText: z.never().optional(),
|
|
205
|
-
multiChoice: z.never().optional(),
|
|
206
|
-
fileUpload: z.never().optional(),
|
|
207
|
-
singleChoice: z.object({
|
|
208
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(350).optional().nullable(),
|
|
209
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
210
|
-
}).describe(
|
|
211
|
-
"Type for input with predefined options where only one can be selected"
|
|
212
|
-
)
|
|
213
|
-
}),
|
|
214
|
-
z.object({
|
|
215
|
-
numeric: z.never().optional(),
|
|
216
|
-
shortText: z.never().optional(),
|
|
217
|
-
singleChoice: z.never().optional(),
|
|
218
|
-
fileUpload: z.never().optional(),
|
|
219
|
-
multiChoice: z.object({
|
|
220
|
-
rightAnswer: z.array(z.string()).min(0).max(90).optional(),
|
|
221
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
222
|
-
}).describe(
|
|
223
|
-
"Type for input with predefined options where multiple can be selected"
|
|
224
|
-
)
|
|
225
|
-
}),
|
|
226
|
-
z.object({
|
|
227
|
-
numeric: z.never().optional(),
|
|
228
|
-
shortText: z.never().optional(),
|
|
229
|
-
singleChoice: z.never().optional(),
|
|
230
|
-
multiChoice: z.never().optional(),
|
|
231
|
-
fileUpload: z.object({
|
|
232
|
-
buttonText: z.string().describe("Text for upload button").min(1).max(100).optional().nullable(),
|
|
233
|
-
itemsLimit: z.number().int().describe("Limit of upload items").min(1).max(10).optional().nullable(),
|
|
234
|
-
fileFormats: z.array(
|
|
235
|
-
z.enum(["IMAGE", "VIDEO", "AUDIO", "DOCUMENT", "ARCHIVE"])
|
|
236
|
-
).min(1).max(4).optional()
|
|
237
|
-
}).describe("Type for file input")
|
|
238
|
-
})
|
|
239
|
-
])
|
|
240
|
-
)
|
|
241
|
-
).min(1).max(200).optional()
|
|
242
|
-
});
|
|
243
|
-
var CloneQuizRequest = z.object({
|
|
244
|
-
quizId: z.string().describe("ID of the quiz to be cloned").regex(
|
|
245
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
246
|
-
"Must be a valid GUID"
|
|
247
|
-
)
|
|
248
|
-
});
|
|
249
|
-
var CloneQuizResponse = z.object({
|
|
250
|
-
quiz: z.object({
|
|
251
|
-
_id: z.string().describe("ID of the quiz").regex(
|
|
252
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
253
|
-
"Must be a valid GUID"
|
|
254
|
-
).optional().nullable(),
|
|
255
|
-
settings: z.object({
|
|
256
|
-
passingGrade: z.number().int().describe("Minimal grade to pass the quiz").min(0).max(100).optional().nullable(),
|
|
257
|
-
title: z.string().describe("Quiz title").max(200).optional().nullable(),
|
|
258
|
-
attempts: z.number().int().describe("Maximal number of submission attempts").min(1).optional().nullable()
|
|
259
|
-
}).describe("Quiz settings").optional(),
|
|
260
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
261
|
-
"Represents the current state of the quiz. Each time the it is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision"
|
|
262
|
-
).optional().nullable(),
|
|
263
|
-
_createdDate: z.date().describe("The time this quiz was created").optional().nullable(),
|
|
264
|
-
_updatedDate: z.date().describe("The time this quiz was last updated").optional().nullable(),
|
|
265
|
-
fields: z.array(
|
|
266
|
-
z.intersection(
|
|
267
|
-
z.object({
|
|
268
|
-
_id: z.string().describe("Field ID").regex(
|
|
269
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
270
|
-
"Must be a valid GUID"
|
|
271
|
-
).optional(),
|
|
272
|
-
target: z.string().describe("Key used in submission").max(200).optional().nullable(),
|
|
273
|
-
question: z.string().describe("Question").min(1).max(350).optional().nullable(),
|
|
274
|
-
score: z.number().describe("Score of the question when answered right").optional().nullable(),
|
|
275
|
-
rightMessage: z.string().describe("Message shown for right answer").max(350).optional().nullable(),
|
|
276
|
-
wrongMessage: z.string().describe("Message shown for wrong answer").max(350).optional().nullable()
|
|
277
|
-
}),
|
|
278
|
-
z.xor([
|
|
279
|
-
z.object({
|
|
280
|
-
numeric: z.never().optional(),
|
|
281
|
-
shortText: z.never().optional(),
|
|
282
|
-
singleChoice: z.never().optional(),
|
|
283
|
-
multiChoice: z.never().optional(),
|
|
284
|
-
fileUpload: z.never().optional()
|
|
285
|
-
}),
|
|
286
|
-
z.object({
|
|
287
|
-
shortText: z.never().optional(),
|
|
288
|
-
singleChoice: z.never().optional(),
|
|
289
|
-
multiChoice: z.never().optional(),
|
|
290
|
-
fileUpload: z.never().optional(),
|
|
291
|
-
numeric: z.object({
|
|
292
|
-
rightAnswer: z.number().describe("Right answer").optional().nullable()
|
|
293
|
-
}).describe("Type for numeric input")
|
|
294
|
-
}),
|
|
295
|
-
z.object({
|
|
296
|
-
numeric: z.never().optional(),
|
|
297
|
-
singleChoice: z.never().optional(),
|
|
298
|
-
multiChoice: z.never().optional(),
|
|
299
|
-
fileUpload: z.never().optional(),
|
|
300
|
-
shortText: z.object({
|
|
301
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(200).optional().nullable()
|
|
302
|
-
}).describe("Type for text input")
|
|
303
|
-
}),
|
|
304
|
-
z.object({
|
|
305
|
-
numeric: z.never().optional(),
|
|
306
|
-
shortText: z.never().optional(),
|
|
307
|
-
multiChoice: z.never().optional(),
|
|
308
|
-
fileUpload: z.never().optional(),
|
|
309
|
-
singleChoice: z.object({
|
|
310
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(350).optional().nullable(),
|
|
311
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
312
|
-
}).describe(
|
|
313
|
-
"Type for input with predefined options where only one can be selected"
|
|
314
|
-
)
|
|
315
|
-
}),
|
|
316
|
-
z.object({
|
|
317
|
-
numeric: z.never().optional(),
|
|
318
|
-
shortText: z.never().optional(),
|
|
319
|
-
singleChoice: z.never().optional(),
|
|
320
|
-
fileUpload: z.never().optional(),
|
|
321
|
-
multiChoice: z.object({
|
|
322
|
-
rightAnswer: z.array(z.string()).min(0).max(90).optional(),
|
|
323
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
324
|
-
}).describe(
|
|
325
|
-
"Type for input with predefined options where multiple can be selected"
|
|
326
|
-
)
|
|
327
|
-
}),
|
|
328
|
-
z.object({
|
|
329
|
-
numeric: z.never().optional(),
|
|
330
|
-
shortText: z.never().optional(),
|
|
331
|
-
singleChoice: z.never().optional(),
|
|
332
|
-
multiChoice: z.never().optional(),
|
|
333
|
-
fileUpload: z.object({
|
|
334
|
-
buttonText: z.string().describe("Text for upload button").min(1).max(100).optional().nullable(),
|
|
335
|
-
itemsLimit: z.number().int().describe("Limit of upload items").min(1).max(10).optional().nullable(),
|
|
336
|
-
fileFormats: z.array(
|
|
337
|
-
z.enum([
|
|
338
|
-
"IMAGE",
|
|
339
|
-
"VIDEO",
|
|
340
|
-
"AUDIO",
|
|
341
|
-
"DOCUMENT",
|
|
342
|
-
"ARCHIVE"
|
|
343
|
-
])
|
|
344
|
-
).min(1).max(4).optional()
|
|
345
|
-
}).describe("Type for file input")
|
|
346
|
-
})
|
|
347
|
-
])
|
|
348
|
-
)
|
|
349
|
-
).min(1).max(200).optional()
|
|
350
|
-
}).describe("Cloned quiz").optional()
|
|
351
|
-
});
|
|
352
|
-
var BulkCreateQuizRequest = z.object({
|
|
353
|
-
quizzes: z.array(
|
|
354
|
-
z.object({
|
|
355
|
-
_id: z.string().describe("ID of the quiz").regex(
|
|
356
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
357
|
-
"Must be a valid GUID"
|
|
358
|
-
).optional().nullable(),
|
|
359
|
-
settings: z.object({
|
|
360
|
-
passingGrade: z.number().int().describe("Minimal grade to pass the quiz").min(0).max(100).optional().nullable(),
|
|
361
|
-
title: z.string().describe("Quiz title").max(200).optional().nullable(),
|
|
362
|
-
attempts: z.number().int().describe("Maximal number of submission attempts").min(1).optional().nullable()
|
|
363
|
-
}).describe("Quiz settings").optional(),
|
|
364
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
365
|
-
"Represents the current state of the quiz. Each time the it is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision"
|
|
366
|
-
).optional().nullable(),
|
|
367
|
-
_createdDate: z.date().describe("The time this quiz was created").optional().nullable(),
|
|
368
|
-
_updatedDate: z.date().describe("The time this quiz was last updated").optional().nullable(),
|
|
369
|
-
fields: z.array(
|
|
370
|
-
z.intersection(
|
|
371
|
-
z.object({
|
|
372
|
-
_id: z.string().describe("Field ID").regex(
|
|
373
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
374
|
-
"Must be a valid GUID"
|
|
375
|
-
),
|
|
376
|
-
target: z.string().describe("Key used in submission").max(200),
|
|
377
|
-
question: z.string().describe("Question").min(1).max(350),
|
|
378
|
-
score: z.number().describe("Score of the question when answered right").optional().nullable(),
|
|
379
|
-
rightMessage: z.string().describe("Message shown for right answer").max(350).optional().nullable(),
|
|
380
|
-
wrongMessage: z.string().describe("Message shown for wrong answer").max(350).optional().nullable()
|
|
381
|
-
}),
|
|
382
|
-
z.xor([
|
|
383
|
-
z.object({
|
|
384
|
-
shortText: z.never().optional(),
|
|
385
|
-
singleChoice: z.never().optional(),
|
|
386
|
-
multiChoice: z.never().optional(),
|
|
387
|
-
fileUpload: z.never().optional(),
|
|
388
|
-
numeric: z.object({
|
|
389
|
-
rightAnswer: z.number().describe("Right answer").optional().nullable()
|
|
390
|
-
}).describe("Type for numeric input")
|
|
391
|
-
}),
|
|
392
|
-
z.object({
|
|
393
|
-
numeric: z.never().optional(),
|
|
394
|
-
singleChoice: z.never().optional(),
|
|
395
|
-
multiChoice: z.never().optional(),
|
|
396
|
-
fileUpload: z.never().optional(),
|
|
397
|
-
shortText: z.object({
|
|
398
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(200).optional().nullable()
|
|
399
|
-
}).describe("Type for text input")
|
|
400
|
-
}),
|
|
401
|
-
z.object({
|
|
402
|
-
numeric: z.never().optional(),
|
|
403
|
-
shortText: z.never().optional(),
|
|
404
|
-
multiChoice: z.never().optional(),
|
|
405
|
-
fileUpload: z.never().optional(),
|
|
406
|
-
singleChoice: z.object({
|
|
407
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(350).optional().nullable(),
|
|
408
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
409
|
-
}).describe(
|
|
410
|
-
"Type for input with predefined options where only one can be selected"
|
|
411
|
-
)
|
|
412
|
-
}),
|
|
413
|
-
z.object({
|
|
414
|
-
numeric: z.never().optional(),
|
|
415
|
-
shortText: z.never().optional(),
|
|
416
|
-
singleChoice: z.never().optional(),
|
|
417
|
-
fileUpload: z.never().optional(),
|
|
418
|
-
multiChoice: z.object({
|
|
419
|
-
rightAnswer: z.array(z.string()).min(0).max(90).optional(),
|
|
420
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
421
|
-
}).describe(
|
|
422
|
-
"Type for input with predefined options where multiple can be selected"
|
|
423
|
-
)
|
|
424
|
-
}),
|
|
425
|
-
z.object({
|
|
426
|
-
numeric: z.never().optional(),
|
|
427
|
-
shortText: z.never().optional(),
|
|
428
|
-
singleChoice: z.never().optional(),
|
|
429
|
-
multiChoice: z.never().optional(),
|
|
430
|
-
fileUpload: z.object({
|
|
431
|
-
buttonText: z.string().describe("Text for upload button").min(1).max(100).optional().nullable(),
|
|
432
|
-
itemsLimit: z.number().int().describe("Limit of upload items").min(1).max(10).optional().nullable(),
|
|
433
|
-
fileFormats: z.array(
|
|
434
|
-
z.enum([
|
|
435
|
-
"IMAGE",
|
|
436
|
-
"VIDEO",
|
|
437
|
-
"AUDIO",
|
|
438
|
-
"DOCUMENT",
|
|
439
|
-
"ARCHIVE"
|
|
440
|
-
])
|
|
441
|
-
).min(1).max(4).optional()
|
|
442
|
-
}).describe("Type for file input")
|
|
443
|
-
})
|
|
444
|
-
])
|
|
445
|
-
)
|
|
446
|
-
).min(1).max(200)
|
|
447
|
-
})
|
|
448
|
-
).max(30),
|
|
449
|
-
options: z.object({
|
|
450
|
-
returnEntity: z.boolean().describe("When set, items will be returned on successful create").optional()
|
|
451
|
-
}).optional()
|
|
452
|
-
});
|
|
453
|
-
var BulkCreateQuizResponse = z.object({
|
|
454
|
-
results: z.array(
|
|
455
|
-
z.object({
|
|
456
|
-
itemMetadata: z.object({
|
|
457
|
-
_id: z.string().describe(
|
|
458
|
-
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
459
|
-
).optional().nullable(),
|
|
460
|
-
originalIndex: z.number().int().describe(
|
|
461
|
-
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
462
|
-
).optional(),
|
|
463
|
-
success: z.boolean().describe(
|
|
464
|
-
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
465
|
-
).optional(),
|
|
466
|
-
error: z.object({
|
|
467
|
-
code: z.string().describe("Error code.").optional(),
|
|
468
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
469
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
470
|
-
}).describe("Details about the error in case of failure.").optional()
|
|
471
|
-
}).describe("Created quiz metadata").optional(),
|
|
472
|
-
item: z.object({
|
|
473
|
-
_id: z.string().describe("ID of the quiz").regex(
|
|
474
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
475
|
-
"Must be a valid GUID"
|
|
476
|
-
).optional().nullable(),
|
|
477
|
-
settings: z.object({
|
|
478
|
-
passingGrade: z.number().int().describe("Minimal grade to pass the quiz").min(0).max(100).optional().nullable(),
|
|
479
|
-
title: z.string().describe("Quiz title").max(200).optional().nullable(),
|
|
480
|
-
attempts: z.number().int().describe("Maximal number of submission attempts").min(1).optional().nullable()
|
|
481
|
-
}).describe("Quiz settings").optional(),
|
|
482
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
483
|
-
"Represents the current state of the quiz. Each time the it is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision"
|
|
484
|
-
).optional().nullable(),
|
|
485
|
-
_createdDate: z.date().describe("The time this quiz was created").optional().nullable(),
|
|
486
|
-
_updatedDate: z.date().describe("The time this quiz was last updated").optional().nullable(),
|
|
487
|
-
fields: z.array(
|
|
488
|
-
z.intersection(
|
|
489
|
-
z.object({
|
|
490
|
-
_id: z.string().describe("Field ID").regex(
|
|
491
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
492
|
-
"Must be a valid GUID"
|
|
493
|
-
).optional(),
|
|
494
|
-
target: z.string().describe("Key used in submission").max(200).optional().nullable(),
|
|
495
|
-
question: z.string().describe("Question").min(1).max(350).optional().nullable(),
|
|
496
|
-
score: z.number().describe("Score of the question when answered right").optional().nullable(),
|
|
497
|
-
rightMessage: z.string().describe("Message shown for right answer").max(350).optional().nullable(),
|
|
498
|
-
wrongMessage: z.string().describe("Message shown for wrong answer").max(350).optional().nullable()
|
|
499
|
-
}),
|
|
500
|
-
z.xor([
|
|
501
|
-
z.object({
|
|
502
|
-
numeric: z.never().optional(),
|
|
503
|
-
shortText: z.never().optional(),
|
|
504
|
-
singleChoice: z.never().optional(),
|
|
505
|
-
multiChoice: z.never().optional(),
|
|
506
|
-
fileUpload: z.never().optional()
|
|
507
|
-
}),
|
|
508
|
-
z.object({
|
|
509
|
-
shortText: z.never().optional(),
|
|
510
|
-
singleChoice: z.never().optional(),
|
|
511
|
-
multiChoice: z.never().optional(),
|
|
512
|
-
fileUpload: z.never().optional(),
|
|
513
|
-
numeric: z.object({
|
|
514
|
-
rightAnswer: z.number().describe("Right answer").optional().nullable()
|
|
515
|
-
}).describe("Type for numeric input")
|
|
516
|
-
}),
|
|
517
|
-
z.object({
|
|
518
|
-
numeric: z.never().optional(),
|
|
519
|
-
singleChoice: z.never().optional(),
|
|
520
|
-
multiChoice: z.never().optional(),
|
|
521
|
-
fileUpload: z.never().optional(),
|
|
522
|
-
shortText: z.object({
|
|
523
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(200).optional().nullable()
|
|
524
|
-
}).describe("Type for text input")
|
|
525
|
-
}),
|
|
526
|
-
z.object({
|
|
527
|
-
numeric: z.never().optional(),
|
|
528
|
-
shortText: z.never().optional(),
|
|
529
|
-
multiChoice: z.never().optional(),
|
|
530
|
-
fileUpload: z.never().optional(),
|
|
531
|
-
singleChoice: z.object({
|
|
532
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(350).optional().nullable(),
|
|
533
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
534
|
-
}).describe(
|
|
535
|
-
"Type for input with predefined options where only one can be selected"
|
|
536
|
-
)
|
|
537
|
-
}),
|
|
538
|
-
z.object({
|
|
539
|
-
numeric: z.never().optional(),
|
|
540
|
-
shortText: z.never().optional(),
|
|
541
|
-
singleChoice: z.never().optional(),
|
|
542
|
-
fileUpload: z.never().optional(),
|
|
543
|
-
multiChoice: z.object({
|
|
544
|
-
rightAnswer: z.array(z.string()).min(0).max(90).optional(),
|
|
545
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
546
|
-
}).describe(
|
|
547
|
-
"Type for input with predefined options where multiple can be selected"
|
|
548
|
-
)
|
|
549
|
-
}),
|
|
550
|
-
z.object({
|
|
551
|
-
numeric: z.never().optional(),
|
|
552
|
-
shortText: z.never().optional(),
|
|
553
|
-
singleChoice: z.never().optional(),
|
|
554
|
-
multiChoice: z.never().optional(),
|
|
555
|
-
fileUpload: z.object({
|
|
556
|
-
buttonText: z.string().describe("Text for upload button").min(1).max(100).optional().nullable(),
|
|
557
|
-
itemsLimit: z.number().int().describe("Limit of upload items").min(1).max(10).optional().nullable(),
|
|
558
|
-
fileFormats: z.array(
|
|
559
|
-
z.enum([
|
|
560
|
-
"IMAGE",
|
|
561
|
-
"VIDEO",
|
|
562
|
-
"AUDIO",
|
|
563
|
-
"DOCUMENT",
|
|
564
|
-
"ARCHIVE"
|
|
565
|
-
])
|
|
566
|
-
).min(1).max(4).optional()
|
|
567
|
-
}).describe("Type for file input")
|
|
568
|
-
})
|
|
569
|
-
])
|
|
570
|
-
)
|
|
571
|
-
).min(1).max(200).optional()
|
|
572
|
-
}).describe("Created quiz").optional()
|
|
573
|
-
})
|
|
574
|
-
).optional()
|
|
575
|
-
});
|
|
576
|
-
var BulkCloneQuizRequest = z.object({
|
|
577
|
-
quizIds: z.array(z.string()).min(1).max(30),
|
|
578
|
-
options: z.object({
|
|
579
|
-
returnEntity: z.boolean().describe(
|
|
580
|
-
"Whether to return the cloned quizzes in the response.\n\nDefault: `false`"
|
|
581
|
-
).optional()
|
|
582
|
-
}).optional()
|
|
583
|
-
});
|
|
584
|
-
var BulkCloneQuizResponse = z.object({
|
|
585
|
-
results: z.array(
|
|
586
|
-
z.object({
|
|
587
|
-
itemMetadata: z.object({
|
|
588
|
-
_id: z.string().describe(
|
|
589
|
-
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
590
|
-
).optional().nullable(),
|
|
591
|
-
originalIndex: z.number().int().describe(
|
|
592
|
-
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
593
|
-
).optional(),
|
|
594
|
-
success: z.boolean().describe(
|
|
595
|
-
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
596
|
-
).optional(),
|
|
597
|
-
error: z.object({
|
|
598
|
-
code: z.string().describe("Error code.").optional(),
|
|
599
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
600
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
601
|
-
}).describe("Details about the error in case of failure.").optional()
|
|
602
|
-
}).describe("Created quiz metadata").optional(),
|
|
603
|
-
item: z.object({
|
|
604
|
-
_id: z.string().describe("ID of the quiz").regex(
|
|
605
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
606
|
-
"Must be a valid GUID"
|
|
607
|
-
).optional().nullable(),
|
|
608
|
-
settings: z.object({
|
|
609
|
-
passingGrade: z.number().int().describe("Minimal grade to pass the quiz").min(0).max(100).optional().nullable(),
|
|
610
|
-
title: z.string().describe("Quiz title").max(200).optional().nullable(),
|
|
611
|
-
attempts: z.number().int().describe("Maximal number of submission attempts").min(1).optional().nullable()
|
|
612
|
-
}).describe("Quiz settings").optional(),
|
|
613
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
614
|
-
"Represents the current state of the quiz. Each time the it is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision"
|
|
615
|
-
).optional().nullable(),
|
|
616
|
-
_createdDate: z.date().describe("The time this quiz was created").optional().nullable(),
|
|
617
|
-
_updatedDate: z.date().describe("The time this quiz was last updated").optional().nullable(),
|
|
618
|
-
fields: z.array(
|
|
619
|
-
z.intersection(
|
|
620
|
-
z.object({
|
|
621
|
-
_id: z.string().describe("Field ID").regex(
|
|
622
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
623
|
-
"Must be a valid GUID"
|
|
624
|
-
).optional(),
|
|
625
|
-
target: z.string().describe("Key used in submission").max(200).optional().nullable(),
|
|
626
|
-
question: z.string().describe("Question").min(1).max(350).optional().nullable(),
|
|
627
|
-
score: z.number().describe("Score of the question when answered right").optional().nullable(),
|
|
628
|
-
rightMessage: z.string().describe("Message shown for right answer").max(350).optional().nullable(),
|
|
629
|
-
wrongMessage: z.string().describe("Message shown for wrong answer").max(350).optional().nullable()
|
|
630
|
-
}),
|
|
631
|
-
z.xor([
|
|
632
|
-
z.object({
|
|
633
|
-
numeric: z.never().optional(),
|
|
634
|
-
shortText: z.never().optional(),
|
|
635
|
-
singleChoice: z.never().optional(),
|
|
636
|
-
multiChoice: z.never().optional(),
|
|
637
|
-
fileUpload: z.never().optional()
|
|
638
|
-
}),
|
|
639
|
-
z.object({
|
|
640
|
-
shortText: z.never().optional(),
|
|
641
|
-
singleChoice: z.never().optional(),
|
|
642
|
-
multiChoice: z.never().optional(),
|
|
643
|
-
fileUpload: z.never().optional(),
|
|
644
|
-
numeric: z.object({
|
|
645
|
-
rightAnswer: z.number().describe("Right answer").optional().nullable()
|
|
646
|
-
}).describe("Type for numeric input")
|
|
647
|
-
}),
|
|
648
|
-
z.object({
|
|
649
|
-
numeric: z.never().optional(),
|
|
650
|
-
singleChoice: z.never().optional(),
|
|
651
|
-
multiChoice: z.never().optional(),
|
|
652
|
-
fileUpload: z.never().optional(),
|
|
653
|
-
shortText: z.object({
|
|
654
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(200).optional().nullable()
|
|
655
|
-
}).describe("Type for text input")
|
|
656
|
-
}),
|
|
657
|
-
z.object({
|
|
658
|
-
numeric: z.never().optional(),
|
|
659
|
-
shortText: z.never().optional(),
|
|
660
|
-
multiChoice: z.never().optional(),
|
|
661
|
-
fileUpload: z.never().optional(),
|
|
662
|
-
singleChoice: z.object({
|
|
663
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(350).optional().nullable(),
|
|
664
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
665
|
-
}).describe(
|
|
666
|
-
"Type for input with predefined options where only one can be selected"
|
|
667
|
-
)
|
|
668
|
-
}),
|
|
669
|
-
z.object({
|
|
670
|
-
numeric: z.never().optional(),
|
|
671
|
-
shortText: z.never().optional(),
|
|
672
|
-
singleChoice: z.never().optional(),
|
|
673
|
-
fileUpload: z.never().optional(),
|
|
674
|
-
multiChoice: z.object({
|
|
675
|
-
rightAnswer: z.array(z.string()).min(0).max(90).optional(),
|
|
676
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
677
|
-
}).describe(
|
|
678
|
-
"Type for input with predefined options where multiple can be selected"
|
|
679
|
-
)
|
|
680
|
-
}),
|
|
681
|
-
z.object({
|
|
682
|
-
numeric: z.never().optional(),
|
|
683
|
-
shortText: z.never().optional(),
|
|
684
|
-
singleChoice: z.never().optional(),
|
|
685
|
-
multiChoice: z.never().optional(),
|
|
686
|
-
fileUpload: z.object({
|
|
687
|
-
buttonText: z.string().describe("Text for upload button").min(1).max(100).optional().nullable(),
|
|
688
|
-
itemsLimit: z.number().int().describe("Limit of upload items").min(1).max(10).optional().nullable(),
|
|
689
|
-
fileFormats: z.array(
|
|
690
|
-
z.enum([
|
|
691
|
-
"IMAGE",
|
|
692
|
-
"VIDEO",
|
|
693
|
-
"AUDIO",
|
|
694
|
-
"DOCUMENT",
|
|
695
|
-
"ARCHIVE"
|
|
696
|
-
])
|
|
697
|
-
).min(1).max(4).optional()
|
|
698
|
-
}).describe("Type for file input")
|
|
699
|
-
})
|
|
700
|
-
])
|
|
701
|
-
)
|
|
702
|
-
).min(1).max(200).optional()
|
|
703
|
-
}).describe("Created quiz").optional()
|
|
704
|
-
})
|
|
705
|
-
).optional(),
|
|
706
|
-
bulkActionMetadata: z.object({
|
|
707
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
708
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
709
|
-
undetailedFailures: z.number().int().describe(
|
|
710
|
-
"Number of failures without details because detailed failure threshold was exceeded."
|
|
711
|
-
).optional()
|
|
712
|
-
}).describe("Metadata about the bulk operation.").optional()
|
|
713
|
-
});
|
|
714
|
-
var GetQuizRequest = z.object({
|
|
715
|
-
quizId: z.string().describe("ID of the quiz").regex(
|
|
716
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
717
|
-
"Must be a valid GUID"
|
|
718
|
-
)
|
|
719
|
-
});
|
|
720
|
-
var GetQuizResponse = z.object({
|
|
721
|
-
_id: z.string().describe("ID of the quiz").regex(
|
|
722
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
723
|
-
"Must be a valid GUID"
|
|
724
|
-
).optional().nullable(),
|
|
725
|
-
settings: z.object({
|
|
726
|
-
passingGrade: z.number().int().describe("Minimal grade to pass the quiz").min(0).max(100).optional().nullable(),
|
|
727
|
-
title: z.string().describe("Quiz title").max(200).optional().nullable(),
|
|
728
|
-
attempts: z.number().int().describe("Maximal number of submission attempts").min(1).optional().nullable()
|
|
729
|
-
}).describe("Quiz settings").optional(),
|
|
730
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
731
|
-
"Represents the current state of the quiz. Each time the it is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision"
|
|
732
|
-
).optional().nullable(),
|
|
733
|
-
_createdDate: z.date().describe("The time this quiz was created").optional().nullable(),
|
|
734
|
-
_updatedDate: z.date().describe("The time this quiz was last updated").optional().nullable(),
|
|
735
|
-
fields: z.array(
|
|
736
|
-
z.intersection(
|
|
737
|
-
z.object({
|
|
738
|
-
_id: z.string().describe("Field ID").regex(
|
|
739
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
740
|
-
"Must be a valid GUID"
|
|
741
|
-
).optional(),
|
|
742
|
-
target: z.string().describe("Key used in submission").max(200).optional().nullable(),
|
|
743
|
-
question: z.string().describe("Question").min(1).max(350).optional().nullable(),
|
|
744
|
-
score: z.number().describe("Score of the question when answered right").optional().nullable(),
|
|
745
|
-
rightMessage: z.string().describe("Message shown for right answer").max(350).optional().nullable(),
|
|
746
|
-
wrongMessage: z.string().describe("Message shown for wrong answer").max(350).optional().nullable()
|
|
747
|
-
}),
|
|
748
|
-
z.xor([
|
|
749
|
-
z.object({
|
|
750
|
-
numeric: z.never().optional(),
|
|
751
|
-
shortText: z.never().optional(),
|
|
752
|
-
singleChoice: z.never().optional(),
|
|
753
|
-
multiChoice: z.never().optional(),
|
|
754
|
-
fileUpload: z.never().optional()
|
|
755
|
-
}),
|
|
756
|
-
z.object({
|
|
757
|
-
shortText: z.never().optional(),
|
|
758
|
-
singleChoice: z.never().optional(),
|
|
759
|
-
multiChoice: z.never().optional(),
|
|
760
|
-
fileUpload: z.never().optional(),
|
|
761
|
-
numeric: z.object({
|
|
762
|
-
rightAnswer: z.number().describe("Right answer").optional().nullable()
|
|
763
|
-
}).describe("Type for numeric input")
|
|
764
|
-
}),
|
|
765
|
-
z.object({
|
|
766
|
-
numeric: z.never().optional(),
|
|
767
|
-
singleChoice: z.never().optional(),
|
|
768
|
-
multiChoice: z.never().optional(),
|
|
769
|
-
fileUpload: z.never().optional(),
|
|
770
|
-
shortText: z.object({
|
|
771
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(200).optional().nullable()
|
|
772
|
-
}).describe("Type for text input")
|
|
773
|
-
}),
|
|
774
|
-
z.object({
|
|
775
|
-
numeric: z.never().optional(),
|
|
776
|
-
shortText: z.never().optional(),
|
|
777
|
-
multiChoice: z.never().optional(),
|
|
778
|
-
fileUpload: z.never().optional(),
|
|
779
|
-
singleChoice: z.object({
|
|
780
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(350).optional().nullable(),
|
|
781
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
782
|
-
}).describe(
|
|
783
|
-
"Type for input with predefined options where only one can be selected"
|
|
784
|
-
)
|
|
785
|
-
}),
|
|
786
|
-
z.object({
|
|
787
|
-
numeric: z.never().optional(),
|
|
788
|
-
shortText: z.never().optional(),
|
|
789
|
-
singleChoice: z.never().optional(),
|
|
790
|
-
fileUpload: z.never().optional(),
|
|
791
|
-
multiChoice: z.object({
|
|
792
|
-
rightAnswer: z.array(z.string()).min(0).max(90).optional(),
|
|
793
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
794
|
-
}).describe(
|
|
795
|
-
"Type for input with predefined options where multiple can be selected"
|
|
796
|
-
)
|
|
797
|
-
}),
|
|
798
|
-
z.object({
|
|
799
|
-
numeric: z.never().optional(),
|
|
800
|
-
shortText: z.never().optional(),
|
|
801
|
-
singleChoice: z.never().optional(),
|
|
802
|
-
multiChoice: z.never().optional(),
|
|
803
|
-
fileUpload: z.object({
|
|
804
|
-
buttonText: z.string().describe("Text for upload button").min(1).max(100).optional().nullable(),
|
|
805
|
-
itemsLimit: z.number().int().describe("Limit of upload items").min(1).max(10).optional().nullable(),
|
|
806
|
-
fileFormats: z.array(
|
|
807
|
-
z.enum(["IMAGE", "VIDEO", "AUDIO", "DOCUMENT", "ARCHIVE"])
|
|
808
|
-
).min(1).max(4).optional()
|
|
809
|
-
}).describe("Type for file input")
|
|
810
|
-
})
|
|
811
|
-
])
|
|
812
|
-
)
|
|
813
|
-
).min(1).max(200).optional()
|
|
814
|
-
});
|
|
815
|
-
var DeleteQuizRequest = z.object({
|
|
816
|
-
quizId: z.string().describe("ID of quiz").regex(
|
|
817
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
818
|
-
"Must be a valid GUID"
|
|
819
|
-
)
|
|
820
|
-
});
|
|
821
|
-
var DeleteQuizResponse = z.object({
|
|
822
|
-
quiz: z.object({
|
|
823
|
-
_id: z.string().describe("ID of the quiz").regex(
|
|
824
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
825
|
-
"Must be a valid GUID"
|
|
826
|
-
).optional().nullable(),
|
|
827
|
-
settings: z.object({
|
|
828
|
-
passingGrade: z.number().int().describe("Minimal grade to pass the quiz").min(0).max(100).optional().nullable(),
|
|
829
|
-
title: z.string().describe("Quiz title").max(200).optional().nullable(),
|
|
830
|
-
attempts: z.number().int().describe("Maximal number of submission attempts").min(1).optional().nullable()
|
|
831
|
-
}).describe("Quiz settings").optional(),
|
|
832
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
833
|
-
"Represents the current state of the quiz. Each time the it is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision"
|
|
834
|
-
).optional().nullable(),
|
|
835
|
-
_createdDate: z.date().describe("The time this quiz was created").optional().nullable(),
|
|
836
|
-
_updatedDate: z.date().describe("The time this quiz was last updated").optional().nullable(),
|
|
837
|
-
fields: z.array(
|
|
838
|
-
z.intersection(
|
|
839
|
-
z.object({
|
|
840
|
-
_id: z.string().describe("Field ID").regex(
|
|
841
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
842
|
-
"Must be a valid GUID"
|
|
843
|
-
).optional(),
|
|
844
|
-
target: z.string().describe("Key used in submission").max(200).optional().nullable(),
|
|
845
|
-
question: z.string().describe("Question").min(1).max(350).optional().nullable(),
|
|
846
|
-
score: z.number().describe("Score of the question when answered right").optional().nullable(),
|
|
847
|
-
rightMessage: z.string().describe("Message shown for right answer").max(350).optional().nullable(),
|
|
848
|
-
wrongMessage: z.string().describe("Message shown for wrong answer").max(350).optional().nullable()
|
|
849
|
-
}),
|
|
850
|
-
z.xor([
|
|
851
|
-
z.object({
|
|
852
|
-
numeric: z.never().optional(),
|
|
853
|
-
shortText: z.never().optional(),
|
|
854
|
-
singleChoice: z.never().optional(),
|
|
855
|
-
multiChoice: z.never().optional(),
|
|
856
|
-
fileUpload: z.never().optional()
|
|
857
|
-
}),
|
|
858
|
-
z.object({
|
|
859
|
-
shortText: z.never().optional(),
|
|
860
|
-
singleChoice: z.never().optional(),
|
|
861
|
-
multiChoice: z.never().optional(),
|
|
862
|
-
fileUpload: z.never().optional(),
|
|
863
|
-
numeric: z.object({
|
|
864
|
-
rightAnswer: z.number().describe("Right answer").optional().nullable()
|
|
865
|
-
}).describe("Type for numeric input")
|
|
866
|
-
}),
|
|
867
|
-
z.object({
|
|
868
|
-
numeric: z.never().optional(),
|
|
869
|
-
singleChoice: z.never().optional(),
|
|
870
|
-
multiChoice: z.never().optional(),
|
|
871
|
-
fileUpload: z.never().optional(),
|
|
872
|
-
shortText: z.object({
|
|
873
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(200).optional().nullable()
|
|
874
|
-
}).describe("Type for text input")
|
|
875
|
-
}),
|
|
876
|
-
z.object({
|
|
877
|
-
numeric: z.never().optional(),
|
|
878
|
-
shortText: z.never().optional(),
|
|
879
|
-
multiChoice: z.never().optional(),
|
|
880
|
-
fileUpload: z.never().optional(),
|
|
881
|
-
singleChoice: z.object({
|
|
882
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(350).optional().nullable(),
|
|
883
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
884
|
-
}).describe(
|
|
885
|
-
"Type for input with predefined options where only one can be selected"
|
|
886
|
-
)
|
|
887
|
-
}),
|
|
888
|
-
z.object({
|
|
889
|
-
numeric: z.never().optional(),
|
|
890
|
-
shortText: z.never().optional(),
|
|
891
|
-
singleChoice: z.never().optional(),
|
|
892
|
-
fileUpload: z.never().optional(),
|
|
893
|
-
multiChoice: z.object({
|
|
894
|
-
rightAnswer: z.array(z.string()).min(0).max(90).optional(),
|
|
895
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
896
|
-
}).describe(
|
|
897
|
-
"Type for input with predefined options where multiple can be selected"
|
|
898
|
-
)
|
|
899
|
-
}),
|
|
900
|
-
z.object({
|
|
901
|
-
numeric: z.never().optional(),
|
|
902
|
-
shortText: z.never().optional(),
|
|
903
|
-
singleChoice: z.never().optional(),
|
|
904
|
-
multiChoice: z.never().optional(),
|
|
905
|
-
fileUpload: z.object({
|
|
906
|
-
buttonText: z.string().describe("Text for upload button").min(1).max(100).optional().nullable(),
|
|
907
|
-
itemsLimit: z.number().int().describe("Limit of upload items").min(1).max(10).optional().nullable(),
|
|
908
|
-
fileFormats: z.array(
|
|
909
|
-
z.enum([
|
|
910
|
-
"IMAGE",
|
|
911
|
-
"VIDEO",
|
|
912
|
-
"AUDIO",
|
|
913
|
-
"DOCUMENT",
|
|
914
|
-
"ARCHIVE"
|
|
915
|
-
])
|
|
916
|
-
).min(1).max(4).optional()
|
|
917
|
-
}).describe("Type for file input")
|
|
918
|
-
})
|
|
919
|
-
])
|
|
920
|
-
)
|
|
921
|
-
).min(1).max(200).optional()
|
|
922
|
-
}).describe("Deleted quiz").optional()
|
|
923
|
-
});
|
|
924
|
-
var BulkDeleteQuizRequest = z.object({
|
|
925
|
-
quizIds: z.array(z.string()).min(1).max(100)
|
|
926
|
-
});
|
|
927
|
-
var BulkDeleteQuizResponse = z.object({
|
|
928
|
-
results: z.array(
|
|
929
|
-
z.object({
|
|
930
|
-
itemMetadata: z.object({
|
|
931
|
-
_id: z.string().describe(
|
|
932
|
-
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
933
|
-
).optional().nullable(),
|
|
934
|
-
originalIndex: z.number().int().describe(
|
|
935
|
-
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
936
|
-
).optional(),
|
|
937
|
-
success: z.boolean().describe(
|
|
938
|
-
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
939
|
-
).optional(),
|
|
940
|
-
error: z.object({
|
|
941
|
-
code: z.string().describe("Error code.").optional(),
|
|
942
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
943
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
944
|
-
}).describe("Details about the error in case of failure.").optional()
|
|
945
|
-
}).describe("Created quiz metadata").optional(),
|
|
946
|
-
item: z.object({
|
|
947
|
-
_id: z.string().describe("ID of the quiz").regex(
|
|
948
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
949
|
-
"Must be a valid GUID"
|
|
950
|
-
).optional().nullable(),
|
|
951
|
-
settings: z.object({
|
|
952
|
-
passingGrade: z.number().int().describe("Minimal grade to pass the quiz").min(0).max(100).optional().nullable(),
|
|
953
|
-
title: z.string().describe("Quiz title").max(200).optional().nullable(),
|
|
954
|
-
attempts: z.number().int().describe("Maximal number of submission attempts").min(1).optional().nullable()
|
|
955
|
-
}).describe("Quiz settings").optional(),
|
|
956
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
957
|
-
"Represents the current state of the quiz. Each time the it is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision"
|
|
958
|
-
).optional().nullable(),
|
|
959
|
-
_createdDate: z.date().describe("The time this quiz was created").optional().nullable(),
|
|
960
|
-
_updatedDate: z.date().describe("The time this quiz was last updated").optional().nullable(),
|
|
961
|
-
fields: z.array(
|
|
962
|
-
z.intersection(
|
|
963
|
-
z.object({
|
|
964
|
-
_id: z.string().describe("Field ID").regex(
|
|
965
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
966
|
-
"Must be a valid GUID"
|
|
967
|
-
).optional(),
|
|
968
|
-
target: z.string().describe("Key used in submission").max(200).optional().nullable(),
|
|
969
|
-
question: z.string().describe("Question").min(1).max(350).optional().nullable(),
|
|
970
|
-
score: z.number().describe("Score of the question when answered right").optional().nullable(),
|
|
971
|
-
rightMessage: z.string().describe("Message shown for right answer").max(350).optional().nullable(),
|
|
972
|
-
wrongMessage: z.string().describe("Message shown for wrong answer").max(350).optional().nullable()
|
|
973
|
-
}),
|
|
974
|
-
z.xor([
|
|
975
|
-
z.object({
|
|
976
|
-
numeric: z.never().optional(),
|
|
977
|
-
shortText: z.never().optional(),
|
|
978
|
-
singleChoice: z.never().optional(),
|
|
979
|
-
multiChoice: z.never().optional(),
|
|
980
|
-
fileUpload: z.never().optional()
|
|
981
|
-
}),
|
|
982
|
-
z.object({
|
|
983
|
-
shortText: z.never().optional(),
|
|
984
|
-
singleChoice: z.never().optional(),
|
|
985
|
-
multiChoice: z.never().optional(),
|
|
986
|
-
fileUpload: z.never().optional(),
|
|
987
|
-
numeric: z.object({
|
|
988
|
-
rightAnswer: z.number().describe("Right answer").optional().nullable()
|
|
989
|
-
}).describe("Type for numeric input")
|
|
990
|
-
}),
|
|
991
|
-
z.object({
|
|
992
|
-
numeric: z.never().optional(),
|
|
993
|
-
singleChoice: z.never().optional(),
|
|
994
|
-
multiChoice: z.never().optional(),
|
|
995
|
-
fileUpload: z.never().optional(),
|
|
996
|
-
shortText: z.object({
|
|
997
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(200).optional().nullable()
|
|
998
|
-
}).describe("Type for text input")
|
|
999
|
-
}),
|
|
1000
|
-
z.object({
|
|
1001
|
-
numeric: z.never().optional(),
|
|
1002
|
-
shortText: z.never().optional(),
|
|
1003
|
-
multiChoice: z.never().optional(),
|
|
1004
|
-
fileUpload: z.never().optional(),
|
|
1005
|
-
singleChoice: z.object({
|
|
1006
|
-
rightAnswer: z.string().describe("Right answer").min(1).max(350).optional().nullable(),
|
|
1007
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
1008
|
-
}).describe(
|
|
1009
|
-
"Type for input with predefined options where only one can be selected"
|
|
1010
|
-
)
|
|
1011
|
-
}),
|
|
1012
|
-
z.object({
|
|
1013
|
-
numeric: z.never().optional(),
|
|
1014
|
-
shortText: z.never().optional(),
|
|
1015
|
-
singleChoice: z.never().optional(),
|
|
1016
|
-
fileUpload: z.never().optional(),
|
|
1017
|
-
multiChoice: z.object({
|
|
1018
|
-
rightAnswer: z.array(z.string()).min(0).max(90).optional(),
|
|
1019
|
-
options: z.array(z.string()).min(1).max(90).optional()
|
|
1020
|
-
}).describe(
|
|
1021
|
-
"Type for input with predefined options where multiple can be selected"
|
|
1022
|
-
)
|
|
1023
|
-
}),
|
|
1024
|
-
z.object({
|
|
1025
|
-
numeric: z.never().optional(),
|
|
1026
|
-
shortText: z.never().optional(),
|
|
1027
|
-
singleChoice: z.never().optional(),
|
|
1028
|
-
multiChoice: z.never().optional(),
|
|
1029
|
-
fileUpload: z.object({
|
|
1030
|
-
buttonText: z.string().describe("Text for upload button").min(1).max(100).optional().nullable(),
|
|
1031
|
-
itemsLimit: z.number().int().describe("Limit of upload items").min(1).max(10).optional().nullable(),
|
|
1032
|
-
fileFormats: z.array(
|
|
1033
|
-
z.enum([
|
|
1034
|
-
"IMAGE",
|
|
1035
|
-
"VIDEO",
|
|
1036
|
-
"AUDIO",
|
|
1037
|
-
"DOCUMENT",
|
|
1038
|
-
"ARCHIVE"
|
|
1039
|
-
])
|
|
1040
|
-
).min(1).max(4).optional()
|
|
1041
|
-
}).describe("Type for file input")
|
|
1042
|
-
})
|
|
1043
|
-
])
|
|
1044
|
-
)
|
|
1045
|
-
).min(1).max(200).optional()
|
|
1046
|
-
}).describe("Created quiz").optional()
|
|
1047
|
-
})
|
|
1048
|
-
).min(1).max(100).optional(),
|
|
1049
|
-
bulkActionMetadata: z.object({
|
|
1050
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
1051
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
1052
|
-
undetailedFailures: z.number().int().describe(
|
|
1053
|
-
"Number of failures without details because detailed failure threshold was exceeded."
|
|
1054
|
-
).optional()
|
|
1055
|
-
}).describe("Metadata about the bulk operation.").optional()
|
|
1056
|
-
});
|
|
1057
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1058
|
-
0 && (module.exports = {
|
|
1059
|
-
BulkCloneQuizRequest,
|
|
1060
|
-
BulkCloneQuizResponse,
|
|
1061
|
-
BulkCreateQuizRequest,
|
|
1062
|
-
BulkCreateQuizResponse,
|
|
1063
|
-
BulkDeleteQuizRequest,
|
|
1064
|
-
BulkDeleteQuizResponse,
|
|
1065
|
-
CloneQuizRequest,
|
|
1066
|
-
CloneQuizResponse,
|
|
1067
|
-
CreateQuizRequest,
|
|
1068
|
-
CreateQuizResponse,
|
|
1069
|
-
DeleteQuizRequest,
|
|
1070
|
-
DeleteQuizResponse,
|
|
1071
|
-
GetQuizRequest,
|
|
1072
|
-
GetQuizResponse
|
|
1073
|
-
});
|
|
1074
|
-
//# sourceMappingURL=schemas.js.map
|