vercel-api-js 0.1.19 → 0.1.21
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 +16 -0
- package/dist/index.cjs +18 -8
- package/dist/index.d.ts +462 -143
- package/dist/index.mjs +18 -8
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -176,7 +176,7 @@ const rerequestCheck = (variables, signal) => fetch$1({
|
|
|
176
176
|
signal
|
|
177
177
|
});
|
|
178
178
|
/**
|
|
179
|
-
* Update the
|
|
179
|
+
* Update the data cache feature on a project.
|
|
180
180
|
*/
|
|
181
181
|
const updateProjectDataCache = (variables, signal) => fetch$1({ url: '/v1/data-cache/projects/{projectId}', method: 'patch', ...variables, signal });
|
|
182
182
|
/**
|
|
@@ -243,6 +243,15 @@ const checkDomainStatus = (variables, signal) => fetch$1({
|
|
|
243
243
|
...variables,
|
|
244
244
|
signal
|
|
245
245
|
});
|
|
246
|
+
/**
|
|
247
|
+
* Fetch domain transfer availability or transfer status if a transfer is in progress.
|
|
248
|
+
*/
|
|
249
|
+
const getDomainTransfer = (variables, signal) => fetch$1({
|
|
250
|
+
url: '/v1/domains/{domain}/registry',
|
|
251
|
+
method: 'get',
|
|
252
|
+
...variables,
|
|
253
|
+
signal
|
|
254
|
+
});
|
|
246
255
|
/**
|
|
247
256
|
* Get a Domain's configuration.
|
|
248
257
|
*/
|
|
@@ -266,9 +275,13 @@ const getDomains = (variables, signal) => fetch$1({
|
|
|
266
275
|
signal
|
|
267
276
|
});
|
|
268
277
|
/**
|
|
269
|
-
* This endpoint is used for
|
|
278
|
+
* This endpoint is used for adding a new apex domain name with Vercel for the authenticating user. Can also be used for initiating a domain transfer request from an external Registrar to Vercel.
|
|
270
279
|
*/
|
|
271
280
|
const createOrTransferDomain = (variables, signal) => fetch$1({ url: '/v5/domains', method: 'post', ...variables, signal });
|
|
281
|
+
/**
|
|
282
|
+
* Update or move apex domain.
|
|
283
|
+
*/
|
|
284
|
+
const patchDomain = (variables, signal) => fetch$1({ url: '/v3/domains/{domain}', method: 'patch', ...variables, signal });
|
|
272
285
|
/**
|
|
273
286
|
* Delete a previously registered domain name from Vercel. Deleting a domain will automatically remove any associated aliases.
|
|
274
287
|
*/
|
|
@@ -514,12 +527,7 @@ const getTeamMembers = (variables, signal) => fetch$1({
|
|
|
514
527
|
/**
|
|
515
528
|
* Invite a user to join the team specified in the URL. The authenticated user needs to be an `OWNER` in order to successfully invoke this endpoint. The user can be specified with an email or an ID. If both email and ID are provided, ID will take priority.
|
|
516
529
|
*/
|
|
517
|
-
const inviteUserToTeam = (variables, signal) => fetch$1({
|
|
518
|
-
url: '/v1/teams/{teamId}/members',
|
|
519
|
-
method: 'post',
|
|
520
|
-
...variables,
|
|
521
|
-
signal
|
|
522
|
-
});
|
|
530
|
+
const inviteUserToTeam = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/members', method: 'post', ...variables, signal });
|
|
523
531
|
/**
|
|
524
532
|
* Request access to a team as a member. An owner has to approve the request. Only 10 users can request access to a team at the same time.
|
|
525
533
|
*/
|
|
@@ -885,10 +893,12 @@ const operationsByTag = {
|
|
|
885
893
|
buyDomain,
|
|
886
894
|
checkDomainPrice,
|
|
887
895
|
checkDomainStatus,
|
|
896
|
+
getDomainTransfer,
|
|
888
897
|
getDomainConfig,
|
|
889
898
|
getDomain,
|
|
890
899
|
getDomains,
|
|
891
900
|
createOrTransferDomain,
|
|
901
|
+
patchDomain,
|
|
892
902
|
deleteDomain
|
|
893
903
|
},
|
|
894
904
|
dns: { getRecords, createRecord, updateRecord, removeRecord },
|