vercel-api-js 0.3.0 → 0.5.0

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
@@ -169,7 +169,12 @@ const updateCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{depl
169
169
  /**
170
170
  * Rerequest a selected check that has failed.
171
171
  */
172
- const rerequestCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks/{checkId}/rerequest', method: 'post', ...variables, signal });
172
+ const rerequestCheck = (variables, signal) => fetch$1({
173
+ url: '/v1/deployments/{deploymentId}/checks/{checkId}/rerequest',
174
+ method: 'post',
175
+ ...variables,
176
+ signal
177
+ });
173
178
  /**
174
179
  * Update the data cache feature on a project.
175
180
  */
@@ -329,6 +334,18 @@ const getEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-confi
329
334
  * Update multiple Edge Config Items in batch.
330
335
  */
331
336
  const patchEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'patch', ...variables, signal });
337
+ /**
338
+ * Returns the schema of an Edge Config.
339
+ */
340
+ const getEdgeConfigSchema = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/schema', method: 'get', ...variables, signal });
341
+ /**
342
+ * Update an Edge Config's schema.
343
+ */
344
+ const patchEdgeConfigSchema = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/schema', method: 'post', ...variables, signal });
345
+ /**
346
+ * Deletes the schema of existing Edge Config.
347
+ */
348
+ const deleteEdgeConfigSchema = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/schema', method: 'delete', ...variables, signal });
332
349
  /**
333
350
  * Returns a specific Edge Config Item.
334
351
  */
@@ -641,7 +658,12 @@ const deleteTeam = (variables, signal) => fetch$1({
641
658
  /**
642
659
  * Delete an active Team invite code.
643
660
  */
644
- const deleteTeamInviteCode = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/invites/{inviteId}', method: 'delete', ...variables, signal });
661
+ const deleteTeamInviteCode = (variables, signal) => fetch$1({
662
+ url: '/v1/teams/{teamId}/invites/{inviteId}',
663
+ method: 'delete',
664
+ ...variables,
665
+ signal
666
+ });
645
667
  /**
646
668
  * Before you create a deployment you need to upload the required files for that deployment. To do it, you need to first upload each file to this endpoint. Once that's completed, you can create a new deployment with the uploaded files. The file content must be placed inside the body of the request. In the case of a successful response you'll receive a status code 200 with an empty body.
647
669
  */
@@ -720,7 +742,12 @@ const getWebhook = (variables, signal) => fetch$1({
720
742
  /**
721
743
  * Deletes a webhook
722
744
  */
723
- const deleteWebhook = (variables, signal) => fetch$1({ url: '/v1/webhooks/{id}', method: 'delete', ...variables, signal });
745
+ const deleteWebhook = (variables, signal) => fetch$1({
746
+ url: '/v1/webhooks/{id}',
747
+ method: 'delete',
748
+ ...variables,
749
+ signal
750
+ });
724
751
  /**
725
752
  * Retrieves a list of aliases for the authenticated User or Team. When `domain` is provided, only aliases for that domain will be returned. When `projectId` is provided, it will only return the given project aliases.
726
753
  */
@@ -742,7 +769,12 @@ const getAlias = (variables, signal) => fetch$1({
742
769
  /**
743
770
  * Delete an Alias with the specified ID.
744
771
  */
745
- const deleteAlias = (variables, signal) => fetch$1({ url: '/v2/aliases/{aliasId}', method: 'delete', ...variables, signal });
772
+ const deleteAlias = (variables, signal) => fetch$1({
773
+ url: '/v2/aliases/{aliasId}',
774
+ method: 'delete',
775
+ ...variables,
776
+ signal
777
+ });
746
778
  /**
747
779
  * Retrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.
748
780
  */
@@ -860,7 +892,12 @@ const getSecret = (variables, signal) => fetch$1({
860
892
  /**
861
893
  * This deletes the user or team’s secret defined in the URL.
862
894
  */
863
- const deleteSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{idOrName}', method: 'delete', ...variables, signal });
895
+ const deleteSecret = (variables, signal) => fetch$1({
896
+ url: '/v2/secrets/{idOrName}',
897
+ method: 'delete',
898
+ ...variables,
899
+ signal
900
+ });
864
901
  const operationsByTag = {
865
902
  artifacts: { recordEvents, status, uploadArtifact, downloadArtifact, artifactQuery },
866
903
  checks: { createCheck, getAllChecks, getCheck, updateCheck, rerequestCheck },
@@ -917,6 +954,9 @@ const operationsByTag = {
917
954
  deleteEdgeConfig,
918
955
  getEdgeConfigItems,
919
956
  patchEdgeConfigItems,
957
+ getEdgeConfigSchema,
958
+ patchEdgeConfigSchema,
959
+ deleteEdgeConfigSchema,
920
960
  getEdgeConfigItem,
921
961
  getEdgeConfigTokens,
922
962
  deleteEdgeConfigTokens,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",