@purpleschool/multisite 0.0.29 → 0.0.31

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,8 @@ 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>>>;
12
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
13
  createdAt: z.ZodDate;
12
14
  updatedAt: z.ZodDate;
13
15
  }, "createdAt" | "updatedAt" | "uuid">, "strip", z.ZodTypeAny, {
@@ -17,6 +19,8 @@ export declare namespace CreatePageCommand {
17
19
  subTitle: string;
18
20
  seoTextMd: string;
19
21
  alias: string;
22
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
23
+ toolOptionId?: string | null | undefined;
20
24
  }, {
21
25
  metaTitle: string;
22
26
  metaDescription: string;
@@ -24,6 +28,8 @@ export declare namespace CreatePageCommand {
24
28
  subTitle: string;
25
29
  seoTextMd: string;
26
30
  alias: string;
31
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
32
+ toolOptionId?: string | null | undefined;
27
33
  }>;
28
34
  type Request = z.infer<typeof RequestSchema>;
29
35
  const ResponseSchema: z.ZodObject<{
@@ -35,6 +41,8 @@ export declare namespace CreatePageCommand {
35
41
  subTitle: z.ZodString;
36
42
  seoTextMd: z.ZodString;
37
43
  alias: z.ZodString;
44
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
45
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
46
  createdAt: z.ZodDate;
39
47
  updatedAt: z.ZodDate;
40
48
  }, "strip", z.ZodTypeAny, {
@@ -45,6 +53,8 @@ export declare namespace CreatePageCommand {
45
53
  subTitle: string;
46
54
  seoTextMd: string;
47
55
  alias: string;
56
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
57
+ toolOptionId?: string | null | undefined;
48
58
  createdAt: Date;
49
59
  updatedAt: Date;
50
60
  }, {
@@ -55,6 +65,8 @@ export declare namespace CreatePageCommand {
55
65
  subTitle: string;
56
66
  seoTextMd: string;
57
67
  alias: string;
68
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
69
+ toolOptionId?: string | null | undefined;
58
70
  createdAt: Date;
59
71
  updatedAt: Date;
60
72
  }>;
@@ -67,6 +79,8 @@ export declare namespace CreatePageCommand {
67
79
  subTitle: string;
68
80
  seoTextMd: string;
69
81
  alias: string;
82
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
83
+ toolOptionId?: string | null | undefined;
70
84
  createdAt: Date;
71
85
  updatedAt: Date;
72
86
  };
@@ -79,6 +93,8 @@ export declare namespace CreatePageCommand {
79
93
  subTitle: string;
80
94
  seoTextMd: string;
81
95
  alias: string;
96
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
97
+ toolOptionId?: string | null | undefined;
82
98
  createdAt: Date;
83
99
  updatedAt: Date;
84
100
  };
@@ -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,8 @@ 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>>>;
12
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
13
  createdAt: z.ZodDate;
12
14
  updatedAt: z.ZodDate;
13
15
  }, "alias">, "strip", z.ZodTypeAny, {
@@ -25,6 +27,8 @@ export declare namespace FindPageByAliasCommand {
25
27
  subTitle: z.ZodString;
26
28
  seoTextMd: z.ZodString;
27
29
  alias: z.ZodString;
30
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
31
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
32
  createdAt: z.ZodDate;
29
33
  updatedAt: z.ZodDate;
30
34
  } & {
@@ -58,6 +62,8 @@ export declare namespace FindPageByAliasCommand {
58
62
  subTitle: string;
59
63
  seoTextMd: string;
60
64
  alias: string;
65
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
66
+ toolOptionId?: string | null | undefined;
61
67
  createdAt: Date;
62
68
  updatedAt: Date;
63
69
  questions: {
@@ -76,6 +82,8 @@ export declare namespace FindPageByAliasCommand {
76
82
  subTitle: string;
77
83
  seoTextMd: string;
78
84
  alias: string;
85
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
86
+ toolOptionId?: string | null | undefined;
79
87
  createdAt: Date;
80
88
  updatedAt: Date;
81
89
  questions: {
@@ -96,6 +104,8 @@ export declare namespace FindPageByAliasCommand {
96
104
  subTitle: string;
97
105
  seoTextMd: string;
98
106
  alias: string;
107
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
108
+ toolOptionId?: string | null | undefined;
99
109
  createdAt: Date;
100
110
  updatedAt: Date;
101
111
  questions: {
@@ -116,6 +126,8 @@ export declare namespace FindPageByAliasCommand {
116
126
  subTitle: string;
117
127
  seoTextMd: string;
118
128
  alias: string;
129
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
130
+ toolOptionId?: string | null | undefined;
119
131
  createdAt: Date;
120
132
  updatedAt: Date;
121
133
  questions: {
@@ -138,6 +150,8 @@ export declare namespace FindPageByAliasCommand {
138
150
  subTitle: z.ZodString;
139
151
  seoTextMd: z.ZodString;
140
152
  alias: z.ZodString;
153
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
154
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
155
  createdAt: z.ZodDate;
142
156
  updatedAt: z.ZodDate;
143
157
  } & {
@@ -171,6 +185,8 @@ export declare namespace FindPageByAliasCommand {
171
185
  subTitle: string;
172
186
  seoTextMd: string;
173
187
  alias: string;
188
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
189
+ toolOptionId?: string | null | undefined;
174
190
  createdAt: Date;
175
191
  updatedAt: Date;
176
192
  questions: {
@@ -189,6 +205,8 @@ export declare namespace FindPageByAliasCommand {
189
205
  subTitle: string;
190
206
  seoTextMd: string;
191
207
  alias: string;
208
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
209
+ toolOptionId?: string | null | undefined;
192
210
  createdAt: Date;
193
211
  updatedAt: Date;
194
212
  questions: {
@@ -209,6 +227,8 @@ export declare namespace FindPageByAliasCommand {
209
227
  subTitle: string;
210
228
  seoTextMd: string;
211
229
  alias: string;
230
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
231
+ toolOptionId?: string | null | undefined;
212
232
  createdAt: Date;
213
233
  updatedAt: Date;
214
234
  questions: {
@@ -229,6 +249,8 @@ export declare namespace FindPageByAliasCommand {
229
249
  subTitle: string;
230
250
  seoTextMd: string;
231
251
  alias: string;
252
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
253
+ toolOptionId?: string | null | undefined;
232
254
  createdAt: Date;
233
255
  updatedAt: Date;
234
256
  questions: {
@@ -250,6 +272,8 @@ export declare namespace FindPageByAliasCommand {
250
272
  subTitle: z.ZodString;
251
273
  seoTextMd: z.ZodString;
252
274
  alias: z.ZodString;
275
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
276
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
277
  createdAt: z.ZodDate;
254
278
  updatedAt: z.ZodDate;
255
279
  } & {
@@ -283,6 +307,8 @@ export declare namespace FindPageByAliasCommand {
283
307
  subTitle: string;
284
308
  seoTextMd: string;
285
309
  alias: string;
310
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
311
+ toolOptionId?: string | null | undefined;
286
312
  createdAt: Date;
287
313
  updatedAt: Date;
288
314
  questions: {
@@ -301,6 +327,8 @@ export declare namespace FindPageByAliasCommand {
301
327
  subTitle: string;
302
328
  seoTextMd: string;
303
329
  alias: string;
330
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
331
+ toolOptionId?: string | null | undefined;
304
332
  createdAt: Date;
305
333
  updatedAt: Date;
306
334
  questions: {
@@ -321,6 +349,8 @@ export declare namespace FindPageByAliasCommand {
321
349
  subTitle: string;
322
350
  seoTextMd: string;
323
351
  alias: string;
352
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
353
+ toolOptionId?: string | null | undefined;
324
354
  createdAt: Date;
325
355
  updatedAt: Date;
326
356
  questions: {
@@ -341,6 +371,8 @@ export declare namespace FindPageByAliasCommand {
341
371
  subTitle: string;
342
372
  seoTextMd: string;
343
373
  alias: string;
374
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
375
+ toolOptionId?: string | null | undefined;
344
376
  createdAt: Date;
345
377
  updatedAt: Date;
346
378
  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,8 @@ 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>>>;
37
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
38
  createdAt: z.ZodDate;
33
39
  updatedAt: z.ZodDate;
34
40
  } & {
@@ -62,6 +68,8 @@ export declare namespace FindPageByCriteriaCommand {
62
68
  subTitle: string;
63
69
  seoTextMd: string;
64
70
  alias: string;
71
+ toolType?: TOOL_TYPE | null | undefined;
72
+ toolOptionId?: string | null | undefined;
65
73
  createdAt: Date;
66
74
  updatedAt: Date;
67
75
  questions: {
@@ -80,6 +88,8 @@ export declare namespace FindPageByCriteriaCommand {
80
88
  subTitle: string;
81
89
  seoTextMd: string;
82
90
  alias: string;
91
+ toolType?: TOOL_TYPE | null | undefined;
92
+ toolOptionId?: string | null | undefined;
83
93
  createdAt: Date;
84
94
  updatedAt: Date;
85
95
  questions: {
@@ -102,6 +112,8 @@ export declare namespace FindPageByCriteriaCommand {
102
112
  subTitle: string;
103
113
  seoTextMd: string;
104
114
  alias: string;
115
+ toolType?: TOOL_TYPE | null | undefined;
116
+ toolOptionId?: string | null | undefined;
105
117
  createdAt: Date;
106
118
  updatedAt: Date;
107
119
  questions: {
@@ -124,6 +136,8 @@ export declare namespace FindPageByCriteriaCommand {
124
136
  subTitle: string;
125
137
  seoTextMd: string;
126
138
  alias: string;
139
+ toolType?: TOOL_TYPE | null | undefined;
140
+ toolOptionId?: string | null | undefined;
127
141
  createdAt: Date;
128
142
  updatedAt: Date;
129
143
  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,8 @@ 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>>>;
12
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
13
  createdAt: z.ZodDate;
12
14
  updatedAt: z.ZodDate;
13
15
  }, "uuid">, "strip", z.ZodTypeAny, {
@@ -25,6 +27,8 @@ export declare namespace FindPageCommand {
25
27
  subTitle: z.ZodString;
26
28
  seoTextMd: z.ZodString;
27
29
  alias: z.ZodString;
30
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
31
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
32
  createdAt: z.ZodDate;
29
33
  updatedAt: z.ZodDate;
30
34
  } & {
@@ -58,6 +62,8 @@ export declare namespace FindPageCommand {
58
62
  subTitle: string;
59
63
  seoTextMd: string;
60
64
  alias: string;
65
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
66
+ toolOptionId?: string | null | undefined;
61
67
  createdAt: Date;
62
68
  updatedAt: Date;
63
69
  questions: {
@@ -76,6 +82,8 @@ export declare namespace FindPageCommand {
76
82
  subTitle: string;
77
83
  seoTextMd: string;
78
84
  alias: string;
85
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
86
+ toolOptionId?: string | null | undefined;
79
87
  createdAt: Date;
80
88
  updatedAt: Date;
81
89
  questions: {
@@ -96,6 +104,8 @@ export declare namespace FindPageCommand {
96
104
  subTitle: string;
97
105
  seoTextMd: string;
98
106
  alias: string;
107
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
108
+ toolOptionId?: string | null | undefined;
99
109
  createdAt: Date;
100
110
  updatedAt: Date;
101
111
  questions: {
@@ -116,6 +126,8 @@ export declare namespace FindPageCommand {
116
126
  subTitle: string;
117
127
  seoTextMd: string;
118
128
  alias: string;
129
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
130
+ toolOptionId?: string | null | undefined;
119
131
  createdAt: Date;
120
132
  updatedAt: Date;
121
133
  questions: {
@@ -138,6 +150,8 @@ export declare namespace FindPageCommand {
138
150
  subTitle: z.ZodString;
139
151
  seoTextMd: z.ZodString;
140
152
  alias: z.ZodString;
153
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
154
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
155
  createdAt: z.ZodDate;
142
156
  updatedAt: z.ZodDate;
143
157
  } & {
@@ -171,6 +185,8 @@ export declare namespace FindPageCommand {
171
185
  subTitle: string;
172
186
  seoTextMd: string;
173
187
  alias: string;
188
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
189
+ toolOptionId?: string | null | undefined;
174
190
  createdAt: Date;
175
191
  updatedAt: Date;
176
192
  questions: {
@@ -189,6 +205,8 @@ export declare namespace FindPageCommand {
189
205
  subTitle: string;
190
206
  seoTextMd: string;
191
207
  alias: string;
208
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
209
+ toolOptionId?: string | null | undefined;
192
210
  createdAt: Date;
193
211
  updatedAt: Date;
194
212
  questions: {
@@ -209,6 +227,8 @@ export declare namespace FindPageCommand {
209
227
  subTitle: string;
210
228
  seoTextMd: string;
211
229
  alias: string;
230
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
231
+ toolOptionId?: string | null | undefined;
212
232
  createdAt: Date;
213
233
  updatedAt: Date;
214
234
  questions: {
@@ -229,6 +249,8 @@ export declare namespace FindPageCommand {
229
249
  subTitle: string;
230
250
  seoTextMd: string;
231
251
  alias: string;
252
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
253
+ toolOptionId?: string | null | undefined;
232
254
  createdAt: Date;
233
255
  updatedAt: Date;
234
256
  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,8 @@ 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>>>>;
11
+ toolOptionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
10
12
  }, "strip", z.ZodTypeAny, {
11
13
  metaTitle?: string | undefined;
12
14
  metaDescription?: string | undefined;
@@ -14,6 +16,8 @@ export declare namespace UpdatePageCommand {
14
16
  subTitle?: string | undefined;
15
17
  seoTextMd?: string | undefined;
16
18
  alias?: string | undefined;
19
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
20
+ toolOptionId?: string | null | undefined;
17
21
  }, {
18
22
  metaTitle?: string | undefined;
19
23
  metaDescription?: string | undefined;
@@ -21,6 +25,8 @@ export declare namespace UpdatePageCommand {
21
25
  subTitle?: string | undefined;
22
26
  seoTextMd?: string | undefined;
23
27
  alias?: string | undefined;
28
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
29
+ toolOptionId?: string | null | undefined;
24
30
  }>;
25
31
  type Request = z.infer<typeof RequestSchema>;
26
32
  const RequestParamSchema: z.ZodObject<{
@@ -40,6 +46,8 @@ export declare namespace UpdatePageCommand {
40
46
  subTitle: z.ZodString;
41
47
  seoTextMd: z.ZodString;
42
48
  alias: z.ZodString;
49
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
50
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
51
  createdAt: z.ZodDate;
44
52
  updatedAt: z.ZodDate;
45
53
  }, "strip", z.ZodTypeAny, {
@@ -50,6 +58,8 @@ export declare namespace UpdatePageCommand {
50
58
  subTitle: string;
51
59
  seoTextMd: string;
52
60
  alias: string;
61
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
62
+ toolOptionId?: string | null | undefined;
53
63
  createdAt: Date;
54
64
  updatedAt: Date;
55
65
  }, {
@@ -60,6 +70,8 @@ export declare namespace UpdatePageCommand {
60
70
  subTitle: string;
61
71
  seoTextMd: string;
62
72
  alias: string;
73
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
74
+ toolOptionId?: string | null | undefined;
63
75
  createdAt: Date;
64
76
  updatedAt: Date;
65
77
  }>;
@@ -72,6 +84,8 @@ export declare namespace UpdatePageCommand {
72
84
  subTitle: string;
73
85
  seoTextMd: string;
74
86
  alias: string;
87
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
88
+ toolOptionId?: string | null | undefined;
75
89
  createdAt: Date;
76
90
  updatedAt: Date;
77
91
  };
@@ -84,6 +98,8 @@ export declare namespace UpdatePageCommand {
84
98
  subTitle: string;
85
99
  seoTextMd: string;
86
100
  alias: string;
101
+ toolType?: import("../..").TOOL_TYPE | null | undefined;
102
+ toolOptionId?: string | null | undefined;
87
103
  createdAt: Date;
88
104
  updatedAt: Date;
89
105
  };
@@ -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,8 @@ 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>>>;
12
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
13
  createdAt: z.ZodDate;
11
14
  updatedAt: z.ZodDate;
12
15
  }, "strip", z.ZodTypeAny, {
@@ -17,6 +20,8 @@ export declare const PageSchema: z.ZodObject<{
17
20
  subTitle: string;
18
21
  seoTextMd: string;
19
22
  alias: string;
23
+ toolType?: TOOL_TYPE | null | undefined;
24
+ toolOptionId?: string | null | undefined;
20
25
  createdAt: Date;
21
26
  updatedAt: Date;
22
27
  }, {
@@ -27,6 +32,8 @@ export declare const PageSchema: z.ZodObject<{
27
32
  subTitle: string;
28
33
  seoTextMd: string;
29
34
  alias: string;
35
+ toolType?: TOOL_TYPE | null | undefined;
36
+ toolOptionId?: string | null | undefined;
30
37
  createdAt: Date;
31
38
  updatedAt: Date;
32
39
  }>;
@@ -38,6 +45,8 @@ export declare const PageWithQuestionsSchema: z.ZodObject<{
38
45
  subTitle: z.ZodString;
39
46
  seoTextMd: z.ZodString;
40
47
  alias: z.ZodString;
48
+ toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof TOOL_TYPE>>>;
49
+ toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
50
  createdAt: z.ZodDate;
42
51
  updatedAt: z.ZodDate;
43
52
  } & {
@@ -71,6 +80,8 @@ export declare const PageWithQuestionsSchema: z.ZodObject<{
71
80
  subTitle: string;
72
81
  seoTextMd: string;
73
82
  alias: string;
83
+ toolType?: TOOL_TYPE | null | undefined;
84
+ toolOptionId?: string | null | undefined;
74
85
  createdAt: Date;
75
86
  updatedAt: Date;
76
87
  questions: {
@@ -89,6 +100,8 @@ export declare const PageWithQuestionsSchema: z.ZodObject<{
89
100
  subTitle: string;
90
101
  seoTextMd: string;
91
102
  alias: string;
103
+ toolType?: TOOL_TYPE | null | undefined;
104
+ toolOptionId?: string | null | undefined;
92
105
  createdAt: Date;
93
106
  updatedAt: Date;
94
107
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYrB,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,8 @@ 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(),
16
+ toolOptionId: zod_1.z.string().uuid().nullable().optional(),
14
17
  createdAt: zod_1.z.date(),
15
18
  updatedAt: zod_1.z.date(),
16
19
  });
@@ -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,8 @@ 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(),
14
+ toolOptionId: z.string().uuid().nullable().optional(),
12
15
  createdAt: z.date(),
13
16
  updatedAt: z.date(),
14
17
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/multisite",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "description": "Multisite API contracts (DTO schemas, routes, constants)",
5
5
  "type": "commonjs",
6
6
  "main": "build/index.js",