@stackone/core 1.23.1 → 1.25.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.
|
@@ -24,6 +24,7 @@ export type Input = {
|
|
|
24
24
|
};
|
|
25
25
|
export type Operation = {
|
|
26
26
|
id: string;
|
|
27
|
+
categories: Category[];
|
|
27
28
|
description: string;
|
|
28
29
|
schema?: Schema;
|
|
29
30
|
operationType: OperationType;
|
|
@@ -35,6 +36,20 @@ export type Operation = {
|
|
|
35
36
|
};
|
|
36
37
|
result?: string;
|
|
37
38
|
};
|
|
39
|
+
type AuthenticationField = {
|
|
40
|
+
key: string;
|
|
41
|
+
label: string;
|
|
42
|
+
type: 'text' | 'password';
|
|
43
|
+
required?: boolean;
|
|
44
|
+
secret?: boolean;
|
|
45
|
+
placeholder?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
tooltip?: string;
|
|
48
|
+
};
|
|
49
|
+
type SupportConfig = {
|
|
50
|
+
link: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
};
|
|
38
53
|
export type AuthenticationConfig = {
|
|
39
54
|
envKey: string;
|
|
40
55
|
envName: string;
|
|
@@ -44,6 +59,10 @@ export type AuthenticationConfig = {
|
|
|
44
59
|
type: 'basic' | 'bearer';
|
|
45
60
|
[authParam: string]: unknown;
|
|
46
61
|
};
|
|
62
|
+
support?: SupportConfig;
|
|
63
|
+
configFields?: AuthenticationField[];
|
|
64
|
+
setupFields?: AuthenticationField[];
|
|
65
|
+
testOperationsIds?: string[];
|
|
47
66
|
};
|
|
48
67
|
export type Authentication = {
|
|
49
68
|
[authType: string]: {
|
|
@@ -51,3 +70,4 @@ export type Authentication = {
|
|
|
51
70
|
[envKey: string]: AuthenticationConfig;
|
|
52
71
|
};
|
|
53
72
|
};
|
|
73
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { StepFunctionsFactory } from './stepFunctions/factory';
|
|
|
6
6
|
export { Schema, SchemaField } from './schema/types';
|
|
7
7
|
export { Category } from './categories/types';
|
|
8
8
|
export { getCategoryDetails, isValidCategory } from './categories';
|
|
9
|
-
export { Connector, Operation, OperationType } from './connector/types';
|
|
9
|
+
export { Connector, Operation, OperationType, Authentication } from './connector/types';
|
|
10
10
|
export { AUTHENTICATION_SCHEMA } from './stepFunctions/request/schemas';
|
|
11
11
|
export { Input } from './connector/types';
|
|
12
12
|
export { ILogger } from './logger/types';
|