vercel-api-js 0.18.3 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +14 -0
- package/dist/index.cjs +18 -11
- package/dist/index.d.cts +205 -54
- package/dist/index.d.mts +205 -54
- package/dist/index.d.ts +205 -54
- package/dist/index.mjs +18 -11
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> vercel-api-js@0.
|
|
2
|
+
> vercel-api-js@0.19.1 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
|
|
3
3
|
> unbuild
|
|
4
4
|
|
|
5
5
|
[info] Automatically detected entries: src/index [esm] [cjs] [dts]
|
|
6
6
|
[info] Building vercel-api-js
|
|
7
7
|
[info] Cleaning dist directory: `./dist`
|
|
8
8
|
[success] Build succeeded for vercel-api-js
|
|
9
|
-
[log] dist/index.cjs (total size:
|
|
9
|
+
[log] dist/index.cjs (total size: 29.2 kB, chunk size: 29.2 kB, exports: VercelApi)
|
|
10
10
|
|
|
11
|
-
[log] dist/index.mjs (total size:
|
|
11
|
+
[log] dist/index.mjs (total size: 29.1 kB, chunk size: 29.1 kB, exports: VercelApi)
|
|
12
12
|
|
|
13
|
-
Σ Total dist size (byte size): 2.
|
|
13
|
+
Σ Total dist size (byte size): 2.92 MB
|
|
14
14
|
[log]
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# vercel-api-js
|
|
2
2
|
|
|
3
|
+
## 0.19.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c50aad5: Add tagIds field to getConfigurations endpoint
|
|
8
|
+
- 1986a5d: [BREAKING] Change field name from 'Project' to 'ProjectId' in getBypassIp response
|
|
9
|
+
- c0119ba: Change additionalPermissions to additionalRoles in GetTeamMembersResponse
|
|
10
|
+
|
|
11
|
+
## 0.19.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 52eee8a: Add 'additionalPermissions' field to GetTeamMembersResponse and TeamLimited types
|
|
16
|
+
|
|
3
17
|
## 0.18.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
function notEmpty(value) {
|
|
4
|
-
return value !== null && value !==
|
|
4
|
+
return value !== null && value !== undefined;
|
|
5
5
|
}
|
|
6
6
|
function compactObject(obj) {
|
|
7
7
|
return Object.fromEntries(Object.entries(obj).filter(([, value]) => notEmpty(value)));
|
|
@@ -140,6 +140,12 @@ const checkDomainPrice = (variables, signal) => fetch$1({
|
|
|
140
140
|
...variables,
|
|
141
141
|
signal
|
|
142
142
|
});
|
|
143
|
+
const checkDomainStatus = (variables, signal) => fetch$1({
|
|
144
|
+
url: "/v4/domains/status",
|
|
145
|
+
method: "get",
|
|
146
|
+
...variables,
|
|
147
|
+
signal
|
|
148
|
+
});
|
|
143
149
|
const getRecords = (variables, signal) => fetch$1({ url: "/v4/domains/{domain}/records", method: "get", ...variables, signal });
|
|
144
150
|
const createRecord = (variables, signal) => fetch$1({ url: "/v2/domains/{domain}/records", method: "post", ...variables, signal });
|
|
145
151
|
const updateRecord = (variables, signal) => fetch$1({ url: "/v1/domains/records/{recordId}", method: "patch", ...variables, signal });
|
|
@@ -149,12 +155,6 @@ const removeRecord = (variables, signal) => fetch$1({
|
|
|
149
155
|
...variables,
|
|
150
156
|
signal
|
|
151
157
|
});
|
|
152
|
-
const checkDomainStatus = (variables, signal) => fetch$1({
|
|
153
|
-
url: "/v4/domains/status",
|
|
154
|
-
method: "get",
|
|
155
|
-
...variables,
|
|
156
|
-
signal
|
|
157
|
-
});
|
|
158
158
|
const getDomainTransfer = (variables, signal) => fetch$1({
|
|
159
159
|
url: "/v1/domains/{domain}/registry",
|
|
160
160
|
method: "get",
|
|
@@ -268,6 +268,12 @@ const updateResourceSecrets = (variables, signal) => fetch$1({
|
|
|
268
268
|
...variables,
|
|
269
269
|
signal
|
|
270
270
|
});
|
|
271
|
+
const updateResourceSecretsById = (variables, signal) => fetch$1({
|
|
272
|
+
url: "/v1/installations/{integrationConfigurationId}/resources/{resourceId}/secrets",
|
|
273
|
+
method: "put",
|
|
274
|
+
...variables,
|
|
275
|
+
signal
|
|
276
|
+
});
|
|
271
277
|
const getConfigurations = (variables, signal) => fetch$1({ url: "/v1/integrations/configurations", method: "get", ...variables, signal });
|
|
272
278
|
const getConfiguration = (variables, signal) => fetch$1({ url: "/v1/integrations/configuration/{id}", method: "get", ...variables, signal });
|
|
273
279
|
const deleteConfiguration = (variables, signal) => fetch$1({ url: "/v1/integrations/configuration/{id}", method: "delete", ...variables, signal });
|
|
@@ -662,6 +668,7 @@ const operationsByTag = {
|
|
|
662
668
|
getInvoice,
|
|
663
669
|
updateInvoice,
|
|
664
670
|
updateResourceSecrets,
|
|
671
|
+
updateResourceSecretsById,
|
|
665
672
|
exchangeSsoToken
|
|
666
673
|
},
|
|
667
674
|
integrations: { getConfigurations, getConfiguration, deleteConfiguration, gitNamespaces, searchRepo },
|
|
@@ -725,15 +732,15 @@ class VercelApi {
|
|
|
725
732
|
{},
|
|
726
733
|
{
|
|
727
734
|
get: (_target, namespace) => {
|
|
728
|
-
if (operationsByTag[namespace] ===
|
|
729
|
-
return
|
|
735
|
+
if (operationsByTag[namespace] === undefined) {
|
|
736
|
+
return undefined;
|
|
730
737
|
}
|
|
731
738
|
return new Proxy(
|
|
732
739
|
{},
|
|
733
740
|
{
|
|
734
741
|
get: (_target2, operation) => {
|
|
735
|
-
if (operationsByTag[namespace][operation] ===
|
|
736
|
-
return
|
|
742
|
+
if (operationsByTag[namespace][operation] === undefined) {
|
|
743
|
+
return undefined;
|
|
737
744
|
}
|
|
738
745
|
const method = operationsByTag[namespace][operation];
|
|
739
746
|
return async (params) => {
|