zapier-platform-schema
Advanced tools
Comparing version 15.14.1 to 15.14.2
@@ -21,2 +21,4 @@ 'use strict'; | ||
require('./uniqueInputFieldKeys'), | ||
require('./bufferedCreateConstraints'), | ||
require('./requirePerformConditionally'), | ||
require('./pollingThrottle'), | ||
@@ -23,0 +25,0 @@ ]; |
@@ -6,2 +6,5 @@ 'use strict'; | ||
const BasicActionOperationSchema = require('./BasicActionOperationSchema'); | ||
const BufferConfigSchema = require('./BufferConfigSchema'); | ||
const FunctionSchema = require('./FunctionSchema'); | ||
const RequestSchema = require('./RequestSchema'); | ||
@@ -24,5 +27,43 @@ // TODO: would be nice to deep merge these instead | ||
BasicCreateActionOperationSchema.properties.perform = { | ||
description: | ||
"How will Zapier get the data? This can be a function like `(z) => [{id: 123}]` or a request like `{url: 'http...'}`. Exactly one of `perform` or `performBuffer` must be defined. If you choose to define `buffer` and `performBuffer`, you must omit `perform`.", | ||
oneOf: [{ $ref: RequestSchema.id }, { $ref: FunctionSchema.id }], | ||
docAnnotation: { | ||
required: { | ||
type: 'replace', // replace or append | ||
value: 'no (with exceptions, see description)', | ||
}, | ||
}, | ||
}; | ||
BasicCreateActionOperationSchema.properties.buffer = { | ||
description: | ||
'Currently an **internal-only** feature. Zapier uses this configuration for creating objects in bulk with `performBuffer`.', | ||
$ref: BufferConfigSchema.id, | ||
docAnnotation: { | ||
required: { | ||
type: 'replace', // replace or append | ||
value: 'no (with exceptions, see description)', | ||
}, | ||
}, | ||
}; | ||
BasicCreateActionOperationSchema.properties.performBuffer = { | ||
description: | ||
'Currently an **internal-only** feature. A function to create objects in bulk with. `buffer` and `performBuffer` must either both be defined or neither. Additionally, only one of `perform` or `performBuffer` can be defined. If you choose to define `perform`, you must omit `buffer` and `performBuffer`.', | ||
$ref: FunctionSchema.id, | ||
docAnnotation: { | ||
required: { | ||
type: 'replace', // replace or append | ||
value: 'no (with exceptions, see description)', | ||
}, | ||
}, | ||
}; | ||
delete BasicCreateActionOperationSchema.required; | ||
module.exports = makeSchema( | ||
BasicCreateActionOperationSchema, | ||
BasicActionOperationSchema.dependencies | ||
BasicActionOperationSchema.dependencies.concat(BufferConfigSchema) | ||
); |
{ | ||
"name": "zapier-platform-schema", | ||
"version": "15.14.1", | ||
"version": "15.14.2", | ||
"description": "Schema definition for CLI apps in the Zapier Developer Platform.", | ||
@@ -5,0 +5,0 @@ "repository": "zapier/zapier-platform", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232443
81
6478