@tmdjr/document-contracts 0.0.14 → 0.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.
@@ -245,10 +245,10 @@ export interface components {
245
245
  };
246
246
  };
247
247
  Workshop: Record<string, never>;
248
- WorkshopDocumentIdentifierDto: {
249
- /** @description Object id of the workshop-document. */
248
+ WorkshopPageIdentifierDto: {
249
+ /** @description Object id of the workshop-page. */
250
250
  _id: string;
251
- /** @description Display name of the workshop-document. */
251
+ /** @description Display name of the workshop-page. */
252
252
  name: string;
253
253
  /** @description Position of the doc item in the section's list */
254
254
  sortId: number;
@@ -263,7 +263,7 @@ export interface components {
263
263
  summary: string;
264
264
  /** @default https://via.placeholder.com/250/400 */
265
265
  thumbnail: string;
266
- workshopDocuments?: components["schemas"]["WorkshopDocumentIdentifierDto"][];
266
+ workshopDocuments?: components["schemas"]["WorkshopPageIdentifierDto"][];
267
267
  /** Format: date-time */
268
268
  workshopDocumentsLastUpdated?: string;
269
269
  };
@@ -277,7 +277,7 @@ export interface components {
277
277
  summary?: string;
278
278
  /** @default https://via.placeholder.com/250/400 */
279
279
  thumbnail: string;
280
- workshopDocuments?: components["schemas"]["WorkshopDocumentIdentifierDto"][];
280
+ workshopDocuments?: components["schemas"]["WorkshopPageIdentifierDto"][];
281
281
  /** Format: date-time */
282
282
  workshopDocumentsLastUpdated?: string;
283
283
  };
@@ -285,7 +285,20 @@ export interface components {
285
285
  acknowledged: boolean;
286
286
  deletedCount: number;
287
287
  };
288
- WorkshopDocumentDto: {
288
+ CreateWorkshopPageDto: {
289
+ workshopGroupId: string;
290
+ /** @default Page */
291
+ name: string;
292
+ /** @default 0 */
293
+ sortId: number;
294
+ /** @default PAGE */
295
+ pageType: string;
296
+ /** Format: date-time */
297
+ lastUpdated?: string;
298
+ /** @description Serialized JSON of the document blocks */
299
+ html?: string;
300
+ };
301
+ WorkshopPageDto: {
289
302
  _id: string;
290
303
  workshopGroupId: string;
291
304
  /** @default Page */
@@ -301,7 +314,7 @@ export interface components {
301
314
  __v: number;
302
315
  };
303
316
  PageParamsDto: {
304
- page: components["schemas"]["WorkshopDocumentDto"];
317
+ page: components["schemas"]["WorkshopPageDto"];
305
318
  workshopId: string;
306
319
  };
307
320
  WorkshopDto: {
@@ -314,7 +327,7 @@ export interface components {
314
327
  summary: string;
315
328
  /** @default https://via.placeholder.com/250/400 */
316
329
  thumbnail: string;
317
- workshopDocuments: components["schemas"]["WorkshopDocumentIdentifierDto"][];
330
+ workshopDocuments: components["schemas"]["WorkshopPageIdentifierDto"][];
318
331
  /** Format: date-time */
319
332
  workshopDocumentsLastUpdated: string;
320
333
  };
@@ -464,7 +477,7 @@ export interface operations {
464
477
  };
465
478
  requestBody: {
466
479
  content: {
467
- "application/json": components["schemas"]["PageParamsDto"];
480
+ "application/json": components["schemas"]["CreateWorkshopPageDto"];
468
481
  };
469
482
  };
470
483
  responses: {
@@ -510,7 +523,7 @@ export interface operations {
510
523
  };
511
524
  requestBody: {
512
525
  content: {
513
- "application/json": components["schemas"]["WorkshopDocumentDto"];
526
+ "application/json": components["schemas"]["WorkshopPageDto"];
514
527
  };
515
528
  };
516
529
  responses: {
@@ -580,7 +593,7 @@ export interface operations {
580
593
  [name: string]: unknown;
581
594
  };
582
595
  content: {
583
- "application/json": components["schemas"]["WorkshopDocumentDto"][];
596
+ "application/json": components["schemas"]["WorkshopPageDto"][];
584
597
  };
585
598
  };
586
599
  };
@@ -599,7 +612,7 @@ export interface operations {
599
612
  [name: string]: unknown;
600
613
  };
601
614
  content: {
602
- "application/json": components["schemas"]["WorkshopDocumentDto"];
615
+ "application/json": components["schemas"]["WorkshopPageDto"];
603
616
  };
604
617
  };
605
618
  };
@@ -618,7 +631,7 @@ export interface operations {
618
631
  [name: string]: unknown;
619
632
  };
620
633
  content: {
621
- "application/json": components["schemas"]["WorkshopDocumentDto"];
634
+ "application/json": components["schemas"]["WorkshopPageDto"];
622
635
  };
623
636
  };
624
637
  };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  export type { CreateWorkshopDto } from './models/CreateWorkshopDto';
2
+ export type { CreateWorkshopPageDto } from './models/CreateWorkshopPageDto';
2
3
  export type { DeleteResultDto } from './models/DeleteResultDto';
3
4
  export type { PageParamsDto } from './models/PageParamsDto';
4
5
  export type { SectionDto } from './models/SectionDto';
5
6
  export type { SectionsMapDto } from './models/SectionsMapDto';
6
7
  export type { UpdateWorkshopDto } from './models/UpdateWorkshopDto';
7
8
  export type { Workshop } from './models/Workshop';
8
- export type { WorkshopDocumentDto } from './models/WorkshopDocumentDto';
9
- export type { WorkshopDocumentIdentifierDto } from './models/WorkshopDocumentIdentifierDto';
10
9
  export type { WorkshopDto } from './models/WorkshopDto';
10
+ export type { WorkshopPageDto } from './models/WorkshopPageDto';
11
+ export type { WorkshopPageIdentifierDto } from './models/WorkshopPageIdentifierDto';
@@ -1,4 +1,4 @@
1
- import type { WorkshopDocumentIdentifierDto } from './WorkshopDocumentIdentifierDto';
1
+ import type { WorkshopPageIdentifierDto } from './WorkshopPageIdentifierDto';
2
2
  export type CreateWorkshopDto = {
3
3
  _id: string;
4
4
  sectionId: string;
@@ -7,6 +7,6 @@ export type CreateWorkshopDto = {
7
7
  name: string;
8
8
  summary: string;
9
9
  thumbnail?: string;
10
- workshopDocuments?: Array<WorkshopDocumentIdentifierDto>;
10
+ workshopDocuments?: Array<WorkshopPageIdentifierDto>;
11
11
  workshopDocumentsLastUpdated?: string;
12
12
  };
@@ -0,0 +1,11 @@
1
+ export type CreateWorkshopPageDto = {
2
+ workshopGroupId: string;
3
+ name?: string;
4
+ sortId?: number;
5
+ pageType?: string;
6
+ lastUpdated?: string;
7
+ /**
8
+ * Serialized JSON of the document blocks
9
+ */
10
+ html?: string;
11
+ };
@@ -1,5 +1,5 @@
1
- import type { WorkshopDocumentDto } from './WorkshopDocumentDto';
1
+ import type { WorkshopPageDto } from './WorkshopPageDto';
2
2
  export type PageParamsDto = {
3
- page: WorkshopDocumentDto;
3
+ page: WorkshopPageDto;
4
4
  workshopId: string;
5
5
  };
@@ -1,4 +1,4 @@
1
- import type { WorkshopDocumentIdentifierDto } from './WorkshopDocumentIdentifierDto';
1
+ import type { WorkshopPageIdentifierDto } from './WorkshopPageIdentifierDto';
2
2
  export type UpdateWorkshopDto = {
3
3
  _id?: string;
4
4
  sectionId?: string;
@@ -7,6 +7,6 @@ export type UpdateWorkshopDto = {
7
7
  name?: string;
8
8
  summary?: string;
9
9
  thumbnail?: string;
10
- workshopDocuments?: Array<WorkshopDocumentIdentifierDto>;
10
+ workshopDocuments?: Array<WorkshopPageIdentifierDto>;
11
11
  workshopDocumentsLastUpdated?: string;
12
12
  };
@@ -1,4 +1,4 @@
1
- import type { WorkshopDocumentIdentifierDto } from './WorkshopDocumentIdentifierDto';
1
+ import type { WorkshopPageIdentifierDto } from './WorkshopPageIdentifierDto';
2
2
  export type WorkshopDto = {
3
3
  _id: string;
4
4
  workshopDocumentGroupId: string;
@@ -7,6 +7,6 @@ export type WorkshopDto = {
7
7
  name: string;
8
8
  summary: string;
9
9
  thumbnail: string;
10
- workshopDocuments: Array<WorkshopDocumentIdentifierDto>;
10
+ workshopDocuments: Array<WorkshopPageIdentifierDto>;
11
11
  workshopDocumentsLastUpdated: string;
12
12
  };
@@ -1,4 +1,4 @@
1
- export type WorkshopDocumentDto = {
1
+ export type WorkshopPageDto = {
2
2
  _id: string;
3
3
  workshopGroupId: string;
4
4
  name: string;
@@ -1,10 +1,10 @@
1
- export type WorkshopDocumentIdentifierDto = {
1
+ export type WorkshopPageIdentifierDto = {
2
2
  /**
3
- * Object id of the workshop-document.
3
+ * Object id of the workshop-page.
4
4
  */
5
5
  _id: string;
6
6
  /**
7
- * Display name of the workshop-document.
7
+ * Display name of the workshop-page.
8
8
  */
9
9
  name: string;
10
10
  /**
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmdjr/document-contracts",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Types & runtime enums generated from NGX document spec",
5
5
  "license": "MIT",
6
6
  "private": false,