@purpleschool/multisite 0.0.16 → 0.0.18

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 (37) hide show
  1. package/build/commands/page/create-page.command.d.ts +0 -100
  2. package/build/commands/page/create-page.command.d.ts.map +1 -1
  3. package/build/commands/page/find-page-by-alias.command.d.ts +0 -200
  4. package/build/commands/page/find-page-by-alias.command.d.ts.map +1 -1
  5. package/build/commands/page/find-page-by-criteria.command.d.ts +0 -63
  6. package/build/commands/page/find-page-by-criteria.command.d.ts.map +1 -1
  7. package/build/commands/page/find-page-by-criteria.command.js +0 -2
  8. package/build/commands/page/find-page.command.d.ts +0 -141
  9. package/build/commands/page/find-page.command.d.ts.map +1 -1
  10. package/build/commands/page/update-page.command.d.ts +0 -100
  11. package/build/commands/page/update-page.command.d.ts.map +1 -1
  12. package/build/constants/page/index.d.ts +1 -1
  13. package/build/constants/page/index.d.ts.map +1 -1
  14. package/build/constants/page/index.js +0 -15
  15. package/build/constants/user-to-subscription/enums/index.d.ts +1 -0
  16. package/build/constants/user-to-subscription/enums/index.d.ts.map +1 -1
  17. package/build/constants/user-to-subscription/enums/index.js +1 -0
  18. package/build/constants/user-to-subscription/enums/user-to-subscription-type.enum.d.ts +5 -0
  19. package/build/constants/user-to-subscription/enums/user-to-subscription-type.enum.d.ts.map +1 -0
  20. package/build/constants/user-to-subscription/enums/user-to-subscription-type.enum.js +8 -0
  21. package/build/models/page.schema.d.ts +0 -129
  22. package/build/models/page.schema.d.ts.map +1 -1
  23. package/build/models/page.schema.js +1 -19
  24. package/build/models/subscription.schema.d.ts +2 -2
  25. package/build/queries/subscription/find-subscriptions.command.d.ts +4 -4
  26. package/build/queries/subscription/get-subscriptions-summary.command.d.ts +6 -6
  27. package/build/queries/user/get-my-subscriptions.command.d.ts +6 -6
  28. package/commands/page/find-page-by-criteria.command.ts +0 -2
  29. package/constants/page/index.ts +1 -1
  30. package/constants/user-to-subscription/enums/index.ts +1 -0
  31. package/constants/user-to-subscription/enums/user-to-subscription-type.enum.ts +4 -0
  32. package/models/page.schema.ts +0 -22
  33. package/package.json +1 -1
  34. package/build/constants/page/enums/page-type.enum.d.ts +0 -6
  35. package/build/constants/page/enums/page-type.enum.d.ts.map +0 -1
  36. package/build/constants/page/enums/page-type.enum.js +0 -9
  37. package/constants/page/enums/page-type.enum.ts +0 -5
@@ -1,23 +1,19 @@
1
1
  import { z } from 'zod';
2
- import { PageType } from '../../constants/page';
3
2
  export declare namespace FindPageByCriteriaCommand {
4
3
  const RequestQuerySchema: z.ZodObject<{
5
4
  title: z.ZodOptional<z.ZodString>;
6
5
  alias: z.ZodOptional<z.ZodString>;
7
- type: z.ZodOptional<z.ZodNativeEnum<typeof PageType>>;
8
6
  uuid: z.ZodOptional<z.ZodString>;
9
7
  limit: z.ZodOptional<z.ZodNumber>;
10
8
  offset: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
11
9
  }, "strip", z.ZodTypeAny, {
12
10
  uuid?: string | undefined;
13
- type?: PageType | undefined;
14
11
  title?: string | undefined;
15
12
  alias?: string | undefined;
16
13
  limit?: number | undefined;
17
14
  offset?: number | undefined;
18
15
  }, {
19
16
  uuid?: string | undefined;
20
- type?: PageType | undefined;
21
17
  title?: string | undefined;
22
18
  alias?: string | undefined;
23
19
  limit?: number | undefined;
@@ -33,29 +29,6 @@ export declare namespace FindPageByCriteriaCommand {
33
29
  subTitle: z.ZodString;
34
30
  seoTextMd: z.ZodString;
35
31
  alias: z.ZodString;
36
- type: z.ZodNativeEnum<typeof PageType>;
37
- metadata: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
38
- type: z.ZodLiteral<PageType.WRITER_TOOL>;
39
- }, "strip", z.ZodTypeAny, {
40
- type: PageType.WRITER_TOOL;
41
- }, {
42
- type: PageType.WRITER_TOOL;
43
- }>, z.ZodObject<{
44
- type: z.ZodLiteral<PageType.EDU_TASK_SOLVING_TOOL>;
45
- }, "strip", z.ZodTypeAny, {
46
- type: PageType.EDU_TASK_SOLVING_TOOL;
47
- }, {
48
- type: PageType.EDU_TASK_SOLVING_TOOL;
49
- }>, z.ZodObject<{
50
- type: z.ZodLiteral<PageType.WRITER_DOCUMENT_TYPE>;
51
- writerDocumentTypeId: z.ZodString;
52
- }, "strip", z.ZodTypeAny, {
53
- type: PageType.WRITER_DOCUMENT_TYPE;
54
- writerDocumentTypeId: string;
55
- }, {
56
- type: PageType.WRITER_DOCUMENT_TYPE;
57
- writerDocumentTypeId: string;
58
- }>]>;
59
32
  createdAt: z.ZodDate;
60
33
  updatedAt: z.ZodDate;
61
34
  } & {
@@ -83,7 +56,6 @@ export declare namespace FindPageByCriteriaCommand {
83
56
  }>, "many">;
84
57
  }, "strip", z.ZodTypeAny, {
85
58
  uuid: string;
86
- type: PageType;
87
59
  title: string;
88
60
  createdAt: Date;
89
61
  updatedAt: Date;
@@ -92,14 +64,6 @@ export declare namespace FindPageByCriteriaCommand {
92
64
  subTitle: string;
93
65
  seoTextMd: string;
94
66
  alias: string;
95
- metadata: {
96
- type: PageType.WRITER_TOOL;
97
- } | {
98
- type: PageType.EDU_TASK_SOLVING_TOOL;
99
- } | {
100
- type: PageType.WRITER_DOCUMENT_TYPE;
101
- writerDocumentTypeId: string;
102
- };
103
67
  questions: {
104
68
  uuid: string;
105
69
  createdAt: Date;
@@ -110,7 +74,6 @@ export declare namespace FindPageByCriteriaCommand {
110
74
  }[];
111
75
  }, {
112
76
  uuid: string;
113
- type: PageType;
114
77
  title: string;
115
78
  createdAt: Date;
116
79
  updatedAt: Date;
@@ -119,14 +82,6 @@ export declare namespace FindPageByCriteriaCommand {
119
82
  subTitle: string;
120
83
  seoTextMd: string;
121
84
  alias: string;
122
- metadata: {
123
- type: PageType.WRITER_TOOL;
124
- } | {
125
- type: PageType.EDU_TASK_SOLVING_TOOL;
126
- } | {
127
- type: PageType.WRITER_DOCUMENT_TYPE;
128
- writerDocumentTypeId: string;
129
- };
130
85
  questions: {
131
86
  uuid: string;
132
87
  createdAt: Date;
@@ -142,7 +97,6 @@ export declare namespace FindPageByCriteriaCommand {
142
97
  page: number;
143
98
  data: {
144
99
  uuid: string;
145
- type: PageType;
146
100
  title: string;
147
101
  createdAt: Date;
148
102
  updatedAt: Date;
@@ -151,14 +105,6 @@ export declare namespace FindPageByCriteriaCommand {
151
105
  subTitle: string;
152
106
  seoTextMd: string;
153
107
  alias: string;
154
- metadata: {
155
- type: PageType.WRITER_TOOL;
156
- } | {
157
- type: PageType.EDU_TASK_SOLVING_TOOL;
158
- } | {
159
- type: PageType.WRITER_DOCUMENT_TYPE;
160
- writerDocumentTypeId: string;
161
- };
162
108
  questions: {
163
109
  uuid: string;
164
110
  createdAt: Date;
@@ -173,7 +119,6 @@ export declare namespace FindPageByCriteriaCommand {
173
119
  page: number;
174
120
  data: {
175
121
  uuid: string;
176
- type: PageType;
177
122
  title: string;
178
123
  createdAt: Date;
179
124
  updatedAt: Date;
@@ -182,14 +127,6 @@ export declare namespace FindPageByCriteriaCommand {
182
127
  subTitle: string;
183
128
  seoTextMd: string;
184
129
  alias: string;
185
- metadata: {
186
- type: PageType.WRITER_TOOL;
187
- } | {
188
- type: PageType.EDU_TASK_SOLVING_TOOL;
189
- } | {
190
- type: PageType.WRITER_DOCUMENT_TYPE;
191
- writerDocumentTypeId: string;
192
- };
193
130
  questions: {
194
131
  uuid: string;
195
132
  createdAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"find-page-by-criteria.command.d.ts","sourceRoot":"","sources":["../../../commands/page/find-page-by-criteria.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;MAO7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"find-page-by-criteria.command.d.ts","sourceRoot":"","sources":["../../../commands/page/find-page-by-criteria.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;MAM7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -3,13 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FindPageByCriteriaCommand = void 0;
4
4
  const models_1 = require("../../models");
5
5
  const zod_1 = require("zod");
6
- const page_1 = require("../../constants/page");
7
6
  var FindPageByCriteriaCommand;
8
7
  (function (FindPageByCriteriaCommand) {
9
8
  FindPageByCriteriaCommand.RequestQuerySchema = zod_1.z.object({
10
9
  title: zod_1.z.string().optional(),
11
10
  alias: zod_1.z.string().optional(),
12
- type: zod_1.z.nativeEnum(page_1.PageType).optional(),
13
11
  uuid: zod_1.z.string().uuid().optional(),
14
12
  limit: zod_1.z.coerce.number().min(1).optional(),
15
13
  offset: zod_1.z.coerce.number().min(0).default(0).optional(),
@@ -8,29 +8,6 @@ export declare namespace FindPageCommand {
8
8
  subTitle: z.ZodString;
9
9
  seoTextMd: z.ZodString;
10
10
  alias: z.ZodString;
11
- type: z.ZodNativeEnum<typeof import("../..").PageType>;
12
- metadata: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13
- type: z.ZodLiteral<import("../..").PageType.WRITER_TOOL>;
14
- }, "strip", z.ZodTypeAny, {
15
- type: import("../..").PageType.WRITER_TOOL;
16
- }, {
17
- type: import("../..").PageType.WRITER_TOOL;
18
- }>, z.ZodObject<{
19
- type: z.ZodLiteral<import("../..").PageType.EDU_TASK_SOLVING_TOOL>;
20
- }, "strip", z.ZodTypeAny, {
21
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
22
- }, {
23
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
24
- }>, z.ZodObject<{
25
- type: z.ZodLiteral<import("../..").PageType.WRITER_DOCUMENT_TYPE>;
26
- writerDocumentTypeId: z.ZodString;
27
- }, "strip", z.ZodTypeAny, {
28
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
29
- writerDocumentTypeId: string;
30
- }, {
31
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
32
- writerDocumentTypeId: string;
33
- }>]>;
34
11
  createdAt: z.ZodDate;
35
12
  updatedAt: z.ZodDate;
36
13
  }, "uuid">, "strip", z.ZodTypeAny, {
@@ -48,29 +25,6 @@ export declare namespace FindPageCommand {
48
25
  subTitle: z.ZodString;
49
26
  seoTextMd: z.ZodString;
50
27
  alias: z.ZodString;
51
- type: z.ZodNativeEnum<typeof import("../..").PageType>;
52
- metadata: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
53
- type: z.ZodLiteral<import("../..").PageType.WRITER_TOOL>;
54
- }, "strip", z.ZodTypeAny, {
55
- type: import("../..").PageType.WRITER_TOOL;
56
- }, {
57
- type: import("../..").PageType.WRITER_TOOL;
58
- }>, z.ZodObject<{
59
- type: z.ZodLiteral<import("../..").PageType.EDU_TASK_SOLVING_TOOL>;
60
- }, "strip", z.ZodTypeAny, {
61
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
62
- }, {
63
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
64
- }>, z.ZodObject<{
65
- type: z.ZodLiteral<import("../..").PageType.WRITER_DOCUMENT_TYPE>;
66
- writerDocumentTypeId: z.ZodString;
67
- }, "strip", z.ZodTypeAny, {
68
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
69
- writerDocumentTypeId: string;
70
- }, {
71
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
72
- writerDocumentTypeId: string;
73
- }>]>;
74
28
  createdAt: z.ZodDate;
75
29
  updatedAt: z.ZodDate;
76
30
  } & {
@@ -98,7 +52,6 @@ export declare namespace FindPageCommand {
98
52
  }>, "many">;
99
53
  }, "strip", z.ZodTypeAny, {
100
54
  uuid: string;
101
- type: import("../..").PageType;
102
55
  title: string;
103
56
  createdAt: Date;
104
57
  updatedAt: Date;
@@ -107,14 +60,6 @@ export declare namespace FindPageCommand {
107
60
  subTitle: string;
108
61
  seoTextMd: string;
109
62
  alias: string;
110
- metadata: {
111
- type: import("../..").PageType.WRITER_TOOL;
112
- } | {
113
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
114
- } | {
115
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
116
- writerDocumentTypeId: string;
117
- };
118
63
  questions: {
119
64
  uuid: string;
120
65
  createdAt: Date;
@@ -125,7 +70,6 @@ export declare namespace FindPageCommand {
125
70
  }[];
126
71
  }, {
127
72
  uuid: string;
128
- type: import("../..").PageType;
129
73
  title: string;
130
74
  createdAt: Date;
131
75
  updatedAt: Date;
@@ -134,14 +78,6 @@ export declare namespace FindPageCommand {
134
78
  subTitle: string;
135
79
  seoTextMd: string;
136
80
  alias: string;
137
- metadata: {
138
- type: import("../..").PageType.WRITER_TOOL;
139
- } | {
140
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
141
- } | {
142
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
143
- writerDocumentTypeId: string;
144
- };
145
81
  questions: {
146
82
  uuid: string;
147
83
  createdAt: Date;
@@ -154,7 +90,6 @@ export declare namespace FindPageCommand {
154
90
  }, "strip", z.ZodTypeAny, {
155
91
  data: {
156
92
  uuid: string;
157
- type: import("../..").PageType;
158
93
  title: string;
159
94
  createdAt: Date;
160
95
  updatedAt: Date;
@@ -163,14 +98,6 @@ export declare namespace FindPageCommand {
163
98
  subTitle: string;
164
99
  seoTextMd: string;
165
100
  alias: string;
166
- metadata: {
167
- type: import("../..").PageType.WRITER_TOOL;
168
- } | {
169
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
170
- } | {
171
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
172
- writerDocumentTypeId: string;
173
- };
174
101
  questions: {
175
102
  uuid: string;
176
103
  createdAt: Date;
@@ -183,7 +110,6 @@ export declare namespace FindPageCommand {
183
110
  }, {
184
111
  data: {
185
112
  uuid: string;
186
- type: import("../..").PageType;
187
113
  title: string;
188
114
  createdAt: Date;
189
115
  updatedAt: Date;
@@ -192,14 +118,6 @@ export declare namespace FindPageCommand {
192
118
  subTitle: string;
193
119
  seoTextMd: string;
194
120
  alias: string;
195
- metadata: {
196
- type: import("../..").PageType.WRITER_TOOL;
197
- } | {
198
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
199
- } | {
200
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
201
- writerDocumentTypeId: string;
202
- };
203
121
  questions: {
204
122
  uuid: string;
205
123
  createdAt: Date;
@@ -220,29 +138,6 @@ export declare namespace FindPageCommand {
220
138
  subTitle: z.ZodString;
221
139
  seoTextMd: z.ZodString;
222
140
  alias: z.ZodString;
223
- type: z.ZodNativeEnum<typeof import("../..").PageType>;
224
- metadata: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
225
- type: z.ZodLiteral<import("../..").PageType.WRITER_TOOL>;
226
- }, "strip", z.ZodTypeAny, {
227
- type: import("../..").PageType.WRITER_TOOL;
228
- }, {
229
- type: import("../..").PageType.WRITER_TOOL;
230
- }>, z.ZodObject<{
231
- type: z.ZodLiteral<import("../..").PageType.EDU_TASK_SOLVING_TOOL>;
232
- }, "strip", z.ZodTypeAny, {
233
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
234
- }, {
235
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
236
- }>, z.ZodObject<{
237
- type: z.ZodLiteral<import("../..").PageType.WRITER_DOCUMENT_TYPE>;
238
- writerDocumentTypeId: z.ZodString;
239
- }, "strip", z.ZodTypeAny, {
240
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
241
- writerDocumentTypeId: string;
242
- }, {
243
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
244
- writerDocumentTypeId: string;
245
- }>]>;
246
141
  createdAt: z.ZodDate;
247
142
  updatedAt: z.ZodDate;
248
143
  } & {
@@ -270,7 +165,6 @@ export declare namespace FindPageCommand {
270
165
  }>, "many">;
271
166
  }, "strip", z.ZodTypeAny, {
272
167
  uuid: string;
273
- type: import("../..").PageType;
274
168
  title: string;
275
169
  createdAt: Date;
276
170
  updatedAt: Date;
@@ -279,14 +173,6 @@ export declare namespace FindPageCommand {
279
173
  subTitle: string;
280
174
  seoTextMd: string;
281
175
  alias: string;
282
- metadata: {
283
- type: import("../..").PageType.WRITER_TOOL;
284
- } | {
285
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
286
- } | {
287
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
288
- writerDocumentTypeId: string;
289
- };
290
176
  questions: {
291
177
  uuid: string;
292
178
  createdAt: Date;
@@ -297,7 +183,6 @@ export declare namespace FindPageCommand {
297
183
  }[];
298
184
  }, {
299
185
  uuid: string;
300
- type: import("../..").PageType;
301
186
  title: string;
302
187
  createdAt: Date;
303
188
  updatedAt: Date;
@@ -306,14 +191,6 @@ export declare namespace FindPageCommand {
306
191
  subTitle: string;
307
192
  seoTextMd: string;
308
193
  alias: string;
309
- metadata: {
310
- type: import("../..").PageType.WRITER_TOOL;
311
- } | {
312
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
313
- } | {
314
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
315
- writerDocumentTypeId: string;
316
- };
317
194
  questions: {
318
195
  uuid: string;
319
196
  createdAt: Date;
@@ -326,7 +203,6 @@ export declare namespace FindPageCommand {
326
203
  }, "strip", z.ZodTypeAny, {
327
204
  data: {
328
205
  uuid: string;
329
- type: import("../..").PageType;
330
206
  title: string;
331
207
  createdAt: Date;
332
208
  updatedAt: Date;
@@ -335,14 +211,6 @@ export declare namespace FindPageCommand {
335
211
  subTitle: string;
336
212
  seoTextMd: string;
337
213
  alias: string;
338
- metadata: {
339
- type: import("../..").PageType.WRITER_TOOL;
340
- } | {
341
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
342
- } | {
343
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
344
- writerDocumentTypeId: string;
345
- };
346
214
  questions: {
347
215
  uuid: string;
348
216
  createdAt: Date;
@@ -355,7 +223,6 @@ export declare namespace FindPageCommand {
355
223
  }, {
356
224
  data: {
357
225
  uuid: string;
358
- type: import("../..").PageType;
359
226
  title: string;
360
227
  createdAt: Date;
361
228
  updatedAt: Date;
@@ -364,14 +231,6 @@ export declare namespace FindPageCommand {
364
231
  subTitle: string;
365
232
  seoTextMd: string;
366
233
  alias: string;
367
- metadata: {
368
- type: import("../..").PageType.WRITER_TOOL;
369
- } | {
370
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
371
- } | {
372
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
373
- writerDocumentTypeId: string;
374
- };
375
234
  questions: {
376
235
  uuid: string;
377
236
  createdAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"find-page.command.d.ts","sourceRoot":"","sources":["../../../commands/page/find-page.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,eAAe,CAAC;IACtB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;IAE/C,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAE/B,CAAC;IAEH,KAAY,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;CACrE"}
1
+ {"version":3,"file":"find-page.command.d.ts","sourceRoot":"","sources":["../../../commands/page/find-page.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,eAAe,CAAC;IACtB,MAAM,aAAa;;;;;;;;;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;IAE/C,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAE/B,CAAC;IAEH,KAAY,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;CACrE"}
@@ -1,67 +1,26 @@
1
1
  import { z } from 'zod';
2
2
  export declare namespace UpdatePageCommand {
3
3
  const RequestSchema: z.ZodObject<{
4
- type: z.ZodOptional<z.ZodNativeEnum<typeof import("../..").PageType>>;
5
4
  title: z.ZodOptional<z.ZodString>;
6
5
  metaTitle: z.ZodOptional<z.ZodString>;
7
6
  metaDescription: z.ZodOptional<z.ZodString>;
8
7
  subTitle: z.ZodOptional<z.ZodString>;
9
8
  seoTextMd: z.ZodOptional<z.ZodString>;
10
9
  alias: z.ZodOptional<z.ZodString>;
11
- metadata: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12
- type: z.ZodLiteral<import("../..").PageType.WRITER_TOOL>;
13
- }, "strip", z.ZodTypeAny, {
14
- type: import("../..").PageType.WRITER_TOOL;
15
- }, {
16
- type: import("../..").PageType.WRITER_TOOL;
17
- }>, z.ZodObject<{
18
- type: z.ZodLiteral<import("../..").PageType.EDU_TASK_SOLVING_TOOL>;
19
- }, "strip", z.ZodTypeAny, {
20
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
21
- }, {
22
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
23
- }>, z.ZodObject<{
24
- type: z.ZodLiteral<import("../..").PageType.WRITER_DOCUMENT_TYPE>;
25
- writerDocumentTypeId: z.ZodString;
26
- }, "strip", z.ZodTypeAny, {
27
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
28
- writerDocumentTypeId: string;
29
- }, {
30
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
31
- writerDocumentTypeId: string;
32
- }>]>>;
33
10
  }, "strip", z.ZodTypeAny, {
34
- type?: import("../..").PageType | undefined;
35
11
  title?: string | undefined;
36
12
  metaTitle?: string | undefined;
37
13
  metaDescription?: string | undefined;
38
14
  subTitle?: string | undefined;
39
15
  seoTextMd?: string | undefined;
40
16
  alias?: string | undefined;
41
- metadata?: {
42
- type: import("../..").PageType.WRITER_TOOL;
43
- } | {
44
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
45
- } | {
46
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
47
- writerDocumentTypeId: string;
48
- } | undefined;
49
17
  }, {
50
- type?: import("../..").PageType | undefined;
51
18
  title?: string | undefined;
52
19
  metaTitle?: string | undefined;
53
20
  metaDescription?: string | undefined;
54
21
  subTitle?: string | undefined;
55
22
  seoTextMd?: string | undefined;
56
23
  alias?: string | undefined;
57
- metadata?: {
58
- type: import("../..").PageType.WRITER_TOOL;
59
- } | {
60
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
61
- } | {
62
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
63
- writerDocumentTypeId: string;
64
- } | undefined;
65
24
  }>;
66
25
  type Request = z.infer<typeof RequestSchema>;
67
26
  const RequestParamSchema: z.ZodObject<{
@@ -81,34 +40,10 @@ export declare namespace UpdatePageCommand {
81
40
  subTitle: z.ZodString;
82
41
  seoTextMd: z.ZodString;
83
42
  alias: z.ZodString;
84
- type: z.ZodNativeEnum<typeof import("../..").PageType>;
85
- metadata: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
86
- type: z.ZodLiteral<import("../..").PageType.WRITER_TOOL>;
87
- }, "strip", z.ZodTypeAny, {
88
- type: import("../..").PageType.WRITER_TOOL;
89
- }, {
90
- type: import("../..").PageType.WRITER_TOOL;
91
- }>, z.ZodObject<{
92
- type: z.ZodLiteral<import("../..").PageType.EDU_TASK_SOLVING_TOOL>;
93
- }, "strip", z.ZodTypeAny, {
94
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
95
- }, {
96
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
97
- }>, z.ZodObject<{
98
- type: z.ZodLiteral<import("../..").PageType.WRITER_DOCUMENT_TYPE>;
99
- writerDocumentTypeId: z.ZodString;
100
- }, "strip", z.ZodTypeAny, {
101
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
102
- writerDocumentTypeId: string;
103
- }, {
104
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
105
- writerDocumentTypeId: string;
106
- }>]>;
107
43
  createdAt: z.ZodDate;
108
44
  updatedAt: z.ZodDate;
109
45
  }, "strip", z.ZodTypeAny, {
110
46
  uuid: string;
111
- type: import("../..").PageType;
112
47
  title: string;
113
48
  createdAt: Date;
114
49
  updatedAt: Date;
@@ -117,17 +52,8 @@ export declare namespace UpdatePageCommand {
117
52
  subTitle: string;
118
53
  seoTextMd: string;
119
54
  alias: string;
120
- metadata: {
121
- type: import("../..").PageType.WRITER_TOOL;
122
- } | {
123
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
124
- } | {
125
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
126
- writerDocumentTypeId: string;
127
- };
128
55
  }, {
129
56
  uuid: string;
130
- type: import("../..").PageType;
131
57
  title: string;
132
58
  createdAt: Date;
133
59
  updatedAt: Date;
@@ -136,19 +62,10 @@ export declare namespace UpdatePageCommand {
136
62
  subTitle: string;
137
63
  seoTextMd: string;
138
64
  alias: string;
139
- metadata: {
140
- type: import("../..").PageType.WRITER_TOOL;
141
- } | {
142
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
143
- } | {
144
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
145
- writerDocumentTypeId: string;
146
- };
147
65
  }>;
148
66
  }, "strip", z.ZodTypeAny, {
149
67
  data: {
150
68
  uuid: string;
151
- type: import("../..").PageType;
152
69
  title: string;
153
70
  createdAt: Date;
154
71
  updatedAt: Date;
@@ -157,19 +74,10 @@ export declare namespace UpdatePageCommand {
157
74
  subTitle: string;
158
75
  seoTextMd: string;
159
76
  alias: string;
160
- metadata: {
161
- type: import("../..").PageType.WRITER_TOOL;
162
- } | {
163
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
164
- } | {
165
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
166
- writerDocumentTypeId: string;
167
- };
168
77
  };
169
78
  }, {
170
79
  data: {
171
80
  uuid: string;
172
- type: import("../..").PageType;
173
81
  title: string;
174
82
  createdAt: Date;
175
83
  updatedAt: Date;
@@ -178,14 +86,6 @@ export declare namespace UpdatePageCommand {
178
86
  subTitle: string;
179
87
  seoTextMd: string;
180
88
  alias: string;
181
- metadata: {
182
- type: import("../..").PageType.WRITER_TOOL;
183
- } | {
184
- type: import("../..").PageType.EDU_TASK_SOLVING_TOOL;
185
- } | {
186
- type: import("../..").PageType.WRITER_DOCUMENT_TYPE;
187
- writerDocumentTypeId: string;
188
- };
189
89
  };
190
90
  }>;
191
91
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"update-page.command.d.ts","sourceRoot":"","sources":["../../../commands/page/update-page.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAId,CAAC;IAEb,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"update-page.command.d.ts","sourceRoot":"","sources":["../../../commands/page/update-page.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;MAId,CAAC;IAEb,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,2 +1,2 @@
1
- export * from './enums/page-type.enum';
1
+ export {};
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/page/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/page/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -1,17 +1,2 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./enums/page-type.enum"), exports);
@@ -1,2 +1,3 @@
1
1
  export * from './user-to-subscription-status.enum';
2
+ export * from './user-to-subscription-type.enum';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/user-to-subscription/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/user-to-subscription/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC"}
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user-to-subscription-status.enum"), exports);
18
+ __exportStar(require("./user-to-subscription-type.enum"), exports);
@@ -0,0 +1,5 @@
1
+ export declare enum USER_TO_SUBSCRIPTION_TYPE {
2
+ PAID = "paid",
3
+ INTERVAL = "interval"
4
+ }
5
+ //# sourceMappingURL=user-to-subscription-type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-to-subscription-type.enum.d.ts","sourceRoot":"","sources":["../../../../constants/user-to-subscription/enums/user-to-subscription-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACjC,IAAI,SAAS;IACb,QAAQ,aAAa;CACxB"}