@shophost/rest-api 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shophost/rest-api",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
package/src/contract.d.ts CHANGED
@@ -134,13 +134,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
134
134
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
135
135
  headers?: {} | undefined;
136
136
  }) => Promise<{
137
- status: 404;
138
- body: {
139
- message: string;
140
- status: number;
141
- };
142
- headers: Headers;
143
- } | {
144
137
  status: 200;
145
138
  body: {
146
139
  id: string;
@@ -208,6 +201,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
208
201
  } | null | undefined;
209
202
  };
210
203
  headers: Headers;
204
+ } | {
205
+ status: 404;
206
+ body: {
207
+ message: string;
208
+ status: number;
209
+ };
210
+ headers: Headers;
211
211
  } | {
212
212
  status: 400 | 401 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
213
213
  body: unknown;
@@ -317,7 +317,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
317
317
  };
318
318
  headers: Headers;
319
319
  } | {
320
- status: 404 | 200 | 401 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
320
+ status: 200 | 404 | 401 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
321
321
  body: unknown;
322
322
  headers: Headers;
323
323
  }>;
@@ -385,13 +385,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
385
385
  logoId?: string | null | undefined;
386
386
  } | undefined;
387
387
  }) => Promise<{
388
- status: 404;
389
- body: {
390
- message: string;
391
- status: number;
392
- };
393
- headers: Headers;
394
- } | {
395
388
  status: 200;
396
389
  body: {
397
390
  id: string;
@@ -459,6 +452,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
459
452
  } | null | undefined;
460
453
  };
461
454
  headers: Headers;
455
+ } | {
456
+ status: 404;
457
+ body: {
458
+ message: string;
459
+ status: number;
460
+ };
461
+ headers: Headers;
462
462
  } | {
463
463
  status: 400 | 401 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
464
464
  body: unknown;
@@ -652,13 +652,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
652
652
  locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | null | undefined;
653
653
  } | undefined;
654
654
  }) => Promise<{
655
- status: 404;
656
- body: {
657
- message: string;
658
- status: number;
659
- };
660
- headers: Headers;
661
- } | {
662
655
  status: 200;
663
656
  body: {
664
657
  id: string;
@@ -689,6 +682,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
689
682
  } | null | undefined;
690
683
  };
691
684
  headers: Headers;
685
+ } | {
686
+ status: 404;
687
+ body: {
688
+ message: string;
689
+ status: number;
690
+ };
691
+ headers: Headers;
692
692
  } | {
693
693
  status: 401;
694
694
  body: {
@@ -728,13 +728,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
728
728
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
729
729
  headers?: {} | undefined;
730
730
  }) => Promise<{
731
- status: 404;
732
- body: {
733
- message: string;
734
- status: number;
735
- };
736
- headers: Headers;
737
- } | {
738
731
  status: 200;
739
732
  body: {
740
733
  id: string;
@@ -753,6 +746,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
753
746
  } | null | undefined;
754
747
  };
755
748
  headers: Headers;
749
+ } | {
750
+ status: 404;
751
+ body: {
752
+ message: string;
753
+ status: number;
754
+ };
755
+ headers: Headers;
756
756
  } | {
757
757
  status: 400;
758
758
  body: {
@@ -837,7 +837,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
837
837
  };
838
838
  headers: Headers;
839
839
  } | {
840
- status: 404 | 200 | 400 | 401 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
840
+ status: 200 | 404 | 400 | 401 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
841
841
  body: unknown;
842
842
  headers: Headers;
843
843
  }>;
@@ -1051,13 +1051,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1051
1051
  locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | null | undefined;
1052
1052
  } | undefined;
1053
1053
  }) => Promise<{
1054
- status: 404;
1055
- body: {
1056
- message: string;
1057
- status: number;
1058
- };
1059
- headers: Headers;
1060
- } | {
1061
1054
  status: 200;
1062
1055
  body: {
1063
1056
  translations: {
@@ -1092,6 +1085,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1092
1085
  publishedAt?: Date | null | undefined;
1093
1086
  };
1094
1087
  headers: Headers;
1088
+ } | {
1089
+ status: 404;
1090
+ body: {
1091
+ message: string;
1092
+ status: number;
1093
+ };
1094
+ headers: Headers;
1095
1095
  } | {
1096
1096
  status: 401;
1097
1097
  body: {
@@ -1132,13 +1132,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1132
1132
  imageId?: string | null | undefined;
1133
1133
  } | undefined;
1134
1134
  }) => Promise<{
1135
- status: 404;
1136
- body: {
1137
- message: string;
1138
- status: number;
1139
- };
1140
- headers: Headers;
1141
- } | {
1142
1135
  status: 200;
1143
1136
  body: {
1144
1137
  translations: {
@@ -1159,6 +1152,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1159
1152
  publishedAt?: Date | null | undefined;
1160
1153
  };
1161
1154
  headers: Headers;
1155
+ } | {
1156
+ status: 404;
1157
+ body: {
1158
+ message: string;
1159
+ status: number;
1160
+ };
1161
+ headers: Headers;
1162
1162
  } | {
1163
1163
  status: 400;
1164
1164
  body: {
@@ -1190,13 +1190,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1190
1190
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1191
1191
  headers?: {} | undefined;
1192
1192
  }) => Promise<{
1193
- status: 404;
1194
- body: {
1195
- message: string;
1196
- status: number;
1197
- };
1198
- headers: Headers;
1199
- } | {
1200
1193
  status: 200;
1201
1194
  body: {
1202
1195
  translations: {
@@ -1217,6 +1210,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1217
1210
  publishedAt?: Date | null | undefined;
1218
1211
  };
1219
1212
  headers: Headers;
1213
+ } | {
1214
+ status: 404;
1215
+ body: {
1216
+ message: string;
1217
+ status: number;
1218
+ };
1219
+ headers: Headers;
1220
1220
  } | {
1221
1221
  status: 400;
1222
1222
  body: {
@@ -1362,6 +1362,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1362
1362
  }[] | undefined;
1363
1363
  }[] | undefined;
1364
1364
  manufacturerId?: string | null | undefined;
1365
+ metadata?: Record<string, string> | null | undefined;
1365
1366
  } | {
1366
1367
  id: string;
1367
1368
  createdAt: Date;
@@ -1397,6 +1398,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1397
1398
  url: string;
1398
1399
  }[] | undefined;
1399
1400
  manufacturerId?: string | null | undefined;
1401
+ metadata?: Record<string, string> | null | undefined;
1400
1402
  })[];
1401
1403
  };
1402
1404
  headers: Headers;
@@ -1433,13 +1435,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1433
1435
  locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | null | undefined;
1434
1436
  } | undefined;
1435
1437
  }) => Promise<{
1436
- status: 404;
1437
- body: {
1438
- message: string;
1439
- status: number;
1440
- };
1441
- headers: Headers;
1442
- } | {
1443
1438
  status: 200;
1444
1439
  body: {
1445
1440
  id: string;
@@ -1497,6 +1492,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1497
1492
  }[] | undefined;
1498
1493
  }[] | undefined;
1499
1494
  manufacturerId?: string | null | undefined;
1495
+ metadata?: Record<string, string> | null | undefined;
1500
1496
  } | {
1501
1497
  id: string;
1502
1498
  createdAt: Date;
@@ -1532,6 +1528,14 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1532
1528
  url: string;
1533
1529
  }[] | undefined;
1534
1530
  manufacturerId?: string | null | undefined;
1531
+ metadata?: Record<string, string> | null | undefined;
1532
+ };
1533
+ headers: Headers;
1534
+ } | {
1535
+ status: 404;
1536
+ body: {
1537
+ message: string;
1538
+ status: number;
1535
1539
  };
1536
1540
  headers: Headers;
1537
1541
  } | {
@@ -1592,15 +1596,9 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1592
1596
  }[] | undefined;
1593
1597
  categories?: string[] | undefined;
1594
1598
  manufacturerId?: string | null | undefined;
1599
+ metadata?: Record<string, string> | null | undefined;
1595
1600
  } | undefined;
1596
1601
  }) => Promise<{
1597
- status: 404;
1598
- body: {
1599
- message: string;
1600
- status: number;
1601
- };
1602
- headers: Headers;
1603
- } | {
1604
1602
  status: 200;
1605
1603
  body: {
1606
1604
  id: string;
@@ -1658,6 +1656,14 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1658
1656
  }[] | undefined;
1659
1657
  }[] | undefined;
1660
1658
  manufacturerId?: string | null | undefined;
1659
+ metadata?: Record<string, string> | null | undefined;
1660
+ };
1661
+ headers: Headers;
1662
+ } | {
1663
+ status: 404;
1664
+ body: {
1665
+ message: string;
1666
+ status: number;
1661
1667
  };
1662
1668
  headers: Headers;
1663
1669
  } | {
@@ -1719,6 +1725,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1719
1725
  }[] | undefined;
1720
1726
  categories?: string[] | undefined;
1721
1727
  manufacturerId?: string | null | undefined;
1728
+ metadata?: Record<string, string> | null | undefined;
1722
1729
  };
1723
1730
  cache?: RequestCache | undefined;
1724
1731
  fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
@@ -1804,6 +1811,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1804
1811
  }[] | undefined;
1805
1812
  }[] | undefined;
1806
1813
  manufacturerId?: string | null | undefined;
1814
+ metadata?: Record<string, string> | null | undefined;
1807
1815
  };
1808
1816
  headers: Headers;
1809
1817
  } | {
@@ -1823,13 +1831,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1823
1831
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1824
1832
  headers?: {} | undefined;
1825
1833
  }) => Promise<{
1826
- status: 404;
1827
- body: {
1828
- message: string;
1829
- status: number;
1830
- };
1831
- headers: Headers;
1832
- } | {
1833
1834
  status: 200;
1834
1835
  body: {
1835
1836
  id: string;
@@ -1887,6 +1888,14 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
1887
1888
  }[] | undefined;
1888
1889
  }[] | undefined;
1889
1890
  manufacturerId?: string | null | undefined;
1891
+ metadata?: Record<string, string> | null | undefined;
1892
+ };
1893
+ headers: Headers;
1894
+ } | {
1895
+ status: 404;
1896
+ body: {
1897
+ message: string;
1898
+ status: number;
1890
1899
  };
1891
1900
  headers: Headers;
1892
1901
  } | {
@@ -2033,6 +2042,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
2033
2042
  }[] | undefined;
2034
2043
  }[] | undefined;
2035
2044
  manufacturerId?: string | null | undefined;
2045
+ metadata?: Record<string, string> | null | undefined;
2036
2046
  }[];
2037
2047
  };
2038
2048
  headers: Headers;
@@ -2068,13 +2078,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
2068
2078
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2069
2079
  headers?: {} | undefined;
2070
2080
  }) => Promise<{
2071
- status: 404;
2072
- body: {
2073
- message: string;
2074
- status: number;
2075
- };
2076
- headers: Headers;
2077
- } | {
2078
2081
  status: 200;
2079
2082
  body: {
2080
2083
  id: string;
@@ -2108,6 +2111,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
2108
2111
  } | undefined;
2109
2112
  };
2110
2113
  headers: Headers;
2114
+ } | {
2115
+ status: 404;
2116
+ body: {
2117
+ message: string;
2118
+ status: number;
2119
+ };
2120
+ headers: Headers;
2111
2121
  } | {
2112
2122
  status: 401;
2113
2123
  body: {
@@ -2370,13 +2380,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
2370
2380
  providerLogoId?: string | undefined;
2371
2381
  } | undefined;
2372
2382
  }) => Promise<{
2373
- status: 404;
2374
- body: {
2375
- message: string;
2376
- status: number;
2377
- };
2378
- headers: Headers;
2379
- } | {
2380
2383
  status: 200;
2381
2384
  body: {
2382
2385
  id: string;
@@ -2410,6 +2413,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
2410
2413
  } | undefined;
2411
2414
  };
2412
2415
  headers: Headers;
2416
+ } | {
2417
+ status: 404;
2418
+ body: {
2419
+ message: string;
2420
+ status: number;
2421
+ };
2422
+ headers: Headers;
2413
2423
  } | {
2414
2424
  status: 400;
2415
2425
  body: {
@@ -2796,13 +2806,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
2796
2806
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2797
2807
  headers?: {} | undefined;
2798
2808
  }) => Promise<{
2799
- status: 404;
2800
- body: {
2801
- message: string;
2802
- status: number;
2803
- };
2804
- headers: Headers;
2805
- } | {
2806
2809
  status: 200;
2807
2810
  body: {
2808
2811
  status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
@@ -2905,6 +2908,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
2905
2908
  } | null | undefined;
2906
2909
  };
2907
2910
  headers: Headers;
2911
+ } | {
2912
+ status: 404;
2913
+ body: {
2914
+ message: string;
2915
+ status: number;
2916
+ };
2917
+ headers: Headers;
2908
2918
  } | {
2909
2919
  status: 401;
2910
2920
  body: {
@@ -2929,13 +2939,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
2929
2939
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2930
2940
  headers?: {} | undefined;
2931
2941
  }) => Promise<{
2932
- status: 404;
2933
- body: {
2934
- message: string;
2935
- status: number;
2936
- };
2937
- headers: Headers;
2938
- } | {
2939
2942
  status: 200;
2940
2943
  body: {
2941
2944
  status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
@@ -3038,6 +3041,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
3038
3041
  } | null | undefined;
3039
3042
  };
3040
3043
  headers: Headers;
3044
+ } | {
3045
+ status: 404;
3046
+ body: {
3047
+ message: string;
3048
+ status: number;
3049
+ };
3050
+ headers: Headers;
3041
3051
  } | {
3042
3052
  status: 400;
3043
3053
  body: {
@@ -3165,6 +3175,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
3165
3175
  url: string;
3166
3176
  }[] | undefined;
3167
3177
  manufacturerId?: string | null | undefined;
3178
+ metadata?: Record<string, string> | null | undefined;
3168
3179
  }>;
3169
3180
  invalidProductIds: string[];
3170
3181
  shipping?: number | undefined;
@@ -3356,7 +3367,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
3356
3367
  };
3357
3368
  headers: Headers;
3358
3369
  } | {
3359
- status: 404 | 200 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3370
+ status: 200 | 404 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3360
3371
  body: unknown;
3361
3372
  headers: Headers;
3362
3373
  }>;
@@ -3553,7 +3564,7 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
3553
3564
  };
3554
3565
  headers: Headers;
3555
3566
  } | {
3556
- status: 404 | 200 | 204 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3567
+ status: 200 | 404 | 204 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3557
3568
  body: unknown;
3558
3569
  headers: Headers;
3559
3570
  }>;
@@ -3568,13 +3579,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
3568
3579
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3569
3580
  headers?: {} | undefined;
3570
3581
  }) => Promise<{
3571
- status: 404;
3572
- body: {
3573
- message: string;
3574
- status: number;
3575
- };
3576
- headers: Headers;
3577
- } | {
3578
3582
  status: 200;
3579
3583
  body: {
3580
3584
  id: string;
@@ -3589,6 +3593,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
3589
3593
  cancelledAt?: Date | null | undefined;
3590
3594
  };
3591
3595
  headers: Headers;
3596
+ } | {
3597
+ status: 404;
3598
+ body: {
3599
+ message: string;
3600
+ status: number;
3601
+ };
3602
+ headers: Headers;
3592
3603
  } | {
3593
3604
  status: 400;
3594
3605
  body: {
@@ -3694,13 +3705,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
3694
3705
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3695
3706
  headers?: {} | undefined;
3696
3707
  }) => Promise<{
3697
- status: 404;
3698
- body: {
3699
- message: string;
3700
- status: number;
3701
- };
3702
- headers: Headers;
3703
- } | {
3704
3708
  status: 200;
3705
3709
  body: {
3706
3710
  id: string;
@@ -3715,6 +3719,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
3715
3719
  cancelledAt?: Date | null | undefined;
3716
3720
  }[];
3717
3721
  headers: Headers;
3722
+ } | {
3723
+ status: 404;
3724
+ body: {
3725
+ message: string;
3726
+ status: number;
3727
+ };
3728
+ headers: Headers;
3718
3729
  } | {
3719
3730
  status: 400;
3720
3731
  body: {
@@ -3754,13 +3765,6 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
3754
3765
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3755
3766
  headers?: {} | undefined;
3756
3767
  }) => Promise<{
3757
- status: 404;
3758
- body: {
3759
- message: string;
3760
- status: number;
3761
- };
3762
- headers: Headers;
3763
- } | {
3764
3768
  status: 200;
3765
3769
  body: {
3766
3770
  id: string;
@@ -3775,6 +3779,13 @@ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1
3775
3779
  cancelledAt?: Date | null | undefined;
3776
3780
  };
3777
3781
  headers: Headers;
3782
+ } | {
3783
+ status: 404;
3784
+ body: {
3785
+ message: string;
3786
+ status: number;
3787
+ };
3788
+ headers: Headers;
3778
3789
  } | {
3779
3790
  status: 400;
3780
3791
  body: {
@@ -151,6 +151,7 @@ export declare const cartContract: {
151
151
  title?: string | undefined;
152
152
  description?: string | null | undefined;
153
153
  }>, "many">>;
154
+ metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
154
155
  } & {
155
156
  title: z.ZodDefault<z.ZodString>;
156
157
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -254,6 +255,7 @@ export declare const cartContract: {
254
255
  url: string;
255
256
  }[] | undefined;
256
257
  manufacturerId?: string | null | undefined;
258
+ metadata?: Record<string, string> | null | undefined;
257
259
  }, {
258
260
  id: string;
259
261
  createdAt: Date;
@@ -289,6 +291,7 @@ export declare const cartContract: {
289
291
  id: string;
290
292
  }[] | undefined;
291
293
  manufacturerId?: string | null | undefined;
294
+ metadata?: Record<string, string> | null | undefined;
292
295
  }>>;
293
296
  invalidProductIds: z.ZodArray<z.ZodString, "many">;
294
297
  shipping: z.ZodOptional<z.ZodNumber>;
@@ -332,6 +335,7 @@ export declare const cartContract: {
332
335
  url: string;
333
336
  }[] | undefined;
334
337
  manufacturerId?: string | null | undefined;
338
+ metadata?: Record<string, string> | null | undefined;
335
339
  }>;
336
340
  invalidProductIds: string[];
337
341
  shipping?: number | undefined;
@@ -373,6 +377,7 @@ export declare const cartContract: {
373
377
  id: string;
374
378
  }[] | undefined;
375
379
  manufacturerId?: string | null | undefined;
380
+ metadata?: Record<string, string> | null | undefined;
376
381
  }>;
377
382
  invalidProductIds: string[];
378
383
  shipping?: number | undefined;