@drax/dashboard-back 0.50.0 → 1.0.0

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.
@@ -4,377 +4,116 @@ declare const DashboardBaseSchema: z.ZodObject<{
4
4
  title: z.ZodString;
5
5
  cards: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
6
  entity: z.ZodString;
7
- type: z.ZodEnum<["paginate", "groupBy"]>;
7
+ type: z.ZodEnum<{
8
+ paginate: "paginate";
9
+ groupBy: "groupBy";
10
+ }>;
8
11
  title: z.ZodString;
9
12
  filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
13
  field: z.ZodString;
11
14
  operator: z.ZodString;
12
15
  value: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- value?: string;
15
- field?: string;
16
- operator?: string;
17
- }, {
18
- value?: string;
19
- field?: string;
20
- operator?: string;
21
- }>, "many">>;
16
+ }, z.core.$strip>>>;
22
17
  layout: z.ZodObject<{
23
18
  cols: z.ZodDefault<z.ZodNumber>;
24
19
  sm: z.ZodDefault<z.ZodNumber>;
25
20
  md: z.ZodDefault<z.ZodNumber>;
26
21
  lg: z.ZodDefault<z.ZodNumber>;
27
22
  height: z.ZodDefault<z.ZodNumber>;
28
- cardVariant: z.ZodDefault<z.ZodEnum<["text", "flat", "elevated", "tonal", "outlined", "plain"]>>;
29
- }, "strip", z.ZodTypeAny, {
30
- cols?: number;
31
- sm?: number;
32
- md?: number;
33
- lg?: number;
34
- height?: number;
35
- cardVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
36
- }, {
37
- cols?: number;
38
- sm?: number;
39
- md?: number;
40
- lg?: number;
41
- height?: number;
42
- cardVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
43
- }>;
23
+ cardVariant: z.ZodDefault<z.ZodEnum<{
24
+ text: "text";
25
+ flat: "flat";
26
+ elevated: "elevated";
27
+ tonal: "tonal";
28
+ outlined: "outlined";
29
+ plain: "plain";
30
+ }>>;
31
+ }, z.core.$strip>;
44
32
  groupBy: z.ZodObject<{
45
- fields: z.ZodArray<z.ZodString, "many">;
46
- dateFormat: z.ZodDefault<z.ZodOptional<z.ZodEnum<["year", "month", "day", "hour", "minute", "second"]>>>;
47
- render: z.ZodDefault<z.ZodOptional<z.ZodEnum<["table", "gallery", "pie", "bars"]>>>;
48
- }, "strip", z.ZodTypeAny, {
49
- fields?: string[];
50
- dateFormat?: "year" | "month" | "day" | "hour" | "minute" | "second";
51
- render?: "table" | "gallery" | "pie" | "bars";
52
- }, {
53
- fields?: string[];
54
- dateFormat?: "year" | "month" | "day" | "hour" | "minute" | "second";
55
- render?: "table" | "gallery" | "pie" | "bars";
56
- }>;
33
+ fields: z.ZodArray<z.ZodString>;
34
+ dateFormat: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
35
+ year: "year";
36
+ month: "month";
37
+ day: "day";
38
+ hour: "hour";
39
+ minute: "minute";
40
+ second: "second";
41
+ }>>>;
42
+ render: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
43
+ table: "table";
44
+ gallery: "gallery";
45
+ pie: "pie";
46
+ bars: "bars";
47
+ }>>>;
48
+ }, z.core.$strip>;
57
49
  paginate: z.ZodObject<{
58
- columns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
50
+ columns: z.ZodDefault<z.ZodArray<z.ZodString>>;
59
51
  orderBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
60
- order: z.ZodNullable<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
61
- }, "strip", z.ZodTypeAny, {
62
- columns?: string[];
63
- orderBy?: string;
64
- order?: "asc" | "desc";
65
- }, {
66
- columns?: string[];
67
- orderBy?: string;
68
- order?: "asc" | "desc";
69
- }>;
70
- }, "strip", z.ZodTypeAny, {
71
- title?: string;
72
- type?: "paginate" | "groupBy";
73
- entity?: string;
74
- paginate?: {
75
- columns?: string[];
76
- orderBy?: string;
77
- order?: "asc" | "desc";
78
- };
79
- groupBy?: {
80
- fields?: string[];
81
- dateFormat?: "year" | "month" | "day" | "hour" | "minute" | "second";
82
- render?: "table" | "gallery" | "pie" | "bars";
83
- };
84
- filters?: {
85
- value?: string;
86
- field?: string;
87
- operator?: string;
88
- }[];
89
- layout?: {
90
- cols?: number;
91
- sm?: number;
92
- md?: number;
93
- lg?: number;
94
- height?: number;
95
- cardVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
96
- };
97
- }, {
98
- title?: string;
99
- type?: "paginate" | "groupBy";
100
- entity?: string;
101
- paginate?: {
102
- columns?: string[];
103
- orderBy?: string;
104
- order?: "asc" | "desc";
105
- };
106
- groupBy?: {
107
- fields?: string[];
108
- dateFormat?: "year" | "month" | "day" | "hour" | "minute" | "second";
109
- render?: "table" | "gallery" | "pie" | "bars";
110
- };
111
- filters?: {
112
- value?: string;
113
- field?: string;
114
- operator?: string;
115
- }[];
116
- layout?: {
117
- cols?: number;
118
- sm?: number;
119
- md?: number;
120
- lg?: number;
121
- height?: number;
122
- cardVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
123
- };
124
- }>, "many">>;
125
- }, "strip", z.ZodTypeAny, {
126
- identifier?: string;
127
- title?: string;
128
- cards?: {
129
- title?: string;
130
- type?: "paginate" | "groupBy";
131
- entity?: string;
132
- paginate?: {
133
- columns?: string[];
134
- orderBy?: string;
135
- order?: "asc" | "desc";
136
- };
137
- groupBy?: {
138
- fields?: string[];
139
- dateFormat?: "year" | "month" | "day" | "hour" | "minute" | "second";
140
- render?: "table" | "gallery" | "pie" | "bars";
141
- };
142
- filters?: {
143
- value?: string;
144
- field?: string;
145
- operator?: string;
146
- }[];
147
- layout?: {
148
- cols?: number;
149
- sm?: number;
150
- md?: number;
151
- lg?: number;
152
- height?: number;
153
- cardVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
154
- };
155
- }[];
156
- }, {
157
- identifier?: string;
158
- title?: string;
159
- cards?: {
160
- title?: string;
161
- type?: "paginate" | "groupBy";
162
- entity?: string;
163
- paginate?: {
164
- columns?: string[];
165
- orderBy?: string;
166
- order?: "asc" | "desc";
167
- };
168
- groupBy?: {
169
- fields?: string[];
170
- dateFormat?: "year" | "month" | "day" | "hour" | "minute" | "second";
171
- render?: "table" | "gallery" | "pie" | "bars";
172
- };
173
- filters?: {
174
- value?: string;
175
- field?: string;
176
- operator?: string;
177
- }[];
178
- layout?: {
179
- cols?: number;
180
- sm?: number;
181
- md?: number;
182
- lg?: number;
183
- height?: number;
184
- cardVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
185
- };
186
- }[];
187
- }>;
52
+ order: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
53
+ asc: "asc";
54
+ desc: "desc";
55
+ }>>>;
56
+ }, z.core.$strip>;
57
+ }, z.core.$strip>>>;
58
+ }, z.core.$strip>;
188
59
  declare const DashboardSchema: z.ZodObject<{
189
60
  identifier: z.ZodString;
190
61
  title: z.ZodString;
191
62
  cards: z.ZodOptional<z.ZodArray<z.ZodObject<{
192
63
  entity: z.ZodString;
193
- type: z.ZodEnum<["paginate", "groupBy"]>;
64
+ type: z.ZodEnum<{
65
+ paginate: "paginate";
66
+ groupBy: "groupBy";
67
+ }>;
194
68
  title: z.ZodString;
195
69
  filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
196
70
  field: z.ZodString;
197
71
  operator: z.ZodString;
198
72
  value: z.ZodString;
199
- }, "strip", z.ZodTypeAny, {
200
- value?: string;
201
- field?: string;
202
- operator?: string;
203
- }, {
204
- value?: string;
205
- field?: string;
206
- operator?: string;
207
- }>, "many">>;
73
+ }, z.core.$strip>>>;
208
74
  layout: z.ZodObject<{
209
75
  cols: z.ZodDefault<z.ZodNumber>;
210
76
  sm: z.ZodDefault<z.ZodNumber>;
211
77
  md: z.ZodDefault<z.ZodNumber>;
212
78
  lg: z.ZodDefault<z.ZodNumber>;
213
79
  height: z.ZodDefault<z.ZodNumber>;
214
- cardVariant: z.ZodDefault<z.ZodEnum<["text", "flat", "elevated", "tonal", "outlined", "plain"]>>;
215
- }, "strip", z.ZodTypeAny, {
216
- cols?: number;
217
- sm?: number;
218
- md?: number;
219
- lg?: number;
220
- height?: number;
221
- cardVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
222
- }, {
223
- cols?: number;
224
- sm?: number;
225
- md?: number;
226
- lg?: number;
227
- height?: number;
228
- cardVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
229
- }>;
80
+ cardVariant: z.ZodDefault<z.ZodEnum<{
81
+ text: "text";
82
+ flat: "flat";
83
+ elevated: "elevated";
84
+ tonal: "tonal";
85
+ outlined: "outlined";
86
+ plain: "plain";
87
+ }>>;
88
+ }, z.core.$strip>;
230
89
  groupBy: z.ZodObject<{
231
- fields: z.ZodArray<z.ZodString, "many">;
232
- dateFormat: z.ZodDefault<z.ZodOptional<z.ZodEnum<["year", "month", "day", "hour", "minute", "second"]>>>;
233
- render: z.ZodDefault<z.ZodOptional<z.ZodEnum<["table", "gallery", "pie", "bars"]>>>;
234
- }, "strip", z.ZodTypeAny, {
235
- fields?: string[];
236
- dateFormat?: "year" | "month" | "day" | "hour" | "minute" | "second";
237
- render?: "table" | "gallery" | "pie" | "bars";
238
- }, {
239
- fields?: string[];
240
- dateFormat?: "year" | "month" | "day" | "hour" | "minute" | "second";
241
- render?: "table" | "gallery" | "pie" | "bars";
242
- }>;
90
+ fields: z.ZodArray<z.ZodString>;
91
+ dateFormat: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
92
+ year: "year";
93
+ month: "month";
94
+ day: "day";
95
+ hour: "hour";
96
+ minute: "minute";
97
+ second: "second";
98
+ }>>>;
99
+ render: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
100
+ table: "table";
101
+ gallery: "gallery";
102
+ pie: "pie";
103
+ bars: "bars";
104
+ }>>>;
105
+ }, z.core.$strip>;
243
106
  paginate: z.ZodObject<{
244
- columns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
107
+ columns: z.ZodDefault<z.ZodArray<z.ZodString>>;
245
108
  orderBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
246
- order: z.ZodNullable<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
247
- }, "strip", z.ZodTypeAny, {
248
- columns?: string[];
249
- orderBy?: string;
250
- order?: "asc" | "desc";
251
- }, {
252
- columns?: string[];
253
- orderBy?: string;
254
- order?: "asc" | "desc";
255
- }>;
256
- }, "strip", z.ZodTypeAny, {
257
- title?: string;
258
- type?: "paginate" | "groupBy";
259
- entity?: string;
260
- paginate?: {
261
- columns?: string[];
262
- orderBy?: string;
263
- order?: "asc" | "desc";
264
- };
265
- groupBy?: {
266
- fields?: string[];
267
- dateFormat?: "year" | "month" | "day" | "hour" | "minute" | "second";
268
- render?: "table" | "gallery" | "pie" | "bars";
269
- };
270
- filters?: {
271
- value?: string;
272
- field?: string;
273
- operator?: string;
274
- }[];
275
- layout?: {
276
- cols?: number;
277
- sm?: number;
278
- md?: number;
279
- lg?: number;
280
- height?: number;
281
- cardVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
282
- };
283
- }, {
284
- title?: string;
285
- type?: "paginate" | "groupBy";
286
- entity?: string;
287
- paginate?: {
288
- columns?: string[];
289
- orderBy?: string;
290
- order?: "asc" | "desc";
291
- };
292
- groupBy?: {
293
- fields?: string[];
294
- dateFormat?: "year" | "month" | "day" | "hour" | "minute" | "second";
295
- render?: "table" | "gallery" | "pie" | "bars";
296
- };
297
- filters?: {
298
- value?: string;
299
- field?: string;
300
- operator?: string;
301
- }[];
302
- layout?: {
303
- cols?: number;
304
- sm?: number;
305
- md?: number;
306
- lg?: number;
307
- height?: number;
308
- cardVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
309
- };
310
- }>, "many">>;
311
- } & {
109
+ order: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
110
+ asc: "asc";
111
+ desc: "desc";
112
+ }>>>;
113
+ }, z.core.$strip>;
114
+ }, z.core.$strip>>>;
312
115
  _id: z.ZodString;
313
- }, "strip", z.ZodTypeAny, {
314
- identifier?: string;
315
- title?: string;
316
- cards?: {
317
- title?: string;
318
- type?: "paginate" | "groupBy";
319
- entity?: string;
320
- paginate?: {
321
- columns?: string[];
322
- orderBy?: string;
323
- order?: "asc" | "desc";
324
- };
325
- groupBy?: {
326
- fields?: string[];
327
- dateFormat?: "year" | "month" | "day" | "hour" | "minute" | "second";
328
- render?: "table" | "gallery" | "pie" | "bars";
329
- };
330
- filters?: {
331
- value?: string;
332
- field?: string;
333
- operator?: string;
334
- }[];
335
- layout?: {
336
- cols?: number;
337
- sm?: number;
338
- md?: number;
339
- lg?: number;
340
- height?: number;
341
- cardVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
342
- };
343
- }[];
344
- _id?: string;
345
- }, {
346
- identifier?: string;
347
- title?: string;
348
- cards?: {
349
- title?: string;
350
- type?: "paginate" | "groupBy";
351
- entity?: string;
352
- paginate?: {
353
- columns?: string[];
354
- orderBy?: string;
355
- order?: "asc" | "desc";
356
- };
357
- groupBy?: {
358
- fields?: string[];
359
- dateFormat?: "year" | "month" | "day" | "hour" | "minute" | "second";
360
- render?: "table" | "gallery" | "pie" | "bars";
361
- };
362
- filters?: {
363
- value?: string;
364
- field?: string;
365
- operator?: string;
366
- }[];
367
- layout?: {
368
- cols?: number;
369
- sm?: number;
370
- md?: number;
371
- lg?: number;
372
- height?: number;
373
- cardVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
374
- };
375
- }[];
376
- _id?: string;
377
- }>;
116
+ }, z.core.$strip>;
378
117
  export default DashboardSchema;
379
118
  export { DashboardSchema, DashboardBaseSchema };
380
119
  //# sourceMappingURL=DashboardSchema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/DashboardSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCvB,CAAC;AAEH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIf,CAAA;AAEN,eAAe,eAAe,CAAC;AAC/B,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,CAAA"}
1
+ {"version":3,"file":"DashboardSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/DashboardSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmCvB,CAAC;AAEH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIf,CAAA;AAEN,eAAe,eAAe,CAAC;AAC/B,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,CAAA"}