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
35
vendor/zapier-platform/packages/schema/lib/schemas/RefResourceSchema.js
vendored
Normal file
35
vendor/zapier-platform/packages/schema/lib/schemas/RefResourceSchema.js
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
'use strict';
|
||||
|
||||
const makeSchema = require('../utils/makeSchema');
|
||||
|
||||
module.exports = makeSchema({
|
||||
id: '/RefResourceSchema',
|
||||
description:
|
||||
'Reference a resource by key and the data it returns. In the format of: `{resource_key}.{foreign_key}(.{human_label_key})`.',
|
||||
type: 'string',
|
||||
// the human_label_key should match the broad `string` type that PlainFieldSchema.key can be, with commas!
|
||||
pattern:
|
||||
'^[a-zA-Z0-9_]+\\.[a-zA-Z0-9_\\s\\[\\]]+(\\.[a-zA-Z0-9_\\s\\[\\]]+(,[a-zA-Z0-9_\\s\\[\\]]+)*)?$',
|
||||
examples: [
|
||||
'contact.id',
|
||||
'contact.id.name',
|
||||
'contact.id.firstName,lastName',
|
||||
'contact.id.first_name,last_name,email',
|
||||
'contact.Contact Id.Full Name',
|
||||
'contact.data[]id.data[]First Name,data[]Last Name',
|
||||
],
|
||||
antiExamples: [
|
||||
{
|
||||
example: 'Contact List',
|
||||
reason: 'Does not match resource_key pattern',
|
||||
},
|
||||
{
|
||||
example: 'Contact.list,find.id',
|
||||
reason: 'Does not match foreign_key pattern',
|
||||
},
|
||||
{
|
||||
example: 'Contact.list.id.full_name',
|
||||
reason: 'Does not match human_label_key pattern',
|
||||
},
|
||||
],
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue