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.
@@ -1,10 +1,10 @@
1
1
 
2
- > vercel-api-js@0.1.22 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
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
  
6
6
  ./src/index.ts → dist/index.cjs, dist/index.mjs...
7
- created dist/index.cjs, dist/index.mjs in 7.2s
7
+ created dist/index.cjs, dist/index.mjs in 4.6s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 10.4s
10
+ created dist/index.d.ts in 5.4s
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 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.
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 getConfigurableLogDrains = (variables, signal) => fetch$1({ url: '/v1/log-drains', method: 'get', ...variables, signal });
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
- getConfigurableLogDrains,
961
+ getAllLogDrains,
937
962
  createConfigurableLogDrain
938
963
  },
939
964
  projectMembers: { getProjectMembers, addProjectMember, removeProjectMember },