@tmdjr/document-contracts 0.0.14 → 0.0.16

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,21 @@ export interface components {
285
285
  acknowledged: boolean;
286
286
  deletedCount: number;
287
287
  };
288
- WorkshopDocumentDto: {
288
+ CreateWorkshopPageDto: {
289
+ workshopId: string;
290
+ workshopGroupId: string;
291
+ /** @default Page */
292
+ name: string;
293
+ /** @default 0 */
294
+ sortId: number;
295
+ /** @default PAGE */
296
+ pageType: string;
297
+ /** Format: date-time */
298
+ lastUpdated?: string;
299
+ /** @description Serialized JSON of the document blocks */
300
+ html?: string;
301
+ };
302
+ WorkshopPageDto: {
289
303
  _id: string;
290
304
  workshopGroupId: string;
291
305
  /** @default Page */
@@ -301,7 +315,7 @@ export interface components {
301
315
  __v: number;
302
316
  };
303
317
  PageParamsDto: {
304
- page: components["schemas"]["WorkshopDocumentDto"];
318
+ page: components["schemas"]["WorkshopPageDto"];
305
319
  workshopId: string;
306
320
  };
307
321
  WorkshopDto: {
@@ -314,7 +328,7 @@ export interface components {
314
328
  summary: string;
315
329
  /** @default https://via.placeholder.com/250/400 */
316
330
  thumbnail: string;
317
- workshopDocuments: components["schemas"]["WorkshopDocumentIdentifierDto"][];
331
+ workshopDocuments: components["schemas"]["WorkshopPageIdentifierDto"][];
318
332
  /** Format: date-time */
319
333
  workshopDocumentsLastUpdated: string;
320
334
  };
@@ -464,7 +478,7 @@ export interface operations {
464
478
  };
465
479
  requestBody: {
466
480
  content: {
467
- "application/json": components["schemas"]["PageParamsDto"];
481
+ "application/json": components["schemas"]["CreateWorkshopPageDto"];
468
482
  };
469
483
  };
470
484
  responses: {
@@ -510,7 +524,7 @@ export interface operations {
510
524
  };
511
525
  requestBody: {
512
526
  content: {
513
- "application/json": components["schemas"]["WorkshopDocumentDto"];
527
+ "application/json": components["schemas"]["WorkshopPageDto"];
514
528
  };
515
529
  };
516
530
  responses: {
@@ -580,7 +594,7 @@ export interface operations {
580
594
  [name: string]: unknown;
581
595
  };
582
596
  content: {
583
- "application/json": components["schemas"]["WorkshopDocumentDto"][];
597
+ "application/json": components["schemas"]["WorkshopPageDto"][];
584
598
  };
585
599
  };
586
600
  };
@@ -599,7 +613,7 @@ export interface operations {
599
613
  [name: string]: unknown;
600
614
  };
601
615
  content: {
602
- "application/json": components["schemas"]["WorkshopDocumentDto"];
616
+ "application/json": components["schemas"]["WorkshopPageDto"];
603
617
  };
604
618
  };
605
619
  };
@@ -618,7 +632,7 @@ export interface operations {
618
632
  [name: string]: unknown;
619
633
  };
620
634
  content: {
621
- "application/json": components["schemas"]["WorkshopDocumentDto"];
635
+ "application/json": components["schemas"]["WorkshopPageDto"];
622
636
  };
623
637
  };
624
638
  };
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,12 @@
1
+ export type CreateWorkshopPageDto = {
2
+ workshopId: string;
3
+ workshopGroupId: string;
4
+ name?: string;
5
+ sortId?: number;
6
+ pageType?: string;
7
+ lastUpdated?: string;
8
+ /**
9
+ * Serialized JSON of the document blocks
10
+ */
11
+ html?: string;
12
+ };
@@ -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.16",
4
4
  "description": "Types & runtime enums generated from NGX document spec",
5
5
  "license": "MIT",
6
6
  "private": false,