@deepintel-ltd/farmpro-contracts 1.5.20 → 1.5.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.
@@ -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;AAgBxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuJ9B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { initContract } from '@ts-rest/core';
2
2
  import { z } from 'zod';
3
- import { createOrganizationSchema, updateOrganizationSchema, organizationResponseSchema, organizationListResponseSchema, } from '../schemas/organizations.schemas';
3
+ import { createOrganizationSchema, updateOrganizationSchema, organizationResponseSchema, organizationListResponseSchema, createBankAccountSchema, updateBankAccountSchema, bankAccountResponseSchema, bankAccountListResponseSchema, } from '../schemas/organizations.schemas';
4
4
  import { jsonApiErrorResponseSchema, idParamSchema, jsonApiPaginationQuerySchema, jsonApiSortQuerySchema, } from '../schemas/common.schemas';
5
5
  const c = initContract();
6
6
  export const organizationsRouter = c.router({
@@ -60,4 +60,89 @@ export const organizationsRouter = c.router({
60
60
  summary: 'Update organization',
61
61
  description: 'Update organization information',
62
62
  },
63
+ // ============================================================================
64
+ // Bank Account Routes
65
+ // ============================================================================
66
+ // List all bank accounts for an organization
67
+ listBankAccounts: {
68
+ method: 'GET',
69
+ path: '/organizations/:organizationId/bank-accounts',
70
+ pathParams: idParamSchema.extend({ organizationId: z.string().uuid() }),
71
+ query: jsonApiPaginationQuerySchema.merge(jsonApiSortQuerySchema),
72
+ responses: {
73
+ 200: bankAccountListResponseSchema,
74
+ 401: jsonApiErrorResponseSchema,
75
+ 404: jsonApiErrorResponseSchema,
76
+ },
77
+ summary: 'List bank accounts for an organization',
78
+ description: 'Get a paginated list of bank accounts for a specific organization',
79
+ },
80
+ // Create a new bank account
81
+ createBankAccount: {
82
+ method: 'POST',
83
+ path: '/organizations/:organizationId/bank-accounts',
84
+ pathParams: idParamSchema.extend({ organizationId: z.string().uuid() }),
85
+ body: z.object({ data: createBankAccountSchema }),
86
+ responses: {
87
+ 201: bankAccountResponseSchema,
88
+ 400: jsonApiErrorResponseSchema,
89
+ 401: jsonApiErrorResponseSchema,
90
+ 404: jsonApiErrorResponseSchema,
91
+ 422: jsonApiErrorResponseSchema,
92
+ },
93
+ summary: 'Create a new bank account',
94
+ description: 'Create a new bank account for an organization. If isDefault is true, this account becomes the default.',
95
+ },
96
+ // Get bank account by ID
97
+ getBankAccount: {
98
+ method: 'GET',
99
+ path: '/organizations/:organizationId/bank-accounts/:id',
100
+ pathParams: idParamSchema.extend({
101
+ organizationId: z.string().uuid(),
102
+ id: z.string().uuid(),
103
+ }),
104
+ responses: {
105
+ 200: bankAccountResponseSchema,
106
+ 404: jsonApiErrorResponseSchema,
107
+ 401: jsonApiErrorResponseSchema,
108
+ },
109
+ summary: 'Get bank account by ID',
110
+ description: 'Get detailed information about a specific bank account',
111
+ },
112
+ // Update bank account
113
+ updateBankAccount: {
114
+ method: 'PATCH',
115
+ path: '/organizations/:organizationId/bank-accounts/:id',
116
+ pathParams: idParamSchema.extend({
117
+ organizationId: z.string().uuid(),
118
+ id: z.string().uuid(),
119
+ }),
120
+ body: z.object({ data: updateBankAccountSchema }),
121
+ responses: {
122
+ 200: bankAccountResponseSchema,
123
+ 400: jsonApiErrorResponseSchema,
124
+ 404: jsonApiErrorResponseSchema,
125
+ 401: jsonApiErrorResponseSchema,
126
+ 422: jsonApiErrorResponseSchema,
127
+ },
128
+ summary: 'Update bank account',
129
+ description: 'Update bank account information. Setting isDefault to true will make this the default account.',
130
+ },
131
+ // Delete bank account
132
+ deleteBankAccount: {
133
+ method: 'DELETE',
134
+ path: '/organizations/:organizationId/bank-accounts/:id',
135
+ pathParams: idParamSchema.extend({
136
+ organizationId: z.string().uuid(),
137
+ id: z.string().uuid(),
138
+ }),
139
+ responses: {
140
+ 204: z.object({}),
141
+ 400: jsonApiErrorResponseSchema,
142
+ 404: jsonApiErrorResponseSchema,
143
+ 401: jsonApiErrorResponseSchema,
144
+ },
145
+ summary: 'Delete bank account',
146
+ description: 'Delete a bank account. Cannot delete if it is the default account or has associated invoices.',
147
+ },
63
148
  });
@@ -81,11 +81,11 @@ export declare const waybillsRouter: {
81
81
  value?: number | undefined;
82
82
  weight?: number | undefined;
83
83
  }[];
84
+ organizationId: string;
84
85
  waybillNumber: string;
85
86
  issueDate: string;
86
87
  senderName: string;
87
88
  recipientName: string;
88
- organizationId: string;
89
89
  notes?: string | null | undefined;
90
90
  totalValue?: number | null | undefined;
91
91
  senderAddress?: string | null | undefined;
@@ -106,11 +106,11 @@ export declare const waybillsRouter: {
106
106
  value?: number | undefined;
107
107
  weight?: number | undefined;
108
108
  }[];
109
+ organizationId: string;
109
110
  waybillNumber: string;
110
111
  issueDate: string;
111
112
  senderName: string;
112
113
  recipientName: string;
113
- organizationId: string;
114
114
  currency?: string | undefined;
115
115
  notes?: string | null | undefined;
116
116
  totalValue?: number | null | undefined;
@@ -140,11 +140,11 @@ export declare const waybillsRouter: {
140
140
  value?: number | undefined;
141
141
  weight?: number | undefined;
142
142
  }[];
143
+ organizationId: string;
143
144
  waybillNumber: string;
144
145
  issueDate: string;
145
146
  senderName: string;
146
147
  recipientName: string;
147
- organizationId: string;
148
148
  notes?: string | null | undefined;
149
149
  totalValue?: number | null | undefined;
150
150
  senderAddress?: string | null | undefined;
@@ -172,11 +172,11 @@ export declare const waybillsRouter: {
172
172
  value?: number | undefined;
173
173
  weight?: number | undefined;
174
174
  }[];
175
+ organizationId: string;
175
176
  waybillNumber: string;
176
177
  issueDate: string;
177
178
  senderName: string;
178
179
  recipientName: string;
179
- organizationId: string;
180
180
  currency?: string | undefined;
181
181
  notes?: string | null | undefined;
182
182
  totalValue?: number | null | undefined;
@@ -232,11 +232,11 @@ export declare const waybillsRouter: {
232
232
  value?: number | undefined;
233
233
  weight?: number | undefined;
234
234
  }[];
235
+ organizationId: string;
235
236
  waybillNumber: string;
236
237
  issueDate: string;
237
238
  senderName: string;
238
239
  recipientName: string;
239
- organizationId: string;
240
240
  notes?: string | null | undefined;
241
241
  totalValue?: number | null | undefined;
242
242
  senderAddress?: string | null | undefined;
@@ -276,11 +276,11 @@ export declare const waybillsRouter: {
276
276
  value?: number | undefined;
277
277
  weight?: number | undefined;
278
278
  }[];
279
+ organizationId: string;
279
280
  waybillNumber: string;
280
281
  issueDate: string;
281
282
  senderName: string;
282
283
  recipientName: string;
283
- organizationId: string;
284
284
  currency?: string | undefined;
285
285
  notes?: string | null | undefined;
286
286
  totalValue?: number | null | undefined;
@@ -738,11 +738,11 @@ export declare const waybillsRouter: {
738
738
  value?: number | undefined;
739
739
  weight?: number | undefined;
740
740
  }[];
741
+ organizationId: string;
741
742
  waybillNumber: string;
742
743
  issueDate: string;
743
744
  senderName: string;
744
745
  recipientName: string;
745
- organizationId: string;
746
746
  notes?: string | null | undefined;
747
747
  totalValue?: number | null | undefined;
748
748
  senderAddress?: string | null | undefined;
@@ -763,11 +763,11 @@ export declare const waybillsRouter: {
763
763
  value?: number | undefined;
764
764
  weight?: number | undefined;
765
765
  }[];
766
+ organizationId: string;
766
767
  waybillNumber: string;
767
768
  issueDate: string;
768
769
  senderName: string;
769
770
  recipientName: string;
770
- organizationId: string;
771
771
  currency?: string | undefined;
772
772
  notes?: string | null | undefined;
773
773
  totalValue?: number | null | undefined;
@@ -797,11 +797,11 @@ export declare const waybillsRouter: {
797
797
  value?: number | undefined;
798
798
  weight?: number | undefined;
799
799
  }[];
800
+ organizationId: string;
800
801
  waybillNumber: string;
801
802
  issueDate: string;
802
803
  senderName: string;
803
804
  recipientName: string;
804
- organizationId: string;
805
805
  notes?: string | null | undefined;
806
806
  totalValue?: number | null | undefined;
807
807
  senderAddress?: string | null | undefined;
@@ -829,11 +829,11 @@ export declare const waybillsRouter: {
829
829
  value?: number | undefined;
830
830
  weight?: number | undefined;
831
831
  }[];
832
+ organizationId: string;
832
833
  waybillNumber: string;
833
834
  issueDate: string;
834
835
  senderName: string;
835
836
  recipientName: string;
836
- organizationId: string;
837
837
  currency?: string | undefined;
838
838
  notes?: string | null | undefined;
839
839
  totalValue?: number | null | undefined;
@@ -889,11 +889,11 @@ export declare const waybillsRouter: {
889
889
  value?: number | undefined;
890
890
  weight?: number | undefined;
891
891
  }[];
892
+ organizationId: string;
892
893
  waybillNumber: string;
893
894
  issueDate: string;
894
895
  senderName: string;
895
896
  recipientName: string;
896
- organizationId: string;
897
897
  notes?: string | null | undefined;
898
898
  totalValue?: number | null | undefined;
899
899
  senderAddress?: string | null | undefined;
@@ -933,11 +933,11 @@ export declare const waybillsRouter: {
933
933
  value?: number | undefined;
934
934
  weight?: number | undefined;
935
935
  }[];
936
+ organizationId: string;
936
937
  waybillNumber: string;
937
938
  issueDate: string;
938
939
  senderName: string;
939
940
  recipientName: string;
940
- organizationId: string;
941
941
  currency?: string | undefined;
942
942
  notes?: string | null | undefined;
943
943
  totalValue?: number | null | undefined;
@@ -1397,11 +1397,11 @@ export declare const waybillsRouter: {
1397
1397
  value?: number | undefined;
1398
1398
  weight?: number | undefined;
1399
1399
  }[];
1400
+ organizationId: string;
1400
1401
  waybillNumber: string;
1401
1402
  issueDate: string;
1402
1403
  senderName: string;
1403
1404
  recipientName: string;
1404
- organizationId: string;
1405
1405
  notes?: string | null | undefined;
1406
1406
  totalValue?: number | null | undefined;
1407
1407
  senderAddress?: string | null | undefined;
@@ -1422,11 +1422,11 @@ export declare const waybillsRouter: {
1422
1422
  value?: number | undefined;
1423
1423
  weight?: number | undefined;
1424
1424
  }[];
1425
+ organizationId: string;
1425
1426
  waybillNumber: string;
1426
1427
  issueDate: string;
1427
1428
  senderName: string;
1428
1429
  recipientName: string;
1429
- organizationId: string;
1430
1430
  currency?: string | undefined;
1431
1431
  notes?: string | null | undefined;
1432
1432
  totalValue?: number | null | undefined;
@@ -1456,11 +1456,11 @@ export declare const waybillsRouter: {
1456
1456
  value?: number | undefined;
1457
1457
  weight?: number | undefined;
1458
1458
  }[];
1459
+ organizationId: string;
1459
1460
  waybillNumber: string;
1460
1461
  issueDate: string;
1461
1462
  senderName: string;
1462
1463
  recipientName: string;
1463
- organizationId: string;
1464
1464
  notes?: string | null | undefined;
1465
1465
  totalValue?: number | null | undefined;
1466
1466
  senderAddress?: string | null | undefined;
@@ -1488,11 +1488,11 @@ export declare const waybillsRouter: {
1488
1488
  value?: number | undefined;
1489
1489
  weight?: number | undefined;
1490
1490
  }[];
1491
+ organizationId: string;
1491
1492
  waybillNumber: string;
1492
1493
  issueDate: string;
1493
1494
  senderName: string;
1494
1495
  recipientName: string;
1495
- organizationId: string;
1496
1496
  currency?: string | undefined;
1497
1497
  notes?: string | null | undefined;
1498
1498
  totalValue?: number | null | undefined;
@@ -1548,11 +1548,11 @@ export declare const waybillsRouter: {
1548
1548
  value?: number | undefined;
1549
1549
  weight?: number | undefined;
1550
1550
  }[];
1551
+ organizationId: string;
1551
1552
  waybillNumber: string;
1552
1553
  issueDate: string;
1553
1554
  senderName: string;
1554
1555
  recipientName: string;
1555
- organizationId: string;
1556
1556
  notes?: string | null | undefined;
1557
1557
  totalValue?: number | null | undefined;
1558
1558
  senderAddress?: string | null | undefined;
@@ -1592,11 +1592,11 @@ export declare const waybillsRouter: {
1592
1592
  value?: number | undefined;
1593
1593
  weight?: number | undefined;
1594
1594
  }[];
1595
+ organizationId: string;
1595
1596
  waybillNumber: string;
1596
1597
  issueDate: string;
1597
1598
  senderName: string;
1598
1599
  recipientName: string;
1599
- organizationId: string;
1600
1600
  currency?: string | undefined;
1601
1601
  notes?: string | null | undefined;
1602
1602
  totalValue?: number | null | undefined;
@@ -2062,11 +2062,11 @@ export declare const waybillsRouter: {
2062
2062
  value?: number | undefined;
2063
2063
  weight?: number | undefined;
2064
2064
  }[];
2065
+ organizationId: string;
2065
2066
  waybillNumber: string;
2066
2067
  issueDate: string;
2067
2068
  senderName: string;
2068
2069
  recipientName: string;
2069
- organizationId: string;
2070
2070
  notes?: string | null | undefined;
2071
2071
  totalValue?: number | null | undefined;
2072
2072
  senderAddress?: string | null | undefined;
@@ -2087,11 +2087,11 @@ export declare const waybillsRouter: {
2087
2087
  value?: number | undefined;
2088
2088
  weight?: number | undefined;
2089
2089
  }[];
2090
+ organizationId: string;
2090
2091
  waybillNumber: string;
2091
2092
  issueDate: string;
2092
2093
  senderName: string;
2093
2094
  recipientName: string;
2094
- organizationId: string;
2095
2095
  currency?: string | undefined;
2096
2096
  notes?: string | null | undefined;
2097
2097
  totalValue?: number | null | undefined;
@@ -2121,11 +2121,11 @@ export declare const waybillsRouter: {
2121
2121
  value?: number | undefined;
2122
2122
  weight?: number | undefined;
2123
2123
  }[];
2124
+ organizationId: string;
2124
2125
  waybillNumber: string;
2125
2126
  issueDate: string;
2126
2127
  senderName: string;
2127
2128
  recipientName: string;
2128
- organizationId: string;
2129
2129
  notes?: string | null | undefined;
2130
2130
  totalValue?: number | null | undefined;
2131
2131
  senderAddress?: string | null | undefined;
@@ -2153,11 +2153,11 @@ export declare const waybillsRouter: {
2153
2153
  value?: number | undefined;
2154
2154
  weight?: number | undefined;
2155
2155
  }[];
2156
+ organizationId: string;
2156
2157
  waybillNumber: string;
2157
2158
  issueDate: string;
2158
2159
  senderName: string;
2159
2160
  recipientName: string;
2160
- organizationId: string;
2161
2161
  currency?: string | undefined;
2162
2162
  notes?: string | null | undefined;
2163
2163
  totalValue?: number | null | undefined;
@@ -2213,11 +2213,11 @@ export declare const waybillsRouter: {
2213
2213
  value?: number | undefined;
2214
2214
  weight?: number | undefined;
2215
2215
  }[];
2216
+ organizationId: string;
2216
2217
  waybillNumber: string;
2217
2218
  issueDate: string;
2218
2219
  senderName: string;
2219
2220
  recipientName: string;
2220
- organizationId: string;
2221
2221
  notes?: string | null | undefined;
2222
2222
  totalValue?: number | null | undefined;
2223
2223
  senderAddress?: string | null | undefined;
@@ -2257,11 +2257,11 @@ export declare const waybillsRouter: {
2257
2257
  value?: number | undefined;
2258
2258
  weight?: number | undefined;
2259
2259
  }[];
2260
+ organizationId: string;
2260
2261
  waybillNumber: string;
2261
2262
  issueDate: string;
2262
2263
  senderName: string;
2263
2264
  recipientName: string;
2264
- organizationId: string;
2265
2265
  currency?: string | undefined;
2266
2266
  notes?: string | null | undefined;
2267
2267
  totalValue?: number | null | undefined;
@@ -2722,11 +2722,11 @@ export declare const waybillsRouter: {
2722
2722
  value?: number | undefined;
2723
2723
  weight?: number | undefined;
2724
2724
  }[];
2725
+ organizationId: string;
2725
2726
  waybillNumber: string;
2726
2727
  issueDate: string;
2727
2728
  senderName: string;
2728
2729
  recipientName: string;
2729
- organizationId: string;
2730
2730
  notes?: string | null | undefined;
2731
2731
  totalValue?: number | null | undefined;
2732
2732
  senderAddress?: string | null | undefined;
@@ -2747,11 +2747,11 @@ export declare const waybillsRouter: {
2747
2747
  value?: number | undefined;
2748
2748
  weight?: number | undefined;
2749
2749
  }[];
2750
+ organizationId: string;
2750
2751
  waybillNumber: string;
2751
2752
  issueDate: string;
2752
2753
  senderName: string;
2753
2754
  recipientName: string;
2754
- organizationId: string;
2755
2755
  currency?: string | undefined;
2756
2756
  notes?: string | null | undefined;
2757
2757
  totalValue?: number | null | undefined;
@@ -2781,11 +2781,11 @@ export declare const waybillsRouter: {
2781
2781
  value?: number | undefined;
2782
2782
  weight?: number | undefined;
2783
2783
  }[];
2784
+ organizationId: string;
2784
2785
  waybillNumber: string;
2785
2786
  issueDate: string;
2786
2787
  senderName: string;
2787
2788
  recipientName: string;
2788
- organizationId: string;
2789
2789
  notes?: string | null | undefined;
2790
2790
  totalValue?: number | null | undefined;
2791
2791
  senderAddress?: string | null | undefined;
@@ -2813,11 +2813,11 @@ export declare const waybillsRouter: {
2813
2813
  value?: number | undefined;
2814
2814
  weight?: number | undefined;
2815
2815
  }[];
2816
+ organizationId: string;
2816
2817
  waybillNumber: string;
2817
2818
  issueDate: string;
2818
2819
  senderName: string;
2819
2820
  recipientName: string;
2820
- organizationId: string;
2821
2821
  currency?: string | undefined;
2822
2822
  notes?: string | null | undefined;
2823
2823
  totalValue?: number | null | undefined;
@@ -2873,11 +2873,11 @@ export declare const waybillsRouter: {
2873
2873
  value?: number | undefined;
2874
2874
  weight?: number | undefined;
2875
2875
  }[];
2876
+ organizationId: string;
2876
2877
  waybillNumber: string;
2877
2878
  issueDate: string;
2878
2879
  senderName: string;
2879
2880
  recipientName: string;
2880
- organizationId: string;
2881
2881
  notes?: string | null | undefined;
2882
2882
  totalValue?: number | null | undefined;
2883
2883
  senderAddress?: string | null | undefined;
@@ -2917,11 +2917,11 @@ export declare const waybillsRouter: {
2917
2917
  value?: number | undefined;
2918
2918
  weight?: number | undefined;
2919
2919
  }[];
2920
+ organizationId: string;
2920
2921
  waybillNumber: string;
2921
2922
  issueDate: string;
2922
2923
  senderName: string;
2923
2924
  recipientName: string;
2924
- organizationId: string;
2925
2925
  currency?: string | undefined;
2926
2926
  notes?: string | null | undefined;
2927
2927
  totalValue?: number | null | undefined;
@@ -81,8 +81,8 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
81
81
  unitPrice: number;
82
82
  taxRate?: number | undefined;
83
83
  }[];
84
- issueDate: string;
85
84
  organizationId: string;
85
+ issueDate: string;
86
86
  invoiceNumber: string;
87
87
  billFromName: string;
88
88
  billToName: string;
@@ -115,8 +115,8 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
115
115
  unitPrice: number;
116
116
  taxRate?: number | undefined;
117
117
  }[];
118
- issueDate: string;
119
118
  organizationId: string;
119
+ issueDate: string;
120
120
  invoiceNumber: string;
121
121
  billFromName: string;
122
122
  billToName: string;
@@ -686,8 +686,8 @@ export declare const invoiceResourceSchema: z.ZodObject<{
686
686
  unitPrice: number;
687
687
  taxRate?: number | undefined;
688
688
  }[];
689
- issueDate: string;
690
689
  organizationId: string;
690
+ issueDate: string;
691
691
  invoiceNumber: string;
692
692
  billFromName: string;
693
693
  billToName: string;
@@ -720,8 +720,8 @@ export declare const invoiceResourceSchema: z.ZodObject<{
720
720
  unitPrice: number;
721
721
  taxRate?: number | undefined;
722
722
  }[];
723
- issueDate: string;
724
723
  organizationId: string;
724
+ issueDate: string;
725
725
  invoiceNumber: string;
726
726
  billFromName: string;
727
727
  billToName: string;
@@ -763,8 +763,8 @@ export declare const invoiceResourceSchema: z.ZodObject<{
763
763
  unitPrice: number;
764
764
  taxRate?: number | undefined;
765
765
  }[];
766
- issueDate: string;
767
766
  organizationId: string;
767
+ issueDate: string;
768
768
  invoiceNumber: string;
769
769
  billFromName: string;
770
770
  billToName: string;
@@ -804,8 +804,8 @@ export declare const invoiceResourceSchema: z.ZodObject<{
804
804
  unitPrice: number;
805
805
  taxRate?: number | undefined;
806
806
  }[];
807
- issueDate: string;
808
807
  organizationId: string;
808
+ issueDate: string;
809
809
  invoiceNumber: string;
810
810
  billFromName: string;
811
811
  billToName: string;
@@ -897,8 +897,8 @@ export declare const invoiceResponseSchema: z.ZodObject<{
897
897
  unitPrice: number;
898
898
  taxRate?: number | undefined;
899
899
  }[];
900
- issueDate: string;
901
900
  organizationId: string;
901
+ issueDate: string;
902
902
  invoiceNumber: string;
903
903
  billFromName: string;
904
904
  billToName: string;
@@ -931,8 +931,8 @@ export declare const invoiceResponseSchema: z.ZodObject<{
931
931
  unitPrice: number;
932
932
  taxRate?: number | undefined;
933
933
  }[];
934
- issueDate: string;
935
934
  organizationId: string;
935
+ issueDate: string;
936
936
  invoiceNumber: string;
937
937
  billFromName: string;
938
938
  billToName: string;
@@ -974,8 +974,8 @@ export declare const invoiceResponseSchema: z.ZodObject<{
974
974
  unitPrice: number;
975
975
  taxRate?: number | undefined;
976
976
  }[];
977
- issueDate: string;
978
977
  organizationId: string;
978
+ issueDate: string;
979
979
  invoiceNumber: string;
980
980
  billFromName: string;
981
981
  billToName: string;
@@ -1015,8 +1015,8 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1015
1015
  unitPrice: number;
1016
1016
  taxRate?: number | undefined;
1017
1017
  }[];
1018
- issueDate: string;
1019
1018
  organizationId: string;
1019
+ issueDate: string;
1020
1020
  invoiceNumber: string;
1021
1021
  billFromName: string;
1022
1022
  billToName: string;
@@ -1084,8 +1084,8 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1084
1084
  unitPrice: number;
1085
1085
  taxRate?: number | undefined;
1086
1086
  }[];
1087
- issueDate: string;
1088
1087
  organizationId: string;
1088
+ issueDate: string;
1089
1089
  invoiceNumber: string;
1090
1090
  billFromName: string;
1091
1091
  billToName: string;
@@ -1137,8 +1137,8 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1137
1137
  unitPrice: number;
1138
1138
  taxRate?: number | undefined;
1139
1139
  }[];
1140
- issueDate: string;
1141
1140
  organizationId: string;
1141
+ issueDate: string;
1142
1142
  invoiceNumber: string;
1143
1143
  billFromName: string;
1144
1144
  billToName: string;
@@ -1241,8 +1241,8 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1241
1241
  unitPrice: number;
1242
1242
  taxRate?: number | undefined;
1243
1243
  }[];
1244
- issueDate: string;
1245
1244
  organizationId: string;
1245
+ issueDate: string;
1246
1246
  invoiceNumber: string;
1247
1247
  billFromName: string;
1248
1248
  billToName: string;
@@ -1275,8 +1275,8 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1275
1275
  unitPrice: number;
1276
1276
  taxRate?: number | undefined;
1277
1277
  }[];
1278
- issueDate: string;
1279
1278
  organizationId: string;
1279
+ issueDate: string;
1280
1280
  invoiceNumber: string;
1281
1281
  billFromName: string;
1282
1282
  billToName: string;
@@ -1318,8 +1318,8 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1318
1318
  unitPrice: number;
1319
1319
  taxRate?: number | undefined;
1320
1320
  }[];
1321
- issueDate: string;
1322
1321
  organizationId: string;
1322
+ issueDate: string;
1323
1323
  invoiceNumber: string;
1324
1324
  billFromName: string;
1325
1325
  billToName: string;
@@ -1359,8 +1359,8 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1359
1359
  unitPrice: number;
1360
1360
  taxRate?: number | undefined;
1361
1361
  }[];
1362
- issueDate: string;
1363
1362
  organizationId: string;
1363
+ issueDate: string;
1364
1364
  invoiceNumber: string;
1365
1365
  billFromName: string;
1366
1366
  billToName: string;
@@ -1428,8 +1428,8 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1428
1428
  unitPrice: number;
1429
1429
  taxRate?: number | undefined;
1430
1430
  }[];
1431
- issueDate: string;
1432
1431
  organizationId: string;
1432
+ issueDate: string;
1433
1433
  invoiceNumber: string;
1434
1434
  billFromName: string;
1435
1435
  billToName: string;
@@ -1481,8 +1481,8 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1481
1481
  unitPrice: number;
1482
1482
  taxRate?: number | undefined;
1483
1483
  }[];
1484
- issueDate: string;
1485
1484
  organizationId: string;
1485
+ issueDate: string;
1486
1486
  invoiceNumber: string;
1487
1487
  billFromName: string;
1488
1488
  billToName: string;