netlify-api 0.1.6 → 0.1.8

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
- > netlify-api@0.1.6 build /home/runner/work/openapi-clients/openapi-clients/packages/netlify-api
2
+ > netlify-api@0.1.8 build /home/runner/work/openapi-clients/openapi-clients/packages/netlify-api
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.5s
7
+ created dist/index.cjs, dist/index.mjs in 8.5s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 8.3s
10
+ created dist/index.d.ts in 7.5s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # netlify-api
2
2
 
3
+ ## 0.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 5e1feed: [OpenAPI] Spec updates for netlify-api
8
+
9
+ ## 0.1.7
10
+
11
+ ### Patch Changes
12
+
13
+ - e922990: [OpenAPI] Spec updates for netlify-api
14
+
3
15
  ## 0.1.6
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -14,7 +14,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
14
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
  PERFORMANCE OF THIS SOFTWARE.
16
16
  ***************************************************************************** */
17
- /* global Reflect, Promise */
17
+ /* global Reflect, Promise, SuppressedError, Symbol */
18
18
 
19
19
 
20
20
  function __classPrivateFieldGet(receiver, state, kind, f) {
@@ -28,7 +28,12 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
28
28
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
29
29
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
30
30
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
31
- }
31
+ }
32
+
33
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
34
+ var e = new Error(message);
35
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
36
+ };
32
37
 
33
38
  const baseUrl = 'https://api.netlify.com';
34
39
  async function fetch$1({ url, method, body, headers, pathParams, queryParams, signal, token, fetchImpl, basePath }) {
@@ -228,6 +233,15 @@ const getSiteFileByPathName = (variables, signal) => fetch$1({
228
233
  ...variables,
229
234
  signal
230
235
  });
236
+ /**
237
+ * Purges cached content from Netlify's CDN. Supports purging by Cache-Tag.
238
+ */
239
+ const purgeCache = (variables, signal) => fetch$1({
240
+ url: '/purge',
241
+ method: 'post',
242
+ ...variables,
243
+ signal
244
+ });
231
245
  const listSiteSnippets = (variables, signal) => fetch$1({
232
246
  url: '/sites/{siteId}/snippets',
233
247
  method: 'get',
@@ -707,6 +721,7 @@ const operationsByTag = {
707
721
  file: { listSiteFiles, getSiteFileByPathName, uploadDeployFile },
708
722
  asset: { listSiteAssets, createSiteAsset, getSiteAssetInfo, updateSiteAsset, deleteSiteAsset },
709
723
  assetPublicSignature: { getSiteAssetPublicSignature },
724
+ purge: { purgeCache },
710
725
  snippet: { listSiteSnippets, createSiteSnippet, getSiteSnippet, updateSiteSnippet, deleteSiteSnippet },
711
726
  metadata: { getSiteMetadata, updateSiteMetadata },
712
727
  buildHook: { listSiteBuildHooks, createSiteBuildHook, getSiteBuildHook, updateSiteBuildHook, deleteSiteBuildHook },