zapier-platform-core 18.2.3 → 18.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zapier-platform-core",
3
- "version": "18.2.3",
3
+ "version": "18.3.0",
4
4
  "description": "The core SDK for CLI apps in the Zapier Developer Platform.",
5
5
  "repository": "zapier/zapier-platform",
6
6
  "homepage": "https://platform.zapier.com/",
@@ -41,7 +41,7 @@
41
41
  "node-fetch": "2.7.0",
42
42
  "oauth-sign": "0.9.0",
43
43
  "semver": "7.7.2",
44
- "zapier-platform-schema": "18.2.3"
44
+ "zapier-platform-schema": "18.3.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/node-fetch": "^2.6.11",
@@ -4,7 +4,7 @@
4
4
  * files, and/or the schema-to-ts tool and run its CLI to regenerate
5
5
  * these typings.
6
6
  *
7
- * zapier-platform-schema version: 18.2.2
7
+ * zapier-platform-schema version: 18.2.3
8
8
  * schema-to-ts compiler version: 0.1.0
9
9
  */
10
10
  import type {
@@ -1744,10 +1744,25 @@ export interface PlainInputField {
1744
1744
  dynamic?: RefResource;
1745
1745
 
1746
1746
  /**
1747
- * An object of machine keys and human values to populate a static
1748
- * dropdown.
1747
+ * Specifies which other input fields this field depends on. These
1748
+ * must be filled before this one becomes enabled, and when their
1749
+ * values change, this field's value should be cleared.
1749
1750
  */
1750
- choices?: FieldChoices;
1751
+ dependsOn?: string[];
1752
+
1753
+ /**
1754
+ * Explicitly links this input field to a resource. Use the resource
1755
+ * key (e.g., "spreadsheet") or dot notation for resource fields
1756
+ * (e.g., "spreadsheet.url"). If not set for dynamic dropdowns, the
1757
+ * resource is derived implicitly from the `dynamic` property.
1758
+ */
1759
+ resource?: string;
1760
+
1761
+ /**
1762
+ * Describes how to populate this dropdown. Can be a static list or
1763
+ * a dynamic object with pagination and search support.
1764
+ */
1765
+ choices?: FieldChoices | FieldDynamicChoices;
1751
1766
 
1752
1767
  /** An example value that is not saved. */
1753
1768
  placeholder?: string;
@@ -1803,5 +1818,17 @@ export interface InputFieldGroup {
1803
1818
  */
1804
1819
  export type RefResource = string;
1805
1820
 
1821
+ /**
1822
+ * Describes dynamic dropdowns powered by a perform function or
1823
+ * request.
1824
+ */
1825
+ export interface FieldDynamicChoices {
1826
+ /**
1827
+ * A function or request that returns choices for this dynamic
1828
+ * dropdown.
1829
+ */
1830
+ perform: Function | Request;
1831
+ }
1832
+
1806
1833
  /** Allows for additional metadata to be stored on the field. */
1807
1834
  export type FieldMeta = Record<string, string | number | boolean>;