vercel-api-js 0.1.22 → 0.1.24
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 +3 -3
- package/CHANGELOG.md +13 -0
- package/dist/index.cjs +29 -4
- package/dist/index.d.ts +332 -108
- package/dist/index.mjs +29 -4
- package/package.json +3 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
> vercel-api-js@0.1.
|
|
2
|
+
> vercel-api-js@0.1.24 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
|
|
3
3
|
> rimraf dist && rollup -c
|
|
4
4
|
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.ts[22m → [1mdist/index.cjs, dist/index.mjs[22m...[39m
|
|
7
|
-
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [
|
|
7
|
+
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m4.6s[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./src/index.ts[22m → [1mdist/index.d.ts[22m...[39m
|
|
10
|
-
[32mcreated [1mdist/index.d.ts[22m in [
|
|
10
|
+
[32mcreated [1mdist/index.d.ts[22m in [1m5.4s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# vercel-api-js
|
|
2
2
|
|
|
3
|
+
## 0.1.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0be29c9: Export `types`
|
|
8
|
+
|
|
9
|
+
## 0.1.23
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2da8330: [OpenAPI] Spec updates for vercel-api-js
|
|
14
|
+
- 73631f0: [OpenAPI] Add pause project endpoints
|
|
15
|
+
|
|
3
16
|
## 0.1.22
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -421,9 +421,14 @@ const getConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-d
|
|
|
421
421
|
*/
|
|
422
422
|
const deleteConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'delete', ...variables, signal });
|
|
423
423
|
/**
|
|
424
|
-
* Retrieves a list of
|
|
424
|
+
* Retrieves a list of all the Log Drains owned by the account. This endpoint must be called with an account AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated account can be accessed.
|
|
425
425
|
*/
|
|
426
|
-
const
|
|
426
|
+
const getAllLogDrains = (variables, signal) => fetch$1({
|
|
427
|
+
url: '/v1/log-drains',
|
|
428
|
+
method: 'get',
|
|
429
|
+
...variables,
|
|
430
|
+
signal
|
|
431
|
+
});
|
|
427
432
|
/**
|
|
428
433
|
* Creates a configurable log drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed)
|
|
429
434
|
*/
|
|
@@ -529,6 +534,24 @@ const removeProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{id
|
|
|
529
534
|
* Edit a specific environment variable for a given project by passing the environment variable identifier and either passing the project `id` or `name` in the URL.
|
|
530
535
|
*/
|
|
531
536
|
const editProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env/{id}', method: 'patch', ...variables, signal });
|
|
537
|
+
/**
|
|
538
|
+
* Pause a project by passing its project `id` in the URL. If the project does not exist given the id then the request will fail with 400 status code. If the project disables auto assigning custom production domains and blocks the active Production Deployment then the request will return with 200 status code.
|
|
539
|
+
*/
|
|
540
|
+
const pauseProject = (variables, signal) => fetch$1({
|
|
541
|
+
url: '/v1/projects/{projectId}/pause',
|
|
542
|
+
method: 'post',
|
|
543
|
+
...variables,
|
|
544
|
+
signal
|
|
545
|
+
});
|
|
546
|
+
/**
|
|
547
|
+
* Unpause a project by passing its project `id` in the URL. If the project does not exist given the id then the request will fail with 400 status code. If the project enables auto assigning custom production domains and unblocks the active Production Deployment then the request will return with 200 status code.
|
|
548
|
+
*/
|
|
549
|
+
const unpauseProject = (variables, signal) => fetch$1({
|
|
550
|
+
url: '/v1/projects/{projectId}/unpause',
|
|
551
|
+
method: 'post',
|
|
552
|
+
...variables,
|
|
553
|
+
signal
|
|
554
|
+
});
|
|
532
555
|
/**
|
|
533
556
|
* Get a paginated list of team members for the provided team.
|
|
534
557
|
*/
|
|
@@ -885,7 +908,9 @@ const operationsByTag = {
|
|
|
885
908
|
getProjectEnv,
|
|
886
909
|
createProjectEnv,
|
|
887
910
|
removeProjectEnv,
|
|
888
|
-
editProjectEnv
|
|
911
|
+
editProjectEnv,
|
|
912
|
+
pauseProject,
|
|
913
|
+
unpauseProject
|
|
889
914
|
},
|
|
890
915
|
deployments: {
|
|
891
916
|
getDeploymentEvents,
|
|
@@ -933,7 +958,7 @@ const operationsByTag = {
|
|
|
933
958
|
deleteIntegrationLogDrain,
|
|
934
959
|
getConfigurableLogDrain,
|
|
935
960
|
deleteConfigurableLogDrain,
|
|
936
|
-
|
|
961
|
+
getAllLogDrains,
|
|
937
962
|
createConfigurableLogDrain
|
|
938
963
|
},
|
|
939
964
|
projectMembers: { getProjectMembers, addProjectMember, removeProjectMember },
|