zapier-platform-schema 11.3.3 → 12.0.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,5 +1,5 @@
1
1
  {
2
- "version": "11.3.3",
2
+ "version": "12.0.0",
3
3
  "schemas": {
4
4
  "AppSchema": {
5
5
  "id": "/AppSchema",
@@ -1489,12 +1489,16 @@
1489
1489
  },
1490
1490
  "AppFlagsSchema": {
1491
1491
  "id": "/AppFlagsSchema",
1492
- "description": "Codifies high-level options for your app.",
1492
+ "description": "Codifies high-level options for your integration.",
1493
1493
  "type": "object",
1494
1494
  "properties": {
1495
1495
  "skipHttpPatch": {
1496
1496
  "description": "By default, Zapier patches the core `http` module so that all requests (including those from 3rd-party SDKs) can be logged. Set this to true if you're seeing issues using an SDK (such as AWS).",
1497
1497
  "type": "boolean"
1498
+ },
1499
+ "skipThrowForStatus": {
1500
+ "description": "Starting in `core` version `10.0.0`, `response.throwForStatus()` was called by default. We introduced a per-request way to opt-out of this behavior. This flag takes that a step further and controls that behavior integration-wide. Only takes effect if the request _does not_ specify a value for `skipThrowForStatus` at all.",
1501
+ "type": "boolean"
1498
1502
  }
1499
1503
  },
1500
1504
  "additionalProperties": false
@@ -4,7 +4,7 @@ const makeSchema = require('../utils/makeSchema');
4
4
 
5
5
  module.exports = makeSchema({
6
6
  id: '/AppFlagsSchema',
7
- description: 'Codifies high-level options for your app.',
7
+ description: 'Codifies high-level options for your integration.',
8
8
  type: 'object',
9
9
  properties: {
10
10
  skipHttpPatch: {
@@ -12,11 +12,21 @@ module.exports = makeSchema({
12
12
  "By default, Zapier patches the core `http` module so that all requests (including those from 3rd-party SDKs) can be logged. Set this to true if you're seeing issues using an SDK (such as AWS).",
13
13
  type: 'boolean',
14
14
  },
15
+ skipThrowForStatus: {
16
+ description:
17
+ 'Starting in `core` version `10.0.0`, `response.throwForStatus()` was called by default. We introduced a per-request way to opt-out of this behavior. This flag takes that a step further and controls that behavior integration-wide. Only takes effect if the request _does not_ specify a value for `skipThrowForStatus` at all.',
18
+ type: 'boolean',
19
+ },
15
20
  },
16
21
  additionalProperties: false,
17
- examples: [{ skipHttpPatch: true }, { skipHttpPatch: false }, {}],
22
+ examples: [
23
+ { skipHttpPatch: true, skipThrowForStatus: false },
24
+ { skipHttpPatch: false, skipThrowForStatus: true },
25
+ {},
26
+ ],
18
27
  antiExamples: [
19
28
  { example: { foo: true }, reason: 'Invalid key.' },
20
29
  { example: { skipHttpPatch: 'yes' }, reason: 'Invalid value.' },
30
+ { example: { skipThrowForStatus: 'no' }, reason: 'Invalid value.' },
21
31
  ],
22
32
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zapier-platform-schema",
3
- "version": "11.3.3",
3
+ "version": "12.0.0",
4
4
  "description": "Schema definition for CLI apps in the Zapier Developer Platform.",
5
5
  "repository": "zapier/zapier-platform",
6
6
  "homepage": "https://platform.zapier.com/",