@purpleschool/multisite 0.0.17 → 0.0.19
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/api/controller/http/subscription.ts +1 -0
- package/api/controller/http/user.ts +7 -0
- package/api/routes.ts +14 -0
- package/build/api/controller/http/subscription.d.ts +1 -0
- package/build/api/controller/http/subscription.d.ts.map +1 -1
- package/build/api/controller/http/subscription.js +1 -0
- package/build/api/controller/http/user.d.ts +7 -0
- package/build/api/controller/http/user.d.ts.map +1 -1
- package/build/api/controller/http/user.js +7 -0
- package/build/api/routes.d.ts +8 -0
- package/build/api/routes.d.ts.map +1 -1
- package/build/api/routes.js +8 -0
- package/build/commands/page/create-page.command.d.ts +0 -100
- package/build/commands/page/create-page.command.d.ts.map +1 -1
- package/build/commands/page/find-page-by-alias.command.d.ts +0 -200
- package/build/commands/page/find-page-by-alias.command.d.ts.map +1 -1
- package/build/commands/page/find-page-by-criteria.command.d.ts +0 -63
- package/build/commands/page/find-page-by-criteria.command.d.ts.map +1 -1
- package/build/commands/page/find-page-by-criteria.command.js +0 -2
- package/build/commands/page/find-page.command.d.ts +0 -141
- package/build/commands/page/find-page.command.d.ts.map +1 -1
- package/build/commands/page/update-page.command.d.ts +0 -100
- package/build/commands/page/update-page.command.d.ts.map +1 -1
- package/build/commands/subscription/index.d.ts +1 -0
- package/build/commands/subscription/index.d.ts.map +1 -1
- package/build/commands/subscription/index.js +1 -0
- package/build/commands/subscription/recover-subscription.command.d.ts +14 -0
- package/build/commands/subscription/recover-subscription.command.d.ts.map +1 -0
- package/build/commands/subscription/recover-subscription.command.js +11 -0
- package/build/constants/errors/errors.d.ts +5 -0
- package/build/constants/errors/errors.d.ts.map +1 -1
- package/build/constants/errors/errors.js +5 -0
- package/build/constants/page/index.d.ts +1 -1
- package/build/constants/page/index.d.ts.map +1 -1
- package/build/constants/page/index.js +0 -15
- package/build/models/page.schema.d.ts +0 -129
- package/build/models/page.schema.d.ts.map +1 -1
- package/build/models/page.schema.js +1 -19
- package/build/queries/user/find-users.command.d.ts +83 -0
- package/build/queries/user/find-users.command.d.ts.map +1 -0
- package/build/queries/user/find-users.command.js +27 -0
- package/build/queries/user/get-all-users.command.d.ts +38 -0
- package/build/queries/user/get-all-users.command.d.ts.map +1 -0
- package/build/queries/user/get-all-users.command.js +16 -0
- package/build/queries/user/index.d.ts +2 -0
- package/build/queries/user/index.d.ts.map +1 -1
- package/build/queries/user/index.js +2 -0
- package/commands/page/find-page-by-criteria.command.ts +0 -2
- package/commands/subscription/index.ts +1 -0
- package/commands/subscription/recover-subscription.command.ts +11 -0
- package/constants/errors/errors.ts +5 -0
- package/constants/page/index.ts +1 -1
- package/models/page.schema.ts +0 -22
- package/package.json +1 -1
- package/queries/user/find-users.command.ts +29 -0
- package/queries/user/get-all-users.command.ts +17 -0
- package/queries/user/index.ts +2 -0
- package/build/constants/page/enums/page-type.enum.d.ts +0 -6
- package/build/constants/page/enums/page-type.enum.d.ts.map +0 -1
- package/build/constants/page/enums/page-type.enum.js +0 -9
- package/constants/page/enums/page-type.enum.ts +0 -5
|
@@ -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
|
|
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
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/subscription/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/subscription/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC"}
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./buy-subscription.command"), exports);
|
|
18
18
|
__exportStar(require("./fast-buy-subscription.command"), exports);
|
|
19
19
|
__exportStar(require("./cancel-subscription.command"), exports);
|
|
20
|
+
__exportStar(require("./recover-subscription.command"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace RecoverSubscriptionCommand {
|
|
3
|
+
const RequestParamSchema: z.ZodObject<{
|
|
4
|
+
uuidSiteUserToSubscription: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
uuidSiteUserToSubscription: string;
|
|
7
|
+
}, {
|
|
8
|
+
uuidSiteUserToSubscription: string;
|
|
9
|
+
}>;
|
|
10
|
+
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
11
|
+
const ResponseSchema: z.ZodVoid;
|
|
12
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=recover-subscription.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recover-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/recover-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc,WAAW,CAAC;IACvC,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecoverSubscriptionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var RecoverSubscriptionCommand;
|
|
6
|
+
(function (RecoverSubscriptionCommand) {
|
|
7
|
+
RecoverSubscriptionCommand.RequestParamSchema = zod_1.z.object({
|
|
8
|
+
uuidSiteUserToSubscription: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
RecoverSubscriptionCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
+
})(RecoverSubscriptionCommand || (exports.RecoverSubscriptionCommand = RecoverSubscriptionCommand = {}));
|
|
@@ -204,6 +204,11 @@ export declare const ERRORS: {
|
|
|
204
204
|
readonly code: "SUBSCRIPTION_006";
|
|
205
205
|
readonly httpCode: 500;
|
|
206
206
|
};
|
|
207
|
+
readonly SUBSCRIPTION_RECOVER_ERROR: {
|
|
208
|
+
readonly message: "Ошибка при восстановлении подписки";
|
|
209
|
+
readonly code: "SUBSCRIPTION_007";
|
|
210
|
+
readonly httpCode: 500;
|
|
211
|
+
};
|
|
207
212
|
readonly ORDER_NOT_FOUND: {
|
|
208
213
|
readonly message: "Заказ не найден";
|
|
209
214
|
readonly code: "ORDER_001";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2xBT,CAAC"}
|
|
@@ -213,6 +213,11 @@ exports.ERRORS = {
|
|
|
213
213
|
code: 'SUBSCRIPTION_006',
|
|
214
214
|
httpCode: 500,
|
|
215
215
|
},
|
|
216
|
+
SUBSCRIPTION_RECOVER_ERROR: {
|
|
217
|
+
message: 'Ошибка при восстановлении подписки',
|
|
218
|
+
code: 'SUBSCRIPTION_007',
|
|
219
|
+
httpCode: 500,
|
|
220
|
+
},
|
|
216
221
|
// ORDER
|
|
217
222
|
ORDER_NOT_FOUND: {
|
|
218
223
|
message: 'Заказ не найден',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
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,
|
|
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);
|