@brightoutcome/guidistry-client 0.3.0 → 0.4.0

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 (2) hide show
  1. package/dist/schema.d.ts +195 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -185,6 +185,40 @@ export interface paths {
185
185
  patch?: never;
186
186
  trace?: never;
187
187
  };
188
+ "/v1/courses/{course_id}/guides/facilitator": {
189
+ parameters: {
190
+ query?: never;
191
+ header?: never;
192
+ path?: never;
193
+ cookie?: never;
194
+ };
195
+ /** A template's facilitator guide (staff only) */
196
+ get: operations["get_facilitator_guide_v1_courses__course_id__guides_facilitator_get"];
197
+ put?: never;
198
+ post?: never;
199
+ delete?: never;
200
+ options?: never;
201
+ head?: never;
202
+ patch?: never;
203
+ trace?: never;
204
+ };
205
+ "/v1/courses/{course_id}/guides/facilitator/{doc_id}": {
206
+ parameters: {
207
+ query?: never;
208
+ header?: never;
209
+ path?: never;
210
+ cookie?: never;
211
+ };
212
+ /** One document of a facilitator guide, with its body (staff only) */
213
+ get: operations["get_facilitator_document_v1_courses__course_id__guides_facilitator__doc_id__get"];
214
+ put?: never;
215
+ post?: never;
216
+ delete?: never;
217
+ options?: never;
218
+ head?: never;
219
+ patch?: never;
220
+ trace?: never;
221
+ };
188
222
  "/v1/courses/{course_id}/items": {
189
223
  parameters: {
190
224
  query?: never;
@@ -983,6 +1017,91 @@ export interface components {
983
1017
  /** Starts At */
984
1018
  starts_at: string | null;
985
1019
  };
1020
+ /** GuideDocumentInfo */
1021
+ GuideDocumentInfo: {
1022
+ /** Audience */
1023
+ audience: string | null;
1024
+ /** Id */
1025
+ id: string;
1026
+ /** Parts */
1027
+ parts: components["schemas"]["GuidePartOut"][];
1028
+ /**
1029
+ * Pdf Url
1030
+ * @description Short-lived link to the whole document's PDF
1031
+ */
1032
+ pdf_url: string | null;
1033
+ /** Summary */
1034
+ summary: string | null;
1035
+ /** Title */
1036
+ title: string;
1037
+ };
1038
+ /** GuideDocumentOut */
1039
+ GuideDocumentOut: {
1040
+ /** Audience */
1041
+ audience: string | null;
1042
+ /**
1043
+ * Body
1044
+ * @description The document as written (sections, agenda, …)
1045
+ */
1046
+ body: {
1047
+ [key: string]: unknown;
1048
+ };
1049
+ /** Id */
1050
+ id: string;
1051
+ /** Parts */
1052
+ parts: components["schemas"]["GuidePartOut"][];
1053
+ /**
1054
+ * Pdf Url
1055
+ * @description Short-lived link to the whole document's PDF
1056
+ */
1057
+ pdf_url: string | null;
1058
+ /** Summary */
1059
+ summary: string | null;
1060
+ /** Title */
1061
+ title: string;
1062
+ };
1063
+ /**
1064
+ * GuideOut
1065
+ * @description A template's facilitator guide: staff only.
1066
+ */
1067
+ GuideOut: {
1068
+ /**
1069
+ * Applies To
1070
+ * @description Tags: which versions it's for
1071
+ */
1072
+ applies_to: {
1073
+ [key: string]: unknown;
1074
+ } | null;
1075
+ /** Documents */
1076
+ documents: components["schemas"]["GuideDocumentInfo"][];
1077
+ /** Edition */
1078
+ edition: string | null;
1079
+ /** Kind */
1080
+ kind: string;
1081
+ /** Language */
1082
+ language: string;
1083
+ /**
1084
+ * Published At
1085
+ * Format: date-time
1086
+ */
1087
+ published_at: string;
1088
+ /** Revision */
1089
+ revision: number;
1090
+ /** Title */
1091
+ title: string;
1092
+ };
1093
+ /** GuidePartOut */
1094
+ GuidePartOut: {
1095
+ /** Module Key */
1096
+ module_key: string | null;
1097
+ /** Module Number */
1098
+ module_number: number;
1099
+ /**
1100
+ * Pdf Url
1101
+ * @description Short-lived link to this part's PDF
1102
+ */
1103
+ pdf_url: string | null;
1104
+ };
986
1105
  /** HTTPValidationError */
987
1106
  HTTPValidationError: {
988
1107
  /** Detail */
@@ -2356,6 +2475,82 @@ export interface operations {
2356
2475
  };
2357
2476
  };
2358
2477
  };
2478
+ get_facilitator_guide_v1_courses__course_id__guides_facilitator_get: {
2479
+ parameters: {
2480
+ query?: {
2481
+ /** @description 404 if the guide isn't for this version */
2482
+ version?: string | null;
2483
+ language?: string | null;
2484
+ };
2485
+ header?: {
2486
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2487
+ "X-Guidistry-Context"?: string | null;
2488
+ };
2489
+ path: {
2490
+ course_id: string;
2491
+ };
2492
+ cookie?: never;
2493
+ };
2494
+ requestBody?: never;
2495
+ responses: {
2496
+ /** @description Successful Response */
2497
+ 200: {
2498
+ headers: {
2499
+ [name: string]: unknown;
2500
+ };
2501
+ content: {
2502
+ "application/json": components["schemas"]["GuideOut"];
2503
+ };
2504
+ };
2505
+ /** @description Validation Error */
2506
+ 422: {
2507
+ headers: {
2508
+ [name: string]: unknown;
2509
+ };
2510
+ content: {
2511
+ "application/json": components["schemas"]["HTTPValidationError"];
2512
+ };
2513
+ };
2514
+ };
2515
+ };
2516
+ get_facilitator_document_v1_courses__course_id__guides_facilitator__doc_id__get: {
2517
+ parameters: {
2518
+ query?: {
2519
+ version?: string | null;
2520
+ language?: string | null;
2521
+ };
2522
+ header?: {
2523
+ /** @description Membership the caller is acting through (from GET /v1/me) */
2524
+ "X-Guidistry-Context"?: string | null;
2525
+ };
2526
+ path: {
2527
+ course_id: string;
2528
+ doc_id: string;
2529
+ };
2530
+ cookie?: never;
2531
+ };
2532
+ requestBody?: never;
2533
+ responses: {
2534
+ /** @description Successful Response */
2535
+ 200: {
2536
+ headers: {
2537
+ [name: string]: unknown;
2538
+ };
2539
+ content: {
2540
+ "application/json": components["schemas"]["GuideDocumentOut"];
2541
+ };
2542
+ };
2543
+ /** @description Validation Error */
2544
+ 422: {
2545
+ headers: {
2546
+ [name: string]: unknown;
2547
+ };
2548
+ content: {
2549
+ "application/json": components["schemas"]["HTTPValidationError"];
2550
+ };
2551
+ };
2552
+ };
2553
+ };
2359
2554
  list_items_v1_courses__course_id__items_get: {
2360
2555
  parameters: {
2361
2556
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightoutcome/guidistry-client",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Typed client and sign-in helpers for the Guidistry API",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",