@kl1/contracts 1.0.45 → 1.0.47

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.mjs CHANGED
@@ -937,6 +937,16 @@ var TelephonyExtensionSchema = DefaultEntitySchema.extend({
937
937
  extensionName: z24.string().nullable()
938
938
  });
939
939
  var TelephonyExtensionListSchema = z24.array(TelephonyExtensionSchema);
940
+ var TelephonyDropdownListSchema = z24.object({
941
+ trunks: z24.array(
942
+ z24.object({
943
+ id: z24.string().uuid(),
944
+ trunk: z24.string()
945
+ })
946
+ ),
947
+ status: z24.array(z24.enum(["ANSWERED", "NO ANSWER", "FAILED"])),
948
+ type: z24.array(z24.enum(["Inbound", "Outbound", "Internal"]))
949
+ });
940
950
 
941
951
  // src/wrap-up-form/schema.ts
942
952
  import z25 from "zod";
@@ -2429,7 +2439,11 @@ var ticketContract = initContract8().router(
2429
2439
  method: "PATCH",
2430
2440
  path: "/assignee/update/:id",
2431
2441
  pathParams: z35.object({ id: z35.string() }),
2432
- body: z35.object({ ticketId: z35.string(), assigneeId: z35.string() }),
2442
+ body: z35.object({
2443
+ ticketId: z35.string(),
2444
+ assigneeId: z35.string(),
2445
+ reason: z35.string().optional()
2446
+ }),
2433
2447
  headers: DefaultHeaderSchema,
2434
2448
  responses: {
2435
2449
  200: DefaultSuccessResponseSchema.extend({
@@ -5391,6 +5405,16 @@ var telephonyCdrContract = initContract32().router(
5391
5405
  }),
5392
5406
  401: DefaultUnauthorizedSchema
5393
5407
  }
5408
+ },
5409
+ getDropdownList: {
5410
+ method: "GET",
5411
+ path: "/dropdown",
5412
+ headers: DefaultHeaderSchema,
5413
+ query: null,
5414
+ responses: {
5415
+ 200: DefaultSuccessResponseSchema.merge(TelephonyDropdownListSchema),
5416
+ 401: DefaultUnauthorizedSchema
5417
+ }
5394
5418
  }
5395
5419
  },
5396
5420
  { pathPrefix: "telephony-cdr" }