@dakkitor/api-contracts 1.1.7 → 1.1.8
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.
|
@@ -146,16 +146,16 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
146
146
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
147
147
|
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>>;
|
|
148
148
|
director: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
149
|
-
createdAt: z.ZodOptional<z.ZodObject<{
|
|
150
|
-
from: z.ZodOptional<z.
|
|
151
|
-
to: z.ZodOptional<z.
|
|
149
|
+
createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
150
|
+
from: z.ZodOptional<z.ZodString>;
|
|
151
|
+
to: z.ZodOptional<z.ZodString>;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
from?: string |
|
|
154
|
-
to?: string |
|
|
153
|
+
from?: string | undefined;
|
|
154
|
+
to?: string | undefined;
|
|
155
155
|
}, {
|
|
156
|
-
from?: string |
|
|
157
|
-
to?: string |
|
|
158
|
-
}
|
|
156
|
+
from?: string | undefined;
|
|
157
|
+
to?: string | undefined;
|
|
158
|
+
}>>>;
|
|
159
159
|
sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "director", "createdAt", "updatedAt"]>>>;
|
|
160
160
|
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
161
161
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -163,9 +163,9 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
163
163
|
page: number;
|
|
164
164
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
165
165
|
createdAt?: {
|
|
166
|
-
from?: string |
|
|
167
|
-
to?: string |
|
|
168
|
-
} | undefined;
|
|
166
|
+
from?: string | undefined;
|
|
167
|
+
to?: string | undefined;
|
|
168
|
+
} | null | undefined;
|
|
169
169
|
sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
|
|
170
170
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
171
171
|
name?: string | null | undefined;
|
|
@@ -174,9 +174,9 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
174
174
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
175
175
|
limit?: number | undefined;
|
|
176
176
|
createdAt?: {
|
|
177
|
-
from?: string |
|
|
178
|
-
to?: string |
|
|
179
|
-
} | undefined;
|
|
177
|
+
from?: string | undefined;
|
|
178
|
+
to?: string | undefined;
|
|
179
|
+
} | null | undefined;
|
|
180
180
|
page?: number | undefined;
|
|
181
181
|
sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
|
|
182
182
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
@@ -586,16 +586,16 @@ export declare const clientsContractRouter: {
|
|
|
586
586
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
587
587
|
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>>;
|
|
588
588
|
director: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
589
|
-
createdAt: z.ZodOptional<z.ZodObject<{
|
|
590
|
-
from: z.ZodOptional<z.
|
|
591
|
-
to: z.ZodOptional<z.
|
|
589
|
+
createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
590
|
+
from: z.ZodOptional<z.ZodString>;
|
|
591
|
+
to: z.ZodOptional<z.ZodString>;
|
|
592
592
|
}, "strip", z.ZodTypeAny, {
|
|
593
|
-
from?: string |
|
|
594
|
-
to?: string |
|
|
593
|
+
from?: string | undefined;
|
|
594
|
+
to?: string | undefined;
|
|
595
595
|
}, {
|
|
596
|
-
from?: string |
|
|
597
|
-
to?: string |
|
|
598
|
-
}
|
|
596
|
+
from?: string | undefined;
|
|
597
|
+
to?: string | undefined;
|
|
598
|
+
}>>>;
|
|
599
599
|
sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "director", "createdAt", "updatedAt"]>>>;
|
|
600
600
|
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -603,9 +603,9 @@ export declare const clientsContractRouter: {
|
|
|
603
603
|
page: number;
|
|
604
604
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
605
605
|
createdAt?: {
|
|
606
|
-
from?: string |
|
|
607
|
-
to?: string |
|
|
608
|
-
} | undefined;
|
|
606
|
+
from?: string | undefined;
|
|
607
|
+
to?: string | undefined;
|
|
608
|
+
} | null | undefined;
|
|
609
609
|
sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
|
|
610
610
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
611
611
|
name?: string | null | undefined;
|
|
@@ -614,9 +614,9 @@ export declare const clientsContractRouter: {
|
|
|
614
614
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
615
615
|
limit?: number | undefined;
|
|
616
616
|
createdAt?: {
|
|
617
|
-
from?: string |
|
|
618
|
-
to?: string |
|
|
619
|
-
} | undefined;
|
|
617
|
+
from?: string | undefined;
|
|
618
|
+
to?: string | undefined;
|
|
619
|
+
} | null | undefined;
|
|
620
620
|
page?: number | undefined;
|
|
621
621
|
sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
|
|
622
622
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clients.contract.d.ts","sourceRoot":"","sources":["../../contracts/clients/clients.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE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
|
|
16
16
|
.openapi({ title: 'ClientSortableFields' });
|
|
17
|
+
const DateRangeSchema = zod_1.z
|
|
18
|
+
.object({
|
|
19
|
+
from: zod_1.z.string().datetime().optional(),
|
|
20
|
+
to: zod_1.z.string().datetime().optional(),
|
|
21
|
+
})
|
|
22
|
+
.openapi({ title: 'DateRange' });
|
|
17
23
|
exports.ClientUserSchema = zod_1.z.object({
|
|
18
24
|
id: zod_1.z.string().uuid(),
|
|
19
25
|
firstName: zod_1.z.string(),
|
|
@@ -103,20 +109,8 @@ exports.FilterClientSchema = zod_1.z.object({
|
|
|
103
109
|
.optional()
|
|
104
110
|
.nullable()
|
|
105
111
|
.describe('Filter by director name (case-insensitive contains match)'),
|
|
106
|
-
createdAt:
|
|
107
|
-
.
|
|
108
|
-
from: zod_1.z
|
|
109
|
-
.string()
|
|
110
|
-
.date()
|
|
111
|
-
.nullish()
|
|
112
|
-
.describe('Start of the date range (inclusive).'),
|
|
113
|
-
to: zod_1.z
|
|
114
|
-
.string()
|
|
115
|
-
.date()
|
|
116
|
-
.nullish()
|
|
117
|
-
.describe('End of the date range (inclusive).'),
|
|
118
|
-
})
|
|
119
|
-
.optional()
|
|
112
|
+
createdAt: DateRangeSchema.optional()
|
|
113
|
+
.nullable()
|
|
120
114
|
.describe('Filter by created date range.'),
|
|
121
115
|
sortBy: ClientSortableFieldsSchema.optional()
|
|
122
116
|
.nullable()
|
package/dist/index.d.ts
CHANGED
|
@@ -1458,16 +1458,16 @@ export declare const apiContractRouter: {
|
|
|
1458
1458
|
name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
1459
1459
|
status: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>>;
|
|
1460
1460
|
director: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
1461
|
-
createdAt: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1462
|
-
from: import("zod").ZodOptional<import("zod").
|
|
1463
|
-
to: import("zod").ZodOptional<import("zod").
|
|
1461
|
+
createdAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1462
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1463
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1464
1464
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1465
|
-
from?: string |
|
|
1466
|
-
to?: string |
|
|
1465
|
+
from?: string | undefined;
|
|
1466
|
+
to?: string | undefined;
|
|
1467
1467
|
}, {
|
|
1468
|
-
from?: string |
|
|
1469
|
-
to?: string |
|
|
1470
|
-
}
|
|
1468
|
+
from?: string | undefined;
|
|
1469
|
+
to?: string | undefined;
|
|
1470
|
+
}>>>;
|
|
1471
1471
|
sortBy: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEnum<["name", "director", "createdAt", "updatedAt"]>>>;
|
|
1472
1472
|
sortOrder: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>>;
|
|
1473
1473
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -1475,9 +1475,9 @@ export declare const apiContractRouter: {
|
|
|
1475
1475
|
page: number;
|
|
1476
1476
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
1477
1477
|
createdAt?: {
|
|
1478
|
-
from?: string |
|
|
1479
|
-
to?: string |
|
|
1480
|
-
} | undefined;
|
|
1478
|
+
from?: string | undefined;
|
|
1479
|
+
to?: string | undefined;
|
|
1480
|
+
} | null | undefined;
|
|
1481
1481
|
sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
|
|
1482
1482
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1483
1483
|
name?: string | null | undefined;
|
|
@@ -1486,9 +1486,9 @@ export declare const apiContractRouter: {
|
|
|
1486
1486
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
1487
1487
|
limit?: number | undefined;
|
|
1488
1488
|
createdAt?: {
|
|
1489
|
-
from?: string |
|
|
1490
|
-
to?: string |
|
|
1491
|
-
} | undefined;
|
|
1489
|
+
from?: string | undefined;
|
|
1490
|
+
to?: string | undefined;
|
|
1491
|
+
} | null | undefined;
|
|
1492
1492
|
page?: number | undefined;
|
|
1493
1493
|
sortBy?: "createdAt" | "updatedAt" | "name" | "director" | null | undefined;
|
|
1494
1494
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dakkitor/api-contracts",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "TypeScript API contracts using ts-rest and Zod",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@ts-rest/core": "^3.51.0",
|
|
27
|
-
"zod": "^3.
|
|
27
|
+
"zod": "^3.25.55"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@ts-rest/core": "^3.51.0",
|