@dakkitor/api-contracts 1.4.0 → 1.6.0

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.
Files changed (139) hide show
  1. package/dist/abilities/abilities.contract.d.ts +8 -2
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +48 -1
  4. package/dist/abilities/abilities.contract.spec.js +98 -0
  5. package/dist/abilities/first-agent.abilities.json +9 -2
  6. package/dist/abilities/outreach-service.abilities.json +14 -0
  7. package/dist/abilities/outreach.abilities.json +25 -0
  8. package/dist/abilities/second-agent.abilities.json +5 -1
  9. package/dist/actives/actives.contract.d.ts +7160 -7021
  10. package/dist/actives/actives.contract.d.ts.map +1 -1
  11. package/dist/actives/actives.contract.js +2 -0
  12. package/dist/actives/actives.contract.spec.d.ts +2 -0
  13. package/dist/actives/actives.contract.spec.d.ts.map +1 -0
  14. package/dist/actives/actives.contract.spec.js +35 -0
  15. package/dist/agent-client-links/agent-client-links.contract.d.ts +1087 -1087
  16. package/dist/auth/auth.contract.d.ts +108 -108
  17. package/dist/bookings/bookings.contract.d.ts +10131 -9939
  18. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  19. package/dist/call-history/call-history.contract.d.ts +718 -718
  20. package/dist/calls-feed/calls-feed.contract.d.ts +86 -86
  21. package/dist/client-contacts/client-contacts.contract.d.ts +469 -469
  22. package/dist/clients/clients.contract.d.ts +203 -203
  23. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2713 -2713
  24. package/dist/collaborations/collaborations.contract.d.ts +2270 -2270
  25. package/dist/common/common-schemas.d.ts +12 -12
  26. package/dist/companies/companies.contract.d.ts +74 -74
  27. package/dist/crews/crews.contract.d.ts +253 -253
  28. package/dist/cron-executions/cron-executions.contract.d.ts +182 -182
  29. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +3353 -3353
  30. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +20 -20
  31. package/dist/curated-worker-leads/consent-queue.contract.d.ts +196 -166
  32. package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +1 -1
  33. package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +16 -16
  34. package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +2 -2
  35. package/dist/curated-worker-leads/jobs-tab.contract.d.ts +1192 -564
  36. package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
  37. package/dist/curated-worker-leads/jobs-tab.contract.js +65 -2
  38. package/dist/curated-worker-leads/lead-agent-area.contract.d.ts +4 -4
  39. package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts +2 -0
  40. package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts.map +1 -0
  41. package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.js +39 -0
  42. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +46 -46
  43. package/dist/curated-workers/curated-workers.contract.d.ts +789 -789
  44. package/dist/dashboards/agent-daily-metrics.contract.d.ts +2 -2
  45. package/dist/dashboards/dashboard-widgets.contract.d.ts +292 -292
  46. package/dist/dashboards/dashboard.contract.d.ts +12 -12
  47. package/dist/document-intake/document-intake.contract.d.ts +601 -601
  48. package/dist/export-jobs/export-jobs.contract.d.ts +572 -562
  49. package/dist/export-jobs/export-jobs.contract.d.ts.map +1 -1
  50. package/dist/exports-events/exports-events.schemas.d.ts +6 -6
  51. package/dist/files/files.contract.d.ts +74 -74
  52. package/dist/index.d.ts +10 -0
  53. package/dist/index.d.ts.map +1 -1
  54. package/dist/index.js +10 -0
  55. package/dist/interactions/interactions.contract.d.ts +6 -6
  56. package/dist/job-clusters/job-clusters.contract.d.ts +112 -112
  57. package/dist/jobs/job-moderation-fields.spec.d.ts +2 -0
  58. package/dist/jobs/job-moderation-fields.spec.d.ts.map +1 -0
  59. package/dist/jobs/job-moderation-fields.spec.js +72 -0
  60. package/dist/jobs/jobs.contract.d.ts +7734 -7474
  61. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  62. package/dist/jobs/jobs.contract.js +57 -0
  63. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +141 -141
  64. package/dist/lead-assignments/lead-assignments.contract.d.ts +911 -911
  65. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +209 -209
  66. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +77 -77
  67. package/dist/leads/leads.contract.d.ts +283 -283
  68. package/dist/locations/locations.contract.d.ts +49 -49
  69. package/dist/notifications/notifications.contract.d.ts +49 -49
  70. package/dist/offices/offices.contract.d.ts +34 -34
  71. package/dist/outreach/__tests__/outreach-claim.test.js +1 -0
  72. package/dist/outreach/__tests__/outreach-contract-additions.spec.d.ts +2 -0
  73. package/dist/outreach/__tests__/outreach-contract-additions.spec.d.ts.map +1 -0
  74. package/dist/outreach/__tests__/outreach-contract-additions.spec.js +89 -0
  75. package/dist/outreach/__tests__/outreach-requests.contract.spec.d.ts +2 -0
  76. package/dist/outreach/__tests__/outreach-requests.contract.spec.d.ts.map +1 -0
  77. package/dist/outreach/__tests__/outreach-requests.contract.spec.js +77 -0
  78. package/dist/outreach/__tests__/outreach-routes.test.js +14 -3
  79. package/dist/outreach/__tests__/outreach.schemas.test.js +5 -1
  80. package/dist/outreach/outreach-requests.contract.d.ts +1753 -0
  81. package/dist/outreach/outreach-requests.contract.d.ts.map +1 -0
  82. package/dist/outreach/outreach-requests.contract.js +154 -0
  83. package/dist/outreach/outreach-requests.schemas.d.ts +95 -0
  84. package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -0
  85. package/dist/outreach/outreach-requests.schemas.js +63 -0
  86. package/dist/outreach/outreach.contract.d.ts +373 -101
  87. package/dist/outreach/outreach.contract.d.ts.map +1 -1
  88. package/dist/outreach/outreach.contract.js +18 -0
  89. package/dist/outreach/outreach.contract.spec.d.ts +2 -0
  90. package/dist/outreach/outreach.contract.spec.d.ts.map +1 -0
  91. package/dist/outreach/outreach.contract.spec.js +54 -0
  92. package/dist/outreach/outreach.schemas.d.ts +15 -10
  93. package/dist/outreach/outreach.schemas.d.ts.map +1 -1
  94. package/dist/outreach/outreach.schemas.js +5 -2
  95. package/dist/own-research/own-research.contract.d.ts +775 -775
  96. package/dist/postcodes/postcodes.contract.d.ts +24 -24
  97. package/dist/proofs/proof-type.enum.d.ts +4 -4
  98. package/dist/proofs/proofs.contract.d.ts +363 -363
  99. package/dist/proofs/proofs.dtos.d.ts +124 -124
  100. package/dist/qualifications/qualifications.contract.d.ts +38 -38
  101. package/dist/relay-pods/relay-pod-sessions.contract.d.ts +680 -0
  102. package/dist/relay-pods/relay-pod-sessions.contract.d.ts.map +1 -0
  103. package/dist/relay-pods/relay-pod-sessions.contract.js +67 -0
  104. package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts +2 -0
  105. package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts.map +1 -0
  106. package/dist/relay-pods/relay-pod-sessions.contract.spec.js +129 -0
  107. package/dist/relay-pods/relay-pods.contract.d.ts +1569 -0
  108. package/dist/relay-pods/relay-pods.contract.d.ts.map +1 -0
  109. package/dist/relay-pods/relay-pods.contract.js +188 -0
  110. package/dist/relay-pods/relay-pods.contract.spec.d.ts +2 -0
  111. package/dist/relay-pods/relay-pods.contract.spec.d.ts.map +1 -0
  112. package/dist/relay-pods/relay-pods.contract.spec.js +141 -0
  113. package/dist/relay-pods/relay-pods.schemas.d.ts +415 -0
  114. package/dist/relay-pods/relay-pods.schemas.d.ts.map +1 -0
  115. package/dist/relay-pods/relay-pods.schemas.js +112 -0
  116. package/dist/shared/live-booking.schema.d.ts +4 -4
  117. package/dist/shared/summary-schemas.d.ts +6 -6
  118. package/dist/sheets-sync/sheets-sync.contract.d.ts +939 -939
  119. package/dist/telegram/telegram.contract.d.ts +22 -22
  120. package/dist/trades/trades.contract.d.ts +90 -90
  121. package/dist/user-access-grants/user-access-grants.contract.d.ts +165 -165
  122. package/dist/users/__tests__/assignable-roles.spec.d.ts +2 -0
  123. package/dist/users/__tests__/assignable-roles.spec.d.ts.map +1 -0
  124. package/dist/users/__tests__/assignable-roles.spec.js +41 -0
  125. package/dist/users/users.contract.d.ts +399 -393
  126. package/dist/users/users.contract.d.ts.map +1 -1
  127. package/dist/users/users.contract.js +11 -0
  128. package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +585 -527
  129. package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -1
  130. package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +278 -236
  131. package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts.map +1 -1
  132. package/dist/worker-merge-proposals/worker-merge-proposals.contract.js +1 -0
  133. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +153 -153
  134. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +59 -59
  135. package/dist/workers/workers.contract.d.ts +2919 -2919
  136. package/package.json +1 -1
  137. package/dist/bookings/bookings.contract.spec.d.ts +0 -2
  138. package/dist/bookings/bookings.contract.spec.d.ts.map +0 -1
  139. package/dist/bookings/bookings.contract.spec.js +0 -11
@@ -108,11 +108,11 @@ export declare const FaPipelineWidgetSchema: z.ZodObject<{
108
108
  recentCount: z.ZodNumber;
109
109
  }, "strip", z.ZodTypeAny, {
110
110
  total: number;
111
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
111
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
112
112
  recentCount: number;
113
113
  }, {
114
114
  total: number;
115
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
115
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
116
116
  recentCount: number;
117
117
  }>;
118
118
  summary: z.ZodObject<{
@@ -132,7 +132,7 @@ export declare const FaPipelineWidgetSchema: z.ZodObject<{
132
132
  };
133
133
  collaborations: {
134
134
  total: number;
135
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
135
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
136
136
  recentCount: number;
137
137
  };
138
138
  }, {
@@ -142,7 +142,7 @@ export declare const FaPipelineWidgetSchema: z.ZodObject<{
142
142
  };
143
143
  collaborations: {
144
144
  total: number;
145
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
145
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
146
146
  recentCount: number;
147
147
  };
148
148
  }>;
@@ -156,12 +156,12 @@ export declare const FaClientsWidgetSchema: z.ZodObject<{
156
156
  pendingVerification: z.ZodNumber;
157
157
  }, "strip", z.ZodTypeAny, {
158
158
  total: number;
159
- byStatus: Partial<Record<"BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION", number>>;
159
+ byStatus: Partial<Record<"APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED", number>>;
160
160
  recentlyAdded: number;
161
161
  pendingVerification: number;
162
162
  }, {
163
163
  total: number;
164
- byStatus: Partial<Record<"BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION", number>>;
164
+ byStatus: Partial<Record<"APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED", number>>;
165
165
  recentlyAdded: number;
166
166
  pendingVerification: number;
167
167
  }>;
@@ -206,11 +206,11 @@ export declare const FaCallHistoryWidgetSchema: z.ZodObject<{
206
206
  }, "strip", z.ZodTypeAny, {
207
207
  conversionRate: number;
208
208
  totalCalls: number;
209
+ performanceScore: number;
210
+ performanceTier: "high" | "medium" | "low" | "new";
209
211
  callsToday: number;
210
212
  averageRatingToday: number;
211
213
  efficientCallsToday: number;
212
- performanceScore: number;
213
- performanceTier: "high" | "medium" | "low" | "new";
214
214
  ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
215
215
  assignmentCalls: number;
216
216
  followUpCalls: number;
@@ -222,11 +222,11 @@ export declare const FaCallHistoryWidgetSchema: z.ZodObject<{
222
222
  }, {
223
223
  conversionRate: number;
224
224
  totalCalls: number;
225
+ performanceScore: number;
226
+ performanceTier: "high" | "medium" | "low" | "new";
225
227
  callsToday: number;
226
228
  averageRatingToday: number;
227
229
  efficientCallsToday: number;
228
- performanceScore: number;
229
- performanceTier: "high" | "medium" | "low" | "new";
230
230
  ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
231
231
  assignmentCalls: number;
232
232
  followUpCalls: number;
@@ -264,33 +264,33 @@ export declare const AllAgentsCallHistoryQuerySchema: z.ZodObject<{
264
264
  minScore: z.ZodOptional<z.ZodNumber>;
265
265
  maxScore: z.ZodOptional<z.ZodNumber>;
266
266
  }, "strip", z.ZodTypeAny, {
267
+ status: "ACTIVE" | "INACTIVE";
267
268
  limit: number;
268
269
  page: number;
269
- status: "ACTIVE" | "INACTIVE";
270
270
  sort?: {
271
271
  field: "performanceScore" | "ownResearchLeadsAdded" | "agentName" | "activesFaActive" | "activesFaOthers" | "activesSaActive" | "activesSaOthers" | "bookingsFaAttempts" | "bookingsFaFailed" | "bookingsFaInProgress" | "bookingsFaCompleted" | "bookingsFaCancelled" | "bookingsSaAttempts" | "bookingsSaFailed" | "bookingsSaInProgress" | "bookingsSaCompleted" | "bookingsSaCancelled" | "callsOnDate" | "efficientCalls" | "conversionsOnDate" | "dailyConversionRate" | "jobsCreatedOnDate" | "jobsTotalOpenPositions" | "jobsFilledPositions" | "workersAddedToday" | "consentLeadsActioned" | "consentConsented" | "consentDeclined" | "consentWrongNumber" | "consentSnoozed" | "offersSent" | "offersBooked";
272
272
  order: "ASC" | "DESC";
273
273
  }[] | null | undefined;
274
- search?: string | undefined;
275
274
  date?: string | undefined;
276
- startDate?: string | undefined;
275
+ search?: string | undefined;
277
276
  office?: string[] | undefined;
277
+ startDate?: string | undefined;
278
278
  endDate?: string | undefined;
279
279
  view?: "SA" | "FA" | undefined;
280
280
  minScore?: number | undefined;
281
281
  maxScore?: number | undefined;
282
282
  }, {
283
- limit?: number | undefined;
284
- page?: number | undefined;
285
283
  sort?: {
286
284
  field: "performanceScore" | "ownResearchLeadsAdded" | "agentName" | "activesFaActive" | "activesFaOthers" | "activesSaActive" | "activesSaOthers" | "bookingsFaAttempts" | "bookingsFaFailed" | "bookingsFaInProgress" | "bookingsFaCompleted" | "bookingsFaCancelled" | "bookingsSaAttempts" | "bookingsSaFailed" | "bookingsSaInProgress" | "bookingsSaCompleted" | "bookingsSaCancelled" | "callsOnDate" | "efficientCalls" | "conversionsOnDate" | "dailyConversionRate" | "jobsCreatedOnDate" | "jobsTotalOpenPositions" | "jobsFilledPositions" | "workersAddedToday" | "consentLeadsActioned" | "consentConsented" | "consentDeclined" | "consentWrongNumber" | "consentSnoozed" | "offersSent" | "offersBooked";
287
285
  order: "ASC" | "DESC";
288
286
  }[] | null | undefined;
289
287
  status?: "ACTIVE" | "INACTIVE" | undefined;
290
- search?: string | undefined;
291
288
  date?: string | undefined;
292
- startDate?: string | undefined;
289
+ search?: string | undefined;
290
+ limit?: number | undefined;
291
+ page?: number | undefined;
293
292
  office?: string[] | undefined;
293
+ startDate?: string | undefined;
294
294
  endDate?: string | undefined;
295
295
  view?: "SA" | "FA" | undefined;
296
296
  minScore?: number | undefined;
@@ -936,9 +936,16 @@ export declare const AdminFaAggregateSchema: z.ZodObject<{
936
936
  }>;
937
937
  agentCount: z.ZodNumber;
938
938
  }, "strip", z.ZodTypeAny, {
939
- actives: {
940
- total: number;
941
- byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
939
+ jobs: {
940
+ filledPositions: number;
941
+ createdToday: number;
942
+ totalOpenPositions: number;
943
+ availableJobs: number;
944
+ transitionCounts: Record<string, number>;
945
+ fillRate: number;
946
+ positionsAdjusted: number;
947
+ positionsNetChange: number;
948
+ overbookedCount: number;
942
949
  };
943
950
  bookings: {
944
951
  forToday: {
@@ -970,16 +977,9 @@ export declare const AdminFaAggregateSchema: z.ZodObject<{
970
977
  pendingConfirmation: number;
971
978
  upcomingStarts: number;
972
979
  };
973
- jobs: {
974
- filledPositions: number;
975
- createdToday: number;
976
- totalOpenPositions: number;
977
- availableJobs: number;
978
- transitionCounts: Record<string, number>;
979
- fillRate: number;
980
- positionsAdjusted: number;
981
- positionsNetChange: number;
982
- overbookedCount: number;
980
+ actives: {
981
+ total: number;
982
+ byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
983
983
  };
984
984
  callMetrics: {
985
985
  conversionRate: number;
@@ -999,9 +999,16 @@ export declare const AdminFaAggregateSchema: z.ZodObject<{
999
999
  };
1000
1000
  agentCount: number;
1001
1001
  }, {
1002
- actives: {
1003
- total: number;
1004
- byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
1002
+ jobs: {
1003
+ filledPositions: number;
1004
+ createdToday: number;
1005
+ totalOpenPositions: number;
1006
+ availableJobs: number;
1007
+ transitionCounts: Record<string, number>;
1008
+ fillRate: number;
1009
+ positionsAdjusted: number;
1010
+ positionsNetChange: number;
1011
+ overbookedCount: number;
1005
1012
  };
1006
1013
  bookings: {
1007
1014
  forToday: {
@@ -1033,16 +1040,9 @@ export declare const AdminFaAggregateSchema: z.ZodObject<{
1033
1040
  pendingConfirmation: number;
1034
1041
  upcomingStarts: number;
1035
1042
  };
1036
- jobs: {
1037
- filledPositions: number;
1038
- createdToday: number;
1039
- totalOpenPositions: number;
1040
- availableJobs: number;
1041
- transitionCounts: Record<string, number>;
1042
- fillRate: number;
1043
- positionsAdjusted: number;
1044
- positionsNetChange: number;
1045
- overbookedCount: number;
1043
+ actives: {
1044
+ total: number;
1045
+ byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
1046
1046
  };
1047
1047
  callMetrics: {
1048
1048
  conversionRate: number;
@@ -1233,9 +1233,9 @@ export declare const AdminSaAggregateSchema: z.ZodObject<{
1233
1233
  }>;
1234
1234
  agentCount: z.ZodNumber;
1235
1235
  }, "strip", z.ZodTypeAny, {
1236
- actives: {
1236
+ workers: {
1237
1237
  total: number;
1238
- byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
1238
+ addedToday: number;
1239
1239
  };
1240
1240
  bookings: {
1241
1241
  forToday: {
@@ -1267,15 +1267,15 @@ export declare const AdminSaAggregateSchema: z.ZodObject<{
1267
1267
  pendingConfirmation: number;
1268
1268
  upcomingStarts: number;
1269
1269
  };
1270
- agentCount: number;
1271
- workers: {
1270
+ actives: {
1272
1271
  total: number;
1273
- addedToday: number;
1272
+ byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
1274
1273
  };
1274
+ agentCount: number;
1275
1275
  }, {
1276
- actives: {
1276
+ workers: {
1277
1277
  total: number;
1278
- byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
1278
+ addedToday: number;
1279
1279
  };
1280
1280
  bookings: {
1281
1281
  forToday: {
@@ -1307,11 +1307,11 @@ export declare const AdminSaAggregateSchema: z.ZodObject<{
1307
1307
  pendingConfirmation: number;
1308
1308
  upcomingStarts: number;
1309
1309
  };
1310
- agentCount: number;
1311
- workers: {
1310
+ actives: {
1312
1311
  total: number;
1313
- addedToday: number;
1312
+ byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
1314
1313
  };
1314
+ agentCount: number;
1315
1315
  }>;
1316
1316
  /**
1317
1317
  * Actives trend data for charts
@@ -1564,14 +1564,14 @@ export declare const JobsTrendSchema: z.ZodObject<{
1564
1564
  fillRate: z.ZodNumber;
1565
1565
  }, "strip", z.ZodTypeAny, {
1566
1566
  date: string;
1567
- fillRate: number;
1568
1567
  created: number;
1568
+ fillRate: number;
1569
1569
  openPositions: number;
1570
1570
  filled: number;
1571
1571
  }, {
1572
1572
  date: string;
1573
- fillRate: number;
1574
1573
  created: number;
1574
+ fillRate: number;
1575
1575
  openPositions: number;
1576
1576
  filled: number;
1577
1577
  }>, "many">;
@@ -1600,8 +1600,8 @@ export declare const JobsTrendSchema: z.ZodObject<{
1600
1600
  };
1601
1601
  data: {
1602
1602
  date: string;
1603
- fillRate: number;
1604
1603
  created: number;
1604
+ fillRate: number;
1605
1605
  openPositions: number;
1606
1606
  filled: number;
1607
1607
  }[];
@@ -1614,8 +1614,8 @@ export declare const JobsTrendSchema: z.ZodObject<{
1614
1614
  };
1615
1615
  data: {
1616
1616
  date: string;
1617
- fillRate: number;
1618
1617
  created: number;
1618
+ fillRate: number;
1619
1619
  openPositions: number;
1620
1620
  filled: number;
1621
1621
  }[];
@@ -1630,42 +1630,42 @@ export declare const CollaborationsTrendSchema: z.ZodObject<{
1630
1630
  byStatus: z.ZodRecord<z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT", "CHANGED_COMPANY_AND_AGENT"]>, z.ZodNumber>;
1631
1631
  }, "strip", z.ZodTypeAny, {
1632
1632
  date: string;
1633
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1634
1633
  created: number;
1634
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1635
1635
  }, {
1636
1636
  date: string;
1637
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1638
1637
  created: number;
1638
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1639
1639
  }>, "many">;
1640
1640
  summary: z.ZodObject<{
1641
1641
  totalCreated: z.ZodNumber;
1642
1642
  activeCount: z.ZodNumber;
1643
1643
  }, "strip", z.ZodTypeAny, {
1644
- totalCreated: number;
1645
1644
  activeCount: number;
1646
- }, {
1647
1645
  totalCreated: number;
1646
+ }, {
1648
1647
  activeCount: number;
1648
+ totalCreated: number;
1649
1649
  }>;
1650
1650
  }, "strip", z.ZodTypeAny, {
1651
1651
  summary: {
1652
- totalCreated: number;
1653
1652
  activeCount: number;
1653
+ totalCreated: number;
1654
1654
  };
1655
1655
  data: {
1656
1656
  date: string;
1657
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1658
1657
  created: number;
1658
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1659
1659
  }[];
1660
1660
  }, {
1661
1661
  summary: {
1662
- totalCreated: number;
1663
1662
  activeCount: number;
1663
+ totalCreated: number;
1664
1664
  };
1665
1665
  data: {
1666
1666
  date: string;
1667
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1668
1667
  created: number;
1668
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1669
1669
  }[];
1670
1670
  }>;
1671
1671
  /**
@@ -1678,41 +1678,41 @@ export declare const ProofsWidgetSchema: z.ZodObject<{
1678
1678
  byType: z.ZodRecord<z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER"]>, z.ZodNumber>;
1679
1679
  }, "strip", z.ZodTypeAny, {
1680
1680
  total: number;
1681
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
1681
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
1682
1682
  }, {
1683
1683
  total: number;
1684
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
1684
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
1685
1685
  }>;
1686
1686
  booking: z.ZodObject<{
1687
1687
  total: z.ZodNumber;
1688
1688
  byType: z.ZodRecord<z.ZodEnum<["CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>, z.ZodNumber>;
1689
1689
  }, "strip", z.ZodTypeAny, {
1690
1690
  total: number;
1691
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
1691
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
1692
1692
  }, {
1693
1693
  total: number;
1694
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
1694
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
1695
1695
  }>;
1696
1696
  total: z.ZodNumber;
1697
1697
  }, "strip", z.ZodTypeAny, {
1698
+ booking: {
1699
+ total: number;
1700
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
1701
+ };
1698
1702
  total: number;
1699
1703
  post: {
1700
1704
  total: number;
1701
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
1705
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
1702
1706
  };
1707
+ }, {
1703
1708
  booking: {
1704
1709
  total: number;
1705
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
1710
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
1706
1711
  };
1707
- }, {
1708
1712
  total: number;
1709
1713
  post: {
1710
1714
  total: number;
1711
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
1712
- };
1713
- booking: {
1714
- total: number;
1715
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
1715
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
1716
1716
  };
1717
1717
  }>;
1718
1718
  /**
@@ -1727,43 +1727,43 @@ export declare const ProofsTrendSchema: z.ZodObject<{
1727
1727
  byType: z.ZodRecord<z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER"]>, z.ZodNumber>;
1728
1728
  }, "strip", z.ZodTypeAny, {
1729
1729
  total: number;
1730
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
1730
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
1731
1731
  }, {
1732
1732
  total: number;
1733
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
1733
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
1734
1734
  }>;
1735
1735
  booking: z.ZodObject<{
1736
1736
  total: z.ZodNumber;
1737
1737
  byType: z.ZodRecord<z.ZodEnum<["CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>, z.ZodNumber>;
1738
1738
  }, "strip", z.ZodTypeAny, {
1739
1739
  total: number;
1740
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
1740
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
1741
1741
  }, {
1742
1742
  total: number;
1743
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
1743
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
1744
1744
  }>;
1745
1745
  total: z.ZodNumber;
1746
1746
  }, "strip", z.ZodTypeAny, {
1747
1747
  date: string;
1748
+ booking: {
1749
+ total: number;
1750
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
1751
+ };
1748
1752
  total: number;
1749
1753
  post: {
1750
1754
  total: number;
1751
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
1755
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
1752
1756
  };
1757
+ }, {
1758
+ date: string;
1753
1759
  booking: {
1754
1760
  total: number;
1755
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
1761
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
1756
1762
  };
1757
- }, {
1758
- date: string;
1759
1763
  total: number;
1760
1764
  post: {
1761
1765
  total: number;
1762
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
1763
- };
1764
- booking: {
1765
- total: number;
1766
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
1766
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
1767
1767
  };
1768
1768
  }>, "many">;
1769
1769
  summary: z.ZodObject<{
@@ -1791,14 +1791,14 @@ export declare const ProofsTrendSchema: z.ZodObject<{
1791
1791
  };
1792
1792
  data: {
1793
1793
  date: string;
1794
- total: number;
1795
- post: {
1794
+ booking: {
1796
1795
  total: number;
1797
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
1796
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
1798
1797
  };
1799
- booking: {
1798
+ total: number;
1799
+ post: {
1800
1800
  total: number;
1801
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
1801
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
1802
1802
  };
1803
1803
  }[];
1804
1804
  }, {
@@ -1810,14 +1810,14 @@ export declare const ProofsTrendSchema: z.ZodObject<{
1810
1810
  };
1811
1811
  data: {
1812
1812
  date: string;
1813
- total: number;
1814
- post: {
1813
+ booking: {
1815
1814
  total: number;
1816
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
1815
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
1817
1816
  };
1818
- booking: {
1817
+ total: number;
1818
+ post: {
1819
1819
  total: number;
1820
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
1820
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
1821
1821
  };
1822
1822
  }[];
1823
1823
  }>;
@@ -1836,11 +1836,11 @@ export declare const LeadActivityTrendSchema: z.ZodObject<{
1836
1836
  }, "strip", z.ZodTypeAny, {
1837
1837
  date: string;
1838
1838
  total: number;
1839
- byOutcome: Partial<Record<"CONSENTED" | "DECLINED" | "WRONG_NUMBER" | "SNOOZED" | "OFFER_SENT" | "BOOKED" | "BOOKING_CANCELLED" | "TOO_FAR" | "NOT_INTERESTED", number>>;
1839
+ byOutcome: Partial<Record<"CONSENTED" | "BOOKED" | "NOT_INTERESTED" | "WRONG_NUMBER" | "OFFER_SENT" | "TOO_FAR" | "DECLINED" | "SNOOZED" | "BOOKING_CANCELLED", number>>;
1840
1840
  }, {
1841
1841
  date: string;
1842
1842
  total: number;
1843
- byOutcome: Partial<Record<"CONSENTED" | "DECLINED" | "WRONG_NUMBER" | "SNOOZED" | "OFFER_SENT" | "BOOKED" | "BOOKING_CANCELLED" | "TOO_FAR" | "NOT_INTERESTED", number>>;
1843
+ byOutcome: Partial<Record<"CONSENTED" | "BOOKED" | "NOT_INTERESTED" | "WRONG_NUMBER" | "OFFER_SENT" | "TOO_FAR" | "DECLINED" | "SNOOZED" | "BOOKING_CANCELLED", number>>;
1844
1844
  }>, "many">;
1845
1845
  summary: z.ZodObject<{
1846
1846
  averageDaily: z.ZodNumber;
@@ -1864,7 +1864,7 @@ export declare const LeadActivityTrendSchema: z.ZodObject<{
1864
1864
  data: {
1865
1865
  date: string;
1866
1866
  total: number;
1867
- byOutcome: Partial<Record<"CONSENTED" | "DECLINED" | "WRONG_NUMBER" | "SNOOZED" | "OFFER_SENT" | "BOOKED" | "BOOKING_CANCELLED" | "TOO_FAR" | "NOT_INTERESTED", number>>;
1867
+ byOutcome: Partial<Record<"CONSENTED" | "BOOKED" | "NOT_INTERESTED" | "WRONG_NUMBER" | "OFFER_SENT" | "TOO_FAR" | "DECLINED" | "SNOOZED" | "BOOKING_CANCELLED", number>>;
1868
1868
  }[];
1869
1869
  }, {
1870
1870
  summary: {
@@ -1875,12 +1875,13 @@ export declare const LeadActivityTrendSchema: z.ZodObject<{
1875
1875
  data: {
1876
1876
  date: string;
1877
1877
  total: number;
1878
- byOutcome: Partial<Record<"CONSENTED" | "DECLINED" | "WRONG_NUMBER" | "SNOOZED" | "OFFER_SENT" | "BOOKED" | "BOOKING_CANCELLED" | "TOO_FAR" | "NOT_INTERESTED", number>>;
1878
+ byOutcome: Partial<Record<"CONSENTED" | "BOOKED" | "NOT_INTERESTED" | "WRONG_NUMBER" | "OFFER_SENT" | "TOO_FAR" | "DECLINED" | "SNOOZED" | "BOOKING_CANCELLED", number>>;
1879
1879
  }[];
1880
1880
  }>;
1881
1881
  export type LeadActivityTrend = z.infer<typeof LeadActivityTrendSchema>;
1882
1882
  export declare const dashboardWidgetsContract: {
1883
1883
  getFaPipeline: {
1884
+ description: "Returns collaboration pipeline overview for First Agent dashboard";
1884
1885
  query: z.ZodObject<{
1885
1886
  date: z.ZodOptional<z.ZodString>;
1886
1887
  office: z.ZodOptional<z.ZodString>;
@@ -1892,7 +1893,6 @@ export declare const dashboardWidgetsContract: {
1892
1893
  office?: string | undefined;
1893
1894
  }>;
1894
1895
  summary: "Get FA collaboration pipeline widget data";
1895
- description: "Returns collaboration pipeline overview for First Agent dashboard";
1896
1896
  method: "GET";
1897
1897
  path: "/widgets/fa/pipeline";
1898
1898
  responses: {
@@ -1903,11 +1903,11 @@ export declare const dashboardWidgetsContract: {
1903
1903
  recentCount: z.ZodNumber;
1904
1904
  }, "strip", z.ZodTypeAny, {
1905
1905
  total: number;
1906
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1906
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1907
1907
  recentCount: number;
1908
1908
  }, {
1909
1909
  total: number;
1910
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1910
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1911
1911
  recentCount: number;
1912
1912
  }>;
1913
1913
  summary: z.ZodObject<{
@@ -1927,7 +1927,7 @@ export declare const dashboardWidgetsContract: {
1927
1927
  };
1928
1928
  collaborations: {
1929
1929
  total: number;
1930
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1930
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1931
1931
  recentCount: number;
1932
1932
  };
1933
1933
  }, {
@@ -1937,13 +1937,14 @@ export declare const dashboardWidgetsContract: {
1937
1937
  };
1938
1938
  collaborations: {
1939
1939
  total: number;
1940
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1940
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
1941
1941
  recentCount: number;
1942
1942
  };
1943
1943
  }>;
1944
1944
  };
1945
1945
  };
1946
1946
  getFaClients: {
1947
+ description: "Returns client portfolio summary for First Agent dashboard";
1947
1948
  query: z.ZodObject<{
1948
1949
  date: z.ZodOptional<z.ZodString>;
1949
1950
  office: z.ZodOptional<z.ZodString>;
@@ -1955,7 +1956,6 @@ export declare const dashboardWidgetsContract: {
1955
1956
  office?: string | undefined;
1956
1957
  }>;
1957
1958
  summary: "Get FA clients widget data";
1958
- description: "Returns client portfolio summary for First Agent dashboard";
1959
1959
  method: "GET";
1960
1960
  path: "/widgets/fa/clients";
1961
1961
  responses: {
@@ -1966,18 +1966,19 @@ export declare const dashboardWidgetsContract: {
1966
1966
  pendingVerification: z.ZodNumber;
1967
1967
  }, "strip", z.ZodTypeAny, {
1968
1968
  total: number;
1969
- byStatus: Partial<Record<"BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION", number>>;
1969
+ byStatus: Partial<Record<"APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED", number>>;
1970
1970
  recentlyAdded: number;
1971
1971
  pendingVerification: number;
1972
1972
  }, {
1973
1973
  total: number;
1974
- byStatus: Partial<Record<"BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION", number>>;
1974
+ byStatus: Partial<Record<"APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED", number>>;
1975
1975
  recentlyAdded: number;
1976
1976
  pendingVerification: number;
1977
1977
  }>;
1978
1978
  };
1979
1979
  };
1980
1980
  getFaCheckings: {
1981
+ description: "Returns collaboration checking status for First Agent dashboard";
1981
1982
  query: z.ZodObject<{
1982
1983
  date: z.ZodOptional<z.ZodString>;
1983
1984
  office: z.ZodOptional<z.ZodString>;
@@ -1989,7 +1990,6 @@ export declare const dashboardWidgetsContract: {
1989
1990
  office?: string | undefined;
1990
1991
  }>;
1991
1992
  summary: "Get FA collaboration checkings widget data";
1992
- description: "Returns collaboration checking status for First Agent dashboard";
1993
1993
  method: "GET";
1994
1994
  path: "/widgets/fa/checkings";
1995
1995
  responses: {
@@ -2012,6 +2012,7 @@ export declare const dashboardWidgetsContract: {
2012
2012
  };
2013
2013
  };
2014
2014
  getFaCallHistory: {
2015
+ description: "Returns call performance metrics for First Agent dashboard";
2015
2016
  query: z.ZodObject<{
2016
2017
  date: z.ZodOptional<z.ZodString>;
2017
2018
  office: z.ZodOptional<z.ZodString>;
@@ -2023,7 +2024,6 @@ export declare const dashboardWidgetsContract: {
2023
2024
  office?: string | undefined;
2024
2025
  }>;
2025
2026
  summary: "Get FA call history widget data";
2026
- description: "Returns call performance metrics for First Agent dashboard";
2027
2027
  method: "GET";
2028
2028
  path: "/widgets/fa/call-history";
2029
2029
  responses: {
@@ -2046,11 +2046,11 @@ export declare const dashboardWidgetsContract: {
2046
2046
  }, "strip", z.ZodTypeAny, {
2047
2047
  conversionRate: number;
2048
2048
  totalCalls: number;
2049
+ performanceScore: number;
2050
+ performanceTier: "high" | "medium" | "low" | "new";
2049
2051
  callsToday: number;
2050
2052
  averageRatingToday: number;
2051
2053
  efficientCallsToday: number;
2052
- performanceScore: number;
2053
- performanceTier: "high" | "medium" | "low" | "new";
2054
2054
  ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
2055
2055
  assignmentCalls: number;
2056
2056
  followUpCalls: number;
@@ -2062,11 +2062,11 @@ export declare const dashboardWidgetsContract: {
2062
2062
  }, {
2063
2063
  conversionRate: number;
2064
2064
  totalCalls: number;
2065
+ performanceScore: number;
2066
+ performanceTier: "high" | "medium" | "low" | "new";
2065
2067
  callsToday: number;
2066
2068
  averageRatingToday: number;
2067
2069
  efficientCallsToday: number;
2068
- performanceScore: number;
2069
- performanceTier: "high" | "medium" | "low" | "new";
2070
2070
  ratingBreakdown: Record<import("../common/call-rating.schema").CallRating, number>;
2071
2071
  assignmentCalls: number;
2072
2072
  followUpCalls: number;
@@ -2079,6 +2079,7 @@ export declare const dashboardWidgetsContract: {
2079
2079
  };
2080
2080
  };
2081
2081
  getFaActives: {
2082
+ description: "Returns today's active workers from FA perspective";
2082
2083
  query: z.ZodObject<{
2083
2084
  date: z.ZodOptional<z.ZodString>;
2084
2085
  office: z.ZodOptional<z.ZodString>;
@@ -2090,7 +2091,6 @@ export declare const dashboardWidgetsContract: {
2090
2091
  office?: string | undefined;
2091
2092
  }>;
2092
2093
  summary: "Get FA actives widget data";
2093
- description: "Returns today's active workers from FA perspective";
2094
2094
  method: "GET";
2095
2095
  path: "/widgets/fa/actives";
2096
2096
  responses: {
@@ -2119,6 +2119,7 @@ export declare const dashboardWidgetsContract: {
2119
2119
  };
2120
2120
  };
2121
2121
  getFaBookings: {
2122
+ description: "Returns booking management summary for First Agent dashboard";
2122
2123
  query: z.ZodObject<{
2123
2124
  date: z.ZodOptional<z.ZodString>;
2124
2125
  office: z.ZodOptional<z.ZodString>;
@@ -2130,7 +2131,6 @@ export declare const dashboardWidgetsContract: {
2130
2131
  office?: string | undefined;
2131
2132
  }>;
2132
2133
  summary: "Get FA bookings widget data";
2133
- description: "Returns booking management summary for First Agent dashboard";
2134
2134
  method: "GET";
2135
2135
  path: "/widgets/fa/bookings";
2136
2136
  responses: {
@@ -2281,6 +2281,7 @@ export declare const dashboardWidgetsContract: {
2281
2281
  };
2282
2282
  };
2283
2283
  getFaJobs: {
2284
+ description: "Returns job metrics (created, open positions, filled, transitions) for First Agent dashboard";
2284
2285
  query: z.ZodObject<{
2285
2286
  date: z.ZodOptional<z.ZodString>;
2286
2287
  office: z.ZodOptional<z.ZodString>;
@@ -2292,7 +2293,6 @@ export declare const dashboardWidgetsContract: {
2292
2293
  office?: string | undefined;
2293
2294
  }>;
2294
2295
  summary: "Get FA jobs widget data";
2295
- description: "Returns job metrics (created, open positions, filled, transitions) for First Agent dashboard";
2296
2296
  method: "GET";
2297
2297
  path: "/widgets/fa/jobs";
2298
2298
  responses: {
@@ -2330,6 +2330,7 @@ export declare const dashboardWidgetsContract: {
2330
2330
  };
2331
2331
  };
2332
2332
  getProofs: {
2333
+ description: "Counts proofs (split POST/BOOKING) where forUserId = current user and proofDate = the selected date.";
2333
2334
  query: z.ZodObject<{
2334
2335
  date: z.ZodOptional<z.ZodString>;
2335
2336
  office: z.ZodOptional<z.ZodString>;
@@ -2341,7 +2342,6 @@ export declare const dashboardWidgetsContract: {
2341
2342
  office?: string | undefined;
2342
2343
  }>;
2343
2344
  summary: "Get the current user’s proofs widget data";
2344
- description: "Counts proofs (split POST/BOOKING) where forUserId = current user and proofDate = the selected date.";
2345
2345
  method: "GET";
2346
2346
  path: "/widgets/proofs";
2347
2347
  responses: {
@@ -2351,46 +2351,47 @@ export declare const dashboardWidgetsContract: {
2351
2351
  byType: z.ZodRecord<z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER"]>, z.ZodNumber>;
2352
2352
  }, "strip", z.ZodTypeAny, {
2353
2353
  total: number;
2354
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2354
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2355
2355
  }, {
2356
2356
  total: number;
2357
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2357
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2358
2358
  }>;
2359
2359
  booking: z.ZodObject<{
2360
2360
  total: z.ZodNumber;
2361
2361
  byType: z.ZodRecord<z.ZodEnum<["CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>, z.ZodNumber>;
2362
2362
  }, "strip", z.ZodTypeAny, {
2363
2363
  total: number;
2364
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2364
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2365
2365
  }, {
2366
2366
  total: number;
2367
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2367
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2368
2368
  }>;
2369
2369
  total: z.ZodNumber;
2370
2370
  }, "strip", z.ZodTypeAny, {
2371
+ booking: {
2372
+ total: number;
2373
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2374
+ };
2371
2375
  total: number;
2372
2376
  post: {
2373
2377
  total: number;
2374
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2378
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2375
2379
  };
2380
+ }, {
2376
2381
  booking: {
2377
2382
  total: number;
2378
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2383
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2379
2384
  };
2380
- }, {
2381
2385
  total: number;
2382
2386
  post: {
2383
2387
  total: number;
2384
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2385
- };
2386
- booking: {
2387
- total: number;
2388
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2388
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2389
2389
  };
2390
2390
  }>;
2391
2391
  };
2392
2392
  };
2393
2393
  getProofsTrend: {
2394
+ description: "Per-date POST/BOOKING proof counts (by proofDate) over a range.";
2394
2395
  query: z.ZodObject<{
2395
2396
  startDate: z.ZodString;
2396
2397
  endDate: z.ZodString;
@@ -2402,7 +2403,6 @@ export declare const dashboardWidgetsContract: {
2402
2403
  endDate: string;
2403
2404
  }>;
2404
2405
  summary: "Get the current user’s proofs trend";
2405
- description: "Per-date POST/BOOKING proof counts (by proofDate) over a range.";
2406
2406
  method: "GET";
2407
2407
  path: "/trends/proofs";
2408
2408
  responses: {
@@ -2414,43 +2414,43 @@ export declare const dashboardWidgetsContract: {
2414
2414
  byType: z.ZodRecord<z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER"]>, z.ZodNumber>;
2415
2415
  }, "strip", z.ZodTypeAny, {
2416
2416
  total: number;
2417
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2417
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2418
2418
  }, {
2419
2419
  total: number;
2420
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2420
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2421
2421
  }>;
2422
2422
  booking: z.ZodObject<{
2423
2423
  total: z.ZodNumber;
2424
2424
  byType: z.ZodRecord<z.ZodEnum<["CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>, z.ZodNumber>;
2425
2425
  }, "strip", z.ZodTypeAny, {
2426
2426
  total: number;
2427
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2427
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2428
2428
  }, {
2429
2429
  total: number;
2430
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2430
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2431
2431
  }>;
2432
2432
  total: z.ZodNumber;
2433
2433
  }, "strip", z.ZodTypeAny, {
2434
2434
  date: string;
2435
+ booking: {
2436
+ total: number;
2437
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2438
+ };
2435
2439
  total: number;
2436
2440
  post: {
2437
2441
  total: number;
2438
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2442
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2439
2443
  };
2444
+ }, {
2445
+ date: string;
2440
2446
  booking: {
2441
2447
  total: number;
2442
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2448
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2443
2449
  };
2444
- }, {
2445
- date: string;
2446
2450
  total: number;
2447
2451
  post: {
2448
2452
  total: number;
2449
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2450
- };
2451
- booking: {
2452
- total: number;
2453
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2453
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2454
2454
  };
2455
2455
  }>, "many">;
2456
2456
  summary: z.ZodObject<{
@@ -2478,14 +2478,14 @@ export declare const dashboardWidgetsContract: {
2478
2478
  };
2479
2479
  data: {
2480
2480
  date: string;
2481
- total: number;
2482
- post: {
2481
+ booking: {
2483
2482
  total: number;
2484
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2483
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2485
2484
  };
2486
- booking: {
2485
+ total: number;
2486
+ post: {
2487
2487
  total: number;
2488
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2488
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2489
2489
  };
2490
2490
  }[];
2491
2491
  }, {
@@ -2497,20 +2497,21 @@ export declare const dashboardWidgetsContract: {
2497
2497
  };
2498
2498
  data: {
2499
2499
  date: string;
2500
- total: number;
2501
- post: {
2500
+ booking: {
2502
2501
  total: number;
2503
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2502
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2504
2503
  };
2505
- booking: {
2504
+ total: number;
2505
+ post: {
2506
2506
  total: number;
2507
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2507
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2508
2508
  };
2509
2509
  }[];
2510
2510
  }>;
2511
2511
  };
2512
2512
  };
2513
2513
  getAdminProofs: {
2514
+ description: "Counts proofs (split POST/BOOKING) for all agents in the office/CASL scope on a date.";
2514
2515
  query: z.ZodObject<{
2515
2516
  date: z.ZodOptional<z.ZodString>;
2516
2517
  office: z.ZodOptional<z.ZodString>;
@@ -2522,7 +2523,6 @@ export declare const dashboardWidgetsContract: {
2522
2523
  office?: string | undefined;
2523
2524
  }>;
2524
2525
  summary: "Get aggregate proofs total across in-scope agents (Admin)";
2525
- description: "Counts proofs (split POST/BOOKING) for all agents in the office/CASL scope on a date.";
2526
2526
  method: "GET";
2527
2527
  path: "/widgets/admin/proofs";
2528
2528
  responses: {
@@ -2532,46 +2532,47 @@ export declare const dashboardWidgetsContract: {
2532
2532
  byType: z.ZodRecord<z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER"]>, z.ZodNumber>;
2533
2533
  }, "strip", z.ZodTypeAny, {
2534
2534
  total: number;
2535
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2535
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2536
2536
  }, {
2537
2537
  total: number;
2538
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2538
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2539
2539
  }>;
2540
2540
  booking: z.ZodObject<{
2541
2541
  total: z.ZodNumber;
2542
2542
  byType: z.ZodRecord<z.ZodEnum<["CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>, z.ZodNumber>;
2543
2543
  }, "strip", z.ZodTypeAny, {
2544
2544
  total: number;
2545
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2545
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2546
2546
  }, {
2547
2547
  total: number;
2548
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2548
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2549
2549
  }>;
2550
2550
  total: z.ZodNumber;
2551
2551
  }, "strip", z.ZodTypeAny, {
2552
+ booking: {
2553
+ total: number;
2554
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2555
+ };
2552
2556
  total: number;
2553
2557
  post: {
2554
2558
  total: number;
2555
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2559
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2556
2560
  };
2561
+ }, {
2557
2562
  booking: {
2558
2563
  total: number;
2559
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2564
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2560
2565
  };
2561
- }, {
2562
2566
  total: number;
2563
2567
  post: {
2564
2568
  total: number;
2565
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2566
- };
2567
- booking: {
2568
- total: number;
2569
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2569
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2570
2570
  };
2571
2571
  }>;
2572
2572
  };
2573
2573
  };
2574
2574
  getAdminProofsTrend: {
2575
+ description: "Per-date POST/BOOKING proof totals across the office’s agents.";
2575
2576
  query: z.ZodObject<{
2576
2577
  startDate: z.ZodString;
2577
2578
  endDate: z.ZodString;
@@ -2587,7 +2588,6 @@ export declare const dashboardWidgetsContract: {
2587
2588
  office?: string | undefined;
2588
2589
  }>;
2589
2590
  summary: "Get aggregate proofs trend across in-scope agents (Admin)";
2590
- description: "Per-date POST/BOOKING proof totals across the office’s agents.";
2591
2591
  method: "GET";
2592
2592
  path: "/trends/admin/proofs";
2593
2593
  responses: {
@@ -2599,43 +2599,43 @@ export declare const dashboardWidgetsContract: {
2599
2599
  byType: z.ZodRecord<z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER"]>, z.ZodNumber>;
2600
2600
  }, "strip", z.ZodTypeAny, {
2601
2601
  total: number;
2602
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2602
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2603
2603
  }, {
2604
2604
  total: number;
2605
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2605
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2606
2606
  }>;
2607
2607
  booking: z.ZodObject<{
2608
2608
  total: z.ZodNumber;
2609
2609
  byType: z.ZodRecord<z.ZodEnum<["CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>, z.ZodNumber>;
2610
2610
  }, "strip", z.ZodTypeAny, {
2611
2611
  total: number;
2612
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2612
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2613
2613
  }, {
2614
2614
  total: number;
2615
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2615
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2616
2616
  }>;
2617
2617
  total: z.ZodNumber;
2618
2618
  }, "strip", z.ZodTypeAny, {
2619
2619
  date: string;
2620
+ booking: {
2621
+ total: number;
2622
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2623
+ };
2620
2624
  total: number;
2621
2625
  post: {
2622
2626
  total: number;
2623
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2627
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2624
2628
  };
2629
+ }, {
2630
+ date: string;
2625
2631
  booking: {
2626
2632
  total: number;
2627
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2633
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2628
2634
  };
2629
- }, {
2630
- date: string;
2631
2635
  total: number;
2632
2636
  post: {
2633
2637
  total: number;
2634
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2635
- };
2636
- booking: {
2637
- total: number;
2638
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2638
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2639
2639
  };
2640
2640
  }>, "many">;
2641
2641
  summary: z.ZodObject<{
@@ -2663,14 +2663,14 @@ export declare const dashboardWidgetsContract: {
2663
2663
  };
2664
2664
  data: {
2665
2665
  date: string;
2666
- total: number;
2667
- post: {
2666
+ booking: {
2668
2667
  total: number;
2669
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2668
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2670
2669
  };
2671
- booking: {
2670
+ total: number;
2671
+ post: {
2672
2672
  total: number;
2673
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2673
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2674
2674
  };
2675
2675
  }[];
2676
2676
  }, {
@@ -2682,20 +2682,21 @@ export declare const dashboardWidgetsContract: {
2682
2682
  };
2683
2683
  data: {
2684
2684
  date: string;
2685
- total: number;
2686
- post: {
2685
+ booking: {
2687
2686
  total: number;
2688
- byType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
2687
+ byType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
2689
2688
  };
2690
- booking: {
2689
+ total: number;
2690
+ post: {
2691
2691
  total: number;
2692
- byType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
2692
+ byType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
2693
2693
  };
2694
2694
  }[];
2695
2695
  }>;
2696
2696
  };
2697
2697
  };
2698
2698
  getSaWorkers: {
2699
+ description: "Returns worker recruitment summary for Second Agent dashboard";
2699
2700
  query: z.ZodObject<{
2700
2701
  date: z.ZodOptional<z.ZodString>;
2701
2702
  office: z.ZodOptional<z.ZodString>;
@@ -2707,7 +2708,6 @@ export declare const dashboardWidgetsContract: {
2707
2708
  office?: string | undefined;
2708
2709
  }>;
2709
2710
  summary: "Get SA workers widget data";
2710
- description: "Returns worker recruitment summary for Second Agent dashboard";
2711
2711
  method: "GET";
2712
2712
  path: "/widgets/sa/workers";
2713
2713
  responses: {
@@ -2724,6 +2724,7 @@ export declare const dashboardWidgetsContract: {
2724
2724
  };
2725
2725
  };
2726
2726
  getSaBookings: {
2727
+ description: "Returns booking management summary for Second Agent dashboard";
2727
2728
  query: z.ZodObject<{
2728
2729
  date: z.ZodOptional<z.ZodString>;
2729
2730
  office: z.ZodOptional<z.ZodString>;
@@ -2735,7 +2736,6 @@ export declare const dashboardWidgetsContract: {
2735
2736
  office?: string | undefined;
2736
2737
  }>;
2737
2738
  summary: "Get SA bookings widget data";
2738
- description: "Returns booking management summary for Second Agent dashboard";
2739
2739
  method: "GET";
2740
2740
  path: "/widgets/sa/bookings";
2741
2741
  responses: {
@@ -2886,6 +2886,7 @@ export declare const dashboardWidgetsContract: {
2886
2886
  };
2887
2887
  };
2888
2888
  getSaActives: {
2889
+ description: "Returns today's active workers from SA perspective";
2889
2890
  query: z.ZodObject<{
2890
2891
  date: z.ZodOptional<z.ZodString>;
2891
2892
  office: z.ZodOptional<z.ZodString>;
@@ -2897,7 +2898,6 @@ export declare const dashboardWidgetsContract: {
2897
2898
  office?: string | undefined;
2898
2899
  }>;
2899
2900
  summary: "Get SA actives widget data";
2900
- description: "Returns today's active workers from SA perspective";
2901
2901
  method: "GET";
2902
2902
  path: "/widgets/sa/actives";
2903
2903
  responses: {
@@ -2926,8 +2926,8 @@ export declare const dashboardWidgetsContract: {
2926
2926
  };
2927
2927
  };
2928
2928
  getAccessibleOffices: {
2929
- summary: "Get offices accessible for dashboard filtering";
2930
2929
  description: "Returns offices the current user can view stats for. Admins see all offices; office managers see only their managed offices.";
2930
+ summary: "Get offices accessible for dashboard filtering";
2931
2931
  method: "GET";
2932
2932
  path: "/widgets/admin/accessible-offices";
2933
2933
  responses: {
@@ -2944,6 +2944,7 @@ export declare const dashboardWidgetsContract: {
2944
2944
  };
2945
2945
  };
2946
2946
  getAdminAgentStats: {
2947
+ description: "Returns paginated daily statistics (actives, bookings, performance) for all agents for a specific date.";
2947
2948
  query: z.ZodObject<{
2948
2949
  page: z.ZodDefault<z.ZodNumber>;
2949
2950
  } & {
@@ -2968,40 +2969,39 @@ export declare const dashboardWidgetsContract: {
2968
2969
  minScore: z.ZodOptional<z.ZodNumber>;
2969
2970
  maxScore: z.ZodOptional<z.ZodNumber>;
2970
2971
  }, "strip", z.ZodTypeAny, {
2972
+ status: "ACTIVE" | "INACTIVE";
2971
2973
  limit: number;
2972
2974
  page: number;
2973
- status: "ACTIVE" | "INACTIVE";
2974
2975
  sort?: {
2975
2976
  field: "performanceScore" | "ownResearchLeadsAdded" | "agentName" | "activesFaActive" | "activesFaOthers" | "activesSaActive" | "activesSaOthers" | "bookingsFaAttempts" | "bookingsFaFailed" | "bookingsFaInProgress" | "bookingsFaCompleted" | "bookingsFaCancelled" | "bookingsSaAttempts" | "bookingsSaFailed" | "bookingsSaInProgress" | "bookingsSaCompleted" | "bookingsSaCancelled" | "callsOnDate" | "efficientCalls" | "conversionsOnDate" | "dailyConversionRate" | "jobsCreatedOnDate" | "jobsTotalOpenPositions" | "jobsFilledPositions" | "workersAddedToday" | "consentLeadsActioned" | "consentConsented" | "consentDeclined" | "consentWrongNumber" | "consentSnoozed" | "offersSent" | "offersBooked";
2976
2977
  order: "ASC" | "DESC";
2977
2978
  }[] | null | undefined;
2978
- search?: string | undefined;
2979
2979
  date?: string | undefined;
2980
- startDate?: string | undefined;
2980
+ search?: string | undefined;
2981
2981
  office?: string[] | undefined;
2982
+ startDate?: string | undefined;
2982
2983
  endDate?: string | undefined;
2983
2984
  view?: "SA" | "FA" | undefined;
2984
2985
  minScore?: number | undefined;
2985
2986
  maxScore?: number | undefined;
2986
2987
  }, {
2987
- limit?: number | undefined;
2988
- page?: number | undefined;
2989
2988
  sort?: {
2990
2989
  field: "performanceScore" | "ownResearchLeadsAdded" | "agentName" | "activesFaActive" | "activesFaOthers" | "activesSaActive" | "activesSaOthers" | "bookingsFaAttempts" | "bookingsFaFailed" | "bookingsFaInProgress" | "bookingsFaCompleted" | "bookingsFaCancelled" | "bookingsSaAttempts" | "bookingsSaFailed" | "bookingsSaInProgress" | "bookingsSaCompleted" | "bookingsSaCancelled" | "callsOnDate" | "efficientCalls" | "conversionsOnDate" | "dailyConversionRate" | "jobsCreatedOnDate" | "jobsTotalOpenPositions" | "jobsFilledPositions" | "workersAddedToday" | "consentLeadsActioned" | "consentConsented" | "consentDeclined" | "consentWrongNumber" | "consentSnoozed" | "offersSent" | "offersBooked";
2991
2990
  order: "ASC" | "DESC";
2992
2991
  }[] | null | undefined;
2993
2992
  status?: "ACTIVE" | "INACTIVE" | undefined;
2994
- search?: string | undefined;
2995
2993
  date?: string | undefined;
2996
- startDate?: string | undefined;
2994
+ search?: string | undefined;
2995
+ limit?: number | undefined;
2996
+ page?: number | undefined;
2997
2997
  office?: string[] | undefined;
2998
+ startDate?: string | undefined;
2998
2999
  endDate?: string | undefined;
2999
3000
  view?: "SA" | "FA" | undefined;
3000
3001
  minScore?: number | undefined;
3001
3002
  maxScore?: number | undefined;
3002
3003
  }>;
3003
3004
  summary: "Get daily stats for all agents (Admin)";
3004
- description: "Returns paginated daily statistics (actives, bookings, performance) for all agents for a specific date.";
3005
3005
  method: "GET";
3006
3006
  path: "/widgets/admin/agent-stats";
3007
3007
  responses: {
@@ -3106,8 +3106,8 @@ export declare const dashboardWidgetsContract: {
3106
3106
  jobsFillRate: number;
3107
3107
  jobsPositionsAdjusted: number;
3108
3108
  jobsOverbooked: number;
3109
- proofsPostByType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
3110
- proofsBookingByType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
3109
+ proofsPostByType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
3110
+ proofsBookingByType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
3111
3111
  bookingsFaOngoing?: number | undefined;
3112
3112
  bookingsFaStartingToday?: number | undefined;
3113
3113
  bookingsFaPendingConfirmation?: number | undefined;
@@ -3161,8 +3161,8 @@ export declare const dashboardWidgetsContract: {
3161
3161
  jobsFillRate: number;
3162
3162
  jobsPositionsAdjusted: number;
3163
3163
  jobsOverbooked: number;
3164
- proofsPostByType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
3165
- proofsBookingByType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
3164
+ proofsPostByType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
3165
+ proofsBookingByType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
3166
3166
  bookingsFaOngoing?: number | undefined;
3167
3167
  bookingsFaStartingToday?: number | undefined;
3168
3168
  bookingsFaPendingConfirmation?: number | undefined;
@@ -3224,8 +3224,8 @@ export declare const dashboardWidgetsContract: {
3224
3224
  jobsFillRate: number;
3225
3225
  jobsPositionsAdjusted: number;
3226
3226
  jobsOverbooked: number;
3227
- proofsPostByType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
3228
- proofsBookingByType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
3227
+ proofsPostByType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
3228
+ proofsBookingByType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
3229
3229
  bookingsFaOngoing?: number | undefined;
3230
3230
  bookingsFaStartingToday?: number | undefined;
3231
3231
  bookingsFaPendingConfirmation?: number | undefined;
@@ -3286,8 +3286,8 @@ export declare const dashboardWidgetsContract: {
3286
3286
  jobsFillRate: number;
3287
3287
  jobsPositionsAdjusted: number;
3288
3288
  jobsOverbooked: number;
3289
- proofsPostByType: Partial<Record<"FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER", number>>;
3290
- proofsBookingByType: Partial<Record<"CONFIRMATION" | "DISTANCE" | "MORNING_STATUS", number>>;
3289
+ proofsPostByType: Partial<Record<"WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER", number>>;
3290
+ proofsBookingByType: Partial<Record<"DISTANCE" | "CONFIRMATION" | "MORNING_STATUS", number>>;
3291
3291
  bookingsFaOngoing?: number | undefined;
3292
3292
  bookingsFaStartingToday?: number | undefined;
3293
3293
  bookingsFaPendingConfirmation?: number | undefined;
@@ -3305,6 +3305,7 @@ export declare const dashboardWidgetsContract: {
3305
3305
  };
3306
3306
  };
3307
3307
  getAdminFaAggregate: {
3308
+ description: "Returns summed/averaged FA dashboard stats across all agents for a specific date.";
3308
3309
  query: z.ZodObject<{
3309
3310
  date: z.ZodOptional<z.ZodString>;
3310
3311
  office: z.ZodOptional<z.ZodString>;
@@ -3316,7 +3317,6 @@ export declare const dashboardWidgetsContract: {
3316
3317
  office?: string | undefined;
3317
3318
  }>;
3318
3319
  summary: "Get aggregated FA stats across all agents (Admin)";
3319
- description: "Returns summed/averaged FA dashboard stats across all agents for a specific date.";
3320
3320
  method: "GET";
3321
3321
  path: "/widgets/admin/fa-aggregate";
3322
3322
  responses: {
@@ -3566,9 +3566,16 @@ export declare const dashboardWidgetsContract: {
3566
3566
  }>;
3567
3567
  agentCount: z.ZodNumber;
3568
3568
  }, "strip", z.ZodTypeAny, {
3569
- actives: {
3570
- total: number;
3571
- byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
3569
+ jobs: {
3570
+ filledPositions: number;
3571
+ createdToday: number;
3572
+ totalOpenPositions: number;
3573
+ availableJobs: number;
3574
+ transitionCounts: Record<string, number>;
3575
+ fillRate: number;
3576
+ positionsAdjusted: number;
3577
+ positionsNetChange: number;
3578
+ overbookedCount: number;
3572
3579
  };
3573
3580
  bookings: {
3574
3581
  forToday: {
@@ -3600,16 +3607,9 @@ export declare const dashboardWidgetsContract: {
3600
3607
  pendingConfirmation: number;
3601
3608
  upcomingStarts: number;
3602
3609
  };
3603
- jobs: {
3604
- filledPositions: number;
3605
- createdToday: number;
3606
- totalOpenPositions: number;
3607
- availableJobs: number;
3608
- transitionCounts: Record<string, number>;
3609
- fillRate: number;
3610
- positionsAdjusted: number;
3611
- positionsNetChange: number;
3612
- overbookedCount: number;
3610
+ actives: {
3611
+ total: number;
3612
+ byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
3613
3613
  };
3614
3614
  callMetrics: {
3615
3615
  conversionRate: number;
@@ -3629,9 +3629,16 @@ export declare const dashboardWidgetsContract: {
3629
3629
  };
3630
3630
  agentCount: number;
3631
3631
  }, {
3632
- actives: {
3633
- total: number;
3634
- byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
3632
+ jobs: {
3633
+ filledPositions: number;
3634
+ createdToday: number;
3635
+ totalOpenPositions: number;
3636
+ availableJobs: number;
3637
+ transitionCounts: Record<string, number>;
3638
+ fillRate: number;
3639
+ positionsAdjusted: number;
3640
+ positionsNetChange: number;
3641
+ overbookedCount: number;
3635
3642
  };
3636
3643
  bookings: {
3637
3644
  forToday: {
@@ -3663,16 +3670,9 @@ export declare const dashboardWidgetsContract: {
3663
3670
  pendingConfirmation: number;
3664
3671
  upcomingStarts: number;
3665
3672
  };
3666
- jobs: {
3667
- filledPositions: number;
3668
- createdToday: number;
3669
- totalOpenPositions: number;
3670
- availableJobs: number;
3671
- transitionCounts: Record<string, number>;
3672
- fillRate: number;
3673
- positionsAdjusted: number;
3674
- positionsNetChange: number;
3675
- overbookedCount: number;
3673
+ actives: {
3674
+ total: number;
3675
+ byStatus: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
3676
3676
  };
3677
3677
  callMetrics: {
3678
3678
  conversionRate: number;
@@ -3695,6 +3695,7 @@ export declare const dashboardWidgetsContract: {
3695
3695
  };
3696
3696
  };
3697
3697
  getAdminSaAggregate: {
3698
+ description: "Returns summed/averaged SA dashboard stats across all agents for a specific date.";
3698
3699
  query: z.ZodObject<{
3699
3700
  date: z.ZodOptional<z.ZodString>;
3700
3701
  office: z.ZodOptional<z.ZodString>;
@@ -3706,7 +3707,6 @@ export declare const dashboardWidgetsContract: {
3706
3707
  office?: string | undefined;
3707
3708
  }>;
3708
3709
  summary: "Get aggregated SA stats across all agents (Admin)";
3709
- description: "Returns summed/averaged SA dashboard stats across all agents for a specific date.";
3710
3710
  method: "GET";
3711
3711
  path: "/widgets/admin/sa-aggregate";
3712
3712
  responses: {
@@ -3878,9 +3878,9 @@ export declare const dashboardWidgetsContract: {
3878
3878
  }>;
3879
3879
  agentCount: z.ZodNumber;
3880
3880
  }, "strip", z.ZodTypeAny, {
3881
- actives: {
3881
+ workers: {
3882
3882
  total: number;
3883
- byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
3883
+ addedToday: number;
3884
3884
  };
3885
3885
  bookings: {
3886
3886
  forToday: {
@@ -3912,15 +3912,15 @@ export declare const dashboardWidgetsContract: {
3912
3912
  pendingConfirmation: number;
3913
3913
  upcomingStarts: number;
3914
3914
  };
3915
- agentCount: number;
3916
- workers: {
3915
+ actives: {
3917
3916
  total: number;
3918
- addedToday: number;
3917
+ byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
3919
3918
  };
3919
+ agentCount: number;
3920
3920
  }, {
3921
- actives: {
3921
+ workers: {
3922
3922
  total: number;
3923
- byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
3923
+ addedToday: number;
3924
3924
  };
3925
3925
  bookings: {
3926
3926
  forToday: {
@@ -3952,15 +3952,16 @@ export declare const dashboardWidgetsContract: {
3952
3952
  pendingConfirmation: number;
3953
3953
  upcomingStarts: number;
3954
3954
  };
3955
- agentCount: number;
3956
- workers: {
3955
+ actives: {
3957
3956
  total: number;
3958
- addedToday: number;
3957
+ byStatusSa: Partial<Record<"ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE", number>>;
3959
3958
  };
3959
+ agentCount: number;
3960
3960
  }>;
3961
3961
  };
3962
3962
  };
3963
3963
  getActivesTrend: {
3964
+ description: "Returns time-series data for actives over a date range";
3964
3965
  query: z.ZodObject<{
3965
3966
  startDate: z.ZodString;
3966
3967
  endDate: z.ZodString;
@@ -3976,7 +3977,6 @@ export declare const dashboardWidgetsContract: {
3976
3977
  role?: "SA" | "FA" | undefined;
3977
3978
  }>;
3978
3979
  summary: "Get actives historical trend";
3979
- description: "Returns time-series data for actives over a date range";
3980
3980
  method: "GET";
3981
3981
  path: "/trends/actives";
3982
3982
  responses: {
@@ -4033,6 +4033,7 @@ export declare const dashboardWidgetsContract: {
4033
4033
  };
4034
4034
  };
4035
4035
  getBookingsTrend: {
4036
+ description: "Returns time-series data for bookings over a date range";
4036
4037
  query: z.ZodObject<{
4037
4038
  startDate: z.ZodString;
4038
4039
  endDate: z.ZodString;
@@ -4048,7 +4049,6 @@ export declare const dashboardWidgetsContract: {
4048
4049
  role?: "SA" | "FA" | undefined;
4049
4050
  }>;
4050
4051
  summary: "Get bookings historical trend";
4051
- description: "Returns time-series data for bookings over a date range";
4052
4052
  method: "GET";
4053
4053
  path: "/trends/bookings";
4054
4054
  responses: {
@@ -4115,6 +4115,7 @@ export declare const dashboardWidgetsContract: {
4115
4115
  };
4116
4116
  };
4117
4117
  getCallPerformanceTrend: {
4118
+ description: "Returns time-series data for call performance over a date range";
4118
4119
  query: z.ZodObject<{
4119
4120
  startDate: z.ZodString;
4120
4121
  endDate: z.ZodString;
@@ -4126,7 +4127,6 @@ export declare const dashboardWidgetsContract: {
4126
4127
  endDate: string;
4127
4128
  }>;
4128
4129
  summary: "Get call performance historical trend";
4129
- description: "Returns time-series data for call performance over a date range";
4130
4130
  method: "GET";
4131
4131
  path: "/trends/call-performance";
4132
4132
  responses: {
@@ -4198,6 +4198,7 @@ export declare const dashboardWidgetsContract: {
4198
4198
  };
4199
4199
  };
4200
4200
  getWorkersTrend: {
4201
+ description: "Returns time-series data for worker additions over a date range";
4201
4202
  query: z.ZodObject<{
4202
4203
  startDate: z.ZodString;
4203
4204
  endDate: z.ZodString;
@@ -4209,7 +4210,6 @@ export declare const dashboardWidgetsContract: {
4209
4210
  endDate: string;
4210
4211
  }>;
4211
4212
  summary: "Get workers historical trend (SA only)";
4212
- description: "Returns time-series data for worker additions over a date range";
4213
4213
  method: "GET";
4214
4214
  path: "/trends/workers";
4215
4215
  responses: {
@@ -4261,6 +4261,7 @@ export declare const dashboardWidgetsContract: {
4261
4261
  };
4262
4262
  };
4263
4263
  getCollaborationsTrend: {
4264
+ description: "Returns time-series data for collaborations over a date range";
4264
4265
  query: z.ZodObject<{
4265
4266
  startDate: z.ZodString;
4266
4267
  endDate: z.ZodString;
@@ -4272,7 +4273,6 @@ export declare const dashboardWidgetsContract: {
4272
4273
  endDate: string;
4273
4274
  }>;
4274
4275
  summary: "Get collaborations historical trend (FA only)";
4275
- description: "Returns time-series data for collaborations over a date range";
4276
4276
  method: "GET";
4277
4277
  path: "/trends/collaborations";
4278
4278
  responses: {
@@ -4283,47 +4283,48 @@ export declare const dashboardWidgetsContract: {
4283
4283
  byStatus: z.ZodRecord<z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT", "CHANGED_COMPANY_AND_AGENT"]>, z.ZodNumber>;
4284
4284
  }, "strip", z.ZodTypeAny, {
4285
4285
  date: string;
4286
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
4287
4286
  created: number;
4287
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
4288
4288
  }, {
4289
4289
  date: string;
4290
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
4291
4290
  created: number;
4291
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
4292
4292
  }>, "many">;
4293
4293
  summary: z.ZodObject<{
4294
4294
  totalCreated: z.ZodNumber;
4295
4295
  activeCount: z.ZodNumber;
4296
4296
  }, "strip", z.ZodTypeAny, {
4297
- totalCreated: number;
4298
4297
  activeCount: number;
4299
- }, {
4300
4298
  totalCreated: number;
4299
+ }, {
4301
4300
  activeCount: number;
4301
+ totalCreated: number;
4302
4302
  }>;
4303
4303
  }, "strip", z.ZodTypeAny, {
4304
4304
  summary: {
4305
- totalCreated: number;
4306
4305
  activeCount: number;
4306
+ totalCreated: number;
4307
4307
  };
4308
4308
  data: {
4309
4309
  date: string;
4310
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
4311
4310
  created: number;
4311
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
4312
4312
  }[];
4313
4313
  }, {
4314
4314
  summary: {
4315
- totalCreated: number;
4316
4315
  activeCount: number;
4316
+ totalCreated: number;
4317
4317
  };
4318
4318
  data: {
4319
4319
  date: string;
4320
- byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
4321
4320
  created: number;
4321
+ byStatus: Partial<Record<"ACTIVE" | "INACTIVE" | "APPROVED" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT", number>>;
4322
4322
  }[];
4323
4323
  }>;
4324
4324
  };
4325
4325
  };
4326
4326
  getJobsTrend: {
4327
+ description: "Returns time-series data for job creation, fills and open positions over a date range";
4327
4328
  query: z.ZodObject<{
4328
4329
  startDate: z.ZodString;
4329
4330
  endDate: z.ZodString;
@@ -4335,7 +4336,6 @@ export declare const dashboardWidgetsContract: {
4335
4336
  endDate: string;
4336
4337
  }>;
4337
4338
  summary: "Get jobs historical trend (FA)";
4338
- description: "Returns time-series data for job creation, fills and open positions over a date range";
4339
4339
  method: "GET";
4340
4340
  path: "/trends/jobs";
4341
4341
  responses: {
@@ -4348,14 +4348,14 @@ export declare const dashboardWidgetsContract: {
4348
4348
  fillRate: z.ZodNumber;
4349
4349
  }, "strip", z.ZodTypeAny, {
4350
4350
  date: string;
4351
- fillRate: number;
4352
4351
  created: number;
4352
+ fillRate: number;
4353
4353
  openPositions: number;
4354
4354
  filled: number;
4355
4355
  }, {
4356
4356
  date: string;
4357
- fillRate: number;
4358
4357
  created: number;
4358
+ fillRate: number;
4359
4359
  openPositions: number;
4360
4360
  filled: number;
4361
4361
  }>, "many">;
@@ -4384,8 +4384,8 @@ export declare const dashboardWidgetsContract: {
4384
4384
  };
4385
4385
  data: {
4386
4386
  date: string;
4387
- fillRate: number;
4388
4387
  created: number;
4388
+ fillRate: number;
4389
4389
  openPositions: number;
4390
4390
  filled: number;
4391
4391
  }[];
@@ -4398,8 +4398,8 @@ export declare const dashboardWidgetsContract: {
4398
4398
  };
4399
4399
  data: {
4400
4400
  date: string;
4401
- fillRate: number;
4402
4401
  created: number;
4402
+ fillRate: number;
4403
4403
  openPositions: number;
4404
4404
  filled: number;
4405
4405
  }[];
@@ -4407,6 +4407,7 @@ export declare const dashboardWidgetsContract: {
4407
4407
  };
4408
4408
  };
4409
4409
  getAdminBookingsTrend: {
4410
+ description: "Bookings trend aggregated across the office first agents over a date range";
4410
4411
  query: z.ZodObject<{
4411
4412
  startDate: z.ZodString;
4412
4413
  endDate: z.ZodString;
@@ -4422,7 +4423,6 @@ export declare const dashboardWidgetsContract: {
4422
4423
  office?: string | undefined;
4423
4424
  }>;
4424
4425
  summary: "Get admin aggregate bookings trend";
4425
- description: "Bookings trend aggregated across the office first agents over a date range";
4426
4426
  method: "GET";
4427
4427
  path: "/trends/admin/bookings";
4428
4428
  responses: {
@@ -4489,6 +4489,7 @@ export declare const dashboardWidgetsContract: {
4489
4489
  };
4490
4490
  };
4491
4491
  getAdminActivesTrend: {
4492
+ description: "Actives trend aggregated across the office first agents";
4492
4493
  query: z.ZodObject<{
4493
4494
  startDate: z.ZodString;
4494
4495
  endDate: z.ZodString;
@@ -4504,7 +4505,6 @@ export declare const dashboardWidgetsContract: {
4504
4505
  office?: string | undefined;
4505
4506
  }>;
4506
4507
  summary: "Get admin aggregate actives trend";
4507
- description: "Actives trend aggregated across the office first agents";
4508
4508
  method: "GET";
4509
4509
  path: "/trends/admin/actives";
4510
4510
  responses: {
@@ -4561,6 +4561,7 @@ export declare const dashboardWidgetsContract: {
4561
4561
  };
4562
4562
  };
4563
4563
  getAdminCallPerformanceTrend: {
4564
+ description: "Call performance trend aggregated across the office first agents";
4564
4565
  query: z.ZodObject<{
4565
4566
  startDate: z.ZodString;
4566
4567
  endDate: z.ZodString;
@@ -4576,7 +4577,6 @@ export declare const dashboardWidgetsContract: {
4576
4577
  office?: string | undefined;
4577
4578
  }>;
4578
4579
  summary: "Get admin aggregate call performance trend";
4579
- description: "Call performance trend aggregated across the office first agents";
4580
4580
  method: "GET";
4581
4581
  path: "/trends/admin/call-performance";
4582
4582
  responses: {
@@ -4648,6 +4648,7 @@ export declare const dashboardWidgetsContract: {
4648
4648
  };
4649
4649
  };
4650
4650
  getAdminJobsTrend: {
4651
+ description: "Jobs trend aggregated across the office first agents";
4651
4652
  query: z.ZodObject<{
4652
4653
  startDate: z.ZodString;
4653
4654
  endDate: z.ZodString;
@@ -4663,7 +4664,6 @@ export declare const dashboardWidgetsContract: {
4663
4664
  office?: string | undefined;
4664
4665
  }>;
4665
4666
  summary: "Get admin aggregate jobs trend";
4666
- description: "Jobs trend aggregated across the office first agents";
4667
4667
  method: "GET";
4668
4668
  path: "/trends/admin/jobs";
4669
4669
  responses: {
@@ -4676,14 +4676,14 @@ export declare const dashboardWidgetsContract: {
4676
4676
  fillRate: z.ZodNumber;
4677
4677
  }, "strip", z.ZodTypeAny, {
4678
4678
  date: string;
4679
- fillRate: number;
4680
4679
  created: number;
4680
+ fillRate: number;
4681
4681
  openPositions: number;
4682
4682
  filled: number;
4683
4683
  }, {
4684
4684
  date: string;
4685
- fillRate: number;
4686
4685
  created: number;
4686
+ fillRate: number;
4687
4687
  openPositions: number;
4688
4688
  filled: number;
4689
4689
  }>, "many">;
@@ -4712,8 +4712,8 @@ export declare const dashboardWidgetsContract: {
4712
4712
  };
4713
4713
  data: {
4714
4714
  date: string;
4715
- fillRate: number;
4716
4715
  created: number;
4716
+ fillRate: number;
4717
4717
  openPositions: number;
4718
4718
  filled: number;
4719
4719
  }[];
@@ -4726,8 +4726,8 @@ export declare const dashboardWidgetsContract: {
4726
4726
  };
4727
4727
  data: {
4728
4728
  date: string;
4729
- fillRate: number;
4730
4729
  created: number;
4730
+ fillRate: number;
4731
4731
  openPositions: number;
4732
4732
  filled: number;
4733
4733
  }[];
@@ -4735,6 +4735,7 @@ export declare const dashboardWidgetsContract: {
4735
4735
  };
4736
4736
  };
4737
4737
  getAdminWorkersTrend: {
4738
+ description: "Workers trend aggregated across the office second agents";
4738
4739
  query: z.ZodObject<{
4739
4740
  startDate: z.ZodString;
4740
4741
  endDate: z.ZodString;
@@ -4750,7 +4751,6 @@ export declare const dashboardWidgetsContract: {
4750
4751
  office?: string | undefined;
4751
4752
  }>;
4752
4753
  summary: "Get admin aggregate workers trend";
4753
- description: "Workers trend aggregated across the office second agents";
4754
4754
  method: "GET";
4755
4755
  path: "/trends/admin/workers";
4756
4756
  responses: {
@@ -4824,11 +4824,11 @@ export declare const dashboardWidgetsContract: {
4824
4824
  }, "strip", z.ZodTypeAny, {
4825
4825
  date: string;
4826
4826
  total: number;
4827
- byOutcome: Partial<Record<"CONSENTED" | "DECLINED" | "WRONG_NUMBER" | "SNOOZED" | "OFFER_SENT" | "BOOKED" | "BOOKING_CANCELLED" | "TOO_FAR" | "NOT_INTERESTED", number>>;
4827
+ byOutcome: Partial<Record<"CONSENTED" | "BOOKED" | "NOT_INTERESTED" | "WRONG_NUMBER" | "OFFER_SENT" | "TOO_FAR" | "DECLINED" | "SNOOZED" | "BOOKING_CANCELLED", number>>;
4828
4828
  }, {
4829
4829
  date: string;
4830
4830
  total: number;
4831
- byOutcome: Partial<Record<"CONSENTED" | "DECLINED" | "WRONG_NUMBER" | "SNOOZED" | "OFFER_SENT" | "BOOKED" | "BOOKING_CANCELLED" | "TOO_FAR" | "NOT_INTERESTED", number>>;
4831
+ byOutcome: Partial<Record<"CONSENTED" | "BOOKED" | "NOT_INTERESTED" | "WRONG_NUMBER" | "OFFER_SENT" | "TOO_FAR" | "DECLINED" | "SNOOZED" | "BOOKING_CANCELLED", number>>;
4832
4832
  }>, "many">;
4833
4833
  summary: z.ZodObject<{
4834
4834
  averageDaily: z.ZodNumber;
@@ -4852,7 +4852,7 @@ export declare const dashboardWidgetsContract: {
4852
4852
  data: {
4853
4853
  date: string;
4854
4854
  total: number;
4855
- byOutcome: Partial<Record<"CONSENTED" | "DECLINED" | "WRONG_NUMBER" | "SNOOZED" | "OFFER_SENT" | "BOOKED" | "BOOKING_CANCELLED" | "TOO_FAR" | "NOT_INTERESTED", number>>;
4855
+ byOutcome: Partial<Record<"CONSENTED" | "BOOKED" | "NOT_INTERESTED" | "WRONG_NUMBER" | "OFFER_SENT" | "TOO_FAR" | "DECLINED" | "SNOOZED" | "BOOKING_CANCELLED", number>>;
4856
4856
  }[];
4857
4857
  }, {
4858
4858
  summary: {
@@ -4863,7 +4863,7 @@ export declare const dashboardWidgetsContract: {
4863
4863
  data: {
4864
4864
  date: string;
4865
4865
  total: number;
4866
- byOutcome: Partial<Record<"CONSENTED" | "DECLINED" | "WRONG_NUMBER" | "SNOOZED" | "OFFER_SENT" | "BOOKED" | "BOOKING_CANCELLED" | "TOO_FAR" | "NOT_INTERESTED", number>>;
4866
+ byOutcome: Partial<Record<"CONSENTED" | "BOOKED" | "NOT_INTERESTED" | "WRONG_NUMBER" | "OFFER_SENT" | "TOO_FAR" | "DECLINED" | "SNOOZED" | "BOOKING_CANCELLED", number>>;
4867
4867
  }[];
4868
4868
  }>;
4869
4869
  };
@@ -4895,11 +4895,11 @@ export declare const dashboardWidgetsContract: {
4895
4895
  }, "strip", z.ZodTypeAny, {
4896
4896
  date: string;
4897
4897
  total: number;
4898
- byOutcome: Partial<Record<"CONSENTED" | "DECLINED" | "WRONG_NUMBER" | "SNOOZED" | "OFFER_SENT" | "BOOKED" | "BOOKING_CANCELLED" | "TOO_FAR" | "NOT_INTERESTED", number>>;
4898
+ byOutcome: Partial<Record<"CONSENTED" | "BOOKED" | "NOT_INTERESTED" | "WRONG_NUMBER" | "OFFER_SENT" | "TOO_FAR" | "DECLINED" | "SNOOZED" | "BOOKING_CANCELLED", number>>;
4899
4899
  }, {
4900
4900
  date: string;
4901
4901
  total: number;
4902
- byOutcome: Partial<Record<"CONSENTED" | "DECLINED" | "WRONG_NUMBER" | "SNOOZED" | "OFFER_SENT" | "BOOKED" | "BOOKING_CANCELLED" | "TOO_FAR" | "NOT_INTERESTED", number>>;
4902
+ byOutcome: Partial<Record<"CONSENTED" | "BOOKED" | "NOT_INTERESTED" | "WRONG_NUMBER" | "OFFER_SENT" | "TOO_FAR" | "DECLINED" | "SNOOZED" | "BOOKING_CANCELLED", number>>;
4903
4903
  }>, "many">;
4904
4904
  summary: z.ZodObject<{
4905
4905
  averageDaily: z.ZodNumber;
@@ -4923,7 +4923,7 @@ export declare const dashboardWidgetsContract: {
4923
4923
  data: {
4924
4924
  date: string;
4925
4925
  total: number;
4926
- byOutcome: Partial<Record<"CONSENTED" | "DECLINED" | "WRONG_NUMBER" | "SNOOZED" | "OFFER_SENT" | "BOOKED" | "BOOKING_CANCELLED" | "TOO_FAR" | "NOT_INTERESTED", number>>;
4926
+ byOutcome: Partial<Record<"CONSENTED" | "BOOKED" | "NOT_INTERESTED" | "WRONG_NUMBER" | "OFFER_SENT" | "TOO_FAR" | "DECLINED" | "SNOOZED" | "BOOKING_CANCELLED", number>>;
4927
4927
  }[];
4928
4928
  }, {
4929
4929
  summary: {
@@ -4934,7 +4934,7 @@ export declare const dashboardWidgetsContract: {
4934
4934
  data: {
4935
4935
  date: string;
4936
4936
  total: number;
4937
- byOutcome: Partial<Record<"CONSENTED" | "DECLINED" | "WRONG_NUMBER" | "SNOOZED" | "OFFER_SENT" | "BOOKED" | "BOOKING_CANCELLED" | "TOO_FAR" | "NOT_INTERESTED", number>>;
4937
+ byOutcome: Partial<Record<"CONSENTED" | "BOOKED" | "NOT_INTERESTED" | "WRONG_NUMBER" | "OFFER_SENT" | "TOO_FAR" | "DECLINED" | "SNOOZED" | "BOOKING_CANCELLED", number>>;
4938
4938
  }[];
4939
4939
  }>;
4940
4940
  };
@@ -5197,14 +5197,14 @@ export declare const dashboardWidgetsContract: {
5197
5197
  fillRate: z.ZodNumber;
5198
5198
  }, "strip", z.ZodTypeAny, {
5199
5199
  date: string;
5200
- fillRate: number;
5201
5200
  created: number;
5201
+ fillRate: number;
5202
5202
  openPositions: number;
5203
5203
  filled: number;
5204
5204
  }, {
5205
5205
  date: string;
5206
- fillRate: number;
5207
5206
  created: number;
5207
+ fillRate: number;
5208
5208
  openPositions: number;
5209
5209
  filled: number;
5210
5210
  }>, "many">;
@@ -5233,8 +5233,8 @@ export declare const dashboardWidgetsContract: {
5233
5233
  };
5234
5234
  data: {
5235
5235
  date: string;
5236
- fillRate: number;
5237
5236
  created: number;
5237
+ fillRate: number;
5238
5238
  openPositions: number;
5239
5239
  filled: number;
5240
5240
  }[];
@@ -5247,8 +5247,8 @@ export declare const dashboardWidgetsContract: {
5247
5247
  };
5248
5248
  data: {
5249
5249
  date: string;
5250
- fillRate: number;
5251
5250
  created: number;
5251
+ fillRate: number;
5252
5252
  openPositions: number;
5253
5253
  filled: number;
5254
5254
  }[];