@dakkitor/api-contracts 1.1.130 → 1.1.131

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":"call-history.contract.d.ts","sourceRoot":"","sources":["../../contracts/call-history/call-history.contract.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAc5E,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC;AAExC,oBAAY,QAAQ;IAClB,UAAU,eAAe;IACzB,eAAe,oBAAoB;IACnC,aAAa,kBAAkB;CAChC;AAED,oBAAY,yBAAyB;IACnC,UAAU,cAAc;IACxB,SAAS,aAAa;IACtB,MAAM,WAAW;IACjB,aAAa,iBAAiB;CAC/B;AAED,eAAO,MAAM,cAAc,kCAGzB,CAAC;AAEH,eAAO,MAAM,+BAA+B,mDAIxC,CAAC;AAGL,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDM,CAAC;AAErC,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+E/B,CAAC"}
@@ -6,7 +6,7 @@
6
6
  * Description: Contract definition for Call History V2 API.
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.callHistoryContract = exports.CallHistoryStatsSchema = exports.FilterCallHistorySchema = exports.UpdateCallHistorySchema = exports.CreateCallHistorySchema = exports.PaginatedCallHistoryResponseSchema = exports.CallHistorySchema = exports.CallHistorySortableFieldsSchema = exports.CallTypeSchema = exports.CallHistorySortableFields = exports.CallType = exports.CallRatingSchema = exports.CallRating = void 0;
9
+ exports.callHistoryContract = exports.CallHistoryStatsSchema = exports.FilterCallHistorySchema = exports.UpdateCallHistorySchema = exports.CreateCallHistorySchema = exports.PaginatedCallHistoryResponseSchema = exports.CallHistorySchema = exports.CallHistorySortableFieldsSchema = exports.LeadSourceSchema = exports.CallTypeSchema = exports.CallHistorySortableFields = exports.LEAD_SOURCE_LABELS = exports.LeadSource = exports.CALL_TYPE_LABELS = exports.CallType = exports.CallRatingSchema = exports.CallRating = void 0;
10
10
  const core_1 = require("@ts-rest/core");
11
11
  const zod_1 = require("zod");
12
12
  const call_rating_schema_1 = require("../common/call-rating.schema");
@@ -23,7 +23,23 @@ var CallType;
23
23
  CallType["ASSIGNMENT"] = "assignment";
24
24
  CallType["AGENT_FOLLOW_UP"] = "agent_follow_up";
25
25
  CallType["LEAD_CALLBACK"] = "lead_callback";
26
+ CallType["OWN_RESEARCH"] = "own_research";
26
27
  })(CallType || (exports.CallType = CallType = {}));
28
+ exports.CALL_TYPE_LABELS = {
29
+ [CallType.ASSIGNMENT]: "Assignment Call",
30
+ [CallType.AGENT_FOLLOW_UP]: "Agent Follow-up",
31
+ [CallType.LEAD_CALLBACK]: "Lead Callback",
32
+ [CallType.OWN_RESEARCH]: "Own Research",
33
+ };
34
+ var LeadSource;
35
+ (function (LeadSource) {
36
+ LeadSource["OWN_RESEARCH"] = "own_research";
37
+ LeadSource["LEADS_TABLE"] = "leads_table";
38
+ })(LeadSource || (exports.LeadSource = LeadSource = {}));
39
+ exports.LEAD_SOURCE_LABELS = {
40
+ [LeadSource.OWN_RESEARCH]: "Own Research",
41
+ [LeadSource.LEADS_TABLE]: "Leads Table",
42
+ };
27
43
  var CallHistorySortableFields;
28
44
  (function (CallHistorySortableFields) {
29
45
  CallHistorySortableFields["CREATED_AT"] = "createdAt";
@@ -32,22 +48,26 @@ var CallHistorySortableFields;
32
48
  CallHistorySortableFields["RATING_WEIGHT"] = "ratingWeight";
33
49
  })(CallHistorySortableFields || (exports.CallHistorySortableFields = CallHistorySortableFields = {}));
34
50
  exports.CallTypeSchema = zod_1.z.nativeEnum(CallType).openapi({
35
- title: 'CallType',
36
- description: 'Type of the call',
51
+ title: "CallType",
52
+ description: "Type of the call",
53
+ });
54
+ exports.LeadSourceSchema = zod_1.z.nativeEnum(LeadSource).openapi({
55
+ title: "LeadSource",
56
+ description: "Source of the lead",
37
57
  });
38
58
  exports.CallHistorySortableFieldsSchema = zod_1.z
39
59
  .nativeEnum(CallHistorySortableFields)
40
60
  .openapi({
41
- title: 'CallHistorySortableFields',
61
+ title: "CallHistorySortableFields",
42
62
  });
43
63
  // Schemas
44
64
  exports.CallHistorySchema = zod_1.z
45
65
  .object({
46
- id: zod_1.z.string().uuid().describe('The unique identifier of the call record'),
66
+ id: zod_1.z.string().uuid().describe("The unique identifier of the call record"),
47
67
  assignmentId: zod_1.z
48
68
  .string()
49
69
  .uuid()
50
- .describe('The ID of the assignment that generated this call record'),
70
+ .describe("The ID of the assignment that generated this call record"),
51
71
  // leadId and agentId are derived from assignment usually, but existing DTO has them?
52
72
  // Looking at CallHistoryResponseDto, it exposes leadId and agentId.
53
73
  // However, the entity CallHistory only has assignmentId.
@@ -58,128 +78,132 @@ exports.CallHistorySchema = zod_1.z
58
78
  leadId: zod_1.z
59
79
  .string()
60
80
  .uuid()
61
- .describe('The ID of the lead that was called')
81
+ .describe("The ID of the lead that was called")
62
82
  .optional(),
63
83
  agentId: zod_1.z
64
84
  .string()
65
85
  .uuid()
66
- .describe('The ID of the agent who made the call')
86
+ .describe("The ID of the agent who made the call")
67
87
  .optional(),
68
- assignment: lead_assignments_contract_1.LeadAssignmentSchema.describe('The assignment that generated this call record')
88
+ assignment: lead_assignments_contract_1.LeadAssignmentSchema.describe("The assignment that generated this call record")
69
89
  .optional()
70
90
  .nullable(),
71
91
  callDate: zod_1.z
72
92
  .union([zod_1.z.string().datetime(), zod_1.z.date()])
73
93
  .transform((val) => (val instanceof Date ? val.toISOString() : val))
74
- .describe('The date and time when the call was made'),
94
+ .describe("The date and time when the call was made"),
75
95
  callType: exports.CallTypeSchema,
76
- rating: call_rating_schema_1.CallRatingSchema.describe('The rating given to the call outcome'),
96
+ leadSource: exports.LeadSourceSchema,
97
+ rating: call_rating_schema_1.CallRatingSchema.describe("The rating given to the call outcome"),
77
98
  ratingWeight: zod_1.z.coerce
78
99
  .number()
79
- .describe('The weight associated with the call rating for performance calculations'),
100
+ .describe("The weight associated with the call rating for performance calculations"),
80
101
  notes: zod_1.z
81
102
  .string()
82
- .describe('Optional notes about the call conversation')
103
+ .describe("Optional notes about the call conversation")
83
104
  .nullable(),
84
105
  createdAt: zod_1.z
85
106
  .union([zod_1.z.string().datetime(), zod_1.z.date()])
86
107
  .transform((val) => (val instanceof Date ? val.toISOString() : val))
87
- .describe('The timestamp when the call record was created'),
108
+ .describe("The timestamp when the call record was created"),
88
109
  updatedAt: zod_1.z
89
110
  .union([zod_1.z.string().datetime(), zod_1.z.date()])
90
111
  .transform((val) => (val instanceof Date ? val.toISOString() : val))
91
- .describe('The timestamp when the call record was last updated'),
112
+ .describe("The timestamp when the call record was last updated"),
92
113
  })
93
- .openapi({ title: 'CallHistory' });
114
+ .openapi({ title: "CallHistory" });
94
115
  exports.PaginatedCallHistoryResponseSchema = (0, pagination_schema_1.createPaginatedResponseSchema)(exports.CallHistorySchema).openapi({
95
- title: 'PaginatedCallHistoryResponse',
116
+ title: "PaginatedCallHistoryResponse",
96
117
  });
97
118
  exports.CreateCallHistorySchema = zod_1.z
98
119
  .object({
99
120
  assignmentId: zod_1.z
100
121
  .string()
101
122
  .uuid()
102
- .describe('The ID of the assignment that generated this call record'),
103
- rating: call_rating_schema_1.CallRatingSchema.describe('The rating given to the call outcome'),
123
+ .describe("The ID of the assignment that generated this call record"),
124
+ rating: call_rating_schema_1.CallRatingSchema.describe("The rating given to the call outcome"),
104
125
  notes: zod_1.z
105
126
  .string()
106
127
  .max(1000)
107
- .describe('Optional notes about the call conversation')
128
+ .describe("Optional notes about the call conversation")
108
129
  .optional(),
109
130
  callType: exports.CallTypeSchema,
110
131
  })
111
- .openapi({ title: 'CreateCallHistory' });
132
+ .openapi({ title: "CreateCallHistory" });
112
133
  exports.UpdateCallHistorySchema = zod_1.z
113
134
  .object({
114
135
  callDate: zod_1.z
115
136
  .string() // IsDateString in DTO
116
137
  .datetime()
117
- .describe('The date and time when the call was made')
138
+ .describe("The date and time when the call was made")
118
139
  .optional(),
119
- rating: call_rating_schema_1.CallRatingSchema.optional().describe('The rating given to the call outcome'),
140
+ rating: call_rating_schema_1.CallRatingSchema.optional().describe("The rating given to the call outcome"),
120
141
  notes: zod_1.z
121
142
  .string()
122
143
  .max(1000)
123
- .describe('Optional notes about the call conversation')
144
+ .describe("Optional notes about the call conversation")
124
145
  .nullable()
125
146
  .optional(),
126
147
  })
127
- .openapi({ title: 'UpdateCallHistory' });
148
+ .openapi({ title: "UpdateCallHistory" });
128
149
  exports.FilterCallHistorySchema = pagination_query_schema_1.PaginationQuerySchema.extend({
129
- agentId: zod_1.z.string().uuid().describe('Search First Agent').optional(),
130
- companyId: zod_1.z.string().uuid().describe('Search Company').optional(),
150
+ callDate: common_schemas_1.DateRangeSchema.optional()
151
+ .nullable()
152
+ .describe("Filter by call date range"),
153
+ agentId: zod_1.z.string().uuid().describe("Search First Agent").optional(),
154
+ companyId: zod_1.z.string().uuid().describe("Search Company").optional(),
131
155
  rating: common_schemas_1.RatingRangeSchema.optional()
132
156
  .nullable()
133
- .describe('Filter by rating range'),
157
+ .describe("Filter by rating range"),
134
158
  callType: exports.CallTypeSchema.optional(),
135
- callDate: common_schemas_1.DateRangeSchema.optional()
136
- .nullable()
137
- .describe('Filter by call date range'),
159
+ leadSource: exports.LeadSourceSchema.optional(),
160
+ phoneNumber: zod_1.z.string().optional().describe("Search by phone number"),
161
+ leadName: zod_1.z.string().optional().describe("Search by lead name"),
138
162
  sortBy: exports.CallHistorySortableFieldsSchema.default(CallHistorySortableFields.CREATED_AT)
139
- .describe('The field to sort the results by')
163
+ .describe("The field to sort the results by")
140
164
  .optional(),
141
- sortOrder: common_schemas_1.SortOrderSchema.default('DESC')
142
- .describe('The order to sort the results by')
165
+ sortOrder: common_schemas_1.SortOrderSchema.default("DESC")
166
+ .describe("The order to sort the results by")
143
167
  .optional(),
144
- }).openapi({ title: 'FilterCallHistory' });
168
+ }).openapi({ title: "FilterCallHistory" });
145
169
  exports.CallHistoryStatsSchema = zod_1.z
146
170
  .object({
147
- totalCalls: zod_1.z.number().describe('Total number of calls made'),
148
- averageRatingWeight: zod_1.z.number().describe('Average rating weight of calls'),
171
+ totalCalls: zod_1.z.number().describe("Total number of calls made"),
172
+ averageRatingWeight: zod_1.z.number().describe("Average rating weight of calls"),
149
173
  callsByRating: zod_1.z
150
174
  .record(zod_1.z.string(), zod_1.z.number())
151
- .describe('Distribution of calls by rating'),
175
+ .describe("Distribution of calls by rating"),
152
176
  })
153
- .openapi({ title: 'CallHistoryStats' });
177
+ .openapi({ title: "CallHistoryStats" });
154
178
  exports.callHistoryContract = c.router({
155
179
  create: {
156
- method: 'POST',
157
- path: '/call-history',
180
+ method: "POST",
181
+ path: "/call-history",
158
182
  body: exports.CreateCallHistorySchema,
159
183
  responses: {
160
184
  201: exports.CallHistorySchema,
161
185
  409: error_schemas_1.ErrorResponseSchema,
162
186
  },
163
- summary: 'Create a new call history record',
187
+ summary: "Create a new call history record",
164
188
  metadata: {
165
- tags: ['Call History'],
189
+ tags: ["Call History"],
166
190
  },
167
191
  },
168
192
  findAll: {
169
- method: 'GET',
170
- path: '/call-history',
193
+ method: "GET",
194
+ path: "/call-history",
171
195
  query: exports.FilterCallHistorySchema,
172
196
  responses: {
173
197
  200: exports.PaginatedCallHistoryResponseSchema,
174
198
  },
175
- summary: 'Get call history records',
199
+ summary: "Get call history records",
176
200
  metadata: {
177
- tags: ['Call History'],
201
+ tags: ["Call History"],
178
202
  },
179
203
  },
180
204
  findOne: {
181
- method: 'GET',
182
- path: '/call-history/:id',
205
+ method: "GET",
206
+ path: "/call-history/:id",
183
207
  pathParams: zod_1.z.object({
184
208
  id: zod_1.z.string().uuid(),
185
209
  }),
@@ -187,14 +211,14 @@ exports.callHistoryContract = c.router({
187
211
  200: exports.CallHistorySchema,
188
212
  404: error_schemas_1.ErrorResponseSchema,
189
213
  },
190
- summary: 'Get a specific call history record',
214
+ summary: "Get a specific call history record",
191
215
  metadata: {
192
- tags: ['Call History'],
216
+ tags: ["Call History"],
193
217
  },
194
218
  },
195
219
  update: {
196
- method: 'PATCH',
197
- path: '/call-history/:id',
220
+ method: "PATCH",
221
+ path: "/call-history/:id",
198
222
  pathParams: zod_1.z.object({
199
223
  id: zod_1.z.string().uuid(),
200
224
  }),
@@ -203,24 +227,24 @@ exports.callHistoryContract = c.router({
203
227
  200: exports.CallHistorySchema,
204
228
  404: error_schemas_1.ErrorResponseSchema,
205
229
  },
206
- summary: 'Update call history notes',
230
+ summary: "Update call history notes",
207
231
  metadata: {
208
- tags: ['Call History'],
232
+ tags: ["Call History"],
209
233
  },
210
234
  },
211
235
  getAgentStats: {
212
- method: 'GET',
213
- path: '/call-history/stats/agent',
236
+ method: "GET",
237
+ path: "/call-history/stats/agent",
214
238
  responses: {
215
239
  200: exports.CallHistoryStatsSchema,
216
240
  },
217
- summary: 'Get agent performance statistics',
241
+ summary: "Get agent performance statistics",
218
242
  metadata: {
219
- tags: ['Call History'],
243
+ tags: ["Call History"],
220
244
  },
221
245
  },
222
246
  }, {
223
- pathPrefix: '/v2',
247
+ pathPrefix: "/v2",
224
248
  commonResponses: {
225
249
  400: error_schemas_1.ErrorResponseSchema,
226
250
  401: error_schemas_1.ErrorResponseSchema,
package/dist/index.d.ts CHANGED
@@ -29,6 +29,7 @@ export * from "./lead-distribution/lead-distribution-config.contract";
29
29
  export * from "./leads/leads.contract";
30
30
  export * from "./locations/locations.contract";
31
31
  export * from "./monitoring/monitoring.contract";
32
+ export * from "./own-research/own-research.contract";
32
33
  export * from "./postcodes/postcodes.contract";
33
34
  export * from "./qualifications/qualifications.contract";
34
35
  export * from "./trades/trades.contract";
@@ -58,6 +59,7 @@ import { leadDistributionConfigContract } from "./lead-distribution/lead-distrib
58
59
  import { leadsContractRouter } from "./leads/leads.contract";
59
60
  import { locationsContract } from "./locations/locations.contract";
60
61
  import { monitoringContract } from "./monitoring/monitoring.contract";
62
+ import { ownResearchContract } from "./own-research/own-research.contract";
61
63
  import { postcodesContract } from "./postcodes/postcodes.contract";
62
64
  import { qualificationsContract } from "./qualifications/qualifications.contract";
63
65
  import { tradesContract } from "./trades/trades.contract";
@@ -93,6 +95,7 @@ type ApiContractRouter = {
93
95
  AgentLeadDistribution: typeof agentLeadDistributionContract;
94
96
  LeadDistributionConfigs: typeof leadDistributionConfigContract;
95
97
  Monitoring: typeof monitoringContract;
98
+ OwnResearch: typeof ownResearchContract;
96
99
  };
97
100
  export declare const apiContractRouter: ApiContractRouter;
98
101
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kDAAkD,CAAC;AACjE,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4DAA4D,CAAC;AAC3E,cAAc,0CAA0C,CAAC;AACzD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0CAA0C,CAAC;AACzD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAG3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,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AE,OAAO,iBAAiB,CAAC;IACpC,gBAAgB,EAAE,OAAO,wBAAwB,CAAC;IAClD,cAAc,EAAE,OAAO,sBAAsB,CAAC;IAC9C,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B,KAAK,EAAE,OAAO,aAAa,CAAC;IAC5B,eAAe,EAAE,OAAO,uBAAuB,CAAC;IAChD,qBAAqB,EAAE,OAAO,6BAA6B,CAAC;IAC5D,uBAAuB,EAAE,OAAO,8BAA8B,CAAC;IAC/D,UAAU,EAAE,OAAO,kBAAkB,CAAC;IACtC,WAAW,EAAE,OAAO,mBAAmB,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,iBA+B9B,CAAC"}
package/dist/index.js CHANGED
@@ -46,6 +46,7 @@ __exportStar(require("./lead-distribution/lead-distribution-config.contract"), e
46
46
  __exportStar(require("./leads/leads.contract"), exports);
47
47
  __exportStar(require("./locations/locations.contract"), exports);
48
48
  __exportStar(require("./monitoring/monitoring.contract"), exports);
49
+ __exportStar(require("./own-research/own-research.contract"), exports);
49
50
  __exportStar(require("./postcodes/postcodes.contract"), exports);
50
51
  __exportStar(require("./qualifications/qualifications.contract"), exports);
51
52
  __exportStar(require("./trades/trades.contract"), exports);
@@ -76,6 +77,7 @@ const lead_distribution_config_contract_1 = require("./lead-distribution/lead-di
76
77
  const leads_contract_1 = require("./leads/leads.contract");
77
78
  const locations_contract_1 = require("./locations/locations.contract");
78
79
  const monitoring_contract_1 = require("./monitoring/monitoring.contract");
80
+ const own_research_contract_1 = require("./own-research/own-research.contract");
79
81
  const postcodes_contract_1 = require("./postcodes/postcodes.contract");
80
82
  const qualifications_contract_1 = require("./qualifications/qualifications.contract");
81
83
  const trades_contract_1 = require("./trades/trades.contract");
@@ -112,4 +114,5 @@ exports.apiContractRouter = c.router({
112
114
  AgentLeadDistribution: agent_lead_distribution_contract_1.agentLeadDistributionContract,
113
115
  LeadDistributionConfigs: lead_distribution_config_contract_1.leadDistributionConfigContract,
114
116
  Monitoring: monitoring_contract_1.monitoringContract,
117
+ OwnResearch: own_research_contract_1.ownResearchContract,
115
118
  });