cloudflare-api-js 0.3.0 → 0.4.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.
@@ -1,14 +1,14 @@
1
1
 
2
- > cloudflare-api-js@0.3.0 build /home/runner/work/openapi-clients/openapi-clients/packages/cloudflare-api
2
+ > cloudflare-api-js@0.4.0 build /home/runner/work/openapi-clients/openapi-clients/packages/cloudflare-api
3
3
  > unbuild
4
4
 
5
5
  [info] Automatically detected entries: src/index [esm] [cjs] [dts]
6
6
  [info] Building cloudflare-api-js
7
7
  [info] Cleaning dist directory: `./dist`
8
8
  [success] Build succeeded for cloudflare-api-js
9
- [log] dist/index.cjs (total size: 384 kB, chunk size: 384 kB, exports: CloudflareApi)
9
+ [log] dist/index.cjs (total size: 385 kB, chunk size: 385 kB, exports: CloudflareApi)
10
10
 
11
- [log] dist/index.mjs (total size: 384 kB, chunk size: 384 kB, exports: CloudflareApi)
11
+ [log] dist/index.mjs (total size: 385 kB, chunk size: 385 kB, exports: CloudflareApi)
12
12
 
13
13
  Σ Total dist size (byte size): 22.7 MB
14
14
  [log]
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # cloudflare-api-js
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b2f3d1f: Refactor query_string structure to support both include and exclude options
8
+
9
+ ### Patch Changes
10
+
11
+ - 71cc81b: [BREAKING] Add new configuration for resolving DNS internally
12
+ - 45e8197: [OpenAPI] Spec updates for cloudflare-api-js
13
+ - efbdc12: [BREAKING] Add new parameters 'prompts.prompt_id' and 'prompts.version_id' to AigConfigDeleteGatewayLogsQueryParams and AigConfigListGatewayLogsQueryParams
14
+
3
15
  ## 0.3.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -212,6 +212,12 @@ const accessPoliciesCreateAnAccessPolicy = (variables, signal) => fetch$1({ url:
212
212
  const accessPoliciesDeleteAnAccessPolicy = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps/{appId}/policies/{policyId}", method: "delete", ...variables, signal });
213
213
  const accessPoliciesGetAnAccessPolicy = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps/{appId}/policies/{policyId}", method: "get", ...variables, signal });
214
214
  const accessPoliciesUpdateAnAccessPolicy = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps/{appId}/policies/{policyId}", method: "put", ...variables, signal });
215
+ const accessPoliciesConvertReusable = (variables, signal) => fetch$1({
216
+ url: "/accounts/{accountId}/access/apps/{appId}/policies/{policyId}/make_reusable",
217
+ method: "put",
218
+ ...variables,
219
+ signal
220
+ });
215
221
  const accessApplicationsRevokeServiceTokens = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps/{appId}/revoke_tokens", method: "post", ...variables, signal });
216
222
  const accessApplicationsTestAccessPolicies = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps/{appId}/user_policy_checks", method: "get", ...variables, signal });
217
223
  const accessBookmarkApplicationsDeprecatedListBookmarkApplications = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/bookmarks", method: "get", ...variables, signal });
@@ -3310,7 +3316,8 @@ const operationsByTag = {
3310
3316
  accessPoliciesCreateAnAccessPolicy,
3311
3317
  accessPoliciesDeleteAnAccessPolicy,
3312
3318
  accessPoliciesGetAnAccessPolicy,
3313
- accessPoliciesUpdateAnAccessPolicy
3319
+ accessPoliciesUpdateAnAccessPolicy,
3320
+ accessPoliciesConvertReusable
3314
3321
  },
3315
3322
  accessBookmarkApplicationsDeprecated: {
3316
3323
  accessBookmarkApplicationsDeprecatedListBookmarkApplications,
@@ -5316,15 +5323,15 @@ class CloudflareApi {
5316
5323
  {},
5317
5324
  {
5318
5325
  get: (_target, namespace) => {
5319
- if (operationsByTag[namespace] === void 0) {
5320
- return void 0;
5326
+ if (operationsByTag[namespace] === undefined) {
5327
+ return undefined;
5321
5328
  }
5322
5329
  return new Proxy(
5323
5330
  {},
5324
5331
  {
5325
5332
  get: (_target2, operation) => {
5326
- if (operationsByTag[namespace][operation] === void 0) {
5327
- return void 0;
5333
+ if (operationsByTag[namespace][operation] === undefined) {
5334
+ return undefined;
5328
5335
  }
5329
5336
  const method = operationsByTag[namespace][operation];
5330
5337
  return async (params) => {