@kl1/contracts 1.0.24 → 1.0.26
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 +167 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +164 -4
- package/dist/index.mjs.map +1 -1
- package/dist/src/activity-log/index.d.ts +399 -0
- package/dist/src/activity-log/index.d.ts.map +1 -0
- package/dist/src/activity-log/schema.d.ts +369 -0
- package/dist/src/activity-log/schema.d.ts.map +1 -0
- package/dist/src/activity-log/validation.d.ts +2 -0
- package/dist/src/activity-log/validation.d.ts.map +1 -0
- package/dist/src/app/index.d.ts +17 -0
- package/dist/src/app/index.d.ts.map +1 -0
- package/dist/src/comment/index.d.ts +4688 -0
- package/dist/src/comment/index.d.ts.map +1 -0
- package/dist/src/comment/schema.d.ts +1257 -0
- package/dist/src/comment/schema.d.ts.map +1 -0
- package/dist/src/comment/validation.d.ts +38 -0
- package/dist/src/comment/validation.d.ts.map +1 -0
- package/dist/src/contract.d.ts +5206 -0
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +127 -0
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mail/mail-server.d.ts +216 -0
- package/dist/src/mail/mail-server.d.ts.map +1 -0
- package/dist/src/platform-contact/schema.d.ts +30 -0
- package/dist/src/platform-contact/schema.d.ts.map +1 -0
- package/package.json +10 -4
@@ -0,0 +1,399 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const activityLogContract: {
|
3
|
+
getActivityLogs: {
|
4
|
+
summary: "Get all activity logs";
|
5
|
+
method: "GET";
|
6
|
+
responses: {
|
7
|
+
200: z.ZodArray<z.ZodObject<{
|
8
|
+
id: z.ZodString;
|
9
|
+
createdAt: z.ZodDate;
|
10
|
+
updatedAt: z.ZodDate;
|
11
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
12
|
+
actor: z.ZodObject<{
|
13
|
+
id: z.ZodString;
|
14
|
+
createdAt: z.ZodDate;
|
15
|
+
updatedAt: z.ZodDate;
|
16
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
17
|
+
name: z.ZodString;
|
18
|
+
email: z.ZodString;
|
19
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
20
|
+
password: z.ZodString;
|
21
|
+
address: z.ZodNullable<z.ZodString>;
|
22
|
+
phone: z.ZodNullable<z.ZodString>;
|
23
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
24
|
+
roles: z.ZodArray<z.ZodObject<{
|
25
|
+
id: z.ZodString;
|
26
|
+
createdAt: z.ZodDate;
|
27
|
+
updatedAt: z.ZodDate;
|
28
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
29
|
+
systemName: z.ZodString;
|
30
|
+
displayName: z.ZodString;
|
31
|
+
description: z.ZodNullable<z.ZodString>;
|
32
|
+
permissions: z.ZodArray<z.ZodObject<{
|
33
|
+
id: z.ZodString;
|
34
|
+
createdAt: z.ZodDate;
|
35
|
+
updatedAt: z.ZodDate;
|
36
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
37
|
+
systemName: z.ZodString;
|
38
|
+
displayName: z.ZodString;
|
39
|
+
description: z.ZodNullable<z.ZodString>;
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
41
|
+
id: string;
|
42
|
+
description: string | null;
|
43
|
+
createdAt: Date;
|
44
|
+
updatedAt: Date;
|
45
|
+
deletedAt: Date | null;
|
46
|
+
systemName: string;
|
47
|
+
displayName: string;
|
48
|
+
}, {
|
49
|
+
id: string;
|
50
|
+
description: string | null;
|
51
|
+
createdAt: Date;
|
52
|
+
updatedAt: Date;
|
53
|
+
deletedAt: Date | null;
|
54
|
+
systemName: string;
|
55
|
+
displayName: string;
|
56
|
+
}>, "many">;
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
58
|
+
id: string;
|
59
|
+
description: string | null;
|
60
|
+
createdAt: Date;
|
61
|
+
updatedAt: Date;
|
62
|
+
deletedAt: Date | null;
|
63
|
+
systemName: string;
|
64
|
+
displayName: string;
|
65
|
+
permissions: {
|
66
|
+
id: string;
|
67
|
+
description: string | null;
|
68
|
+
createdAt: Date;
|
69
|
+
updatedAt: Date;
|
70
|
+
deletedAt: Date | null;
|
71
|
+
systemName: string;
|
72
|
+
displayName: string;
|
73
|
+
}[];
|
74
|
+
}, {
|
75
|
+
id: string;
|
76
|
+
description: string | null;
|
77
|
+
createdAt: Date;
|
78
|
+
updatedAt: Date;
|
79
|
+
deletedAt: Date | null;
|
80
|
+
systemName: string;
|
81
|
+
displayName: string;
|
82
|
+
permissions: {
|
83
|
+
id: string;
|
84
|
+
description: string | null;
|
85
|
+
createdAt: Date;
|
86
|
+
updatedAt: Date;
|
87
|
+
deletedAt: Date | null;
|
88
|
+
systemName: string;
|
89
|
+
displayName: string;
|
90
|
+
}[];
|
91
|
+
}>, "many">;
|
92
|
+
extension: z.ZodOptional<z.ZodObject<{
|
93
|
+
id: z.ZodString;
|
94
|
+
createdAt: z.ZodDate;
|
95
|
+
updatedAt: z.ZodDate;
|
96
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
97
|
+
userId: z.ZodNullable<z.ZodString>;
|
98
|
+
sipServerUrl: z.ZodString;
|
99
|
+
sipUserName: z.ZodString;
|
100
|
+
extensionId: z.ZodNumber;
|
101
|
+
extensionName: z.ZodString;
|
102
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
104
|
+
id: string;
|
105
|
+
createdAt: Date;
|
106
|
+
updatedAt: Date;
|
107
|
+
deletedAt: Date | null;
|
108
|
+
userId: string | null;
|
109
|
+
sipServerUrl: string;
|
110
|
+
sipUserName: string;
|
111
|
+
extensionId: number;
|
112
|
+
extensionName: string;
|
113
|
+
telephonySignature: string | null;
|
114
|
+
}, {
|
115
|
+
id: string;
|
116
|
+
createdAt: Date;
|
117
|
+
updatedAt: Date;
|
118
|
+
deletedAt: Date | null;
|
119
|
+
userId: string | null;
|
120
|
+
sipServerUrl: string;
|
121
|
+
sipUserName: string;
|
122
|
+
extensionId: number;
|
123
|
+
extensionName: string;
|
124
|
+
telephonySignature: string | null;
|
125
|
+
}>>;
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
127
|
+
id: string;
|
128
|
+
address: string | null;
|
129
|
+
name: string;
|
130
|
+
email: string;
|
131
|
+
createdAt: Date;
|
132
|
+
updatedAt: Date;
|
133
|
+
deletedAt: Date | null;
|
134
|
+
emailVerifiedAt: Date | null;
|
135
|
+
password: string;
|
136
|
+
phone: string | null;
|
137
|
+
notificationCount: number | null;
|
138
|
+
roles: {
|
139
|
+
id: string;
|
140
|
+
description: string | null;
|
141
|
+
createdAt: Date;
|
142
|
+
updatedAt: Date;
|
143
|
+
deletedAt: Date | null;
|
144
|
+
systemName: string;
|
145
|
+
displayName: string;
|
146
|
+
permissions: {
|
147
|
+
id: string;
|
148
|
+
description: string | null;
|
149
|
+
createdAt: Date;
|
150
|
+
updatedAt: Date;
|
151
|
+
deletedAt: Date | null;
|
152
|
+
systemName: string;
|
153
|
+
displayName: string;
|
154
|
+
}[];
|
155
|
+
}[];
|
156
|
+
extension?: {
|
157
|
+
id: string;
|
158
|
+
createdAt: Date;
|
159
|
+
updatedAt: Date;
|
160
|
+
deletedAt: Date | null;
|
161
|
+
userId: string | null;
|
162
|
+
sipServerUrl: string;
|
163
|
+
sipUserName: string;
|
164
|
+
extensionId: number;
|
165
|
+
extensionName: string;
|
166
|
+
telephonySignature: string | null;
|
167
|
+
} | undefined;
|
168
|
+
}, {
|
169
|
+
id: string;
|
170
|
+
address: string | null;
|
171
|
+
name: string;
|
172
|
+
email: string;
|
173
|
+
createdAt: Date;
|
174
|
+
updatedAt: Date;
|
175
|
+
deletedAt: Date | null;
|
176
|
+
emailVerifiedAt: Date | null;
|
177
|
+
password: string;
|
178
|
+
phone: string | null;
|
179
|
+
notificationCount: number | null;
|
180
|
+
roles: {
|
181
|
+
id: string;
|
182
|
+
description: string | null;
|
183
|
+
createdAt: Date;
|
184
|
+
updatedAt: Date;
|
185
|
+
deletedAt: Date | null;
|
186
|
+
systemName: string;
|
187
|
+
displayName: string;
|
188
|
+
permissions: {
|
189
|
+
id: string;
|
190
|
+
description: string | null;
|
191
|
+
createdAt: Date;
|
192
|
+
updatedAt: Date;
|
193
|
+
deletedAt: Date | null;
|
194
|
+
systemName: string;
|
195
|
+
displayName: string;
|
196
|
+
}[];
|
197
|
+
}[];
|
198
|
+
extension?: {
|
199
|
+
id: string;
|
200
|
+
createdAt: Date;
|
201
|
+
updatedAt: Date;
|
202
|
+
deletedAt: Date | null;
|
203
|
+
userId: string | null;
|
204
|
+
sipServerUrl: string;
|
205
|
+
sipUserName: string;
|
206
|
+
extensionId: number;
|
207
|
+
extensionName: string;
|
208
|
+
telephonySignature: string | null;
|
209
|
+
} | undefined;
|
210
|
+
}>;
|
211
|
+
entityId: z.ZodString;
|
212
|
+
description: z.ZodString;
|
213
|
+
entityType: z.ZodObject<{
|
214
|
+
id: z.ZodString;
|
215
|
+
createdAt: z.ZodDate;
|
216
|
+
updatedAt: z.ZodDate;
|
217
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
218
|
+
entity: z.ZodString;
|
219
|
+
description: z.ZodString;
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
221
|
+
id: string;
|
222
|
+
description: string;
|
223
|
+
createdAt: Date;
|
224
|
+
updatedAt: Date;
|
225
|
+
deletedAt: Date | null;
|
226
|
+
entity: string;
|
227
|
+
}, {
|
228
|
+
id: string;
|
229
|
+
description: string;
|
230
|
+
createdAt: Date;
|
231
|
+
updatedAt: Date;
|
232
|
+
deletedAt: Date | null;
|
233
|
+
entity: string;
|
234
|
+
}>;
|
235
|
+
}, "strip", z.ZodTypeAny, {
|
236
|
+
id: string;
|
237
|
+
description: string;
|
238
|
+
createdAt: Date;
|
239
|
+
updatedAt: Date;
|
240
|
+
deletedAt: Date | null;
|
241
|
+
actor: {
|
242
|
+
id: string;
|
243
|
+
address: string | null;
|
244
|
+
name: string;
|
245
|
+
email: string;
|
246
|
+
createdAt: Date;
|
247
|
+
updatedAt: Date;
|
248
|
+
deletedAt: Date | null;
|
249
|
+
emailVerifiedAt: Date | null;
|
250
|
+
password: string;
|
251
|
+
phone: string | null;
|
252
|
+
notificationCount: number | null;
|
253
|
+
roles: {
|
254
|
+
id: string;
|
255
|
+
description: string | null;
|
256
|
+
createdAt: Date;
|
257
|
+
updatedAt: Date;
|
258
|
+
deletedAt: Date | null;
|
259
|
+
systemName: string;
|
260
|
+
displayName: string;
|
261
|
+
permissions: {
|
262
|
+
id: string;
|
263
|
+
description: string | null;
|
264
|
+
createdAt: Date;
|
265
|
+
updatedAt: Date;
|
266
|
+
deletedAt: Date | null;
|
267
|
+
systemName: string;
|
268
|
+
displayName: string;
|
269
|
+
}[];
|
270
|
+
}[];
|
271
|
+
extension?: {
|
272
|
+
id: string;
|
273
|
+
createdAt: Date;
|
274
|
+
updatedAt: Date;
|
275
|
+
deletedAt: Date | null;
|
276
|
+
userId: string | null;
|
277
|
+
sipServerUrl: string;
|
278
|
+
sipUserName: string;
|
279
|
+
extensionId: number;
|
280
|
+
extensionName: string;
|
281
|
+
telephonySignature: string | null;
|
282
|
+
} | undefined;
|
283
|
+
};
|
284
|
+
entityId: string;
|
285
|
+
entityType: {
|
286
|
+
id: string;
|
287
|
+
description: string;
|
288
|
+
createdAt: Date;
|
289
|
+
updatedAt: Date;
|
290
|
+
deletedAt: Date | null;
|
291
|
+
entity: string;
|
292
|
+
};
|
293
|
+
}, {
|
294
|
+
id: string;
|
295
|
+
description: string;
|
296
|
+
createdAt: Date;
|
297
|
+
updatedAt: Date;
|
298
|
+
deletedAt: Date | null;
|
299
|
+
actor: {
|
300
|
+
id: string;
|
301
|
+
address: string | null;
|
302
|
+
name: string;
|
303
|
+
email: string;
|
304
|
+
createdAt: Date;
|
305
|
+
updatedAt: Date;
|
306
|
+
deletedAt: Date | null;
|
307
|
+
emailVerifiedAt: Date | null;
|
308
|
+
password: string;
|
309
|
+
phone: string | null;
|
310
|
+
notificationCount: number | null;
|
311
|
+
roles: {
|
312
|
+
id: string;
|
313
|
+
description: string | null;
|
314
|
+
createdAt: Date;
|
315
|
+
updatedAt: Date;
|
316
|
+
deletedAt: Date | null;
|
317
|
+
systemName: string;
|
318
|
+
displayName: string;
|
319
|
+
permissions: {
|
320
|
+
id: string;
|
321
|
+
description: string | null;
|
322
|
+
createdAt: Date;
|
323
|
+
updatedAt: Date;
|
324
|
+
deletedAt: Date | null;
|
325
|
+
systemName: string;
|
326
|
+
displayName: string;
|
327
|
+
}[];
|
328
|
+
}[];
|
329
|
+
extension?: {
|
330
|
+
id: string;
|
331
|
+
createdAt: Date;
|
332
|
+
updatedAt: Date;
|
333
|
+
deletedAt: Date | null;
|
334
|
+
userId: string | null;
|
335
|
+
sipServerUrl: string;
|
336
|
+
sipUserName: string;
|
337
|
+
extensionId: number;
|
338
|
+
extensionName: string;
|
339
|
+
telephonySignature: string | null;
|
340
|
+
} | undefined;
|
341
|
+
};
|
342
|
+
entityId: string;
|
343
|
+
entityType: {
|
344
|
+
id: string;
|
345
|
+
description: string;
|
346
|
+
createdAt: Date;
|
347
|
+
updatedAt: Date;
|
348
|
+
deletedAt: Date | null;
|
349
|
+
entity: string;
|
350
|
+
};
|
351
|
+
}>, "many">;
|
352
|
+
400: z.ZodObject<{
|
353
|
+
message: z.ZodString;
|
354
|
+
}, "strip", z.ZodTypeAny, {
|
355
|
+
message: string;
|
356
|
+
}, {
|
357
|
+
message: string;
|
358
|
+
}>;
|
359
|
+
401: z.ZodObject<{
|
360
|
+
message: z.ZodString;
|
361
|
+
error: z.ZodAny;
|
362
|
+
}, "strip", z.ZodTypeAny, {
|
363
|
+
message: string;
|
364
|
+
error?: any;
|
365
|
+
}, {
|
366
|
+
message: string;
|
367
|
+
error?: any;
|
368
|
+
}>;
|
369
|
+
500: z.ZodObject<{
|
370
|
+
message: z.ZodString;
|
371
|
+
error: z.ZodAny;
|
372
|
+
}, "strip", z.ZodTypeAny, {
|
373
|
+
message: string;
|
374
|
+
error?: any;
|
375
|
+
}, {
|
376
|
+
message: string;
|
377
|
+
error?: any;
|
378
|
+
}>;
|
379
|
+
};
|
380
|
+
path: "activity-log";
|
381
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
382
|
+
'x-tenant': z.ZodString;
|
383
|
+
authorization: z.ZodString;
|
384
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
385
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
387
|
+
'x-tenant': string;
|
388
|
+
authorization: string;
|
389
|
+
'x-client-timezone': string;
|
390
|
+
'x-code'?: string | undefined;
|
391
|
+
}, {
|
392
|
+
'x-tenant': string;
|
393
|
+
authorization: string;
|
394
|
+
'x-code'?: string | undefined;
|
395
|
+
'x-client-timezone'?: string | undefined;
|
396
|
+
}>>>;
|
397
|
+
};
|
398
|
+
};
|
399
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/activity-log/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAQpB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB/B,CAAC"}
|