@kl1/contracts 1.1.16-uat → 1.1.17-uat
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/index.js +335 -178
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +334 -178
- package/dist/index.mjs.map +1 -1
- package/dist/src/contract.d.ts +728 -0
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/snippet/index.d.ts +740 -0
- package/dist/src/snippet/index.d.ts.map +1 -0
- package/dist/src/snippet/schema.d.ts +131 -0
- package/dist/src/snippet/schema.d.ts.map +1 -0
- package/dist/src/snippet/validation.d.ts +80 -0
- package/dist/src/snippet/validation.d.ts.map +1 -0
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/snippet/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAKlB,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAClE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC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|
3
|
+
* TODO: add platform type for future use
|
4
|
+
* TODO: add template and image url for future use
|
5
|
+
*
|
6
|
+
*
|
7
|
+
*/
|
8
|
+
export declare const SnippetGroupSchema: z.ZodObject<{
|
9
|
+
id: z.ZodString;
|
10
|
+
createdAt: z.ZodDate;
|
11
|
+
updatedAt: z.ZodDate;
|
12
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
13
|
+
name: z.ZodString;
|
14
|
+
platformType: z.ZodString;
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
16
|
+
id: string;
|
17
|
+
name: string;
|
18
|
+
createdAt: Date;
|
19
|
+
updatedAt: Date;
|
20
|
+
deletedAt: Date | null;
|
21
|
+
platformType: string;
|
22
|
+
}, {
|
23
|
+
id: string;
|
24
|
+
name: string;
|
25
|
+
createdAt: Date;
|
26
|
+
updatedAt: Date;
|
27
|
+
deletedAt: Date | null;
|
28
|
+
platformType: string;
|
29
|
+
}>;
|
30
|
+
export declare const SnippetSchema: z.ZodObject<{
|
31
|
+
id: z.ZodString;
|
32
|
+
createdAt: z.ZodDate;
|
33
|
+
updatedAt: z.ZodDate;
|
34
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
35
|
+
shortcutName: z.ZodString;
|
36
|
+
contentType: z.ZodString;
|
37
|
+
contentValue: z.ZodNullable<z.ZodString>;
|
38
|
+
uploadId: z.ZodNullable<z.ZodString>;
|
39
|
+
order: z.ZodOptional<z.ZodNumber>;
|
40
|
+
snippetGroupId: z.ZodString;
|
41
|
+
snippetGroup: z.ZodObject<{
|
42
|
+
id: z.ZodString;
|
43
|
+
createdAt: z.ZodDate;
|
44
|
+
updatedAt: z.ZodDate;
|
45
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
46
|
+
name: z.ZodString;
|
47
|
+
platformType: z.ZodString;
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
49
|
+
id: string;
|
50
|
+
name: string;
|
51
|
+
createdAt: Date;
|
52
|
+
updatedAt: Date;
|
53
|
+
deletedAt: Date | null;
|
54
|
+
platformType: string;
|
55
|
+
}, {
|
56
|
+
id: string;
|
57
|
+
name: string;
|
58
|
+
createdAt: Date;
|
59
|
+
updatedAt: Date;
|
60
|
+
deletedAt: Date | null;
|
61
|
+
platformType: string;
|
62
|
+
}>;
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
64
|
+
id: string;
|
65
|
+
createdAt: Date;
|
66
|
+
updatedAt: Date;
|
67
|
+
deletedAt: Date | null;
|
68
|
+
contentType: string;
|
69
|
+
uploadId: string | null;
|
70
|
+
shortcutName: string;
|
71
|
+
contentValue: string | null;
|
72
|
+
snippetGroupId: string;
|
73
|
+
snippetGroup: {
|
74
|
+
id: string;
|
75
|
+
name: string;
|
76
|
+
createdAt: Date;
|
77
|
+
updatedAt: Date;
|
78
|
+
deletedAt: Date | null;
|
79
|
+
platformType: string;
|
80
|
+
};
|
81
|
+
order?: number | undefined;
|
82
|
+
}, {
|
83
|
+
id: string;
|
84
|
+
createdAt: Date;
|
85
|
+
updatedAt: Date;
|
86
|
+
deletedAt: Date | null;
|
87
|
+
contentType: string;
|
88
|
+
uploadId: string | null;
|
89
|
+
shortcutName: string;
|
90
|
+
contentValue: string | null;
|
91
|
+
snippetGroupId: string;
|
92
|
+
snippetGroup: {
|
93
|
+
id: string;
|
94
|
+
name: string;
|
95
|
+
createdAt: Date;
|
96
|
+
updatedAt: Date;
|
97
|
+
deletedAt: Date | null;
|
98
|
+
platformType: string;
|
99
|
+
};
|
100
|
+
order?: number | undefined;
|
101
|
+
}>;
|
102
|
+
export declare const SnippetGroupListItemSchema: z.ZodObject<{
|
103
|
+
id: z.ZodString;
|
104
|
+
name: z.ZodString;
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
106
|
+
id: string;
|
107
|
+
name: string;
|
108
|
+
}, {
|
109
|
+
id: string;
|
110
|
+
name: string;
|
111
|
+
}>;
|
112
|
+
export declare const SnippetListItemSchema: z.ZodObject<{
|
113
|
+
id: z.ZodString;
|
114
|
+
shortCutName: z.ZodString;
|
115
|
+
contentType: z.ZodString;
|
116
|
+
contentValue: z.ZodNullable<z.ZodString>;
|
117
|
+
snippetGroupId: z.ZodString;
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
119
|
+
id: string;
|
120
|
+
contentType: string;
|
121
|
+
contentValue: string | null;
|
122
|
+
snippetGroupId: string;
|
123
|
+
shortCutName: string;
|
124
|
+
}, {
|
125
|
+
id: string;
|
126
|
+
contentType: string;
|
127
|
+
contentValue: string | null;
|
128
|
+
snippetGroupId: string;
|
129
|
+
shortCutName: string;
|
130
|
+
}>;
|
131
|
+
//# sourceMappingURL=schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/snippet/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB;;;;;GAKG;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;EAMhC,CAAC"}
|
@@ -0,0 +1,80 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
/**
|
3
|
+
* Schema for a snippet group.
|
4
|
+
*/
|
5
|
+
export declare const CreateSnippetGroupSchema: z.ZodObject<{
|
6
|
+
name: z.ZodString;
|
7
|
+
platformType: z.ZodString;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
name: string;
|
10
|
+
platformType: string;
|
11
|
+
}, {
|
12
|
+
name: string;
|
13
|
+
platformType: string;
|
14
|
+
}>;
|
15
|
+
export declare const UpdateSnippetGroupSchema: z.ZodObject<{
|
16
|
+
name: z.ZodOptional<z.ZodString>;
|
17
|
+
paltformType: z.ZodOptional<z.ZodString>;
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
19
|
+
name?: string | undefined;
|
20
|
+
paltformType?: string | undefined;
|
21
|
+
}, {
|
22
|
+
name?: string | undefined;
|
23
|
+
paltformType?: string | undefined;
|
24
|
+
}>;
|
25
|
+
export declare const DeleteSnippetGroupSchema: z.ZodObject<{
|
26
|
+
id: z.ZodString;
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
28
|
+
id: string;
|
29
|
+
}, {
|
30
|
+
id: string;
|
31
|
+
}>;
|
32
|
+
export declare const CreateSnippetSchema: z.ZodObject<{
|
33
|
+
shortcutName: z.ZodString;
|
34
|
+
contentType: z.ZodString;
|
35
|
+
contentValue: z.ZodOptional<z.ZodString>;
|
36
|
+
snippetGroupId: z.ZodString;
|
37
|
+
platformType: z.ZodString;
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
39
|
+
contentType: string;
|
40
|
+
platformType: string;
|
41
|
+
shortcutName: string;
|
42
|
+
snippetGroupId: string;
|
43
|
+
contentValue?: string | undefined;
|
44
|
+
}, {
|
45
|
+
contentType: string;
|
46
|
+
platformType: string;
|
47
|
+
shortcutName: string;
|
48
|
+
snippetGroupId: string;
|
49
|
+
contentValue?: string | undefined;
|
50
|
+
}>;
|
51
|
+
export declare const UpdateSnippetSchema: z.ZodObject<{
|
52
|
+
contentType: z.ZodString;
|
53
|
+
platformType: z.ZodString;
|
54
|
+
shortcutName: z.ZodString;
|
55
|
+
contentValue: z.ZodOptional<z.ZodString>;
|
56
|
+
snippetGroupId: z.ZodString;
|
57
|
+
snippetId: z.ZodString;
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
59
|
+
contentType: string;
|
60
|
+
platformType: string;
|
61
|
+
shortcutName: string;
|
62
|
+
snippetGroupId: string;
|
63
|
+
snippetId: string;
|
64
|
+
contentValue?: string | undefined;
|
65
|
+
}, {
|
66
|
+
contentType: string;
|
67
|
+
platformType: string;
|
68
|
+
shortcutName: string;
|
69
|
+
snippetGroupId: string;
|
70
|
+
snippetId: string;
|
71
|
+
contentValue?: string | undefined;
|
72
|
+
}>;
|
73
|
+
export declare const DeleteSnippetSchema: z.ZodObject<{
|
74
|
+
snippetId: z.ZodString;
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
76
|
+
snippetId: string;
|
77
|
+
}, {
|
78
|
+
snippetId: string;
|
79
|
+
}>;
|
80
|
+
//# sourceMappingURL=validation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/snippet/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;EAEnC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;EAE9B,CAAC"}
|