@kl1/contracts 1.4.34 → 1.4.36
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.
- package/dist/api-contracts/src/comment/index.d.ts +4 -4
- package/dist/api-contracts/src/comment/validation.d.ts +3 -3
- package/dist/api-contracts/src/comment/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/contract.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -5002,16 +5002,16 @@ export declare const commentContract: {
|
|
5002
5002
|
method: "GET";
|
5003
5003
|
query: z.ZodOptional<z.ZodObject<{
|
5004
5004
|
ticketId: z.ZodOptional<z.ZodString>;
|
5005
|
-
|
5005
|
+
withDeleted: z.ZodDefault<z.ZodEnum<["true", "false"]>>;
|
5006
5006
|
}, "strip", z.ZodTypeAny, {
|
5007
|
-
|
5007
|
+
withDeleted: "false" | "true";
|
5008
5008
|
ticketId?: string | undefined;
|
5009
5009
|
}, {
|
5010
5010
|
ticketId?: string | undefined;
|
5011
|
-
|
5011
|
+
withDeleted?: "false" | "true" | undefined;
|
5012
5012
|
}>>;
|
5013
5013
|
responses: {
|
5014
|
-
|
5014
|
+
200: z.ZodArray<z.ZodObject<{
|
5015
5015
|
id: z.ZodString;
|
5016
5016
|
createdAt: z.ZodDate;
|
5017
5017
|
updatedAt: z.ZodDate;
|
@@ -27,12 +27,12 @@ export declare const UpdateCommentSchema: z.ZodObject<{
|
|
27
27
|
}>;
|
28
28
|
export declare const GetCommentQuerySchema: z.ZodOptional<z.ZodObject<{
|
29
29
|
ticketId: z.ZodOptional<z.ZodString>;
|
30
|
-
|
30
|
+
withDeleted: z.ZodDefault<z.ZodEnum<["true", "false"]>>;
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
32
|
-
|
32
|
+
withDeleted: "false" | "true";
|
33
33
|
ticketId?: string | undefined;
|
34
34
|
}, {
|
35
35
|
ticketId?: string | undefined;
|
36
|
-
|
36
|
+
withDeleted?: "false" | "true" | undefined;
|
37
37
|
}>>;
|
38
38
|
//# sourceMappingURL=validation.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/comment/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAAsB,CAAC;AAEvD,eAAO,MAAM,qBAAqB;;;;;;;;;
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/comment/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAAsB,CAAC;AAEvD,eAAO,MAAM,qBAAqB;;;;;;;;;GAKrB,CAAC"}
|
@@ -78749,16 +78749,16 @@ export declare const commentActivityContract: {
|
|
78749
78749
|
method: "GET";
|
78750
78750
|
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
78751
78751
|
ticketId: import("zod").ZodOptional<import("zod").ZodString>;
|
78752
|
-
|
78752
|
+
withDeleted: import("zod").ZodDefault<import("zod").ZodEnum<["true", "false"]>>;
|
78753
78753
|
}, "strip", import("zod").ZodTypeAny, {
|
78754
|
-
|
78754
|
+
withDeleted: "false" | "true";
|
78755
78755
|
ticketId?: string | undefined;
|
78756
78756
|
}, {
|
78757
78757
|
ticketId?: string | undefined;
|
78758
|
-
|
78758
|
+
withDeleted?: "false" | "true" | undefined;
|
78759
78759
|
}>>;
|
78760
78760
|
responses: {
|
78761
|
-
|
78761
|
+
200: import("zod").ZodArray<import("zod").ZodObject<{
|
78762
78762
|
id: import("zod").ZodString;
|
78763
78763
|
createdAt: import("zod").ZodDate;
|
78764
78764
|
updatedAt: import("zod").ZodDate;
|
package/dist/index.js
CHANGED
@@ -3367,7 +3367,7 @@ var CreateCommentSchema = import_zod43.z.object({
|
|
3367
3367
|
var UpdateCommentSchema = CreateCommentSchema;
|
3368
3368
|
var GetCommentQuerySchema = import_zod43.z.object({
|
3369
3369
|
ticketId: import_zod43.z.string().optional(),
|
3370
|
-
|
3370
|
+
withDeleted: import_zod43.z.enum(["true", "false"]).default("false")
|
3371
3371
|
}).optional();
|
3372
3372
|
|
3373
3373
|
// src/comment/schema.ts
|
@@ -3471,7 +3471,7 @@ var commentContract = (0, import_core9.initContract)().router(
|
|
3471
3471
|
headers: DefaultHeaderSchema,
|
3472
3472
|
query: GetCommentQuerySchema,
|
3473
3473
|
responses: {
|
3474
|
-
|
3474
|
+
200: import_zod46.default.array(CommentSchema),
|
3475
3475
|
400: import_zod46.default.object({
|
3476
3476
|
message: import_zod46.default.string()
|
3477
3477
|
}),
|