@kl1/contracts 1.3.36 → 1.3.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/contract.d.ts +422 -0
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/index.d.ts +3 -0
- package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/validation.d.ts +1 -0
- package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/presence-status/index.d.ts +420 -1
- package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/presence-status/schema.d.ts +369 -0
- package/dist/api-contracts/src/presence-status/schema.d.ts.map +1 -1
- package/dist/index.js +29 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -34,4 +34,373 @@ export declare const PresenceStatusSchema: z.ZodObject<{
|
|
34
34
|
displayName: string;
|
35
35
|
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
36
36
|
}>;
|
37
|
+
export declare const UserPresenceStatusSchema: z.ZodObject<{
|
38
|
+
id: z.ZodString;
|
39
|
+
createdAt: z.ZodDate;
|
40
|
+
updatedAt: z.ZodDate;
|
41
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
42
|
+
userId: z.ZodString;
|
43
|
+
user: z.ZodObject<{
|
44
|
+
name: z.ZodString;
|
45
|
+
id: z.ZodString;
|
46
|
+
address: z.ZodNullable<z.ZodString>;
|
47
|
+
email: z.ZodString;
|
48
|
+
createdAt: z.ZodDate;
|
49
|
+
updatedAt: z.ZodDate;
|
50
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
51
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
52
|
+
password: z.ZodString;
|
53
|
+
phone: z.ZodNullable<z.ZodString>;
|
54
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
55
|
+
roles: z.ZodArray<z.ZodObject<{
|
56
|
+
id: z.ZodString;
|
57
|
+
createdAt: z.ZodDate;
|
58
|
+
updatedAt: z.ZodDate;
|
59
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
60
|
+
systemName: z.ZodString;
|
61
|
+
displayName: z.ZodString;
|
62
|
+
description: z.ZodNullable<z.ZodString>;
|
63
|
+
permissions: z.ZodArray<z.ZodObject<{
|
64
|
+
id: z.ZodString;
|
65
|
+
createdAt: z.ZodDate;
|
66
|
+
updatedAt: z.ZodDate;
|
67
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
68
|
+
systemName: z.ZodString;
|
69
|
+
displayName: z.ZodString;
|
70
|
+
description: z.ZodNullable<z.ZodString>;
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
72
|
+
id: string;
|
73
|
+
description: string | null;
|
74
|
+
createdAt: Date;
|
75
|
+
updatedAt: Date;
|
76
|
+
deletedAt: Date | null;
|
77
|
+
systemName: string;
|
78
|
+
displayName: string;
|
79
|
+
}, {
|
80
|
+
id: string;
|
81
|
+
description: string | null;
|
82
|
+
createdAt: Date;
|
83
|
+
updatedAt: Date;
|
84
|
+
deletedAt: Date | null;
|
85
|
+
systemName: string;
|
86
|
+
displayName: string;
|
87
|
+
}>, "many">;
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
89
|
+
id: string;
|
90
|
+
description: string | null;
|
91
|
+
createdAt: Date;
|
92
|
+
updatedAt: Date;
|
93
|
+
deletedAt: Date | null;
|
94
|
+
systemName: string;
|
95
|
+
displayName: string;
|
96
|
+
permissions: {
|
97
|
+
id: string;
|
98
|
+
description: string | null;
|
99
|
+
createdAt: Date;
|
100
|
+
updatedAt: Date;
|
101
|
+
deletedAt: Date | null;
|
102
|
+
systemName: string;
|
103
|
+
displayName: string;
|
104
|
+
}[];
|
105
|
+
}, {
|
106
|
+
id: string;
|
107
|
+
description: string | null;
|
108
|
+
createdAt: Date;
|
109
|
+
updatedAt: Date;
|
110
|
+
deletedAt: Date | null;
|
111
|
+
systemName: string;
|
112
|
+
displayName: string;
|
113
|
+
permissions: {
|
114
|
+
id: string;
|
115
|
+
description: string | null;
|
116
|
+
createdAt: Date;
|
117
|
+
updatedAt: Date;
|
118
|
+
deletedAt: Date | null;
|
119
|
+
systemName: string;
|
120
|
+
displayName: string;
|
121
|
+
}[];
|
122
|
+
}>, "many">;
|
123
|
+
extension: z.ZodObject<{
|
124
|
+
id: z.ZodString;
|
125
|
+
createdAt: z.ZodDate;
|
126
|
+
updatedAt: z.ZodDate;
|
127
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
128
|
+
userId: z.ZodNullable<z.ZodString>;
|
129
|
+
sipServerUrl: z.ZodString;
|
130
|
+
sipUserName: z.ZodString;
|
131
|
+
webphoneLoginUser: z.ZodString;
|
132
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
133
|
+
extensionName: z.ZodString;
|
134
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
136
|
+
id: string;
|
137
|
+
createdAt: Date;
|
138
|
+
updatedAt: Date;
|
139
|
+
deletedAt: Date | null;
|
140
|
+
userId: string | null;
|
141
|
+
sipServerUrl: string;
|
142
|
+
sipUserName: string;
|
143
|
+
webphoneLoginUser: string;
|
144
|
+
extensionId: string | null;
|
145
|
+
extensionName: string;
|
146
|
+
telephonySignature: string | null;
|
147
|
+
}, {
|
148
|
+
id: string;
|
149
|
+
createdAt: Date;
|
150
|
+
updatedAt: Date;
|
151
|
+
deletedAt: Date | null;
|
152
|
+
userId: string | null;
|
153
|
+
sipServerUrl: string;
|
154
|
+
sipUserName: string;
|
155
|
+
webphoneLoginUser: string;
|
156
|
+
extensionId: string | null;
|
157
|
+
extensionName: string;
|
158
|
+
telephonySignature: string | null;
|
159
|
+
}>;
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
161
|
+
name: string;
|
162
|
+
id: string;
|
163
|
+
address: string | null;
|
164
|
+
email: string;
|
165
|
+
createdAt: Date;
|
166
|
+
updatedAt: Date;
|
167
|
+
deletedAt: Date | null;
|
168
|
+
emailVerifiedAt: Date | null;
|
169
|
+
password: string;
|
170
|
+
phone: string | null;
|
171
|
+
notificationCount: number | null;
|
172
|
+
roles: {
|
173
|
+
id: string;
|
174
|
+
description: string | null;
|
175
|
+
createdAt: Date;
|
176
|
+
updatedAt: Date;
|
177
|
+
deletedAt: Date | null;
|
178
|
+
systemName: string;
|
179
|
+
displayName: string;
|
180
|
+
permissions: {
|
181
|
+
id: string;
|
182
|
+
description: string | null;
|
183
|
+
createdAt: Date;
|
184
|
+
updatedAt: Date;
|
185
|
+
deletedAt: Date | null;
|
186
|
+
systemName: string;
|
187
|
+
displayName: string;
|
188
|
+
}[];
|
189
|
+
}[];
|
190
|
+
extension: {
|
191
|
+
id: string;
|
192
|
+
createdAt: Date;
|
193
|
+
updatedAt: Date;
|
194
|
+
deletedAt: Date | null;
|
195
|
+
userId: string | null;
|
196
|
+
sipServerUrl: string;
|
197
|
+
sipUserName: string;
|
198
|
+
webphoneLoginUser: string;
|
199
|
+
extensionId: string | null;
|
200
|
+
extensionName: string;
|
201
|
+
telephonySignature: string | null;
|
202
|
+
};
|
203
|
+
}, {
|
204
|
+
name: string;
|
205
|
+
id: string;
|
206
|
+
address: string | null;
|
207
|
+
email: string;
|
208
|
+
createdAt: Date;
|
209
|
+
updatedAt: Date;
|
210
|
+
deletedAt: Date | null;
|
211
|
+
emailVerifiedAt: Date | null;
|
212
|
+
password: string;
|
213
|
+
phone: string | null;
|
214
|
+
notificationCount: number | null;
|
215
|
+
roles: {
|
216
|
+
id: string;
|
217
|
+
description: string | null;
|
218
|
+
createdAt: Date;
|
219
|
+
updatedAt: Date;
|
220
|
+
deletedAt: Date | null;
|
221
|
+
systemName: string;
|
222
|
+
displayName: string;
|
223
|
+
permissions: {
|
224
|
+
id: string;
|
225
|
+
description: string | null;
|
226
|
+
createdAt: Date;
|
227
|
+
updatedAt: Date;
|
228
|
+
deletedAt: Date | null;
|
229
|
+
systemName: string;
|
230
|
+
displayName: string;
|
231
|
+
}[];
|
232
|
+
}[];
|
233
|
+
extension: {
|
234
|
+
id: string;
|
235
|
+
createdAt: Date;
|
236
|
+
updatedAt: Date;
|
237
|
+
deletedAt: Date | null;
|
238
|
+
userId: string | null;
|
239
|
+
sipServerUrl: string;
|
240
|
+
sipUserName: string;
|
241
|
+
webphoneLoginUser: string;
|
242
|
+
extensionId: string | null;
|
243
|
+
extensionName: string;
|
244
|
+
telephonySignature: string | null;
|
245
|
+
};
|
246
|
+
}>;
|
247
|
+
presenceStatus: z.ZodObject<{
|
248
|
+
id: z.ZodString;
|
249
|
+
createdAt: z.ZodDate;
|
250
|
+
updatedAt: z.ZodDate;
|
251
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
252
|
+
systemName: z.ZodString;
|
253
|
+
displayName: z.ZodString;
|
254
|
+
description: z.ZodNullable<z.ZodString>;
|
255
|
+
position: z.ZodNumber;
|
256
|
+
emoji: z.ZodNullable<z.ZodString>;
|
257
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
258
|
+
}, "strip", z.ZodTypeAny, {
|
259
|
+
emoji: string | null;
|
260
|
+
id: string;
|
261
|
+
position: number;
|
262
|
+
description: string | null;
|
263
|
+
createdAt: Date;
|
264
|
+
updatedAt: Date;
|
265
|
+
deletedAt: Date | null;
|
266
|
+
systemName: string;
|
267
|
+
displayName: string;
|
268
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
269
|
+
}, {
|
270
|
+
emoji: string | null;
|
271
|
+
id: string;
|
272
|
+
position: number;
|
273
|
+
description: string | null;
|
274
|
+
createdAt: Date;
|
275
|
+
updatedAt: Date;
|
276
|
+
deletedAt: Date | null;
|
277
|
+
systemName: string;
|
278
|
+
displayName: string;
|
279
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
280
|
+
}>;
|
281
|
+
}, "strip", z.ZodTypeAny, {
|
282
|
+
id: string;
|
283
|
+
user: {
|
284
|
+
name: string;
|
285
|
+
id: string;
|
286
|
+
address: string | null;
|
287
|
+
email: string;
|
288
|
+
createdAt: Date;
|
289
|
+
updatedAt: Date;
|
290
|
+
deletedAt: Date | null;
|
291
|
+
emailVerifiedAt: Date | null;
|
292
|
+
password: string;
|
293
|
+
phone: string | null;
|
294
|
+
notificationCount: number | null;
|
295
|
+
roles: {
|
296
|
+
id: string;
|
297
|
+
description: string | null;
|
298
|
+
createdAt: Date;
|
299
|
+
updatedAt: Date;
|
300
|
+
deletedAt: Date | null;
|
301
|
+
systemName: string;
|
302
|
+
displayName: string;
|
303
|
+
permissions: {
|
304
|
+
id: string;
|
305
|
+
description: string | null;
|
306
|
+
createdAt: Date;
|
307
|
+
updatedAt: Date;
|
308
|
+
deletedAt: Date | null;
|
309
|
+
systemName: string;
|
310
|
+
displayName: string;
|
311
|
+
}[];
|
312
|
+
}[];
|
313
|
+
extension: {
|
314
|
+
id: string;
|
315
|
+
createdAt: Date;
|
316
|
+
updatedAt: Date;
|
317
|
+
deletedAt: Date | null;
|
318
|
+
userId: string | null;
|
319
|
+
sipServerUrl: string;
|
320
|
+
sipUserName: string;
|
321
|
+
webphoneLoginUser: string;
|
322
|
+
extensionId: string | null;
|
323
|
+
extensionName: string;
|
324
|
+
telephonySignature: string | null;
|
325
|
+
};
|
326
|
+
};
|
327
|
+
createdAt: Date;
|
328
|
+
updatedAt: Date;
|
329
|
+
deletedAt: Date | null;
|
330
|
+
userId: string;
|
331
|
+
presenceStatus: {
|
332
|
+
emoji: string | null;
|
333
|
+
id: string;
|
334
|
+
position: number;
|
335
|
+
description: string | null;
|
336
|
+
createdAt: Date;
|
337
|
+
updatedAt: Date;
|
338
|
+
deletedAt: Date | null;
|
339
|
+
systemName: string;
|
340
|
+
displayName: string;
|
341
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
342
|
+
};
|
343
|
+
}, {
|
344
|
+
id: string;
|
345
|
+
user: {
|
346
|
+
name: string;
|
347
|
+
id: string;
|
348
|
+
address: string | null;
|
349
|
+
email: string;
|
350
|
+
createdAt: Date;
|
351
|
+
updatedAt: Date;
|
352
|
+
deletedAt: Date | null;
|
353
|
+
emailVerifiedAt: Date | null;
|
354
|
+
password: string;
|
355
|
+
phone: string | null;
|
356
|
+
notificationCount: number | null;
|
357
|
+
roles: {
|
358
|
+
id: string;
|
359
|
+
description: string | null;
|
360
|
+
createdAt: Date;
|
361
|
+
updatedAt: Date;
|
362
|
+
deletedAt: Date | null;
|
363
|
+
systemName: string;
|
364
|
+
displayName: string;
|
365
|
+
permissions: {
|
366
|
+
id: string;
|
367
|
+
description: string | null;
|
368
|
+
createdAt: Date;
|
369
|
+
updatedAt: Date;
|
370
|
+
deletedAt: Date | null;
|
371
|
+
systemName: string;
|
372
|
+
displayName: string;
|
373
|
+
}[];
|
374
|
+
}[];
|
375
|
+
extension: {
|
376
|
+
id: string;
|
377
|
+
createdAt: Date;
|
378
|
+
updatedAt: Date;
|
379
|
+
deletedAt: Date | null;
|
380
|
+
userId: string | null;
|
381
|
+
sipServerUrl: string;
|
382
|
+
sipUserName: string;
|
383
|
+
webphoneLoginUser: string;
|
384
|
+
extensionId: string | null;
|
385
|
+
extensionName: string;
|
386
|
+
telephonySignature: string | null;
|
387
|
+
};
|
388
|
+
};
|
389
|
+
createdAt: Date;
|
390
|
+
updatedAt: Date;
|
391
|
+
deletedAt: Date | null;
|
392
|
+
userId: string;
|
393
|
+
presenceStatus: {
|
394
|
+
emoji: string | null;
|
395
|
+
id: string;
|
396
|
+
position: number;
|
397
|
+
description: string | null;
|
398
|
+
createdAt: Date;
|
399
|
+
updatedAt: Date;
|
400
|
+
deletedAt: Date | null;
|
401
|
+
systemName: string;
|
402
|
+
displayName: string;
|
403
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
404
|
+
};
|
405
|
+
}>;
|
37
406
|
//# sourceMappingURL=schema.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/presence-status/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/presence-status/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,qBAAqB,oKAKhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQnC,CAAC"}
|
package/dist/index.js
CHANGED
@@ -4334,6 +4334,7 @@ var MessageDashboardDetailsQuerySchema = import_zod53.default.object({
|
|
4334
4334
|
selectedDate: import_zod53.default.string().min(1),
|
4335
4335
|
channelIds: import_zod53.default.array(import_zod53.default.string().uuid()).optional()
|
4336
4336
|
});
|
4337
|
+
var ChannelCountsFilterSchema = import_zod53.default.union([import_zod53.default.literal("channelName"), import_zod53.default.literal("channelType")]).default("channelName").optional();
|
4337
4338
|
|
4338
4339
|
// src/dashboard/index.ts
|
4339
4340
|
var import_zod56 = __toESM(require("zod"));
|
@@ -4812,7 +4813,7 @@ var dashboardContract = (0, import_core13.initContract)().router(
|
|
4812
4813
|
path: "/message/platform",
|
4813
4814
|
summary: "Get message platform data",
|
4814
4815
|
query: DashboardGlobalFiltersSchema.extend({
|
4815
|
-
channelCountsFilter:
|
4816
|
+
channelCountsFilter: ChannelCountsFilterSchema
|
4816
4817
|
}),
|
4817
4818
|
headers: DefaultHeaderSchema,
|
4818
4819
|
responses: {
|
@@ -4826,6 +4827,7 @@ var dashboardContract = (0, import_core13.initContract)().router(
|
|
4826
4827
|
method: "GET",
|
4827
4828
|
path: "/export-room-channel-counts",
|
4828
4829
|
query: DashboardGlobalFiltersSchema.extend({
|
4830
|
+
channelCountsFilter: ChannelCountsFilterSchema,
|
4829
4831
|
fileExtension: ExportFileExtensionSchema
|
4830
4832
|
}),
|
4831
4833
|
responses: {
|
@@ -5909,9 +5911,18 @@ var PresenceStatusSchema = import_zod72.default.object({
|
|
5909
5911
|
emoji: import_zod72.default.string().nullable(),
|
5910
5912
|
presenceStatusOption: import_zod72.default.array(TPresenceStatusOption)
|
5911
5913
|
});
|
5914
|
+
var UserPresenceStatusSchema = import_zod72.default.object({
|
5915
|
+
id: import_zod72.default.string().uuid(),
|
5916
|
+
createdAt: import_zod72.default.date(),
|
5917
|
+
updatedAt: import_zod72.default.date(),
|
5918
|
+
deletedAt: import_zod72.default.date().nullable(),
|
5919
|
+
userId: import_zod72.default.string(),
|
5920
|
+
user: UserSchema,
|
5921
|
+
presenceStatus: PresenceStatusSchema
|
5922
|
+
});
|
5912
5923
|
|
5913
5924
|
// src/telephony-agent-presence-status/schema.ts
|
5914
|
-
var
|
5925
|
+
var UserPresenceStatusSchema2 = DefaultEntitySchema.extend({
|
5915
5926
|
user: UserSchema,
|
5916
5927
|
presenceStatus: PresenceStatusSchema
|
5917
5928
|
});
|
@@ -5933,7 +5944,7 @@ var telephonyAgentPresenceStatusContract = (0, import_core23.initContract)().rou
|
|
5933
5944
|
pathParams: import_zod74.default.object({ userId: import_zod74.default.string() }),
|
5934
5945
|
headers: DefaultHeaderSchema,
|
5935
5946
|
responses: {
|
5936
|
-
200:
|
5947
|
+
200: UserPresenceStatusSchema2,
|
5937
5948
|
400: import_zod74.default.object({
|
5938
5949
|
message: import_zod74.default.string()
|
5939
5950
|
}),
|
@@ -5949,7 +5960,7 @@ var telephonyAgentPresenceStatusContract = (0, import_core23.initContract)().rou
|
|
5949
5960
|
body: UpdateUserStatusSchema,
|
5950
5961
|
responses: {
|
5951
5962
|
200: DefaultSuccessResponseSchema.extend({
|
5952
|
-
userPresenceStatu:
|
5963
|
+
userPresenceStatu: UserPresenceStatusSchema2
|
5953
5964
|
}),
|
5954
5965
|
400: import_zod74.default.object({
|
5955
5966
|
message: import_zod74.default.string()
|
@@ -8926,6 +8937,20 @@ var presenceStatusContract = (0, import_core41.initContract)().router(
|
|
8926
8937
|
500: DefaultErrorResponseSchema
|
8927
8938
|
},
|
8928
8939
|
summary: "Delete a presence status."
|
8940
|
+
},
|
8941
|
+
getAllUserPresenceStatus: {
|
8942
|
+
method: "GET",
|
8943
|
+
path: "/user",
|
8944
|
+
headers: DefaultHeaderSchema,
|
8945
|
+
responses: {
|
8946
|
+
200: import_zod113.default.array(UserPresenceStatusSchema),
|
8947
|
+
400: import_zod113.default.object({
|
8948
|
+
message: import_zod113.default.string()
|
8949
|
+
}),
|
8950
|
+
401: DefaultUnauthorizedSchema,
|
8951
|
+
500: DefaultErrorResponseSchema
|
8952
|
+
},
|
8953
|
+
summary: "Get all users presence status"
|
8929
8954
|
}
|
8930
8955
|
},
|
8931
8956
|
{ pathPrefix: "ms/presence_status" }
|