@purpleschool/multisite 0.0.29 → 0.0.30

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.
@@ -8,6 +8,7 @@ export declare namespace CreatePageCommand {
8
8
  subTitle: z.ZodString;
9
9
  seoTextMd: z.ZodString;
10
10
  alias: z.ZodString;
11
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
11
12
  createdAt: z.ZodDate;
12
13
  updatedAt: z.ZodDate;
13
14
  }, "createdAt" | "updatedAt" | "uuid">, "strip", z.ZodTypeAny, {
@@ -17,6 +18,7 @@ export declare namespace CreatePageCommand {
17
18
  subTitle: string;
18
19
  seoTextMd: string;
19
20
  alias: string;
21
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
20
22
  }, {
21
23
  metaTitle: string;
22
24
  metaDescription: string;
@@ -24,6 +26,7 @@ export declare namespace CreatePageCommand {
24
26
  subTitle: string;
25
27
  seoTextMd: string;
26
28
  alias: string;
29
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
27
30
  }>;
28
31
  type Request = z.infer<typeof RequestSchema>;
29
32
  const ResponseSchema: z.ZodObject<{
@@ -35,6 +38,7 @@ export declare namespace CreatePageCommand {
35
38
  subTitle: z.ZodString;
36
39
  seoTextMd: z.ZodString;
37
40
  alias: z.ZodString;
41
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
38
42
  createdAt: z.ZodDate;
39
43
  updatedAt: z.ZodDate;
40
44
  }, "strip", z.ZodTypeAny, {
@@ -45,6 +49,7 @@ export declare namespace CreatePageCommand {
45
49
  subTitle: string;
46
50
  seoTextMd: string;
47
51
  alias: string;
52
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
48
53
  createdAt: Date;
49
54
  updatedAt: Date;
50
55
  }, {
@@ -55,6 +60,7 @@ export declare namespace CreatePageCommand {
55
60
  subTitle: string;
56
61
  seoTextMd: string;
57
62
  alias: string;
63
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
58
64
  createdAt: Date;
59
65
  updatedAt: Date;
60
66
  }>;
@@ -67,6 +73,7 @@ export declare namespace CreatePageCommand {
67
73
  subTitle: string;
68
74
  seoTextMd: string;
69
75
  alias: string;
76
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
70
77
  createdAt: Date;
71
78
  updatedAt: Date;
72
79
  };
@@ -79,6 +86,7 @@ export declare namespace CreatePageCommand {
79
86
  subTitle: string;
80
87
  seoTextMd: string;
81
88
  alias: string;
89
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
82
90
  createdAt: Date;
83
91
  updatedAt: Date;
84
92
  };
@@ -1 +1 @@
1
- {"version":3,"file":"create-page.command.d.ts","sourceRoot":"","sources":["../../../commands/page/create-page.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;MAIxB,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;CACzD"}
1
+ {"version":3,"file":"create-page.command.d.ts","sourceRoot":"","sources":["../../../commands/page/create-page.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIxB,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;CACzD"}
@@ -8,6 +8,7 @@ export declare namespace FindPageByAliasCommand {
8
8
  subTitle: z.ZodString;
9
9
  seoTextMd: z.ZodString;
10
10
  alias: z.ZodString;
11
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
11
12
  createdAt: z.ZodDate;
12
13
  updatedAt: z.ZodDate;
13
14
  }, "alias">, "strip", z.ZodTypeAny, {
@@ -25,6 +26,7 @@ export declare namespace FindPageByAliasCommand {
25
26
  subTitle: z.ZodString;
26
27
  seoTextMd: z.ZodString;
27
28
  alias: z.ZodString;
29
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
28
30
  createdAt: z.ZodDate;
29
31
  updatedAt: z.ZodDate;
30
32
  } & {
@@ -58,6 +60,7 @@ export declare namespace FindPageByAliasCommand {
58
60
  subTitle: string;
59
61
  seoTextMd: string;
60
62
  alias: string;
63
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
61
64
  createdAt: Date;
62
65
  updatedAt: Date;
63
66
  questions: {
@@ -76,6 +79,7 @@ export declare namespace FindPageByAliasCommand {
76
79
  subTitle: string;
77
80
  seoTextMd: string;
78
81
  alias: string;
82
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
79
83
  createdAt: Date;
80
84
  updatedAt: Date;
81
85
  questions: {
@@ -96,6 +100,7 @@ export declare namespace FindPageByAliasCommand {
96
100
  subTitle: string;
97
101
  seoTextMd: string;
98
102
  alias: string;
103
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
99
104
  createdAt: Date;
100
105
  updatedAt: Date;
101
106
  questions: {
@@ -116,6 +121,7 @@ export declare namespace FindPageByAliasCommand {
116
121
  subTitle: string;
117
122
  seoTextMd: string;
118
123
  alias: string;
124
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
119
125
  createdAt: Date;
120
126
  updatedAt: Date;
121
127
  questions: {
@@ -138,6 +144,7 @@ export declare namespace FindPageByAliasCommand {
138
144
  subTitle: z.ZodString;
139
145
  seoTextMd: z.ZodString;
140
146
  alias: z.ZodString;
147
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
141
148
  createdAt: z.ZodDate;
142
149
  updatedAt: z.ZodDate;
143
150
  } & {
@@ -171,6 +178,7 @@ export declare namespace FindPageByAliasCommand {
171
178
  subTitle: string;
172
179
  seoTextMd: string;
173
180
  alias: string;
181
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
174
182
  createdAt: Date;
175
183
  updatedAt: Date;
176
184
  questions: {
@@ -189,6 +197,7 @@ export declare namespace FindPageByAliasCommand {
189
197
  subTitle: string;
190
198
  seoTextMd: string;
191
199
  alias: string;
200
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
192
201
  createdAt: Date;
193
202
  updatedAt: Date;
194
203
  questions: {
@@ -209,6 +218,7 @@ export declare namespace FindPageByAliasCommand {
209
218
  subTitle: string;
210
219
  seoTextMd: string;
211
220
  alias: string;
221
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
212
222
  createdAt: Date;
213
223
  updatedAt: Date;
214
224
  questions: {
@@ -229,6 +239,7 @@ export declare namespace FindPageByAliasCommand {
229
239
  subTitle: string;
230
240
  seoTextMd: string;
231
241
  alias: string;
242
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
232
243
  createdAt: Date;
233
244
  updatedAt: Date;
234
245
  questions: {
@@ -250,6 +261,7 @@ export declare namespace FindPageByAliasCommand {
250
261
  subTitle: z.ZodString;
251
262
  seoTextMd: z.ZodString;
252
263
  alias: z.ZodString;
264
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
253
265
  createdAt: z.ZodDate;
254
266
  updatedAt: z.ZodDate;
255
267
  } & {
@@ -283,6 +295,7 @@ export declare namespace FindPageByAliasCommand {
283
295
  subTitle: string;
284
296
  seoTextMd: string;
285
297
  alias: string;
298
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
286
299
  createdAt: Date;
287
300
  updatedAt: Date;
288
301
  questions: {
@@ -301,6 +314,7 @@ export declare namespace FindPageByAliasCommand {
301
314
  subTitle: string;
302
315
  seoTextMd: string;
303
316
  alias: string;
317
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
304
318
  createdAt: Date;
305
319
  updatedAt: Date;
306
320
  questions: {
@@ -321,6 +335,7 @@ export declare namespace FindPageByAliasCommand {
321
335
  subTitle: string;
322
336
  seoTextMd: string;
323
337
  alias: string;
338
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
324
339
  createdAt: Date;
325
340
  updatedAt: Date;
326
341
  questions: {
@@ -341,6 +356,7 @@ export declare namespace FindPageByAliasCommand {
341
356
  subTitle: string;
342
357
  seoTextMd: string;
343
358
  alias: string;
359
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
344
360
  createdAt: Date;
345
361
  updatedAt: Date;
346
362
  questions: {
@@ -1 +1 @@
1
- {"version":3,"file":"find-page-by-alias.command.d.ts","sourceRoot":"","sources":["../../../commands/page/find-page-by-alias.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,sBAAsB,CAAC;IAC7B,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,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEhC,CAAC;IAEI,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAE9B,CAAC;IAEH,KAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAEhE,KAAY,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;CACtE"}
1
+ {"version":3,"file":"find-page-by-alias.command.d.ts","sourceRoot":"","sources":["../../../commands/page/find-page-by-alias.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,sBAAsB,CAAC;IAC7B,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,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEhC,CAAC;IAEI,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAE9B,CAAC;IAEH,KAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAEhE,KAAY,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;CACtE"}
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { TOOL_TYPE } from '../../constants';
2
3
  export declare namespace FindPageByCriteriaCommand {
3
4
  const RequestQuerySchema: z.ZodObject<{
4
5
  title: z.ZodOptional<z.ZodString>;
@@ -6,18 +7,21 @@ export declare namespace FindPageByCriteriaCommand {
6
7
  uuid: z.ZodOptional<z.ZodString>;
7
8
  limit: z.ZodOptional<z.ZodNumber>;
8
9
  offset: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
10
+ toolType: z.ZodOptional<z.ZodNativeEnum<typeof TOOL_TYPE>>;
9
11
  }, "strip", z.ZodTypeAny, {
10
12
  title?: string | undefined;
11
13
  alias?: string | undefined;
12
14
  uuid?: string | undefined;
13
15
  limit?: number | undefined;
14
16
  offset?: number | undefined;
17
+ toolType?: TOOL_TYPE | undefined;
15
18
  }, {
16
19
  title?: string | undefined;
17
20
  alias?: string | undefined;
18
21
  uuid?: string | undefined;
19
22
  limit?: number | undefined;
20
23
  offset?: number | undefined;
24
+ toolType?: TOOL_TYPE | undefined;
21
25
  }>;
22
26
  type RequestQuery = z.infer<typeof RequestQuerySchema>;
23
27
  const ResponseSchema: z.ZodObject<{
@@ -29,6 +33,7 @@ export declare namespace FindPageByCriteriaCommand {
29
33
  subTitle: z.ZodString;
30
34
  seoTextMd: z.ZodString;
31
35
  alias: z.ZodString;
36
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof TOOL_TYPE>>>;
32
37
  createdAt: z.ZodDate;
33
38
  updatedAt: z.ZodDate;
34
39
  } & {
@@ -62,6 +67,7 @@ export declare namespace FindPageByCriteriaCommand {
62
67
  subTitle: string;
63
68
  seoTextMd: string;
64
69
  alias: string;
70
+ toolType?: TOOL_TYPE | null | undefined;
65
71
  createdAt: Date;
66
72
  updatedAt: Date;
67
73
  questions: {
@@ -80,6 +86,7 @@ export declare namespace FindPageByCriteriaCommand {
80
86
  subTitle: string;
81
87
  seoTextMd: string;
82
88
  alias: string;
89
+ toolType?: TOOL_TYPE | null | undefined;
83
90
  createdAt: Date;
84
91
  updatedAt: Date;
85
92
  questions: {
@@ -102,6 +109,7 @@ export declare namespace FindPageByCriteriaCommand {
102
109
  subTitle: string;
103
110
  seoTextMd: string;
104
111
  alias: string;
112
+ toolType?: TOOL_TYPE | null | undefined;
105
113
  createdAt: Date;
106
114
  updatedAt: Date;
107
115
  questions: {
@@ -124,6 +132,7 @@ export declare namespace FindPageByCriteriaCommand {
124
132
  subTitle: string;
125
133
  seoTextMd: string;
126
134
  alias: string;
135
+ toolType?: TOOL_TYPE | null | undefined;
127
136
  createdAt: Date;
128
137
  updatedAt: Date;
129
138
  questions: {
@@ -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;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"}
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,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,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"}
@@ -3,6 +3,7 @@ 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 constants_1 = require("../../constants");
6
7
  var FindPageByCriteriaCommand;
7
8
  (function (FindPageByCriteriaCommand) {
8
9
  FindPageByCriteriaCommand.RequestQuerySchema = zod_1.z.object({
@@ -11,6 +12,7 @@ var FindPageByCriteriaCommand;
11
12
  uuid: zod_1.z.string().uuid().optional(),
12
13
  limit: zod_1.z.coerce.number().min(1).optional(),
13
14
  offset: zod_1.z.coerce.number().min(0).default(0).optional(),
15
+ toolType: zod_1.z.nativeEnum(constants_1.TOOL_TYPE).optional(),
14
16
  });
15
17
  FindPageByCriteriaCommand.ResponseSchema = zod_1.z.object({
16
18
  data: zod_1.z.array(models_1.PageWithQuestionsSchema),
@@ -8,6 +8,7 @@ export declare namespace FindPageCommand {
8
8
  subTitle: z.ZodString;
9
9
  seoTextMd: z.ZodString;
10
10
  alias: z.ZodString;
11
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
11
12
  createdAt: z.ZodDate;
12
13
  updatedAt: z.ZodDate;
13
14
  }, "uuid">, "strip", z.ZodTypeAny, {
@@ -25,6 +26,7 @@ export declare namespace FindPageCommand {
25
26
  subTitle: z.ZodString;
26
27
  seoTextMd: z.ZodString;
27
28
  alias: z.ZodString;
29
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
28
30
  createdAt: z.ZodDate;
29
31
  updatedAt: z.ZodDate;
30
32
  } & {
@@ -58,6 +60,7 @@ export declare namespace FindPageCommand {
58
60
  subTitle: string;
59
61
  seoTextMd: string;
60
62
  alias: string;
63
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
61
64
  createdAt: Date;
62
65
  updatedAt: Date;
63
66
  questions: {
@@ -76,6 +79,7 @@ export declare namespace FindPageCommand {
76
79
  subTitle: string;
77
80
  seoTextMd: string;
78
81
  alias: string;
82
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
79
83
  createdAt: Date;
80
84
  updatedAt: Date;
81
85
  questions: {
@@ -96,6 +100,7 @@ export declare namespace FindPageCommand {
96
100
  subTitle: string;
97
101
  seoTextMd: string;
98
102
  alias: string;
103
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
99
104
  createdAt: Date;
100
105
  updatedAt: Date;
101
106
  questions: {
@@ -116,6 +121,7 @@ export declare namespace FindPageCommand {
116
121
  subTitle: string;
117
122
  seoTextMd: string;
118
123
  alias: string;
124
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
119
125
  createdAt: Date;
120
126
  updatedAt: Date;
121
127
  questions: {
@@ -138,6 +144,7 @@ export declare namespace FindPageCommand {
138
144
  subTitle: z.ZodString;
139
145
  seoTextMd: z.ZodString;
140
146
  alias: z.ZodString;
147
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
141
148
  createdAt: z.ZodDate;
142
149
  updatedAt: z.ZodDate;
143
150
  } & {
@@ -171,6 +178,7 @@ export declare namespace FindPageCommand {
171
178
  subTitle: string;
172
179
  seoTextMd: string;
173
180
  alias: string;
181
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
174
182
  createdAt: Date;
175
183
  updatedAt: Date;
176
184
  questions: {
@@ -189,6 +197,7 @@ export declare namespace FindPageCommand {
189
197
  subTitle: string;
190
198
  seoTextMd: string;
191
199
  alias: string;
200
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
192
201
  createdAt: Date;
193
202
  updatedAt: Date;
194
203
  questions: {
@@ -209,6 +218,7 @@ export declare namespace FindPageCommand {
209
218
  subTitle: string;
210
219
  seoTextMd: string;
211
220
  alias: string;
221
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
212
222
  createdAt: Date;
213
223
  updatedAt: Date;
214
224
  questions: {
@@ -229,6 +239,7 @@ export declare namespace FindPageCommand {
229
239
  subTitle: string;
230
240
  seoTextMd: string;
231
241
  alias: string;
242
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
232
243
  createdAt: Date;
233
244
  updatedAt: Date;
234
245
  questions: {
@@ -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"}
@@ -7,6 +7,7 @@ export declare namespace UpdatePageCommand {
7
7
  subTitle: z.ZodOptional<z.ZodString>;
8
8
  seoTextMd: z.ZodOptional<z.ZodString>;
9
9
  alias: z.ZodOptional<z.ZodString>;
10
+ toolType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>>;
10
11
  }, "strip", z.ZodTypeAny, {
11
12
  metaTitle?: string | undefined;
12
13
  metaDescription?: string | undefined;
@@ -14,6 +15,7 @@ export declare namespace UpdatePageCommand {
14
15
  subTitle?: string | undefined;
15
16
  seoTextMd?: string | undefined;
16
17
  alias?: string | undefined;
18
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
17
19
  }, {
18
20
  metaTitle?: string | undefined;
19
21
  metaDescription?: string | undefined;
@@ -21,6 +23,7 @@ export declare namespace UpdatePageCommand {
21
23
  subTitle?: string | undefined;
22
24
  seoTextMd?: string | undefined;
23
25
  alias?: string | undefined;
26
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
24
27
  }>;
25
28
  type Request = z.infer<typeof RequestSchema>;
26
29
  const RequestParamSchema: z.ZodObject<{
@@ -40,6 +43,7 @@ export declare namespace UpdatePageCommand {
40
43
  subTitle: z.ZodString;
41
44
  seoTextMd: z.ZodString;
42
45
  alias: z.ZodString;
46
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
43
47
  createdAt: z.ZodDate;
44
48
  updatedAt: z.ZodDate;
45
49
  }, "strip", z.ZodTypeAny, {
@@ -50,6 +54,7 @@ export declare namespace UpdatePageCommand {
50
54
  subTitle: string;
51
55
  seoTextMd: string;
52
56
  alias: string;
57
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
53
58
  createdAt: Date;
54
59
  updatedAt: Date;
55
60
  }, {
@@ -60,6 +65,7 @@ export declare namespace UpdatePageCommand {
60
65
  subTitle: string;
61
66
  seoTextMd: string;
62
67
  alias: string;
68
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
63
69
  createdAt: Date;
64
70
  updatedAt: Date;
65
71
  }>;
@@ -72,6 +78,7 @@ export declare namespace UpdatePageCommand {
72
78
  subTitle: string;
73
79
  seoTextMd: string;
74
80
  alias: string;
81
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
75
82
  createdAt: Date;
76
83
  updatedAt: Date;
77
84
  };
@@ -84,6 +91,7 @@ export declare namespace UpdatePageCommand {
84
91
  subTitle: string;
85
92
  seoTextMd: string;
86
93
  alias: string;
94
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
87
95
  createdAt: Date;
88
96
  updatedAt: Date;
89
97
  };
@@ -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,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { TOOL_TYPE } from '../constants';
2
3
  export declare const PageSchema: z.ZodObject<{
3
4
  uuid: z.ZodString;
4
5
  metaTitle: z.ZodString;
@@ -7,6 +8,7 @@ export declare const PageSchema: z.ZodObject<{
7
8
  subTitle: z.ZodString;
8
9
  seoTextMd: z.ZodString;
9
10
  alias: z.ZodString;
11
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof TOOL_TYPE>>>;
10
12
  createdAt: z.ZodDate;
11
13
  updatedAt: z.ZodDate;
12
14
  }, "strip", z.ZodTypeAny, {
@@ -17,6 +19,7 @@ export declare const PageSchema: z.ZodObject<{
17
19
  subTitle: string;
18
20
  seoTextMd: string;
19
21
  alias: string;
22
+ toolType?: TOOL_TYPE | null | undefined;
20
23
  createdAt: Date;
21
24
  updatedAt: Date;
22
25
  }, {
@@ -27,6 +30,7 @@ export declare const PageSchema: z.ZodObject<{
27
30
  subTitle: string;
28
31
  seoTextMd: string;
29
32
  alias: string;
33
+ toolType?: TOOL_TYPE | null | undefined;
30
34
  createdAt: Date;
31
35
  updatedAt: Date;
32
36
  }>;
@@ -38,6 +42,7 @@ export declare const PageWithQuestionsSchema: z.ZodObject<{
38
42
  subTitle: z.ZodString;
39
43
  seoTextMd: z.ZodString;
40
44
  alias: z.ZodString;
45
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof TOOL_TYPE>>>;
41
46
  createdAt: z.ZodDate;
42
47
  updatedAt: z.ZodDate;
43
48
  } & {
@@ -71,6 +76,7 @@ export declare const PageWithQuestionsSchema: z.ZodObject<{
71
76
  subTitle: string;
72
77
  seoTextMd: string;
73
78
  alias: string;
79
+ toolType?: TOOL_TYPE | null | undefined;
74
80
  createdAt: Date;
75
81
  updatedAt: Date;
76
82
  questions: {
@@ -89,6 +95,7 @@ export declare const PageWithQuestionsSchema: z.ZodObject<{
89
95
  subTitle: string;
90
96
  seoTextMd: string;
91
97
  alias: string;
98
+ toolType?: TOOL_TYPE | null | undefined;
92
99
  createdAt: Date;
93
100
  updatedAt: Date;
94
101
  questions: {
@@ -1 +1 @@
1
- {"version":3,"file":"page.schema.d.ts","sourceRoot":"","sources":["../../models/page.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAElC,CAAC"}
1
+ {"version":3,"file":"page.schema.d.ts","sourceRoot":"","sources":["../../models/page.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAElC,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PageWithQuestionsSchema = exports.PageSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const page_question_schema_1 = require("./page-question.schema");
6
+ const constants_1 = require("../constants");
6
7
  exports.PageSchema = zod_1.z.object({
7
8
  uuid: zod_1.z.string().uuid(),
8
9
  metaTitle: zod_1.z.string().min(3).max(16384),
@@ -11,6 +12,7 @@ exports.PageSchema = zod_1.z.object({
11
12
  subTitle: zod_1.z.string().min(3).max(16384),
12
13
  seoTextMd: zod_1.z.string().min(3).max(16384),
13
14
  alias: zod_1.z.string().min(3).max(16384),
15
+ toolType: zod_1.z.nativeEnum(constants_1.TOOL_TYPE).nullable().optional(),
14
16
  createdAt: zod_1.z.date(),
15
17
  updatedAt: zod_1.z.date(),
16
18
  });
@@ -1,5 +1,6 @@
1
1
  import { PageWithQuestionsSchema } from '../../models';
2
2
  import { z } from 'zod';
3
+ import { TOOL_TYPE } from '../../constants';
3
4
 
4
5
  export namespace FindPageByCriteriaCommand {
5
6
  export const RequestQuerySchema = z.object({
@@ -8,6 +9,7 @@ export namespace FindPageByCriteriaCommand {
8
9
  uuid: z.string().uuid().optional(),
9
10
  limit: z.coerce.number().min(1).optional(),
10
11
  offset: z.coerce.number().min(0).default(0).optional(),
12
+ toolType: z.nativeEnum(TOOL_TYPE).optional(),
11
13
  });
12
14
 
13
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { PageQuestionSchema } from './page-question.schema';
3
+ import { TOOL_TYPE } from '../constants';
3
4
 
4
5
  export const PageSchema = z.object({
5
6
  uuid: z.string().uuid(),
@@ -9,6 +10,7 @@ export const PageSchema = z.object({
9
10
  subTitle: z.string().min(3).max(16384),
10
11
  seoTextMd: z.string().min(3).max(16384),
11
12
  alias: z.string().min(3).max(16384),
13
+ toolType: z.nativeEnum(TOOL_TYPE).nullable().optional(),
12
14
  createdAt: z.date(),
13
15
  updatedAt: z.date(),
14
16
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/multisite",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "Multisite API contracts (DTO schemas, routes, constants)",
5
5
  "type": "commonjs",
6
6
  "main": "build/index.js",