master-zapier-plan-draft/vendor/zapier-platform/packages/schema/lib/schemas/ResourcesMethodGetSchema.js
George Lambert b4150c8250 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.
2026-09-09 02:37:36 -04:00

57 lines
1.5 KiB
JavaScript

'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],
);