@prismatic-io/spectral 9.0.1 → 9.0.2

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.
Files changed (68) hide show
  1. package/dist/clients/http/index.d.ts +2 -2
  2. package/dist/clients/http/index.js +5 -9
  3. package/dist/clients/http/inputs.js +2 -7
  4. package/dist/conditionalLogic/index.d.ts +1 -1
  5. package/dist/conditionalLogic/index.js +5 -10
  6. package/dist/conditionalLogic/types.d.ts +5 -5
  7. package/dist/conditionalLogic/types.js +3 -3
  8. package/dist/generators/componentManifest/cli.d.ts +0 -1
  9. package/dist/generators/componentManifest/cli.js +2 -8
  10. package/dist/generators/componentManifest/createActions.js +6 -6
  11. package/dist/generators/componentManifest/createConnections.js +6 -6
  12. package/dist/generators/componentManifest/createDataSources.js +6 -6
  13. package/dist/generators/componentManifest/createStaticFiles.js +6 -7
  14. package/dist/generators/componentManifest/createTriggers.js +6 -6
  15. package/dist/generators/componentManifest/docBlock.js +1 -3
  16. package/dist/generators/componentManifest/getImports.d.ts +1 -1
  17. package/dist/generators/componentManifest/getInputs.d.ts +4 -4
  18. package/dist/generators/componentManifest/getInputs.js +2 -3
  19. package/dist/generators/componentManifest/helpers.d.ts +1 -1
  20. package/dist/generators/componentManifest/index.js +1 -1
  21. package/dist/generators/componentManifest/templates/actions/action.ts.ejs +1 -1
  22. package/dist/generators/componentManifest/templates/connections/connection.ts.ejs +1 -1
  23. package/dist/generators/componentManifest/templates/dataSources/dataSource.ts.ejs +1 -1
  24. package/dist/generators/componentManifest/templates/partials/performArgs.ejs +1 -1
  25. package/dist/generators/componentManifest/templates/triggers/trigger.ts.ejs +1 -1
  26. package/dist/generators/utils/createDependencyImports.d.ts +1 -1
  27. package/dist/generators/utils/createDependencyImports.js +1 -1
  28. package/dist/generators/utils/createFlagHelpText.d.ts +1 -1
  29. package/dist/generators/utils/createFlagHelpText.js +1 -1
  30. package/dist/generators/utils/createTemplate.js +2 -2
  31. package/dist/generators/utils/getComponentSignatureWithPrism.js +1 -1
  32. package/dist/generators/utils/getFlagBooleanValue.d.ts +2 -2
  33. package/dist/generators/utils/getFlagBooleanValue.js +2 -2
  34. package/dist/generators/utils/getFlagStringValue.d.ts +2 -2
  35. package/dist/generators/utils/getFlagStringValue.js +2 -2
  36. package/dist/index.d.ts +2 -16
  37. package/dist/serverTypes/convertComponent.js +1 -3
  38. package/dist/serverTypes/convertIntegration.js +33 -42
  39. package/dist/serverTypes/index.d.ts +11 -12
  40. package/dist/serverTypes/index.js +1 -1
  41. package/dist/serverTypes/integration.d.ts +3 -3
  42. package/dist/serverTypes/perform.d.ts +3 -3
  43. package/dist/testing.d.ts +17 -45
  44. package/dist/testing.js +4 -4
  45. package/dist/types/ActionInputParameters.d.ts +2 -2
  46. package/dist/types/ActionLogger.d.ts +1 -1
  47. package/dist/types/ActionPerformFunction.d.ts +2 -2
  48. package/dist/types/ActionPerformReturn.d.ts +1 -1
  49. package/dist/types/ComponentDefinition.d.ts +2 -2
  50. package/dist/types/ComponentRegistry.d.ts +16 -23
  51. package/dist/types/ConfigPages.d.ts +4 -4
  52. package/dist/types/ConfigVars.d.ts +44 -131
  53. package/dist/types/ConnectionDefinition.d.ts +2 -2
  54. package/dist/types/ConnectionDefinition.js +2 -2
  55. package/dist/types/DataPayload.d.ts +0 -1
  56. package/dist/types/DataSourcePerformFunction.d.ts +2 -2
  57. package/dist/types/DataSourceResult.d.ts +5 -5
  58. package/dist/types/DisplayDefinition.d.ts +2 -2
  59. package/dist/types/Inputs.d.ts +22 -22
  60. package/dist/types/IntegrationDefinition.d.ts +7 -7
  61. package/dist/types/TriggerDefinition.d.ts +1 -1
  62. package/dist/types/TriggerEventFunction.d.ts +2 -2
  63. package/dist/types/TriggerPerformFunction.d.ts +1 -1
  64. package/dist/types/TriggerResult.d.ts +1 -1
  65. package/dist/types/utils.d.ts +3 -3
  66. package/dist/util.d.ts +6 -6
  67. package/dist/util.js +4 -11
  68. package/package.json +9 -20
@@ -28,4 +28,4 @@ export interface ActionPerformBranchingDataReturn<ReturnData> extends ActionPerf
28
28
  branch: string;
29
29
  }
30
30
  /** Required return type of all action perform functions */
31
- export declare type ActionPerformReturn<AllowsBranching extends boolean | undefined, ReturnData> = (AllowsBranching extends true ? ActionPerformBranchingDataReturn<ReturnData> : ActionPerformDataReturn<ReturnData>) | undefined;
31
+ export type ActionPerformReturn<AllowsBranching extends boolean | undefined, ReturnData> = (AllowsBranching extends true ? ActionPerformBranchingDataReturn<ReturnData> : ActionPerformDataReturn<ReturnData>) | undefined;
@@ -1,11 +1,11 @@
1
1
  import { ActionDefinition, ConnectionDefinition, ComponentDisplayDefinition, TriggerDefinition, DataSourceDefinition } from ".";
2
- export declare type ErrorHandler = (error: unknown) => unknown;
2
+ export type ErrorHandler = (error: unknown) => unknown;
3
3
  export interface ComponentHooks {
4
4
  /** Defines a global error handler that automatically wraps the component's action/trigger perform functions. */
5
5
  error?: ErrorHandler;
6
6
  }
7
7
  /** Defines attributes of a Component. */
8
- export declare type ComponentDefinition<TPublic extends boolean, TKey extends string> = {
8
+ export type ComponentDefinition<TPublic extends boolean, TKey extends string> = {
9
9
  /** Specifies unique key for this Component. */
10
10
  key: TKey;
11
11
  /** Specifies if this Component is available for all Organizations or only your own @default false */
@@ -14,7 +14,7 @@ import { Prettify, UnionToIntersection } from "./utils";
14
14
  */
15
15
  export interface IntegrationDefinitionComponentRegistry {
16
16
  }
17
- export declare type ComponentRegistry = keyof IntegrationDefinitionComponentRegistry extends never ? {
17
+ export type ComponentRegistry = keyof IntegrationDefinitionComponentRegistry extends never ? {
18
18
  [key: string]: ComponentManifest;
19
19
  } : UnionToIntersection<keyof IntegrationDefinitionComponentRegistry extends infer TComponentKey ? TComponentKey extends keyof IntegrationDefinitionComponentRegistry ? {
20
20
  [Key in TComponentKey]: IntegrationDefinitionComponentRegistry[TComponentKey];
@@ -31,20 +31,20 @@ export interface ConnectionInputPermissionAndVisibility {
31
31
  /** Optional value that specifies whether this Config Var is visible to an Organization deployer. @default true */
32
32
  visibleToOrgDeployer?: boolean;
33
33
  }
34
- export declare type ConfigVarExpression = {
34
+ export type ConfigVarExpression = {
35
35
  configVar: string;
36
36
  };
37
- export declare type ValueExpression<TValueType = unknown> = {
37
+ export type ValueExpression<TValueType = unknown> = {
38
38
  value: TValueType;
39
39
  };
40
- declare type ComponentReferenceType = Extract<keyof ComponentManifest, "actions" | "triggers" | "dataSources" | "connections">;
41
- declare type ComponentReferenceTypeValueMap<TValue, TMap extends Record<ComponentReferenceType, unknown> = {
40
+ type ComponentReferenceType = Extract<keyof ComponentManifest, "actions" | "triggers" | "dataSources" | "connections">;
41
+ type ComponentReferenceTypeValueMap<TValue, TMap extends Record<ComponentReferenceType, unknown> = {
42
42
  actions: ValueExpression<TValue>;
43
43
  triggers: ValueExpression<TValue> | ConfigVarExpression;
44
44
  dataSources: ValueExpression<TValue> | ConfigVarExpression;
45
45
  connections: (ValueExpression<TValue> | ConfigVarExpression) & ConnectionInputPermissionAndVisibility;
46
46
  }> = TMap;
47
- export declare type ComponentReference<TComponentReference extends {
47
+ export type ComponentReference<TComponentReference extends {
48
48
  component: string;
49
49
  key: string;
50
50
  values?: {
@@ -59,15 +59,8 @@ export declare type ComponentReference<TComponentReference extends {
59
59
  };
60
60
  template?: string;
61
61
  }> = TComponentReference;
62
- export declare const isComponentReference: (ref: unknown) => ref is {
63
- component: string;
64
- key: string;
65
- values?: {
66
- [key: string]: ConfigVarExpression | ValueExpression<unknown>;
67
- } | undefined;
68
- template?: string | undefined;
69
- };
70
- declare type ComponentRegistryFunctionsByType = UnionToIntersection<ComponentReferenceType extends infer TComponentReferenceType ? TComponentReferenceType extends Extract<keyof ComponentManifest, "actions" | "triggers" | "dataSources" | "connections"> ? {
62
+ export declare const isComponentReference: (ref: unknown) => ref is ComponentReference;
63
+ type ComponentRegistryFunctionsByType = UnionToIntersection<ComponentReferenceType extends infer TComponentReferenceType ? TComponentReferenceType extends Extract<keyof ComponentManifest, "actions" | "triggers" | "dataSources" | "connections"> ? {
71
64
  [Key in TComponentReferenceType]: keyof ComponentRegistry extends infer TComponentKey ? TComponentKey extends keyof ComponentRegistry ? TComponentKey extends string ? TComponentReferenceType extends keyof ComponentRegistry[TComponentKey] ? keyof ComponentRegistry[TComponentKey][TComponentReferenceType] extends infer TComponentPropertyKey ? TComponentPropertyKey extends keyof ComponentRegistry[TComponentKey][TComponentReferenceType] ? TComponentPropertyKey extends string ? "perform" extends keyof ComponentRegistry[TComponentKey][TComponentReferenceType][TComponentPropertyKey] ? ComponentRegistry[TComponentKey][TComponentReferenceType][TComponentPropertyKey]["perform"] extends (...args: any[]) => any ? Parameters<ComponentRegistry[TComponentKey][TComponentReferenceType][TComponentPropertyKey]["perform"]>[0] extends infer TInputs ? Prettify<Omit<ComponentRegistry[TComponentKey][TComponentReferenceType][TComponentPropertyKey], "perform"> & {
72
65
  reference: ComponentReference<{
73
66
  component: TComponentKey;
@@ -78,12 +71,12 @@ declare type ComponentRegistryFunctionsByType = UnionToIntersection<ComponentRef
78
71
  }>;
79
72
  }> : never : never : never : never : never : never : never : never : never : never;
80
73
  } : never : never>;
81
- export declare type ComponentRegistryTrigger = ComponentRegistryFunctionsByType["triggers"];
82
- export declare type TriggerReference = ComponentRegistryTrigger["reference"];
83
- export declare type ComponentRegistryAction = ComponentRegistryFunctionsByType["actions"];
84
- export declare type ActionReference = ComponentRegistryAction["reference"];
85
- export declare type ComponentRegistryDataSource = ComponentRegistryFunctionsByType["dataSources"];
86
- export declare type DataSourceReference = ComponentRegistryDataSource["reference"];
87
- export declare type ComponentRegistryConnection = ComponentRegistryFunctionsByType["connections"];
88
- export declare type ConnectionReference = ComponentRegistryConnection["reference"];
74
+ export type ComponentRegistryTrigger = ComponentRegistryFunctionsByType["triggers"];
75
+ export type TriggerReference = ComponentRegistryTrigger["reference"];
76
+ export type ComponentRegistryAction = ComponentRegistryFunctionsByType["actions"];
77
+ export type ActionReference = ComponentRegistryAction["reference"];
78
+ export type ComponentRegistryDataSource = ComponentRegistryFunctionsByType["dataSources"];
79
+ export type DataSourceReference = ComponentRegistryDataSource["reference"];
80
+ export type ComponentRegistryConnection = ComponentRegistryFunctionsByType["connections"];
81
+ export type ConnectionReference = ComponentRegistryConnection["reference"];
89
82
  export {};
@@ -28,14 +28,14 @@ export interface IntegrationDefinitionConfigPages {
28
28
  */
29
29
  export interface IntegrationDefinitionUserLevelConfigPages {
30
30
  }
31
- export declare type ConfigPageElement = string | ConfigVar;
32
- declare type CreateConfigPages<TIntegrationDefinitionConfigPages> = keyof TIntegrationDefinitionConfigPages extends never ? {
31
+ export type ConfigPageElement = string | ConfigVar;
32
+ type CreateConfigPages<TIntegrationDefinitionConfigPages> = keyof TIntegrationDefinitionConfigPages extends never ? {
33
33
  [key: string]: ConfigPage;
34
34
  } : UnionToIntersection<keyof TIntegrationDefinitionConfigPages extends infer TPageName ? TPageName extends keyof TIntegrationDefinitionConfigPages ? TIntegrationDefinitionConfigPages[TPageName] extends ConfigPage ? {
35
35
  [Key in TPageName]: TIntegrationDefinitionConfigPages[TPageName];
36
36
  } : never : never : never>;
37
- export declare type ConfigPages = CreateConfigPages<IntegrationDefinitionConfigPages>;
38
- export declare type UserLevelConfigPages = CreateConfigPages<IntegrationDefinitionUserLevelConfigPages>;
37
+ export type ConfigPages = CreateConfigPages<IntegrationDefinitionConfigPages>;
38
+ export type UserLevelConfigPages = CreateConfigPages<IntegrationDefinitionUserLevelConfigPages>;
39
39
  /** Defines attributes of a Config Wizard Page used when deploying an Instance of an Integration. */
40
40
  export interface ConfigPage {
41
41
  /** Elements included on this Config Page. */
@@ -1,8 +1,8 @@
1
- import { DataSourceDefinition, ConnectionDefinition, Inputs, DataSourceType, Connection, JSONForm, ObjectFieldMap, ObjectSelection, ConfigVarResultCollection, Schedule, CollectionDataSourceType, DataSourceReference, ConfigPage, ConfigPages, UserLevelConfigPages, ConfigPageElement, ComponentRegistryDataSource, ComponentRegistryConnection } from ".";
1
+ import { DataSourceDefinition, ConnectionDefinition, Inputs, DataSourceType, Connection, JSONForm, ObjectFieldMap, ObjectSelection, ConfigVarResultCollection, Schedule, CollectionDataSourceType, DataSourceReference, ConfigPage, ConfigPages, ConfigPageElement, ComponentRegistryDataSource, ComponentRegistryConnection } from ".";
2
2
  import { Prettify, UnionToIntersection } from "./utils";
3
3
  /** Supported data types for Config Vars. */
4
- export declare type ConfigVarDataType = "string" | "date" | "timestamp" | "picklist" | "code" | "boolean" | "number" | "schedule" | "objectSelection" | "objectFieldMap" | "jsonForm";
5
- declare type ConfigVarDataTypeDefaultValueMap<TMap extends Record<ConfigVarDataType, unknown> = {
4
+ export type ConfigVarDataType = "string" | "date" | "timestamp" | "picklist" | "code" | "boolean" | "number" | "schedule" | "objectSelection" | "objectFieldMap" | "jsonForm";
5
+ type ConfigVarDataTypeDefaultValueMap<TMap extends Record<ConfigVarDataType, unknown> = {
6
6
  string: string;
7
7
  date: string;
8
8
  timestamp: string;
@@ -15,7 +15,7 @@ declare type ConfigVarDataTypeDefaultValueMap<TMap extends Record<ConfigVarDataT
15
15
  objectFieldMap: ObjectFieldMap;
16
16
  jsonForm: JSONForm;
17
17
  }> = TMap;
18
- declare type ConfigVarDataTypeRuntimeValueMap<TMap extends Record<ConfigVarDataType, unknown> = {
18
+ type ConfigVarDataTypeRuntimeValueMap<TMap extends Record<ConfigVarDataType, unknown> = {
19
19
  string: string;
20
20
  date: string;
21
21
  timestamp: string;
@@ -29,11 +29,11 @@ declare type ConfigVarDataTypeRuntimeValueMap<TMap extends Record<ConfigVarDataT
29
29
  jsonForm: unknown;
30
30
  }> = TMap;
31
31
  /** Choices of collection types for multi-value Config Vars. */
32
- export declare type CollectionType = "valuelist" | "keyvaluelist";
33
- export declare type PermissionAndVisibilityType = "customer" | "embedded" | "organization";
34
- declare type ConfigVarSingleDataType = Extract<ConfigVarDataType, "schedule" | "objectSelection" | "objectFieldMap" | "jsonForm">;
32
+ export type CollectionType = "valuelist" | "keyvaluelist";
33
+ export type PermissionAndVisibilityType = "customer" | "embedded" | "organization";
34
+ type ConfigVarSingleDataType = Extract<ConfigVarDataType, "schedule" | "objectSelection" | "objectFieldMap" | "jsonForm">;
35
35
  /** Common attribute shared by all types of Config Vars. */
36
- declare type BaseConfigVar = {
36
+ type BaseConfigVar = {
37
37
  /** A unique, unchanging value that is used to maintain identity for the Config Var even if the key changes. */
38
38
  stableKey: string;
39
39
  /** Optional description for this Config Var. */
@@ -49,7 +49,7 @@ declare type BaseConfigVar = {
49
49
  /** Optional value that specifies whether this Config Var is visible to an Organization deployer. @default true */
50
50
  visibleToOrgDeployer?: boolean;
51
51
  };
52
- declare type GetDynamicProperties<TValue, TCollectionType extends CollectionType | undefined> = TCollectionType extends undefined ? {
52
+ type GetDynamicProperties<TValue, TCollectionType extends CollectionType | undefined> = TCollectionType extends undefined ? {
53
53
  defaultValue?: TValue;
54
54
  /** Optional value to specify the type of collection if the Config Var is multi-value. */
55
55
  collectionType?: undefined;
@@ -65,35 +65,35 @@ declare type GetDynamicProperties<TValue, TCollectionType extends CollectionType
65
65
  /** Optional value to specify the type of collection if the Config Var is multi-value. */
66
66
  collectionType: "keyvaluelist";
67
67
  };
68
- declare type StandardConfigVarDynamicProperties<TDataType extends ConfigVarDataType> = CollectionType | undefined extends infer TCollectionType ? TCollectionType extends CollectionType | undefined ? TDataType extends ConfigVarSingleDataType ? TCollectionType extends undefined ? GetDynamicProperties<ConfigVarDataTypeDefaultValueMap[TDataType], undefined> : never : GetDynamicProperties<ConfigVarDataTypeDefaultValueMap[TDataType], TCollectionType> : never : never;
69
- declare type CreateStandardConfigVar<TDataType extends ConfigVarDataType> = BaseConfigVar & StandardConfigVarDynamicProperties<TDataType> & {
68
+ type StandardConfigVarDynamicProperties<TDataType extends ConfigVarDataType> = CollectionType | undefined extends infer TCollectionType ? TCollectionType extends CollectionType | undefined ? TDataType extends ConfigVarSingleDataType ? TCollectionType extends undefined ? GetDynamicProperties<ConfigVarDataTypeDefaultValueMap[TDataType], undefined> : never : GetDynamicProperties<ConfigVarDataTypeDefaultValueMap[TDataType], TCollectionType> : never : never;
69
+ type CreateStandardConfigVar<TDataType extends ConfigVarDataType> = BaseConfigVar & StandardConfigVarDynamicProperties<TDataType> & {
70
70
  /** The data type of the Config Var. */
71
71
  dataType: TDataType;
72
72
  };
73
- declare type StringConfigVar = CreateStandardConfigVar<"string">;
74
- declare type DateConfigVar = CreateStandardConfigVar<"date">;
75
- declare type TimestampConfigVar = CreateStandardConfigVar<"timestamp">;
76
- declare type PicklistConfigVar = CreateStandardConfigVar<"picklist"> & {
73
+ type StringConfigVar = CreateStandardConfigVar<"string">;
74
+ type DateConfigVar = CreateStandardConfigVar<"date">;
75
+ type TimestampConfigVar = CreateStandardConfigVar<"timestamp">;
76
+ type PicklistConfigVar = CreateStandardConfigVar<"picklist"> & {
77
77
  /** List of picklist values. */
78
78
  pickList: string[];
79
79
  };
80
80
  /** Choices of programming languages that may be used for Config Var code values. */
81
- export declare type CodeLanguageType = "json" | "xml" | "html";
82
- declare type CodeConfigVar = CreateStandardConfigVar<"code"> & {
81
+ export type CodeLanguageType = "json" | "xml" | "html";
82
+ type CodeConfigVar = CreateStandardConfigVar<"code"> & {
83
83
  /** Value to specify the type of language of a code Config Var. */
84
84
  codeLanguage: CodeLanguageType;
85
85
  };
86
- declare type BooleanConfigVar = CreateStandardConfigVar<"boolean">;
87
- declare type NumberConfigVar = CreateStandardConfigVar<"number">;
88
- declare type ScheduleConfigVar = CreateStandardConfigVar<"schedule"> & {
86
+ type BooleanConfigVar = CreateStandardConfigVar<"boolean">;
87
+ type NumberConfigVar = CreateStandardConfigVar<"number">;
88
+ type ScheduleConfigVar = CreateStandardConfigVar<"schedule"> & {
89
89
  /** Optional timezone for the schedule. */
90
90
  timeZone?: string;
91
91
  };
92
- declare type ObjectSelectionConfigVar = CreateStandardConfigVar<"objectSelection">;
93
- declare type ObjectFieldMapConfigVar = CreateStandardConfigVar<"objectFieldMap">;
94
- declare type JsonFormConfigVar = CreateStandardConfigVar<"jsonForm">;
95
- export declare type StandardConfigVar = StringConfigVar | DateConfigVar | TimestampConfigVar | PicklistConfigVar | CodeConfigVar | BooleanConfigVar | NumberConfigVar | ScheduleConfigVar | ObjectSelectionConfigVar | ObjectFieldMapConfigVar | JsonFormConfigVar;
96
- declare type BaseDataSourceConfigVar<TDataSourceType extends DataSourceType = DataSourceType> = TDataSourceType extends CollectionDataSourceType ? {
92
+ type ObjectSelectionConfigVar = CreateStandardConfigVar<"objectSelection">;
93
+ type ObjectFieldMapConfigVar = CreateStandardConfigVar<"objectFieldMap">;
94
+ type JsonFormConfigVar = CreateStandardConfigVar<"jsonForm">;
95
+ export type StandardConfigVar = StringConfigVar | DateConfigVar | TimestampConfigVar | PicklistConfigVar | CodeConfigVar | BooleanConfigVar | NumberConfigVar | ScheduleConfigVar | ObjectSelectionConfigVar | ObjectFieldMapConfigVar | JsonFormConfigVar;
96
+ type BaseDataSourceConfigVar<TDataSourceType extends DataSourceType = DataSourceType> = TDataSourceType extends CollectionDataSourceType ? {
97
97
  dataSourceType: TDataSourceType;
98
98
  collectionType?: CollectionType | undefined;
99
99
  } & BaseConfigVar : TDataSourceType extends Exclude<DataSourceType, CollectionDataSourceType> ? BaseConfigVar & {
@@ -106,18 +106,18 @@ declare type BaseDataSourceConfigVar<TDataSourceType extends DataSourceType = Da
106
106
  dataSourceType: Extract<Exclude<DataSourceType, CollectionDataSourceType>, TDataSourceType>;
107
107
  collectionType?: undefined;
108
108
  });
109
- declare type DataSourceDefinitionConfigVar = DataSourceType extends infer TDataSourceType ? TDataSourceType extends DataSourceType ? BaseDataSourceConfigVar<TDataSourceType> & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, TDataSourceType>, "display" | "inputs" | "examplePayload" | "detailDataSource"> : never : never;
110
- declare type DataSourceReferenceConfigVar = ComponentRegistryDataSource extends infer TDataSourceReference ? TDataSourceReference extends ComponentRegistryDataSource ? Omit<BaseDataSourceConfigVar<TDataSourceReference["dataSourceType"]>, "dataSourceType"> & {
109
+ type DataSourceDefinitionConfigVar = DataSourceType extends infer TDataSourceType ? TDataSourceType extends DataSourceType ? BaseDataSourceConfigVar<TDataSourceType> & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, TDataSourceType>, "display" | "inputs" | "examplePayload" | "detailDataSource"> : never : never;
110
+ type DataSourceReferenceConfigVar = ComponentRegistryDataSource extends infer TDataSourceReference extends ComponentRegistryDataSource ? Omit<BaseDataSourceConfigVar<TDataSourceReference["dataSourceType"]>, "dataSourceType"> & {
111
111
  dataSource: TDataSourceReference["reference"];
112
- } : never : never;
112
+ } : never;
113
113
  /** Defines attributes of a data source Config Var. */
114
- export declare type DataSourceConfigVar = DataSourceDefinitionConfigVar | DataSourceReferenceConfigVar;
115
- declare type BaseConnectionConfigVar = BaseConfigVar & {
114
+ export type DataSourceConfigVar = DataSourceDefinitionConfigVar | DataSourceReferenceConfigVar;
115
+ type BaseConnectionConfigVar = BaseConfigVar & {
116
116
  dataType: "connection";
117
117
  };
118
- declare type ConnectionDefinitionConfigVar = BaseConnectionConfigVar & Omit<ConnectionDefinition, "label" | "comments" | "key">;
119
- declare type OnPremiseConnectionConfigTypeEnum = "allowed" | "disallowed" | "required";
120
- declare type ConnectionReferenceConfigVar = ComponentRegistryConnection extends infer TConnectionReference ? TConnectionReference extends ComponentRegistryConnection ? BaseConnectionConfigVar & {
118
+ type ConnectionDefinitionConfigVar = BaseConnectionConfigVar & Omit<ConnectionDefinition, "label" | "comments" | "key">;
119
+ type OnPremiseConnectionConfigTypeEnum = "allowed" | "disallowed" | "required";
120
+ type ConnectionReferenceConfigVar = ComponentRegistryConnection extends infer TConnectionReference ? TConnectionReference extends ComponentRegistryConnection ? BaseConnectionConfigVar & {
121
121
  connection: TConnectionReference["reference"] & ("onPremAvailable" extends keyof TConnectionReference ? TConnectionReference["onPremAvailable"] extends true ? {
122
122
  template?: string;
123
123
  onPremiseConnectionConfig?: OnPremiseConnectionConfigTypeEnum;
@@ -130,112 +130,25 @@ declare type ConnectionReferenceConfigVar = ComponentRegistryConnection extends
130
130
  });
131
131
  } : never : never;
132
132
  /** Defines attributes of a Config Var that represents a Connection. */
133
- export declare type ConnectionConfigVar = ConnectionDefinitionConfigVar | ConnectionReferenceConfigVar;
134
- export declare type ConfigVar = StandardConfigVar | DataSourceConfigVar | ConnectionConfigVar;
135
- declare type WithCollectionType<TValue, TCollectionType extends CollectionType | undefined> = undefined | unknown extends TCollectionType ? TValue : TCollectionType extends "valuelist" ? TValue[] : Array<{
133
+ export type ConnectionConfigVar = ConnectionDefinitionConfigVar | ConnectionReferenceConfigVar;
134
+ export type ConfigVar = StandardConfigVar | DataSourceConfigVar | ConnectionConfigVar;
135
+ type WithCollectionType<TValue, TCollectionType extends CollectionType | undefined> = undefined | unknown extends TCollectionType ? TValue : TCollectionType extends "valuelist" ? TValue[] : Array<{
136
136
  key: string;
137
137
  value: TValue;
138
138
  }>;
139
- declare type GetDataSourceReference<TComponent extends DataSourceReference["component"], TKey extends DataSourceReference["key"]> = ComponentRegistryDataSource extends infer TDataSourceReference ? TDataSourceReference extends ComponentRegistryDataSource ? TComponent extends TDataSourceReference["reference"]["component"] ? TKey extends TDataSourceReference["reference"]["key"] ? TDataSourceReference : never : never : never : never;
140
- declare type DataSourceToRuntimeType<TElement extends ConfigPageElement> = TElement extends DataSourceDefinitionConfigVar ? TElement["dataSourceType"] extends infer TType ? TType extends DataSourceType ? ConfigVarDataTypeRuntimeValueMap[TType] : never : never : TElement extends DataSourceReferenceConfigVar ? GetDataSourceReference<TElement["dataSource"]["component"], TElement["dataSource"]["key"]>["dataSourceType"] extends infer TType ? TType extends DataSourceType ? ConfigVarDataTypeRuntimeValueMap[TType] : never : never : never;
141
- declare type ElementToRuntimeType<TElement extends ConfigPageElement> = TElement extends ConfigVar ? TElement extends ConnectionConfigVar ? Connection : TElement extends StandardConfigVar ? WithCollectionType<ConfigVarDataTypeRuntimeValueMap[TElement["dataType"]], TElement["collectionType"]> : TElement extends DataSourceConfigVar ? WithCollectionType<DataSourceToRuntimeType<TElement>, TElement["collectionType"]> : never : never;
142
- declare type ExtractConfigVars<TConfigPages extends {
139
+ type GetDataSourceReference<TComponent extends DataSourceReference["component"], TKey extends DataSourceReference["key"]> = ComponentRegistryDataSource extends infer TDataSourceReference ? TDataSourceReference extends ComponentRegistryDataSource ? TComponent extends TDataSourceReference["reference"]["component"] ? TKey extends TDataSourceReference["reference"]["key"] ? TDataSourceReference : never : never : never : never;
140
+ type DataSourceToRuntimeType<TElement extends ConfigPageElement> = TElement extends DataSourceDefinitionConfigVar ? TElement["dataSourceType"] extends infer TType ? TType extends DataSourceType ? ConfigVarDataTypeRuntimeValueMap[TType] : never : never : TElement extends DataSourceReferenceConfigVar ? GetDataSourceReference<TElement["dataSource"]["component"], TElement["dataSource"]["key"]>["dataSourceType"] extends infer TType ? TType extends DataSourceType ? ConfigVarDataTypeRuntimeValueMap[TType] : never : never : never;
141
+ type ElementToRuntimeType<TElement extends ConfigPageElement> = TElement extends ConfigVar ? TElement extends ConnectionConfigVar ? Connection : TElement extends StandardConfigVar ? WithCollectionType<ConfigVarDataTypeRuntimeValueMap[TElement["dataType"]], TElement["collectionType"]> : TElement extends DataSourceConfigVar ? WithCollectionType<DataSourceToRuntimeType<TElement>, TElement["collectionType"]> : never : never;
142
+ type ExtractConfigVars<TConfigPages extends {
143
143
  [key: string]: ConfigPage;
144
144
  }> = keyof TConfigPages extends infer TPageName ? TPageName extends keyof TConfigPages ? TConfigPages[TPageName] extends infer TConfigPage ? TConfigPage extends ConfigPage ? {
145
145
  [Key in keyof TConfigPage["elements"] as Key extends string ? TConfigPage["elements"][Key] extends ConfigVar ? Key : never : never]: ElementToRuntimeType<TConfigPage["elements"][Key]>;
146
146
  } : never : never : never : never;
147
- export declare type ConfigVars = Prettify<UnionToIntersection<ExtractConfigVars<ConfigPages> | ExtractConfigVars<UserLevelConfigPages>>>;
147
+ export type ConfigVars = Prettify<UnionToIntersection<ExtractConfigVars<ConfigPages>>>;
148
148
  export declare const isCodeConfigVar: (cv: ConfigVar) => cv is CodeConfigVar;
149
149
  export declare const isScheduleConfigVar: (cv: ConfigVar) => cv is ScheduleConfigVar;
150
- export declare const isDataSourceDefinitionConfigVar: (cv: ConfigVar) => cv is ({
151
- dataSourceType: "string";
152
- collectionType?: CollectionType | undefined;
153
- } & BaseConfigVar & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, "string">, "display" | "inputs" | "examplePayload" | "detailDataSource">) | ({
154
- dataSourceType: "number";
155
- collectionType?: CollectionType | undefined;
156
- } & BaseConfigVar & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, "number">, "display" | "inputs" | "examplePayload" | "detailDataSource">) | ({
157
- dataSourceType: "boolean";
158
- collectionType?: CollectionType | undefined;
159
- } & BaseConfigVar & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, "boolean">, "display" | "inputs" | "examplePayload" | "detailDataSource">) | ({
160
- dataSourceType: "code";
161
- collectionType?: CollectionType | undefined;
162
- } & BaseConfigVar & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, "code">, "display" | "inputs" | "examplePayload" | "detailDataSource">) | (BaseConfigVar & {
163
- dataSourceType: "objectSelection";
164
- collectionType?: undefined;
165
- } & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, "objectSelection">, "display" | "inputs" | "examplePayload" | "detailDataSource">) | (BaseConfigVar & {
166
- dataSourceType: "objectFieldMap";
167
- collectionType?: undefined;
168
- } & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, "objectFieldMap">, "display" | "inputs" | "examplePayload" | "detailDataSource">) | (BaseConfigVar & {
169
- dataSourceType: "jsonForm";
170
- collectionType?: undefined;
171
- } & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, "jsonForm">, "display" | "inputs" | "examplePayload" | "detailDataSource">) | ({
172
- dataSourceType: "date";
173
- collectionType?: CollectionType | undefined;
174
- } & BaseConfigVar & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, "date">, "display" | "inputs" | "examplePayload" | "detailDataSource">) | ({
175
- dataSourceType: "timestamp";
176
- collectionType?: CollectionType | undefined;
177
- } & BaseConfigVar & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, "timestamp">, "display" | "inputs" | "examplePayload" | "detailDataSource">) | ({
178
- dataSourceType: "picklist";
179
- collectionType?: CollectionType | undefined;
180
- } & BaseConfigVar & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, "picklist">, "display" | "inputs" | "examplePayload" | "detailDataSource">) | ({
181
- dataSourceType: "schedule";
182
- collectionType?: CollectionType | undefined;
183
- } & BaseConfigVar & Omit<DataSourceDefinition<Inputs, ConfigVarResultCollection, "schedule">, "display" | "inputs" | "examplePayload" | "detailDataSource">);
184
- export declare const isDataSourceReferenceConfigVar: (cv: unknown) => cv is Omit<({
185
- dataSourceType: "string";
186
- collectionType?: CollectionType | undefined;
187
- } & BaseConfigVar) | ({
188
- dataSourceType: "number";
189
- collectionType?: CollectionType | undefined;
190
- } & BaseConfigVar) | ({
191
- dataSourceType: "boolean";
192
- collectionType?: CollectionType | undefined;
193
- } & BaseConfigVar) | ({
194
- dataSourceType: "code";
195
- collectionType?: CollectionType | undefined;
196
- } & BaseConfigVar) | (BaseConfigVar & {
197
- dataSourceType: "objectSelection";
198
- collectionType?: undefined;
199
- }) | (BaseConfigVar & {
200
- dataSourceType: "objectFieldMap";
201
- collectionType?: undefined;
202
- }) | (BaseConfigVar & {
203
- dataSourceType: "jsonForm";
204
- collectionType?: undefined;
205
- }) | ({
206
- dataSourceType: "date";
207
- collectionType?: CollectionType | undefined;
208
- } & BaseConfigVar) | ({
209
- dataSourceType: "timestamp";
210
- collectionType?: CollectionType | undefined;
211
- } & BaseConfigVar) | ({
212
- dataSourceType: "picklist";
213
- collectionType?: CollectionType | undefined;
214
- } & BaseConfigVar) | ({
215
- dataSourceType: "schedule";
216
- collectionType?: CollectionType | undefined;
217
- } & BaseConfigVar), "dataSourceType"> & {
218
- dataSource: {
219
- component: string;
220
- key: string;
221
- values: {
222
- [x: string]: import("./ComponentRegistry").ConfigVarExpression | import("./ComponentRegistry").ValueExpression<any>;
223
- };
224
- };
225
- };
150
+ export declare const isDataSourceDefinitionConfigVar: (cv: ConfigVar) => cv is DataSourceDefinitionConfigVar;
151
+ export declare const isDataSourceReferenceConfigVar: (cv: unknown) => cv is DataSourceReferenceConfigVar;
226
152
  export declare const isConnectionDefinitionConfigVar: (cv: ConfigVar) => cv is ConnectionDefinitionConfigVar;
227
- export declare const isConnectionReferenceConfigVar: (cv: unknown) => cv is BaseConfigVar & {
228
- dataType: "connection";
229
- } & {
230
- connection: {
231
- component: string;
232
- key: string;
233
- values: {
234
- [x: string]: (import("./ComponentRegistry").ConfigVarExpression | import("./ComponentRegistry").ValueExpression<any>) & import("./ComponentRegistry").ConnectionInputPermissionAndVisibility;
235
- };
236
- } & {
237
- template?: string | undefined;
238
- onPremiseConnectionConfig?: undefined;
239
- };
240
- };
153
+ export declare const isConnectionReferenceConfigVar: (cv: unknown) => cv is ConnectionReferenceConfigVar;
241
154
  export {};
@@ -49,6 +49,6 @@ interface OAuth2ClientCredentialConnectionDefinition extends BaseConnectionDefin
49
49
  [key: string]: ConnectionInput;
50
50
  };
51
51
  }
52
- export declare type OAuth2ConnectionDefinition = OAuth2AuthorizationCodeConnectionDefinition | OAuth2ClientCredentialConnectionDefinition;
53
- export declare type ConnectionDefinition = DefaultConnectionDefinition | OnPremConnectionDefinition | OAuth2ConnectionDefinition;
52
+ export type OAuth2ConnectionDefinition = OAuth2AuthorizationCodeConnectionDefinition | OAuth2ClientCredentialConnectionDefinition;
53
+ export type ConnectionDefinition = DefaultConnectionDefinition | OnPremConnectionDefinition | OAuth2ConnectionDefinition;
54
54
  export {};
@@ -5,9 +5,9 @@ var OAuth2Type;
5
5
  (function (OAuth2Type) {
6
6
  OAuth2Type["ClientCredentials"] = "client_credentials";
7
7
  OAuth2Type["AuthorizationCode"] = "authorization_code";
8
- })(OAuth2Type = exports.OAuth2Type || (exports.OAuth2Type = {}));
8
+ })(OAuth2Type || (exports.OAuth2Type = OAuth2Type = {}));
9
9
  var OAuth2PkceMethod;
10
10
  (function (OAuth2PkceMethod) {
11
11
  OAuth2PkceMethod["Plain"] = "plain";
12
12
  OAuth2PkceMethod["S256"] = "S256";
13
- })(OAuth2PkceMethod = exports.OAuth2PkceMethod || (exports.OAuth2PkceMethod = {}));
13
+ })(OAuth2PkceMethod || (exports.OAuth2PkceMethod = OAuth2PkceMethod = {}));
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /** Binary data payload */
3
2
  export interface DataPayload {
4
3
  /** Raw binary data as a Buffer */
@@ -1,5 +1,5 @@
1
1
  import { Inputs, DataSourceResult, DataSourceType, ActionInputParameters, ConfigVarResultCollection, ActionContext } from ".";
2
2
  /** Context provided to perform method containing helpers and contextual data */
3
- export declare type DataSourceContext<TConfigVars extends ConfigVarResultCollection = ConfigVarResultCollection> = Pick<ActionContext<TConfigVars>, "logger" | "customer" | "instance" | "user" | "configVars">;
3
+ export type DataSourceContext<TConfigVars extends ConfigVarResultCollection = ConfigVarResultCollection> = Pick<ActionContext<TConfigVars>, "logger" | "customer" | "instance" | "user" | "configVars">;
4
4
  /** Definition of the function to perform when a Data Source is invoked. */
5
- export declare type DataSourcePerformFunction<TInputs extends Inputs, TConfigVars extends ConfigVarResultCollection, TDataSourceType extends DataSourceType> = (context: DataSourceContext<TConfigVars>, params: ActionInputParameters<TInputs>) => Promise<DataSourceResult<TDataSourceType>>;
5
+ export type DataSourcePerformFunction<TInputs extends Inputs, TConfigVars extends ConfigVarResultCollection, TDataSourceType extends DataSourceType> = (context: DataSourceContext<TConfigVars>, params: ActionInputParameters<TInputs>) => Promise<DataSourceResult<TDataSourceType>>;
@@ -1,6 +1,6 @@
1
1
  import { ObjectSelection, ObjectFieldMap, JSONForm, Element } from "./Inputs";
2
2
  /** The type of field that is appropriate for rendering the data that is the result of the data source perform function. */
3
- declare type DataSourceTypeMap = {
3
+ type DataSourceTypeMap = {
4
4
  string: string;
5
5
  date: string;
6
6
  timestamp: string;
@@ -15,11 +15,11 @@ declare type DataSourceTypeMap = {
15
15
  objectFieldMap: ObjectFieldMap;
16
16
  jsonForm: JSONForm;
17
17
  };
18
- export declare type DataSourceType = keyof DataSourceTypeMap;
19
- export declare type CollectionDataSourceType = Exclude<DataSourceType, "objectSelection" | "objectFieldMap" | "jsonForm">;
20
- export declare type DataSourceResultType = DataSourceTypeMap[DataSourceType];
18
+ export type DataSourceType = keyof DataSourceTypeMap;
19
+ export type CollectionDataSourceType = Exclude<DataSourceType, "objectSelection" | "objectFieldMap" | "jsonForm">;
20
+ export type DataSourceResultType = DataSourceTypeMap[DataSourceType];
21
21
  /** Represents the result of a Data Source action. */
22
- export declare type DataSourceResult<TDataSourceType extends DataSourceType> = {
22
+ export type DataSourceResult<TDataSourceType extends DataSourceType> = {
23
23
  /** The resulting data that is returned from the data source. */
24
24
  result: DataSourceTypeMap[TDataSourceType];
25
25
  /** Additional data that may be useful for out-of-band processing at a later time.
@@ -8,7 +8,7 @@ interface DisplayDefinition {
8
8
  /** Description to display to the user. */
9
9
  description: string;
10
10
  }
11
- declare type PublicComponentCategory = "Application Connectors" | "Data Platforms" | "Helpers" | "Logic" | "Triggers";
11
+ type PublicComponentCategory = "Application Connectors" | "Data Platforms" | "Helpers" | "Logic" | "Triggers";
12
12
  interface ExtraDisplayDefinitionFields<TPublic extends boolean> {
13
13
  /** Path to icon to use for this Component. Path should be relative to the built component source. */
14
14
  iconPath: string;
@@ -16,7 +16,7 @@ interface ExtraDisplayDefinitionFields<TPublic extends boolean> {
16
16
  category?: TPublic extends true ? PublicComponentCategory : string;
17
17
  }
18
18
  /** Component extensions for display properties. */
19
- export declare type ComponentDisplayDefinition<TPublic extends boolean> = TPublic extends true ? DisplayDefinition & Required<ExtraDisplayDefinitionFields<TPublic>> : DisplayDefinition & ExtraDisplayDefinitionFields<TPublic>;
19
+ export type ComponentDisplayDefinition<TPublic extends boolean> = TPublic extends true ? DisplayDefinition & Required<ExtraDisplayDefinitionFields<TPublic>> : DisplayDefinition & ExtraDisplayDefinitionFields<TPublic>;
20
20
  /** Action-specific Display attributes. */
21
21
  export interface ActionDisplayDefinition extends DisplayDefinition {
22
22
  /** Directions to help guide the user if additional configuration is required for this Action. */
@@ -13,16 +13,16 @@ export interface KeyValuePair<V = unknown> {
13
13
  /** Value of the KeyValuePair */
14
14
  value: V;
15
15
  }
16
- export declare type Element = {
16
+ export type Element = {
17
17
  key: string;
18
18
  label?: string;
19
19
  };
20
- export declare type ObjectSelection = {
20
+ export type ObjectSelection = {
21
21
  object: Element;
22
22
  fields?: Element[];
23
23
  defaultSelected?: boolean;
24
24
  }[];
25
- export declare type ObjectFieldMap = {
25
+ export type ObjectFieldMap = {
26
26
  fields: {
27
27
  field: Element;
28
28
  mappedObject?: Element;
@@ -35,12 +35,12 @@ export declare type ObjectFieldMap = {
35
35
  fields: Element[];
36
36
  }[];
37
37
  };
38
- export declare type Schedule = {
38
+ export type Schedule = {
39
39
  value: string;
40
40
  schedule_type: string;
41
41
  time_zone: string;
42
42
  };
43
- export declare type JSONForm = {
43
+ export type JSONForm = {
44
44
  /**
45
45
  * The data/JSON schema defines the underlying data to
46
46
  * be shown in the UI (objects, properties, and their
@@ -58,20 +58,20 @@ export declare type JSONForm = {
58
58
  */
59
59
  data?: Record<string, unknown> | unknown[];
60
60
  };
61
- export declare type DynamicObjectSelection = string;
62
- export declare type DynamicFieldSelection = string;
61
+ export type DynamicObjectSelection = string;
62
+ export type DynamicFieldSelection = string;
63
63
  /** InputField type enumeration. */
64
- export declare type InputFieldType = InputFieldDefinition["type"];
64
+ export type InputFieldType = InputFieldDefinition["type"];
65
65
  export declare const InputFieldDefaultMap: Record<InputFieldType, string | undefined>;
66
- export declare type Inputs = Record<string, InputFieldDefinition>;
67
- export declare type ConnectionInput = (StringInputField | DataInputField | TextInputField | PasswordInputField | BooleanInputField) & {
66
+ export type Inputs = Record<string, InputFieldDefinition>;
67
+ export type ConnectionInput = (StringInputField | DataInputField | TextInputField | PasswordInputField | BooleanInputField) & {
68
68
  shown?: boolean;
69
69
  };
70
- export declare type OnPremConnectionInput = {
70
+ export type OnPremConnectionInput = {
71
71
  onPremControlled: true;
72
72
  } & ConnectionInput;
73
- export declare type InputFieldDefinition = StringInputField | DataInputField | TextInputField | PasswordInputField | BooleanInputField | CodeInputField | ConditionalInputField | ConnectionInputField | ObjectSelectionInputField | ObjectFieldMapInputField | JSONFormInputField | DynamicObjectSelectionInputField | DynamicFieldSelectionInputField;
74
- export declare type InputCleanFunction<TValue, TResult = TValue> = (value: TValue) => TResult;
73
+ export type InputFieldDefinition = StringInputField | DataInputField | TextInputField | PasswordInputField | BooleanInputField | CodeInputField | ConditionalInputField | ConnectionInputField | ObjectSelectionInputField | ObjectFieldMapInputField | JSONFormInputField | DynamicObjectSelectionInputField | DynamicFieldSelectionInputField;
74
+ export type InputCleanFunction<TValue, TResult = TValue> = (value: TValue) => TResult;
75
75
  interface BaseInputField {
76
76
  /** Interface label of the InputField. */
77
77
  label: {
@@ -87,7 +87,7 @@ interface BaseInputField {
87
87
  /** Indicate if this InputField is required. */
88
88
  required?: boolean;
89
89
  }
90
- declare type CollectionOptions<T> = SingleValue<T> | ValueListCollection<T> | KeyValueListCollection<T>;
90
+ type CollectionOptions<T> = SingleValue<T> | ValueListCollection<T> | KeyValueListCollection<T>;
91
91
  interface SingleValue<T> {
92
92
  /** Collection type of the InputField */
93
93
  collection?: undefined;
@@ -106,7 +106,7 @@ interface KeyValueListCollection<T> {
106
106
  /** Default value for this field. */
107
107
  default?: KeyValuePair<T>[];
108
108
  }
109
- export declare type StringInputField = BaseInputField & {
109
+ export type StringInputField = BaseInputField & {
110
110
  /** Data type the InputField will collect. */
111
111
  type: "string";
112
112
  /** Dictates possible choices for the input. */
@@ -114,7 +114,7 @@ export declare type StringInputField = BaseInputField & {
114
114
  /** Clean function */
115
115
  clean?: InputCleanFunction<unknown>;
116
116
  } & CollectionOptions<string>;
117
- export declare type DataInputField = BaseInputField & {
117
+ export type DataInputField = BaseInputField & {
118
118
  /** Data type the InputField will collect. */
119
119
  type: "data";
120
120
  /** Dictates possible choices for the input. */
@@ -122,7 +122,7 @@ export declare type DataInputField = BaseInputField & {
122
122
  /** Clean function */
123
123
  clean?: InputCleanFunction<unknown>;
124
124
  } & CollectionOptions<string>;
125
- export declare type TextInputField = BaseInputField & {
125
+ export type TextInputField = BaseInputField & {
126
126
  /** Data type the InputField will collect. */
127
127
  type: "text";
128
128
  /** Dictates possible choices for the input. */
@@ -130,7 +130,7 @@ export declare type TextInputField = BaseInputField & {
130
130
  /** Clean function */
131
131
  clean?: InputCleanFunction<unknown>;
132
132
  } & CollectionOptions<string>;
133
- export declare type PasswordInputField = BaseInputField & {
133
+ export type PasswordInputField = BaseInputField & {
134
134
  /** Data type the InputField will collect. */
135
135
  type: "password";
136
136
  /** Dictates possible choices for the input. */
@@ -138,7 +138,7 @@ export declare type PasswordInputField = BaseInputField & {
138
138
  /** Clean function */
139
139
  clean?: InputCleanFunction<unknown>;
140
140
  } & CollectionOptions<string>;
141
- export declare type BooleanInputField = BaseInputField & {
141
+ export type BooleanInputField = BaseInputField & {
142
142
  /** Data type the InputField will collect. */
143
143
  type: "boolean";
144
144
  /** Dictates possible choices for the input. */
@@ -147,7 +147,7 @@ export declare type BooleanInputField = BaseInputField & {
147
147
  clean?: InputCleanFunction<unknown>;
148
148
  } & CollectionOptions<string>;
149
149
  /** Defines attributes of a CodeInputField. */
150
- export declare type CodeInputField = BaseInputField & {
150
+ export type CodeInputField = BaseInputField & {
151
151
  /** Data type the InputField will collect. */
152
152
  type: "code";
153
153
  /** Code language for syntax highlighting. For no syntax highlighting, choose "plaintext" */
@@ -254,7 +254,7 @@ export interface InputFieldChoice {
254
254
  value: string;
255
255
  }
256
256
  /** InputField collection enumeration */
257
- export declare type InputFieldCollection = "valuelist" | "keyvaluelist";
257
+ export type InputFieldCollection = "valuelist" | "keyvaluelist";
258
258
  /** Config variable result collection */
259
- export declare type ConfigVarResultCollection = Record<string, string | Schedule | Connection | unknown | ObjectSelection | ObjectFieldMap>;
259
+ export type ConfigVarResultCollection = Record<string, string | Schedule | Connection | unknown | ObjectSelection | ObjectFieldMap>;
260
260
  export {};