@dakkitor/api-contracts 1.1.7 → 1.1.9
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,7 +146,7 @@ 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<{
|
|
149
|
+
createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
150
150
|
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
151
|
to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -155,7 +155,7 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
155
155
|
}, {
|
|
156
156
|
from?: string | null | undefined;
|
|
157
157
|
to?: string | null | undefined;
|
|
158
|
-
}
|
|
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, {
|
|
@@ -165,7 +165,7 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
165
165
|
createdAt?: {
|
|
166
166
|
from?: string | null | undefined;
|
|
167
167
|
to?: string | null | undefined;
|
|
168
|
-
} | 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;
|
|
@@ -176,7 +176,7 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
176
176
|
createdAt?: {
|
|
177
177
|
from?: string | null | undefined;
|
|
178
178
|
to?: string | null | undefined;
|
|
179
|
-
} | 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,7 +586,7 @@ 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<{
|
|
589
|
+
createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
590
590
|
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
591
591
|
to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
592
592
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -595,7 +595,7 @@ export declare const clientsContractRouter: {
|
|
|
595
595
|
}, {
|
|
596
596
|
from?: string | null | undefined;
|
|
597
597
|
to?: string | null | undefined;
|
|
598
|
-
}
|
|
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, {
|
|
@@ -605,7 +605,7 @@ export declare const clientsContractRouter: {
|
|
|
605
605
|
createdAt?: {
|
|
606
606
|
from?: string | null | undefined;
|
|
607
607
|
to?: string | null | undefined;
|
|
608
|
-
} | 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;
|
|
@@ -616,7 +616,7 @@ export declare const clientsContractRouter: {
|
|
|
616
616
|
createdAt?: {
|
|
617
617
|
from?: string | null | undefined;
|
|
618
618
|
to?: string | null | undefined;
|
|
619
|
-
} | 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,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,QAAA,MAAM,kBAAkB,gEAEa,CAAC;AAEtC,QAAA,MAAM,eAAe,4BAA0D,CAAC;AAEhF,QAAA,MAAM,0BAA0B,2DAEa,CAAC;
|
|
1
|
+
{"version":3,"file":"clients.contract.d.ts","sourceRoot":"","sources":["../../contracts/clients/clients.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,QAAA,MAAM,kBAAkB,gEAEa,CAAC;AAEtC,QAAA,MAAM,eAAe,4BAA0D,CAAC;AAEhF,QAAA,MAAM,0BAA0B,2DAEa,CAAC;AAiB9C,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,gBAAgB;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FjC,CAAC"}
|
|
@@ -14,6 +14,20 @@ const SortOrderSchema = zod_1.z.enum(['ASC', 'DESC']).openapi({ title: 'SortOrde
|
|
|
14
14
|
const ClientSortableFieldsSchema = zod_1.z
|
|
15
15
|
.enum(['name', 'director', 'createdAt', 'updatedAt'])
|
|
16
16
|
.openapi({ title: 'ClientSortableFields' });
|
|
17
|
+
const DateRangeSchema = zod_1.z
|
|
18
|
+
.object({
|
|
19
|
+
from: zod_1.z
|
|
20
|
+
.string()
|
|
21
|
+
.date()
|
|
22
|
+
.nullish()
|
|
23
|
+
.describe('Start of the date range (inclusive).'),
|
|
24
|
+
to: zod_1.z
|
|
25
|
+
.string()
|
|
26
|
+
.date()
|
|
27
|
+
.nullish()
|
|
28
|
+
.describe('End of the date range (inclusive).'),
|
|
29
|
+
})
|
|
30
|
+
.openapi({ title: 'DateRange' });
|
|
17
31
|
exports.ClientUserSchema = zod_1.z.object({
|
|
18
32
|
id: zod_1.z.string().uuid(),
|
|
19
33
|
firstName: zod_1.z.string(),
|
|
@@ -103,20 +117,8 @@ exports.FilterClientSchema = zod_1.z.object({
|
|
|
103
117
|
.optional()
|
|
104
118
|
.nullable()
|
|
105
119
|
.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()
|
|
120
|
+
createdAt: DateRangeSchema.optional()
|
|
121
|
+
.nullable()
|
|
120
122
|
.describe('Filter by created date range.'),
|
|
121
123
|
sortBy: ClientSortableFieldsSchema.optional()
|
|
122
124
|
.nullable()
|
package/dist/index.d.ts
CHANGED
|
@@ -1458,7 +1458,7 @@ 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<{
|
|
1461
|
+
createdAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1462
1462
|
from: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
1463
1463
|
to: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
1464
1464
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -1467,7 +1467,7 @@ export declare const apiContractRouter: {
|
|
|
1467
1467
|
}, {
|
|
1468
1468
|
from?: string | null | undefined;
|
|
1469
1469
|
to?: string | null | undefined;
|
|
1470
|
-
}
|
|
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, {
|
|
@@ -1477,7 +1477,7 @@ export declare const apiContractRouter: {
|
|
|
1477
1477
|
createdAt?: {
|
|
1478
1478
|
from?: string | null | undefined;
|
|
1479
1479
|
to?: string | null | undefined;
|
|
1480
|
-
} | 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;
|
|
@@ -1488,7 +1488,7 @@ export declare const apiContractRouter: {
|
|
|
1488
1488
|
createdAt?: {
|
|
1489
1489
|
from?: string | null | undefined;
|
|
1490
1490
|
to?: string | null | undefined;
|
|
1491
|
-
} | 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.9",
|
|
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",
|