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/dist/index.mjs CHANGED
@@ -419,9 +419,14 @@ const getConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-d
419
419
  */
420
420
  const deleteConfigurableLogDrain = (variables, signal) => fetch$1({ url: '/v1/log-drains/{id}', method: 'delete', ...variables, signal });
421
421
  /**
422
- * Retrieves a list of Configurable Log Drains. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be accessed.
422
+ * 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.
423
423
  */
424
- const getConfigurableLogDrains = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'get', ...variables, signal });
424
+ const getAllLogDrains = (variables, signal) => fetch$1({
425
+ url: '/v1/log-drains',
426
+ method: 'get',
427
+ ...variables,
428
+ signal
429
+ });
425
430
  /**
426
431
  * Creates a configurable log drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed)
427
432
  */
@@ -527,6 +532,24 @@ const removeProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{id
527
532
  * 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.
528
533
  */
529
534
  const editProjectEnv = (variables, signal) => fetch$1({ url: '/v9/projects/{idOrName}/env/{id}', method: 'patch', ...variables, signal });
535
+ /**
536
+ * 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.
537
+ */
538
+ const pauseProject = (variables, signal) => fetch$1({
539
+ url: '/v1/projects/{projectId}/pause',
540
+ method: 'post',
541
+ ...variables,
542
+ signal
543
+ });
544
+ /**
545
+ * 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.
546
+ */
547
+ const unpauseProject = (variables, signal) => fetch$1({
548
+ url: '/v1/projects/{projectId}/unpause',
549
+ method: 'post',
550
+ ...variables,
551
+ signal
552
+ });
530
553
  /**
531
554
  * Get a paginated list of team members for the provided team.
532
555
  */
@@ -883,7 +906,9 @@ const operationsByTag = {
883
906
  getProjectEnv,
884
907
  createProjectEnv,
885
908
  removeProjectEnv,
886
- editProjectEnv
909
+ editProjectEnv,
910
+ pauseProject,
911
+ unpauseProject
887
912
  },
888
913
  deployments: {
889
914
  getDeploymentEvents,
@@ -931,7 +956,7 @@ const operationsByTag = {
931
956
  deleteIntegrationLogDrain,
932
957
  getConfigurableLogDrain,
933
958
  deleteConfigurableLogDrain,
934
- getConfigurableLogDrains,
959
+ getAllLogDrains,
935
960
  createConfigurableLogDrain
936
961
  },
937
962
  projectMembers: { getProjectMembers, addProjectMember, removeProjectMember },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",
@@ -13,7 +13,8 @@
13
13
  "typings": "dist/index.d.ts",
14
14
  "exports": {
15
15
  "import": "./dist/index.mjs",
16
- "require": "./dist/index.cjs"
16
+ "require": "./dist/index.cjs",
17
+ "types": "./dist/index.d.ts"
17
18
  },
18
19
  "repository": {
19
20
  "type": "git",