Skip to content

Commit

Permalink
PDE-5810 add copy to AuthFieldSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
Natay committed Mar 3, 2025
1 parent 540f08f commit 9672a2c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/types/zapier.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/docs/build/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`?
Expand Down
9 changes: 8 additions & 1 deletion packages/schema/exported-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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`.",
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/lib/schemas/AuthFieldSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9672a2c

Please sign in to comment.