@dakkitor/api-contracts 1.1.33 → 1.1.35

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.
@@ -9,14 +9,14 @@ export declare const CompanySchema: z.ZodObject<{
9
9
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  id: string;
12
+ name: string;
12
13
  createdAt: string;
13
14
  updatedAt: string;
14
- name: string;
15
15
  }, {
16
16
  id: string;
17
+ name: string;
17
18
  createdAt: string | Date;
18
19
  updatedAt: string | Date;
19
- name: string;
20
20
  }>;
21
21
  export declare const CreateCompanySchema: z.ZodObject<{
22
22
  name: z.ZodString;
@@ -43,13 +43,13 @@ export declare const FilterCompanySchema: z.ZodObject<{
43
43
  limit: number;
44
44
  page: number;
45
45
  name?: string | null | undefined;
46
- sortBy?: "createdAt" | "updatedAt" | "name" | null | undefined;
46
+ sortBy?: "name" | "createdAt" | "updatedAt" | null | undefined;
47
47
  sortOrder?: "ASC" | "DESC" | null | undefined;
48
48
  }, {
49
+ name?: string | null | undefined;
49
50
  limit?: number | undefined;
50
51
  page?: number | undefined;
51
- name?: string | null | undefined;
52
- sortBy?: "createdAt" | "updatedAt" | "name" | null | undefined;
52
+ sortBy?: "name" | "createdAt" | "updatedAt" | null | undefined;
53
53
  sortOrder?: "ASC" | "DESC" | null | undefined;
54
54
  }>;
55
55
  export declare const CompanyAutocompleteResponseSchema: z.ZodObject<{
@@ -80,14 +80,14 @@ export declare const CompaniesPaginatedResponseSchema: z.ZodObject<{
80
80
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
81
81
  }, "strip", z.ZodTypeAny, {
82
82
  id: string;
83
+ name: string;
83
84
  createdAt: string;
84
85
  updatedAt: string;
85
- name: string;
86
86
  }, {
87
87
  id: string;
88
+ name: string;
88
89
  createdAt: string | Date;
89
90
  updatedAt: string | Date;
90
- name: string;
91
91
  }>, "many">;
92
92
  totalCount: z.ZodNumber;
93
93
  limit: z.ZodNumber;
@@ -98,9 +98,9 @@ export declare const CompaniesPaginatedResponseSchema: z.ZodObject<{
98
98
  limit: number;
99
99
  items: {
100
100
  id: string;
101
+ name: string;
101
102
  createdAt: string;
102
103
  updatedAt: string;
103
- name: string;
104
104
  }[];
105
105
  totalCount: number;
106
106
  skip: number;
@@ -110,9 +110,9 @@ export declare const CompaniesPaginatedResponseSchema: z.ZodObject<{
110
110
  limit: number;
111
111
  items: {
112
112
  id: string;
113
+ name: string;
113
114
  createdAt: string | Date;
114
115
  updatedAt: string | Date;
115
- name: string;
116
116
  }[];
117
117
  totalCount: number;
118
118
  skip: number;
@@ -253,14 +253,14 @@ export declare const companiesContractRouter: {
253
253
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
254
254
  }, "strip", z.ZodTypeAny, {
255
255
  id: string;
256
+ name: string;
256
257
  createdAt: string;
257
258
  updatedAt: string;
258
- name: string;
259
259
  }, {
260
260
  id: string;
261
+ name: string;
261
262
  createdAt: string | Date;
262
263
  updatedAt: string | Date;
263
- name: string;
264
264
  }>;
265
265
  409: z.ZodObject<{
266
266
  statusCode: z.ZodNumber;
@@ -290,6 +290,12 @@ export declare const companiesContractRouter: {
290
290
  };
291
291
  };
292
292
  findAll: {
293
+ metadata: {
294
+ tags: string[];
295
+ openApi: {
296
+ operationId: string;
297
+ };
298
+ };
293
299
  query: z.ZodObject<{
294
300
  limit: z.ZodDefault<z.ZodNumber>;
295
301
  page: z.ZodDefault<z.ZodNumber>;
@@ -301,21 +307,15 @@ export declare const companiesContractRouter: {
301
307
  limit: number;
302
308
  page: number;
303
309
  name?: string | null | undefined;
304
- sortBy?: "createdAt" | "updatedAt" | "name" | null | undefined;
310
+ sortBy?: "name" | "createdAt" | "updatedAt" | null | undefined;
305
311
  sortOrder?: "ASC" | "DESC" | null | undefined;
306
312
  }, {
313
+ name?: string | null | undefined;
307
314
  limit?: number | undefined;
308
315
  page?: number | undefined;
309
- name?: string | null | undefined;
310
- sortBy?: "createdAt" | "updatedAt" | "name" | null | undefined;
316
+ sortBy?: "name" | "createdAt" | "updatedAt" | null | undefined;
311
317
  sortOrder?: "ASC" | "DESC" | null | undefined;
312
318
  }>;
313
- metadata: {
314
- tags: string[];
315
- openApi: {
316
- operationId: string;
317
- };
318
- };
319
319
  summary: "Get all companies";
320
320
  method: "GET";
321
321
  path: "/v2/companies";
@@ -428,14 +428,14 @@ export declare const companiesContractRouter: {
428
428
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
429
429
  }, "strip", z.ZodTypeAny, {
430
430
  id: string;
431
+ name: string;
431
432
  createdAt: string;
432
433
  updatedAt: string;
433
- name: string;
434
434
  }, {
435
435
  id: string;
436
+ name: string;
436
437
  createdAt: string | Date;
437
438
  updatedAt: string | Date;
438
- name: string;
439
439
  }>, "many">;
440
440
  totalCount: z.ZodNumber;
441
441
  limit: z.ZodNumber;
@@ -446,9 +446,9 @@ export declare const companiesContractRouter: {
446
446
  limit: number;
447
447
  items: {
448
448
  id: string;
449
+ name: string;
449
450
  createdAt: string;
450
451
  updatedAt: string;
451
- name: string;
452
452
  }[];
453
453
  totalCount: number;
454
454
  skip: number;
@@ -458,9 +458,9 @@ export declare const companiesContractRouter: {
458
458
  limit: number;
459
459
  items: {
460
460
  id: string;
461
+ name: string;
461
462
  createdAt: string | Date;
462
463
  updatedAt: string | Date;
463
- name: string;
464
464
  }[];
465
465
  totalCount: number;
466
466
  skip: number;
@@ -470,22 +470,22 @@ export declare const companiesContractRouter: {
470
470
  };
471
471
  };
472
472
  autocomplete: {
473
+ metadata: {
474
+ tags: string[];
475
+ openApi: {
476
+ operationId: string;
477
+ };
478
+ };
473
479
  query: z.ZodObject<{
474
480
  query: z.ZodOptional<z.ZodString>;
475
481
  id: z.ZodOptional<z.ZodString>;
476
482
  }, "strip", z.ZodTypeAny, {
477
- query?: string | undefined;
478
483
  id?: string | undefined;
479
- }, {
480
484
  query?: string | undefined;
485
+ }, {
481
486
  id?: string | undefined;
487
+ query?: string | undefined;
482
488
  }>;
483
- metadata: {
484
- tags: string[];
485
- openApi: {
486
- operationId: string;
487
- };
488
- };
489
489
  summary: "Get companies for autocomplete";
490
490
  method: "GET";
491
491
  path: "/v2/companies/autocomplete";
@@ -727,14 +727,14 @@ export declare const companiesContractRouter: {
727
727
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
728
728
  }, "strip", z.ZodTypeAny, {
729
729
  id: string;
730
+ name: string;
730
731
  createdAt: string;
731
732
  updatedAt: string;
732
- name: string;
733
733
  }, {
734
734
  id: string;
735
+ name: string;
735
736
  createdAt: string | Date;
736
737
  updatedAt: string | Date;
737
- name: string;
738
738
  }>;
739
739
  404: z.ZodObject<{
740
740
  statusCode: z.ZodNumber;
@@ -895,14 +895,14 @@ export declare const companiesContractRouter: {
895
895
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
896
896
  }, "strip", z.ZodTypeAny, {
897
897
  id: string;
898
+ name: string;
898
899
  createdAt: string;
899
900
  updatedAt: string;
900
- name: string;
901
901
  }, {
902
902
  id: string;
903
+ name: string;
903
904
  createdAt: string | Date;
904
905
  updatedAt: string | Date;
905
- name: string;
906
906
  }>;
907
907
  404: z.ZodObject<{
908
908
  statusCode: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"companies.contract.d.ts","sourceRoot":"","sources":["../../contracts/companies/companies.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,uBAAuB,EAExB,MAAM,0BAA0B,CAAC;AAOlC,QAAA,MAAM,2BAA2B,+CAEa,CAAC;AAE/C,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CA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= zod_1.z
13
13
  .enum(['name', 'createdAt', 'updatedAt'])
14
14
  .openapi({ title: 'CompanySortableFields' });
15
- exports.CompanySchema = zod_1.z
16
- .object({
15
+ exports.CompanySchema = zod_1.z.object({
17
16
  id: zod_1.z.string().uuid().describe('Company ID'),
18
17
  name: zod_1.z.string().describe('Company Name'),
19
18
  createdAt: zod_1.z
@@ -24,8 +23,7 @@ exports.CompanySchema = zod_1.z
24
23
  .union([zod_1.z.string().datetime(), zod_1.z.date()])
25
24
  .transform((val) => (val instanceof Date ? val.toISOString() : val))
26
25
  .describe('Last Update Date'),
27
- })
28
- .openapi({ title: 'Company' });
26
+ });
29
27
  exports.CreateCompanySchema = zod_1.z
30
28
  .object({
31
29
  name: zod_1.z.string().max(255).describe('Company Name'),