@dakkitor/api-contracts 1.1.107 → 1.1.108
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/actives/actives.contract.d.ts +2577 -2577
- package/dist/agent-client-links/agent-client-links.contract.d.ts +486 -486
- package/dist/auth/auth.contract.d.ts +16 -16
- package/dist/bookings/bookings.contract.d.ts +9898 -9898
- package/dist/call-history/call-history.contract.d.ts +483 -453
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.js +3 -1
- package/dist/client-contacts/client-contacts.contract.d.ts +26 -26
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +994 -994
- package/dist/collaborations/collaborations.contract.d.ts +868 -868
- package/dist/common/common-schemas.d.ts +11 -0
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +8 -1
- package/dist/dashboards/dashboard.contract.d.ts +14 -14
- package/dist/jobs/jobs.contract.d.ts +1756 -1756
- package/dist/lead-assignments/lead-assignments.contract.d.ts +344 -344
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +163 -163
- package/dist/leads/leads.contract.d.ts +65 -65
- package/dist/users/users.contract.d.ts +128 -128
- package/dist/workers/workers.contract.d.ts +172 -172
- package/package.json +1 -1
|
@@ -84,6 +84,17 @@ export declare const DateRangeSchema: z.ZodObject<{
|
|
|
84
84
|
export type SortOrder = z.infer<typeof SortOrderSchema>;
|
|
85
85
|
export type RateUnit = z.infer<typeof RateUnitSchema>;
|
|
86
86
|
export type DateRange = z.infer<typeof DateRangeSchema>;
|
|
87
|
+
export declare const RatingRangeSchema: z.ZodObject<{
|
|
88
|
+
from: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./call-rating.schema").CallRating>>>, import("./call-rating.schema").CallRating | null | undefined, unknown>;
|
|
89
|
+
to: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./call-rating.schema").CallRating>>>, import("./call-rating.schema").CallRating | null | undefined, unknown>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
from?: import("./call-rating.schema").CallRating | null | undefined;
|
|
92
|
+
to?: import("./call-rating.schema").CallRating | null | undefined;
|
|
93
|
+
}, {
|
|
94
|
+
from?: unknown;
|
|
95
|
+
to?: unknown;
|
|
96
|
+
}>;
|
|
97
|
+
export type RatingRange = z.infer<typeof RatingRangeSchema>;
|
|
87
98
|
export declare const EnglishLevelSchema: z.ZodEnum<["NONE", "BASIC", "INTERMEDIATE", "ADVANCED", "NATIVE"]>;
|
|
88
99
|
export type EnglishLevel = z.infer<typeof EnglishLevelSchema>;
|
|
89
100
|
export declare const NationalitySchema: z.ZodEnum<["AFGHAN", "ALBANIAN", "ALGERIAN", "AMERICAN", "ANDORRAN", "ANGOLAN", "ANTIGUANS", "ARGENTINEAN", "ARMENIAN", "AUSTRALIAN", "AUSTRIAN", "AZERBAIJANI", "BAHAMIAN", "BAHRAINI", "BANGLADESHI", "BARBADIAN", "BARBUDANS", "BELARUSIAN", "BELGIAN", "BELIZEAN", "BENINESE", "BHUTANESE", "BOLIVIAN", "BOSNIAN", "BRAZILIAN", "BRITISH", "BRUNEIAN", "BULGARIAN", "BURKINABE", "BURMESE", "BURUNDIAN", "CAMBODIAN", "CAMEROONIAN", "CANADIAN", "CAPE_VERDEAN", "CENTRAL_AFRICAN", "CHADIAN", "CHILEAN", "CHINESE", "COLOMBIAN", "COMORAN", "CONGOLESE", "COSTA_RICAN", "CROATIAN", "CUBAN", "CYPRIOT", "CZECH", "DANISH", "DJIBOUTI", "DOMINICAN", "DUTCH", "EAST_TIMORESE", "ECUADOREAN", "EGYPTIAN", "EMIRIAN", "EQUATORIAL_GUINEAN", "ERITREAN", "ESTONIAN", "ETHIOPIAN", "FIJIAN", "FILIPINO", "FINNISH", "FRENCH", "GABONESE", "GAMBIAN", "GEORGIAN", "GERMAN", "GHANAIAN", "GREEK", "GRENADIAN", "GUATEMALAN", "GUINEA_BISSAUAN", "GUINEAN", "GUYANESE", "HAITIAN", "HERZEGOVINIAN", "HONDURAN", "HUNGARIAN", "ICELANDER", "INDIAN", "INDONESIAN", "IRANIAN", "IRAQI", "IRISH", "ISRAELI", "ITALIAN", "IVORIAN", "JAMAICAN", "JAPANESE", "JORDANIAN", "KAZAKHSTANI", "KENYAN", "KITTIAN_AND_NEVISIAN", "KUWAITI", "KYRGYZ", "LAOTIAN", "LATVIAN", "LEBANESE", "LIBERIAN", "LIBYAN", "LIECHTENSTEINER", "LITHUANIAN", "LUXEMBOURGER", "MACEDONIAN", "MALAGASY", "MALAWIAN", "MALAYSIAN", "MALDIVAN", "MALIAN", "MALTESE", "MARSHALLESE", "MAURITANIAN", "MAURITIAN", "MEXICAN", "MICRONESIAN", "MOLDOVAN", "MONACAN", "MONGOLIAN", "MOROCCAN", "MOSOTHO", "MOTSWANA", "MOZAMBICAN", "NAMIBIAN", "NAURUAN", "NEPALESE", "NEW_ZEALANDER", "NI_VANUATU", "NICARAGUAN", "NIGERIEN", "NIGERIAN", "NORTH_KOREAN", "NORTHERN_IRISH", "NORWEGIAN", "OMANI", "PAKISTANI", "PALAUAN", "PANAMANIAN", "PAPUA_NEW_GUINEAN", "PARAGUAYAN", "PERUVIAN", "POLISH", "PORTUGUESE", "QATARI", "ROMANIAN", "RUSSIAN", "RWANDAN", "SAINT_LUCIAN", "SALVADORAN", "SAMOAN", "SAN_MARINESE", "SAO_TOMEAN", "SAUDI", "SCOTTISH", "SENEGALESE", "SERBIAN", "SEYCHELLOIS", "SIERRA_LEONEAN", "SINGAPOREAN", "SLOVAKIAN", "SLOVENIAN", "SOLOMON_ISLANDER", "SOMALI", "SOUTH_AFRICAN", "SOUTH_KOREAN", "SOUTH_SUDANESE", "SPANISH", "SRI_LANKAN", "SUDANESE", "SURINAMER", "SWAZI", "SWEDISH", "SWISS", "SYRIAN", "TAIWANESE", "TAJIK", "TANZANIAN", "THAI", "TOGOLESE", "TONGAN", "TRINIDADIAN_OR_TOBAGONIAN", "TUNISIAN", "TURKISH", "TUVALUAN", "UGANDAN", "UKRAINIAN", "URUGUAYAN", "UZBEKISTANI", "VENEZUELAN", "VIETNAMESE", "WELSH", "YEMENITE", "ZAMBIAN", "ZIMBABWEAN"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-schemas.d.ts","sourceRoot":"","sources":["../../contracts/common/common-schemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"common-schemas.d.ts","sourceRoot":"","sources":["../../contracts/common/common-schemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;GAIG;AACH,eAAO,MAAM,WAAW,2CAKrB,CAAC;AAEJ;;GAEG;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAcM,CAAC;AAE7C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAcM,CAAC;AAE3C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;EAkCM,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;GAEG;AAEH,eAAO,MAAM,eAAe,4BAEM,CAAC;AAEnC,eAAO,MAAM,cAAc,gCAA8B,CAAC;AAE1D,eAAO,MAAM,eAAe;;;;;;;;;EAKM,CAAC;AAEnC,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAA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QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,qBAAqB;;;;;;EAIM,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageResponseSchema = exports.PayRangeSchema = exports.ResourceIdSchema = exports.AutocompleteQuerySchema = exports.LocationFilterSchema = exports.LocationDetailsSchema = exports.CreateLocationSchema = exports.NationalitySchema = exports.EnglishLevelSchema = exports.DateRangeSchema = exports.RateUnitSchema = exports.SortOrderSchema = exports.UpsertPhoneNumberSchema = exports.CreatePhoneNumberSchema = exports.PhoneNumberResponseSchema = exports.PhoneSchema = void 0;
|
|
3
|
+
exports.MessageResponseSchema = exports.PayRangeSchema = exports.ResourceIdSchema = exports.AutocompleteQuerySchema = exports.LocationFilterSchema = exports.LocationDetailsSchema = exports.CreateLocationSchema = exports.NationalitySchema = exports.EnglishLevelSchema = exports.RatingRangeSchema = exports.DateRangeSchema = exports.RateUnitSchema = exports.SortOrderSchema = exports.UpsertPhoneNumberSchema = exports.CreatePhoneNumberSchema = exports.PhoneNumberResponseSchema = exports.PhoneSchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@anatine/zod-openapi");
|
|
5
5
|
const libphonenumber_js_1 = require("libphonenumber-js");
|
|
6
6
|
const zod_1 = require("zod");
|
|
7
|
+
const call_rating_schema_1 = require("./call-rating.schema");
|
|
7
8
|
(0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
|
|
8
9
|
/**
|
|
9
10
|
* International phone number validation using libphonenumber-js.
|
|
@@ -88,6 +89,12 @@ exports.DateRangeSchema = zod_1.z
|
|
|
88
89
|
to: zod_1.z.string().date().nullish().describe('End of the date'),
|
|
89
90
|
})
|
|
90
91
|
.openapi({ title: 'DateRange' });
|
|
92
|
+
exports.RatingRangeSchema = zod_1.z
|
|
93
|
+
.object({
|
|
94
|
+
from: zod_1.z.preprocess((val) => (val !== undefined && val !== null ? Number(val) : undefined), call_rating_schema_1.CallRatingSchema.nullish().describe('Minimum rating (inclusive)')),
|
|
95
|
+
to: zod_1.z.preprocess((val) => (val !== undefined && val !== null ? Number(val) : undefined), call_rating_schema_1.CallRatingSchema.nullish().describe('Maximum rating (inclusive)')),
|
|
96
|
+
})
|
|
97
|
+
.openapi({ title: 'RatingRange' });
|
|
91
98
|
exports.EnglishLevelSchema = zod_1.z
|
|
92
99
|
.enum(['NONE', 'BASIC', 'INTERMEDIATE', 'ADVANCED', 'NATIVE'])
|
|
93
100
|
.openapi({ title: 'EnglishLevel' });
|
|
@@ -6,14 +6,14 @@ export declare const PerformanceMetricsSchema: z.ZodObject<{
|
|
|
6
6
|
status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
9
|
+
conversionRate: number;
|
|
9
10
|
score: number;
|
|
10
11
|
tier: string;
|
|
11
|
-
conversionRate: number;
|
|
12
12
|
}, {
|
|
13
13
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
14
|
+
conversionRate: number;
|
|
14
15
|
score: number;
|
|
15
16
|
tier: string;
|
|
16
|
-
conversionRate: number;
|
|
17
17
|
}>;
|
|
18
18
|
export declare const DashboardMetricsSchema: z.ZodObject<{
|
|
19
19
|
totalJobs: z.ZodNumber;
|
|
@@ -29,14 +29,14 @@ export declare const DashboardMetricsSchema: z.ZodObject<{
|
|
|
29
29
|
status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
32
|
+
conversionRate: number;
|
|
32
33
|
score: number;
|
|
33
34
|
tier: string;
|
|
34
|
-
conversionRate: number;
|
|
35
35
|
}, {
|
|
36
36
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
37
|
+
conversionRate: number;
|
|
37
38
|
score: number;
|
|
38
39
|
tier: string;
|
|
39
|
-
conversionRate: number;
|
|
40
40
|
}>>;
|
|
41
41
|
totalCollaborations: z.ZodNumber;
|
|
42
42
|
collaborationsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
@@ -44,17 +44,17 @@ export declare const DashboardMetricsSchema: z.ZodObject<{
|
|
|
44
44
|
activesToday: z.ZodNumber;
|
|
45
45
|
activesTodayByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
totalJobs: number;
|
|
48
47
|
totalBookings: number;
|
|
48
|
+
totalJobs: number;
|
|
49
49
|
bookingsByStatus: Record<string, number>;
|
|
50
50
|
totalClients: number;
|
|
51
51
|
totalCollaborationCheckings: number;
|
|
52
52
|
collaborationCheckingsByStatus: Record<string, number>;
|
|
53
53
|
performance: {
|
|
54
54
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
55
|
+
conversionRate: number;
|
|
55
56
|
score: number;
|
|
56
57
|
tier: string;
|
|
57
|
-
conversionRate: number;
|
|
58
58
|
} | null;
|
|
59
59
|
totalCollaborations: number;
|
|
60
60
|
collaborationsByStatus: Record<string, number>;
|
|
@@ -62,17 +62,17 @@ export declare const DashboardMetricsSchema: z.ZodObject<{
|
|
|
62
62
|
activesToday: number;
|
|
63
63
|
activesTodayByStatus: Record<string, number>;
|
|
64
64
|
}, {
|
|
65
|
-
totalJobs: number;
|
|
66
65
|
totalBookings: number;
|
|
66
|
+
totalJobs: number;
|
|
67
67
|
bookingsByStatus: Record<string, number>;
|
|
68
68
|
totalClients: number;
|
|
69
69
|
totalCollaborationCheckings: number;
|
|
70
70
|
collaborationCheckingsByStatus: Record<string, number>;
|
|
71
71
|
performance: {
|
|
72
72
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
73
|
+
conversionRate: number;
|
|
73
74
|
score: number;
|
|
74
75
|
tier: string;
|
|
75
|
-
conversionRate: number;
|
|
76
76
|
} | null;
|
|
77
77
|
totalCollaborations: number;
|
|
78
78
|
collaborationsByStatus: Record<string, number>;
|
|
@@ -171,14 +171,14 @@ export declare const dashboardContract: {
|
|
|
171
171
|
status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
|
|
172
172
|
}, "strip", z.ZodTypeAny, {
|
|
173
173
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
174
|
+
conversionRate: number;
|
|
174
175
|
score: number;
|
|
175
176
|
tier: string;
|
|
176
|
-
conversionRate: number;
|
|
177
177
|
}, {
|
|
178
178
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
179
|
+
conversionRate: number;
|
|
179
180
|
score: number;
|
|
180
181
|
tier: string;
|
|
181
|
-
conversionRate: number;
|
|
182
182
|
}>>;
|
|
183
183
|
totalCollaborations: z.ZodNumber;
|
|
184
184
|
collaborationsByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
@@ -186,17 +186,17 @@ export declare const dashboardContract: {
|
|
|
186
186
|
activesToday: z.ZodNumber;
|
|
187
187
|
activesTodayByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
totalJobs: number;
|
|
190
189
|
totalBookings: number;
|
|
190
|
+
totalJobs: number;
|
|
191
191
|
bookingsByStatus: Record<string, number>;
|
|
192
192
|
totalClients: number;
|
|
193
193
|
totalCollaborationCheckings: number;
|
|
194
194
|
collaborationCheckingsByStatus: Record<string, number>;
|
|
195
195
|
performance: {
|
|
196
196
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
197
|
+
conversionRate: number;
|
|
197
198
|
score: number;
|
|
198
199
|
tier: string;
|
|
199
|
-
conversionRate: number;
|
|
200
200
|
} | null;
|
|
201
201
|
totalCollaborations: number;
|
|
202
202
|
collaborationsByStatus: Record<string, number>;
|
|
@@ -204,17 +204,17 @@ export declare const dashboardContract: {
|
|
|
204
204
|
activesToday: number;
|
|
205
205
|
activesTodayByStatus: Record<string, number>;
|
|
206
206
|
}, {
|
|
207
|
-
totalJobs: number;
|
|
208
207
|
totalBookings: number;
|
|
208
|
+
totalJobs: number;
|
|
209
209
|
bookingsByStatus: Record<string, number>;
|
|
210
210
|
totalClients: number;
|
|
211
211
|
totalCollaborationCheckings: number;
|
|
212
212
|
collaborationCheckingsByStatus: Record<string, number>;
|
|
213
213
|
performance: {
|
|
214
214
|
status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
|
|
215
|
+
conversionRate: number;
|
|
215
216
|
score: number;
|
|
216
217
|
tier: string;
|
|
217
|
-
conversionRate: number;
|
|
218
218
|
} | null;
|
|
219
219
|
totalCollaborations: number;
|
|
220
220
|
collaborationsByStatus: Record<string, number>;
|