diff --git a/packages/core/types/zapier.generated.d.ts b/packages/core/types/zapier.generated.d.ts index 640929075..921dabd93 100644 --- a/packages/core/types/zapier.generated.d.ts +++ b/packages/core/types/zapier.generated.d.ts @@ -337,7 +337,7 @@ export interface AuthField { label?: string; /** The type of this value used to be. */ - type?: 'string' | 'number' | 'boolean' | 'datetime' | 'password'; + type?: 'string' | 'number' | 'boolean' | 'datetime' | 'copy' | 'password'; /** If this value is required or not. This defaults to `true`. */ required?: boolean; diff --git a/packages/schema/docs/build/schema.md b/packages/schema/docs/build/schema.md index 051b2c9c0..862472b12 100644 --- a/packages/schema/docs/build/schema.md +++ b/packages/schema/docs/build/schema.md @@ -172,7 +172,7 @@ Key | Required | Type | Description --- | -------- | ---- | ----------- `key` | **yes** | `string` | A unique machine readable key for this value (IE: "fname"). `label` | no | `string` | A human readable label for this value (IE: "First Name"). -`type` | no | `string` in (`'string'`, `'number'`, `'boolean'`, `'datetime'`, `'password'`) | The type of this value used to be. +`type` | no | `string` in (`'string'`, `'number'`, `'boolean'`, `'datetime'`, `'copy'`, `'password'`) | The type of this value used to be. `required` | no | `boolean` | If this value is required or not. This defaults to `true`. `default` | no | `string` | A default value that is saved the first time a Zap is created. `list` | no | `boolean` | Acts differently when used in inputFields vs. when used in outputFields. In inputFields: Can a user provide multiples of this field? In outputFields: Does this field return an array of items of type `type`? diff --git a/packages/schema/exported-schema.json b/packages/schema/exported-schema.json index d38ccf3ba..d7f9d4ccd 100644 --- a/packages/schema/exported-schema.json +++ b/packages/schema/exported-schema.json @@ -302,7 +302,14 @@ "type": { "description": "The type of this value used to be.", "type": "string", - "enum": ["string", "number", "boolean", "datetime", "password"] + "enum": [ + "string", + "number", + "boolean", + "datetime", + "copy", + "password" + ] }, "required": { "description": "If this value is required or not. This defaults to `true`.", diff --git a/packages/schema/lib/schemas/AuthFieldSchema.js b/packages/schema/lib/schemas/AuthFieldSchema.js index 92507f485..50d6dd11c 100644 --- a/packages/schema/lib/schemas/AuthFieldSchema.js +++ b/packages/schema/lib/schemas/AuthFieldSchema.js @@ -22,7 +22,7 @@ module.exports = makeSchema( type: { description: 'The type of this value used to be.', type: 'string', - enum: ['string', 'number', 'boolean', 'datetime', 'password'], + enum: ['string', 'number', 'boolean', 'datetime', 'copy', 'password'], }, required: { description: