@dakkitor/api-contracts 1.1.36 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/first-agent.abilities.json +2 -2
- package/dist/actives/actives.contract.d.ts +1184 -1184
- package/dist/bookings/bookings.contract.d.ts +1070 -1070
- package/dist/call-history/call-history.contract.d.ts +490 -466
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.js +3 -10
- package/dist/client-contacts/client-contacts.contract.d.ts +25 -25
- package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.js +8 -3
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +604 -604
- package/dist/collaborations/collaborations.contract.d.ts +488 -488
- package/dist/jobs/jobs.contract.d.ts +640 -640
- package/dist/leads/leads.contract.d.ts +44 -44
- package/package.json +1 -1
|
@@ -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;AAU5E,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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/B,CAAC"}
|
|
@@ -132,16 +132,9 @@ exports.FilterCallHistorySchema = pagination_query_schema_1.PaginationQuerySchem
|
|
|
132
132
|
.optional(),
|
|
133
133
|
rating: zod_1.z.preprocess((val) => (val ? Number(val) : undefined), call_rating_schema_1.CallRatingSchema.optional()),
|
|
134
134
|
callType: exports.CallTypeSchema.optional(),
|
|
135
|
-
|
|
136
|
-
.
|
|
137
|
-
.
|
|
138
|
-
.describe('Filter calls from this date onwards')
|
|
139
|
-
.optional(),
|
|
140
|
-
callDateTo: zod_1.z
|
|
141
|
-
.string()
|
|
142
|
-
.datetime()
|
|
143
|
-
.describe('Filter calls up to this date')
|
|
144
|
-
.optional(),
|
|
135
|
+
callDate: common_schemas_1.DateRangeSchema.optional()
|
|
136
|
+
.nullable()
|
|
137
|
+
.describe('Filter by call date range'),
|
|
145
138
|
sortBy: exports.CallHistorySortableFieldsSchema.default(CallHistorySortableFields.CREATED_AT)
|
|
146
139
|
.describe('The field to sort the results by')
|
|
147
140
|
.optional(),
|
|
@@ -94,7 +94,7 @@ export declare const ClientContactSchema: z.ZodObject<{
|
|
|
94
94
|
name: z.ZodString;
|
|
95
95
|
position: z.ZodOptional<z.ZodString>;
|
|
96
96
|
phone: z.ZodString;
|
|
97
|
-
email: z.ZodString
|
|
97
|
+
email: z.ZodNullable<z.ZodString>;
|
|
98
98
|
source: z.ZodOptional<z.ZodString>;
|
|
99
99
|
createdBy: z.ZodObject<{
|
|
100
100
|
id: z.ZodString;
|
|
@@ -117,7 +117,7 @@ export declare const ClientContactSchema: z.ZodObject<{
|
|
|
117
117
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
119
|
name: string;
|
|
120
|
-
email: string;
|
|
120
|
+
email: string | null;
|
|
121
121
|
createdAt: string;
|
|
122
122
|
updatedAt: string;
|
|
123
123
|
id: string;
|
|
@@ -154,7 +154,7 @@ export declare const ClientContactSchema: z.ZodObject<{
|
|
|
154
154
|
source?: string | undefined;
|
|
155
155
|
}, {
|
|
156
156
|
name: string;
|
|
157
|
-
email: string;
|
|
157
|
+
email: string | null;
|
|
158
158
|
createdAt: string | Date;
|
|
159
159
|
updatedAt: string | Date;
|
|
160
160
|
id: string;
|
|
@@ -391,7 +391,7 @@ export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
|
|
|
391
391
|
name: z.ZodString;
|
|
392
392
|
position: z.ZodOptional<z.ZodString>;
|
|
393
393
|
phone: z.ZodString;
|
|
394
|
-
email: z.ZodString
|
|
394
|
+
email: z.ZodNullable<z.ZodString>;
|
|
395
395
|
source: z.ZodOptional<z.ZodString>;
|
|
396
396
|
createdBy: z.ZodObject<{
|
|
397
397
|
id: z.ZodString;
|
|
@@ -414,7 +414,7 @@ export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
|
|
|
414
414
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
415
415
|
}, "strip", z.ZodTypeAny, {
|
|
416
416
|
name: string;
|
|
417
|
-
email: string;
|
|
417
|
+
email: string | null;
|
|
418
418
|
createdAt: string;
|
|
419
419
|
updatedAt: string;
|
|
420
420
|
id: string;
|
|
@@ -451,7 +451,7 @@ export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
|
|
|
451
451
|
source?: string | undefined;
|
|
452
452
|
}, {
|
|
453
453
|
name: string;
|
|
454
|
-
email: string;
|
|
454
|
+
email: string | null;
|
|
455
455
|
createdAt: string | Date;
|
|
456
456
|
updatedAt: string | Date;
|
|
457
457
|
id: string;
|
|
@@ -496,7 +496,7 @@ export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
|
|
|
496
496
|
limit: number;
|
|
497
497
|
items: {
|
|
498
498
|
name: string;
|
|
499
|
-
email: string;
|
|
499
|
+
email: string | null;
|
|
500
500
|
createdAt: string;
|
|
501
501
|
updatedAt: string;
|
|
502
502
|
id: string;
|
|
@@ -540,7 +540,7 @@ export declare const ClientContactPaginatedResponseSchema: z.ZodObject<{
|
|
|
540
540
|
limit: number;
|
|
541
541
|
items: {
|
|
542
542
|
name: string;
|
|
543
|
-
email: string;
|
|
543
|
+
email: string | null;
|
|
544
544
|
createdAt: string | Date;
|
|
545
545
|
updatedAt: string | Date;
|
|
546
546
|
id: string;
|
|
@@ -808,7 +808,7 @@ export declare const clientContactsContractRouter: {
|
|
|
808
808
|
name: z.ZodString;
|
|
809
809
|
position: z.ZodOptional<z.ZodString>;
|
|
810
810
|
phone: z.ZodString;
|
|
811
|
-
email: z.ZodString
|
|
811
|
+
email: z.ZodNullable<z.ZodString>;
|
|
812
812
|
source: z.ZodOptional<z.ZodString>;
|
|
813
813
|
createdBy: z.ZodObject<{
|
|
814
814
|
id: z.ZodString;
|
|
@@ -831,7 +831,7 @@ export declare const clientContactsContractRouter: {
|
|
|
831
831
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
832
832
|
}, "strip", z.ZodTypeAny, {
|
|
833
833
|
name: string;
|
|
834
|
-
email: string;
|
|
834
|
+
email: string | null;
|
|
835
835
|
createdAt: string;
|
|
836
836
|
updatedAt: string;
|
|
837
837
|
id: string;
|
|
@@ -868,7 +868,7 @@ export declare const clientContactsContractRouter: {
|
|
|
868
868
|
source?: string | undefined;
|
|
869
869
|
}, {
|
|
870
870
|
name: string;
|
|
871
|
-
email: string;
|
|
871
|
+
email: string | null;
|
|
872
872
|
createdAt: string | Date;
|
|
873
873
|
updatedAt: string | Date;
|
|
874
874
|
id: string;
|
|
@@ -1150,7 +1150,7 @@ export declare const clientContactsContractRouter: {
|
|
|
1150
1150
|
name: z.ZodString;
|
|
1151
1151
|
position: z.ZodOptional<z.ZodString>;
|
|
1152
1152
|
phone: z.ZodString;
|
|
1153
|
-
email: z.ZodString
|
|
1153
|
+
email: z.ZodNullable<z.ZodString>;
|
|
1154
1154
|
source: z.ZodOptional<z.ZodString>;
|
|
1155
1155
|
createdBy: z.ZodObject<{
|
|
1156
1156
|
id: z.ZodString;
|
|
@@ -1173,7 +1173,7 @@ export declare const clientContactsContractRouter: {
|
|
|
1173
1173
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1174
1174
|
}, "strip", z.ZodTypeAny, {
|
|
1175
1175
|
name: string;
|
|
1176
|
-
email: string;
|
|
1176
|
+
email: string | null;
|
|
1177
1177
|
createdAt: string;
|
|
1178
1178
|
updatedAt: string;
|
|
1179
1179
|
id: string;
|
|
@@ -1210,7 +1210,7 @@ export declare const clientContactsContractRouter: {
|
|
|
1210
1210
|
source?: string | undefined;
|
|
1211
1211
|
}, {
|
|
1212
1212
|
name: string;
|
|
1213
|
-
email: string;
|
|
1213
|
+
email: string | null;
|
|
1214
1214
|
createdAt: string | Date;
|
|
1215
1215
|
updatedAt: string | Date;
|
|
1216
1216
|
id: string;
|
|
@@ -1498,7 +1498,7 @@ export declare const clientContactsContractRouter: {
|
|
|
1498
1498
|
name: z.ZodString;
|
|
1499
1499
|
position: z.ZodOptional<z.ZodString>;
|
|
1500
1500
|
phone: z.ZodString;
|
|
1501
|
-
email: z.ZodString
|
|
1501
|
+
email: z.ZodNullable<z.ZodString>;
|
|
1502
1502
|
source: z.ZodOptional<z.ZodString>;
|
|
1503
1503
|
createdBy: z.ZodObject<{
|
|
1504
1504
|
id: z.ZodString;
|
|
@@ -1521,7 +1521,7 @@ export declare const clientContactsContractRouter: {
|
|
|
1521
1521
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1522
1522
|
}, "strip", z.ZodTypeAny, {
|
|
1523
1523
|
name: string;
|
|
1524
|
-
email: string;
|
|
1524
|
+
email: string | null;
|
|
1525
1525
|
createdAt: string;
|
|
1526
1526
|
updatedAt: string;
|
|
1527
1527
|
id: string;
|
|
@@ -1558,7 +1558,7 @@ export declare const clientContactsContractRouter: {
|
|
|
1558
1558
|
source?: string | undefined;
|
|
1559
1559
|
}, {
|
|
1560
1560
|
name: string;
|
|
1561
|
-
email: string;
|
|
1561
|
+
email: string | null;
|
|
1562
1562
|
createdAt: string | Date;
|
|
1563
1563
|
updatedAt: string | Date;
|
|
1564
1564
|
id: string;
|
|
@@ -1603,7 +1603,7 @@ export declare const clientContactsContractRouter: {
|
|
|
1603
1603
|
limit: number;
|
|
1604
1604
|
items: {
|
|
1605
1605
|
name: string;
|
|
1606
|
-
email: string;
|
|
1606
|
+
email: string | null;
|
|
1607
1607
|
createdAt: string;
|
|
1608
1608
|
updatedAt: string;
|
|
1609
1609
|
id: string;
|
|
@@ -1647,7 +1647,7 @@ export declare const clientContactsContractRouter: {
|
|
|
1647
1647
|
limit: number;
|
|
1648
1648
|
items: {
|
|
1649
1649
|
name: string;
|
|
1650
|
-
email: string;
|
|
1650
|
+
email: string | null;
|
|
1651
1651
|
createdAt: string | Date;
|
|
1652
1652
|
updatedAt: string | Date;
|
|
1653
1653
|
id: string;
|
|
@@ -1883,7 +1883,7 @@ export declare const clientContactsContractRouter: {
|
|
|
1883
1883
|
name: z.ZodString;
|
|
1884
1884
|
position: z.ZodOptional<z.ZodString>;
|
|
1885
1885
|
phone: z.ZodString;
|
|
1886
|
-
email: z.ZodString
|
|
1886
|
+
email: z.ZodNullable<z.ZodString>;
|
|
1887
1887
|
source: z.ZodOptional<z.ZodString>;
|
|
1888
1888
|
createdBy: z.ZodObject<{
|
|
1889
1889
|
id: z.ZodString;
|
|
@@ -1906,7 +1906,7 @@ export declare const clientContactsContractRouter: {
|
|
|
1906
1906
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1907
1907
|
}, "strip", z.ZodTypeAny, {
|
|
1908
1908
|
name: string;
|
|
1909
|
-
email: string;
|
|
1909
|
+
email: string | null;
|
|
1910
1910
|
createdAt: string;
|
|
1911
1911
|
updatedAt: string;
|
|
1912
1912
|
id: string;
|
|
@@ -1943,7 +1943,7 @@ export declare const clientContactsContractRouter: {
|
|
|
1943
1943
|
source?: string | undefined;
|
|
1944
1944
|
}, {
|
|
1945
1945
|
name: string;
|
|
1946
|
-
email: string;
|
|
1946
|
+
email: string | null;
|
|
1947
1947
|
createdAt: string | Date;
|
|
1948
1948
|
updatedAt: string | Date;
|
|
1949
1949
|
id: string;
|
|
@@ -2225,7 +2225,7 @@ export declare const clientContactsContractRouter: {
|
|
|
2225
2225
|
name: z.ZodString;
|
|
2226
2226
|
position: z.ZodOptional<z.ZodString>;
|
|
2227
2227
|
phone: z.ZodString;
|
|
2228
|
-
email: z.ZodString
|
|
2228
|
+
email: z.ZodNullable<z.ZodString>;
|
|
2229
2229
|
source: z.ZodOptional<z.ZodString>;
|
|
2230
2230
|
createdBy: z.ZodObject<{
|
|
2231
2231
|
id: z.ZodString;
|
|
@@ -2248,7 +2248,7 @@ export declare const clientContactsContractRouter: {
|
|
|
2248
2248
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2249
2249
|
}, "strip", z.ZodTypeAny, {
|
|
2250
2250
|
name: string;
|
|
2251
|
-
email: string;
|
|
2251
|
+
email: string | null;
|
|
2252
2252
|
createdAt: string;
|
|
2253
2253
|
updatedAt: string;
|
|
2254
2254
|
id: string;
|
|
@@ -2285,7 +2285,7 @@ export declare const clientContactsContractRouter: {
|
|
|
2285
2285
|
source?: string | undefined;
|
|
2286
2286
|
}, {
|
|
2287
2287
|
name: string;
|
|
2288
|
-
email: string;
|
|
2288
|
+
email: string | null;
|
|
2289
2289
|
createdAt: string | Date;
|
|
2290
2290
|
updatedAt: string | Date;
|
|
2291
2291
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-contacts.contract.d.ts","sourceRoot":"","sources":["../../contracts/client-contacts/client-contacts.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGxC,CAAC"}
|
|
@@ -35,7 +35,7 @@ exports.ClientContactSchema = zod_1.z.object({
|
|
|
35
35
|
name: zod_1.z.string().describe('Contact Name'),
|
|
36
36
|
position: zod_1.z.string().optional().describe('Job Position'),
|
|
37
37
|
phone: zod_1.z.string().describe('Phone Number'),
|
|
38
|
-
email: zod_1.z.string().email().describe('Email Address'),
|
|
38
|
+
email: zod_1.z.string().email().nullable().describe('Email Address'),
|
|
39
39
|
source: zod_1.z.string().optional().describe('Source'),
|
|
40
40
|
createdBy: exports.ClientContactUserSchema.describe('Created By'),
|
|
41
41
|
createdById: zod_1.z.string().uuid().describe('Created By ID'),
|
|
@@ -58,8 +58,13 @@ exports.CreateClientContactSchema = zod_1.z
|
|
|
58
58
|
.string()
|
|
59
59
|
.max(255)
|
|
60
60
|
.optional()
|
|
61
|
-
.transform((val) =>
|
|
62
|
-
|
|
61
|
+
.transform((val) => {
|
|
62
|
+
if (val === undefined || val === null)
|
|
63
|
+
return undefined;
|
|
64
|
+
const trimmed = val.trim();
|
|
65
|
+
return trimmed === '' ? undefined : trimmed;
|
|
66
|
+
})
|
|
67
|
+
.refine((val) => val === undefined || zod_1.z.string().email().safeParse(val).success, {
|
|
63
68
|
message: 'Invalid email format',
|
|
64
69
|
})
|
|
65
70
|
.describe('Email Address'),
|