@explo-tech/fido-api 3.0.0-jordan-testing.5 → 3.0.0-jordan-testing.6

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 (2) hide show
  1. package/index.ts +30 -27
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -416,6 +416,9 @@ const NamespaceResponseMetadata = z
416
416
  const NamespaceResponse = z
417
417
  .object({ namespace: Namespace, meta: NamespaceResponseMetadata.nullable() })
418
418
  .passthrough();
419
+ const ListNamespacesResponse = z
420
+ .object({ namespaces: z.array(NamespaceResponse) })
421
+ .passthrough();
419
422
  const DataSourceRequest = z.object({ dataSource: DataSource }).passthrough();
420
423
  const DataSourceResponse = z.object({ dataSource: DataSource }).passthrough();
421
424
  const PagingConfiguration = z
@@ -1114,6 +1117,7 @@ export const schemas = {
1114
1117
  DataSource,
1115
1118
  NamespaceResponseMetadata,
1116
1119
  NamespaceResponse,
1120
+ ListNamespacesResponse,
1117
1121
  DataSourceRequest,
1118
1122
  DataSourceResponse,
1119
1123
  PagingConfiguration,
@@ -1285,6 +1289,7 @@ export type NamespaceResponseMetadata = z.infer<
1285
1289
  typeof NamespaceResponseMetadata
1286
1290
  >;
1287
1291
  export type NamespaceResponse = z.infer<typeof NamespaceResponse>;
1292
+ export type ListNamespacesResponse = z.infer<typeof ListNamespacesResponse>;
1288
1293
  export type DataSourceRequest = z.infer<typeof DataSourceRequest>;
1289
1294
  export type DataSourceResponse = z.infer<typeof DataSourceResponse>;
1290
1295
  export type PagingConfiguration = z.infer<typeof PagingConfiguration>;
@@ -1401,7 +1406,7 @@ export type ListVersionedViewsRequest = z.infer<
1401
1406
  typeof ListVersionedViewsRequest
1402
1407
  >;
1403
1408
 
1404
- const Branch_ResourceEndpoints = makeApi([
1409
+ const BranchResourceEndpoints = makeApi([
1405
1410
  {
1406
1411
  method: "get",
1407
1412
  path: "/v1/branches",
@@ -1546,9 +1551,9 @@ const Branch_ResourceEndpoints = makeApi([
1546
1551
  },
1547
1552
  ]);
1548
1553
 
1549
- export const Branch_ResourceApi = new Zodios(Branch_ResourceEndpoints);
1554
+ export const BranchResourceService = new Zodios(BranchResourceEndpoints);
1550
1555
 
1551
- const Commit_ResourceEndpoints = makeApi([
1556
+ const CommitResourceEndpoints = makeApi([
1552
1557
  {
1553
1558
  method: "post",
1554
1559
  path: "/v1/branches/:branchId/commits",
@@ -1583,9 +1588,9 @@ const Commit_ResourceEndpoints = makeApi([
1583
1588
  },
1584
1589
  ]);
1585
1590
 
1586
- export const Commit_ResourceApi = new Zodios(Commit_ResourceEndpoints);
1591
+ export const CommitResourceService = new Zodios(CommitResourceEndpoints);
1587
1592
 
1588
- const Branch_Content_ResourceEndpoints = makeApi([
1593
+ const BranchContentResourceEndpoints = makeApi([
1589
1594
  {
1590
1595
  method: "get",
1591
1596
  path: "/v1/branches/:id/contents:path",
@@ -1632,11 +1637,11 @@ const Branch_Content_ResourceEndpoints = makeApi([
1632
1637
  },
1633
1638
  ]);
1634
1639
 
1635
- export const Branch_Content_ResourceApi = new Zodios(
1636
- Branch_Content_ResourceEndpoints
1640
+ export const BranchContentResourceService = new Zodios(
1641
+ BranchContentResourceEndpoints
1637
1642
  );
1638
1643
 
1639
- const Test_Connection_ResourceEndpoints = makeApi([
1644
+ const TestConnectionResourceEndpoints = makeApi([
1640
1645
  {
1641
1646
  method: "post",
1642
1647
  path: "/v1/data-sources/retest-connection/:id",
@@ -1697,8 +1702,8 @@ const Test_Connection_ResourceEndpoints = makeApi([
1697
1702
  },
1698
1703
  ]);
1699
1704
 
1700
- export const Test_Connection_ResourceApi = new Zodios(
1701
- Test_Connection_ResourceEndpoints
1705
+ export const TestConnectionResourceService = new Zodios(
1706
+ TestConnectionResourceEndpoints
1702
1707
  );
1703
1708
 
1704
1709
  const Health_ResourceEndpoints = makeApi([
@@ -1740,9 +1745,9 @@ const Health_ResourceEndpoints = makeApi([
1740
1745
  },
1741
1746
  ]);
1742
1747
 
1743
- export const Health_ResourceApi = new Zodios(Health_ResourceEndpoints);
1748
+ export const Health_ResourceService = new Zodios(Health_ResourceEndpoints);
1744
1749
 
1745
- const Namespace_ResourceEndpoints = makeApi([
1750
+ const NamespaceResourceEndpoints = makeApi([
1746
1751
  {
1747
1752
  method: "post",
1748
1753
  path: "/v1/namespaces",
@@ -1782,9 +1787,7 @@ const Namespace_ResourceEndpoints = makeApi([
1782
1787
  schema: z.boolean().optional().default(false),
1783
1788
  },
1784
1789
  ],
1785
- response: z
1786
- .object({ namespaces: z.array(NamespaceResponse) })
1787
- .passthrough(),
1790
+ response: ListNamespacesResponse,
1788
1791
  errors: [
1789
1792
  {
1790
1793
  status: NaN,
@@ -1889,9 +1892,9 @@ const Namespace_ResourceEndpoints = makeApi([
1889
1892
  },
1890
1893
  ]);
1891
1894
 
1892
- export const Namespace_ResourceApi = new Zodios(Namespace_ResourceEndpoints);
1895
+ export const NamespaceResourceService = new Zodios(NamespaceResourceEndpoints);
1893
1896
 
1894
- const Data_Source_ResourceEndpoints = makeApi([
1897
+ const DataSourceResourceEndpoints = makeApi([
1895
1898
  {
1896
1899
  method: "post",
1897
1900
  path: "/v1/namespaces/:namespaceId/data-sources",
@@ -2112,11 +2115,11 @@ const Data_Source_ResourceEndpoints = makeApi([
2112
2115
  },
2113
2116
  ]);
2114
2117
 
2115
- export const Data_Source_ResourceApi = new Zodios(
2116
- Data_Source_ResourceEndpoints
2118
+ export const DataSourceResourceService = new Zodios(
2119
+ DataSourceResourceEndpoints
2117
2120
  );
2118
2121
 
2119
- const Query_ResourceEndpoints = makeApi([
2122
+ const QueryResourceEndpoints = makeApi([
2120
2123
  {
2121
2124
  method: "post",
2122
2125
  path: "/v1/namespaces/:namespaceId/data-sources/:dataSourceId/preview",
@@ -2441,9 +2444,9 @@ const Query_ResourceEndpoints = makeApi([
2441
2444
  },
2442
2445
  ]);
2443
2446
 
2444
- export const Query_ResourceApi = new Zodios(Query_ResourceEndpoints);
2447
+ export const QueryResourceService = new Zodios(QueryResourceEndpoints);
2445
2448
 
2446
- const View_ResourceEndpoints = makeApi([
2449
+ const ViewResourceEndpoints = makeApi([
2447
2450
  {
2448
2451
  method: "get",
2449
2452
  path: "/v1/namespaces/:namespaceId/views/:id",
@@ -2528,9 +2531,9 @@ const View_ResourceEndpoints = makeApi([
2528
2531
  },
2529
2532
  ]);
2530
2533
 
2531
- export const View_ResourceApi = new Zodios(View_ResourceEndpoints);
2534
+ export const ViewResourceService = new Zodios(ViewResourceEndpoints);
2532
2535
 
2533
- const Tenant_ResourceEndpoints = makeApi([
2536
+ const TenantResourceEndpoints = makeApi([
2534
2537
  {
2535
2538
  method: "post",
2536
2539
  path: "/v1/tenants",
@@ -2639,9 +2642,9 @@ const Tenant_ResourceEndpoints = makeApi([
2639
2642
  },
2640
2643
  ]);
2641
2644
 
2642
- export const Tenant_ResourceApi = new Zodios(Tenant_ResourceEndpoints);
2645
+ export const TenantResourceService = new Zodios(TenantResourceEndpoints);
2643
2646
 
2644
- const List_Views_ResourceEndpoints = makeApi([
2647
+ const ListViewsResourceEndpoints = makeApi([
2645
2648
  {
2646
2649
  method: "post",
2647
2650
  path: "/v1/views/batch-get",
@@ -2666,7 +2669,7 @@ const List_Views_ResourceEndpoints = makeApi([
2666
2669
  },
2667
2670
  ]);
2668
2671
 
2669
- export const List_Views_ResourceApi = new Zodios(List_Views_ResourceEndpoints);
2672
+ export const ListViewsResourceService = new Zodios(ListViewsResourceEndpoints);
2670
2673
 
2671
2674
  export function createApiClient(baseUrl: string, options?: ZodiosOptions) {
2672
2675
  return new Zodios(baseUrl, endpoints, options);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@explo-tech/fido-api",
3
3
  "description": "Fido api",
4
4
  "homepage": "https://github.com/trust-kaz/fido",
5
- "version": "3.0.0-jordan-testing.5",
5
+ "version": "3.0.0-jordan-testing.6",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/trust-kaz/fido"