@aloma.io/integration-sdk 3.8.1 → 3.8.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.
@@ -13,7 +13,7 @@ declare type Config = {
|
|
13
13
|
summary?: string;
|
14
14
|
description?: string;
|
15
15
|
fields?: {
|
16
|
-
authorizationURL
|
16
|
+
authorizationURL?: ConfigField;
|
17
17
|
tokenURL?: ConfigField;
|
18
18
|
scope?: ConfigField;
|
19
19
|
clientId?: ConfigField;
|
@@ -27,7 +27,7 @@ declare type Options = {
|
|
27
27
|
required?: boolean;
|
28
28
|
};
|
29
29
|
};
|
30
|
-
declare type
|
30
|
+
declare type OAuth = {
|
31
31
|
/**
|
32
32
|
* preferred via process.env.OAUTH_CLIENT_ID
|
33
33
|
*/
|
@@ -52,7 +52,9 @@ export declare class Builder {
|
|
52
52
|
private data;
|
53
53
|
config(arg: Config): Builder;
|
54
54
|
options(arg: Options): Builder;
|
55
|
-
auth(arg:
|
55
|
+
auth(arg: {
|
56
|
+
oauth?: OAuth;
|
57
|
+
}): Builder;
|
56
58
|
build(): Promise<RuntimeContext>;
|
57
59
|
private checkIcon;
|
58
60
|
private loadDescriptor;
|
package/package.json
CHANGED
package/src/builder/index.mts
CHANGED
@@ -24,7 +24,7 @@ declare type Config = {
|
|
24
24
|
summary?: string;
|
25
25
|
description?: string;
|
26
26
|
fields?: {
|
27
|
-
authorizationURL
|
27
|
+
authorizationURL?: ConfigField;
|
28
28
|
tokenURL?: ConfigField;
|
29
29
|
scope?: ConfigField;
|
30
30
|
clientId?: ConfigField;
|
@@ -37,7 +37,7 @@ declare type Options = {
|
|
37
37
|
endpoint?: {enabled: boolean, required?: boolean};
|
38
38
|
};
|
39
39
|
|
40
|
-
declare type
|
40
|
+
declare type OAuth = {
|
41
41
|
/**
|
42
42
|
* preferred via process.env.OAUTH_CLIENT_ID
|
43
43
|
*/
|
@@ -75,7 +75,7 @@ export class Builder {
|
|
75
75
|
return this;
|
76
76
|
}
|
77
77
|
|
78
|
-
auth(arg:
|
78
|
+
auth(arg: {oauth?: OAuth}): Builder {
|
79
79
|
this.data.auth = arg;
|
80
80
|
return this;
|
81
81
|
}
|