@uniformdev/next-app-router 20.50.2-alpha.9 → 20.50.3-alpha.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.
- package/dist/cache.js +12 -0
- package/dist/cache.mjs +12 -0
- package/dist/component.js +12 -0
- package/dist/component.mjs +12 -0
- package/dist/handler.js +12 -0
- package/dist/handler.mjs +12 -0
- package/dist/index.esm.js +12 -0
- package/dist/index.js +12 -0
- package/dist/index.mjs +12 -0
- package/dist/middleware.js +12 -0
- package/dist/middleware.mjs +12 -0
- package/package.json +8 -8
package/dist/cache.js
CHANGED
|
@@ -1309,6 +1309,7 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
|
|
|
1309
1309
|
_baseUrl = /* @__PURE__ */ new WeakMap();
|
|
1310
1310
|
__privateAdd2(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
1311
1311
|
var _url22;
|
|
1312
|
+
var _projectsUrl;
|
|
1312
1313
|
var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
1313
1314
|
constructor(options) {
|
|
1314
1315
|
super({ ...options, bypassCache: true });
|
|
@@ -1318,6 +1319,15 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1318
1319
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22), { ...options });
|
|
1319
1320
|
return await this.apiClient(fetchUri);
|
|
1320
1321
|
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Fetches projects grouped by team.
|
|
1324
|
+
* When teamId is provided, returns a single team with its projects.
|
|
1325
|
+
* When omitted, returns all accessible teams and their projects.
|
|
1326
|
+
*/
|
|
1327
|
+
async getProjects(options) {
|
|
1328
|
+
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _projectsUrl), options ? { ...options } : {});
|
|
1329
|
+
return await this.apiClient(fetchUri);
|
|
1330
|
+
}
|
|
1321
1331
|
/** Updates or creates (based on id) a Project */
|
|
1322
1332
|
async upsert(body) {
|
|
1323
1333
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
|
|
@@ -1337,7 +1347,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1337
1347
|
}
|
|
1338
1348
|
};
|
|
1339
1349
|
_url22 = /* @__PURE__ */ new WeakMap();
|
|
1350
|
+
_projectsUrl = /* @__PURE__ */ new WeakMap();
|
|
1340
1351
|
__privateAdd2(_ProjectClient, _url22, "/api/v1/project");
|
|
1352
|
+
__privateAdd2(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
1341
1353
|
var ROUTE_URL = "/api/v1/route";
|
|
1342
1354
|
var RouteClient = class extends ApiClient {
|
|
1343
1355
|
constructor(options) {
|
package/dist/cache.mjs
CHANGED
|
@@ -1296,6 +1296,7 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
|
|
|
1296
1296
|
_baseUrl = /* @__PURE__ */ new WeakMap();
|
|
1297
1297
|
__privateAdd2(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
1298
1298
|
var _url22;
|
|
1299
|
+
var _projectsUrl;
|
|
1299
1300
|
var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
1300
1301
|
constructor(options) {
|
|
1301
1302
|
super({ ...options, bypassCache: true });
|
|
@@ -1305,6 +1306,15 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1305
1306
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22), { ...options });
|
|
1306
1307
|
return await this.apiClient(fetchUri);
|
|
1307
1308
|
}
|
|
1309
|
+
/**
|
|
1310
|
+
* Fetches projects grouped by team.
|
|
1311
|
+
* When teamId is provided, returns a single team with its projects.
|
|
1312
|
+
* When omitted, returns all accessible teams and their projects.
|
|
1313
|
+
*/
|
|
1314
|
+
async getProjects(options) {
|
|
1315
|
+
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _projectsUrl), options ? { ...options } : {});
|
|
1316
|
+
return await this.apiClient(fetchUri);
|
|
1317
|
+
}
|
|
1308
1318
|
/** Updates or creates (based on id) a Project */
|
|
1309
1319
|
async upsert(body) {
|
|
1310
1320
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
|
|
@@ -1324,7 +1334,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1324
1334
|
}
|
|
1325
1335
|
};
|
|
1326
1336
|
_url22 = /* @__PURE__ */ new WeakMap();
|
|
1337
|
+
_projectsUrl = /* @__PURE__ */ new WeakMap();
|
|
1327
1338
|
__privateAdd2(_ProjectClient, _url22, "/api/v1/project");
|
|
1339
|
+
__privateAdd2(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
1328
1340
|
var ROUTE_URL = "/api/v1/route";
|
|
1329
1341
|
var RouteClient = class extends ApiClient {
|
|
1330
1342
|
constructor(options) {
|
package/dist/component.js
CHANGED
|
@@ -1169,6 +1169,7 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
|
|
|
1169
1169
|
_baseUrl = /* @__PURE__ */ new WeakMap();
|
|
1170
1170
|
__privateAdd2(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
1171
1171
|
var _url22;
|
|
1172
|
+
var _projectsUrl;
|
|
1172
1173
|
var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
1173
1174
|
constructor(options) {
|
|
1174
1175
|
super({ ...options, bypassCache: true });
|
|
@@ -1178,6 +1179,15 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1178
1179
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22), { ...options });
|
|
1179
1180
|
return await this.apiClient(fetchUri);
|
|
1180
1181
|
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Fetches projects grouped by team.
|
|
1184
|
+
* When teamId is provided, returns a single team with its projects.
|
|
1185
|
+
* When omitted, returns all accessible teams and their projects.
|
|
1186
|
+
*/
|
|
1187
|
+
async getProjects(options) {
|
|
1188
|
+
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _projectsUrl), options ? { ...options } : {});
|
|
1189
|
+
return await this.apiClient(fetchUri);
|
|
1190
|
+
}
|
|
1181
1191
|
/** Updates or creates (based on id) a Project */
|
|
1182
1192
|
async upsert(body) {
|
|
1183
1193
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
|
|
@@ -1197,7 +1207,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1197
1207
|
}
|
|
1198
1208
|
};
|
|
1199
1209
|
_url22 = /* @__PURE__ */ new WeakMap();
|
|
1210
|
+
_projectsUrl = /* @__PURE__ */ new WeakMap();
|
|
1200
1211
|
__privateAdd2(_ProjectClient, _url22, "/api/v1/project");
|
|
1212
|
+
__privateAdd2(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
1201
1213
|
var ATTRIBUTE_COMPONENT_ID = "data-uniform-component-id";
|
|
1202
1214
|
var ATTRIBUTE_PARAMETER_ID = "data-uniform-parameter-id";
|
|
1203
1215
|
var ATTRIBUTE_PARAMETER_TYPE = "data-uniform-parameter-type";
|
package/dist/component.mjs
CHANGED
|
@@ -1154,6 +1154,7 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
|
|
|
1154
1154
|
_baseUrl = /* @__PURE__ */ new WeakMap();
|
|
1155
1155
|
__privateAdd2(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
1156
1156
|
var _url22;
|
|
1157
|
+
var _projectsUrl;
|
|
1157
1158
|
var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
1158
1159
|
constructor(options) {
|
|
1159
1160
|
super({ ...options, bypassCache: true });
|
|
@@ -1163,6 +1164,15 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1163
1164
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22), { ...options });
|
|
1164
1165
|
return await this.apiClient(fetchUri);
|
|
1165
1166
|
}
|
|
1167
|
+
/**
|
|
1168
|
+
* Fetches projects grouped by team.
|
|
1169
|
+
* When teamId is provided, returns a single team with its projects.
|
|
1170
|
+
* When omitted, returns all accessible teams and their projects.
|
|
1171
|
+
*/
|
|
1172
|
+
async getProjects(options) {
|
|
1173
|
+
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _projectsUrl), options ? { ...options } : {});
|
|
1174
|
+
return await this.apiClient(fetchUri);
|
|
1175
|
+
}
|
|
1166
1176
|
/** Updates or creates (based on id) a Project */
|
|
1167
1177
|
async upsert(body) {
|
|
1168
1178
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
|
|
@@ -1182,7 +1192,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1182
1192
|
}
|
|
1183
1193
|
};
|
|
1184
1194
|
_url22 = /* @__PURE__ */ new WeakMap();
|
|
1195
|
+
_projectsUrl = /* @__PURE__ */ new WeakMap();
|
|
1185
1196
|
__privateAdd2(_ProjectClient, _url22, "/api/v1/project");
|
|
1197
|
+
__privateAdd2(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
1186
1198
|
var ATTRIBUTE_COMPONENT_ID = "data-uniform-component-id";
|
|
1187
1199
|
var ATTRIBUTE_PARAMETER_ID = "data-uniform-parameter-id";
|
|
1188
1200
|
var ATTRIBUTE_PARAMETER_TYPE = "data-uniform-parameter-type";
|
package/dist/handler.js
CHANGED
|
@@ -1503,6 +1503,7 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
|
|
|
1503
1503
|
_baseUrl = /* @__PURE__ */ new WeakMap();
|
|
1504
1504
|
__privateAdd2(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
1505
1505
|
var _url22;
|
|
1506
|
+
var _projectsUrl;
|
|
1506
1507
|
var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
1507
1508
|
constructor(options) {
|
|
1508
1509
|
super({ ...options, bypassCache: true });
|
|
@@ -1512,6 +1513,15 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1512
1513
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22), { ...options });
|
|
1513
1514
|
return await this.apiClient(fetchUri);
|
|
1514
1515
|
}
|
|
1516
|
+
/**
|
|
1517
|
+
* Fetches projects grouped by team.
|
|
1518
|
+
* When teamId is provided, returns a single team with its projects.
|
|
1519
|
+
* When omitted, returns all accessible teams and their projects.
|
|
1520
|
+
*/
|
|
1521
|
+
async getProjects(options) {
|
|
1522
|
+
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _projectsUrl), options ? { ...options } : {});
|
|
1523
|
+
return await this.apiClient(fetchUri);
|
|
1524
|
+
}
|
|
1515
1525
|
/** Updates or creates (based on id) a Project */
|
|
1516
1526
|
async upsert(body) {
|
|
1517
1527
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
|
|
@@ -1531,7 +1541,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1531
1541
|
}
|
|
1532
1542
|
};
|
|
1533
1543
|
_url22 = /* @__PURE__ */ new WeakMap();
|
|
1544
|
+
_projectsUrl = /* @__PURE__ */ new WeakMap();
|
|
1534
1545
|
__privateAdd2(_ProjectClient, _url22, "/api/v1/project");
|
|
1546
|
+
__privateAdd2(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
1535
1547
|
var isAllowedReferrer = (referrer) => {
|
|
1536
1548
|
return Boolean(referrer == null ? void 0 : referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|localhost:\d{4})\//));
|
|
1537
1549
|
};
|
package/dist/handler.mjs
CHANGED
|
@@ -1488,6 +1488,7 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
|
|
|
1488
1488
|
_baseUrl = /* @__PURE__ */ new WeakMap();
|
|
1489
1489
|
__privateAdd2(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
1490
1490
|
var _url22;
|
|
1491
|
+
var _projectsUrl;
|
|
1491
1492
|
var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
1492
1493
|
constructor(options) {
|
|
1493
1494
|
super({ ...options, bypassCache: true });
|
|
@@ -1497,6 +1498,15 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1497
1498
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22), { ...options });
|
|
1498
1499
|
return await this.apiClient(fetchUri);
|
|
1499
1500
|
}
|
|
1501
|
+
/**
|
|
1502
|
+
* Fetches projects grouped by team.
|
|
1503
|
+
* When teamId is provided, returns a single team with its projects.
|
|
1504
|
+
* When omitted, returns all accessible teams and their projects.
|
|
1505
|
+
*/
|
|
1506
|
+
async getProjects(options) {
|
|
1507
|
+
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _projectsUrl), options ? { ...options } : {});
|
|
1508
|
+
return await this.apiClient(fetchUri);
|
|
1509
|
+
}
|
|
1500
1510
|
/** Updates or creates (based on id) a Project */
|
|
1501
1511
|
async upsert(body) {
|
|
1502
1512
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
|
|
@@ -1516,7 +1526,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1516
1526
|
}
|
|
1517
1527
|
};
|
|
1518
1528
|
_url22 = /* @__PURE__ */ new WeakMap();
|
|
1529
|
+
_projectsUrl = /* @__PURE__ */ new WeakMap();
|
|
1519
1530
|
__privateAdd2(_ProjectClient, _url22, "/api/v1/project");
|
|
1531
|
+
__privateAdd2(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
1520
1532
|
var isAllowedReferrer = (referrer) => {
|
|
1521
1533
|
return Boolean(referrer == null ? void 0 : referrer.match(/(^https:\/\/|\.)(uniform.app|uniform.wtf|localhost:\d{4})\//));
|
|
1522
1534
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -1849,6 +1849,7 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
|
|
|
1849
1849
|
_baseUrl = /* @__PURE__ */ new WeakMap();
|
|
1850
1850
|
__privateAdd2(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
1851
1851
|
var _url22;
|
|
1852
|
+
var _projectsUrl;
|
|
1852
1853
|
var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
1853
1854
|
constructor(options) {
|
|
1854
1855
|
super({ ...options, bypassCache: true });
|
|
@@ -1858,6 +1859,15 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1858
1859
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22), { ...options });
|
|
1859
1860
|
return await this.apiClient(fetchUri);
|
|
1860
1861
|
}
|
|
1862
|
+
/**
|
|
1863
|
+
* Fetches projects grouped by team.
|
|
1864
|
+
* When teamId is provided, returns a single team with its projects.
|
|
1865
|
+
* When omitted, returns all accessible teams and their projects.
|
|
1866
|
+
*/
|
|
1867
|
+
async getProjects(options) {
|
|
1868
|
+
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _projectsUrl), options ? { ...options } : {});
|
|
1869
|
+
return await this.apiClient(fetchUri);
|
|
1870
|
+
}
|
|
1861
1871
|
/** Updates or creates (based on id) a Project */
|
|
1862
1872
|
async upsert(body) {
|
|
1863
1873
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
|
|
@@ -1877,7 +1887,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1877
1887
|
}
|
|
1878
1888
|
};
|
|
1879
1889
|
_url22 = /* @__PURE__ */ new WeakMap();
|
|
1890
|
+
_projectsUrl = /* @__PURE__ */ new WeakMap();
|
|
1880
1891
|
__privateAdd2(_ProjectClient, _url22, "/api/v1/project");
|
|
1892
|
+
__privateAdd2(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
1881
1893
|
var ROUTE_URL = "/api/v1/route";
|
|
1882
1894
|
var RouteClient = class extends ApiClient {
|
|
1883
1895
|
constructor(options) {
|
package/dist/index.js
CHANGED
|
@@ -1876,6 +1876,7 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
|
|
|
1876
1876
|
_baseUrl = /* @__PURE__ */ new WeakMap();
|
|
1877
1877
|
__privateAdd2(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
1878
1878
|
var _url22;
|
|
1879
|
+
var _projectsUrl;
|
|
1879
1880
|
var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
1880
1881
|
constructor(options) {
|
|
1881
1882
|
super({ ...options, bypassCache: true });
|
|
@@ -1885,6 +1886,15 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1885
1886
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22), { ...options });
|
|
1886
1887
|
return await this.apiClient(fetchUri);
|
|
1887
1888
|
}
|
|
1889
|
+
/**
|
|
1890
|
+
* Fetches projects grouped by team.
|
|
1891
|
+
* When teamId is provided, returns a single team with its projects.
|
|
1892
|
+
* When omitted, returns all accessible teams and their projects.
|
|
1893
|
+
*/
|
|
1894
|
+
async getProjects(options) {
|
|
1895
|
+
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _projectsUrl), options ? { ...options } : {});
|
|
1896
|
+
return await this.apiClient(fetchUri);
|
|
1897
|
+
}
|
|
1888
1898
|
/** Updates or creates (based on id) a Project */
|
|
1889
1899
|
async upsert(body) {
|
|
1890
1900
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
|
|
@@ -1904,7 +1914,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1904
1914
|
}
|
|
1905
1915
|
};
|
|
1906
1916
|
_url22 = /* @__PURE__ */ new WeakMap();
|
|
1917
|
+
_projectsUrl = /* @__PURE__ */ new WeakMap();
|
|
1907
1918
|
__privateAdd2(_ProjectClient, _url22, "/api/v1/project");
|
|
1919
|
+
__privateAdd2(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
1908
1920
|
var ROUTE_URL = "/api/v1/route";
|
|
1909
1921
|
var RouteClient = class extends ApiClient {
|
|
1910
1922
|
constructor(options) {
|
package/dist/index.mjs
CHANGED
|
@@ -1849,6 +1849,7 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
|
|
|
1849
1849
|
_baseUrl = /* @__PURE__ */ new WeakMap();
|
|
1850
1850
|
__privateAdd2(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
1851
1851
|
var _url22;
|
|
1852
|
+
var _projectsUrl;
|
|
1852
1853
|
var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
1853
1854
|
constructor(options) {
|
|
1854
1855
|
super({ ...options, bypassCache: true });
|
|
@@ -1858,6 +1859,15 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1858
1859
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22), { ...options });
|
|
1859
1860
|
return await this.apiClient(fetchUri);
|
|
1860
1861
|
}
|
|
1862
|
+
/**
|
|
1863
|
+
* Fetches projects grouped by team.
|
|
1864
|
+
* When teamId is provided, returns a single team with its projects.
|
|
1865
|
+
* When omitted, returns all accessible teams and their projects.
|
|
1866
|
+
*/
|
|
1867
|
+
async getProjects(options) {
|
|
1868
|
+
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _projectsUrl), options ? { ...options } : {});
|
|
1869
|
+
return await this.apiClient(fetchUri);
|
|
1870
|
+
}
|
|
1861
1871
|
/** Updates or creates (based on id) a Project */
|
|
1862
1872
|
async upsert(body) {
|
|
1863
1873
|
const fetchUri = this.createUrl(__privateGet2(_ProjectClient2, _url22));
|
|
@@ -1877,7 +1887,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
1877
1887
|
}
|
|
1878
1888
|
};
|
|
1879
1889
|
_url22 = /* @__PURE__ */ new WeakMap();
|
|
1890
|
+
_projectsUrl = /* @__PURE__ */ new WeakMap();
|
|
1880
1891
|
__privateAdd2(_ProjectClient, _url22, "/api/v1/project");
|
|
1892
|
+
__privateAdd2(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
1881
1893
|
var ROUTE_URL = "/api/v1/route";
|
|
1882
1894
|
var RouteClient = class extends ApiClient {
|
|
1883
1895
|
constructor(options) {
|
package/dist/middleware.js
CHANGED
|
@@ -2197,6 +2197,7 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
|
|
|
2197
2197
|
_baseUrl = /* @__PURE__ */ new WeakMap();
|
|
2198
2198
|
__privateAdd3(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
2199
2199
|
var _url22;
|
|
2200
|
+
var _projectsUrl;
|
|
2200
2201
|
var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
2201
2202
|
constructor(options) {
|
|
2202
2203
|
super({ ...options, bypassCache: true });
|
|
@@ -2206,6 +2207,15 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
2206
2207
|
const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url22), { ...options });
|
|
2207
2208
|
return await this.apiClient(fetchUri);
|
|
2208
2209
|
}
|
|
2210
|
+
/**
|
|
2211
|
+
* Fetches projects grouped by team.
|
|
2212
|
+
* When teamId is provided, returns a single team with its projects.
|
|
2213
|
+
* When omitted, returns all accessible teams and their projects.
|
|
2214
|
+
*/
|
|
2215
|
+
async getProjects(options) {
|
|
2216
|
+
const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _projectsUrl), options ? { ...options } : {});
|
|
2217
|
+
return await this.apiClient(fetchUri);
|
|
2218
|
+
}
|
|
2209
2219
|
/** Updates or creates (based on id) a Project */
|
|
2210
2220
|
async upsert(body) {
|
|
2211
2221
|
const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url22));
|
|
@@ -2225,7 +2235,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
2225
2235
|
}
|
|
2226
2236
|
};
|
|
2227
2237
|
_url22 = /* @__PURE__ */ new WeakMap();
|
|
2238
|
+
_projectsUrl = /* @__PURE__ */ new WeakMap();
|
|
2228
2239
|
__privateAdd3(_ProjectClient, _url22, "/api/v1/project");
|
|
2240
|
+
__privateAdd3(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
2229
2241
|
var ROUTE_URL = "/api/v1/route";
|
|
2230
2242
|
var RouteClient = class extends ApiClient {
|
|
2231
2243
|
constructor(options) {
|
package/dist/middleware.mjs
CHANGED
|
@@ -2182,6 +2182,7 @@ var _IntegrationPropertyEditorsClient = class _IntegrationPropertyEditorsClient2
|
|
|
2182
2182
|
_baseUrl = /* @__PURE__ */ new WeakMap();
|
|
2183
2183
|
__privateAdd3(_IntegrationPropertyEditorsClient, _baseUrl, "/api/v1/integration-property-editors");
|
|
2184
2184
|
var _url22;
|
|
2185
|
+
var _projectsUrl;
|
|
2185
2186
|
var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
2186
2187
|
constructor(options) {
|
|
2187
2188
|
super({ ...options, bypassCache: true });
|
|
@@ -2191,6 +2192,15 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
2191
2192
|
const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url22), { ...options });
|
|
2192
2193
|
return await this.apiClient(fetchUri);
|
|
2193
2194
|
}
|
|
2195
|
+
/**
|
|
2196
|
+
* Fetches projects grouped by team.
|
|
2197
|
+
* When teamId is provided, returns a single team with its projects.
|
|
2198
|
+
* When omitted, returns all accessible teams and their projects.
|
|
2199
|
+
*/
|
|
2200
|
+
async getProjects(options) {
|
|
2201
|
+
const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _projectsUrl), options ? { ...options } : {});
|
|
2202
|
+
return await this.apiClient(fetchUri);
|
|
2203
|
+
}
|
|
2194
2204
|
/** Updates or creates (based on id) a Project */
|
|
2195
2205
|
async upsert(body) {
|
|
2196
2206
|
const fetchUri = this.createUrl(__privateGet3(_ProjectClient2, _url22));
|
|
@@ -2210,7 +2220,9 @@ var _ProjectClient = class _ProjectClient2 extends ApiClient {
|
|
|
2210
2220
|
}
|
|
2211
2221
|
};
|
|
2212
2222
|
_url22 = /* @__PURE__ */ new WeakMap();
|
|
2223
|
+
_projectsUrl = /* @__PURE__ */ new WeakMap();
|
|
2213
2224
|
__privateAdd3(_ProjectClient, _url22, "/api/v1/project");
|
|
2225
|
+
__privateAdd3(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
2214
2226
|
var ROUTE_URL = "/api/v1/route";
|
|
2215
2227
|
var RouteClient = class extends ApiClient {
|
|
2216
2228
|
constructor(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/next-app-router",
|
|
3
|
-
"version": "20.50.
|
|
3
|
+
"version": "20.50.3-alpha.6+3ffd0d8a44",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
"vitest": "3.2.4"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@uniformdev/canvas-react": "20.50.
|
|
103
|
-
"@uniformdev/next-app-router-client": "20.50.
|
|
104
|
-
"@uniformdev/next-app-router-shared": "20.50.
|
|
105
|
-
"@uniformdev/redirect": "20.50.
|
|
106
|
-
"@uniformdev/richtext": "20.50.
|
|
107
|
-
"@uniformdev/webhooks": "20.50.
|
|
102
|
+
"@uniformdev/canvas-react": "20.50.3-alpha.6+3ffd0d8a44",
|
|
103
|
+
"@uniformdev/next-app-router-client": "20.50.3-alpha.6+3ffd0d8a44",
|
|
104
|
+
"@uniformdev/next-app-router-shared": "20.50.3-alpha.6+3ffd0d8a44",
|
|
105
|
+
"@uniformdev/redirect": "20.50.3-alpha.6+3ffd0d8a44",
|
|
106
|
+
"@uniformdev/richtext": "20.50.3-alpha.6+3ffd0d8a44",
|
|
107
|
+
"@uniformdev/webhooks": "20.50.3-alpha.6+3ffd0d8a44",
|
|
108
108
|
"@vercel/functions": "^2.2.2",
|
|
109
109
|
"encoding": "^0.1.13",
|
|
110
110
|
"server-only": "^0.0.1",
|
|
@@ -121,5 +121,5 @@
|
|
|
121
121
|
"publishConfig": {
|
|
122
122
|
"access": "public"
|
|
123
123
|
},
|
|
124
|
-
"gitHead": "
|
|
124
|
+
"gitHead": "3ffd0d8a44f3ab6b90835250a33f61db016e9e19"
|
|
125
125
|
}
|