vercel-api-js 0.18.3 → 0.19.1

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
@@ -1,5 +1,5 @@
1
1
  function notEmpty(value) {
2
- return value !== null && value !== void 0;
2
+ return value !== null && value !== undefined;
3
3
  }
4
4
  function compactObject(obj) {
5
5
  return Object.fromEntries(Object.entries(obj).filter(([, value]) => notEmpty(value)));
@@ -138,6 +138,12 @@ const checkDomainPrice = (variables, signal) => fetch$1({
138
138
  ...variables,
139
139
  signal
140
140
  });
141
+ const checkDomainStatus = (variables, signal) => fetch$1({
142
+ url: "/v4/domains/status",
143
+ method: "get",
144
+ ...variables,
145
+ signal
146
+ });
141
147
  const getRecords = (variables, signal) => fetch$1({ url: "/v4/domains/{domain}/records", method: "get", ...variables, signal });
142
148
  const createRecord = (variables, signal) => fetch$1({ url: "/v2/domains/{domain}/records", method: "post", ...variables, signal });
143
149
  const updateRecord = (variables, signal) => fetch$1({ url: "/v1/domains/records/{recordId}", method: "patch", ...variables, signal });
@@ -147,12 +153,6 @@ const removeRecord = (variables, signal) => fetch$1({
147
153
  ...variables,
148
154
  signal
149
155
  });
150
- const checkDomainStatus = (variables, signal) => fetch$1({
151
- url: "/v4/domains/status",
152
- method: "get",
153
- ...variables,
154
- signal
155
- });
156
156
  const getDomainTransfer = (variables, signal) => fetch$1({
157
157
  url: "/v1/domains/{domain}/registry",
158
158
  method: "get",
@@ -266,6 +266,12 @@ const updateResourceSecrets = (variables, signal) => fetch$1({
266
266
  ...variables,
267
267
  signal
268
268
  });
269
+ const updateResourceSecretsById = (variables, signal) => fetch$1({
270
+ url: "/v1/installations/{integrationConfigurationId}/resources/{resourceId}/secrets",
271
+ method: "put",
272
+ ...variables,
273
+ signal
274
+ });
269
275
  const getConfigurations = (variables, signal) => fetch$1({ url: "/v1/integrations/configurations", method: "get", ...variables, signal });
270
276
  const getConfiguration = (variables, signal) => fetch$1({ url: "/v1/integrations/configuration/{id}", method: "get", ...variables, signal });
271
277
  const deleteConfiguration = (variables, signal) => fetch$1({ url: "/v1/integrations/configuration/{id}", method: "delete", ...variables, signal });
@@ -660,6 +666,7 @@ const operationsByTag = {
660
666
  getInvoice,
661
667
  updateInvoice,
662
668
  updateResourceSecrets,
669
+ updateResourceSecretsById,
663
670
  exchangeSsoToken
664
671
  },
665
672
  integrations: { getConfigurations, getConfiguration, deleteConfiguration, gitNamespaces, searchRepo },
@@ -723,15 +730,15 @@ class VercelApi {
723
730
  {},
724
731
  {
725
732
  get: (_target, namespace) => {
726
- if (operationsByTag[namespace] === void 0) {
727
- return void 0;
733
+ if (operationsByTag[namespace] === undefined) {
734
+ return undefined;
728
735
  }
729
736
  return new Proxy(
730
737
  {},
731
738
  {
732
739
  get: (_target2, operation) => {
733
- if (operationsByTag[namespace][operation] === void 0) {
734
- return void 0;
740
+ if (operationsByTag[namespace][operation] === undefined) {
741
+ return undefined;
735
742
  }
736
743
  const method = operationsByTag[namespace][operation];
737
744
  return async (params) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.18.3",
3
+ "version": "0.19.1",
4
4
  "description": "Vercel auto-generated type-safe API client",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",