@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.
- package/dist/document.types.d.ts +27 -13
- package/dist/index.d.ts +3 -2
- package/dist/models/CreateWorkshopDto.d.ts +2 -2
- package/dist/models/CreateWorkshopPageDto.d.ts +12 -0
- package/dist/models/PageParamsDto.d.ts +2 -2
- package/dist/models/UpdateWorkshopDto.d.ts +2 -2
- package/dist/models/WorkshopDto.d.ts +2 -2
- package/dist/models/{WorkshopDocumentDto.d.ts → WorkshopPageDto.d.ts} +1 -1
- package/dist/models/{WorkshopDocumentIdentifierDto.d.ts → WorkshopPageIdentifierDto.d.ts} +3 -3
- package/dist/models/WorkshopPageIdentifierDto.js +1 -0
- package/package.json +1 -1
- /package/dist/models/{WorkshopDocumentDto.js → CreateWorkshopPageDto.js} +0 -0
- /package/dist/models/{WorkshopDocumentIdentifierDto.js → WorkshopPageDto.js} +0 -0
package/dist/document.types.d.ts
CHANGED
|
@@ -245,10 +245,10 @@ export interface components {
|
|
|
245
245
|
};
|
|
246
246
|
};
|
|
247
247
|
Workshop: Record<string, never>;
|
|
248
|
-
|
|
249
|
-
/** @description Object id of the workshop-
|
|
248
|
+
WorkshopPageIdentifierDto: {
|
|
249
|
+
/** @description Object id of the workshop-page. */
|
|
250
250
|
_id: string;
|
|
251
|
-
/** @description Display name of the workshop-
|
|
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"]["
|
|
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"]["
|
|
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
|
-
|
|
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"]["
|
|
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"]["
|
|
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"]["
|
|
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"]["
|
|
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"]["
|
|
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"]["
|
|
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"]["
|
|
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 {
|
|
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<
|
|
10
|
+
workshopDocuments?: Array<WorkshopPageIdentifierDto>;
|
|
11
11
|
workshopDocumentsLastUpdated?: string;
|
|
12
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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<
|
|
10
|
+
workshopDocuments?: Array<WorkshopPageIdentifierDto>;
|
|
11
11
|
workshopDocumentsLastUpdated?: string;
|
|
12
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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<
|
|
10
|
+
workshopDocuments: Array<WorkshopPageIdentifierDto>;
|
|
11
11
|
workshopDocumentsLastUpdated: string;
|
|
12
12
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type WorkshopPageIdentifierDto = {
|
|
2
2
|
/**
|
|
3
|
-
* Object id of the workshop-
|
|
3
|
+
* Object id of the workshop-page.
|
|
4
4
|
*/
|
|
5
5
|
_id: string;
|
|
6
6
|
/**
|
|
7
|
-
* Display name of the workshop-
|
|
7
|
+
* Display name of the workshop-page.
|
|
8
8
|
*/
|
|
9
9
|
name: string;
|
|
10
10
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|