@dakkitor/api-contracts 1.1.133 → 1.1.135

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.
@@ -1 +1 @@
1
- {"version":3,"file":"own-research.contract.d.ts","sourceRoot":"","sources":["../../contracts/own-research/own-research.contract.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmChC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCM,CAAC;AAE5C,eAAO,MAAM,uBAAuB;;;;;;EAIM,CAAC;AAE3C,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAWM,CAAC;AAE/C,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOM,CAAC;AAEvD,eAAO,MAAM,wBAAwB;;;;;;;;;EAKM,CAAC;AAE5C,eAAO,MAAM,gCAAgC;;;;;;;;;;;;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schema_1 = require("../common/pagination-query.schema");
17
17
  const pagination_schema_1 = require("../common/pagination.schema");
18
18
  const lead_assignments_contract_1 = require("../lead-assignments/lead-assignments.contract");
19
19
  const leads_contract_1 = require("../leads/leads.contract");
20
+ const users_contract_1 = require("../users/users.contract");
21
+ const call_history_contract_1 = require("../call-history/call-history.contract");
20
22
  (0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
21
23
  const c = (0, core_1.initContract)();
22
24
  // Schemas
23
25
  exports.OwnResearchLeadSchema = zod_1.z.object({
24
26
  id: zod_1.z.string().uuid().describe('Own research lead ID'),
25
27
  agentId: zod_1.z.string().uuid().describe('Agent who owns this lead'),
28
+ agent: users_contract_1.UserSchema.optional().describe('Agent details (optional)'),
26
29
  name: zod_1.z.string().describe('Lead contact name'),
27
30
  phoneNumber: zod_1.z.string().describe('Lead phone number'),
28
- source: zod_1.z.string().describe('Lead source'),
29
31
  status: leads_contract_1.LeadStatusSchema.describe('Lead status'),
30
32
  callCount: zod_1.z.number().int().describe('Number of calls made'),
31
33
  lastCalledAt: zod_1.z
@@ -39,6 +41,7 @@ exports.OwnResearchLeadSchema = zod_1.z.object({
39
41
  .nullable()
40
42
  .describe('Cooldown expiry date'),
41
43
  blacklistReason: zod_1.z.string().nullable().describe('Blacklist reason'),
44
+ lastCallNotes: zod_1.z.string().nullable().describe('Notes from the last call'),
42
45
  existsInLeadsTable: zod_1.z
43
46
  .boolean()
44
47
  .describe('Whether this lead also exists in the main leads table'),
@@ -107,11 +110,14 @@ exports.RecordOwnResearchCallSchema = zod_1.z
107
110
  .max(1000)
108
111
  .optional()
109
112
  .describe('Optional notes about the call'),
113
+ callType: call_history_contract_1.CallTypeSchema.optional().describe('Type of the call'),
110
114
  })
111
115
  .openapi({ title: 'RecordOwnResearchCall' });
112
116
  exports.RecordOwnResearchCallResponseSchema = zod_1.z
113
117
  .object({
114
- assignment: lead_assignments_contract_1.LeadAssignmentSchema.describe('The completed assignment'),
118
+ assignment: lead_assignments_contract_1.LeadAssignmentSchema.nullable()
119
+ .optional()
120
+ .describe('The completed assignment (if lead exists in system)'),
115
121
  ownResearchLead: exports.OwnResearchLeadSchema.describe('The own research lead record'),
116
122
  })
117
123
  .openapi({ title: 'RecordOwnResearchCallResponse' });