@deepintel-ltd/farmpro-contracts 1.23.2 → 1.24.1

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.
Files changed (46) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -0
  4. package/dist/routes/commodity-deals.routes.d.ts +1339 -0
  5. package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
  6. package/dist/routes/commodity-deals.routes.js +49 -1
  7. package/dist/routes/documents.routes.d.ts +6 -0
  8. package/dist/routes/documents.routes.d.ts.map +1 -1
  9. package/dist/routes/documents.routes.js +2 -0
  10. package/dist/routes/finance.routes.d.ts +68 -68
  11. package/dist/routes/index.d.ts +2 -0
  12. package/dist/routes/index.d.ts.map +1 -1
  13. package/dist/routes/index.js +2 -0
  14. package/dist/routes/inventory.routes.d.ts +584 -0
  15. package/dist/routes/inventory.routes.d.ts.map +1 -1
  16. package/dist/routes/inventory.routes.js +26 -1
  17. package/dist/routes/live-monitor.routes.d.ts +15 -10
  18. package/dist/routes/live-monitor.routes.d.ts.map +1 -1
  19. package/dist/routes/monitoring-visualization.routes.d.ts +3 -0
  20. package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
  21. package/dist/routes/poultry.routes.d.ts +3318 -0
  22. package/dist/routes/poultry.routes.d.ts.map +1 -0
  23. package/dist/routes/poultry.routes.js +195 -0
  24. package/dist/routes/team-payments.routes.d.ts +42 -42
  25. package/dist/routes/trade-cash-events.routes.d.ts +20 -20
  26. package/dist/routes/waybills.routes.d.ts +14 -0
  27. package/dist/routes/waybills.routes.d.ts.map +1 -1
  28. package/dist/schemas/commodity-deals.schemas.d.ts +484 -0
  29. package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
  30. package/dist/schemas/commodity-deals.schemas.js +34 -0
  31. package/dist/schemas/finance.schemas.d.ts +78 -78
  32. package/dist/schemas/inventory.schemas.d.ts +122 -0
  33. package/dist/schemas/inventory.schemas.d.ts.map +1 -1
  34. package/dist/schemas/inventory.schemas.js +35 -0
  35. package/dist/schemas/live-monitor.schemas.d.ts +24 -16
  36. package/dist/schemas/live-monitor.schemas.d.ts.map +1 -1
  37. package/dist/schemas/live-monitor.schemas.js +3 -2
  38. package/dist/schemas/monitoring-visualization.schemas.d.ts +64 -0
  39. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  40. package/dist/schemas/monitoring-visualization.schemas.js +25 -1
  41. package/dist/schemas/team-payments.schemas.d.ts +30 -30
  42. package/dist/schemas/trade-cash-events.schemas.d.ts +24 -24
  43. package/dist/schemas/waybills.schemas.d.ts +16 -0
  44. package/dist/schemas/waybills.schemas.d.ts.map +1 -1
  45. package/dist/schemas/waybills.schemas.js +1 -0
  46. package/package.json +1 -1
@@ -7950,5 +7950,1344 @@ export declare const commodityDealsRouter: {
7950
7950
  }>;
7951
7951
  };
7952
7952
  };
7953
+ listTradeCostLines: {
7954
+ pathParams: z.ZodObject<{
7955
+ organizationId: z.ZodString;
7956
+ id: z.ZodString;
7957
+ }, "strip", z.ZodTypeAny, {
7958
+ id: string;
7959
+ organizationId: string;
7960
+ }, {
7961
+ id: string;
7962
+ organizationId: string;
7963
+ }>;
7964
+ summary: "List landed-cost line items for a deal (audit detail; does not alter margin math)";
7965
+ method: "GET";
7966
+ path: "/organizations/:organizationId/commodity-deals/:id/cost-lines";
7967
+ responses: {
7968
+ 200: z.ZodObject<{
7969
+ data: z.ZodArray<z.ZodObject<{
7970
+ type: z.ZodLiteral<string>;
7971
+ id: z.ZodString;
7972
+ attributes: z.ZodObject<{
7973
+ organizationId: z.ZodString;
7974
+ dealId: z.ZodString;
7975
+ type: z.ZodEnum<["storage", "handling", "inspection", "bagging", "finance", "shrinkage", "other"]>;
7976
+ amount: z.ZodNumber;
7977
+ currency: z.ZodDefault<z.ZodString>;
7978
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7979
+ occurredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7980
+ } & {
7981
+ createdAt: z.ZodString;
7982
+ updatedAt: z.ZodString;
7983
+ }, "strip", z.ZodTypeAny, {
7984
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
7985
+ createdAt: string;
7986
+ updatedAt: string;
7987
+ organizationId: string;
7988
+ currency: string;
7989
+ amount: number;
7990
+ dealId: string;
7991
+ description?: string | null | undefined;
7992
+ occurredAt?: string | null | undefined;
7993
+ }, {
7994
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
7995
+ createdAt: string;
7996
+ updatedAt: string;
7997
+ organizationId: string;
7998
+ amount: number;
7999
+ dealId: string;
8000
+ description?: string | null | undefined;
8001
+ currency?: string | undefined;
8002
+ occurredAt?: string | null | undefined;
8003
+ }>;
8004
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8005
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8006
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8007
+ }, "strip", z.ZodTypeAny, {
8008
+ type: string;
8009
+ id: string;
8010
+ attributes: {
8011
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8012
+ createdAt: string;
8013
+ updatedAt: string;
8014
+ organizationId: string;
8015
+ currency: string;
8016
+ amount: number;
8017
+ dealId: string;
8018
+ description?: string | null | undefined;
8019
+ occurredAt?: string | null | undefined;
8020
+ };
8021
+ relationships?: Record<string, unknown> | undefined;
8022
+ links?: Record<string, string> | undefined;
8023
+ meta?: Record<string, unknown> | undefined;
8024
+ }, {
8025
+ type: string;
8026
+ id: string;
8027
+ attributes: {
8028
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8029
+ createdAt: string;
8030
+ updatedAt: string;
8031
+ organizationId: string;
8032
+ amount: number;
8033
+ dealId: string;
8034
+ description?: string | null | undefined;
8035
+ currency?: string | undefined;
8036
+ occurredAt?: string | null | undefined;
8037
+ };
8038
+ relationships?: Record<string, unknown> | undefined;
8039
+ links?: Record<string, string> | undefined;
8040
+ meta?: Record<string, unknown> | undefined;
8041
+ }>, "many">;
8042
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
8043
+ type: z.ZodString;
8044
+ id: z.ZodString;
8045
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8046
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8047
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8048
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8049
+ }, "strip", z.ZodTypeAny, {
8050
+ type: string;
8051
+ id: string;
8052
+ attributes?: Record<string, unknown> | undefined;
8053
+ relationships?: Record<string, unknown> | undefined;
8054
+ links?: Record<string, string> | undefined;
8055
+ meta?: Record<string, unknown> | undefined;
8056
+ }, {
8057
+ type: string;
8058
+ id: string;
8059
+ attributes?: Record<string, unknown> | undefined;
8060
+ relationships?: Record<string, unknown> | undefined;
8061
+ links?: Record<string, string> | undefined;
8062
+ meta?: Record<string, unknown> | undefined;
8063
+ }>, "many">>;
8064
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8065
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8066
+ }, "strip", z.ZodTypeAny, {
8067
+ data: {
8068
+ type: string;
8069
+ id: string;
8070
+ attributes: {
8071
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8072
+ createdAt: string;
8073
+ updatedAt: string;
8074
+ organizationId: string;
8075
+ currency: string;
8076
+ amount: number;
8077
+ dealId: string;
8078
+ description?: string | null | undefined;
8079
+ occurredAt?: string | null | undefined;
8080
+ };
8081
+ relationships?: Record<string, unknown> | undefined;
8082
+ links?: Record<string, string> | undefined;
8083
+ meta?: Record<string, unknown> | undefined;
8084
+ }[];
8085
+ links?: Record<string, string> | undefined;
8086
+ meta?: Record<string, unknown> | undefined;
8087
+ included?: {
8088
+ type: string;
8089
+ id: string;
8090
+ attributes?: Record<string, unknown> | undefined;
8091
+ relationships?: Record<string, unknown> | undefined;
8092
+ links?: Record<string, string> | undefined;
8093
+ meta?: Record<string, unknown> | undefined;
8094
+ }[] | undefined;
8095
+ }, {
8096
+ data: {
8097
+ type: string;
8098
+ id: string;
8099
+ attributes: {
8100
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8101
+ createdAt: string;
8102
+ updatedAt: string;
8103
+ organizationId: string;
8104
+ amount: number;
8105
+ dealId: string;
8106
+ description?: string | null | undefined;
8107
+ currency?: string | undefined;
8108
+ occurredAt?: string | null | undefined;
8109
+ };
8110
+ relationships?: Record<string, unknown> | undefined;
8111
+ links?: Record<string, string> | undefined;
8112
+ meta?: Record<string, unknown> | undefined;
8113
+ }[];
8114
+ links?: Record<string, string> | undefined;
8115
+ meta?: Record<string, unknown> | undefined;
8116
+ included?: {
8117
+ type: string;
8118
+ id: string;
8119
+ attributes?: Record<string, unknown> | undefined;
8120
+ relationships?: Record<string, unknown> | undefined;
8121
+ links?: Record<string, string> | undefined;
8122
+ meta?: Record<string, unknown> | undefined;
8123
+ }[] | undefined;
8124
+ }>;
8125
+ 401: z.ZodObject<{
8126
+ errors: z.ZodArray<z.ZodObject<{
8127
+ id: z.ZodOptional<z.ZodString>;
8128
+ links: z.ZodOptional<z.ZodObject<{
8129
+ about: z.ZodOptional<z.ZodString>;
8130
+ }, "strip", z.ZodTypeAny, {
8131
+ about?: string | undefined;
8132
+ }, {
8133
+ about?: string | undefined;
8134
+ }>>;
8135
+ status: z.ZodOptional<z.ZodString>;
8136
+ code: z.ZodOptional<z.ZodString>;
8137
+ title: z.ZodOptional<z.ZodString>;
8138
+ detail: z.ZodOptional<z.ZodString>;
8139
+ source: z.ZodOptional<z.ZodObject<{
8140
+ pointer: z.ZodOptional<z.ZodString>;
8141
+ parameter: z.ZodOptional<z.ZodString>;
8142
+ }, "strip", z.ZodTypeAny, {
8143
+ pointer?: string | undefined;
8144
+ parameter?: string | undefined;
8145
+ }, {
8146
+ pointer?: string | undefined;
8147
+ parameter?: string | undefined;
8148
+ }>>;
8149
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8150
+ }, "strip", z.ZodTypeAny, {
8151
+ status?: string | undefined;
8152
+ code?: string | undefined;
8153
+ id?: string | undefined;
8154
+ links?: {
8155
+ about?: string | undefined;
8156
+ } | undefined;
8157
+ meta?: Record<string, unknown> | undefined;
8158
+ title?: string | undefined;
8159
+ detail?: string | undefined;
8160
+ source?: {
8161
+ pointer?: string | undefined;
8162
+ parameter?: string | undefined;
8163
+ } | undefined;
8164
+ }, {
8165
+ status?: string | undefined;
8166
+ code?: string | undefined;
8167
+ id?: string | undefined;
8168
+ links?: {
8169
+ about?: string | undefined;
8170
+ } | undefined;
8171
+ meta?: Record<string, unknown> | undefined;
8172
+ title?: string | undefined;
8173
+ detail?: string | undefined;
8174
+ source?: {
8175
+ pointer?: string | undefined;
8176
+ parameter?: string | undefined;
8177
+ } | undefined;
8178
+ }>, "many">;
8179
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8180
+ }, "strip", z.ZodTypeAny, {
8181
+ errors: {
8182
+ status?: string | undefined;
8183
+ code?: string | undefined;
8184
+ id?: string | undefined;
8185
+ links?: {
8186
+ about?: string | undefined;
8187
+ } | undefined;
8188
+ meta?: Record<string, unknown> | undefined;
8189
+ title?: string | undefined;
8190
+ detail?: string | undefined;
8191
+ source?: {
8192
+ pointer?: string | undefined;
8193
+ parameter?: string | undefined;
8194
+ } | undefined;
8195
+ }[];
8196
+ meta?: Record<string, unknown> | undefined;
8197
+ }, {
8198
+ errors: {
8199
+ status?: string | undefined;
8200
+ code?: string | undefined;
8201
+ id?: string | undefined;
8202
+ links?: {
8203
+ about?: string | undefined;
8204
+ } | undefined;
8205
+ meta?: Record<string, unknown> | undefined;
8206
+ title?: string | undefined;
8207
+ detail?: string | undefined;
8208
+ source?: {
8209
+ pointer?: string | undefined;
8210
+ parameter?: string | undefined;
8211
+ } | undefined;
8212
+ }[];
8213
+ meta?: Record<string, unknown> | undefined;
8214
+ }>;
8215
+ 403: z.ZodObject<{
8216
+ errors: z.ZodArray<z.ZodObject<{
8217
+ id: z.ZodOptional<z.ZodString>;
8218
+ links: z.ZodOptional<z.ZodObject<{
8219
+ about: z.ZodOptional<z.ZodString>;
8220
+ }, "strip", z.ZodTypeAny, {
8221
+ about?: string | undefined;
8222
+ }, {
8223
+ about?: string | undefined;
8224
+ }>>;
8225
+ status: z.ZodOptional<z.ZodString>;
8226
+ code: z.ZodOptional<z.ZodString>;
8227
+ title: z.ZodOptional<z.ZodString>;
8228
+ detail: z.ZodOptional<z.ZodString>;
8229
+ source: z.ZodOptional<z.ZodObject<{
8230
+ pointer: z.ZodOptional<z.ZodString>;
8231
+ parameter: z.ZodOptional<z.ZodString>;
8232
+ }, "strip", z.ZodTypeAny, {
8233
+ pointer?: string | undefined;
8234
+ parameter?: string | undefined;
8235
+ }, {
8236
+ pointer?: string | undefined;
8237
+ parameter?: string | undefined;
8238
+ }>>;
8239
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8240
+ }, "strip", z.ZodTypeAny, {
8241
+ status?: string | undefined;
8242
+ code?: string | undefined;
8243
+ id?: string | undefined;
8244
+ links?: {
8245
+ about?: string | undefined;
8246
+ } | undefined;
8247
+ meta?: Record<string, unknown> | undefined;
8248
+ title?: string | undefined;
8249
+ detail?: string | undefined;
8250
+ source?: {
8251
+ pointer?: string | undefined;
8252
+ parameter?: string | undefined;
8253
+ } | undefined;
8254
+ }, {
8255
+ status?: string | undefined;
8256
+ code?: string | undefined;
8257
+ id?: string | undefined;
8258
+ links?: {
8259
+ about?: string | undefined;
8260
+ } | undefined;
8261
+ meta?: Record<string, unknown> | undefined;
8262
+ title?: string | undefined;
8263
+ detail?: string | undefined;
8264
+ source?: {
8265
+ pointer?: string | undefined;
8266
+ parameter?: string | undefined;
8267
+ } | undefined;
8268
+ }>, "many">;
8269
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8270
+ }, "strip", z.ZodTypeAny, {
8271
+ errors: {
8272
+ status?: string | undefined;
8273
+ code?: string | undefined;
8274
+ id?: string | undefined;
8275
+ links?: {
8276
+ about?: string | undefined;
8277
+ } | undefined;
8278
+ meta?: Record<string, unknown> | undefined;
8279
+ title?: string | undefined;
8280
+ detail?: string | undefined;
8281
+ source?: {
8282
+ pointer?: string | undefined;
8283
+ parameter?: string | undefined;
8284
+ } | undefined;
8285
+ }[];
8286
+ meta?: Record<string, unknown> | undefined;
8287
+ }, {
8288
+ errors: {
8289
+ status?: string | undefined;
8290
+ code?: string | undefined;
8291
+ id?: string | undefined;
8292
+ links?: {
8293
+ about?: string | undefined;
8294
+ } | undefined;
8295
+ meta?: Record<string, unknown> | undefined;
8296
+ title?: string | undefined;
8297
+ detail?: string | undefined;
8298
+ source?: {
8299
+ pointer?: string | undefined;
8300
+ parameter?: string | undefined;
8301
+ } | undefined;
8302
+ }[];
8303
+ meta?: Record<string, unknown> | undefined;
8304
+ }>;
8305
+ 404: z.ZodObject<{
8306
+ errors: z.ZodArray<z.ZodObject<{
8307
+ id: z.ZodOptional<z.ZodString>;
8308
+ links: z.ZodOptional<z.ZodObject<{
8309
+ about: z.ZodOptional<z.ZodString>;
8310
+ }, "strip", z.ZodTypeAny, {
8311
+ about?: string | undefined;
8312
+ }, {
8313
+ about?: string | undefined;
8314
+ }>>;
8315
+ status: z.ZodOptional<z.ZodString>;
8316
+ code: z.ZodOptional<z.ZodString>;
8317
+ title: z.ZodOptional<z.ZodString>;
8318
+ detail: z.ZodOptional<z.ZodString>;
8319
+ source: z.ZodOptional<z.ZodObject<{
8320
+ pointer: z.ZodOptional<z.ZodString>;
8321
+ parameter: z.ZodOptional<z.ZodString>;
8322
+ }, "strip", z.ZodTypeAny, {
8323
+ pointer?: string | undefined;
8324
+ parameter?: string | undefined;
8325
+ }, {
8326
+ pointer?: string | undefined;
8327
+ parameter?: string | undefined;
8328
+ }>>;
8329
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8330
+ }, "strip", z.ZodTypeAny, {
8331
+ status?: string | undefined;
8332
+ code?: string | undefined;
8333
+ id?: string | undefined;
8334
+ links?: {
8335
+ about?: string | undefined;
8336
+ } | undefined;
8337
+ meta?: Record<string, unknown> | undefined;
8338
+ title?: string | undefined;
8339
+ detail?: string | undefined;
8340
+ source?: {
8341
+ pointer?: string | undefined;
8342
+ parameter?: string | undefined;
8343
+ } | undefined;
8344
+ }, {
8345
+ status?: string | undefined;
8346
+ code?: string | undefined;
8347
+ id?: string | undefined;
8348
+ links?: {
8349
+ about?: string | undefined;
8350
+ } | undefined;
8351
+ meta?: Record<string, unknown> | undefined;
8352
+ title?: string | undefined;
8353
+ detail?: string | undefined;
8354
+ source?: {
8355
+ pointer?: string | undefined;
8356
+ parameter?: string | undefined;
8357
+ } | undefined;
8358
+ }>, "many">;
8359
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8360
+ }, "strip", z.ZodTypeAny, {
8361
+ errors: {
8362
+ status?: string | undefined;
8363
+ code?: string | undefined;
8364
+ id?: string | undefined;
8365
+ links?: {
8366
+ about?: string | undefined;
8367
+ } | undefined;
8368
+ meta?: Record<string, unknown> | undefined;
8369
+ title?: string | undefined;
8370
+ detail?: string | undefined;
8371
+ source?: {
8372
+ pointer?: string | undefined;
8373
+ parameter?: string | undefined;
8374
+ } | undefined;
8375
+ }[];
8376
+ meta?: Record<string, unknown> | undefined;
8377
+ }, {
8378
+ errors: {
8379
+ status?: string | undefined;
8380
+ code?: string | undefined;
8381
+ id?: string | undefined;
8382
+ links?: {
8383
+ about?: string | undefined;
8384
+ } | undefined;
8385
+ meta?: Record<string, unknown> | undefined;
8386
+ title?: string | undefined;
8387
+ detail?: string | undefined;
8388
+ source?: {
8389
+ pointer?: string | undefined;
8390
+ parameter?: string | undefined;
8391
+ } | undefined;
8392
+ }[];
8393
+ meta?: Record<string, unknown> | undefined;
8394
+ }>;
8395
+ };
8396
+ };
8397
+ createTradeCostLine: {
8398
+ pathParams: z.ZodObject<{
8399
+ organizationId: z.ZodString;
8400
+ id: z.ZodString;
8401
+ }, "strip", z.ZodTypeAny, {
8402
+ id: string;
8403
+ organizationId: string;
8404
+ }, {
8405
+ id: string;
8406
+ organizationId: string;
8407
+ }>;
8408
+ summary: "Add a landed-cost line item to a deal";
8409
+ method: "POST";
8410
+ body: z.ZodObject<{
8411
+ data: z.ZodObject<{
8412
+ type: z.ZodLiteral<"trade-cost-lines">;
8413
+ attributes: z.ZodObject<{
8414
+ type: z.ZodEnum<["storage", "handling", "inspection", "bagging", "finance", "shrinkage", "other"]>;
8415
+ amount: z.ZodNumber;
8416
+ currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
8417
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8418
+ occurredAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8419
+ }, "strip", z.ZodTypeAny, {
8420
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8421
+ currency: string;
8422
+ amount: number;
8423
+ description?: string | null | undefined;
8424
+ occurredAt?: string | null | undefined;
8425
+ }, {
8426
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8427
+ amount: number;
8428
+ description?: string | null | undefined;
8429
+ currency?: string | undefined;
8430
+ occurredAt?: string | null | undefined;
8431
+ }>;
8432
+ }, "strip", z.ZodTypeAny, {
8433
+ type: "trade-cost-lines";
8434
+ attributes: {
8435
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8436
+ currency: string;
8437
+ amount: number;
8438
+ description?: string | null | undefined;
8439
+ occurredAt?: string | null | undefined;
8440
+ };
8441
+ }, {
8442
+ type: "trade-cost-lines";
8443
+ attributes: {
8444
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8445
+ amount: number;
8446
+ description?: string | null | undefined;
8447
+ currency?: string | undefined;
8448
+ occurredAt?: string | null | undefined;
8449
+ };
8450
+ }>;
8451
+ }, "strip", z.ZodTypeAny, {
8452
+ data: {
8453
+ type: "trade-cost-lines";
8454
+ attributes: {
8455
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8456
+ currency: string;
8457
+ amount: number;
8458
+ description?: string | null | undefined;
8459
+ occurredAt?: string | null | undefined;
8460
+ };
8461
+ };
8462
+ }, {
8463
+ data: {
8464
+ type: "trade-cost-lines";
8465
+ attributes: {
8466
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8467
+ amount: number;
8468
+ description?: string | null | undefined;
8469
+ currency?: string | undefined;
8470
+ occurredAt?: string | null | undefined;
8471
+ };
8472
+ };
8473
+ }>;
8474
+ path: "/organizations/:organizationId/commodity-deals/:id/cost-lines";
8475
+ responses: {
8476
+ 201: z.ZodObject<{
8477
+ data: z.ZodObject<{
8478
+ type: z.ZodLiteral<string>;
8479
+ id: z.ZodString;
8480
+ attributes: z.ZodObject<{
8481
+ organizationId: z.ZodString;
8482
+ dealId: z.ZodString;
8483
+ type: z.ZodEnum<["storage", "handling", "inspection", "bagging", "finance", "shrinkage", "other"]>;
8484
+ amount: z.ZodNumber;
8485
+ currency: z.ZodDefault<z.ZodString>;
8486
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8487
+ occurredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8488
+ } & {
8489
+ createdAt: z.ZodString;
8490
+ updatedAt: z.ZodString;
8491
+ }, "strip", z.ZodTypeAny, {
8492
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8493
+ createdAt: string;
8494
+ updatedAt: string;
8495
+ organizationId: string;
8496
+ currency: string;
8497
+ amount: number;
8498
+ dealId: string;
8499
+ description?: string | null | undefined;
8500
+ occurredAt?: string | null | undefined;
8501
+ }, {
8502
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8503
+ createdAt: string;
8504
+ updatedAt: string;
8505
+ organizationId: string;
8506
+ amount: number;
8507
+ dealId: string;
8508
+ description?: string | null | undefined;
8509
+ currency?: string | undefined;
8510
+ occurredAt?: string | null | undefined;
8511
+ }>;
8512
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8513
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8514
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8515
+ }, "strip", z.ZodTypeAny, {
8516
+ type: string;
8517
+ id: string;
8518
+ attributes: {
8519
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8520
+ createdAt: string;
8521
+ updatedAt: string;
8522
+ organizationId: string;
8523
+ currency: string;
8524
+ amount: number;
8525
+ dealId: string;
8526
+ description?: string | null | undefined;
8527
+ occurredAt?: string | null | undefined;
8528
+ };
8529
+ relationships?: Record<string, unknown> | undefined;
8530
+ links?: Record<string, string> | undefined;
8531
+ meta?: Record<string, unknown> | undefined;
8532
+ }, {
8533
+ type: string;
8534
+ id: string;
8535
+ attributes: {
8536
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8537
+ createdAt: string;
8538
+ updatedAt: string;
8539
+ organizationId: string;
8540
+ amount: number;
8541
+ dealId: string;
8542
+ description?: string | null | undefined;
8543
+ currency?: string | undefined;
8544
+ occurredAt?: string | null | undefined;
8545
+ };
8546
+ relationships?: Record<string, unknown> | undefined;
8547
+ links?: Record<string, string> | undefined;
8548
+ meta?: Record<string, unknown> | undefined;
8549
+ }>;
8550
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
8551
+ type: z.ZodString;
8552
+ id: z.ZodString;
8553
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8554
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8555
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8556
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8557
+ }, "strip", z.ZodTypeAny, {
8558
+ type: string;
8559
+ id: string;
8560
+ attributes?: Record<string, unknown> | undefined;
8561
+ relationships?: Record<string, unknown> | undefined;
8562
+ links?: Record<string, string> | undefined;
8563
+ meta?: Record<string, unknown> | undefined;
8564
+ }, {
8565
+ type: string;
8566
+ id: string;
8567
+ attributes?: Record<string, unknown> | undefined;
8568
+ relationships?: Record<string, unknown> | undefined;
8569
+ links?: Record<string, string> | undefined;
8570
+ meta?: Record<string, unknown> | undefined;
8571
+ }>, "many">>;
8572
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8573
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8574
+ }, "strip", z.ZodTypeAny, {
8575
+ data: {
8576
+ type: string;
8577
+ id: string;
8578
+ attributes: {
8579
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8580
+ createdAt: string;
8581
+ updatedAt: string;
8582
+ organizationId: string;
8583
+ currency: string;
8584
+ amount: number;
8585
+ dealId: string;
8586
+ description?: string | null | undefined;
8587
+ occurredAt?: string | null | undefined;
8588
+ };
8589
+ relationships?: Record<string, unknown> | undefined;
8590
+ links?: Record<string, string> | undefined;
8591
+ meta?: Record<string, unknown> | undefined;
8592
+ };
8593
+ links?: Record<string, string> | undefined;
8594
+ meta?: Record<string, unknown> | undefined;
8595
+ included?: {
8596
+ type: string;
8597
+ id: string;
8598
+ attributes?: Record<string, unknown> | undefined;
8599
+ relationships?: Record<string, unknown> | undefined;
8600
+ links?: Record<string, string> | undefined;
8601
+ meta?: Record<string, unknown> | undefined;
8602
+ }[] | undefined;
8603
+ }, {
8604
+ data: {
8605
+ type: string;
8606
+ id: string;
8607
+ attributes: {
8608
+ type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
8609
+ createdAt: string;
8610
+ updatedAt: string;
8611
+ organizationId: string;
8612
+ amount: number;
8613
+ dealId: string;
8614
+ description?: string | null | undefined;
8615
+ currency?: string | undefined;
8616
+ occurredAt?: string | null | undefined;
8617
+ };
8618
+ relationships?: Record<string, unknown> | undefined;
8619
+ links?: Record<string, string> | undefined;
8620
+ meta?: Record<string, unknown> | undefined;
8621
+ };
8622
+ links?: Record<string, string> | undefined;
8623
+ meta?: Record<string, unknown> | undefined;
8624
+ included?: {
8625
+ type: string;
8626
+ id: string;
8627
+ attributes?: Record<string, unknown> | undefined;
8628
+ relationships?: Record<string, unknown> | undefined;
8629
+ links?: Record<string, string> | undefined;
8630
+ meta?: Record<string, unknown> | undefined;
8631
+ }[] | undefined;
8632
+ }>;
8633
+ 400: z.ZodObject<{
8634
+ errors: z.ZodArray<z.ZodObject<{
8635
+ id: z.ZodOptional<z.ZodString>;
8636
+ links: z.ZodOptional<z.ZodObject<{
8637
+ about: z.ZodOptional<z.ZodString>;
8638
+ }, "strip", z.ZodTypeAny, {
8639
+ about?: string | undefined;
8640
+ }, {
8641
+ about?: string | undefined;
8642
+ }>>;
8643
+ status: z.ZodOptional<z.ZodString>;
8644
+ code: z.ZodOptional<z.ZodString>;
8645
+ title: z.ZodOptional<z.ZodString>;
8646
+ detail: z.ZodOptional<z.ZodString>;
8647
+ source: z.ZodOptional<z.ZodObject<{
8648
+ pointer: z.ZodOptional<z.ZodString>;
8649
+ parameter: z.ZodOptional<z.ZodString>;
8650
+ }, "strip", z.ZodTypeAny, {
8651
+ pointer?: string | undefined;
8652
+ parameter?: string | undefined;
8653
+ }, {
8654
+ pointer?: string | undefined;
8655
+ parameter?: string | undefined;
8656
+ }>>;
8657
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8658
+ }, "strip", z.ZodTypeAny, {
8659
+ status?: string | undefined;
8660
+ code?: string | undefined;
8661
+ id?: string | undefined;
8662
+ links?: {
8663
+ about?: string | undefined;
8664
+ } | undefined;
8665
+ meta?: Record<string, unknown> | undefined;
8666
+ title?: string | undefined;
8667
+ detail?: string | undefined;
8668
+ source?: {
8669
+ pointer?: string | undefined;
8670
+ parameter?: string | undefined;
8671
+ } | undefined;
8672
+ }, {
8673
+ status?: string | undefined;
8674
+ code?: string | undefined;
8675
+ id?: string | undefined;
8676
+ links?: {
8677
+ about?: string | undefined;
8678
+ } | undefined;
8679
+ meta?: Record<string, unknown> | undefined;
8680
+ title?: string | undefined;
8681
+ detail?: string | undefined;
8682
+ source?: {
8683
+ pointer?: string | undefined;
8684
+ parameter?: string | undefined;
8685
+ } | undefined;
8686
+ }>, "many">;
8687
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8688
+ }, "strip", z.ZodTypeAny, {
8689
+ errors: {
8690
+ status?: string | undefined;
8691
+ code?: string | undefined;
8692
+ id?: string | undefined;
8693
+ links?: {
8694
+ about?: string | undefined;
8695
+ } | undefined;
8696
+ meta?: Record<string, unknown> | undefined;
8697
+ title?: string | undefined;
8698
+ detail?: string | undefined;
8699
+ source?: {
8700
+ pointer?: string | undefined;
8701
+ parameter?: string | undefined;
8702
+ } | undefined;
8703
+ }[];
8704
+ meta?: Record<string, unknown> | undefined;
8705
+ }, {
8706
+ errors: {
8707
+ status?: string | undefined;
8708
+ code?: string | undefined;
8709
+ id?: string | undefined;
8710
+ links?: {
8711
+ about?: string | undefined;
8712
+ } | undefined;
8713
+ meta?: Record<string, unknown> | undefined;
8714
+ title?: string | undefined;
8715
+ detail?: string | undefined;
8716
+ source?: {
8717
+ pointer?: string | undefined;
8718
+ parameter?: string | undefined;
8719
+ } | undefined;
8720
+ }[];
8721
+ meta?: Record<string, unknown> | undefined;
8722
+ }>;
8723
+ 401: z.ZodObject<{
8724
+ errors: z.ZodArray<z.ZodObject<{
8725
+ id: z.ZodOptional<z.ZodString>;
8726
+ links: z.ZodOptional<z.ZodObject<{
8727
+ about: z.ZodOptional<z.ZodString>;
8728
+ }, "strip", z.ZodTypeAny, {
8729
+ about?: string | undefined;
8730
+ }, {
8731
+ about?: string | undefined;
8732
+ }>>;
8733
+ status: z.ZodOptional<z.ZodString>;
8734
+ code: z.ZodOptional<z.ZodString>;
8735
+ title: z.ZodOptional<z.ZodString>;
8736
+ detail: z.ZodOptional<z.ZodString>;
8737
+ source: z.ZodOptional<z.ZodObject<{
8738
+ pointer: z.ZodOptional<z.ZodString>;
8739
+ parameter: z.ZodOptional<z.ZodString>;
8740
+ }, "strip", z.ZodTypeAny, {
8741
+ pointer?: string | undefined;
8742
+ parameter?: string | undefined;
8743
+ }, {
8744
+ pointer?: string | undefined;
8745
+ parameter?: string | undefined;
8746
+ }>>;
8747
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8748
+ }, "strip", z.ZodTypeAny, {
8749
+ status?: string | undefined;
8750
+ code?: string | undefined;
8751
+ id?: string | undefined;
8752
+ links?: {
8753
+ about?: string | undefined;
8754
+ } | undefined;
8755
+ meta?: Record<string, unknown> | undefined;
8756
+ title?: string | undefined;
8757
+ detail?: string | undefined;
8758
+ source?: {
8759
+ pointer?: string | undefined;
8760
+ parameter?: string | undefined;
8761
+ } | undefined;
8762
+ }, {
8763
+ status?: string | undefined;
8764
+ code?: string | undefined;
8765
+ id?: string | undefined;
8766
+ links?: {
8767
+ about?: string | undefined;
8768
+ } | undefined;
8769
+ meta?: Record<string, unknown> | undefined;
8770
+ title?: string | undefined;
8771
+ detail?: string | undefined;
8772
+ source?: {
8773
+ pointer?: string | undefined;
8774
+ parameter?: string | undefined;
8775
+ } | undefined;
8776
+ }>, "many">;
8777
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8778
+ }, "strip", z.ZodTypeAny, {
8779
+ errors: {
8780
+ status?: string | undefined;
8781
+ code?: string | undefined;
8782
+ id?: string | undefined;
8783
+ links?: {
8784
+ about?: string | undefined;
8785
+ } | undefined;
8786
+ meta?: Record<string, unknown> | undefined;
8787
+ title?: string | undefined;
8788
+ detail?: string | undefined;
8789
+ source?: {
8790
+ pointer?: string | undefined;
8791
+ parameter?: string | undefined;
8792
+ } | undefined;
8793
+ }[];
8794
+ meta?: Record<string, unknown> | undefined;
8795
+ }, {
8796
+ errors: {
8797
+ status?: string | undefined;
8798
+ code?: string | undefined;
8799
+ id?: string | undefined;
8800
+ links?: {
8801
+ about?: string | undefined;
8802
+ } | undefined;
8803
+ meta?: Record<string, unknown> | undefined;
8804
+ title?: string | undefined;
8805
+ detail?: string | undefined;
8806
+ source?: {
8807
+ pointer?: string | undefined;
8808
+ parameter?: string | undefined;
8809
+ } | undefined;
8810
+ }[];
8811
+ meta?: Record<string, unknown> | undefined;
8812
+ }>;
8813
+ 403: z.ZodObject<{
8814
+ errors: z.ZodArray<z.ZodObject<{
8815
+ id: z.ZodOptional<z.ZodString>;
8816
+ links: z.ZodOptional<z.ZodObject<{
8817
+ about: z.ZodOptional<z.ZodString>;
8818
+ }, "strip", z.ZodTypeAny, {
8819
+ about?: string | undefined;
8820
+ }, {
8821
+ about?: string | undefined;
8822
+ }>>;
8823
+ status: z.ZodOptional<z.ZodString>;
8824
+ code: z.ZodOptional<z.ZodString>;
8825
+ title: z.ZodOptional<z.ZodString>;
8826
+ detail: z.ZodOptional<z.ZodString>;
8827
+ source: z.ZodOptional<z.ZodObject<{
8828
+ pointer: z.ZodOptional<z.ZodString>;
8829
+ parameter: z.ZodOptional<z.ZodString>;
8830
+ }, "strip", z.ZodTypeAny, {
8831
+ pointer?: string | undefined;
8832
+ parameter?: string | undefined;
8833
+ }, {
8834
+ pointer?: string | undefined;
8835
+ parameter?: string | undefined;
8836
+ }>>;
8837
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8838
+ }, "strip", z.ZodTypeAny, {
8839
+ status?: string | undefined;
8840
+ code?: string | undefined;
8841
+ id?: string | undefined;
8842
+ links?: {
8843
+ about?: string | undefined;
8844
+ } | undefined;
8845
+ meta?: Record<string, unknown> | undefined;
8846
+ title?: string | undefined;
8847
+ detail?: string | undefined;
8848
+ source?: {
8849
+ pointer?: string | undefined;
8850
+ parameter?: string | undefined;
8851
+ } | undefined;
8852
+ }, {
8853
+ status?: string | undefined;
8854
+ code?: string | undefined;
8855
+ id?: string | undefined;
8856
+ links?: {
8857
+ about?: string | undefined;
8858
+ } | undefined;
8859
+ meta?: Record<string, unknown> | undefined;
8860
+ title?: string | undefined;
8861
+ detail?: string | undefined;
8862
+ source?: {
8863
+ pointer?: string | undefined;
8864
+ parameter?: string | undefined;
8865
+ } | undefined;
8866
+ }>, "many">;
8867
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8868
+ }, "strip", z.ZodTypeAny, {
8869
+ errors: {
8870
+ status?: string | undefined;
8871
+ code?: string | undefined;
8872
+ id?: string | undefined;
8873
+ links?: {
8874
+ about?: string | undefined;
8875
+ } | undefined;
8876
+ meta?: Record<string, unknown> | undefined;
8877
+ title?: string | undefined;
8878
+ detail?: string | undefined;
8879
+ source?: {
8880
+ pointer?: string | undefined;
8881
+ parameter?: string | undefined;
8882
+ } | undefined;
8883
+ }[];
8884
+ meta?: Record<string, unknown> | undefined;
8885
+ }, {
8886
+ errors: {
8887
+ status?: string | undefined;
8888
+ code?: string | undefined;
8889
+ id?: string | undefined;
8890
+ links?: {
8891
+ about?: string | undefined;
8892
+ } | undefined;
8893
+ meta?: Record<string, unknown> | undefined;
8894
+ title?: string | undefined;
8895
+ detail?: string | undefined;
8896
+ source?: {
8897
+ pointer?: string | undefined;
8898
+ parameter?: string | undefined;
8899
+ } | undefined;
8900
+ }[];
8901
+ meta?: Record<string, unknown> | undefined;
8902
+ }>;
8903
+ 404: z.ZodObject<{
8904
+ errors: z.ZodArray<z.ZodObject<{
8905
+ id: z.ZodOptional<z.ZodString>;
8906
+ links: z.ZodOptional<z.ZodObject<{
8907
+ about: z.ZodOptional<z.ZodString>;
8908
+ }, "strip", z.ZodTypeAny, {
8909
+ about?: string | undefined;
8910
+ }, {
8911
+ about?: string | undefined;
8912
+ }>>;
8913
+ status: z.ZodOptional<z.ZodString>;
8914
+ code: z.ZodOptional<z.ZodString>;
8915
+ title: z.ZodOptional<z.ZodString>;
8916
+ detail: z.ZodOptional<z.ZodString>;
8917
+ source: z.ZodOptional<z.ZodObject<{
8918
+ pointer: z.ZodOptional<z.ZodString>;
8919
+ parameter: z.ZodOptional<z.ZodString>;
8920
+ }, "strip", z.ZodTypeAny, {
8921
+ pointer?: string | undefined;
8922
+ parameter?: string | undefined;
8923
+ }, {
8924
+ pointer?: string | undefined;
8925
+ parameter?: string | undefined;
8926
+ }>>;
8927
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8928
+ }, "strip", z.ZodTypeAny, {
8929
+ status?: string | undefined;
8930
+ code?: string | undefined;
8931
+ id?: string | undefined;
8932
+ links?: {
8933
+ about?: string | undefined;
8934
+ } | undefined;
8935
+ meta?: Record<string, unknown> | undefined;
8936
+ title?: string | undefined;
8937
+ detail?: string | undefined;
8938
+ source?: {
8939
+ pointer?: string | undefined;
8940
+ parameter?: string | undefined;
8941
+ } | undefined;
8942
+ }, {
8943
+ status?: string | undefined;
8944
+ code?: string | undefined;
8945
+ id?: string | undefined;
8946
+ links?: {
8947
+ about?: string | undefined;
8948
+ } | undefined;
8949
+ meta?: Record<string, unknown> | undefined;
8950
+ title?: string | undefined;
8951
+ detail?: string | undefined;
8952
+ source?: {
8953
+ pointer?: string | undefined;
8954
+ parameter?: string | undefined;
8955
+ } | undefined;
8956
+ }>, "many">;
8957
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8958
+ }, "strip", z.ZodTypeAny, {
8959
+ errors: {
8960
+ status?: string | undefined;
8961
+ code?: string | undefined;
8962
+ id?: string | undefined;
8963
+ links?: {
8964
+ about?: string | undefined;
8965
+ } | undefined;
8966
+ meta?: Record<string, unknown> | undefined;
8967
+ title?: string | undefined;
8968
+ detail?: string | undefined;
8969
+ source?: {
8970
+ pointer?: string | undefined;
8971
+ parameter?: string | undefined;
8972
+ } | undefined;
8973
+ }[];
8974
+ meta?: Record<string, unknown> | undefined;
8975
+ }, {
8976
+ errors: {
8977
+ status?: string | undefined;
8978
+ code?: string | undefined;
8979
+ id?: string | undefined;
8980
+ links?: {
8981
+ about?: string | undefined;
8982
+ } | undefined;
8983
+ meta?: Record<string, unknown> | undefined;
8984
+ title?: string | undefined;
8985
+ detail?: string | undefined;
8986
+ source?: {
8987
+ pointer?: string | undefined;
8988
+ parameter?: string | undefined;
8989
+ } | undefined;
8990
+ }[];
8991
+ meta?: Record<string, unknown> | undefined;
8992
+ }>;
8993
+ };
8994
+ };
8995
+ deleteTradeCostLine: {
8996
+ pathParams: z.ZodObject<{
8997
+ organizationId: z.ZodString;
8998
+ id: z.ZodString;
8999
+ lineId: z.ZodString;
9000
+ }, "strip", z.ZodTypeAny, {
9001
+ id: string;
9002
+ organizationId: string;
9003
+ lineId: string;
9004
+ }, {
9005
+ id: string;
9006
+ organizationId: string;
9007
+ lineId: string;
9008
+ }>;
9009
+ summary: "Delete a landed-cost line item";
9010
+ method: "DELETE";
9011
+ path: "/organizations/:organizationId/commodity-deals/:id/cost-lines/:lineId";
9012
+ responses: {
9013
+ 200: z.ZodObject<{
9014
+ data: z.ZodNull;
9015
+ }, "strip", z.ZodTypeAny, {
9016
+ data: null;
9017
+ }, {
9018
+ data: null;
9019
+ }>;
9020
+ 401: z.ZodObject<{
9021
+ errors: z.ZodArray<z.ZodObject<{
9022
+ id: z.ZodOptional<z.ZodString>;
9023
+ links: z.ZodOptional<z.ZodObject<{
9024
+ about: z.ZodOptional<z.ZodString>;
9025
+ }, "strip", z.ZodTypeAny, {
9026
+ about?: string | undefined;
9027
+ }, {
9028
+ about?: string | undefined;
9029
+ }>>;
9030
+ status: z.ZodOptional<z.ZodString>;
9031
+ code: z.ZodOptional<z.ZodString>;
9032
+ title: z.ZodOptional<z.ZodString>;
9033
+ detail: z.ZodOptional<z.ZodString>;
9034
+ source: z.ZodOptional<z.ZodObject<{
9035
+ pointer: z.ZodOptional<z.ZodString>;
9036
+ parameter: z.ZodOptional<z.ZodString>;
9037
+ }, "strip", z.ZodTypeAny, {
9038
+ pointer?: string | undefined;
9039
+ parameter?: string | undefined;
9040
+ }, {
9041
+ pointer?: string | undefined;
9042
+ parameter?: string | undefined;
9043
+ }>>;
9044
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9045
+ }, "strip", z.ZodTypeAny, {
9046
+ status?: string | undefined;
9047
+ code?: string | undefined;
9048
+ id?: string | undefined;
9049
+ links?: {
9050
+ about?: string | undefined;
9051
+ } | undefined;
9052
+ meta?: Record<string, unknown> | undefined;
9053
+ title?: string | undefined;
9054
+ detail?: string | undefined;
9055
+ source?: {
9056
+ pointer?: string | undefined;
9057
+ parameter?: string | undefined;
9058
+ } | undefined;
9059
+ }, {
9060
+ status?: string | undefined;
9061
+ code?: string | undefined;
9062
+ id?: string | undefined;
9063
+ links?: {
9064
+ about?: string | undefined;
9065
+ } | undefined;
9066
+ meta?: Record<string, unknown> | undefined;
9067
+ title?: string | undefined;
9068
+ detail?: string | undefined;
9069
+ source?: {
9070
+ pointer?: string | undefined;
9071
+ parameter?: string | undefined;
9072
+ } | undefined;
9073
+ }>, "many">;
9074
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9075
+ }, "strip", z.ZodTypeAny, {
9076
+ errors: {
9077
+ status?: string | undefined;
9078
+ code?: string | undefined;
9079
+ id?: string | undefined;
9080
+ links?: {
9081
+ about?: string | undefined;
9082
+ } | undefined;
9083
+ meta?: Record<string, unknown> | undefined;
9084
+ title?: string | undefined;
9085
+ detail?: string | undefined;
9086
+ source?: {
9087
+ pointer?: string | undefined;
9088
+ parameter?: string | undefined;
9089
+ } | undefined;
9090
+ }[];
9091
+ meta?: Record<string, unknown> | undefined;
9092
+ }, {
9093
+ errors: {
9094
+ status?: string | undefined;
9095
+ code?: string | undefined;
9096
+ id?: string | undefined;
9097
+ links?: {
9098
+ about?: string | undefined;
9099
+ } | undefined;
9100
+ meta?: Record<string, unknown> | undefined;
9101
+ title?: string | undefined;
9102
+ detail?: string | undefined;
9103
+ source?: {
9104
+ pointer?: string | undefined;
9105
+ parameter?: string | undefined;
9106
+ } | undefined;
9107
+ }[];
9108
+ meta?: Record<string, unknown> | undefined;
9109
+ }>;
9110
+ 403: z.ZodObject<{
9111
+ errors: z.ZodArray<z.ZodObject<{
9112
+ id: z.ZodOptional<z.ZodString>;
9113
+ links: z.ZodOptional<z.ZodObject<{
9114
+ about: z.ZodOptional<z.ZodString>;
9115
+ }, "strip", z.ZodTypeAny, {
9116
+ about?: string | undefined;
9117
+ }, {
9118
+ about?: string | undefined;
9119
+ }>>;
9120
+ status: z.ZodOptional<z.ZodString>;
9121
+ code: z.ZodOptional<z.ZodString>;
9122
+ title: z.ZodOptional<z.ZodString>;
9123
+ detail: z.ZodOptional<z.ZodString>;
9124
+ source: z.ZodOptional<z.ZodObject<{
9125
+ pointer: z.ZodOptional<z.ZodString>;
9126
+ parameter: z.ZodOptional<z.ZodString>;
9127
+ }, "strip", z.ZodTypeAny, {
9128
+ pointer?: string | undefined;
9129
+ parameter?: string | undefined;
9130
+ }, {
9131
+ pointer?: string | undefined;
9132
+ parameter?: string | undefined;
9133
+ }>>;
9134
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9135
+ }, "strip", z.ZodTypeAny, {
9136
+ status?: string | undefined;
9137
+ code?: string | undefined;
9138
+ id?: string | undefined;
9139
+ links?: {
9140
+ about?: string | undefined;
9141
+ } | undefined;
9142
+ meta?: Record<string, unknown> | undefined;
9143
+ title?: string | undefined;
9144
+ detail?: string | undefined;
9145
+ source?: {
9146
+ pointer?: string | undefined;
9147
+ parameter?: string | undefined;
9148
+ } | undefined;
9149
+ }, {
9150
+ status?: string | undefined;
9151
+ code?: string | undefined;
9152
+ id?: string | undefined;
9153
+ links?: {
9154
+ about?: string | undefined;
9155
+ } | undefined;
9156
+ meta?: Record<string, unknown> | undefined;
9157
+ title?: string | undefined;
9158
+ detail?: string | undefined;
9159
+ source?: {
9160
+ pointer?: string | undefined;
9161
+ parameter?: string | undefined;
9162
+ } | undefined;
9163
+ }>, "many">;
9164
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9165
+ }, "strip", z.ZodTypeAny, {
9166
+ errors: {
9167
+ status?: string | undefined;
9168
+ code?: string | undefined;
9169
+ id?: string | undefined;
9170
+ links?: {
9171
+ about?: string | undefined;
9172
+ } | undefined;
9173
+ meta?: Record<string, unknown> | undefined;
9174
+ title?: string | undefined;
9175
+ detail?: string | undefined;
9176
+ source?: {
9177
+ pointer?: string | undefined;
9178
+ parameter?: string | undefined;
9179
+ } | undefined;
9180
+ }[];
9181
+ meta?: Record<string, unknown> | undefined;
9182
+ }, {
9183
+ errors: {
9184
+ status?: string | undefined;
9185
+ code?: string | undefined;
9186
+ id?: string | undefined;
9187
+ links?: {
9188
+ about?: string | undefined;
9189
+ } | undefined;
9190
+ meta?: Record<string, unknown> | undefined;
9191
+ title?: string | undefined;
9192
+ detail?: string | undefined;
9193
+ source?: {
9194
+ pointer?: string | undefined;
9195
+ parameter?: string | undefined;
9196
+ } | undefined;
9197
+ }[];
9198
+ meta?: Record<string, unknown> | undefined;
9199
+ }>;
9200
+ 404: z.ZodObject<{
9201
+ errors: z.ZodArray<z.ZodObject<{
9202
+ id: z.ZodOptional<z.ZodString>;
9203
+ links: z.ZodOptional<z.ZodObject<{
9204
+ about: z.ZodOptional<z.ZodString>;
9205
+ }, "strip", z.ZodTypeAny, {
9206
+ about?: string | undefined;
9207
+ }, {
9208
+ about?: string | undefined;
9209
+ }>>;
9210
+ status: z.ZodOptional<z.ZodString>;
9211
+ code: z.ZodOptional<z.ZodString>;
9212
+ title: z.ZodOptional<z.ZodString>;
9213
+ detail: z.ZodOptional<z.ZodString>;
9214
+ source: z.ZodOptional<z.ZodObject<{
9215
+ pointer: z.ZodOptional<z.ZodString>;
9216
+ parameter: z.ZodOptional<z.ZodString>;
9217
+ }, "strip", z.ZodTypeAny, {
9218
+ pointer?: string | undefined;
9219
+ parameter?: string | undefined;
9220
+ }, {
9221
+ pointer?: string | undefined;
9222
+ parameter?: string | undefined;
9223
+ }>>;
9224
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9225
+ }, "strip", z.ZodTypeAny, {
9226
+ status?: string | undefined;
9227
+ code?: string | undefined;
9228
+ id?: string | undefined;
9229
+ links?: {
9230
+ about?: string | undefined;
9231
+ } | undefined;
9232
+ meta?: Record<string, unknown> | undefined;
9233
+ title?: string | undefined;
9234
+ detail?: string | undefined;
9235
+ source?: {
9236
+ pointer?: string | undefined;
9237
+ parameter?: string | undefined;
9238
+ } | undefined;
9239
+ }, {
9240
+ status?: string | undefined;
9241
+ code?: string | undefined;
9242
+ id?: string | undefined;
9243
+ links?: {
9244
+ about?: string | undefined;
9245
+ } | undefined;
9246
+ meta?: Record<string, unknown> | undefined;
9247
+ title?: string | undefined;
9248
+ detail?: string | undefined;
9249
+ source?: {
9250
+ pointer?: string | undefined;
9251
+ parameter?: string | undefined;
9252
+ } | undefined;
9253
+ }>, "many">;
9254
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9255
+ }, "strip", z.ZodTypeAny, {
9256
+ errors: {
9257
+ status?: string | undefined;
9258
+ code?: string | undefined;
9259
+ id?: string | undefined;
9260
+ links?: {
9261
+ about?: string | undefined;
9262
+ } | undefined;
9263
+ meta?: Record<string, unknown> | undefined;
9264
+ title?: string | undefined;
9265
+ detail?: string | undefined;
9266
+ source?: {
9267
+ pointer?: string | undefined;
9268
+ parameter?: string | undefined;
9269
+ } | undefined;
9270
+ }[];
9271
+ meta?: Record<string, unknown> | undefined;
9272
+ }, {
9273
+ errors: {
9274
+ status?: string | undefined;
9275
+ code?: string | undefined;
9276
+ id?: string | undefined;
9277
+ links?: {
9278
+ about?: string | undefined;
9279
+ } | undefined;
9280
+ meta?: Record<string, unknown> | undefined;
9281
+ title?: string | undefined;
9282
+ detail?: string | undefined;
9283
+ source?: {
9284
+ pointer?: string | undefined;
9285
+ parameter?: string | undefined;
9286
+ } | undefined;
9287
+ }[];
9288
+ meta?: Record<string, unknown> | undefined;
9289
+ }>;
9290
+ };
9291
+ };
7953
9292
  };
7954
9293
  //# sourceMappingURL=commodity-deals.routes.d.ts.map