zapier-platform-schema 11.3.1 → 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.
package/exported-schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "12.0.0",
|
|
3
3
|
"schemas": {
|
|
4
4
|
"AppSchema": {
|
|
5
5
|
"id": "/AppSchema",
|
|
@@ -417,6 +417,10 @@
|
|
|
417
417
|
"description": "If `true`, don't throw an exception for response 400 <= status < 600 automatically before resolving with the response. Defaults to `false`.",
|
|
418
418
|
"type": "boolean",
|
|
419
419
|
"default": false
|
|
420
|
+
},
|
|
421
|
+
"skipEncodingChars": {
|
|
422
|
+
"description": "Contains the characters that you want left unencoded in the query params (`req.params`). If unspecified, `z.request()` will percent-encode non-ascii characters and these reserved characters: ``:$/?#[]@$&+,;=^@`\\``.",
|
|
423
|
+
"type": "string"
|
|
420
424
|
}
|
|
421
425
|
},
|
|
422
426
|
"additionalProperties": false
|
|
@@ -1485,12 +1489,16 @@
|
|
|
1485
1489
|
},
|
|
1486
1490
|
"AppFlagsSchema": {
|
|
1487
1491
|
"id": "/AppFlagsSchema",
|
|
1488
|
-
"description": "Codifies high-level options for your
|
|
1492
|
+
"description": "Codifies high-level options for your integration.",
|
|
1489
1493
|
"type": "object",
|
|
1490
1494
|
"properties": {
|
|
1491
1495
|
"skipHttpPatch": {
|
|
1492
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).",
|
|
1493
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"
|
|
1494
1502
|
}
|
|
1495
1503
|
},
|
|
1496
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
|
|
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: [
|
|
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
|
});
|
|
@@ -87,6 +87,11 @@ module.exports = makeSchema(
|
|
|
87
87
|
type: 'boolean',
|
|
88
88
|
default: false,
|
|
89
89
|
},
|
|
90
|
+
skipEncodingChars: {
|
|
91
|
+
description:
|
|
92
|
+
'Contains the characters that you want left unencoded in the query params (`req.params`). If unspecified, `z.request()` will percent-encode non-ascii characters and these reserved characters: ``:$/?#[]@$&+,;=^@`\\``.',
|
|
93
|
+
type: 'string',
|
|
94
|
+
},
|
|
90
95
|
},
|
|
91
96
|
additionalProperties: false,
|
|
92
97
|
examples: [
|
package/package.json
CHANGED