@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.
@@ -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
- deleted: z.ZodEffects<z.ZodDefault<z.ZodEnum<["true", "false"]>>, boolean, "false" | "true" | undefined>;
5005
+ withDeleted: z.ZodDefault<z.ZodEnum<["true", "false"]>>;
5006
5006
  }, "strip", z.ZodTypeAny, {
5007
- deleted: boolean;
5007
+ withDeleted: "false" | "true";
5008
5008
  ticketId?: string | undefined;
5009
5009
  }, {
5010
5010
  ticketId?: string | undefined;
5011
- deleted?: "false" | "true" | undefined;
5011
+ withDeleted?: "false" | "true" | undefined;
5012
5012
  }>>;
5013
5013
  responses: {
5014
- 201: z.ZodArray<z.ZodObject<{
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
- deleted: z.ZodEffects<z.ZodDefault<z.ZodEnum<["true", "false"]>>, boolean, "false" | "true" | undefined>;
30
+ withDeleted: z.ZodDefault<z.ZodEnum<["true", "false"]>>;
31
31
  }, "strip", z.ZodTypeAny, {
32
- deleted: boolean;
32
+ withDeleted: "false" | "true";
33
33
  ticketId?: string | undefined;
34
34
  }, {
35
35
  ticketId?: string | undefined;
36
- deleted?: "false" | "true" | undefined;
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;;;;;;;;;GAQrB,CAAC"}
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
- deleted: import("zod").ZodEffects<import("zod").ZodDefault<import("zod").ZodEnum<["true", "false"]>>, boolean, "false" | "true" | undefined>;
78752
+ withDeleted: import("zod").ZodDefault<import("zod").ZodEnum<["true", "false"]>>;
78753
78753
  }, "strip", import("zod").ZodTypeAny, {
78754
- deleted: boolean;
78754
+ withDeleted: "false" | "true";
78755
78755
  ticketId?: string | undefined;
78756
78756
  }, {
78757
78757
  ticketId?: string | undefined;
78758
- deleted?: "false" | "true" | undefined;
78758
+ withDeleted?: "false" | "true" | undefined;
78759
78759
  }>>;
78760
78760
  responses: {
78761
- 201: import("zod").ZodArray<import("zod").ZodObject<{
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
- deleted: import_zod43.z.enum(["true", "false"]).default("false").transform((v) => v === "true" ? true : false)
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
- 201: import_zod46.default.array(CommentSchema),
3474
+ 200: import_zod46.default.array(CommentSchema),
3475
3475
  400: import_zod46.default.object({
3476
3476
  message: import_zod46.default.string()
3477
3477
  }),