@new-project-media/client-frontends-shared-types 1.0.1

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.
@@ -0,0 +1,557 @@
1
+ import { z } from 'zod';
2
+ import { OrganizationItemSchema, LinkedPeopleSchema, QueueJoinSchema } from './entity';
3
+ export declare enum PublishStatus {
4
+ NeedsReview = "Needs Review",
5
+ Spiked = "Spiked",
6
+ Published = "Published",
7
+ ApprovedToPublish = "Approved to Publish",
8
+ Draft = "Draft",
9
+ Hold = "HOLD"
10
+ }
11
+ declare const signal: z.ZodObject<{
12
+ id: z.ZodString;
13
+ state: z.ZodArray<z.ZodObject<{
14
+ identifier: z.ZodString;
15
+ id: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ identifier?: string;
18
+ id?: string;
19
+ }, {
20
+ identifier?: string;
21
+ id?: string;
22
+ }>, "many">;
23
+ county: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
+ identifier: z.ZodString;
25
+ id: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ identifier?: string;
28
+ id?: string;
29
+ }, {
30
+ identifier?: string;
31
+ id?: string;
32
+ }>, "many">>;
33
+ sectors: z.ZodArray<z.ZodObject<{
34
+ identifier: z.ZodString;
35
+ id: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ identifier?: string;
38
+ id?: string;
39
+ }, {
40
+ identifier?: string;
41
+ id?: string;
42
+ }>, "many">;
43
+ queueApplications: z.ZodOptional<z.ZodArray<z.ZodObject<{
44
+ queueKey: z.ZodOptional<z.ZodString>;
45
+ applicationId: z.ZodOptional<z.ZodString>;
46
+ queueDataset: z.ZodOptional<z.ZodString>;
47
+ id: z.ZodString;
48
+ identifier: z.ZodString;
49
+ }, "strip", z.ZodTypeAny, {
50
+ identifier?: string;
51
+ id?: string;
52
+ queueKey?: string;
53
+ applicationId?: string;
54
+ queueDataset?: string;
55
+ }, {
56
+ identifier?: string;
57
+ id?: string;
58
+ queueKey?: string;
59
+ applicationId?: string;
60
+ queueDataset?: string;
61
+ }>, "many">>;
62
+ projectPipeline: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
+ identifier: z.ZodString;
64
+ id: z.ZodString;
65
+ }, "strip", z.ZodTypeAny, {
66
+ identifier?: string;
67
+ id?: string;
68
+ }, {
69
+ identifier?: string;
70
+ id?: string;
71
+ }>, "many">>;
72
+ headline: z.ZodString;
73
+ body: z.ZodOptional<z.ZodString>;
74
+ filingDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
75
+ publishedDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
76
+ commercialOperationDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
77
+ facilityName: z.ZodOptional<z.ZodString>;
78
+ facilityAddress: z.ZodOptional<z.ZodObject<{
79
+ full: z.ZodOptional<z.ZodString>;
80
+ city: z.ZodOptional<z.ZodString>;
81
+ state: z.ZodOptional<z.ZodString>;
82
+ street: z.ZodOptional<z.ZodString>;
83
+ street2: z.ZodOptional<z.ZodString>;
84
+ zip: z.ZodOptional<z.ZodString>;
85
+ country: z.ZodOptional<z.ZodString>;
86
+ latitude: z.ZodOptional<z.ZodNumber>;
87
+ longitude: z.ZodOptional<z.ZodNumber>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ state?: string;
90
+ full?: string;
91
+ city?: string;
92
+ street?: string;
93
+ street2?: string;
94
+ zip?: string;
95
+ country?: string;
96
+ latitude?: number;
97
+ longitude?: number;
98
+ }, {
99
+ state?: string;
100
+ full?: string;
101
+ city?: string;
102
+ street?: string;
103
+ street2?: string;
104
+ zip?: string;
105
+ country?: string;
106
+ latitude?: number;
107
+ longitude?: number;
108
+ }>>;
109
+ organizations: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
110
+ identifier: z.ZodString;
111
+ id: z.ZodString;
112
+ }, {
113
+ role: z.ZodString;
114
+ }>, "strip", z.ZodTypeAny, {
115
+ identifier?: string;
116
+ id?: string;
117
+ role?: string;
118
+ }, {
119
+ identifier?: string;
120
+ id?: string;
121
+ role?: string;
122
+ }>, "many">>;
123
+ keyPeople: z.ZodOptional<z.ZodArray<z.ZodObject<{
124
+ id: z.ZodOptional<z.ZodString>;
125
+ identifier: z.ZodOptional<z.ZodString>;
126
+ linkedinUrl: z.ZodOptional<z.ZodString>;
127
+ role: z.ZodOptional<z.ZodString>;
128
+ fullName: z.ZodOptional<z.ZodString>;
129
+ email: z.ZodOptional<z.ZodString>;
130
+ phone: z.ZodOptional<z.ZodString>;
131
+ source: z.ZodOptional<z.ZodString>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ identifier?: string;
134
+ id?: string;
135
+ role?: string;
136
+ linkedinUrl?: string;
137
+ fullName?: string;
138
+ email?: string;
139
+ phone?: string;
140
+ source?: string;
141
+ }, {
142
+ identifier?: string;
143
+ id?: string;
144
+ role?: string;
145
+ linkedinUrl?: string;
146
+ fullName?: string;
147
+ email?: string;
148
+ phone?: string;
149
+ source?: string;
150
+ }>, "many">>;
151
+ documents: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
152
+ filename: z.ZodString;
153
+ created: z.ZodEffects<z.ZodString, string, string>;
154
+ document_id: z.ZodString;
155
+ mimeType: z.ZodString;
156
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
157
+ key: z.ZodOptional<z.ZodString>;
158
+ userName: z.ZodOptional<z.ZodString>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ type?: string[];
161
+ key?: string;
162
+ filename?: string;
163
+ created?: string;
164
+ document_id?: string;
165
+ mimeType?: string;
166
+ userName?: string;
167
+ }, {
168
+ type?: string[];
169
+ key?: string;
170
+ filename?: string;
171
+ created?: string;
172
+ document_id?: string;
173
+ mimeType?: string;
174
+ userName?: string;
175
+ }>, "many">, z.ZodArray<z.ZodObject<{
176
+ file: z.ZodOptional<z.ZodString>;
177
+ url: z.ZodString;
178
+ created: z.ZodOptional<z.ZodString>;
179
+ type: z.ZodArray<z.ZodString, "many">;
180
+ documentDate: z.ZodEffects<z.ZodString, string, string>;
181
+ source: z.ZodOptional<z.ZodString>;
182
+ id: z.ZodOptional<z.ZodString>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ type?: string[];
185
+ id?: string;
186
+ source?: string;
187
+ created?: string;
188
+ file?: string;
189
+ url?: string;
190
+ documentDate?: string;
191
+ }, {
192
+ type?: string[];
193
+ id?: string;
194
+ source?: string;
195
+ created?: string;
196
+ file?: string;
197
+ url?: string;
198
+ documentDate?: string;
199
+ }>, "many">]>>;
200
+ mw: z.ZodOptional<z.ZodNumber>;
201
+ pucTracker: z.ZodOptional<z.ZodArray<z.ZodObject<{
202
+ identifier: z.ZodString;
203
+ id: z.ZodString;
204
+ }, "strip", z.ZodTypeAny, {
205
+ identifier?: string;
206
+ id?: string;
207
+ }, {
208
+ identifier?: string;
209
+ id?: string;
210
+ }>, "many">>;
211
+ editorNotes: z.ZodOptional<z.ZodString>;
212
+ analystNotes: z.ZodOptional<z.ZodString>;
213
+ createdBy: z.ZodArray<z.ZodObject<{
214
+ identifier: z.ZodString;
215
+ id: z.ZodString;
216
+ }, "strip", z.ZodTypeAny, {
217
+ identifier?: string;
218
+ id?: string;
219
+ }, {
220
+ identifier?: string;
221
+ id?: string;
222
+ }>, "many">;
223
+ created: z.ZodEffects<z.ZodString, string, string>;
224
+ status: z.ZodNativeEnum<typeof PublishStatus>;
225
+ curateDocLink: z.ZodOptional<z.ZodString>;
226
+ curateMunicipalityLink: z.ZodOptional<z.ZodString>;
227
+ type: z.ZodOptional<z.ZodObject<{
228
+ identifier: z.ZodString;
229
+ id: z.ZodString;
230
+ }, "strip", z.ZodTypeAny, {
231
+ identifier?: string;
232
+ id?: string;
233
+ }, {
234
+ identifier?: string;
235
+ id?: string;
236
+ }>>;
237
+ subType: z.ZodOptional<z.ZodArray<z.ZodObject<{
238
+ identifier: z.ZodString;
239
+ id: z.ZodString;
240
+ }, "strip", z.ZodTypeAny, {
241
+ identifier?: string;
242
+ id?: string;
243
+ }, {
244
+ identifier?: string;
245
+ id?: string;
246
+ }>, "many">>;
247
+ audiences: z.ZodArray<z.ZodObject<{
248
+ identifier: z.ZodString;
249
+ id: z.ZodString;
250
+ }, "strip", z.ZodTypeAny, {
251
+ identifier?: string;
252
+ id?: string;
253
+ }, {
254
+ identifier?: string;
255
+ id?: string;
256
+ }>, "many">;
257
+ lastUpdatedBy: z.ZodArray<z.ZodObject<{
258
+ identifier: z.ZodString;
259
+ id: z.ZodString;
260
+ }, "strip", z.ZodTypeAny, {
261
+ identifier?: string;
262
+ id?: string;
263
+ }, {
264
+ identifier?: string;
265
+ id?: string;
266
+ }>, "many">;
267
+ phase: z.ZodOptional<z.ZodString>;
268
+ dgChannels: z.ZodOptional<z.ZodArray<z.ZodObject<{
269
+ identifier: z.ZodString;
270
+ id: z.ZodString;
271
+ }, "strip", z.ZodTypeAny, {
272
+ identifier?: string;
273
+ id?: string;
274
+ }, {
275
+ identifier?: string;
276
+ id?: string;
277
+ }>, "many">>;
278
+ projects: z.ZodOptional<z.ZodArray<z.ZodObject<{
279
+ identifier: z.ZodString;
280
+ id: z.ZodString;
281
+ }, "strip", z.ZodTypeAny, {
282
+ identifier?: string;
283
+ id?: string;
284
+ }, {
285
+ identifier?: string;
286
+ id?: string;
287
+ }>, "many">>;
288
+ countyBoard: z.ZodOptional<z.ZodArray<z.ZodObject<{
289
+ identifier: z.ZodString;
290
+ id: z.ZodString;
291
+ }, "strip", z.ZodTypeAny, {
292
+ identifier?: string;
293
+ id?: string;
294
+ }, {
295
+ identifier?: string;
296
+ id?: string;
297
+ }>, "many">>;
298
+ schoolDistrict: z.ZodOptional<z.ZodArray<z.ZodObject<{
299
+ identifier: z.ZodString;
300
+ id: z.ZodString;
301
+ }, "strip", z.ZodTypeAny, {
302
+ identifier?: string;
303
+ id?: string;
304
+ }, {
305
+ identifier?: string;
306
+ id?: string;
307
+ }>, "many">>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ type?: {
310
+ identifier?: string;
311
+ id?: string;
312
+ };
313
+ subType?: {
314
+ identifier?: string;
315
+ id?: string;
316
+ }[];
317
+ sectors?: {
318
+ identifier?: string;
319
+ id?: string;
320
+ }[];
321
+ state?: {
322
+ identifier?: string;
323
+ id?: string;
324
+ }[];
325
+ county?: {
326
+ identifier?: string;
327
+ id?: string;
328
+ }[];
329
+ keyPeople?: {
330
+ identifier?: string;
331
+ id?: string;
332
+ role?: string;
333
+ linkedinUrl?: string;
334
+ fullName?: string;
335
+ email?: string;
336
+ phone?: string;
337
+ source?: string;
338
+ }[];
339
+ id?: string;
340
+ status?: PublishStatus;
341
+ created?: string;
342
+ queueApplications?: {
343
+ identifier?: string;
344
+ id?: string;
345
+ queueKey?: string;
346
+ applicationId?: string;
347
+ queueDataset?: string;
348
+ }[];
349
+ projectPipeline?: {
350
+ identifier?: string;
351
+ id?: string;
352
+ }[];
353
+ headline?: string;
354
+ body?: string;
355
+ filingDate?: string;
356
+ publishedDate?: string;
357
+ commercialOperationDate?: string;
358
+ facilityName?: string;
359
+ facilityAddress?: {
360
+ state?: string;
361
+ full?: string;
362
+ city?: string;
363
+ street?: string;
364
+ street2?: string;
365
+ zip?: string;
366
+ country?: string;
367
+ latitude?: number;
368
+ longitude?: number;
369
+ };
370
+ organizations?: {
371
+ identifier?: string;
372
+ id?: string;
373
+ role?: string;
374
+ }[];
375
+ documents?: {
376
+ type?: string[];
377
+ key?: string;
378
+ filename?: string;
379
+ created?: string;
380
+ document_id?: string;
381
+ mimeType?: string;
382
+ userName?: string;
383
+ }[] | {
384
+ type?: string[];
385
+ id?: string;
386
+ source?: string;
387
+ created?: string;
388
+ file?: string;
389
+ url?: string;
390
+ documentDate?: string;
391
+ }[];
392
+ mw?: number;
393
+ pucTracker?: {
394
+ identifier?: string;
395
+ id?: string;
396
+ }[];
397
+ editorNotes?: string;
398
+ analystNotes?: string;
399
+ createdBy?: {
400
+ identifier?: string;
401
+ id?: string;
402
+ }[];
403
+ curateDocLink?: string;
404
+ curateMunicipalityLink?: string;
405
+ audiences?: {
406
+ identifier?: string;
407
+ id?: string;
408
+ }[];
409
+ lastUpdatedBy?: {
410
+ identifier?: string;
411
+ id?: string;
412
+ }[];
413
+ phase?: string;
414
+ dgChannels?: {
415
+ identifier?: string;
416
+ id?: string;
417
+ }[];
418
+ projects?: {
419
+ identifier?: string;
420
+ id?: string;
421
+ }[];
422
+ countyBoard?: {
423
+ identifier?: string;
424
+ id?: string;
425
+ }[];
426
+ schoolDistrict?: {
427
+ identifier?: string;
428
+ id?: string;
429
+ }[];
430
+ }, {
431
+ type?: {
432
+ identifier?: string;
433
+ id?: string;
434
+ };
435
+ subType?: {
436
+ identifier?: string;
437
+ id?: string;
438
+ }[];
439
+ sectors?: {
440
+ identifier?: string;
441
+ id?: string;
442
+ }[];
443
+ state?: {
444
+ identifier?: string;
445
+ id?: string;
446
+ }[];
447
+ county?: {
448
+ identifier?: string;
449
+ id?: string;
450
+ }[];
451
+ keyPeople?: {
452
+ identifier?: string;
453
+ id?: string;
454
+ role?: string;
455
+ linkedinUrl?: string;
456
+ fullName?: string;
457
+ email?: string;
458
+ phone?: string;
459
+ source?: string;
460
+ }[];
461
+ id?: string;
462
+ status?: PublishStatus;
463
+ created?: string;
464
+ queueApplications?: {
465
+ identifier?: string;
466
+ id?: string;
467
+ queueKey?: string;
468
+ applicationId?: string;
469
+ queueDataset?: string;
470
+ }[];
471
+ projectPipeline?: {
472
+ identifier?: string;
473
+ id?: string;
474
+ }[];
475
+ headline?: string;
476
+ body?: string;
477
+ filingDate?: string;
478
+ publishedDate?: string;
479
+ commercialOperationDate?: string;
480
+ facilityName?: string;
481
+ facilityAddress?: {
482
+ state?: string;
483
+ full?: string;
484
+ city?: string;
485
+ street?: string;
486
+ street2?: string;
487
+ zip?: string;
488
+ country?: string;
489
+ latitude?: number;
490
+ longitude?: number;
491
+ };
492
+ organizations?: {
493
+ identifier?: string;
494
+ id?: string;
495
+ role?: string;
496
+ }[];
497
+ documents?: {
498
+ type?: string[];
499
+ key?: string;
500
+ filename?: string;
501
+ created?: string;
502
+ document_id?: string;
503
+ mimeType?: string;
504
+ userName?: string;
505
+ }[] | {
506
+ type?: string[];
507
+ id?: string;
508
+ source?: string;
509
+ created?: string;
510
+ file?: string;
511
+ url?: string;
512
+ documentDate?: string;
513
+ }[];
514
+ mw?: number;
515
+ pucTracker?: {
516
+ identifier?: string;
517
+ id?: string;
518
+ }[];
519
+ editorNotes?: string;
520
+ analystNotes?: string;
521
+ createdBy?: {
522
+ identifier?: string;
523
+ id?: string;
524
+ }[];
525
+ curateDocLink?: string;
526
+ curateMunicipalityLink?: string;
527
+ audiences?: {
528
+ identifier?: string;
529
+ id?: string;
530
+ }[];
531
+ lastUpdatedBy?: {
532
+ identifier?: string;
533
+ id?: string;
534
+ }[];
535
+ phase?: string;
536
+ dgChannels?: {
537
+ identifier?: string;
538
+ id?: string;
539
+ }[];
540
+ projects?: {
541
+ identifier?: string;
542
+ id?: string;
543
+ }[];
544
+ countyBoard?: {
545
+ identifier?: string;
546
+ id?: string;
547
+ }[];
548
+ schoolDistrict?: {
549
+ identifier?: string;
550
+ id?: string;
551
+ }[];
552
+ }>;
553
+ export type Signal = z.infer<typeof signal>;
554
+ export type OrganizationItem = z.infer<typeof OrganizationItemSchema>;
555
+ export type LinkedPersonItem = z.infer<typeof LinkedPeopleSchema>[number];
556
+ export type QueueJoinItem = z.infer<typeof QueueJoinSchema>[number];
557
+ export {};
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PublishStatus = void 0;
4
+ const zod_1 = require("zod");
5
+ const entity_1 = require("./entity");
6
+ var PublishStatus;
7
+ (function (PublishStatus) {
8
+ PublishStatus["NeedsReview"] = "Needs Review";
9
+ PublishStatus["Spiked"] = "Spiked";
10
+ PublishStatus["Published"] = "Published";
11
+ PublishStatus["ApprovedToPublish"] = "Approved to Publish";
12
+ PublishStatus["Draft"] = "Draft";
13
+ PublishStatus["Hold"] = "HOLD";
14
+ })(PublishStatus || (exports.PublishStatus = PublishStatus = {}));
15
+ const signal = zod_1.z.object({
16
+ id: zod_1.z.string(),
17
+ state: entity_1.EntityItemArraySchema,
18
+ county: entity_1.EntityItemArrayOptionalSchema,
19
+ sectors: entity_1.EntityItemArraySchema,
20
+ queueApplications: entity_1.QueueJoinOptionalSchema,
21
+ projectPipeline: entity_1.EntityItemArrayOptionalSchema,
22
+ headline: zod_1.z.string().min(1),
23
+ body: entity_1.OptionalStringSchema,
24
+ filingDate: entity_1.YYYYMMDDRegexOptionalSchema,
25
+ publishedDate: entity_1.YYYYMMDDRegexOptionalSchema,
26
+ commercialOperationDate: entity_1.YYYYMMDDRegexOptionalSchema,
27
+ facilityName: entity_1.OptionalStringSchema,
28
+ facilityAddress: entity_1.OptionalAddressSchema,
29
+ organizations: entity_1.OrganizationSchema,
30
+ keyPeople: entity_1.LinkedPeopleOptionalSchema,
31
+ documents: entity_1.DocumentRecordSchema,
32
+ mw: entity_1.OptionalNumberSchema,
33
+ pucTracker: entity_1.EntityItemArrayOptionalSchema,
34
+ editorNotes: entity_1.OptionalStringSchema,
35
+ analystNotes: entity_1.OptionalStringSchema,
36
+ createdBy: entity_1.EntityItemArraySchema,
37
+ created: entity_1.YYYYMMDDRegexSchema,
38
+ status: zod_1.z.nativeEnum(PublishStatus),
39
+ curateDocLink: zod_1.z.string().url().optional(),
40
+ curateMunicipalityLink: zod_1.z.string().url().optional(),
41
+ type: entity_1.EntityItemSchema.optional(),
42
+ subType: entity_1.EntityItemArrayOptionalSchema,
43
+ audiences: entity_1.EntityItemArraySchema,
44
+ lastUpdatedBy: entity_1.EntityItemArraySchema,
45
+ phase: entity_1.OptionalStringSchema,
46
+ dgChannels: entity_1.EntityItemArrayOptionalSchema,
47
+ projects: entity_1.EntityItemArrayOptionalSchema,
48
+ countyBoard: entity_1.EntityItemArrayOptionalSchema,
49
+ schoolDistrict: entity_1.EntityItemArrayOptionalSchema,
50
+ });
51
+ //# sourceMappingURL=signals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signals.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/signals.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,qCAgBiB;AAEjB,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,6CAA4B,CAAA;IAC5B,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,0DAAyC,CAAA;IACzC,gCAAe,CAAA;IACf,8BAAa,CAAA;AACf,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB;AAED,MAAM,MAAM,GAAG,OAAC,CAAC,MAAM,CAAC;IACtB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,8BAAqB;IAC5B,MAAM,EAAE,sCAA6B;IACrC,OAAO,EAAE,8BAAqB;IAC9B,iBAAiB,EAAE,gCAAuB;IAC1C,eAAe,EAAE,sCAA6B;IAC9C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,IAAI,EAAE,6BAAoB;IAC1B,UAAU,EAAE,oCAA2B;IACvC,aAAa,EAAE,oCAA2B;IAC1C,uBAAuB,EAAE,oCAA2B;IACpD,YAAY,EAAE,6BAAoB;IAClC,eAAe,EAAE,8BAAqB;IACtC,aAAa,EAAE,2BAAkB;IACjC,SAAS,EAAE,mCAA0B;IACrC,SAAS,EAAE,6BAAoB;IAC/B,EAAE,EAAE,6BAAoB;IACxB,UAAU,EAAE,sCAA6B;IACzC,WAAW,EAAE,6BAAoB;IACjC,YAAY,EAAE,6BAAoB;IAClC,SAAS,EAAE,8BAAqB;IAChC,OAAO,EAAE,4BAAmB;IAC5B,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,aAAa,CAAC;IACnC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC1C,sBAAsB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACnD,IAAI,EAAE,yBAAgB,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,sCAA6B;IACtC,SAAS,EAAE,8BAAqB;IAChC,aAAa,EAAE,8BAAqB;IACpC,KAAK,EAAE,6BAAoB;IAC3B,UAAU,EAAE,sCAA6B;IACzC,QAAQ,EAAE,sCAA6B;IACvC,WAAW,EAAE,sCAA6B;IAC1C,cAAc,EAAE,sCAA6B;CAC9C,CAAC,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { InfiniteData, UseInfiniteQueryResult } from '@tanstack/react-query';
2
+ import { ClientApiListRequestQueryParams, ClientApiListResponse, Queue, Signal } from './api';
3
+ export type Entity = Signal | Queue;
4
+ export type InfiniteQueryHook = (queryParams: ClientApiListRequestQueryParams, isEnabled?: boolean) => UseInfiniteQueryResult<InfiniteData<ClientApiListResponse<Entity>, unknown>, Error>;
5
+ export type ExtendedColumnFilter = {
6
+ id: string;
7
+ value: unknown;
8
+ filterVariant?: string;
9
+ };
10
+ export type FilterSelectOption = {
11
+ label: string;
12
+ value: string;
13
+ text?: string;
14
+ count?: number;
15
+ };
16
+ export type EntityName = 'signal' | 'queue';
17
+ export type SearchRoleField = {
18
+ value: string;
19
+ label: string;
20
+ field: string;
21
+ };
22
+ export type FilterType = 'autocomplete' | 'date-range' | 'exists';
23
+ export type FilterDefinition = {
24
+ id: string;
25
+ variant: FilterType;
26
+ label: string;
27
+ options: FilterSelectOption[];
28
+ sortBy?: string;
29
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=dataGrid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataGrid.js","sourceRoot":"","sources":["../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/dataGrid.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './dataGrid';
2
+ export * from './api';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./dataGrid"), exports);
5
+ tslib_1.__exportStar(require("./api"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,gDAAqB"}
@@ -0,0 +1,6 @@
1
+ export declare enum DatePreference {
2
+ DAY_MONTH = "DD/MM",
3
+ MONTH_DAY = "MM/DD",
4
+ NONE = "none",
5
+ DEFAULT = "MM/DD"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DatePreference = void 0;
4
+ var DatePreference;
5
+ (function (DatePreference) {
6
+ DatePreference["DAY_MONTH"] = "DD/MM";
7
+ DatePreference["MONTH_DAY"] = "MM/DD";
8
+ DatePreference["NONE"] = "none";
9
+ DatePreference["DEFAULT"] = "MM/DD";
10
+ })(DatePreference || (exports.DatePreference = DatePreference = {}));
11
+ //# sourceMappingURL=userDateFormat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userDateFormat.js","sourceRoot":"","sources":["../../../../../packages/client-frontends-shared-types/src/lib/userDateFormat.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;IACb,mCAAkC,CAAA;AACpC,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB"}