@kl1/contracts 1.4.43 → 1.4.44
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/contract.d.ts +33 -33
- package/dist/api-contracts/src/public-api/index.d.ts +6 -6
- package/dist/api-contracts/src/tag/index.d.ts +11 -10
- package/dist/api-contracts/src/tag/index.d.ts.map +1 -1
- package/dist/api-contracts/src/tag/schema.d.ts +1 -1
- package/dist/api-contracts/src/tag/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/tag/validation.d.ts +9 -9
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -36120,13 +36120,13 @@ export declare const apiContract: {
|
|
36120
36120
|
createTag: {
|
36121
36121
|
body: import("zod").ZodObject<{
|
36122
36122
|
name: import("zod").ZodString;
|
36123
|
-
group: import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">]>;
|
36123
|
+
group: import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">, import("zod").ZodLiteral<"cdr">]>;
|
36124
36124
|
}, "strip", import("zod").ZodTypeAny, {
|
36125
36125
|
name: string;
|
36126
|
-
group: "general" | "contact";
|
36126
|
+
group: "general" | "contact" | "cdr";
|
36127
36127
|
}, {
|
36128
36128
|
name: string;
|
36129
|
-
group: "general" | "contact";
|
36129
|
+
group: "general" | "contact" | "cdr";
|
36130
36130
|
}>;
|
36131
36131
|
method: "POST";
|
36132
36132
|
responses: {
|
@@ -36202,14 +36202,14 @@ export declare const apiContract: {
|
|
36202
36202
|
getTags: {
|
36203
36203
|
method: "GET";
|
36204
36204
|
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
36205
|
-
group: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">]
|
36206
|
-
keyword: import("zod").ZodOptional<import("zod").ZodString
|
36205
|
+
group: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">, import("zod").ZodLiteral<"cdr">]>>>>;
|
36206
|
+
keyword: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
36207
36207
|
}, "strip", import("zod").ZodTypeAny, {
|
36208
|
-
group?: "general" | "contact" | undefined;
|
36209
|
-
keyword?: string | undefined;
|
36208
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
36209
|
+
keyword?: string | null | undefined;
|
36210
36210
|
}, {
|
36211
|
-
group?: "general" | "contact" | undefined;
|
36212
|
-
keyword?: string | undefined;
|
36211
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
36212
|
+
keyword?: string | null | undefined;
|
36213
36213
|
}>>;
|
36214
36214
|
responses: {
|
36215
36215
|
200: import("zod").ZodObject<{
|
@@ -279301,14 +279301,14 @@ export declare const publicApiContract: {
|
|
279301
279301
|
getAllTags: {
|
279302
279302
|
method: "GET";
|
279303
279303
|
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
279304
|
-
group: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">]
|
279305
|
-
keyword: import("zod").ZodOptional<import("zod").ZodString
|
279304
|
+
group: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">, import("zod").ZodLiteral<"cdr">]>>>>;
|
279305
|
+
keyword: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
279306
279306
|
}, "strip", import("zod").ZodTypeAny, {
|
279307
|
-
group?: "general" | "contact" | undefined;
|
279308
|
-
keyword?: string | undefined;
|
279307
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
279308
|
+
keyword?: string | null | undefined;
|
279309
279309
|
}, {
|
279310
|
-
group?: "general" | "contact" | undefined;
|
279311
|
-
keyword?: string | undefined;
|
279310
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
279311
|
+
keyword?: string | null | undefined;
|
279312
279312
|
}>>;
|
279313
279313
|
responses: {
|
279314
279314
|
200: import("zod").ZodObject<{
|
@@ -308120,13 +308120,13 @@ export declare const generalTagSettingContract: {
|
|
308120
308120
|
createTag: {
|
308121
308121
|
body: import("zod").ZodObject<{
|
308122
308122
|
name: import("zod").ZodString;
|
308123
|
-
group: import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">]>;
|
308123
|
+
group: import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">, import("zod").ZodLiteral<"cdr">]>;
|
308124
308124
|
}, "strip", import("zod").ZodTypeAny, {
|
308125
308125
|
name: string;
|
308126
|
-
group: "general" | "contact";
|
308126
|
+
group: "general" | "contact" | "cdr";
|
308127
308127
|
}, {
|
308128
308128
|
name: string;
|
308129
|
-
group: "general" | "contact";
|
308129
|
+
group: "general" | "contact" | "cdr";
|
308130
308130
|
}>;
|
308131
308131
|
method: "POST";
|
308132
308132
|
responses: {
|
@@ -308202,14 +308202,14 @@ export declare const generalTagSettingContract: {
|
|
308202
308202
|
getTags: {
|
308203
308203
|
method: "GET";
|
308204
308204
|
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
308205
|
-
group: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">]
|
308206
|
-
keyword: import("zod").ZodOptional<import("zod").ZodString
|
308205
|
+
group: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">, import("zod").ZodLiteral<"cdr">]>>>>;
|
308206
|
+
keyword: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
308207
308207
|
}, "strip", import("zod").ZodTypeAny, {
|
308208
|
-
group?: "general" | "contact" | undefined;
|
308209
|
-
keyword?: string | undefined;
|
308208
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
308209
|
+
keyword?: string | null | undefined;
|
308210
308210
|
}, {
|
308211
|
-
group?: "general" | "contact" | undefined;
|
308212
|
-
keyword?: string | undefined;
|
308211
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
308212
|
+
keyword?: string | null | undefined;
|
308213
308213
|
}>>;
|
308214
308214
|
responses: {
|
308215
308215
|
200: import("zod").ZodObject<{
|
@@ -308424,13 +308424,13 @@ export declare const contactLabelSettingContract: {
|
|
308424
308424
|
createTag: {
|
308425
308425
|
body: import("zod").ZodObject<{
|
308426
308426
|
name: import("zod").ZodString;
|
308427
|
-
group: import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">]>;
|
308427
|
+
group: import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">, import("zod").ZodLiteral<"cdr">]>;
|
308428
308428
|
}, "strip", import("zod").ZodTypeAny, {
|
308429
308429
|
name: string;
|
308430
|
-
group: "general" | "contact";
|
308430
|
+
group: "general" | "contact" | "cdr";
|
308431
308431
|
}, {
|
308432
308432
|
name: string;
|
308433
|
-
group: "general" | "contact";
|
308433
|
+
group: "general" | "contact" | "cdr";
|
308434
308434
|
}>;
|
308435
308435
|
method: "POST";
|
308436
308436
|
responses: {
|
@@ -308506,14 +308506,14 @@ export declare const contactLabelSettingContract: {
|
|
308506
308506
|
getTags: {
|
308507
308507
|
method: "GET";
|
308508
308508
|
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
308509
|
-
group: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">]
|
308510
|
-
keyword: import("zod").ZodOptional<import("zod").ZodString
|
308509
|
+
group: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">, import("zod").ZodLiteral<"cdr">]>>>>;
|
308510
|
+
keyword: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
308511
308511
|
}, "strip", import("zod").ZodTypeAny, {
|
308512
|
-
group?: "general" | "contact" | undefined;
|
308513
|
-
keyword?: string | undefined;
|
308512
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
308513
|
+
keyword?: string | null | undefined;
|
308514
308514
|
}, {
|
308515
|
-
group?: "general" | "contact" | undefined;
|
308516
|
-
keyword?: string | undefined;
|
308515
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
308516
|
+
keyword?: string | null | undefined;
|
308517
308517
|
}>>;
|
308518
308518
|
responses: {
|
308519
308519
|
200: import("zod").ZodObject<{
|
@@ -110,14 +110,14 @@ export declare const publicApiContract: {
|
|
110
110
|
getAllTags: {
|
111
111
|
method: "GET";
|
112
112
|
query: z.ZodOptional<z.ZodObject<{
|
113
|
-
group: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">]
|
114
|
-
keyword: z.ZodOptional<z.ZodString
|
113
|
+
group: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">, z.ZodLiteral<"cdr">]>>>>;
|
114
|
+
keyword: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
116
|
-
group?: "general" | "contact" | undefined;
|
117
|
-
keyword?: string | undefined;
|
116
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
117
|
+
keyword?: string | null | undefined;
|
118
118
|
}, {
|
119
|
-
group?: "general" | "contact" | undefined;
|
120
|
-
keyword?: string | undefined;
|
119
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
120
|
+
keyword?: string | null | undefined;
|
121
121
|
}>>;
|
122
122
|
responses: {
|
123
123
|
200: z.ZodObject<{
|
@@ -1,21 +1,22 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
import { TagSchema } from './schema';
|
2
|
+
import { TagGroupSchema, TagSchema } from './schema';
|
3
3
|
import { CreateTagSchema, GetTagsSchema, UpdateTagSchema } from './validation';
|
4
4
|
export type CreateTagRequest = z.infer<typeof CreateTagSchema>;
|
5
5
|
export type GetTagsRequest = z.infer<typeof GetTagsSchema>;
|
6
6
|
export type UpdateTagRequest = z.infer<typeof UpdateTagSchema>;
|
7
7
|
export type Tag = z.infer<typeof TagSchema>;
|
8
|
+
export type TagGroup = z.infer<typeof TagGroupSchema>;
|
8
9
|
export declare const tagContract: {
|
9
10
|
createTag: {
|
10
11
|
body: z.ZodObject<{
|
11
12
|
name: z.ZodString;
|
12
|
-
group: z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">]>;
|
13
|
+
group: z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">, z.ZodLiteral<"cdr">]>;
|
13
14
|
}, "strip", z.ZodTypeAny, {
|
14
15
|
name: string;
|
15
|
-
group: "general" | "contact";
|
16
|
+
group: "general" | "contact" | "cdr";
|
16
17
|
}, {
|
17
18
|
name: string;
|
18
|
-
group: "general" | "contact";
|
19
|
+
group: "general" | "contact" | "cdr";
|
19
20
|
}>;
|
20
21
|
method: "POST";
|
21
22
|
responses: {
|
@@ -91,14 +92,14 @@ export declare const tagContract: {
|
|
91
92
|
getTags: {
|
92
93
|
method: "GET";
|
93
94
|
query: z.ZodOptional<z.ZodObject<{
|
94
|
-
group: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">]
|
95
|
-
keyword: z.ZodOptional<z.ZodString
|
95
|
+
group: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">, z.ZodLiteral<"cdr">]>>>>;
|
96
|
+
keyword: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
96
97
|
}, "strip", z.ZodTypeAny, {
|
97
|
-
group?: "general" | "contact" | undefined;
|
98
|
-
keyword?: string | undefined;
|
98
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
99
|
+
keyword?: string | null | undefined;
|
99
100
|
}, {
|
100
|
-
group?: "general" | "contact" | undefined;
|
101
|
-
keyword?: string | undefined;
|
101
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
102
|
+
keyword?: string | null | undefined;
|
102
103
|
}>>;
|
103
104
|
responses: {
|
104
105
|
200: z.ZodObject<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tag/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tag/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC/D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC3D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC/D,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAC5C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDvB,CAAC"}
|
@@ -18,5 +18,5 @@ export declare const TagSchema: z.ZodObject<{
|
|
18
18
|
updatedAt: Date;
|
19
19
|
deletedAt: Date | null;
|
20
20
|
}>;
|
21
|
-
export declare const TagGroupSchema: z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">]>;
|
21
|
+
export declare const TagGroupSchema: z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">, z.ZodLiteral<"cdr">]>;
|
22
22
|
//# sourceMappingURL=schema.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/tag/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;EAEpB,CAAC;AAEH,eAAO,MAAM,cAAc,
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/tag/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;EAEpB,CAAC;AAEH,eAAO,MAAM,cAAc,qFAIzB,CAAC"}
|
@@ -1,23 +1,23 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const CreateTagSchema: z.ZodObject<{
|
3
3
|
name: z.ZodString;
|
4
|
-
group: z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">]>;
|
4
|
+
group: z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">, z.ZodLiteral<"cdr">]>;
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
6
6
|
name: string;
|
7
|
-
group: "general" | "contact";
|
7
|
+
group: "general" | "contact" | "cdr";
|
8
8
|
}, {
|
9
9
|
name: string;
|
10
|
-
group: "general" | "contact";
|
10
|
+
group: "general" | "contact" | "cdr";
|
11
11
|
}>;
|
12
12
|
export declare const GetTagsSchema: z.ZodOptional<z.ZodObject<{
|
13
|
-
group: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">]
|
14
|
-
keyword: z.ZodOptional<z.ZodString
|
13
|
+
group: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">, z.ZodLiteral<"cdr">]>>>>;
|
14
|
+
keyword: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
16
|
-
group?: "general" | "contact" | undefined;
|
17
|
-
keyword?: string | undefined;
|
16
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
17
|
+
keyword?: string | null | undefined;
|
18
18
|
}, {
|
19
|
-
group?: "general" | "contact" | undefined;
|
20
|
-
keyword?: string | undefined;
|
19
|
+
group?: "general" | "contact" | "cdr" | undefined;
|
20
|
+
keyword?: string | null | undefined;
|
21
21
|
}>>;
|
22
22
|
export declare const UpdateTagSchema: z.ZodObject<{
|
23
23
|
name: z.ZodString;
|
package/dist/index.js
CHANGED
@@ -464,7 +464,8 @@ var TagSchema = DefaultEntitySchema.extend({
|
|
464
464
|
});
|
465
465
|
var TagGroupSchema = import_zod9.default.union([
|
466
466
|
import_zod9.default.literal("general"),
|
467
|
-
import_zod9.default.literal("contact")
|
467
|
+
import_zod9.default.literal("contact"),
|
468
|
+
import_zod9.default.literal("cdr")
|
468
469
|
]);
|
469
470
|
|
470
471
|
// src/upload/schema.ts
|
@@ -5948,8 +5949,8 @@ var CreateTagSchema = import_zod70.z.object({
|
|
5948
5949
|
group: TagGroupSchema
|
5949
5950
|
});
|
5950
5951
|
var GetTagsSchema = import_zod70.z.object({
|
5951
|
-
group: TagGroupSchema.default("general"),
|
5952
|
-
keyword: import_zod70.z.string()
|
5952
|
+
group: TagGroupSchema.optional().default("general"),
|
5953
|
+
keyword: import_zod70.z.string().nullable().optional()
|
5953
5954
|
}).partial().optional();
|
5954
5955
|
var UpdateTagSchema = import_zod70.z.object({ name: import_zod70.z.string() });
|
5955
5956
|
|