@kl1/contracts 1.2.55-uat → 1.2.57-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.mjs CHANGED
@@ -2258,7 +2258,7 @@ var WaapiQrResponseSchema = DefaultSuccessResponseSchema.extend({
2258
2258
  data: WaapiQrSchema
2259
2259
  });
2260
2260
  var GetWaapiQrQuerySchema = z40.object({
2261
- channelId: z40.string()
2261
+ instanceId: z40.string()
2262
2262
  });
2263
2263
  var SendSeenToWaapiSchema = z40.object({
2264
2264
  channelId: z40.string().uuid(),
@@ -2456,7 +2456,7 @@ var whatsapp = initContract7().router(
2456
2456
  },
2457
2457
  createWaapi: {
2458
2458
  method: "POST",
2459
- path: "/waapi",
2459
+ path: "/mobile",
2460
2460
  body: null,
2461
2461
  responses: {
2462
2462
  200: WaapiResponseSchema,
@@ -2466,13 +2466,26 @@ var whatsapp = initContract7().router(
2466
2466
  },
2467
2467
  getWaapiQr: {
2468
2468
  method: "GET",
2469
- path: "/waapi/qr",
2469
+ path: "/mobile/qr",
2470
2470
  query: GetWaapiQrQuerySchema,
2471
2471
  responses: {
2472
2472
  200: WaapiQrResponseSchema,
2473
2473
  500: DefaultErrorResponseSchema,
2474
2474
  400: DefaultErrorResponseSchema
2475
2475
  }
2476
+ },
2477
+ deleteWaapi: {
2478
+ method: "DELETE",
2479
+ path: "/mobile/:instanceId",
2480
+ pathParams: z41.object({
2481
+ instanceId: z41.string()
2482
+ }),
2483
+ body: z41.any().optional(),
2484
+ responses: {
2485
+ 200: DefaultSuccessResponseSchema,
2486
+ 500: DefaultErrorResponseSchema,
2487
+ 400: DefaultErrorResponseSchema
2488
+ }
2476
2489
  }
2477
2490
  },
2478
2491
  {
@@ -4272,7 +4285,8 @@ var MessageStatusSchema = z54.object({
4272
4285
  total: z54.number().nullable(),
4273
4286
  closed: z54.number().nullable(),
4274
4287
  unassignedOpen: z54.number().nullable(),
4275
- assignedOpen: z54.number().nullable()
4288
+ assignedOpen: z54.number().nullable(),
4289
+ hold: z54.number()
4276
4290
  });
4277
4291
  var MessageAverageSchema = z54.object({
4278
4292
  selectedWeekAvgByDay: z54.array(
@@ -4317,6 +4331,18 @@ var CallCountsSchema = z54.object({
4317
4331
  failedCallCount: z54.number().gte(0),
4318
4332
  totalCallCount: z54.number().gte(0)
4319
4333
  });
4334
+ var MessageQueueDataSchema = z54.object({
4335
+ id: z54.string().uuid().nullable(),
4336
+ name: z54.string(),
4337
+ sla: z54.number(),
4338
+ newContactCount: z54.number(),
4339
+ existingContactCount: z54.number(),
4340
+ totalRoomCount: z54.number(),
4341
+ closedRoomCount: z54.number(),
4342
+ unassignedRoomCount: z54.number(),
4343
+ assignedRoomCount: z54.number(),
4344
+ holdRoomCount: z54.number()
4345
+ });
4320
4346
 
4321
4347
  // src/dashboard/index.ts
4322
4348
  var dashboardContract = initContract13().router(
@@ -4575,6 +4601,39 @@ var dashboardContract = initContract13().router(
4575
4601
  callCounts: CallCountsSchema
4576
4602
  })
4577
4603
  }
4604
+ },
4605
+ getAllQueueSLA: {
4606
+ method: "GET",
4607
+ path: "/all-queue-sla",
4608
+ query: z55.object({ selectedDate: z55.string().min(1) }),
4609
+ responses: {
4610
+ 200: DefaultSuccessResponseSchema.extend({
4611
+ allQueueSLA: z55.number()
4612
+ })
4613
+ }
4614
+ },
4615
+ getAllMessageQueueData: {
4616
+ method: "GET",
4617
+ path: "/all-message-queue-data",
4618
+ query: z55.object({ selectedDate: z55.string().min(1) }),
4619
+ responses: {
4620
+ 200: DefaultSuccessResponseSchema.extend({
4621
+ allMessageQueueData: z55.array(MessageQueueDataSchema)
4622
+ })
4623
+ }
4624
+ },
4625
+ getMessageQueueData: {
4626
+ method: "GET",
4627
+ path: "/message-queue-data",
4628
+ query: z55.object({
4629
+ automationQueueId: z55.string().uuid().optional(),
4630
+ selectedDate: z55.string().min(1)
4631
+ }),
4632
+ responses: {
4633
+ 200: DefaultSuccessResponseSchema.extend({
4634
+ messageQueueData: MessageQueueDataSchema
4635
+ })
4636
+ }
4578
4637
  }
4579
4638
  },
4580
4639
  {
@@ -8426,7 +8485,7 @@ var whatsappContract = initContract42().router({
8426
8485
  },
8427
8486
  createWaapi: {
8428
8487
  method: "POST",
8429
- path: "/waapi",
8488
+ path: "/mobile",
8430
8489
  body: null,
8431
8490
  responses: {
8432
8491
  200: WaapiResponseSchema,
@@ -8436,7 +8495,7 @@ var whatsappContract = initContract42().router({
8436
8495
  },
8437
8496
  getWaapiQr: {
8438
8497
  method: "GET",
8439
- path: "/waapi/qr",
8498
+ path: "/mobile/qr",
8440
8499
  query: GetWaapiQrQuerySchema,
8441
8500
  responses: {
8442
8501
  200: WaapiQrResponseSchema,
@@ -8444,9 +8503,22 @@ var whatsappContract = initContract42().router({
8444
8503
  400: DefaultErrorResponseSchema
8445
8504
  }
8446
8505
  },
8506
+ deleteWaapi: {
8507
+ method: "DELETE",
8508
+ path: "/mobile/:instanceId",
8509
+ pathParams: z114.object({
8510
+ instanceId: z114.string()
8511
+ }),
8512
+ body: z114.any().optional(),
8513
+ responses: {
8514
+ 200: DefaultSuccessResponseSchema,
8515
+ 500: DefaultErrorResponseSchema,
8516
+ 400: DefaultErrorResponseSchema
8517
+ }
8518
+ },
8447
8519
  sendSeenToWaapi: {
8448
8520
  method: "POST",
8449
- path: "/waapi/send-seen",
8521
+ path: "/mobile/send-seen",
8450
8522
  body: SendSeenToWaapiSchema,
8451
8523
  responses: {
8452
8524
  200: WaapiResponseSchema,