@deepintel-ltd/farmpro-contracts 1.7.19 → 1.7.21
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/index.d.ts +18 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -0
- package/dist/routes/agents.routes.d.ts +6 -6
- package/dist/routes/commodity-deals.routes.d.ts +2702 -0
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -0
- package/dist/routes/commodity-deals.routes.js +83 -0
- package/dist/routes/cooperative.routes.d.ts +1327 -0
- package/dist/routes/cooperative.routes.d.ts.map +1 -0
- package/dist/routes/cooperative.routes.js +47 -0
- package/dist/routes/extension.routes.d.ts +2431 -0
- package/dist/routes/extension.routes.d.ts.map +1 -0
- package/dist/routes/extension.routes.js +75 -0
- package/dist/routes/farms.routes.d.ts +775 -0
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/farms.routes.js +15 -1
- package/dist/routes/field-monitoring.routes.d.ts +505 -0
- package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
- package/dist/routes/field-monitoring.routes.js +23 -1
- package/dist/routes/fields.routes.d.ts +156 -155
- package/dist/routes/fields.routes.d.ts.map +1 -1
- package/dist/routes/index.d.ts +18 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +12 -0
- package/dist/routes/invoices.routes.d.ts +49 -0
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/live-monitor.routes.d.ts +513 -0
- package/dist/routes/live-monitor.routes.d.ts.map +1 -0
- package/dist/routes/live-monitor.routes.js +81 -0
- package/dist/routes/livestock-map.routes.d.ts +4 -4
- package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
- package/dist/routes/notifications.routes.d.ts +1350 -0
- package/dist/routes/notifications.routes.d.ts.map +1 -0
- package/dist/routes/notifications.routes.js +66 -0
- package/dist/routes/organizations.routes.d.ts +49 -0
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/team-payments.routes.d.ts +9571 -0
- package/dist/routes/team-payments.routes.d.ts.map +1 -0
- package/dist/routes/team-payments.routes.js +262 -0
- package/dist/routes/waybills.routes.d.ts +42 -0
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.d.ts +1 -0
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.d.ts +1109 -0
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -0
- package/dist/schemas/commodity-deals.schemas.js +82 -0
- package/dist/schemas/cooperative.schemas.d.ts +560 -0
- package/dist/schemas/cooperative.schemas.d.ts.map +1 -0
- package/dist/schemas/cooperative.schemas.js +71 -0
- package/dist/schemas/extension.schemas.d.ts +1204 -0
- package/dist/schemas/extension.schemas.d.ts.map +1 -0
- package/dist/schemas/extension.schemas.js +68 -0
- package/dist/schemas/farms.schemas.d.ts +591 -0
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +44 -0
- package/dist/schemas/field-monitoring.schemas.d.ts +276 -0
- package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
- package/dist/schemas/field-monitoring.schemas.js +9 -0
- package/dist/schemas/field-observations.schemas.d.ts +1 -0
- package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.d.ts +188 -186
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +10 -2
- package/dist/schemas/invoices.schemas.d.ts +38 -0
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +2 -0
- package/dist/schemas/live-monitor.schemas.d.ts +596 -0
- package/dist/schemas/live-monitor.schemas.d.ts.map +1 -0
- package/dist/schemas/live-monitor.schemas.js +107 -0
- package/dist/schemas/livestock-map.schemas.d.ts +10 -10
- package/dist/schemas/monitoring-visualization.schemas.d.ts +4 -4
- package/dist/schemas/notifications.schemas.d.ts +464 -0
- package/dist/schemas/notifications.schemas.d.ts.map +1 -0
- package/dist/schemas/notifications.schemas.js +40 -0
- package/dist/schemas/organizations.schemas.d.ts +38 -0
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +2 -0
- package/dist/schemas/team-payments.schemas.d.ts +2604 -0
- package/dist/schemas/team-payments.schemas.d.ts.map +1 -0
- package/dist/schemas/team-payments.schemas.js +151 -0
- package/dist/schemas/waybills.schemas.d.ts +48 -0
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.routes.d.ts","sourceRoot":"","sources":["../../src/routes/notifications.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkE9B,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { notificationListResponseSchema, notificationResponseSchema, notificationTypeSchema, unreadCountResponseSchema, } from '../schemas/notifications.schemas';
|
|
4
|
+
import { jsonApiErrorResponseSchema, jsonApiSuccessResponseSchema, jsonApiPaginationQuerySchema, jsonApiSortQuerySchema, } from '../schemas/common.schemas';
|
|
5
|
+
const c = initContract();
|
|
6
|
+
export const notificationsRouter = c.router({
|
|
7
|
+
listFarmNotifications: {
|
|
8
|
+
method: 'GET',
|
|
9
|
+
path: '/farms/:farmId/notifications',
|
|
10
|
+
pathParams: z.object({ farmId: z.string().uuid() }),
|
|
11
|
+
query: jsonApiPaginationQuerySchema
|
|
12
|
+
.merge(jsonApiSortQuerySchema)
|
|
13
|
+
.merge(z.object({
|
|
14
|
+
'filter[type]': notificationTypeSchema.optional(),
|
|
15
|
+
})),
|
|
16
|
+
responses: {
|
|
17
|
+
200: notificationListResponseSchema,
|
|
18
|
+
401: jsonApiErrorResponseSchema,
|
|
19
|
+
403: jsonApiErrorResponseSchema,
|
|
20
|
+
404: jsonApiErrorResponseSchema,
|
|
21
|
+
},
|
|
22
|
+
summary: 'List farm notifications',
|
|
23
|
+
description: 'Paginated notification feed for a farm, including stored notifications plus aggregated field alerts and pending payment approvals',
|
|
24
|
+
},
|
|
25
|
+
markNotificationRead: {
|
|
26
|
+
method: 'PATCH',
|
|
27
|
+
path: '/farms/:farmId/notifications/:id/read',
|
|
28
|
+
pathParams: z.object({
|
|
29
|
+
farmId: z.string().uuid(),
|
|
30
|
+
id: z.string().min(1),
|
|
31
|
+
}),
|
|
32
|
+
body: z.object({}).optional(),
|
|
33
|
+
responses: {
|
|
34
|
+
200: notificationResponseSchema,
|
|
35
|
+
401: jsonApiErrorResponseSchema,
|
|
36
|
+
403: jsonApiErrorResponseSchema,
|
|
37
|
+
404: jsonApiErrorResponseSchema,
|
|
38
|
+
},
|
|
39
|
+
summary: 'Mark notification as read',
|
|
40
|
+
description: 'Mark a stored notification or aggregated item (field_alert:{id}, vendor_payment:{id}) as read',
|
|
41
|
+
},
|
|
42
|
+
markAllNotificationsRead: {
|
|
43
|
+
method: 'POST',
|
|
44
|
+
path: '/farms/:farmId/notifications/mark-all-read',
|
|
45
|
+
pathParams: z.object({ farmId: z.string().uuid() }),
|
|
46
|
+
body: z.object({}).optional(),
|
|
47
|
+
responses: {
|
|
48
|
+
200: jsonApiSuccessResponseSchema,
|
|
49
|
+
401: jsonApiErrorResponseSchema,
|
|
50
|
+
403: jsonApiErrorResponseSchema,
|
|
51
|
+
404: jsonApiErrorResponseSchema,
|
|
52
|
+
},
|
|
53
|
+
summary: 'Mark all farm notifications as read',
|
|
54
|
+
description: 'Mark all unread notifications for the current user on a farm as read',
|
|
55
|
+
},
|
|
56
|
+
getUnreadCount: {
|
|
57
|
+
method: 'GET',
|
|
58
|
+
path: '/user/notifications/unread-count',
|
|
59
|
+
responses: {
|
|
60
|
+
200: unreadCountResponseSchema,
|
|
61
|
+
401: jsonApiErrorResponseSchema,
|
|
62
|
+
},
|
|
63
|
+
summary: 'Get unread notification count',
|
|
64
|
+
description: 'Total unread notifications across all farms the user can access, including aggregated sources',
|
|
65
|
+
},
|
|
66
|
+
});
|
|
@@ -30,6 +30,7 @@ export declare const organizationsRouter: {
|
|
|
30
30
|
phone: z.ZodNullable<z.ZodString>;
|
|
31
31
|
address: z.ZodNullable<z.ZodString>;
|
|
32
32
|
logo: z.ZodNullable<z.ZodString>;
|
|
33
|
+
commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
|
|
33
34
|
} & {
|
|
34
35
|
createdAt: z.ZodString;
|
|
35
36
|
updatedAt: z.ZodString;
|
|
@@ -41,6 +42,7 @@ export declare const organizationsRouter: {
|
|
|
41
42
|
phone: string | null;
|
|
42
43
|
address: string | null;
|
|
43
44
|
logo: string | null;
|
|
45
|
+
commodityCommissionRate: number | null;
|
|
44
46
|
}, {
|
|
45
47
|
email: string | null;
|
|
46
48
|
createdAt: string;
|
|
@@ -49,6 +51,7 @@ export declare const organizationsRouter: {
|
|
|
49
51
|
phone: string | null;
|
|
50
52
|
address: string | null;
|
|
51
53
|
logo: string | null;
|
|
54
|
+
commodityCommissionRate: number | null;
|
|
52
55
|
}>;
|
|
53
56
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
54
57
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -64,6 +67,7 @@ export declare const organizationsRouter: {
|
|
|
64
67
|
phone: string | null;
|
|
65
68
|
address: string | null;
|
|
66
69
|
logo: string | null;
|
|
70
|
+
commodityCommissionRate: number | null;
|
|
67
71
|
};
|
|
68
72
|
relationships?: Record<string, unknown> | undefined;
|
|
69
73
|
links?: Record<string, string> | undefined;
|
|
@@ -79,6 +83,7 @@ export declare const organizationsRouter: {
|
|
|
79
83
|
phone: string | null;
|
|
80
84
|
address: string | null;
|
|
81
85
|
logo: string | null;
|
|
86
|
+
commodityCommissionRate: number | null;
|
|
82
87
|
};
|
|
83
88
|
relationships?: Record<string, unknown> | undefined;
|
|
84
89
|
links?: Record<string, string> | undefined;
|
|
@@ -120,6 +125,7 @@ export declare const organizationsRouter: {
|
|
|
120
125
|
phone: string | null;
|
|
121
126
|
address: string | null;
|
|
122
127
|
logo: string | null;
|
|
128
|
+
commodityCommissionRate: number | null;
|
|
123
129
|
};
|
|
124
130
|
relationships?: Record<string, unknown> | undefined;
|
|
125
131
|
links?: Record<string, string> | undefined;
|
|
@@ -147,6 +153,7 @@ export declare const organizationsRouter: {
|
|
|
147
153
|
phone: string | null;
|
|
148
154
|
address: string | null;
|
|
149
155
|
logo: string | null;
|
|
156
|
+
commodityCommissionRate: number | null;
|
|
150
157
|
};
|
|
151
158
|
relationships?: Record<string, unknown> | undefined;
|
|
152
159
|
links?: Record<string, string> | undefined;
|
|
@@ -268,18 +275,21 @@ export declare const organizationsRouter: {
|
|
|
268
275
|
phone: z.ZodOptional<z.ZodString>;
|
|
269
276
|
address: z.ZodOptional<z.ZodString>;
|
|
270
277
|
logo: z.ZodOptional<z.ZodString>;
|
|
278
|
+
commodityCommissionRate: z.ZodOptional<z.ZodNumber>;
|
|
271
279
|
}, "strip", z.ZodTypeAny, {
|
|
272
280
|
name: string;
|
|
273
281
|
email?: string | undefined;
|
|
274
282
|
phone?: string | undefined;
|
|
275
283
|
address?: string | undefined;
|
|
276
284
|
logo?: string | undefined;
|
|
285
|
+
commodityCommissionRate?: number | undefined;
|
|
277
286
|
}, {
|
|
278
287
|
name: string;
|
|
279
288
|
email?: string | undefined;
|
|
280
289
|
phone?: string | undefined;
|
|
281
290
|
address?: string | undefined;
|
|
282
291
|
logo?: string | undefined;
|
|
292
|
+
commodityCommissionRate?: number | undefined;
|
|
283
293
|
}>;
|
|
284
294
|
}, "strip", z.ZodTypeAny, {
|
|
285
295
|
type: "organizations";
|
|
@@ -289,6 +299,7 @@ export declare const organizationsRouter: {
|
|
|
289
299
|
phone?: string | undefined;
|
|
290
300
|
address?: string | undefined;
|
|
291
301
|
logo?: string | undefined;
|
|
302
|
+
commodityCommissionRate?: number | undefined;
|
|
292
303
|
};
|
|
293
304
|
}, {
|
|
294
305
|
type: "organizations";
|
|
@@ -298,6 +309,7 @@ export declare const organizationsRouter: {
|
|
|
298
309
|
phone?: string | undefined;
|
|
299
310
|
address?: string | undefined;
|
|
300
311
|
logo?: string | undefined;
|
|
312
|
+
commodityCommissionRate?: number | undefined;
|
|
301
313
|
};
|
|
302
314
|
}>;
|
|
303
315
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -309,6 +321,7 @@ export declare const organizationsRouter: {
|
|
|
309
321
|
phone?: string | undefined;
|
|
310
322
|
address?: string | undefined;
|
|
311
323
|
logo?: string | undefined;
|
|
324
|
+
commodityCommissionRate?: number | undefined;
|
|
312
325
|
};
|
|
313
326
|
};
|
|
314
327
|
}, {
|
|
@@ -320,6 +333,7 @@ export declare const organizationsRouter: {
|
|
|
320
333
|
phone?: string | undefined;
|
|
321
334
|
address?: string | undefined;
|
|
322
335
|
logo?: string | undefined;
|
|
336
|
+
commodityCommissionRate?: number | undefined;
|
|
323
337
|
};
|
|
324
338
|
};
|
|
325
339
|
}>;
|
|
@@ -335,6 +349,7 @@ export declare const organizationsRouter: {
|
|
|
335
349
|
phone: z.ZodNullable<z.ZodString>;
|
|
336
350
|
address: z.ZodNullable<z.ZodString>;
|
|
337
351
|
logo: z.ZodNullable<z.ZodString>;
|
|
352
|
+
commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
|
|
338
353
|
} & {
|
|
339
354
|
createdAt: z.ZodString;
|
|
340
355
|
updatedAt: z.ZodString;
|
|
@@ -346,6 +361,7 @@ export declare const organizationsRouter: {
|
|
|
346
361
|
phone: string | null;
|
|
347
362
|
address: string | null;
|
|
348
363
|
logo: string | null;
|
|
364
|
+
commodityCommissionRate: number | null;
|
|
349
365
|
}, {
|
|
350
366
|
email: string | null;
|
|
351
367
|
createdAt: string;
|
|
@@ -354,6 +370,7 @@ export declare const organizationsRouter: {
|
|
|
354
370
|
phone: string | null;
|
|
355
371
|
address: string | null;
|
|
356
372
|
logo: string | null;
|
|
373
|
+
commodityCommissionRate: number | null;
|
|
357
374
|
}>;
|
|
358
375
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
359
376
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -369,6 +386,7 @@ export declare const organizationsRouter: {
|
|
|
369
386
|
phone: string | null;
|
|
370
387
|
address: string | null;
|
|
371
388
|
logo: string | null;
|
|
389
|
+
commodityCommissionRate: number | null;
|
|
372
390
|
};
|
|
373
391
|
relationships?: Record<string, unknown> | undefined;
|
|
374
392
|
links?: Record<string, string> | undefined;
|
|
@@ -384,6 +402,7 @@ export declare const organizationsRouter: {
|
|
|
384
402
|
phone: string | null;
|
|
385
403
|
address: string | null;
|
|
386
404
|
logo: string | null;
|
|
405
|
+
commodityCommissionRate: number | null;
|
|
387
406
|
};
|
|
388
407
|
relationships?: Record<string, unknown> | undefined;
|
|
389
408
|
links?: Record<string, string> | undefined;
|
|
@@ -425,6 +444,7 @@ export declare const organizationsRouter: {
|
|
|
425
444
|
phone: string | null;
|
|
426
445
|
address: string | null;
|
|
427
446
|
logo: string | null;
|
|
447
|
+
commodityCommissionRate: number | null;
|
|
428
448
|
};
|
|
429
449
|
relationships?: Record<string, unknown> | undefined;
|
|
430
450
|
links?: Record<string, string> | undefined;
|
|
@@ -452,6 +472,7 @@ export declare const organizationsRouter: {
|
|
|
452
472
|
phone: string | null;
|
|
453
473
|
address: string | null;
|
|
454
474
|
logo: string | null;
|
|
475
|
+
commodityCommissionRate: number | null;
|
|
455
476
|
};
|
|
456
477
|
relationships?: Record<string, unknown> | undefined;
|
|
457
478
|
links?: Record<string, string> | undefined;
|
|
@@ -763,6 +784,7 @@ export declare const organizationsRouter: {
|
|
|
763
784
|
phone: z.ZodNullable<z.ZodString>;
|
|
764
785
|
address: z.ZodNullable<z.ZodString>;
|
|
765
786
|
logo: z.ZodNullable<z.ZodString>;
|
|
787
|
+
commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
|
|
766
788
|
} & {
|
|
767
789
|
createdAt: z.ZodString;
|
|
768
790
|
updatedAt: z.ZodString;
|
|
@@ -774,6 +796,7 @@ export declare const organizationsRouter: {
|
|
|
774
796
|
phone: string | null;
|
|
775
797
|
address: string | null;
|
|
776
798
|
logo: string | null;
|
|
799
|
+
commodityCommissionRate: number | null;
|
|
777
800
|
}, {
|
|
778
801
|
email: string | null;
|
|
779
802
|
createdAt: string;
|
|
@@ -782,6 +805,7 @@ export declare const organizationsRouter: {
|
|
|
782
805
|
phone: string | null;
|
|
783
806
|
address: string | null;
|
|
784
807
|
logo: string | null;
|
|
808
|
+
commodityCommissionRate: number | null;
|
|
785
809
|
}>;
|
|
786
810
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
787
811
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -797,6 +821,7 @@ export declare const organizationsRouter: {
|
|
|
797
821
|
phone: string | null;
|
|
798
822
|
address: string | null;
|
|
799
823
|
logo: string | null;
|
|
824
|
+
commodityCommissionRate: number | null;
|
|
800
825
|
};
|
|
801
826
|
relationships?: Record<string, unknown> | undefined;
|
|
802
827
|
links?: Record<string, string> | undefined;
|
|
@@ -812,6 +837,7 @@ export declare const organizationsRouter: {
|
|
|
812
837
|
phone: string | null;
|
|
813
838
|
address: string | null;
|
|
814
839
|
logo: string | null;
|
|
840
|
+
commodityCommissionRate: number | null;
|
|
815
841
|
};
|
|
816
842
|
relationships?: Record<string, unknown> | undefined;
|
|
817
843
|
links?: Record<string, string> | undefined;
|
|
@@ -853,6 +879,7 @@ export declare const organizationsRouter: {
|
|
|
853
879
|
phone: string | null;
|
|
854
880
|
address: string | null;
|
|
855
881
|
logo: string | null;
|
|
882
|
+
commodityCommissionRate: number | null;
|
|
856
883
|
};
|
|
857
884
|
relationships?: Record<string, unknown> | undefined;
|
|
858
885
|
links?: Record<string, string> | undefined;
|
|
@@ -880,6 +907,7 @@ export declare const organizationsRouter: {
|
|
|
880
907
|
phone: string | null;
|
|
881
908
|
address: string | null;
|
|
882
909
|
logo: string | null;
|
|
910
|
+
commodityCommissionRate: number | null;
|
|
883
911
|
};
|
|
884
912
|
relationships?: Record<string, unknown> | undefined;
|
|
885
913
|
links?: Record<string, string> | undefined;
|
|
@@ -1099,18 +1127,21 @@ export declare const organizationsRouter: {
|
|
|
1099
1127
|
phone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1100
1128
|
address: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1101
1129
|
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1130
|
+
commodityCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1102
1131
|
}, "strip", z.ZodTypeAny, {
|
|
1103
1132
|
email?: string | undefined;
|
|
1104
1133
|
name?: string | undefined;
|
|
1105
1134
|
phone?: string | undefined;
|
|
1106
1135
|
address?: string | undefined;
|
|
1107
1136
|
logo?: string | undefined;
|
|
1137
|
+
commodityCommissionRate?: number | undefined;
|
|
1108
1138
|
}, {
|
|
1109
1139
|
email?: string | undefined;
|
|
1110
1140
|
name?: string | undefined;
|
|
1111
1141
|
phone?: string | undefined;
|
|
1112
1142
|
address?: string | undefined;
|
|
1113
1143
|
logo?: string | undefined;
|
|
1144
|
+
commodityCommissionRate?: number | undefined;
|
|
1114
1145
|
}>;
|
|
1115
1146
|
}, "strip", z.ZodTypeAny, {
|
|
1116
1147
|
type: "organizations";
|
|
@@ -1120,6 +1151,7 @@ export declare const organizationsRouter: {
|
|
|
1120
1151
|
phone?: string | undefined;
|
|
1121
1152
|
address?: string | undefined;
|
|
1122
1153
|
logo?: string | undefined;
|
|
1154
|
+
commodityCommissionRate?: number | undefined;
|
|
1123
1155
|
};
|
|
1124
1156
|
id?: string | undefined;
|
|
1125
1157
|
}, {
|
|
@@ -1130,6 +1162,7 @@ export declare const organizationsRouter: {
|
|
|
1130
1162
|
phone?: string | undefined;
|
|
1131
1163
|
address?: string | undefined;
|
|
1132
1164
|
logo?: string | undefined;
|
|
1165
|
+
commodityCommissionRate?: number | undefined;
|
|
1133
1166
|
};
|
|
1134
1167
|
id?: string | undefined;
|
|
1135
1168
|
}>;
|
|
@@ -1142,6 +1175,7 @@ export declare const organizationsRouter: {
|
|
|
1142
1175
|
phone?: string | undefined;
|
|
1143
1176
|
address?: string | undefined;
|
|
1144
1177
|
logo?: string | undefined;
|
|
1178
|
+
commodityCommissionRate?: number | undefined;
|
|
1145
1179
|
};
|
|
1146
1180
|
id?: string | undefined;
|
|
1147
1181
|
};
|
|
@@ -1154,6 +1188,7 @@ export declare const organizationsRouter: {
|
|
|
1154
1188
|
phone?: string | undefined;
|
|
1155
1189
|
address?: string | undefined;
|
|
1156
1190
|
logo?: string | undefined;
|
|
1191
|
+
commodityCommissionRate?: number | undefined;
|
|
1157
1192
|
};
|
|
1158
1193
|
id?: string | undefined;
|
|
1159
1194
|
};
|
|
@@ -1170,6 +1205,7 @@ export declare const organizationsRouter: {
|
|
|
1170
1205
|
phone: z.ZodNullable<z.ZodString>;
|
|
1171
1206
|
address: z.ZodNullable<z.ZodString>;
|
|
1172
1207
|
logo: z.ZodNullable<z.ZodString>;
|
|
1208
|
+
commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
|
|
1173
1209
|
} & {
|
|
1174
1210
|
createdAt: z.ZodString;
|
|
1175
1211
|
updatedAt: z.ZodString;
|
|
@@ -1181,6 +1217,7 @@ export declare const organizationsRouter: {
|
|
|
1181
1217
|
phone: string | null;
|
|
1182
1218
|
address: string | null;
|
|
1183
1219
|
logo: string | null;
|
|
1220
|
+
commodityCommissionRate: number | null;
|
|
1184
1221
|
}, {
|
|
1185
1222
|
email: string | null;
|
|
1186
1223
|
createdAt: string;
|
|
@@ -1189,6 +1226,7 @@ export declare const organizationsRouter: {
|
|
|
1189
1226
|
phone: string | null;
|
|
1190
1227
|
address: string | null;
|
|
1191
1228
|
logo: string | null;
|
|
1229
|
+
commodityCommissionRate: number | null;
|
|
1192
1230
|
}>;
|
|
1193
1231
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1194
1232
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1204,6 +1242,7 @@ export declare const organizationsRouter: {
|
|
|
1204
1242
|
phone: string | null;
|
|
1205
1243
|
address: string | null;
|
|
1206
1244
|
logo: string | null;
|
|
1245
|
+
commodityCommissionRate: number | null;
|
|
1207
1246
|
};
|
|
1208
1247
|
relationships?: Record<string, unknown> | undefined;
|
|
1209
1248
|
links?: Record<string, string> | undefined;
|
|
@@ -1219,6 +1258,7 @@ export declare const organizationsRouter: {
|
|
|
1219
1258
|
phone: string | null;
|
|
1220
1259
|
address: string | null;
|
|
1221
1260
|
logo: string | null;
|
|
1261
|
+
commodityCommissionRate: number | null;
|
|
1222
1262
|
};
|
|
1223
1263
|
relationships?: Record<string, unknown> | undefined;
|
|
1224
1264
|
links?: Record<string, string> | undefined;
|
|
@@ -1260,6 +1300,7 @@ export declare const organizationsRouter: {
|
|
|
1260
1300
|
phone: string | null;
|
|
1261
1301
|
address: string | null;
|
|
1262
1302
|
logo: string | null;
|
|
1303
|
+
commodityCommissionRate: number | null;
|
|
1263
1304
|
};
|
|
1264
1305
|
relationships?: Record<string, unknown> | undefined;
|
|
1265
1306
|
links?: Record<string, string> | undefined;
|
|
@@ -1287,6 +1328,7 @@ export declare const organizationsRouter: {
|
|
|
1287
1328
|
phone: string | null;
|
|
1288
1329
|
address: string | null;
|
|
1289
1330
|
logo: string | null;
|
|
1331
|
+
commodityCommissionRate: number | null;
|
|
1290
1332
|
};
|
|
1291
1333
|
relationships?: Record<string, unknown> | undefined;
|
|
1292
1334
|
links?: Record<string, string> | undefined;
|
|
@@ -1696,6 +1738,7 @@ export declare const organizationsRouter: {
|
|
|
1696
1738
|
phone: z.ZodNullable<z.ZodString>;
|
|
1697
1739
|
address: z.ZodNullable<z.ZodString>;
|
|
1698
1740
|
logo: z.ZodNullable<z.ZodString>;
|
|
1741
|
+
commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
|
|
1699
1742
|
} & {
|
|
1700
1743
|
createdAt: z.ZodString;
|
|
1701
1744
|
updatedAt: z.ZodString;
|
|
@@ -1707,6 +1750,7 @@ export declare const organizationsRouter: {
|
|
|
1707
1750
|
phone: string | null;
|
|
1708
1751
|
address: string | null;
|
|
1709
1752
|
logo: string | null;
|
|
1753
|
+
commodityCommissionRate: number | null;
|
|
1710
1754
|
}, {
|
|
1711
1755
|
email: string | null;
|
|
1712
1756
|
createdAt: string;
|
|
@@ -1715,6 +1759,7 @@ export declare const organizationsRouter: {
|
|
|
1715
1759
|
phone: string | null;
|
|
1716
1760
|
address: string | null;
|
|
1717
1761
|
logo: string | null;
|
|
1762
|
+
commodityCommissionRate: number | null;
|
|
1718
1763
|
}>;
|
|
1719
1764
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1720
1765
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1730,6 +1775,7 @@ export declare const organizationsRouter: {
|
|
|
1730
1775
|
phone: string | null;
|
|
1731
1776
|
address: string | null;
|
|
1732
1777
|
logo: string | null;
|
|
1778
|
+
commodityCommissionRate: number | null;
|
|
1733
1779
|
};
|
|
1734
1780
|
relationships?: Record<string, unknown> | undefined;
|
|
1735
1781
|
links?: Record<string, string> | undefined;
|
|
@@ -1745,6 +1791,7 @@ export declare const organizationsRouter: {
|
|
|
1745
1791
|
phone: string | null;
|
|
1746
1792
|
address: string | null;
|
|
1747
1793
|
logo: string | null;
|
|
1794
|
+
commodityCommissionRate: number | null;
|
|
1748
1795
|
};
|
|
1749
1796
|
relationships?: Record<string, unknown> | undefined;
|
|
1750
1797
|
links?: Record<string, string> | undefined;
|
|
@@ -1786,6 +1833,7 @@ export declare const organizationsRouter: {
|
|
|
1786
1833
|
phone: string | null;
|
|
1787
1834
|
address: string | null;
|
|
1788
1835
|
logo: string | null;
|
|
1836
|
+
commodityCommissionRate: number | null;
|
|
1789
1837
|
};
|
|
1790
1838
|
relationships?: Record<string, unknown> | undefined;
|
|
1791
1839
|
links?: Record<string, string> | undefined;
|
|
@@ -1813,6 +1861,7 @@ export declare const organizationsRouter: {
|
|
|
1813
1861
|
phone: string | null;
|
|
1814
1862
|
address: string | null;
|
|
1815
1863
|
logo: string | null;
|
|
1864
|
+
commodityCommissionRate: number | null;
|
|
1816
1865
|
};
|
|
1817
1866
|
relationships?: Record<string, unknown> | undefined;
|
|
1818
1867
|
links?: Record<string, string> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.routes.d.ts","sourceRoot":"","sources":["../../src/routes/organizations.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"organizations.routes.d.ts","sourceRoot":"","sources":["../../src/routes/organizations.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eA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