@kl1/contracts 1.2.34-uat → 1.2.35-uat
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/hold-label/index.d.ts +126 -0
- package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
- package/dist/api-contracts/src/hold-label/schema.d.ts +71 -0
- package/dist/api-contracts/src/hold-label/schema.d.ts.map +1 -1
- package/dist/entities/src/enums/chat.d.ts +1 -1
- package/dist/entities/src/enums/chat.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -333,6 +333,132 @@ export declare const holdLabelContract: {
|
|
333
333
|
};
|
334
334
|
path: "hold-label/auto-unhold";
|
335
335
|
};
|
336
|
+
getHoldLogs: {
|
337
|
+
method: "GET";
|
338
|
+
query: z.ZodObject<{
|
339
|
+
cxLogId: z.ZodString;
|
340
|
+
}, "strip", z.ZodTypeAny, {
|
341
|
+
cxLogId: string;
|
342
|
+
}, {
|
343
|
+
cxLogId: string;
|
344
|
+
}>;
|
345
|
+
responses: {
|
346
|
+
200: z.ZodObject<{
|
347
|
+
holdLogs: z.ZodArray<z.ZodObject<{
|
348
|
+
id: z.ZodString;
|
349
|
+
createdAt: z.ZodDate;
|
350
|
+
updatedAt: z.ZodDate;
|
351
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
352
|
+
startedAt: z.ZodString;
|
353
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
354
|
+
duration: z.ZodNullable<z.ZodNumber>;
|
355
|
+
holdLabel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
356
|
+
id: z.ZodString;
|
357
|
+
createdAt: z.ZodDate;
|
358
|
+
updatedAt: z.ZodDate;
|
359
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
360
|
+
name: z.ZodString;
|
361
|
+
position: z.ZodNumber;
|
362
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
363
|
+
}, "strip", z.ZodTypeAny, {
|
364
|
+
name: string;
|
365
|
+
id: string;
|
366
|
+
position: number;
|
367
|
+
createdAt: Date;
|
368
|
+
updatedAt: Date;
|
369
|
+
deletedAt: Date | null;
|
370
|
+
isDefault: boolean;
|
371
|
+
}, {
|
372
|
+
name: string;
|
373
|
+
id: string;
|
374
|
+
position: number;
|
375
|
+
createdAt: Date;
|
376
|
+
updatedAt: Date;
|
377
|
+
deletedAt: Date | null;
|
378
|
+
isDefault?: boolean | undefined;
|
379
|
+
}>>>;
|
380
|
+
formattedDuration: z.ZodString;
|
381
|
+
}, "strip", z.ZodTypeAny, {
|
382
|
+
id: string;
|
383
|
+
createdAt: Date;
|
384
|
+
updatedAt: Date;
|
385
|
+
deletedAt: Date | null;
|
386
|
+
startedAt: string;
|
387
|
+
endedAt: string | null;
|
388
|
+
duration: number | null;
|
389
|
+
formattedDuration: string;
|
390
|
+
holdLabel?: {
|
391
|
+
name: string;
|
392
|
+
id: string;
|
393
|
+
position: number;
|
394
|
+
createdAt: Date;
|
395
|
+
updatedAt: Date;
|
396
|
+
deletedAt: Date | null;
|
397
|
+
isDefault: boolean;
|
398
|
+
} | null | undefined;
|
399
|
+
}, {
|
400
|
+
id: string;
|
401
|
+
createdAt: Date;
|
402
|
+
updatedAt: Date;
|
403
|
+
deletedAt: Date | null;
|
404
|
+
startedAt: string;
|
405
|
+
endedAt: string | null;
|
406
|
+
duration: number | null;
|
407
|
+
formattedDuration: string;
|
408
|
+
holdLabel?: {
|
409
|
+
name: string;
|
410
|
+
id: string;
|
411
|
+
position: number;
|
412
|
+
createdAt: Date;
|
413
|
+
updatedAt: Date;
|
414
|
+
deletedAt: Date | null;
|
415
|
+
isDefault?: boolean | undefined;
|
416
|
+
} | null | undefined;
|
417
|
+
}>, "many">;
|
418
|
+
}, "strip", z.ZodTypeAny, {
|
419
|
+
holdLogs: {
|
420
|
+
id: string;
|
421
|
+
createdAt: Date;
|
422
|
+
updatedAt: Date;
|
423
|
+
deletedAt: Date | null;
|
424
|
+
startedAt: string;
|
425
|
+
endedAt: string | null;
|
426
|
+
duration: number | null;
|
427
|
+
formattedDuration: string;
|
428
|
+
holdLabel?: {
|
429
|
+
name: string;
|
430
|
+
id: string;
|
431
|
+
position: number;
|
432
|
+
createdAt: Date;
|
433
|
+
updatedAt: Date;
|
434
|
+
deletedAt: Date | null;
|
435
|
+
isDefault: boolean;
|
436
|
+
} | null | undefined;
|
437
|
+
}[];
|
438
|
+
}, {
|
439
|
+
holdLogs: {
|
440
|
+
id: string;
|
441
|
+
createdAt: Date;
|
442
|
+
updatedAt: Date;
|
443
|
+
deletedAt: Date | null;
|
444
|
+
startedAt: string;
|
445
|
+
endedAt: string | null;
|
446
|
+
duration: number | null;
|
447
|
+
formattedDuration: string;
|
448
|
+
holdLabel?: {
|
449
|
+
name: string;
|
450
|
+
id: string;
|
451
|
+
position: number;
|
452
|
+
createdAt: Date;
|
453
|
+
updatedAt: Date;
|
454
|
+
deletedAt: Date | null;
|
455
|
+
isDefault?: boolean | undefined;
|
456
|
+
} | null | undefined;
|
457
|
+
}[];
|
458
|
+
}>;
|
459
|
+
};
|
460
|
+
path: "hold-label/hold-logs";
|
461
|
+
};
|
336
462
|
holdRoom: {
|
337
463
|
body: z.ZodObject<{
|
338
464
|
roomId: z.ZodString;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hold-label/index.ts"],"names":[],"mappings":"AAEA,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hold-label/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,eAAe,EACf,aAAa,EACd,MAAM,UAAU,CAAC;AAClB,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,M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
}>;
|
95
|
+
export declare const FormattedHoldLogSchema: z.ZodObject<{
|
96
|
+
id: z.ZodString;
|
97
|
+
createdAt: z.ZodDate;
|
98
|
+
updatedAt: z.ZodDate;
|
99
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
100
|
+
startedAt: z.ZodString;
|
101
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
102
|
+
duration: z.ZodNullable<z.ZodNumber>;
|
103
|
+
holdLabel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
104
|
+
id: z.ZodString;
|
105
|
+
createdAt: z.ZodDate;
|
106
|
+
updatedAt: z.ZodDate;
|
107
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
108
|
+
name: z.ZodString;
|
109
|
+
position: z.ZodNumber;
|
110
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
112
|
+
name: string;
|
113
|
+
id: string;
|
114
|
+
position: number;
|
115
|
+
createdAt: Date;
|
116
|
+
updatedAt: Date;
|
117
|
+
deletedAt: Date | null;
|
118
|
+
isDefault: boolean;
|
119
|
+
}, {
|
120
|
+
name: string;
|
121
|
+
id: string;
|
122
|
+
position: number;
|
123
|
+
createdAt: Date;
|
124
|
+
updatedAt: Date;
|
125
|
+
deletedAt: Date | null;
|
126
|
+
isDefault?: boolean | undefined;
|
127
|
+
}>>>;
|
128
|
+
formattedDuration: z.ZodString;
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
130
|
+
id: string;
|
131
|
+
createdAt: Date;
|
132
|
+
updatedAt: Date;
|
133
|
+
deletedAt: Date | null;
|
134
|
+
startedAt: string;
|
135
|
+
endedAt: string | null;
|
136
|
+
duration: number | null;
|
137
|
+
formattedDuration: string;
|
138
|
+
holdLabel?: {
|
139
|
+
name: string;
|
140
|
+
id: string;
|
141
|
+
position: number;
|
142
|
+
createdAt: Date;
|
143
|
+
updatedAt: Date;
|
144
|
+
deletedAt: Date | null;
|
145
|
+
isDefault: boolean;
|
146
|
+
} | null | undefined;
|
147
|
+
}, {
|
148
|
+
id: string;
|
149
|
+
createdAt: Date;
|
150
|
+
updatedAt: Date;
|
151
|
+
deletedAt: Date | null;
|
152
|
+
startedAt: string;
|
153
|
+
endedAt: string | null;
|
154
|
+
duration: number | null;
|
155
|
+
formattedDuration: string;
|
156
|
+
holdLabel?: {
|
157
|
+
name: string;
|
158
|
+
id: string;
|
159
|
+
position: number;
|
160
|
+
createdAt: Date;
|
161
|
+
updatedAt: Date;
|
162
|
+
deletedAt: Date | null;
|
163
|
+
isDefault?: boolean | undefined;
|
164
|
+
} | null | undefined;
|
165
|
+
}>;
|
95
166
|
//# sourceMappingURL=schema.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/hold-label/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;EAI1B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKxB,CAAC"}
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/hold-label/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;EAI1B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKxB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chat.d.ts","s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AAED,MAAM,MAAM,YAAY,GAAG,GAAG,YAAY,EAAE,CAAC;AAE7C,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,oBAAoB,yBAAyB;IAC7C,OAAO,YAAY;IAEnB,WAAW,gBAAgB;CAC5B;AACD,MAAM,MAAM,aAAa,GAAG,GAAG,aAAa,EAAE,CAAC;AAE/C,oBAAY,cAAc;IACxB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,MAAM,MAAM,cAAc,GAAG,GAAG,cAAc,EAAE,CAAC;AAEjD,oBAAY,cAAc;IACxB,oBAAoB,yBAAyB;IAC7C,cAAc,mBAAmB;IACjC,sBAAsB,2BAA2B;IACjD,WAAW,gBAAgB;CAC5B;AAED,oBAAY,eAAe;IACzB,KAAK,KAAK;IACV,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,aAAa,kBAAkB;CAChC"}
|
package/dist/index.js
CHANGED
@@ -1182,6 +1182,9 @@ var HoldLogSchema = DefaultEntitySchema.extend({
|
|
1182
1182
|
duration: import_zod24.default.number().nullable(),
|
1183
1183
|
holdLabel: HoldLabelSchema.nullable().optional()
|
1184
1184
|
});
|
1185
|
+
var FormattedHoldLogSchema = HoldLogSchema.extend({
|
1186
|
+
formattedDuration: import_zod24.default.string()
|
1187
|
+
});
|
1185
1188
|
|
1186
1189
|
// src/cx-log/schema.ts
|
1187
1190
|
var CxLogSchema = DefaultEntitySchema.extend({
|
@@ -9980,6 +9983,16 @@ var holdLabelContract = (0, import_core52.initContract)().router(
|
|
9980
9983
|
})
|
9981
9984
|
}
|
9982
9985
|
},
|
9986
|
+
getHoldLogs: {
|
9987
|
+
method: "GET",
|
9988
|
+
path: "/hold-logs",
|
9989
|
+
query: import_zod135.default.object({ cxLogId: import_zod135.default.string().uuid() }),
|
9990
|
+
responses: {
|
9991
|
+
200: import_zod135.default.object({
|
9992
|
+
holdLogs: import_zod135.default.array(FormattedHoldLogSchema)
|
9993
|
+
})
|
9994
|
+
}
|
9995
|
+
},
|
9983
9996
|
holdRoom: {
|
9984
9997
|
method: "POST",
|
9985
9998
|
path: "/hold-room",
|