Milestone 0: import zappier billing, Verae middleware, and Zapier research
Compose-ready workspace: packages/zappier (rate card, portal, Stripe), packages/verae-zapier-middleware (timestamp + NATS), packages/verae-zapier (CLI app), vendor/zapier-platform, and research/zapier vendor corpus. Gate 0 structure checks pass. Product code and research are not yet wired.
This commit is contained in:
commit
b4150c8250
1364 changed files with 6814366 additions and 0 deletions
57
vendor/zapier-platform/packages/schema/lib/schemas/ResourcesMethodGetSchema.js
vendored
Normal file
57
vendor/zapier-platform/packages/schema/lib/schemas/ResourcesMethodGetSchema.js
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
'use strict';
|
||||
|
||||
const makeSchema = require('../utils/makeSchema');
|
||||
|
||||
const BasicDisplaySchema = require('./BasicDisplaySchema');
|
||||
const BasicActionOperationSchema = require('./BasicActionOperationSchema');
|
||||
|
||||
module.exports = makeSchema(
|
||||
{
|
||||
id: '/ResourcesMethodGetSchema',
|
||||
description: 'How will we get a batch of objects?',
|
||||
type: 'objects',
|
||||
required: ['display', 'operation'],
|
||||
examples: [
|
||||
{
|
||||
display: {
|
||||
label: 'Get Users',
|
||||
description: 'Retrieve an index of users.',
|
||||
},
|
||||
operation: {
|
||||
display: 'Fetch users',
|
||||
perform: '$func$2$f$',
|
||||
sample: {
|
||||
id: 1,
|
||||
firstName: 'Walter',
|
||||
lastName: 'Sobchak',
|
||||
occupation: 'Bowler',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
antiExamples: [
|
||||
{
|
||||
display: {
|
||||
label: 'Get Users',
|
||||
description: 'Retrieve an index of users.',
|
||||
},
|
||||
operation: {
|
||||
description: 'Define how this search method will work.',
|
||||
$ref: BasicActionOperationSchema.id,
|
||||
},
|
||||
},
|
||||
],
|
||||
properties: {
|
||||
display: {
|
||||
description: 'Define how this get method will be exposed in the UI.',
|
||||
$ref: BasicDisplaySchema.id,
|
||||
},
|
||||
operation: {
|
||||
description: 'Define how this get method will work.',
|
||||
$ref: BasicActionOperationSchema.id,
|
||||
},
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
[BasicDisplaySchema, BasicActionOperationSchema],
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue