@purpleschool/student-works 1.5.6 → 1.5.7
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/build/commands/presentation/export-presentation-as-pptx.command.d.ts +17 -0
- package/build/commands/presentation/export-presentation-as-pptx.command.d.ts.map +1 -1
- package/build/commands/presentation/update-presentation-slides.command.d.ts +12 -12
- package/build/commands/presentation/update-slide.command.d.ts +24 -24
- package/build/models/presentation/pptx-export-payload.schema.d.ts +71 -0
- package/build/models/presentation/pptx-export-payload.schema.d.ts.map +1 -1
- package/build/models/presentation/pptx-export-payload.schema.js +28 -1
- package/build/models/presentation/slide-content-edit.schema.d.ts +24 -24
- package/build/models/presentation/slide-content-edit.schema.d.ts.map +1 -1
- package/build/models/presentation/slide-content-edit.schema.js +24 -12
- package/build/models/presentation/slide.schema.d.ts +24 -24
- package/models/presentation/pptx-export-payload.schema.ts +29 -0
- package/models/presentation/slide-content-edit.schema.ts +36 -24
- package/package.json +1 -1
|
@@ -51,6 +51,23 @@ export declare namespace ExportPresentationAsPptxCommand {
|
|
|
51
51
|
}, z.core.$strip>, z.ZodObject<{
|
|
52
52
|
path: z.ZodString;
|
|
53
53
|
}, z.core.$strip>]>;
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
+
type: z.ZodLiteral<import("../..").PPTX_SHAPE_TYPE.ICON_BOX>;
|
|
56
|
+
position: z.ZodObject<{
|
|
57
|
+
height: z.ZodNumber;
|
|
58
|
+
width: z.ZodNumber;
|
|
59
|
+
top: z.ZodNumber;
|
|
60
|
+
left: z.ZodNumber;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
63
|
+
path: z.ZodString;
|
|
64
|
+
color: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
+
svg: z.ZodString;
|
|
67
|
+
color: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
base64: z.ZodString;
|
|
70
|
+
}, z.core.$strip>]>;
|
|
54
71
|
}, z.core.$strip>, z.ZodObject<{
|
|
55
72
|
type: z.ZodLiteral<import("../..").PPTX_SHAPE_TYPE.CUSTOM_SHAPE>;
|
|
56
73
|
customShapeType: z.ZodOptional<z.ZodEnum<typeof import("../..").PPTX_CUSTOM_SHAPE_TYPE>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-presentation-as-pptx.command.d.ts","sourceRoot":"","sources":["../../../commands/presentation/export-presentation-as-pptx.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"export-presentation-as-pptx.command.d.ts","sourceRoot":"","sources":["../../../commands/presentation/export-presentation-as-pptx.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA0B,CAAC;IACrD,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,mBAAmB;;qBAE9B,CAAC;IACH,KAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAEzD,MAAM,cAAc;;;;qBAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -10,18 +10,18 @@ export declare namespace UpdatePresentationSlidesCommand {
|
|
|
10
10
|
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
11
|
contentType: z.ZodLiteral<import("../..").SLIDE_CONTENT_TYPE.COVER>;
|
|
12
12
|
title: z.ZodString;
|
|
13
|
-
author: z.ZodObject<{
|
|
13
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
14
14
|
label: z.ZodString;
|
|
15
15
|
value: z.ZodString;
|
|
16
|
-
}, z.core.$strip
|
|
17
|
-
date: z.ZodObject<{
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
18
18
|
label: z.ZodString;
|
|
19
19
|
value: z.ZodString;
|
|
20
|
-
}, z.core.$strip
|
|
21
|
-
email: z.ZodObject<{
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
22
22
|
label: z.ZodString;
|
|
23
23
|
value: z.ZodString;
|
|
24
|
-
}, z.core.$strip
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
25
|
version: z.ZodLiteral<1>;
|
|
26
26
|
}, z.core.$strip>, z.ZodObject<{
|
|
27
27
|
contentType: z.ZodLiteral<import("../..").SLIDE_CONTENT_TYPE.STRUCTURED_LIST>;
|
|
@@ -76,18 +76,18 @@ export declare namespace UpdatePresentationSlidesCommand {
|
|
|
76
76
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
77
|
contentType: z.ZodLiteral<import("../..").SLIDE_CONTENT_TYPE.THANK_YOU>;
|
|
78
78
|
title: z.ZodString;
|
|
79
|
-
author: z.ZodObject<{
|
|
79
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
80
80
|
label: z.ZodString;
|
|
81
81
|
value: z.ZodString;
|
|
82
|
-
}, z.core.$strip
|
|
83
|
-
date: z.ZodObject<{
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
84
84
|
label: z.ZodString;
|
|
85
85
|
value: z.ZodString;
|
|
86
|
-
}, z.core.$strip
|
|
87
|
-
email: z.ZodObject<{
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
88
88
|
label: z.ZodString;
|
|
89
89
|
value: z.ZodString;
|
|
90
|
-
}, z.core.$strip
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
91
|
version: z.ZodLiteral<1>;
|
|
92
92
|
}, z.core.$strip>, z.ZodObject<{
|
|
93
93
|
contentType: z.ZodLiteral<import("../..").SLIDE_CONTENT_TYPE.TABLE>;
|
|
@@ -10,18 +10,18 @@ export declare namespace UpdateSlideCommand {
|
|
|
10
10
|
content: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
11
|
contentType: z.ZodLiteral<import("../..").SLIDE_CONTENT_TYPE.COVER>;
|
|
12
12
|
title: z.ZodString;
|
|
13
|
-
author: z.ZodObject<{
|
|
13
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
14
14
|
label: z.ZodString;
|
|
15
15
|
value: z.ZodString;
|
|
16
|
-
}, z.core.$strip
|
|
17
|
-
date: z.ZodObject<{
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
18
18
|
label: z.ZodString;
|
|
19
19
|
value: z.ZodString;
|
|
20
|
-
}, z.core.$strip
|
|
21
|
-
email: z.ZodObject<{
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
22
22
|
label: z.ZodString;
|
|
23
23
|
value: z.ZodString;
|
|
24
|
-
}, z.core.$strip
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
25
|
version: z.ZodLiteral<1>;
|
|
26
26
|
}, z.core.$strip>, z.ZodObject<{
|
|
27
27
|
contentType: z.ZodLiteral<import("../..").SLIDE_CONTENT_TYPE.STRUCTURED_LIST>;
|
|
@@ -76,18 +76,18 @@ export declare namespace UpdateSlideCommand {
|
|
|
76
76
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
77
|
contentType: z.ZodLiteral<import("../..").SLIDE_CONTENT_TYPE.THANK_YOU>;
|
|
78
78
|
title: z.ZodString;
|
|
79
|
-
author: z.ZodObject<{
|
|
79
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
80
80
|
label: z.ZodString;
|
|
81
81
|
value: z.ZodString;
|
|
82
|
-
}, z.core.$strip
|
|
83
|
-
date: z.ZodObject<{
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
84
84
|
label: z.ZodString;
|
|
85
85
|
value: z.ZodString;
|
|
86
|
-
}, z.core.$strip
|
|
87
|
-
email: z.ZodObject<{
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
88
88
|
label: z.ZodString;
|
|
89
89
|
value: z.ZodString;
|
|
90
|
-
}, z.core.$strip
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
91
|
version: z.ZodLiteral<1>;
|
|
92
92
|
}, z.core.$strip>, z.ZodObject<{
|
|
93
93
|
contentType: z.ZodLiteral<import("../..").SLIDE_CONTENT_TYPE.TABLE>;
|
|
@@ -140,18 +140,18 @@ export declare namespace UpdateSlideCommand {
|
|
|
140
140
|
content: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
141
141
|
contentType: z.ZodLiteral<import("../..").SLIDE_CONTENT_TYPE.COVER>;
|
|
142
142
|
title: z.ZodString;
|
|
143
|
-
author: z.ZodObject<{
|
|
143
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
144
144
|
label: z.ZodString;
|
|
145
145
|
value: z.ZodString;
|
|
146
|
-
}, z.core.$strip
|
|
147
|
-
date: z.ZodObject<{
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
148
148
|
label: z.ZodString;
|
|
149
149
|
value: z.ZodString;
|
|
150
|
-
}, z.core.$strip
|
|
151
|
-
email: z.ZodObject<{
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
152
152
|
label: z.ZodString;
|
|
153
153
|
value: z.ZodString;
|
|
154
|
-
}, z.core.$strip
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
155
|
version: z.ZodLiteral<1>;
|
|
156
156
|
}, z.core.$strip>, z.ZodObject<{
|
|
157
157
|
contentType: z.ZodLiteral<import("../..").SLIDE_CONTENT_TYPE.STRUCTURED_LIST>;
|
|
@@ -206,18 +206,18 @@ export declare namespace UpdateSlideCommand {
|
|
|
206
206
|
}, z.core.$strip>, z.ZodObject<{
|
|
207
207
|
contentType: z.ZodLiteral<import("../..").SLIDE_CONTENT_TYPE.THANK_YOU>;
|
|
208
208
|
title: z.ZodString;
|
|
209
|
-
author: z.ZodObject<{
|
|
209
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
210
210
|
label: z.ZodString;
|
|
211
211
|
value: z.ZodString;
|
|
212
|
-
}, z.core.$strip
|
|
213
|
-
date: z.ZodObject<{
|
|
212
|
+
}, z.core.$strip>>;
|
|
213
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
214
214
|
label: z.ZodString;
|
|
215
215
|
value: z.ZodString;
|
|
216
|
-
}, z.core.$strip
|
|
217
|
-
email: z.ZodObject<{
|
|
216
|
+
}, z.core.$strip>>;
|
|
217
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
218
218
|
label: z.ZodString;
|
|
219
219
|
value: z.ZodString;
|
|
220
|
-
}, z.core.$strip
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
221
|
version: z.ZodLiteral<1>;
|
|
222
222
|
}, z.core.$strip>, z.ZodObject<{
|
|
223
223
|
contentType: z.ZodLiteral<import("../..").SLIDE_CONTENT_TYPE.TABLE>;
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare enum PPTX_SHAPE_TYPE {
|
|
3
3
|
TEXT_BOX = "text_box",
|
|
4
4
|
PICTURE_BOX = "picture_box",
|
|
5
|
+
ICON_BOX = "icon_box",
|
|
5
6
|
CUSTOM_SHAPE = "custom_shape",
|
|
6
7
|
TABLE = "table",
|
|
7
8
|
CHEVRON = "chevron"
|
|
@@ -151,6 +152,25 @@ export declare const PPTXPictureBoxSchema: z.ZodObject<{
|
|
|
151
152
|
}, z.core.$strip>]>;
|
|
152
153
|
}, z.core.$strip>;
|
|
153
154
|
export type PPTXPictureBox = z.infer<typeof PPTXPictureBoxSchema>;
|
|
155
|
+
export declare const PPTXIconBoxSchema: z.ZodObject<{
|
|
156
|
+
type: z.ZodLiteral<PPTX_SHAPE_TYPE.ICON_BOX>;
|
|
157
|
+
position: z.ZodObject<{
|
|
158
|
+
height: z.ZodNumber;
|
|
159
|
+
width: z.ZodNumber;
|
|
160
|
+
top: z.ZodNumber;
|
|
161
|
+
left: z.ZodNumber;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
164
|
+
path: z.ZodString;
|
|
165
|
+
color: z.ZodOptional<z.ZodString>;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
167
|
+
svg: z.ZodString;
|
|
168
|
+
color: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
170
|
+
base64: z.ZodString;
|
|
171
|
+
}, z.core.$strip>]>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
export type PPTXIconBox = z.infer<typeof PPTXIconBoxSchema>;
|
|
154
174
|
export declare const PPTXCustomShapeSchema: z.ZodObject<{
|
|
155
175
|
type: z.ZodLiteral<PPTX_SHAPE_TYPE.CUSTOM_SHAPE>;
|
|
156
176
|
customShapeType: z.ZodOptional<z.ZodEnum<typeof PPTX_CUSTOM_SHAPE_TYPE>>;
|
|
@@ -341,6 +361,23 @@ export declare const PPTXShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
341
361
|
}, z.core.$strip>, z.ZodObject<{
|
|
342
362
|
path: z.ZodString;
|
|
343
363
|
}, z.core.$strip>]>;
|
|
364
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
365
|
+
type: z.ZodLiteral<PPTX_SHAPE_TYPE.ICON_BOX>;
|
|
366
|
+
position: z.ZodObject<{
|
|
367
|
+
height: z.ZodNumber;
|
|
368
|
+
width: z.ZodNumber;
|
|
369
|
+
top: z.ZodNumber;
|
|
370
|
+
left: z.ZodNumber;
|
|
371
|
+
}, z.core.$strip>;
|
|
372
|
+
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
373
|
+
path: z.ZodString;
|
|
374
|
+
color: z.ZodOptional<z.ZodString>;
|
|
375
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
376
|
+
svg: z.ZodString;
|
|
377
|
+
color: z.ZodOptional<z.ZodString>;
|
|
378
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
379
|
+
base64: z.ZodString;
|
|
380
|
+
}, z.core.$strip>]>;
|
|
344
381
|
}, z.core.$strip>, z.ZodObject<{
|
|
345
382
|
type: z.ZodLiteral<PPTX_SHAPE_TYPE.CUSTOM_SHAPE>;
|
|
346
383
|
customShapeType: z.ZodOptional<z.ZodEnum<typeof PPTX_CUSTOM_SHAPE_TYPE>>;
|
|
@@ -495,6 +532,23 @@ export declare const PPTXSlideSchema: z.ZodObject<{
|
|
|
495
532
|
}, z.core.$strip>, z.ZodObject<{
|
|
496
533
|
path: z.ZodString;
|
|
497
534
|
}, z.core.$strip>]>;
|
|
535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
536
|
+
type: z.ZodLiteral<PPTX_SHAPE_TYPE.ICON_BOX>;
|
|
537
|
+
position: z.ZodObject<{
|
|
538
|
+
height: z.ZodNumber;
|
|
539
|
+
width: z.ZodNumber;
|
|
540
|
+
top: z.ZodNumber;
|
|
541
|
+
left: z.ZodNumber;
|
|
542
|
+
}, z.core.$strip>;
|
|
543
|
+
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
544
|
+
path: z.ZodString;
|
|
545
|
+
color: z.ZodOptional<z.ZodString>;
|
|
546
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
547
|
+
svg: z.ZodString;
|
|
548
|
+
color: z.ZodOptional<z.ZodString>;
|
|
549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
550
|
+
base64: z.ZodString;
|
|
551
|
+
}, z.core.$strip>]>;
|
|
498
552
|
}, z.core.$strip>, z.ZodObject<{
|
|
499
553
|
type: z.ZodLiteral<PPTX_SHAPE_TYPE.CUSTOM_SHAPE>;
|
|
500
554
|
customShapeType: z.ZodOptional<z.ZodEnum<typeof PPTX_CUSTOM_SHAPE_TYPE>>;
|
|
@@ -642,6 +696,23 @@ export declare const PPTXExportPayloadSchema: z.ZodObject<{
|
|
|
642
696
|
}, z.core.$strip>, z.ZodObject<{
|
|
643
697
|
path: z.ZodString;
|
|
644
698
|
}, z.core.$strip>]>;
|
|
699
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
700
|
+
type: z.ZodLiteral<PPTX_SHAPE_TYPE.ICON_BOX>;
|
|
701
|
+
position: z.ZodObject<{
|
|
702
|
+
height: z.ZodNumber;
|
|
703
|
+
width: z.ZodNumber;
|
|
704
|
+
top: z.ZodNumber;
|
|
705
|
+
left: z.ZodNumber;
|
|
706
|
+
}, z.core.$strip>;
|
|
707
|
+
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
708
|
+
path: z.ZodString;
|
|
709
|
+
color: z.ZodOptional<z.ZodString>;
|
|
710
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
711
|
+
svg: z.ZodString;
|
|
712
|
+
color: z.ZodOptional<z.ZodString>;
|
|
713
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
714
|
+
base64: z.ZodString;
|
|
715
|
+
}, z.core.$strip>]>;
|
|
645
716
|
}, z.core.$strip>, z.ZodObject<{
|
|
646
717
|
type: z.ZodLiteral<PPTX_SHAPE_TYPE.CUSTOM_SHAPE>;
|
|
647
718
|
customShapeType: z.ZodOptional<z.ZodEnum<typeof PPTX_CUSTOM_SHAPE_TYPE>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pptx-export-payload.schema.d.ts","sourceRoot":"","sources":["../../../models/presentation/pptx-export-payload.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,eAAe;IACvB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,KAAK,UAAU;IACf,OAAO,YAAY;CACtB;AAED,oBAAY,sBAAsB;IAC9B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,EAAE,OAAO;IACT,IAAI,SAAS;CAChB;AAED,oBAAY,eAAe;IACvB,KAAK,eAAe;IACpB,IAAI,cAAc;IAClB,EAAE,YAAY;IACd,IAAI,cAAc;CACrB;AACD,oBAAY,YAAY;IACpB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;CACtB;AAED,oBAAY,YAAY;IACpB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AAED,oBAAY,eAAe;IACvB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,IAAI,SAAS;CAChB;AAED,oBAAY,gBAAgB;IACxB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;CAChB;AAED,oBAAY,cAAc;IACtB,KAAK,UAAU;IACf,IAAI,SAAS;CAChB;AAED,oBAAY,gBAAgB;IACxB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CAChB;AAED,oBAAY,sBAAsB;IAC9B,UAAU,cAAc;CAC3B;AAED,eAAO,MAAM,gBAAgB;;;;;;;;iBAQ3B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;iBAKzB,CAAC;AAEH,eAAO,MAAM,gBAAgB,4GAG3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,cAAc;;;;;;;;;;iBAezB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAGtD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;iBAO9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;iBAe/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"pptx-export-payload.schema.d.ts","sourceRoot":"","sources":["../../../models/presentation/pptx-export-payload.schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PPTXExportPayloadSchema = exports.PPTXSlideSchema = exports.SlideBackground = exports.PPTXShapeSchema = exports.PPTXChevronShapeSchema = exports.PPTXTableShapeSchema = exports.PPTXTableRowSchema = exports.PPTXTableCellSchema = exports.PPTXCustomShapeSchema = exports.PPTXPictureBoxSchema = exports.PPTXTextBoxSchema = exports.PPTXParagraphSchema = exports.PPTXFontSchema = exports.PPTXPositionSchema = exports.PPTXMarginSchema = exports.PPTXFillSchema = exports.PPTXShadowSchema = exports.PPTX_CUSTOM_SHAPE_TYPE = exports.PPTX_SHADOW_TYPE = exports.PPTX_FILL_TYPE = exports.PPTX_BORDER_TYPE = exports.PPTX_OBJECT_FIT = exports.PPTX_V_ALIGN = exports.PPTX_H_ALIGN = exports.PPTX_ARROW_TYPE = exports.PPTX_CHEVRON_DIRECTION = exports.PPTX_SHAPE_TYPE = void 0;
|
|
3
|
+
exports.PPTXExportPayloadSchema = exports.PPTXSlideSchema = exports.SlideBackground = exports.PPTXShapeSchema = exports.PPTXChevronShapeSchema = exports.PPTXTableShapeSchema = exports.PPTXTableRowSchema = exports.PPTXTableCellSchema = exports.PPTXCustomShapeSchema = exports.PPTXIconBoxSchema = exports.PPTXPictureBoxSchema = exports.PPTXTextBoxSchema = exports.PPTXParagraphSchema = exports.PPTXFontSchema = exports.PPTXPositionSchema = exports.PPTXMarginSchema = exports.PPTXFillSchema = exports.PPTXShadowSchema = exports.PPTX_CUSTOM_SHAPE_TYPE = exports.PPTX_SHADOW_TYPE = exports.PPTX_FILL_TYPE = exports.PPTX_BORDER_TYPE = exports.PPTX_OBJECT_FIT = exports.PPTX_V_ALIGN = exports.PPTX_H_ALIGN = exports.PPTX_ARROW_TYPE = exports.PPTX_CHEVRON_DIRECTION = exports.PPTX_SHAPE_TYPE = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
var PPTX_SHAPE_TYPE;
|
|
6
6
|
(function (PPTX_SHAPE_TYPE) {
|
|
7
7
|
PPTX_SHAPE_TYPE["TEXT_BOX"] = "text_box";
|
|
8
8
|
PPTX_SHAPE_TYPE["PICTURE_BOX"] = "picture_box";
|
|
9
|
+
PPTX_SHAPE_TYPE["ICON_BOX"] = "icon_box";
|
|
9
10
|
PPTX_SHAPE_TYPE["CUSTOM_SHAPE"] = "custom_shape";
|
|
10
11
|
PPTX_SHAPE_TYPE["TABLE"] = "table";
|
|
11
12
|
PPTX_SHAPE_TYPE["CHEVRON"] = "chevron";
|
|
@@ -137,6 +138,31 @@ exports.PPTXPictureBoxSchema = zod_1.z.object({
|
|
|
137
138
|
}),
|
|
138
139
|
]),
|
|
139
140
|
});
|
|
141
|
+
exports.PPTXIconBoxSchema = zod_1.z.object({
|
|
142
|
+
type: zod_1.z.literal(PPTX_SHAPE_TYPE.ICON_BOX),
|
|
143
|
+
position: exports.PPTXPositionSchema,
|
|
144
|
+
data: zod_1.z.union([
|
|
145
|
+
zod_1.z.object({
|
|
146
|
+
path: zod_1.z.string().describe('URL to SVG icon'),
|
|
147
|
+
color: zod_1.z
|
|
148
|
+
.string()
|
|
149
|
+
.optional()
|
|
150
|
+
.describe('Optional icon color in hex format (#RRGGBB or #RGB)'),
|
|
151
|
+
}),
|
|
152
|
+
zod_1.z.object({
|
|
153
|
+
svg: zod_1.z.string().describe('Raw SVG string. Backend can optionally apply color override'),
|
|
154
|
+
color: zod_1.z
|
|
155
|
+
.string()
|
|
156
|
+
.optional()
|
|
157
|
+
.describe('Optional icon color in hex format (#RRGGBB or #RGB)'),
|
|
158
|
+
}),
|
|
159
|
+
zod_1.z.object({
|
|
160
|
+
base64: zod_1.z
|
|
161
|
+
.string()
|
|
162
|
+
.describe('Base64 encoded image in "image/{mimeType};base64,{bas64}" format'),
|
|
163
|
+
}),
|
|
164
|
+
]),
|
|
165
|
+
});
|
|
140
166
|
// CustomShape
|
|
141
167
|
exports.PPTXCustomShapeSchema = zod_1.z.object({
|
|
142
168
|
type: zod_1.z.literal(PPTX_SHAPE_TYPE.CUSTOM_SHAPE),
|
|
@@ -197,6 +223,7 @@ exports.PPTXChevronShapeSchema = zod_1.z.object({
|
|
|
197
223
|
exports.PPTXShapeSchema = zod_1.z.discriminatedUnion('type', [
|
|
198
224
|
exports.PPTXTextBoxSchema,
|
|
199
225
|
exports.PPTXPictureBoxSchema,
|
|
226
|
+
exports.PPTXIconBoxSchema,
|
|
200
227
|
exports.PPTXCustomShapeSchema,
|
|
201
228
|
exports.PPTXTableShapeSchema,
|
|
202
229
|
exports.PPTXChevronShapeSchema,
|
|
@@ -4,35 +4,35 @@ import { SLIDE_CONTENT_TYPE } from '../../constants';
|
|
|
4
4
|
export declare const CoverSlideDataUserEditSchema: z.ZodObject<{
|
|
5
5
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.COVER>;
|
|
6
6
|
title: z.ZodString;
|
|
7
|
-
author: z.ZodObject<{
|
|
7
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
8
8
|
label: z.ZodString;
|
|
9
9
|
value: z.ZodString;
|
|
10
|
-
}, z.core.$strip
|
|
11
|
-
date: z.ZodObject<{
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
12
12
|
label: z.ZodString;
|
|
13
13
|
value: z.ZodString;
|
|
14
|
-
}, z.core.$strip
|
|
15
|
-
email: z.ZodObject<{
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
16
16
|
label: z.ZodString;
|
|
17
17
|
value: z.ZodString;
|
|
18
|
-
}, z.core.$strip
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
19
|
version: z.ZodLiteral<1>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
export declare const ThankYouSlideDataUserEditSchema: z.ZodObject<{
|
|
22
22
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.THANK_YOU>;
|
|
23
23
|
title: z.ZodString;
|
|
24
|
-
author: z.ZodObject<{
|
|
24
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
25
25
|
label: z.ZodString;
|
|
26
26
|
value: z.ZodString;
|
|
27
|
-
}, z.core.$strip
|
|
28
|
-
date: z.ZodObject<{
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
29
29
|
label: z.ZodString;
|
|
30
30
|
value: z.ZodString;
|
|
31
|
-
}, z.core.$strip
|
|
32
|
-
email: z.ZodObject<{
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
33
33
|
label: z.ZodString;
|
|
34
34
|
value: z.ZodString;
|
|
35
|
-
}, z.core.$strip
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
36
|
version: z.ZodLiteral<1>;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
export declare const TextSlideDataUserEditSchema: z.ZodObject<{
|
|
@@ -148,18 +148,18 @@ export declare const TimelineSlideDataUserEditSchema: z.ZodObject<{
|
|
|
148
148
|
export declare const SlideContentUserEditSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
149
149
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.COVER>;
|
|
150
150
|
title: z.ZodString;
|
|
151
|
-
author: z.ZodObject<{
|
|
151
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
152
152
|
label: z.ZodString;
|
|
153
153
|
value: z.ZodString;
|
|
154
|
-
}, z.core.$strip
|
|
155
|
-
date: z.ZodObject<{
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
156
156
|
label: z.ZodString;
|
|
157
157
|
value: z.ZodString;
|
|
158
|
-
}, z.core.$strip
|
|
159
|
-
email: z.ZodObject<{
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
160
160
|
label: z.ZodString;
|
|
161
161
|
value: z.ZodString;
|
|
162
|
-
}, z.core.$strip
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
163
|
version: z.ZodLiteral<1>;
|
|
164
164
|
}, z.core.$strip>, z.ZodObject<{
|
|
165
165
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.STRUCTURED_LIST>;
|
|
@@ -214,18 +214,18 @@ export declare const SlideContentUserEditSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
214
214
|
}, z.core.$strip>, z.ZodObject<{
|
|
215
215
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.THANK_YOU>;
|
|
216
216
|
title: z.ZodString;
|
|
217
|
-
author: z.ZodObject<{
|
|
217
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
218
218
|
label: z.ZodString;
|
|
219
219
|
value: z.ZodString;
|
|
220
|
-
}, z.core.$strip
|
|
221
|
-
date: z.ZodObject<{
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
222
222
|
label: z.ZodString;
|
|
223
223
|
value: z.ZodString;
|
|
224
|
-
}, z.core.$strip
|
|
225
|
-
email: z.ZodObject<{
|
|
224
|
+
}, z.core.$strip>>;
|
|
225
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
226
226
|
label: z.ZodString;
|
|
227
227
|
value: z.ZodString;
|
|
228
|
-
}, z.core.$strip
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
229
|
version: z.ZodLiteral<1>;
|
|
230
230
|
}, z.core.$strip>, z.ZodObject<{
|
|
231
231
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.TABLE>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-content-edit.schema.d.ts","sourceRoot":"","sources":["../../../models/presentation/slide-content-edit.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EASH,gBAAgB,EAMnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"slide-content-edit.schema.d.ts","sourceRoot":"","sources":["../../../models/presentation/slide-content-edit.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EASH,gBAAgB,EAMnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;iBAsBO,CAAC;AAEjD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;iBAsBO,CAAC;AAEpD,eAAO,MAAM,2BAA2B;;;;;iBAKO,CAAC;AAEhD,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;iBAcO,CAAC;AAE1D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;iBAaO,CAAC;AAEpD,eAAO,MAAM,4BAA4B;;;;;;;;;;;iBAMO,CAAC;AAEjD,eAAO,MAAM,mCAAmC;;;;;iBAKO,CAAC;AAExD,eAAO,MAAM,4BAA4B;;;;;;;;;;;iBAWO,CAAC;AAEjD,eAAO,MAAM,+BAA+B;;;;;;;;;;;iBAeO,CAAC;AAEpD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;iBAMO,CAAC;AAEjD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;iBAiBO,CAAC;AAEpD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAWrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -10,35 +10,47 @@ const constants_1 = require("../../constants");
|
|
|
10
10
|
exports.CoverSlideDataUserEditSchema = zod_1.default.object({
|
|
11
11
|
contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.COVER),
|
|
12
12
|
title: zod_1.default.string().max(1000),
|
|
13
|
-
author: zod_1.default
|
|
13
|
+
author: zod_1.default
|
|
14
|
+
.object({
|
|
14
15
|
label: zod_1.default.string().max(200),
|
|
15
16
|
value: zod_1.default.string().max(500),
|
|
16
|
-
})
|
|
17
|
-
|
|
17
|
+
})
|
|
18
|
+
.optional(),
|
|
19
|
+
date: zod_1.default
|
|
20
|
+
.object({
|
|
18
21
|
label: zod_1.default.string().max(200),
|
|
19
22
|
value: zod_1.default.string().max(500),
|
|
20
|
-
})
|
|
21
|
-
|
|
23
|
+
})
|
|
24
|
+
.optional(),
|
|
25
|
+
email: zod_1.default
|
|
26
|
+
.object({
|
|
22
27
|
label: zod_1.default.string().max(200),
|
|
23
28
|
value: zod_1.default.string().max(500),
|
|
24
|
-
})
|
|
29
|
+
})
|
|
30
|
+
.optional(),
|
|
25
31
|
version: zod_1.default.literal(1),
|
|
26
32
|
});
|
|
27
33
|
exports.ThankYouSlideDataUserEditSchema = zod_1.default.object({
|
|
28
34
|
contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.THANK_YOU),
|
|
29
35
|
title: zod_1.default.string().max(1000),
|
|
30
|
-
author: zod_1.default
|
|
36
|
+
author: zod_1.default
|
|
37
|
+
.object({
|
|
31
38
|
label: zod_1.default.string().max(200),
|
|
32
39
|
value: zod_1.default.string().max(500),
|
|
33
|
-
})
|
|
34
|
-
|
|
40
|
+
})
|
|
41
|
+
.optional(),
|
|
42
|
+
date: zod_1.default
|
|
43
|
+
.object({
|
|
35
44
|
label: zod_1.default.string().max(200),
|
|
36
45
|
value: zod_1.default.string().max(500),
|
|
37
|
-
})
|
|
38
|
-
|
|
46
|
+
})
|
|
47
|
+
.optional(),
|
|
48
|
+
email: zod_1.default
|
|
49
|
+
.object({
|
|
39
50
|
label: zod_1.default.string().max(200),
|
|
40
51
|
value: zod_1.default.string().max(500),
|
|
41
|
-
})
|
|
52
|
+
})
|
|
53
|
+
.optional(),
|
|
42
54
|
version: zod_1.default.literal(1),
|
|
43
55
|
});
|
|
44
56
|
exports.TextSlideDataUserEditSchema = zod_1.default.object({
|
|
@@ -159,18 +159,18 @@ export declare const SlideUpdateSchema: z.ZodObject<{
|
|
|
159
159
|
content: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
160
160
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.COVER>;
|
|
161
161
|
title: z.ZodString;
|
|
162
|
-
author: z.ZodObject<{
|
|
162
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
163
163
|
label: z.ZodString;
|
|
164
164
|
value: z.ZodString;
|
|
165
|
-
}, z.core.$strip
|
|
166
|
-
date: z.ZodObject<{
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
167
167
|
label: z.ZodString;
|
|
168
168
|
value: z.ZodString;
|
|
169
|
-
}, z.core.$strip
|
|
170
|
-
email: z.ZodObject<{
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
171
171
|
label: z.ZodString;
|
|
172
172
|
value: z.ZodString;
|
|
173
|
-
}, z.core.$strip
|
|
173
|
+
}, z.core.$strip>>;
|
|
174
174
|
version: z.ZodLiteral<1>;
|
|
175
175
|
}, z.core.$strip>, z.ZodObject<{
|
|
176
176
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.STRUCTURED_LIST>;
|
|
@@ -225,18 +225,18 @@ export declare const SlideUpdateSchema: z.ZodObject<{
|
|
|
225
225
|
}, z.core.$strip>, z.ZodObject<{
|
|
226
226
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.THANK_YOU>;
|
|
227
227
|
title: z.ZodString;
|
|
228
|
-
author: z.ZodObject<{
|
|
228
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
229
229
|
label: z.ZodString;
|
|
230
230
|
value: z.ZodString;
|
|
231
|
-
}, z.core.$strip
|
|
232
|
-
date: z.ZodObject<{
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
233
233
|
label: z.ZodString;
|
|
234
234
|
value: z.ZodString;
|
|
235
|
-
}, z.core.$strip
|
|
236
|
-
email: z.ZodObject<{
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
237
237
|
label: z.ZodString;
|
|
238
238
|
value: z.ZodString;
|
|
239
|
-
}, z.core.$strip
|
|
239
|
+
}, z.core.$strip>>;
|
|
240
240
|
version: z.ZodLiteral<1>;
|
|
241
241
|
}, z.core.$strip>, z.ZodObject<{
|
|
242
242
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.TABLE>;
|
|
@@ -290,18 +290,18 @@ export declare const SlideBulkUpdateSchema: z.ZodArray<z.ZodObject<{
|
|
|
290
290
|
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
291
291
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.COVER>;
|
|
292
292
|
title: z.ZodString;
|
|
293
|
-
author: z.ZodObject<{
|
|
293
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
294
294
|
label: z.ZodString;
|
|
295
295
|
value: z.ZodString;
|
|
296
|
-
}, z.core.$strip
|
|
297
|
-
date: z.ZodObject<{
|
|
296
|
+
}, z.core.$strip>>;
|
|
297
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
298
298
|
label: z.ZodString;
|
|
299
299
|
value: z.ZodString;
|
|
300
|
-
}, z.core.$strip
|
|
301
|
-
email: z.ZodObject<{
|
|
300
|
+
}, z.core.$strip>>;
|
|
301
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
302
302
|
label: z.ZodString;
|
|
303
303
|
value: z.ZodString;
|
|
304
|
-
}, z.core.$strip
|
|
304
|
+
}, z.core.$strip>>;
|
|
305
305
|
version: z.ZodLiteral<1>;
|
|
306
306
|
}, z.core.$strip>, z.ZodObject<{
|
|
307
307
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.STRUCTURED_LIST>;
|
|
@@ -356,18 +356,18 @@ export declare const SlideBulkUpdateSchema: z.ZodArray<z.ZodObject<{
|
|
|
356
356
|
}, z.core.$strip>, z.ZodObject<{
|
|
357
357
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.THANK_YOU>;
|
|
358
358
|
title: z.ZodString;
|
|
359
|
-
author: z.ZodObject<{
|
|
359
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
360
360
|
label: z.ZodString;
|
|
361
361
|
value: z.ZodString;
|
|
362
|
-
}, z.core.$strip
|
|
363
|
-
date: z.ZodObject<{
|
|
362
|
+
}, z.core.$strip>>;
|
|
363
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
364
364
|
label: z.ZodString;
|
|
365
365
|
value: z.ZodString;
|
|
366
|
-
}, z.core.$strip
|
|
367
|
-
email: z.ZodObject<{
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
368
368
|
label: z.ZodString;
|
|
369
369
|
value: z.ZodString;
|
|
370
|
-
}, z.core.$strip
|
|
370
|
+
}, z.core.$strip>>;
|
|
371
371
|
version: z.ZodLiteral<1>;
|
|
372
372
|
}, z.core.$strip>, z.ZodObject<{
|
|
373
373
|
contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.TABLE>;
|
|
@@ -3,6 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
export enum PPTX_SHAPE_TYPE {
|
|
4
4
|
TEXT_BOX = 'text_box',
|
|
5
5
|
PICTURE_BOX = 'picture_box',
|
|
6
|
+
ICON_BOX = 'icon_box',
|
|
6
7
|
CUSTOM_SHAPE = 'custom_shape',
|
|
7
8
|
TABLE = 'table',
|
|
8
9
|
CHEVRON = 'chevron',
|
|
@@ -149,6 +150,33 @@ export const PPTXPictureBoxSchema = z.object({
|
|
|
149
150
|
});
|
|
150
151
|
export type PPTXPictureBox = z.infer<typeof PPTXPictureBoxSchema>;
|
|
151
152
|
|
|
153
|
+
export const PPTXIconBoxSchema = z.object({
|
|
154
|
+
type: z.literal(PPTX_SHAPE_TYPE.ICON_BOX),
|
|
155
|
+
position: PPTXPositionSchema,
|
|
156
|
+
data: z.union([
|
|
157
|
+
z.object({
|
|
158
|
+
path: z.string().describe('URL to SVG icon'),
|
|
159
|
+
color: z
|
|
160
|
+
.string()
|
|
161
|
+
.optional()
|
|
162
|
+
.describe('Optional icon color in hex format (#RRGGBB or #RGB)'),
|
|
163
|
+
}),
|
|
164
|
+
z.object({
|
|
165
|
+
svg: z.string().describe('Raw SVG string. Backend can optionally apply color override'),
|
|
166
|
+
color: z
|
|
167
|
+
.string()
|
|
168
|
+
.optional()
|
|
169
|
+
.describe('Optional icon color in hex format (#RRGGBB or #RGB)'),
|
|
170
|
+
}),
|
|
171
|
+
z.object({
|
|
172
|
+
base64: z
|
|
173
|
+
.string()
|
|
174
|
+
.describe('Base64 encoded image in "image/{mimeType};base64,{bas64}" format'),
|
|
175
|
+
}),
|
|
176
|
+
]),
|
|
177
|
+
});
|
|
178
|
+
export type PPTXIconBox = z.infer<typeof PPTXIconBoxSchema>;
|
|
179
|
+
|
|
152
180
|
// CustomShape
|
|
153
181
|
export const PPTXCustomShapeSchema = z.object({
|
|
154
182
|
type: z.literal(PPTX_SHAPE_TYPE.CUSTOM_SHAPE),
|
|
@@ -220,6 +248,7 @@ export type PPTXChevronShape = z.infer<typeof PPTXChevronShapeSchema>;
|
|
|
220
248
|
export const PPTXShapeSchema = z.discriminatedUnion('type', [
|
|
221
249
|
PPTXTextBoxSchema,
|
|
222
250
|
PPTXPictureBoxSchema,
|
|
251
|
+
PPTXIconBoxSchema,
|
|
223
252
|
PPTXCustomShapeSchema,
|
|
224
253
|
PPTXTableShapeSchema,
|
|
225
254
|
PPTXChevronShapeSchema,
|
|
@@ -20,36 +20,48 @@ import { SLIDE_CONTENT_TYPE } from '../../constants';
|
|
|
20
20
|
export const CoverSlideDataUserEditSchema = z.object({
|
|
21
21
|
contentType: z.literal(SLIDE_CONTENT_TYPE.COVER),
|
|
22
22
|
title: z.string().max(1000),
|
|
23
|
-
author: z
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
author: z
|
|
24
|
+
.object({
|
|
25
|
+
label: z.string().max(200),
|
|
26
|
+
value: z.string().max(500),
|
|
27
|
+
})
|
|
28
|
+
.optional(),
|
|
29
|
+
date: z
|
|
30
|
+
.object({
|
|
31
|
+
label: z.string().max(200),
|
|
32
|
+
value: z.string().max(500),
|
|
33
|
+
})
|
|
34
|
+
.optional(),
|
|
35
|
+
email: z
|
|
36
|
+
.object({
|
|
37
|
+
label: z.string().max(200),
|
|
38
|
+
value: z.string().max(500),
|
|
39
|
+
})
|
|
40
|
+
.optional(),
|
|
35
41
|
version: z.literal(1),
|
|
36
42
|
}) satisfies z.ZodType<ICoverSlideDataStructure>;
|
|
37
43
|
|
|
38
44
|
export const ThankYouSlideDataUserEditSchema = z.object({
|
|
39
45
|
contentType: z.literal(SLIDE_CONTENT_TYPE.THANK_YOU),
|
|
40
46
|
title: z.string().max(1000),
|
|
41
|
-
author: z
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
author: z
|
|
48
|
+
.object({
|
|
49
|
+
label: z.string().max(200),
|
|
50
|
+
value: z.string().max(500),
|
|
51
|
+
})
|
|
52
|
+
.optional(),
|
|
53
|
+
date: z
|
|
54
|
+
.object({
|
|
55
|
+
label: z.string().max(200),
|
|
56
|
+
value: z.string().max(500),
|
|
57
|
+
})
|
|
58
|
+
.optional(),
|
|
59
|
+
email: z
|
|
60
|
+
.object({
|
|
61
|
+
label: z.string().max(200),
|
|
62
|
+
value: z.string().max(500),
|
|
63
|
+
})
|
|
64
|
+
.optional(),
|
|
53
65
|
version: z.literal(1),
|
|
54
66
|
}) satisfies z.ZodType<IThankYouSlideDataStructure>;
|
|
55
67
|
|