@deepintel-ltd/farmpro-contracts 1.5.24 → 1.5.25
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/routes/invoices.routes.d.ts +44 -100
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.d.ts +377 -1
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.js +16 -1
- package/dist/routes/suppliers.routes.d.ts +76 -76
- package/dist/routes/suppliers.routes.js +18 -18
- package/dist/routes/waybills.routes.d.ts +44 -86
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.d.ts +34 -98
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +1 -5
- package/dist/schemas/suppliers.schemas.d.ts +44 -44
- package/dist/schemas/suppliers.schemas.js +2 -2
- package/dist/schemas/waybills.schemas.d.ts +34 -82
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +1 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.routes.d.ts","sourceRoot":"","sources":["../../src/routes/invoices.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"invoices.routes.d.ts","sourceRoot":"","sources":["../../src/routes/invoices.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGzB,CAAC"}
|
|
@@ -1674,7 +1674,7 @@ export declare const organizationsRouter: {
|
|
|
1674
1674
|
id: string;
|
|
1675
1675
|
}>;
|
|
1676
1676
|
summary: "Upload organization logo";
|
|
1677
|
-
description: "Upload a logo image for an organization and update it with the logo URL";
|
|
1677
|
+
description: "Upload a logo image for an organization and update it with the proxy logo URL. The returned logo URL is a proxy URL that requires authentication.";
|
|
1678
1678
|
method: "POST";
|
|
1679
1679
|
contentType: "multipart/form-data";
|
|
1680
1680
|
body: z.ZodUnion<[z.ZodObject<{
|
|
@@ -2101,6 +2101,382 @@ export declare const organizationsRouter: {
|
|
|
2101
2101
|
}>;
|
|
2102
2102
|
};
|
|
2103
2103
|
};
|
|
2104
|
+
viewOrganizationLogo: {
|
|
2105
|
+
pathParams: z.ZodObject<{
|
|
2106
|
+
id: z.ZodString;
|
|
2107
|
+
}, "strip", z.ZodTypeAny, {
|
|
2108
|
+
id: string;
|
|
2109
|
+
}, {
|
|
2110
|
+
id: string;
|
|
2111
|
+
}>;
|
|
2112
|
+
summary: "View organization logo";
|
|
2113
|
+
description: "Stream or download an organization logo by its ID. Extension is optional - both /organizations/{id}/logo and /organizations/{id}/logo.{ext} work for the same file. Requires authentication and validates that the requesting user has permission to access the organization.";
|
|
2114
|
+
method: "GET";
|
|
2115
|
+
path: "/organizations/:id/logo";
|
|
2116
|
+
responses: {
|
|
2117
|
+
200: z.ZodAny;
|
|
2118
|
+
400: z.ZodObject<{
|
|
2119
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2120
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2121
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2122
|
+
about: z.ZodOptional<z.ZodString>;
|
|
2123
|
+
}, "strip", z.ZodTypeAny, {
|
|
2124
|
+
about?: string | undefined;
|
|
2125
|
+
}, {
|
|
2126
|
+
about?: string | undefined;
|
|
2127
|
+
}>>;
|
|
2128
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2129
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2130
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2131
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2132
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2133
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
2134
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
2135
|
+
}, "strip", z.ZodTypeAny, {
|
|
2136
|
+
pointer?: string | undefined;
|
|
2137
|
+
parameter?: string | undefined;
|
|
2138
|
+
}, {
|
|
2139
|
+
pointer?: string | undefined;
|
|
2140
|
+
parameter?: string | undefined;
|
|
2141
|
+
}>>;
|
|
2142
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2143
|
+
}, "strip", z.ZodTypeAny, {
|
|
2144
|
+
status?: string | undefined;
|
|
2145
|
+
code?: string | undefined;
|
|
2146
|
+
id?: string | undefined;
|
|
2147
|
+
links?: {
|
|
2148
|
+
about?: string | undefined;
|
|
2149
|
+
} | undefined;
|
|
2150
|
+
meta?: Record<string, unknown> | undefined;
|
|
2151
|
+
title?: string | undefined;
|
|
2152
|
+
detail?: string | undefined;
|
|
2153
|
+
source?: {
|
|
2154
|
+
pointer?: string | undefined;
|
|
2155
|
+
parameter?: string | undefined;
|
|
2156
|
+
} | undefined;
|
|
2157
|
+
}, {
|
|
2158
|
+
status?: string | undefined;
|
|
2159
|
+
code?: string | undefined;
|
|
2160
|
+
id?: string | undefined;
|
|
2161
|
+
links?: {
|
|
2162
|
+
about?: string | undefined;
|
|
2163
|
+
} | undefined;
|
|
2164
|
+
meta?: Record<string, unknown> | undefined;
|
|
2165
|
+
title?: string | undefined;
|
|
2166
|
+
detail?: string | undefined;
|
|
2167
|
+
source?: {
|
|
2168
|
+
pointer?: string | undefined;
|
|
2169
|
+
parameter?: string | undefined;
|
|
2170
|
+
} | undefined;
|
|
2171
|
+
}>, "many">;
|
|
2172
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2173
|
+
}, "strip", z.ZodTypeAny, {
|
|
2174
|
+
errors: {
|
|
2175
|
+
status?: string | undefined;
|
|
2176
|
+
code?: string | undefined;
|
|
2177
|
+
id?: string | undefined;
|
|
2178
|
+
links?: {
|
|
2179
|
+
about?: string | undefined;
|
|
2180
|
+
} | undefined;
|
|
2181
|
+
meta?: Record<string, unknown> | undefined;
|
|
2182
|
+
title?: string | undefined;
|
|
2183
|
+
detail?: string | undefined;
|
|
2184
|
+
source?: {
|
|
2185
|
+
pointer?: string | undefined;
|
|
2186
|
+
parameter?: string | undefined;
|
|
2187
|
+
} | undefined;
|
|
2188
|
+
}[];
|
|
2189
|
+
meta?: Record<string, unknown> | undefined;
|
|
2190
|
+
}, {
|
|
2191
|
+
errors: {
|
|
2192
|
+
status?: string | undefined;
|
|
2193
|
+
code?: string | undefined;
|
|
2194
|
+
id?: string | undefined;
|
|
2195
|
+
links?: {
|
|
2196
|
+
about?: string | undefined;
|
|
2197
|
+
} | undefined;
|
|
2198
|
+
meta?: Record<string, unknown> | undefined;
|
|
2199
|
+
title?: string | undefined;
|
|
2200
|
+
detail?: string | undefined;
|
|
2201
|
+
source?: {
|
|
2202
|
+
pointer?: string | undefined;
|
|
2203
|
+
parameter?: string | undefined;
|
|
2204
|
+
} | undefined;
|
|
2205
|
+
}[];
|
|
2206
|
+
meta?: Record<string, unknown> | undefined;
|
|
2207
|
+
}>;
|
|
2208
|
+
401: z.ZodObject<{
|
|
2209
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2210
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2211
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2212
|
+
about: z.ZodOptional<z.ZodString>;
|
|
2213
|
+
}, "strip", z.ZodTypeAny, {
|
|
2214
|
+
about?: string | undefined;
|
|
2215
|
+
}, {
|
|
2216
|
+
about?: string | undefined;
|
|
2217
|
+
}>>;
|
|
2218
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2219
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2220
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2221
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2222
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2223
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
2224
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
2225
|
+
}, "strip", z.ZodTypeAny, {
|
|
2226
|
+
pointer?: string | undefined;
|
|
2227
|
+
parameter?: string | undefined;
|
|
2228
|
+
}, {
|
|
2229
|
+
pointer?: string | undefined;
|
|
2230
|
+
parameter?: string | undefined;
|
|
2231
|
+
}>>;
|
|
2232
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2233
|
+
}, "strip", z.ZodTypeAny, {
|
|
2234
|
+
status?: string | undefined;
|
|
2235
|
+
code?: string | undefined;
|
|
2236
|
+
id?: string | undefined;
|
|
2237
|
+
links?: {
|
|
2238
|
+
about?: string | undefined;
|
|
2239
|
+
} | undefined;
|
|
2240
|
+
meta?: Record<string, unknown> | undefined;
|
|
2241
|
+
title?: string | undefined;
|
|
2242
|
+
detail?: string | undefined;
|
|
2243
|
+
source?: {
|
|
2244
|
+
pointer?: string | undefined;
|
|
2245
|
+
parameter?: string | undefined;
|
|
2246
|
+
} | undefined;
|
|
2247
|
+
}, {
|
|
2248
|
+
status?: string | undefined;
|
|
2249
|
+
code?: string | undefined;
|
|
2250
|
+
id?: string | undefined;
|
|
2251
|
+
links?: {
|
|
2252
|
+
about?: string | undefined;
|
|
2253
|
+
} | undefined;
|
|
2254
|
+
meta?: Record<string, unknown> | undefined;
|
|
2255
|
+
title?: string | undefined;
|
|
2256
|
+
detail?: string | undefined;
|
|
2257
|
+
source?: {
|
|
2258
|
+
pointer?: string | undefined;
|
|
2259
|
+
parameter?: string | undefined;
|
|
2260
|
+
} | undefined;
|
|
2261
|
+
}>, "many">;
|
|
2262
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2263
|
+
}, "strip", z.ZodTypeAny, {
|
|
2264
|
+
errors: {
|
|
2265
|
+
status?: string | undefined;
|
|
2266
|
+
code?: string | undefined;
|
|
2267
|
+
id?: string | undefined;
|
|
2268
|
+
links?: {
|
|
2269
|
+
about?: string | undefined;
|
|
2270
|
+
} | undefined;
|
|
2271
|
+
meta?: Record<string, unknown> | undefined;
|
|
2272
|
+
title?: string | undefined;
|
|
2273
|
+
detail?: string | undefined;
|
|
2274
|
+
source?: {
|
|
2275
|
+
pointer?: string | undefined;
|
|
2276
|
+
parameter?: string | undefined;
|
|
2277
|
+
} | undefined;
|
|
2278
|
+
}[];
|
|
2279
|
+
meta?: Record<string, unknown> | undefined;
|
|
2280
|
+
}, {
|
|
2281
|
+
errors: {
|
|
2282
|
+
status?: string | undefined;
|
|
2283
|
+
code?: string | undefined;
|
|
2284
|
+
id?: string | undefined;
|
|
2285
|
+
links?: {
|
|
2286
|
+
about?: string | undefined;
|
|
2287
|
+
} | undefined;
|
|
2288
|
+
meta?: Record<string, unknown> | undefined;
|
|
2289
|
+
title?: string | undefined;
|
|
2290
|
+
detail?: string | undefined;
|
|
2291
|
+
source?: {
|
|
2292
|
+
pointer?: string | undefined;
|
|
2293
|
+
parameter?: string | undefined;
|
|
2294
|
+
} | undefined;
|
|
2295
|
+
}[];
|
|
2296
|
+
meta?: Record<string, unknown> | undefined;
|
|
2297
|
+
}>;
|
|
2298
|
+
403: z.ZodObject<{
|
|
2299
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2300
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2301
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2302
|
+
about: z.ZodOptional<z.ZodString>;
|
|
2303
|
+
}, "strip", z.ZodTypeAny, {
|
|
2304
|
+
about?: string | undefined;
|
|
2305
|
+
}, {
|
|
2306
|
+
about?: string | undefined;
|
|
2307
|
+
}>>;
|
|
2308
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2309
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2310
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2311
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2312
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2313
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
2314
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
2315
|
+
}, "strip", z.ZodTypeAny, {
|
|
2316
|
+
pointer?: string | undefined;
|
|
2317
|
+
parameter?: string | undefined;
|
|
2318
|
+
}, {
|
|
2319
|
+
pointer?: string | undefined;
|
|
2320
|
+
parameter?: string | undefined;
|
|
2321
|
+
}>>;
|
|
2322
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2323
|
+
}, "strip", z.ZodTypeAny, {
|
|
2324
|
+
status?: string | undefined;
|
|
2325
|
+
code?: string | undefined;
|
|
2326
|
+
id?: string | undefined;
|
|
2327
|
+
links?: {
|
|
2328
|
+
about?: string | undefined;
|
|
2329
|
+
} | undefined;
|
|
2330
|
+
meta?: Record<string, unknown> | undefined;
|
|
2331
|
+
title?: string | undefined;
|
|
2332
|
+
detail?: string | undefined;
|
|
2333
|
+
source?: {
|
|
2334
|
+
pointer?: string | undefined;
|
|
2335
|
+
parameter?: string | undefined;
|
|
2336
|
+
} | undefined;
|
|
2337
|
+
}, {
|
|
2338
|
+
status?: string | undefined;
|
|
2339
|
+
code?: string | undefined;
|
|
2340
|
+
id?: string | undefined;
|
|
2341
|
+
links?: {
|
|
2342
|
+
about?: string | undefined;
|
|
2343
|
+
} | undefined;
|
|
2344
|
+
meta?: Record<string, unknown> | undefined;
|
|
2345
|
+
title?: string | undefined;
|
|
2346
|
+
detail?: string | undefined;
|
|
2347
|
+
source?: {
|
|
2348
|
+
pointer?: string | undefined;
|
|
2349
|
+
parameter?: string | undefined;
|
|
2350
|
+
} | undefined;
|
|
2351
|
+
}>, "many">;
|
|
2352
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2353
|
+
}, "strip", z.ZodTypeAny, {
|
|
2354
|
+
errors: {
|
|
2355
|
+
status?: string | undefined;
|
|
2356
|
+
code?: string | undefined;
|
|
2357
|
+
id?: string | undefined;
|
|
2358
|
+
links?: {
|
|
2359
|
+
about?: string | undefined;
|
|
2360
|
+
} | undefined;
|
|
2361
|
+
meta?: Record<string, unknown> | undefined;
|
|
2362
|
+
title?: string | undefined;
|
|
2363
|
+
detail?: string | undefined;
|
|
2364
|
+
source?: {
|
|
2365
|
+
pointer?: string | undefined;
|
|
2366
|
+
parameter?: string | undefined;
|
|
2367
|
+
} | undefined;
|
|
2368
|
+
}[];
|
|
2369
|
+
meta?: Record<string, unknown> | undefined;
|
|
2370
|
+
}, {
|
|
2371
|
+
errors: {
|
|
2372
|
+
status?: string | undefined;
|
|
2373
|
+
code?: string | undefined;
|
|
2374
|
+
id?: string | undefined;
|
|
2375
|
+
links?: {
|
|
2376
|
+
about?: string | undefined;
|
|
2377
|
+
} | undefined;
|
|
2378
|
+
meta?: Record<string, unknown> | undefined;
|
|
2379
|
+
title?: string | undefined;
|
|
2380
|
+
detail?: string | undefined;
|
|
2381
|
+
source?: {
|
|
2382
|
+
pointer?: string | undefined;
|
|
2383
|
+
parameter?: string | undefined;
|
|
2384
|
+
} | undefined;
|
|
2385
|
+
}[];
|
|
2386
|
+
meta?: Record<string, unknown> | undefined;
|
|
2387
|
+
}>;
|
|
2388
|
+
404: z.ZodObject<{
|
|
2389
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2390
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2391
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2392
|
+
about: z.ZodOptional<z.ZodString>;
|
|
2393
|
+
}, "strip", z.ZodTypeAny, {
|
|
2394
|
+
about?: string | undefined;
|
|
2395
|
+
}, {
|
|
2396
|
+
about?: string | undefined;
|
|
2397
|
+
}>>;
|
|
2398
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2399
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2400
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2401
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2402
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2403
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
2404
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
2405
|
+
}, "strip", z.ZodTypeAny, {
|
|
2406
|
+
pointer?: string | undefined;
|
|
2407
|
+
parameter?: string | undefined;
|
|
2408
|
+
}, {
|
|
2409
|
+
pointer?: string | undefined;
|
|
2410
|
+
parameter?: string | undefined;
|
|
2411
|
+
}>>;
|
|
2412
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2413
|
+
}, "strip", z.ZodTypeAny, {
|
|
2414
|
+
status?: string | undefined;
|
|
2415
|
+
code?: string | undefined;
|
|
2416
|
+
id?: string | undefined;
|
|
2417
|
+
links?: {
|
|
2418
|
+
about?: string | undefined;
|
|
2419
|
+
} | undefined;
|
|
2420
|
+
meta?: Record<string, unknown> | undefined;
|
|
2421
|
+
title?: string | undefined;
|
|
2422
|
+
detail?: string | undefined;
|
|
2423
|
+
source?: {
|
|
2424
|
+
pointer?: string | undefined;
|
|
2425
|
+
parameter?: string | undefined;
|
|
2426
|
+
} | undefined;
|
|
2427
|
+
}, {
|
|
2428
|
+
status?: string | undefined;
|
|
2429
|
+
code?: string | undefined;
|
|
2430
|
+
id?: string | undefined;
|
|
2431
|
+
links?: {
|
|
2432
|
+
about?: string | undefined;
|
|
2433
|
+
} | undefined;
|
|
2434
|
+
meta?: Record<string, unknown> | undefined;
|
|
2435
|
+
title?: string | undefined;
|
|
2436
|
+
detail?: string | undefined;
|
|
2437
|
+
source?: {
|
|
2438
|
+
pointer?: string | undefined;
|
|
2439
|
+
parameter?: string | undefined;
|
|
2440
|
+
} | undefined;
|
|
2441
|
+
}>, "many">;
|
|
2442
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2443
|
+
}, "strip", z.ZodTypeAny, {
|
|
2444
|
+
errors: {
|
|
2445
|
+
status?: string | undefined;
|
|
2446
|
+
code?: string | undefined;
|
|
2447
|
+
id?: string | undefined;
|
|
2448
|
+
links?: {
|
|
2449
|
+
about?: string | undefined;
|
|
2450
|
+
} | undefined;
|
|
2451
|
+
meta?: Record<string, unknown> | undefined;
|
|
2452
|
+
title?: string | undefined;
|
|
2453
|
+
detail?: string | undefined;
|
|
2454
|
+
source?: {
|
|
2455
|
+
pointer?: string | undefined;
|
|
2456
|
+
parameter?: string | undefined;
|
|
2457
|
+
} | undefined;
|
|
2458
|
+
}[];
|
|
2459
|
+
meta?: Record<string, unknown> | undefined;
|
|
2460
|
+
}, {
|
|
2461
|
+
errors: {
|
|
2462
|
+
status?: string | undefined;
|
|
2463
|
+
code?: string | undefined;
|
|
2464
|
+
id?: string | undefined;
|
|
2465
|
+
links?: {
|
|
2466
|
+
about?: string | undefined;
|
|
2467
|
+
} | undefined;
|
|
2468
|
+
meta?: Record<string, unknown> | undefined;
|
|
2469
|
+
title?: string | undefined;
|
|
2470
|
+
detail?: string | undefined;
|
|
2471
|
+
source?: {
|
|
2472
|
+
pointer?: string | undefined;
|
|
2473
|
+
parameter?: string | undefined;
|
|
2474
|
+
} | undefined;
|
|
2475
|
+
}[];
|
|
2476
|
+
meta?: Record<string, unknown> | undefined;
|
|
2477
|
+
}>;
|
|
2478
|
+
};
|
|
2479
|
+
};
|
|
2104
2480
|
listBankAccounts: {
|
|
2105
2481
|
pathParams: z.ZodObject<{
|
|
2106
2482
|
organizationId: z.ZodString;
|
|
@@ -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,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwL9B,CAAC"}
|
|
@@ -75,7 +75,22 @@ export const organizationsRouter = c.router({
|
|
|
75
75
|
401: jsonApiErrorResponseSchema,
|
|
76
76
|
},
|
|
77
77
|
summary: 'Upload organization logo',
|
|
78
|
-
description: 'Upload a logo image for an organization and update it with the logo URL',
|
|
78
|
+
description: 'Upload a logo image for an organization and update it with the proxy logo URL. The returned logo URL is a proxy URL that requires authentication.',
|
|
79
|
+
},
|
|
80
|
+
// View organization logo
|
|
81
|
+
viewOrganizationLogo: {
|
|
82
|
+
method: 'GET',
|
|
83
|
+
path: '/organizations/:id/logo',
|
|
84
|
+
pathParams: idParamSchema,
|
|
85
|
+
responses: {
|
|
86
|
+
200: z.any(), // Image file stream response
|
|
87
|
+
400: jsonApiErrorResponseSchema,
|
|
88
|
+
401: jsonApiErrorResponseSchema,
|
|
89
|
+
403: jsonApiErrorResponseSchema,
|
|
90
|
+
404: jsonApiErrorResponseSchema,
|
|
91
|
+
},
|
|
92
|
+
summary: 'View organization logo',
|
|
93
|
+
description: 'Stream or download an organization logo by its ID. Extension is optional - both /organizations/{id}/logo and /organizations/{id}/logo.{ext} work for the same file. Requires authentication and validates that the requesting user has permission to access the organization.',
|
|
79
94
|
},
|
|
80
95
|
// ============================================================================
|
|
81
96
|
// Bank Account Routes
|