@dakkitor/api-contracts 1.1.63 → 1.1.65
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.
|
@@ -90,15 +90,15 @@ export declare const authContract: {
|
|
|
90
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
91
|
email: string;
|
|
92
92
|
id: string;
|
|
93
|
-
lastName?: string | undefined;
|
|
94
93
|
firstName?: string | undefined;
|
|
94
|
+
lastName?: string | undefined;
|
|
95
95
|
phone?: string | undefined;
|
|
96
96
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
|
|
97
97
|
}, {
|
|
98
98
|
email: string;
|
|
99
99
|
id: string;
|
|
100
|
-
lastName?: string | undefined;
|
|
101
100
|
firstName?: string | undefined;
|
|
101
|
+
lastName?: string | undefined;
|
|
102
102
|
phone?: string | undefined;
|
|
103
103
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
|
|
104
104
|
}>;
|
|
@@ -226,7 +226,7 @@ export declare const authContract: {
|
|
|
226
226
|
metadata: {
|
|
227
227
|
tags: string[];
|
|
228
228
|
};
|
|
229
|
-
summary: "Log out a user";
|
|
229
|
+
summary: "Log out a user from current session";
|
|
230
230
|
method: "POST";
|
|
231
231
|
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
232
232
|
path: "/v2/auth/logout";
|
|
@@ -315,5 +315,98 @@ export declare const authContract: {
|
|
|
315
315
|
}>;
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
|
+
logoutAll: {
|
|
319
|
+
metadata: {
|
|
320
|
+
tags: string[];
|
|
321
|
+
};
|
|
322
|
+
summary: "Log out a user from all sessions (all devices)";
|
|
323
|
+
method: "POST";
|
|
324
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
325
|
+
path: "/v2/auth/logout-all";
|
|
326
|
+
responses: {
|
|
327
|
+
400: z.ZodObject<{
|
|
328
|
+
statusCode: z.ZodNumber;
|
|
329
|
+
message: z.ZodString;
|
|
330
|
+
code: z.ZodString;
|
|
331
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
332
|
+
timestamp: z.ZodString;
|
|
333
|
+
path: z.ZodString;
|
|
334
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
335
|
+
}, "strip", z.ZodTypeAny, {
|
|
336
|
+
code: string;
|
|
337
|
+
path: string;
|
|
338
|
+
message: string;
|
|
339
|
+
statusCode: number;
|
|
340
|
+
timestamp: string;
|
|
341
|
+
details?: unknown;
|
|
342
|
+
correlationId?: string | undefined;
|
|
343
|
+
}, {
|
|
344
|
+
code: string;
|
|
345
|
+
path: string;
|
|
346
|
+
message: string;
|
|
347
|
+
statusCode: number;
|
|
348
|
+
timestamp: string;
|
|
349
|
+
details?: unknown;
|
|
350
|
+
correlationId?: string | undefined;
|
|
351
|
+
}>;
|
|
352
|
+
500: z.ZodObject<{
|
|
353
|
+
statusCode: z.ZodNumber;
|
|
354
|
+
message: z.ZodString;
|
|
355
|
+
code: z.ZodString;
|
|
356
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
357
|
+
timestamp: z.ZodString;
|
|
358
|
+
path: z.ZodString;
|
|
359
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
|
361
|
+
code: string;
|
|
362
|
+
path: string;
|
|
363
|
+
message: string;
|
|
364
|
+
statusCode: number;
|
|
365
|
+
timestamp: string;
|
|
366
|
+
details?: unknown;
|
|
367
|
+
correlationId?: string | undefined;
|
|
368
|
+
}, {
|
|
369
|
+
code: string;
|
|
370
|
+
path: string;
|
|
371
|
+
message: string;
|
|
372
|
+
statusCode: number;
|
|
373
|
+
timestamp: string;
|
|
374
|
+
details?: unknown;
|
|
375
|
+
correlationId?: string | undefined;
|
|
376
|
+
}>;
|
|
377
|
+
200: z.ZodObject<{
|
|
378
|
+
message: z.ZodString;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
message: string;
|
|
381
|
+
}, {
|
|
382
|
+
message: string;
|
|
383
|
+
}>;
|
|
384
|
+
401: z.ZodObject<{
|
|
385
|
+
statusCode: z.ZodNumber;
|
|
386
|
+
message: z.ZodString;
|
|
387
|
+
code: z.ZodString;
|
|
388
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
389
|
+
timestamp: z.ZodString;
|
|
390
|
+
path: z.ZodString;
|
|
391
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
392
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
|
+
code: string;
|
|
394
|
+
path: string;
|
|
395
|
+
message: string;
|
|
396
|
+
statusCode: number;
|
|
397
|
+
timestamp: string;
|
|
398
|
+
details?: unknown;
|
|
399
|
+
correlationId?: string | undefined;
|
|
400
|
+
}, {
|
|
401
|
+
code: string;
|
|
402
|
+
path: string;
|
|
403
|
+
message: string;
|
|
404
|
+
statusCode: number;
|
|
405
|
+
timestamp: string;
|
|
406
|
+
details?: unknown;
|
|
407
|
+
correlationId?: string | undefined;
|
|
408
|
+
}>;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
318
411
|
};
|
|
319
412
|
//# sourceMappingURL=auth.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.contract.d.ts","sourceRoot":"","sources":["../../contracts/auth/auth.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,WAAW;;;;;;;;;EAKM,CAAC;AAE/B,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"auth.contract.d.ts","sourceRoot":"","sources":["../../contracts/auth/auth.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,WAAW;;;;;;;;;EAKM,CAAC;AAE/B,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DxB,CAAC"}
|
|
@@ -49,7 +49,20 @@ exports.authContract = c.router({
|
|
|
49
49
|
200: common_schemas_1.MessageResponseSchema,
|
|
50
50
|
401: error_schemas_1.ErrorResponseSchema,
|
|
51
51
|
},
|
|
52
|
-
summary: 'Log out a user',
|
|
52
|
+
summary: 'Log out a user from current session',
|
|
53
|
+
metadata: {
|
|
54
|
+
tags: ['Authentication'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
logoutAll: {
|
|
58
|
+
method: 'POST',
|
|
59
|
+
path: '/auth/logout-all',
|
|
60
|
+
body: zod_1.z.object({}),
|
|
61
|
+
responses: {
|
|
62
|
+
200: common_schemas_1.MessageResponseSchema,
|
|
63
|
+
401: error_schemas_1.ErrorResponseSchema,
|
|
64
|
+
},
|
|
65
|
+
summary: 'Log out a user from all sessions (all devices)',
|
|
53
66
|
metadata: {
|
|
54
67
|
tags: ['Authentication'],
|
|
55
68
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workers.contract.d.ts","sourceRoot":"","sources":["../../contracts/workers/workers.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,kBAAkB,gEAI7B,CAAC;AAIH,eAAO,MAAM,0BAA0B,yEAEM,CAAC;AAE9C,eAAO,MAAM,mBAAmB,+DAGM,CAAC;AAIvC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAOM,CAAC;AAE3C,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAMM,CAAC;AAEjD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;EAoBM,CAAC;AAEjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAMM,CAAC;AAErC,eAAO,MAAM,uBAAuB;;;;;;;;;EAKM,CAAC;AAE3C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;EAyBM,CAAC;AAE7C,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;EAYM,CAAC;AAEnD,eAAO,MAAM,eAAe;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"workers.contract.d.ts","sourceRoot":"","sources":["../../contracts/workers/workers.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,kBAAkB,gEAI7B,CAAC;AAIH,eAAO,MAAM,0BAA0B,yEAEM,CAAC;AAE9C,eAAO,MAAM,mBAAmB,+DAGM,CAAC;AAIvC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAOM,CAAC;AAE3C,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAMM,CAAC;AAEjD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;EAoBM,CAAC;AAEjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFjC,CAAC"}
|
|
@@ -106,14 +106,19 @@ exports.ShareCodeSchema = zod_1.z
|
|
|
106
106
|
.transform((val) => val.toUpperCase().replace(/\s/g, ''))
|
|
107
107
|
.refine((val) => val === '' || /^[A-Z0-9]{9}$/.test(val), {
|
|
108
108
|
message: 'Share code must be 9 alphanumeric characters (e.g., ABC 123 XYZ)',
|
|
109
|
-
})
|
|
109
|
+
})
|
|
110
|
+
.describe('Enter share code (e.g., ABC 123 XYZ)'),
|
|
110
111
|
expiryDate: zod_1.z
|
|
111
112
|
.union([zod_1.z.string().date(), zod_1.z.date()])
|
|
112
113
|
.transform((val) => val instanceof Date ? val.toISOString().split('T')[0] : val)
|
|
113
114
|
.optional()
|
|
114
|
-
.nullable()
|
|
115
|
+
.nullable()
|
|
116
|
+
.describe('Enter expiry date for the share code'),
|
|
115
117
|
})
|
|
116
|
-
.openapi({
|
|
118
|
+
.openapi({
|
|
119
|
+
title: 'ShareCode',
|
|
120
|
+
description: 'Share code information for right to work verification',
|
|
121
|
+
});
|
|
117
122
|
exports.TradeFilterSchema = zod_1.z
|
|
118
123
|
.object({
|
|
119
124
|
tradeId: zod_1.z.string().uuid(),
|