@kl1/contracts 1.4.33 → 1.4.35

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.
@@ -4979,7 +4979,7 @@ export declare const commentContract: {
4979
4979
  error?: any;
4980
4980
  }>;
4981
4981
  };
4982
- path: "ts/comment";
4982
+ path: "tcs/api/v1/comment";
4983
4983
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4984
4984
  'x-tenant': z.ZodString;
4985
4985
  'x-service-token': z.ZodString;
@@ -5002,13 +5002,13 @@ 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
5014
  201: z.ZodArray<z.ZodObject<{
@@ -9052,7 +9052,7 @@ export declare const commentContract: {
9052
9052
  error?: any;
9053
9053
  }>;
9054
9054
  };
9055
- path: "ts/comment";
9055
+ path: "tcs/api/v1/comment";
9056
9056
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9057
9057
  'x-tenant': z.ZodString;
9058
9058
  'x-service-token': z.ZodString;
@@ -14033,7 +14033,7 @@ export declare const commentContract: {
14033
14033
  error?: any;
14034
14034
  }>;
14035
14035
  };
14036
- path: "ts/comment/:id";
14036
+ path: "tcs/api/v1/comment/:id";
14037
14037
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
14038
14038
  'x-tenant': z.ZodString;
14039
14039
  'x-service-token': z.ZodString;
@@ -14084,7 +14084,7 @@ export declare const commentContract: {
14084
14084
  error?: any;
14085
14085
  }>;
14086
14086
  };
14087
- path: "ts/comment/:id";
14087
+ path: "tcs/api/v1/comment/:id";
14088
14088
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
14089
14089
  'x-tenant': z.ZodString;
14090
14090
  'x-service-token': z.ZodString;
@@ -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"}
@@ -78726,7 +78726,7 @@ export declare const commentActivityContract: {
78726
78726
  error?: any;
78727
78727
  }>;
78728
78728
  };
78729
- path: "ts/comment";
78729
+ path: "tcs/api/v1/comment";
78730
78730
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
78731
78731
  'x-tenant': import("zod").ZodString;
78732
78732
  'x-service-token': import("zod").ZodString;
@@ -78749,13 +78749,13 @@ 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
78761
  201: import("zod").ZodArray<import("zod").ZodObject<{
@@ -82799,7 +82799,7 @@ export declare const commentActivityContract: {
82799
82799
  error?: any;
82800
82800
  }>;
82801
82801
  };
82802
- path: "ts/comment";
82802
+ path: "tcs/api/v1/comment";
82803
82803
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
82804
82804
  'x-tenant': import("zod").ZodString;
82805
82805
  'x-service-token': import("zod").ZodString;
@@ -87780,7 +87780,7 @@ export declare const commentActivityContract: {
87780
87780
  error?: any;
87781
87781
  }>;
87782
87782
  };
87783
- path: "ts/comment/:id";
87783
+ path: "tcs/api/v1/comment/:id";
87784
87784
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
87785
87785
  'x-tenant': import("zod").ZodString;
87786
87786
  'x-service-token': import("zod").ZodString;
@@ -87831,7 +87831,7 @@ export declare const commentActivityContract: {
87831
87831
  error?: any;
87832
87832
  }>;
87833
87833
  };
87834
- path: "ts/comment/:id";
87834
+ path: "tcs/api/v1/comment/:id";
87835
87835
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
87836
87836
  'x-tenant': import("zod").ZodString;
87837
87837
  'x-service-token': import("zod").ZodString;
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
@@ -3507,7 +3507,7 @@ var commentContract = (0, import_core9.initContract)().router(
3507
3507
  summary: "Delete a comment."
3508
3508
  }
3509
3509
  },
3510
- { pathPrefix: "ts/comment" }
3510
+ { pathPrefix: "tcs/api/v1/comment" }
3511
3511
  );
3512
3512
 
3513
3513
  // src/company/index.ts