@palmetto/dispatch-sdk 0.4.1 → 0.5.0

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.
@@ -103,60 +103,79 @@ export interface paths {
103
103
  patch: operations["SuppliersController_updateStatus"];
104
104
  trace?: never;
105
105
  };
106
- "/api/suppliers/{id}/service-areas": {
106
+ "/api/suppliers/{id}/regions": {
107
107
  parameters: {
108
108
  query?: never;
109
109
  header?: never;
110
110
  path?: never;
111
111
  cookie?: never;
112
112
  };
113
- /** Find Service Areas for Supplier */
114
- get: operations["SuppliersController_findServiceAreas"];
113
+ /** Get all regions for a supplier */
114
+ get: operations["SupplierExtensionsController_getSupplierRegions"];
115
115
  put?: never;
116
- /** Add Service Area to Supplier */
117
- post: operations["SuppliersController_addServiceArea"];
116
+ /** Create a new supplier region */
117
+ post: operations["SupplierExtensionsController_createSupplierRegion"];
118
118
  delete?: never;
119
119
  options?: never;
120
120
  head?: never;
121
121
  patch?: never;
122
122
  trace?: never;
123
123
  };
124
- "/api/suppliers/{id}/service-areas/{serviceAreaId}": {
124
+ "/api/supplier-regions/{id}": {
125
125
  parameters: {
126
126
  query?: never;
127
127
  header?: never;
128
128
  path?: never;
129
129
  cookie?: never;
130
130
  };
131
- get?: never;
131
+ /** Get a supplier region */
132
+ get: operations["SupplierRegionsController_findOne"];
132
133
  put?: never;
133
134
  post?: never;
134
- /** Remove Service Area from Supplier */
135
- delete: operations["SuppliersController_removeServiceArea"];
135
+ delete?: never;
136
136
  options?: never;
137
137
  head?: never;
138
- /** Update Service Area Radius */
139
- patch: operations["SuppliersController_updateServiceArea"];
138
+ /** Update a supplier region */
139
+ patch: operations["SupplierRegionsController_update"];
140
140
  trace?: never;
141
141
  };
142
- "/api/suppliers/{id}/regions/{region}": {
142
+ "/api/supplier-regions/{id}/coverage-areas": {
143
143
  parameters: {
144
144
  query?: never;
145
145
  header?: never;
146
146
  path?: never;
147
147
  cookie?: never;
148
148
  };
149
- get?: never;
150
- /** Upsert Supplier Region */
151
- put: operations["SuppliersController_upsertRegion"];
152
- post?: never;
153
- /** Remove Region from Supplier */
154
- delete: operations["SuppliersController_removeRegion"];
149
+ /** Create a new coverage area */
150
+ get: operations["SupplierRegionsController_getCoverageAreas"];
151
+ put?: never;
152
+ /** Create a new coverage area */
153
+ post: operations["SupplierRegionsController_createCoverageArea"];
154
+ delete?: never;
155
155
  options?: never;
156
156
  head?: never;
157
157
  patch?: never;
158
158
  trace?: never;
159
159
  };
160
+ "/api/coverage-areas/{id}": {
161
+ parameters: {
162
+ query?: never;
163
+ header?: never;
164
+ path?: never;
165
+ cookie?: never;
166
+ };
167
+ /** Get a coverage area */
168
+ get: operations["CoverageAreasController_findOne"];
169
+ put?: never;
170
+ post?: never;
171
+ /** Remove a coverage area */
172
+ delete: operations["CoverageAreasController_remove"];
173
+ options?: never;
174
+ head?: never;
175
+ /** Update a coverage area */
176
+ patch: operations["CoverageAreasController_update"];
177
+ trace?: never;
178
+ };
160
179
  "/api/dispatches": {
161
180
  parameters: {
162
181
  query?: never;
@@ -566,6 +585,7 @@ export interface components {
566
585
  */
567
586
  type: "LIGHT_REACH";
568
587
  };
588
+ /** @example Solar Company */
569
589
  name: string;
570
590
  address: {
571
591
  /** @example 4 Bonnie Dr */
@@ -608,16 +628,6 @@ export interface components {
608
628
  /** @constant */
609
629
  code: "INACTIVE";
610
630
  };
611
- regions: {
612
- /** @example MA */
613
- region: string;
614
- capacity: {
615
- /** @example 6 */
616
- month: number;
617
- /** @example 50 */
618
- limit: number;
619
- }[];
620
- }[];
621
631
  };
622
632
  SupplierDto: {
623
633
  id: string;
@@ -677,49 +687,6 @@ export interface components {
677
687
  /** Format: date-time */
678
688
  statusUpdatedAt: string;
679
689
  };
680
- serviceAreas: {
681
- address: {
682
- /** @example 4 Bonnie Dr */
683
- streetAddress: string;
684
- /** @example Berkley */
685
- locality: string;
686
- /** @example MA */
687
- region: string;
688
- /** @example 02779 */
689
- postalCode: string;
690
- /** @example US */
691
- country: string;
692
- coordinates: {
693
- /** @example 41.8714689 */
694
- lat: number;
695
- /** @example -71.0950429 */
696
- lon: number;
697
- };
698
- };
699
- radius: {
700
- /**
701
- * @example MILES
702
- * @enum {string}
703
- */
704
- unit: "MILES" | "METERS";
705
- /** @example 50 */
706
- value: number;
707
- };
708
- /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
709
- glideEntityId?: string;
710
- /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
711
- glideDistanceConstraintId?: string;
712
- }[];
713
- regions: {
714
- /** @example MA */
715
- region: string;
716
- capacity: {
717
- /** @example 6 */
718
- month: number;
719
- /** @example 50 */
720
- limit: number;
721
- }[];
722
- }[];
723
690
  meta: {
724
691
  /**
725
692
  * Format: date-time
@@ -774,7 +741,40 @@ export interface components {
774
741
  code: "INACTIVE";
775
742
  };
776
743
  };
777
- CreateServiceAreaDto: {
744
+ CreateSupplierRegionDto: {
745
+ /** @example MA */
746
+ region: string;
747
+ capacity: {
748
+ /** @example 6 */
749
+ month: number;
750
+ /** @example 50 */
751
+ limit: number;
752
+ }[];
753
+ };
754
+ SupplierRegionDto: {
755
+ id: string;
756
+ supplierId: string;
757
+ /** @example MA */
758
+ region: string;
759
+ capacity: {
760
+ /** @example 6 */
761
+ month: number;
762
+ /** @example 50 */
763
+ limit: number;
764
+ }[];
765
+ };
766
+ ListDto: {
767
+ data: unknown[];
768
+ };
769
+ UpdateSupplierRegionDto: {
770
+ capacity: {
771
+ /** @example 6 */
772
+ month: number;
773
+ /** @example 50 */
774
+ limit: number;
775
+ }[];
776
+ };
777
+ CreateCoverageAreaDto: {
778
778
  address: {
779
779
  /** @example 4 Bonnie Dr */
780
780
  streetAddress: string;
@@ -803,22 +803,10 @@ export interface components {
803
803
  value: number;
804
804
  };
805
805
  };
806
- UpdateServiceAreaDto: {
807
- radius: {
808
- /**
809
- * @example MILES
810
- * @enum {string}
811
- */
812
- unit: "MILES" | "METERS";
813
- /** @example 50 */
814
- value: number;
815
- };
816
- };
817
- ListDto: {
818
- data: unknown[];
819
- };
820
- ServiceAreaDto: {
806
+ CoverageAreaDto: {
821
807
  id: string;
808
+ supplierId: string;
809
+ supplierRegionId: string;
822
810
  address: {
823
811
  /** @example 4 Bonnie Dr */
824
812
  streetAddress: string;
@@ -846,18 +834,17 @@ export interface components {
846
834
  /** @example 50 */
847
835
  value: number;
848
836
  };
849
- /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
850
- glideEntityId?: string;
851
- /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
852
- glideDistanceConstraintId?: string;
853
837
  };
854
- UpsertSupplierRegionDto: {
855
- capacity: {
856
- /** @example 6 */
857
- month: number;
838
+ UpdateCoverageAreaDto: {
839
+ radius: {
840
+ /**
841
+ * @example MILES
842
+ * @enum {string}
843
+ */
844
+ unit: "MILES" | "METERS";
858
845
  /** @example 50 */
859
- limit: number;
860
- }[];
846
+ value: number;
847
+ };
861
848
  };
862
849
  CreateDispatchDto: {
863
850
  projectId: string;
@@ -1220,7 +1207,7 @@ export interface operations {
1220
1207
  };
1221
1208
  };
1222
1209
  };
1223
- /** @description When the query request is invalid */
1210
+ /** @description When the request is invalid */
1224
1211
  400: {
1225
1212
  headers: {
1226
1213
  [name: string]: unknown;
@@ -1415,7 +1402,7 @@ export interface operations {
1415
1402
  "application/json": components["schemas"]["SupplierDto"];
1416
1403
  };
1417
1404
  };
1418
- /** @description When the ID or body request is invalid */
1405
+ /** @description When the request is invalid */
1419
1406
  400: {
1420
1407
  headers: {
1421
1408
  [name: string]: unknown;
@@ -1532,7 +1519,7 @@ export interface operations {
1532
1519
  };
1533
1520
  };
1534
1521
  };
1535
- SuppliersController_findServiceAreas: {
1522
+ SupplierExtensionsController_getSupplierRegions: {
1536
1523
  parameters: {
1537
1524
  query?: never;
1538
1525
  header?: never;
@@ -1549,11 +1536,11 @@ export interface operations {
1549
1536
  };
1550
1537
  content: {
1551
1538
  "application/json": {
1552
- data: components["schemas"]["ServiceAreaDto"][];
1539
+ data: components["schemas"]["SupplierRegionDto"][];
1553
1540
  };
1554
1541
  };
1555
1542
  };
1556
- /** @description When the ID is invalid */
1543
+ /** @description When the request is invalid */
1557
1544
  400: {
1558
1545
  headers: {
1559
1546
  [name: string]: unknown;
@@ -1562,24 +1549,6 @@ export interface operations {
1562
1549
  "application/json": components["schemas"]["BadRequestErrorDto"];
1563
1550
  };
1564
1551
  };
1565
- /** @description When authentication fails */
1566
- 401: {
1567
- headers: {
1568
- [name: string]: unknown;
1569
- };
1570
- content: {
1571
- "application/json": components["schemas"]["UnauthorizedErrorDto"];
1572
- };
1573
- };
1574
- /** @description When the requesting user is not allowed to perform this action */
1575
- 403: {
1576
- headers: {
1577
- [name: string]: unknown;
1578
- };
1579
- content: {
1580
- "application/json": components["schemas"]["ForbiddenErrorDto"];
1581
- };
1582
- };
1583
1552
  /** @description When the supplier is not found */
1584
1553
  404: {
1585
1554
  headers: {
@@ -1600,7 +1569,7 @@ export interface operations {
1600
1569
  };
1601
1570
  };
1602
1571
  };
1603
- SuppliersController_addServiceArea: {
1572
+ SupplierExtensionsController_createSupplierRegion: {
1604
1573
  parameters: {
1605
1574
  query?: never;
1606
1575
  header?: never;
@@ -1611,7 +1580,7 @@ export interface operations {
1611
1580
  };
1612
1581
  requestBody: {
1613
1582
  content: {
1614
- "application/json": components["schemas"]["CreateServiceAreaDto"];
1583
+ "application/json": components["schemas"]["CreateSupplierRegionDto"];
1615
1584
  };
1616
1585
  };
1617
1586
  responses: {
@@ -1620,10 +1589,10 @@ export interface operations {
1620
1589
  [name: string]: unknown;
1621
1590
  };
1622
1591
  content: {
1623
- "application/json": components["schemas"]["SupplierDto"];
1592
+ "application/json": components["schemas"]["SupplierRegionDto"];
1624
1593
  };
1625
1594
  };
1626
- /** @description When the ID or body request is invalid */
1595
+ /** @description When the request is invalid */
1627
1596
  400: {
1628
1597
  headers: {
1629
1598
  [name: string]: unknown;
@@ -1632,31 +1601,22 @@ export interface operations {
1632
1601
  "application/json": components["schemas"]["BadRequestErrorDto"];
1633
1602
  };
1634
1603
  };
1635
- /** @description When authentication fails */
1636
- 401: {
1637
- headers: {
1638
- [name: string]: unknown;
1639
- };
1640
- content: {
1641
- "application/json": components["schemas"]["UnauthorizedErrorDto"];
1642
- };
1643
- };
1644
- /** @description When the requesting user is not allowed to perform this action */
1645
- 403: {
1604
+ /** @description When the supplier is not found */
1605
+ 404: {
1646
1606
  headers: {
1647
1607
  [name: string]: unknown;
1648
1608
  };
1649
1609
  content: {
1650
- "application/json": components["schemas"]["ForbiddenErrorDto"];
1610
+ "application/json": components["schemas"]["NotFoundErrorDto"];
1651
1611
  };
1652
1612
  };
1653
- /** @description When the supplier is not found */
1654
- 404: {
1613
+ /** @description When there's an existing region for this supplier */
1614
+ 409: {
1655
1615
  headers: {
1656
1616
  [name: string]: unknown;
1657
1617
  };
1658
1618
  content: {
1659
- "application/json": components["schemas"]["NotFoundErrorDto"];
1619
+ "application/json": components["schemas"]["ConflictErrorDto"];
1660
1620
  };
1661
1621
  };
1662
1622
  /** @description When the request is valid, but something goes wrong on the server */
@@ -1670,13 +1630,12 @@ export interface operations {
1670
1630
  };
1671
1631
  };
1672
1632
  };
1673
- SuppliersController_removeServiceArea: {
1633
+ SupplierRegionsController_findOne: {
1674
1634
  parameters: {
1675
1635
  query?: never;
1676
1636
  header?: never;
1677
1637
  path: {
1678
1638
  id: string;
1679
- serviceAreaId: string;
1680
1639
  };
1681
1640
  cookie?: never;
1682
1641
  };
@@ -1687,37 +1646,53 @@ export interface operations {
1687
1646
  [name: string]: unknown;
1688
1647
  };
1689
1648
  content: {
1690
- "application/json": components["schemas"]["SupplierDto"];
1649
+ "application/json": components["schemas"]["SupplierRegionDto"];
1691
1650
  };
1692
1651
  };
1693
- /** @description When the ID or body request is invalid */
1694
- 400: {
1652
+ /** @description When the supplier region is not found */
1653
+ 404: {
1695
1654
  headers: {
1696
1655
  [name: string]: unknown;
1697
1656
  };
1698
1657
  content: {
1699
- "application/json": components["schemas"]["BadRequestErrorDto"];
1658
+ "application/json": components["schemas"]["NotFoundErrorDto"];
1700
1659
  };
1701
1660
  };
1702
- /** @description When authentication fails */
1703
- 401: {
1661
+ /** @description When the request is valid, but something goes wrong on the server */
1662
+ 500: {
1704
1663
  headers: {
1705
1664
  [name: string]: unknown;
1706
1665
  };
1707
1666
  content: {
1708
- "application/json": components["schemas"]["UnauthorizedErrorDto"];
1667
+ "application/json": components["schemas"]["InternalServerErrorDto"];
1709
1668
  };
1710
1669
  };
1711
- /** @description When the requesting user is not allowed to perform this action */
1712
- 403: {
1670
+ };
1671
+ };
1672
+ SupplierRegionsController_update: {
1673
+ parameters: {
1674
+ query?: never;
1675
+ header?: never;
1676
+ path: {
1677
+ id: string;
1678
+ };
1679
+ cookie?: never;
1680
+ };
1681
+ requestBody: {
1682
+ content: {
1683
+ "application/json": components["schemas"]["UpdateSupplierRegionDto"];
1684
+ };
1685
+ };
1686
+ responses: {
1687
+ 200: {
1713
1688
  headers: {
1714
1689
  [name: string]: unknown;
1715
1690
  };
1716
1691
  content: {
1717
- "application/json": components["schemas"]["ForbiddenErrorDto"];
1692
+ "application/json": components["schemas"]["SupplierRegionDto"];
1718
1693
  };
1719
1694
  };
1720
- /** @description When the supplier is not found */
1695
+ /** @description When the supplier region is not found */
1721
1696
  404: {
1722
1697
  headers: {
1723
1698
  [name: string]: unknown;
@@ -1737,58 +1712,71 @@ export interface operations {
1737
1712
  };
1738
1713
  };
1739
1714
  };
1740
- SuppliersController_updateServiceArea: {
1715
+ SupplierRegionsController_getCoverageAreas: {
1741
1716
  parameters: {
1742
1717
  query?: never;
1743
1718
  header?: never;
1744
1719
  path: {
1745
1720
  id: string;
1746
- serviceAreaId: string;
1747
1721
  };
1748
1722
  cookie?: never;
1749
1723
  };
1750
- requestBody: {
1751
- content: {
1752
- "application/json": components["schemas"]["UpdateServiceAreaDto"];
1753
- };
1754
- };
1724
+ requestBody?: never;
1755
1725
  responses: {
1756
1726
  200: {
1757
1727
  headers: {
1758
1728
  [name: string]: unknown;
1759
1729
  };
1760
1730
  content: {
1761
- "application/json": components["schemas"]["SupplierDto"];
1731
+ "application/json": {
1732
+ data: components["schemas"]["CoverageAreaDto"][];
1733
+ };
1762
1734
  };
1763
1735
  };
1764
- /** @description When the ID or body request is invalid */
1765
- 400: {
1736
+ /** @description When the supplier region is not found */
1737
+ 404: {
1766
1738
  headers: {
1767
1739
  [name: string]: unknown;
1768
1740
  };
1769
1741
  content: {
1770
- "application/json": components["schemas"]["BadRequestErrorDto"];
1742
+ "application/json": components["schemas"]["NotFoundErrorDto"];
1771
1743
  };
1772
1744
  };
1773
- /** @description When authentication fails */
1774
- 401: {
1745
+ /** @description When the request is valid, but something goes wrong on the server */
1746
+ 500: {
1775
1747
  headers: {
1776
1748
  [name: string]: unknown;
1777
1749
  };
1778
1750
  content: {
1779
- "application/json": components["schemas"]["UnauthorizedErrorDto"];
1751
+ "application/json": components["schemas"]["InternalServerErrorDto"];
1780
1752
  };
1781
1753
  };
1782
- /** @description When the requesting user is not allowed to perform this action */
1783
- 403: {
1754
+ };
1755
+ };
1756
+ SupplierRegionsController_createCoverageArea: {
1757
+ parameters: {
1758
+ query?: never;
1759
+ header?: never;
1760
+ path: {
1761
+ id: string;
1762
+ };
1763
+ cookie?: never;
1764
+ };
1765
+ requestBody: {
1766
+ content: {
1767
+ "application/json": components["schemas"]["CreateCoverageAreaDto"];
1768
+ };
1769
+ };
1770
+ responses: {
1771
+ 201: {
1784
1772
  headers: {
1785
1773
  [name: string]: unknown;
1786
1774
  };
1787
1775
  content: {
1788
- "application/json": components["schemas"]["ForbiddenErrorDto"];
1776
+ "application/json": components["schemas"]["CoverageAreaDto"];
1789
1777
  };
1790
1778
  };
1791
- /** @description When the supplier is not found */
1779
+ /** @description When the supplier or region is not found */
1792
1780
  404: {
1793
1781
  headers: {
1794
1782
  [name: string]: unknown;
@@ -1808,31 +1796,26 @@ export interface operations {
1808
1796
  };
1809
1797
  };
1810
1798
  };
1811
- SuppliersController_upsertRegion: {
1799
+ CoverageAreasController_findOne: {
1812
1800
  parameters: {
1813
1801
  query?: never;
1814
1802
  header?: never;
1815
1803
  path: {
1816
1804
  id: string;
1817
- region: string;
1818
1805
  };
1819
1806
  cookie?: never;
1820
1807
  };
1821
- requestBody: {
1822
- content: {
1823
- "application/json": components["schemas"]["UpsertSupplierRegionDto"];
1824
- };
1825
- };
1808
+ requestBody?: never;
1826
1809
  responses: {
1827
1810
  200: {
1828
1811
  headers: {
1829
1812
  [name: string]: unknown;
1830
1813
  };
1831
1814
  content: {
1832
- "application/json": components["schemas"]["SupplierDto"];
1815
+ "application/json": components["schemas"]["CoverageAreaDto"];
1833
1816
  };
1834
1817
  };
1835
- /** @description When the ID or body request is invalid */
1818
+ /** @description When the request is invalid */
1836
1819
  400: {
1837
1820
  headers: {
1838
1821
  [name: string]: unknown;
@@ -1841,25 +1824,53 @@ export interface operations {
1841
1824
  "application/json": components["schemas"]["BadRequestErrorDto"];
1842
1825
  };
1843
1826
  };
1844
- /** @description When authentication fails */
1845
- 401: {
1827
+ /** @description When the coverage area is not found */
1828
+ 404: {
1846
1829
  headers: {
1847
1830
  [name: string]: unknown;
1848
1831
  };
1849
1832
  content: {
1850
- "application/json": components["schemas"]["UnauthorizedErrorDto"];
1833
+ "application/json": components["schemas"]["NotFoundErrorDto"];
1851
1834
  };
1852
1835
  };
1853
- /** @description When the requesting user is not allowed to perform this action */
1854
- 403: {
1836
+ /** @description When the request is valid, but something goes wrong on the server */
1837
+ 500: {
1855
1838
  headers: {
1856
1839
  [name: string]: unknown;
1857
1840
  };
1858
1841
  content: {
1859
- "application/json": components["schemas"]["ForbiddenErrorDto"];
1842
+ "application/json": components["schemas"]["InternalServerErrorDto"];
1860
1843
  };
1861
1844
  };
1862
- /** @description When the supplier is not found */
1845
+ };
1846
+ };
1847
+ CoverageAreasController_remove: {
1848
+ parameters: {
1849
+ query?: never;
1850
+ header?: never;
1851
+ path: {
1852
+ id: string;
1853
+ };
1854
+ cookie?: never;
1855
+ };
1856
+ requestBody?: never;
1857
+ responses: {
1858
+ 204: {
1859
+ headers: {
1860
+ [name: string]: unknown;
1861
+ };
1862
+ content?: never;
1863
+ };
1864
+ /** @description When the request is invalid */
1865
+ 400: {
1866
+ headers: {
1867
+ [name: string]: unknown;
1868
+ };
1869
+ content: {
1870
+ "application/json": components["schemas"]["BadRequestErrorDto"];
1871
+ };
1872
+ };
1873
+ /** @description When the coverage area is not found */
1863
1874
  404: {
1864
1875
  headers: {
1865
1876
  [name: string]: unknown;
@@ -1879,27 +1890,30 @@ export interface operations {
1879
1890
  };
1880
1891
  };
1881
1892
  };
1882
- SuppliersController_removeRegion: {
1893
+ CoverageAreasController_update: {
1883
1894
  parameters: {
1884
1895
  query?: never;
1885
1896
  header?: never;
1886
1897
  path: {
1887
1898
  id: string;
1888
- region: string;
1889
1899
  };
1890
1900
  cookie?: never;
1891
1901
  };
1892
- requestBody?: never;
1902
+ requestBody: {
1903
+ content: {
1904
+ "application/json": components["schemas"]["UpdateCoverageAreaDto"];
1905
+ };
1906
+ };
1893
1907
  responses: {
1894
1908
  200: {
1895
1909
  headers: {
1896
1910
  [name: string]: unknown;
1897
1911
  };
1898
1912
  content: {
1899
- "application/json": components["schemas"]["SupplierDto"];
1913
+ "application/json": components["schemas"]["CoverageAreaDto"];
1900
1914
  };
1901
1915
  };
1902
- /** @description When the ID or body request is invalid */
1916
+ /** @description When the request is invalid */
1903
1917
  400: {
1904
1918
  headers: {
1905
1919
  [name: string]: unknown;
@@ -1908,25 +1922,7 @@ export interface operations {
1908
1922
  "application/json": components["schemas"]["BadRequestErrorDto"];
1909
1923
  };
1910
1924
  };
1911
- /** @description When authentication fails */
1912
- 401: {
1913
- headers: {
1914
- [name: string]: unknown;
1915
- };
1916
- content: {
1917
- "application/json": components["schemas"]["UnauthorizedErrorDto"];
1918
- };
1919
- };
1920
- /** @description When the requesting user is not allowed to perform this action */
1921
- 403: {
1922
- headers: {
1923
- [name: string]: unknown;
1924
- };
1925
- content: {
1926
- "application/json": components["schemas"]["ForbiddenErrorDto"];
1927
- };
1928
- };
1929
- /** @description When the supplier is not found */
1925
+ /** @description When the coverage area is not found */
1930
1926
  404: {
1931
1927
  headers: {
1932
1928
  [name: string]: unknown;
package/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ApiInput, BaseSdkClient, CreateSdkClientInput, RequestOptions, SdkResult } from "@palmetto/base-sdk-client";
2
- import { ExtractResultData } from "@palmetto/result";
2
+ import { ExtractResultData, ExtractResultErr } from "@palmetto/result";
3
3
  import type { paths } from "./__generated__/schema.ts";
4
4
  export type CreateDispatchClientInput = Omit<CreateSdkClientInput, "sdkVersion">;
5
5
  export declare class DispatchClient extends BaseSdkClient<paths> {
@@ -10,12 +10,14 @@ export declare class DispatchClient extends BaseSdkClient<paths> {
10
10
  getSupplier({ id }: GetSupplierInput, options?: RequestOptions): Promise<GetSupplierResult>;
11
11
  updateSupplier({ id, ...input }: UpdateSupplierInput, options?: RequestOptions): Promise<UpdateSupplierResult>;
12
12
  updateSupplierStatus({ id, ...input }: UpdateSupplierStatusInput, options?: RequestOptions): Promise<UpdateSupplierStatusResult>;
13
- getSupplierServiceAreas({ id }: GetSupplierServiceAreasInput, options?: RequestOptions): Promise<GetSupplierServiceAreasResult>;
14
- createSupplierServiceArea({ id, ...input }: CreateSupplierServiceAreaInput, options?: RequestOptions): Promise<CreateSupplierServiceAreaResult>;
15
- removeSupplierServiceArea(input: RemoveSupplierServiceAreaInput, options?: RequestOptions): Promise<RemoveSupplierServiceAreaResult>;
16
- updateSupplierServiceArea({ id, serviceAreaId, ...input }: UpdateSupplierServiceAreaInput, options?: RequestOptions): Promise<UpdateSupplierServiceAreaResult>;
17
- upsertSupplierRegion({ id, region, ...input }: UpsertSupplierRegionInput, options?: RequestOptions): Promise<UpsertSupplierRegionResult>;
18
- removeSupplierRegion(input: RemoveSupplierRegionInput, options?: RequestOptions): Promise<RemoveSupplierRegionResult>;
13
+ createSupplierRegion({ id, ...input }: CreateSupplierRegionInput, options?: RequestOptions): Promise<CreateSupplierRegionResult>;
14
+ getSupplierRegions(input: GetSupplierRegionsInput, options?: RequestOptions): Promise<GetSupplierRegionsResult>;
15
+ getSupplierRegion(input: GetSupplierRegionInput, options?: RequestOptions): Promise<GetSupplierRegionResult>;
16
+ updateSupplierRegion({ id, ...input }: UpdateSupplierRegionInput, options?: RequestOptions): Promise<UpdateSupplierRegionResult>;
17
+ createCoverageArea({ id, ...input }: CreateCoverageAreaInput, options?: RequestOptions): Promise<CreateCoverageAreaResult>;
18
+ getCoverageAreas({ id }: GetCoverageAreasInput, options?: RequestOptions): Promise<GetCoverageAreasResult>;
19
+ getCoverageArea({ id }: GetCoverageAreaInput, options?: RequestOptions): Promise<GetCoverageAreaResult>;
20
+ removeCoverageArea({ id }: RemoveCoverageAreaInput, options?: RequestOptions): Promise<RemoveCoverageAreaResult>;
19
21
  getProjects(input?: GetProjectsInput, options?: RequestOptions): Promise<GetProjectsResult>;
20
22
  createProject(input: CreateProjectInput, options?: RequestOptions): Promise<CreateProjectResult>;
21
23
  updateProject({ id, ...input }: UpdateProjectInput, options?: RequestOptions): Promise<UpdateProjectResult>;
@@ -42,24 +44,38 @@ export type UpdateSupplierResponse = ExtractResultData<UpdateSupplierResult>;
42
44
  export type UpdateSupplierStatusInput = ApiInput<paths["/api/suppliers/{id}/status"]["patch"]>;
43
45
  export type UpdateSupplierStatusResult = SdkResult<paths["/api/suppliers/{id}/status"]["patch"]>;
44
46
  export type UpdateSupplierStatusResponse = ExtractResultData<UpdateSupplierStatusResult>;
45
- export type GetSupplierServiceAreasInput = ApiInput<paths["/api/suppliers/{id}/service-areas"]["get"]>;
46
- export type GetSupplierServiceAreasResult = SdkResult<paths["/api/suppliers/{id}/service-areas"]["get"]>;
47
- export type GetSupplierServiceAreasResponse = ExtractResultData<GetSupplierServiceAreasResult>;
48
- export type CreateSupplierServiceAreaInput = ApiInput<paths["/api/suppliers/{id}/service-areas"]["post"]>;
49
- export type CreateSupplierServiceAreaResult = SdkResult<paths["/api/suppliers/{id}/service-areas"]["post"]>;
50
- export type CreateSupplierServiceAreaResponse = ExtractResultData<CreateSupplierServiceAreaResult>;
51
- export type RemoveSupplierServiceAreaInput = ApiInput<paths["/api/suppliers/{id}/service-areas/{serviceAreaId}"]["delete"]>;
52
- export type RemoveSupplierServiceAreaResult = SdkResult<paths["/api/suppliers/{id}/service-areas/{serviceAreaId}"]["delete"]>;
53
- export type RemoveSupplierServiceAreaResponse = ExtractResultData<RemoveSupplierServiceAreaResult>;
54
- export type UpdateSupplierServiceAreaInput = ApiInput<paths["/api/suppliers/{id}/service-areas/{serviceAreaId}"]["patch"]>;
55
- export type UpdateSupplierServiceAreaResult = SdkResult<paths["/api/suppliers/{id}/service-areas/{serviceAreaId}"]["patch"]>;
56
- export type UpdateSupplierServiceAreaResponse = ExtractResultData<UpdateSupplierServiceAreaResult>;
57
- export type UpsertSupplierRegionInput = ApiInput<paths["/api/suppliers/{id}/regions/{region}"]["put"]>;
58
- export type UpsertSupplierRegionResult = SdkResult<paths["/api/suppliers/{id}/regions/{region}"]["put"]>;
59
- export type UpsertSupplierRegionResponse = ExtractResultData<UpsertSupplierRegionResult>;
60
- export type RemoveSupplierRegionInput = ApiInput<paths["/api/suppliers/{id}/regions/{region}"]["delete"]>;
61
- export type RemoveSupplierRegionResult = SdkResult<paths["/api/suppliers/{id}/regions/{region}"]["delete"]>;
62
- export type RemoveSupplierRegionResponse = ExtractResultData<RemoveSupplierRegionResult>;
47
+ export type CreateSupplierRegionInput = ApiInput<paths["/api/suppliers/{id}/regions"]["post"]>;
48
+ export type CreateSupplierRegionResult = SdkResult<paths["/api/suppliers/{id}/regions"]["post"]>;
49
+ export type CreateSupplierRegionResponse = ExtractResultData<CreateSupplierRegionResult>;
50
+ export type CreateSupplierRegionError = ExtractResultErr<CreateSupplierRegionResult>;
51
+ export type GetSupplierRegionsInput = ApiInput<paths["/api/suppliers/{id}/regions"]["get"]>;
52
+ export type GetSupplierRegionsResult = SdkResult<paths["/api/suppliers/{id}/regions"]["get"]>;
53
+ export type GetSupplierRegionsResponse = ExtractResultData<CreateSupplierRegionResult>;
54
+ export type GetSupplierRegionsError = ExtractResultErr<CreateSupplierRegionResult>;
55
+ export type GetSupplierRegionInput = ApiInput<paths["/api/supplier-regions/{id}"]["get"]>;
56
+ export type GetSupplierRegionResult = SdkResult<paths["/api/supplier-regions/{id}"]["get"]>;
57
+ export type GetSupplierRegionResponse = ExtractResultData<CreateSupplierRegionResult>;
58
+ export type GetSupplierRegionError = ExtractResultErr<CreateSupplierRegionResult>;
59
+ export type UpdateSupplierRegionInput = ApiInput<paths["/api/supplier-regions/{id}"]["patch"]>;
60
+ export type UpdateSupplierRegionResult = SdkResult<paths["/api/supplier-regions/{id}"]["patch"]>;
61
+ export type UpdateSupplierRegionResponse = ExtractResultData<CreateSupplierRegionResult>;
62
+ export type UpdateSupplierRegionError = ExtractResultErr<CreateSupplierRegionResult>;
63
+ export type CreateCoverageAreaInput = ApiInput<paths["/api/supplier-regions/{id}/coverage-areas"]["post"]>;
64
+ export type CreateCoverageAreaResult = SdkResult<paths["/api/supplier-regions/{id}/coverage-areas"]["post"]>;
65
+ export type CreateCoverageAreaResponse = ExtractResultData<CreateSupplierRegionResult>;
66
+ export type CreateCoverageAreaError = ExtractResultErr<CreateSupplierRegionResult>;
67
+ export type GetCoverageAreasInput = ApiInput<paths["/api/supplier-regions/{id}/coverage-areas"]["get"]>;
68
+ export type GetCoverageAreasResult = SdkResult<paths["/api/supplier-regions/{id}/coverage-areas"]["get"]>;
69
+ export type GetCoverageAreasResponse = ExtractResultData<CreateSupplierRegionResult>;
70
+ export type GetCoverageAreasError = ExtractResultErr<CreateSupplierRegionResult>;
71
+ export type GetCoverageAreaInput = ApiInput<paths["/api/coverage-areas/{id}"]["get"]>;
72
+ export type GetCoverageAreaResult = SdkResult<paths["/api/coverage-areas/{id}"]["get"]>;
73
+ export type GetCoverageAreaResponse = ExtractResultData<CreateSupplierRegionResult>;
74
+ export type GetCoverageAreaError = ExtractResultErr<CreateSupplierRegionResult>;
75
+ export type RemoveCoverageAreaInput = ApiInput<paths["/api/coverage-areas/{id}"]["delete"]>;
76
+ export type RemoveCoverageAreaResult = SdkResult<paths["/api/coverage-areas/{id}"]["delete"]>;
77
+ export type RemoveCoverageAreaResponse = ExtractResultData<CreateSupplierRegionResult>;
78
+ export type RemoveCoverageAreaError = ExtractResultErr<CreateSupplierRegionResult>;
63
79
  export type GetProjectsInput = ApiInput<paths["/api/projects"]["get"]>;
64
80
  export type GetProjectsResult = SdkResult<paths["/api/projects"]["get"]>;
65
81
  export type GetProjectsResponse = ExtractResultData<GetProjectsResult>;
package/dist/client.js CHANGED
@@ -23,7 +23,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.DispatchClient = void 0;
24
24
  const base_sdk_client_1 = require("@palmetto/base-sdk-client");
25
25
  const result_1 = require("@palmetto/result");
26
- const SDK_VERSION_SLUG = "palmetto-dispatch-sdk/0.3.0";
26
+ const SDK_VERSION_SLUG = "palmetto-dispatch-sdk/0.5.0";
27
27
  class DispatchClient extends base_sdk_client_1.BaseSdkClient {
28
28
  constructor(input) {
29
29
  super(Object.assign(Object.assign({}, input), { sdkVersion: SDK_VERSION_SLUG }));
@@ -111,12 +111,12 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
111
111
  return this.handleErrorResponse(error, response);
112
112
  });
113
113
  }
114
- getSupplierServiceAreas(_a, options_1) {
115
- return __awaiter(this, arguments, void 0, function* ({ id }, options) {
116
- const { data, error, response } = yield this.client.GET("/api/suppliers/{id}/service-areas", {
117
- params: {
118
- path: { id },
119
- },
114
+ createSupplierRegion(_a, options) {
115
+ return __awaiter(this, void 0, void 0, function* () {
116
+ var { id } = _a, input = __rest(_a, ["id"]);
117
+ const { data, error, response } = yield this.client.POST("/api/suppliers/{id}/regions", {
118
+ params: { path: { id } },
119
+ body: input,
120
120
  headers: this.generateHeaders(options),
121
121
  });
122
122
  if (data) {
@@ -125,14 +125,10 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
125
125
  return this.handleErrorResponse(error, response);
126
126
  });
127
127
  }
128
- createSupplierServiceArea(_a, options) {
128
+ getSupplierRegions(input, options) {
129
129
  return __awaiter(this, void 0, void 0, function* () {
130
- var { id } = _a, input = __rest(_a, ["id"]);
131
- const { data, error, response } = yield this.client.POST("/api/suppliers/{id}/service-areas", {
132
- body: input,
133
- params: {
134
- path: { id },
135
- },
130
+ const { data, error, response } = yield this.client.GET("/api/suppliers/{id}/regions", {
131
+ params: { path: input },
136
132
  headers: this.generateHeaders(options),
137
133
  });
138
134
  if (data) {
@@ -141,12 +137,10 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
141
137
  return this.handleErrorResponse(error, response);
142
138
  });
143
139
  }
144
- removeSupplierServiceArea(input, options) {
140
+ getSupplierRegion(input, options) {
145
141
  return __awaiter(this, void 0, void 0, function* () {
146
- const { data, error, response } = yield this.client.DELETE("/api/suppliers/{id}/service-areas/{serviceAreaId}", {
147
- params: {
148
- path: input,
149
- },
142
+ const { data, error, response } = yield this.client.GET("/api/supplier-regions/{id}", {
143
+ params: { path: input },
150
144
  headers: this.generateHeaders(options),
151
145
  });
152
146
  if (data) {
@@ -155,14 +149,12 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
155
149
  return this.handleErrorResponse(error, response);
156
150
  });
157
151
  }
158
- updateSupplierServiceArea(_a, options) {
152
+ updateSupplierRegion(_a, options) {
159
153
  return __awaiter(this, void 0, void 0, function* () {
160
- var { id, serviceAreaId } = _a, input = __rest(_a, ["id", "serviceAreaId"]);
161
- const { data, error, response } = yield this.client.PATCH("/api/suppliers/{id}/service-areas/{serviceAreaId}", {
154
+ var { id } = _a, input = __rest(_a, ["id"]);
155
+ const { data, error, response } = yield this.client.PATCH("/api/supplier-regions/{id}", {
156
+ params: { path: { id } },
162
157
  body: input,
163
- params: {
164
- path: { id, serviceAreaId },
165
- },
166
158
  headers: this.generateHeaders(options),
167
159
  });
168
160
  if (data) {
@@ -171,14 +163,12 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
171
163
  return this.handleErrorResponse(error, response);
172
164
  });
173
165
  }
174
- upsertSupplierRegion(_a, options) {
166
+ createCoverageArea(_a, options) {
175
167
  return __awaiter(this, void 0, void 0, function* () {
176
- var { id, region } = _a, input = __rest(_a, ["id", "region"]);
177
- const { data, error, response } = yield this.client.PUT("/api/suppliers/{id}/regions/{region}", {
168
+ var { id } = _a, input = __rest(_a, ["id"]);
169
+ const { data, error, response } = yield this.client.POST("/api/supplier-regions/{id}/coverage-areas", {
170
+ params: { path: { id } },
178
171
  body: input,
179
- params: {
180
- path: { id, region },
181
- },
182
172
  headers: this.generateHeaders(options),
183
173
  });
184
174
  if (data) {
@@ -187,12 +177,10 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
187
177
  return this.handleErrorResponse(error, response);
188
178
  });
189
179
  }
190
- removeSupplierRegion(input, options) {
191
- return __awaiter(this, void 0, void 0, function* () {
192
- const { data, error, response } = yield this.client.DELETE("/api/suppliers/{id}/regions/{region}", {
193
- params: {
194
- path: input,
195
- },
180
+ getCoverageAreas(_a, options_1) {
181
+ return __awaiter(this, arguments, void 0, function* ({ id }, options) {
182
+ const { data, error, response } = yield this.client.GET("/api/supplier-regions/{id}/coverage-areas", {
183
+ params: { path: { id } },
196
184
  headers: this.generateHeaders(options),
197
185
  });
198
186
  if (data) {
@@ -201,6 +189,30 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
201
189
  return this.handleErrorResponse(error, response);
202
190
  });
203
191
  }
192
+ getCoverageArea(_a, options_1) {
193
+ return __awaiter(this, arguments, void 0, function* ({ id }, options) {
194
+ const { data, error, response } = yield this.client.GET("/api/coverage-areas/{id}", {
195
+ params: { path: { id } },
196
+ headers: this.generateHeaders(options),
197
+ });
198
+ if (data) {
199
+ return (0, result_1.Ok)(data);
200
+ }
201
+ return this.handleErrorResponse(error, response);
202
+ });
203
+ }
204
+ removeCoverageArea(_a, options_1) {
205
+ return __awaiter(this, arguments, void 0, function* ({ id }, options) {
206
+ const { error, response } = yield this.client.DELETE("/api/coverage-areas/{id}", {
207
+ params: { path: { id } },
208
+ headers: this.generateHeaders(options),
209
+ });
210
+ if (error) {
211
+ return this.handleErrorResponse(error, response);
212
+ }
213
+ return (0, result_1.Ok)();
214
+ });
215
+ }
204
216
  getProjects(input, options) {
205
217
  return __awaiter(this, void 0, void 0, function* () {
206
218
  const { data, error, response } = yield this.client.GET("/api/projects", {
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAMmC;AACnC,6CAAyD;AAIzD,MAAM,gBAAgB,GAAG,6BAA6B,CAAC;AAOvD,MAAa,cAAe,SAAQ,+BAAoB;IACtD,YAAY,KAAgC;QAC1C,KAAK,iCAAM,KAAK,KAAE,UAAU,EAAE,gBAAgB,IAAG,CAAC;IACpD,CAAC;IAEK,WAAW,CACf,MAAyB,EACzB,OAAwB;;YAExB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,aAAa,EAAE;gBACrE,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC;aACvC,CAAC,CAAC;YAEH,IAAI,IAAI,EAAE,CAAC;gBACT,OAAO,IAAA,WAAE,EAAC,IAAI,CAAC,CAAC;YAClB,CAAC;YAED,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAEK,YAAY,CAChB,KAAyB,EACzB,OAAwB;;YAExB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,EAAE;gBACxE,MAAM,E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,EAAE;iBACb;gBACD,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC;aACvC,CACF,CAAC;YAEF,IAAI,IAAI,EAAE,CAAC;gBACT,OAAO,IAAA,WAAE,EAAC,IAAI,CAAC,CAAC;YAClB,CAAC;YAED,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAEK,oBAAoB,CACxB,EAA2C,EAC3C,OAAwB;;gBADxB,EAAE,EAAE,OAAuC,EAAlC,KAAK,cAAd,MAAgB,CAAF;YAGd,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CACvD,6BAA6B,EAC7B;gBACE,IAAI,EAAE,KAAK;gBACX,MAAM,EAAE;oBACN,IAAI,EAAE,EAAE,EAAE,EAAE;iBACb;gBACD,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC;aACvC,CACF,CAAC;YAEF,IAAI,IAAI,EAAE,CAAC;gBACT,OAAO,IAAA,WAAE,EAAC,IAAI,CAAC,CAAC;YAClB,CAAC;YAED,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AAzZD,wCAyZC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@palmetto/dispatch-sdk",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "main": "./dist/main.js",
5
5
  "files": [
6
6
  "dist/**/*",