politeshop 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +33 -0
  2. package/dist/clients/brightspace.d.ts +75 -0
  3. package/dist/clients/brightspace.d.ts.map +1 -0
  4. package/dist/clients/brightspace.js +104 -0
  5. package/dist/clients/brightspace.js.map +1 -0
  6. package/dist/clients/polite.d.ts +117 -0
  7. package/dist/clients/polite.d.ts.map +1 -0
  8. package/dist/clients/polite.js +191 -0
  9. package/dist/clients/polite.js.map +1 -0
  10. package/dist/clients/politeshop.d.ts +119 -0
  11. package/dist/clients/politeshop.d.ts.map +1 -0
  12. package/dist/clients/politeshop.js +401 -0
  13. package/dist/clients/politeshop.js.map +1 -0
  14. package/dist/errors.d.ts +7 -0
  15. package/dist/errors.d.ts.map +1 -0
  16. package/dist/errors.js +9 -0
  17. package/dist/errors.js.map +1 -0
  18. package/dist/index.d.ts +5 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js +4 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/schema/polite.d.ts +809 -0
  23. package/dist/schema/polite.d.ts.map +1 -0
  24. package/dist/schema/polite.js +197 -0
  25. package/dist/schema/polite.js.map +1 -0
  26. package/dist/schema/siren.d.ts +66 -0
  27. package/dist/schema/siren.d.ts.map +1 -0
  28. package/dist/schema/siren.js +112 -0
  29. package/dist/schema/siren.js.map +1 -0
  30. package/dist/types.d.ts +105 -0
  31. package/dist/types.d.ts.map +1 -0
  32. package/dist/types.js +6 -0
  33. package/dist/types.js.map +1 -0
  34. package/dist/utils/array.d.ts +5 -0
  35. package/dist/utils/array.d.ts.map +1 -0
  36. package/dist/utils/array.js +13 -0
  37. package/dist/utils/array.js.map +1 -0
  38. package/dist/utils/url.d.ts +23 -0
  39. package/dist/utils/url.d.ts.map +1 -0
  40. package/dist/utils/url.js +53 -0
  41. package/dist/utils/url.js.map +1 -0
  42. package/package.json +42 -0
@@ -0,0 +1,809 @@
1
+ /**
2
+ * Zod schemas for POLITE API (*.polite.edu.sg) responses.
3
+ * Adapted from https://docs.valence.desire2learn.com/reference.html.
4
+ * These schemas only cover the parts of the API used by POLITEShop.
5
+ */
6
+ import { z } from "zod";
7
+ /** Response from GET /d2l/lp/auth/oauth2/token */
8
+ export declare const brightspaceToken: z.ZodObject<{
9
+ access_token: z.ZodString;
10
+ expires_at: z.ZodNumber;
11
+ }, "strip", z.ZodTypeAny, {
12
+ access_token: string;
13
+ expires_at: number;
14
+ }, {
15
+ access_token: string;
16
+ expires_at: number;
17
+ }>;
18
+ export type BrightspaceToken = z.infer<typeof brightspaceToken>;
19
+ /** https://docs.valence.desire2learn.com/res/user.html#User.WhoAmIUser */
20
+ export declare const whoAmIUser: z.ZodObject<{
21
+ Identifier: z.ZodString;
22
+ FirstName: z.ZodString;
23
+ LastName: z.ZodString;
24
+ /** POLITEMall uses this as the user's email address. */
25
+ UniqueName: z.ZodString;
26
+ ProfileIdentifier: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ Identifier: string;
29
+ FirstName: string;
30
+ LastName: string;
31
+ UniqueName: string;
32
+ ProfileIdentifier: string;
33
+ }, {
34
+ Identifier: string;
35
+ FirstName: string;
36
+ LastName: string;
37
+ UniqueName: string;
38
+ ProfileIdentifier: string;
39
+ }>;
40
+ export type WhoAmIUser = z.infer<typeof whoAmIUser>;
41
+ /** https://docs.valence.desire2learn.com/res/orgunit.html#Org.Organization */
42
+ export declare const organization: z.ZodObject<{
43
+ Identifier: z.ZodString;
44
+ Name: z.ZodString;
45
+ TimeZone: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ Identifier: string;
48
+ Name: string;
49
+ TimeZone: string;
50
+ }, {
51
+ Identifier: string;
52
+ Name: string;
53
+ TimeZone: string;
54
+ }>;
55
+ export type Organization = z.infer<typeof organization>;
56
+ /** https://docs.valence.desire2learn.com/res/enroll.html#Enrollment.MyOrgUnitInfo */
57
+ export declare const myOrgUnitInfo: z.ZodObject<{
58
+ OrgUnit: z.ZodObject<{
59
+ Id: z.ZodNumber;
60
+ Type: z.ZodObject<{
61
+ Id: z.ZodNumber;
62
+ Code: z.ZodString;
63
+ Name: z.ZodString;
64
+ }, "strip", z.ZodTypeAny, {
65
+ Name: string;
66
+ Id: number;
67
+ Code: string;
68
+ }, {
69
+ Name: string;
70
+ Id: number;
71
+ Code: string;
72
+ }>;
73
+ Name: z.ZodString;
74
+ Code: z.ZodNullable<z.ZodString>;
75
+ HomeUrl: z.ZodNullable<z.ZodString>;
76
+ ImageUrl: z.ZodNullable<z.ZodString>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ Name: string;
79
+ Id: number;
80
+ Type: {
81
+ Name: string;
82
+ Id: number;
83
+ Code: string;
84
+ };
85
+ Code: string | null;
86
+ HomeUrl: string | null;
87
+ ImageUrl: string | null;
88
+ }, {
89
+ Name: string;
90
+ Id: number;
91
+ Type: {
92
+ Name: string;
93
+ Id: number;
94
+ Code: string;
95
+ };
96
+ Code: string | null;
97
+ HomeUrl: string | null;
98
+ ImageUrl: string | null;
99
+ }>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ OrgUnit: {
102
+ Name: string;
103
+ Id: number;
104
+ Type: {
105
+ Name: string;
106
+ Id: number;
107
+ Code: string;
108
+ };
109
+ Code: string | null;
110
+ HomeUrl: string | null;
111
+ ImageUrl: string | null;
112
+ };
113
+ }, {
114
+ OrgUnit: {
115
+ Name: string;
116
+ Id: number;
117
+ Type: {
118
+ Name: string;
119
+ Id: number;
120
+ Code: string;
121
+ };
122
+ Code: string | null;
123
+ HomeUrl: string | null;
124
+ ImageUrl: string | null;
125
+ };
126
+ }>;
127
+ export type MyOrgUnitInfo = z.infer<typeof myOrgUnitInfo>;
128
+ export declare const courseParent: z.ZodObject<{
129
+ CourseOfferingId: z.ZodString;
130
+ Semester: z.ZodObject<{
131
+ Identifier: z.ZodString;
132
+ Name: z.ZodString;
133
+ Code: z.ZodString;
134
+ }, "strip", z.ZodTypeAny, {
135
+ Identifier: string;
136
+ Name: string;
137
+ Code: string;
138
+ }, {
139
+ Identifier: string;
140
+ Name: string;
141
+ Code: string;
142
+ }>;
143
+ Department: z.ZodObject<{
144
+ Identifier: z.ZodString;
145
+ Name: z.ZodString;
146
+ Code: z.ZodString;
147
+ }, "strip", z.ZodTypeAny, {
148
+ Identifier: string;
149
+ Name: string;
150
+ Code: string;
151
+ }, {
152
+ Identifier: string;
153
+ Name: string;
154
+ Code: string;
155
+ }>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ CourseOfferingId: string;
158
+ Semester: {
159
+ Identifier: string;
160
+ Name: string;
161
+ Code: string;
162
+ };
163
+ Department: {
164
+ Identifier: string;
165
+ Name: string;
166
+ Code: string;
167
+ };
168
+ }, {
169
+ CourseOfferingId: string;
170
+ Semester: {
171
+ Identifier: string;
172
+ Name: string;
173
+ Code: string;
174
+ };
175
+ Department: {
176
+ Identifier: string;
177
+ Name: string;
178
+ Code: string;
179
+ };
180
+ }>;
181
+ export type CourseParent = z.infer<typeof courseParent>;
182
+ declare const richText: z.ZodObject<{
183
+ Text: z.ZodString;
184
+ Html: z.ZodString;
185
+ }, "strip", z.ZodTypeAny, {
186
+ Text: string;
187
+ Html: string;
188
+ }, {
189
+ Text: string;
190
+ Html: string;
191
+ }>;
192
+ export type RichText = z.infer<typeof richText>;
193
+ /**
194
+ * `ToC.Topic` of https://docs.valence.desire2learn.com/res/content.html#ToC.TableOfContents
195
+ *
196
+ * ActivityType values:
197
+ * 1 = File / ContentService
198
+ * 2 = Link (web embed)
199
+ * 3 = Dropbox (submission)
200
+ * 4 = Quiz
201
+ */
202
+ export declare const tocTopic: z.ZodIntersection<z.ZodObject<{
203
+ Identifier: z.ZodString;
204
+ /** Same identifier as `Identifier`, but as a number. */
205
+ TopicId: z.ZodNumber;
206
+ Title: z.ZodString;
207
+ Description: z.ZodObject<{
208
+ Text: z.ZodString;
209
+ Html: z.ZodString;
210
+ }, "strip", z.ZodTypeAny, {
211
+ Text: string;
212
+ Html: string;
213
+ }, {
214
+ Text: string;
215
+ Html: string;
216
+ }>;
217
+ ActivityType: z.ZodNumber;
218
+ TypeIdentifier: z.ZodEnum<["Link", "File", "ContentService"]>;
219
+ Unread: z.ZodBoolean;
220
+ ToolId: z.ZodNullable<z.ZodNumber>;
221
+ ToolItemId: z.ZodNullable<z.ZodNumber>;
222
+ SortOrder: z.ZodNumber;
223
+ }, "strip", z.ZodTypeAny, {
224
+ Identifier: string;
225
+ TopicId: number;
226
+ Title: string;
227
+ Description: {
228
+ Text: string;
229
+ Html: string;
230
+ };
231
+ ActivityType: number;
232
+ TypeIdentifier: "Link" | "File" | "ContentService";
233
+ Unread: boolean;
234
+ ToolId: number | null;
235
+ ToolItemId: number | null;
236
+ SortOrder: number;
237
+ }, {
238
+ Identifier: string;
239
+ TopicId: number;
240
+ Title: string;
241
+ Description: {
242
+ Text: string;
243
+ Html: string;
244
+ };
245
+ ActivityType: number;
246
+ TypeIdentifier: "Link" | "File" | "ContentService";
247
+ Unread: boolean;
248
+ ToolId: number | null;
249
+ ToolItemId: number | null;
250
+ SortOrder: number;
251
+ }>, z.ZodUnion<[z.ZodObject<{
252
+ IsBroken: z.ZodLiteral<false>;
253
+ Url: z.ZodString;
254
+ }, "strip", z.ZodTypeAny, {
255
+ IsBroken: false;
256
+ Url: string;
257
+ }, {
258
+ IsBroken: false;
259
+ Url: string;
260
+ }>, z.ZodObject<{
261
+ IsBroken: z.ZodLiteral<true>;
262
+ Url: z.ZodNullable<z.ZodString>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ IsBroken: true;
265
+ Url: string | null;
266
+ }, {
267
+ IsBroken: true;
268
+ Url: string | null;
269
+ }>]>>;
270
+ export type TOCTopic = z.infer<typeof tocTopic>;
271
+ declare const baseModule: z.ZodObject<{
272
+ ModuleId: z.ZodNumber;
273
+ Title: z.ZodString;
274
+ Description: z.ZodObject<{
275
+ Text: z.ZodString;
276
+ Html: z.ZodString;
277
+ }, "strip", z.ZodTypeAny, {
278
+ Text: string;
279
+ Html: string;
280
+ }, {
281
+ Text: string;
282
+ Html: string;
283
+ }>;
284
+ SortOrder: z.ZodNumber;
285
+ Topics: z.ZodArray<z.ZodIntersection<z.ZodObject<{
286
+ Identifier: z.ZodString;
287
+ /** Same identifier as `Identifier`, but as a number. */
288
+ TopicId: z.ZodNumber;
289
+ Title: z.ZodString;
290
+ Description: z.ZodObject<{
291
+ Text: z.ZodString;
292
+ Html: z.ZodString;
293
+ }, "strip", z.ZodTypeAny, {
294
+ Text: string;
295
+ Html: string;
296
+ }, {
297
+ Text: string;
298
+ Html: string;
299
+ }>;
300
+ ActivityType: z.ZodNumber;
301
+ TypeIdentifier: z.ZodEnum<["Link", "File", "ContentService"]>;
302
+ Unread: z.ZodBoolean;
303
+ ToolId: z.ZodNullable<z.ZodNumber>;
304
+ ToolItemId: z.ZodNullable<z.ZodNumber>;
305
+ SortOrder: z.ZodNumber;
306
+ }, "strip", z.ZodTypeAny, {
307
+ Identifier: string;
308
+ TopicId: number;
309
+ Title: string;
310
+ Description: {
311
+ Text: string;
312
+ Html: string;
313
+ };
314
+ ActivityType: number;
315
+ TypeIdentifier: "Link" | "File" | "ContentService";
316
+ Unread: boolean;
317
+ ToolId: number | null;
318
+ ToolItemId: number | null;
319
+ SortOrder: number;
320
+ }, {
321
+ Identifier: string;
322
+ TopicId: number;
323
+ Title: string;
324
+ Description: {
325
+ Text: string;
326
+ Html: string;
327
+ };
328
+ ActivityType: number;
329
+ TypeIdentifier: "Link" | "File" | "ContentService";
330
+ Unread: boolean;
331
+ ToolId: number | null;
332
+ ToolItemId: number | null;
333
+ SortOrder: number;
334
+ }>, z.ZodUnion<[z.ZodObject<{
335
+ IsBroken: z.ZodLiteral<false>;
336
+ Url: z.ZodString;
337
+ }, "strip", z.ZodTypeAny, {
338
+ IsBroken: false;
339
+ Url: string;
340
+ }, {
341
+ IsBroken: false;
342
+ Url: string;
343
+ }>, z.ZodObject<{
344
+ IsBroken: z.ZodLiteral<true>;
345
+ Url: z.ZodNullable<z.ZodString>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ IsBroken: true;
348
+ Url: string | null;
349
+ }, {
350
+ IsBroken: true;
351
+ Url: string | null;
352
+ }>]>>, "many">;
353
+ }, "strip", z.ZodTypeAny, {
354
+ Title: string;
355
+ Description: {
356
+ Text: string;
357
+ Html: string;
358
+ };
359
+ SortOrder: number;
360
+ ModuleId: number;
361
+ Topics: ({
362
+ Identifier: string;
363
+ TopicId: number;
364
+ Title: string;
365
+ Description: {
366
+ Text: string;
367
+ Html: string;
368
+ };
369
+ ActivityType: number;
370
+ TypeIdentifier: "Link" | "File" | "ContentService";
371
+ Unread: boolean;
372
+ ToolId: number | null;
373
+ ToolItemId: number | null;
374
+ SortOrder: number;
375
+ } & ({
376
+ IsBroken: false;
377
+ Url: string;
378
+ } | {
379
+ IsBroken: true;
380
+ Url: string | null;
381
+ }))[];
382
+ }, {
383
+ Title: string;
384
+ Description: {
385
+ Text: string;
386
+ Html: string;
387
+ };
388
+ SortOrder: number;
389
+ ModuleId: number;
390
+ Topics: ({
391
+ Identifier: string;
392
+ TopicId: number;
393
+ Title: string;
394
+ Description: {
395
+ Text: string;
396
+ Html: string;
397
+ };
398
+ ActivityType: number;
399
+ TypeIdentifier: "Link" | "File" | "ContentService";
400
+ Unread: boolean;
401
+ ToolId: number | null;
402
+ ToolItemId: number | null;
403
+ SortOrder: number;
404
+ } & ({
405
+ IsBroken: false;
406
+ Url: string;
407
+ } | {
408
+ IsBroken: true;
409
+ Url: string | null;
410
+ }))[];
411
+ }>;
412
+ export type TOCModule = z.infer<typeof baseModule> & {
413
+ Modules: TOCModule[];
414
+ };
415
+ /**
416
+ * Brightspace calls these "Module" objects but POLITEShop calls them "activity folders".
417
+ * `ToC.Module` of https://docs.valence.desire2learn.com/res/content.html#ToC.TableOfContents
418
+ */
419
+ export declare const tocModule: z.ZodType<TOCModule>;
420
+ /** https://docs.valence.desire2learn.com/res/content.html#ToC.TableOfContents */
421
+ export declare const tableOfContents: z.ZodObject<{
422
+ Modules: z.ZodArray<z.ZodType<TOCModule, z.ZodTypeDef, TOCModule>, "many">;
423
+ }, "strip", z.ZodTypeAny, {
424
+ Modules: TOCModule[];
425
+ }, {
426
+ Modules: TOCModule[];
427
+ }>;
428
+ export type TableOfContents = z.infer<typeof tableOfContents>;
429
+ /** https://docs.valence.desire2learn.com/res/dropbox.html#Dropbox.EntityDropbox */
430
+ export declare const entityDropbox: z.ZodObject<{
431
+ CompletionDate: z.ZodNullable<z.ZodString>;
432
+ Submissions: z.ZodArray<z.ZodObject<{
433
+ Id: z.ZodNumber;
434
+ SubmissionDate: z.ZodNullable<z.ZodDate>;
435
+ Comment: z.ZodObject<{
436
+ Text: z.ZodString;
437
+ Html: z.ZodString;
438
+ }, "strip", z.ZodTypeAny, {
439
+ Text: string;
440
+ Html: string;
441
+ }, {
442
+ Text: string;
443
+ Html: string;
444
+ }>;
445
+ Files: z.ZodArray<z.ZodObject<{
446
+ FileId: z.ZodNumber;
447
+ FileName: z.ZodString;
448
+ Size: z.ZodNumber;
449
+ }, "strip", z.ZodTypeAny, {
450
+ FileId: number;
451
+ FileName: string;
452
+ Size: number;
453
+ }, {
454
+ FileId: number;
455
+ FileName: string;
456
+ Size: number;
457
+ }>, "many">;
458
+ }, "strip", z.ZodTypeAny, {
459
+ Id: number;
460
+ SubmissionDate: Date | null;
461
+ Comment: {
462
+ Text: string;
463
+ Html: string;
464
+ };
465
+ Files: {
466
+ FileId: number;
467
+ FileName: string;
468
+ Size: number;
469
+ }[];
470
+ }, {
471
+ Id: number;
472
+ SubmissionDate: Date | null;
473
+ Comment: {
474
+ Text: string;
475
+ Html: string;
476
+ };
477
+ Files: {
478
+ FileId: number;
479
+ FileName: string;
480
+ Size: number;
481
+ }[];
482
+ }>, "many">;
483
+ }, "strip", z.ZodTypeAny, {
484
+ CompletionDate: string | null;
485
+ Submissions: {
486
+ Id: number;
487
+ SubmissionDate: Date | null;
488
+ Comment: {
489
+ Text: string;
490
+ Html: string;
491
+ };
492
+ Files: {
493
+ FileId: number;
494
+ FileName: string;
495
+ Size: number;
496
+ }[];
497
+ }[];
498
+ }, {
499
+ CompletionDate: string | null;
500
+ Submissions: {
501
+ Id: number;
502
+ SubmissionDate: Date | null;
503
+ Comment: {
504
+ Text: string;
505
+ Html: string;
506
+ };
507
+ Files: {
508
+ FileId: number;
509
+ FileName: string;
510
+ Size: number;
511
+ }[];
512
+ }[];
513
+ }>;
514
+ export type EntityDropbox = z.infer<typeof entityDropbox>;
515
+ /** https://docs.valence.desire2learn.com/res/dropbox.html#Dropbox.DropboxFolder */
516
+ export declare const dropboxFolder: z.ZodObject<{
517
+ Id: z.ZodNumber;
518
+ Name: z.ZodString;
519
+ CustomInstructions: z.ZodObject<{
520
+ Text: z.ZodString;
521
+ Html: z.ZodString;
522
+ }, "strip", z.ZodTypeAny, {
523
+ Text: string;
524
+ Html: string;
525
+ }, {
526
+ Text: string;
527
+ Html: string;
528
+ }>;
529
+ Attachments: z.ZodArray<z.ZodObject<{
530
+ FileId: z.ZodNumber;
531
+ FileName: z.ZodString;
532
+ Size: z.ZodNumber;
533
+ }, "strip", z.ZodTypeAny, {
534
+ FileId: number;
535
+ FileName: string;
536
+ Size: number;
537
+ }, {
538
+ FileId: number;
539
+ FileName: string;
540
+ Size: number;
541
+ }>, "many">;
542
+ DueDate: z.ZodNullable<z.ZodDate>;
543
+ SubmissionType: z.ZodLiteral<0>;
544
+ CompletionType: z.ZodNumber;
545
+ Availability: z.ZodNullable<z.ZodObject<{
546
+ StartDate: z.ZodNullable<z.ZodDate>;
547
+ EndDate: z.ZodNullable<z.ZodDate>;
548
+ StartDateAvailabilityType: z.ZodNullable<z.ZodNumber>;
549
+ EndDateAvailabilityType: z.ZodNullable<z.ZodNumber>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ StartDate: Date | null;
552
+ EndDate: Date | null;
553
+ StartDateAvailabilityType: number | null;
554
+ EndDateAvailabilityType: number | null;
555
+ }, {
556
+ StartDate: Date | null;
557
+ EndDate: Date | null;
558
+ StartDateAvailabilityType: number | null;
559
+ EndDateAvailabilityType: number | null;
560
+ }>>;
561
+ }, "strip", z.ZodTypeAny, {
562
+ Name: string;
563
+ Id: number;
564
+ CustomInstructions: {
565
+ Text: string;
566
+ Html: string;
567
+ };
568
+ Attachments: {
569
+ FileId: number;
570
+ FileName: string;
571
+ Size: number;
572
+ }[];
573
+ DueDate: Date | null;
574
+ SubmissionType: 0;
575
+ CompletionType: number;
576
+ Availability: {
577
+ StartDate: Date | null;
578
+ EndDate: Date | null;
579
+ StartDateAvailabilityType: number | null;
580
+ EndDateAvailabilityType: number | null;
581
+ } | null;
582
+ }, {
583
+ Name: string;
584
+ Id: number;
585
+ CustomInstructions: {
586
+ Text: string;
587
+ Html: string;
588
+ };
589
+ Attachments: {
590
+ FileId: number;
591
+ FileName: string;
592
+ Size: number;
593
+ }[];
594
+ DueDate: Date | null;
595
+ SubmissionType: 0;
596
+ CompletionType: number;
597
+ Availability: {
598
+ StartDate: Date | null;
599
+ EndDate: Date | null;
600
+ StartDateAvailabilityType: number | null;
601
+ EndDateAvailabilityType: number | null;
602
+ } | null;
603
+ }>;
604
+ export type DropboxFolder = z.infer<typeof dropboxFolder>;
605
+ /** https://docs.valence.desire2learn.com/res/quiz.html#Quiz.QuizReadData */
606
+ export declare const quizReadData: z.ZodObject<{
607
+ QuizId: z.ZodNumber;
608
+ Name: z.ZodString;
609
+ Instructions: z.ZodObject<{
610
+ Text: z.ZodObject<{
611
+ Text: z.ZodString;
612
+ Html: z.ZodString;
613
+ }, "strip", z.ZodTypeAny, {
614
+ Text: string;
615
+ Html: string;
616
+ }, {
617
+ Text: string;
618
+ Html: string;
619
+ }>;
620
+ IsDisplayed: z.ZodBoolean;
621
+ }, "strip", z.ZodTypeAny, {
622
+ Text: {
623
+ Text: string;
624
+ Html: string;
625
+ };
626
+ IsDisplayed: boolean;
627
+ }, {
628
+ Text: {
629
+ Text: string;
630
+ Html: string;
631
+ };
632
+ IsDisplayed: boolean;
633
+ }>;
634
+ Description: z.ZodObject<{
635
+ Text: z.ZodObject<{
636
+ Text: z.ZodString;
637
+ Html: z.ZodString;
638
+ }, "strip", z.ZodTypeAny, {
639
+ Text: string;
640
+ Html: string;
641
+ }, {
642
+ Text: string;
643
+ Html: string;
644
+ }>;
645
+ IsDisplayed: z.ZodBoolean;
646
+ }, "strip", z.ZodTypeAny, {
647
+ Text: {
648
+ Text: string;
649
+ Html: string;
650
+ };
651
+ IsDisplayed: boolean;
652
+ }, {
653
+ Text: {
654
+ Text: string;
655
+ Html: string;
656
+ };
657
+ IsDisplayed: boolean;
658
+ }>;
659
+ StartDate: z.ZodDate;
660
+ EndDate: z.ZodDate;
661
+ DueDate: z.ZodNullable<z.ZodDate>;
662
+ SortOrder: z.ZodNumber;
663
+ SubmissionTimeLimit: z.ZodObject<{
664
+ IsEnforced: z.ZodBoolean;
665
+ ShowClock: z.ZodBoolean;
666
+ TimeLimitValue: z.ZodNumber;
667
+ }, "strip", z.ZodTypeAny, {
668
+ IsEnforced: boolean;
669
+ ShowClock: boolean;
670
+ TimeLimitValue: number;
671
+ }, {
672
+ IsEnforced: boolean;
673
+ ShowClock: boolean;
674
+ TimeLimitValue: number;
675
+ }>;
676
+ AttemptsAllowed: z.ZodObject<{
677
+ IsUnlimited: z.ZodBoolean;
678
+ NumberOfAttemptsAllowed: z.ZodNullable<z.ZodNumber>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ IsUnlimited: boolean;
681
+ NumberOfAttemptsAllowed: number | null;
682
+ }, {
683
+ IsUnlimited: boolean;
684
+ NumberOfAttemptsAllowed: number | null;
685
+ }>;
686
+ CalcTypeId: z.ZodNumber;
687
+ Shuffle: z.ZodBoolean;
688
+ }, "strip", z.ZodTypeAny, {
689
+ Name: string;
690
+ Description: {
691
+ Text: {
692
+ Text: string;
693
+ Html: string;
694
+ };
695
+ IsDisplayed: boolean;
696
+ };
697
+ SortOrder: number;
698
+ DueDate: Date | null;
699
+ StartDate: Date;
700
+ EndDate: Date;
701
+ QuizId: number;
702
+ Instructions: {
703
+ Text: {
704
+ Text: string;
705
+ Html: string;
706
+ };
707
+ IsDisplayed: boolean;
708
+ };
709
+ SubmissionTimeLimit: {
710
+ IsEnforced: boolean;
711
+ ShowClock: boolean;
712
+ TimeLimitValue: number;
713
+ };
714
+ AttemptsAllowed: {
715
+ IsUnlimited: boolean;
716
+ NumberOfAttemptsAllowed: number | null;
717
+ };
718
+ CalcTypeId: number;
719
+ Shuffle: boolean;
720
+ }, {
721
+ Name: string;
722
+ Description: {
723
+ Text: {
724
+ Text: string;
725
+ Html: string;
726
+ };
727
+ IsDisplayed: boolean;
728
+ };
729
+ SortOrder: number;
730
+ DueDate: Date | null;
731
+ StartDate: Date;
732
+ EndDate: Date;
733
+ QuizId: number;
734
+ Instructions: {
735
+ Text: {
736
+ Text: string;
737
+ Html: string;
738
+ };
739
+ IsDisplayed: boolean;
740
+ };
741
+ SubmissionTimeLimit: {
742
+ IsEnforced: boolean;
743
+ ShowClock: boolean;
744
+ TimeLimitValue: number;
745
+ };
746
+ AttemptsAllowed: {
747
+ IsUnlimited: boolean;
748
+ NumberOfAttemptsAllowed: number | null;
749
+ };
750
+ CalcTypeId: number;
751
+ Shuffle: boolean;
752
+ }>;
753
+ export type QuizReadData = z.infer<typeof quizReadData>;
754
+ /**
755
+ * Wraps a schema in an
756
+ * [ObjectListPage](https://docs.valence.desire2learn.com/basic/apicall.html#Api.ObjectListPage).
757
+ */
758
+ export declare function objectListPage<T extends z.ZodTypeAny>(s: T): z.ZodObject<{
759
+ Next: z.ZodNullable<z.ZodString>;
760
+ Objects: z.ZodArray<T, "many">;
761
+ }, "strip", z.ZodTypeAny, {
762
+ Next: string | null;
763
+ Objects: T["_output"][];
764
+ }, {
765
+ Next: string | null;
766
+ Objects: T["_input"][];
767
+ }>;
768
+ export type ObjectListPage<T> = {
769
+ Next: string | null;
770
+ Objects: T[];
771
+ };
772
+ /**
773
+ * Wraps a schema in a
774
+ * [PagedResultSet](https://docs.valence.desire2learn.com/basic/apicall.html#Api.PagedResultSet).
775
+ */
776
+ export declare function pagedResultSet<T extends z.ZodTypeAny>(s: T): z.ZodObject<{
777
+ PagingInfo: z.ZodObject<{
778
+ Bookmark: z.ZodString;
779
+ HasMoreItems: z.ZodBoolean;
780
+ }, "strip", z.ZodTypeAny, {
781
+ Bookmark: string;
782
+ HasMoreItems: boolean;
783
+ }, {
784
+ Bookmark: string;
785
+ HasMoreItems: boolean;
786
+ }>;
787
+ Items: z.ZodArray<T, "many">;
788
+ }, "strip", z.ZodTypeAny, {
789
+ PagingInfo: {
790
+ Bookmark: string;
791
+ HasMoreItems: boolean;
792
+ };
793
+ Items: T["_output"][];
794
+ }, {
795
+ PagingInfo: {
796
+ Bookmark: string;
797
+ HasMoreItems: boolean;
798
+ };
799
+ Items: T["_input"][];
800
+ }>;
801
+ export type PagedResultSet<T> = {
802
+ PagingInfo: {
803
+ Bookmark: string;
804
+ HasMoreItems: boolean;
805
+ };
806
+ Items: T[];
807
+ };
808
+ export {};
809
+ //# sourceMappingURL=polite.d.ts.map