@microsoft/teamsfx-api 0.22.4-alpha.8a27a2c7c.0 → 0.22.4-alpha.8b06251e7.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.
Files changed (47) hide show
  1. package/build/cli.d.ts +195 -0
  2. package/build/cli.d.ts.map +1 -0
  3. package/build/cli.js +5 -0
  4. package/build/cli.js.map +1 -0
  5. package/build/constants.d.ts +4 -3
  6. package/build/constants.d.ts.map +1 -1
  7. package/build/constants.js +4 -3
  8. package/build/constants.js.map +1 -1
  9. package/build/error.d.ts +4 -0
  10. package/build/error.d.ts.map +1 -1
  11. package/build/error.js +6 -4
  12. package/build/error.js.map +1 -1
  13. package/build/index.d.ts +1 -0
  14. package/build/index.d.ts.map +1 -1
  15. package/build/index.js +1 -0
  16. package/build/index.js.map +1 -1
  17. package/build/qm/question.d.ts +126 -15
  18. package/build/qm/question.d.ts.map +1 -1
  19. package/build/qm/question.js.map +1 -1
  20. package/build/qm/ui.d.ts +51 -2
  21. package/build/qm/ui.d.ts.map +1 -1
  22. package/build/qm/validation.d.ts +6 -1
  23. package/build/qm/validation.d.ts.map +1 -1
  24. package/build/qm/validation.js +57 -11
  25. package/build/qm/validation.js.map +1 -1
  26. package/build/schemas/envConfig.d.ts +128 -0
  27. package/build/schemas/envConfig.d.ts.map +1 -0
  28. package/build/schemas/envConfig.js +9 -0
  29. package/build/schemas/envConfig.js.map +1 -0
  30. package/build/schemas/envConfig.json +162 -0
  31. package/build/schemas/index.d.ts +4 -0
  32. package/build/schemas/index.d.ts.map +1 -0
  33. package/build/schemas/index.js +10 -0
  34. package/build/schemas/index.js.map +1 -0
  35. package/build/schemas/src/schemas/envConfig.json +162 -0
  36. package/build/types.d.ts +41 -18
  37. package/build/types.d.ts.map +1 -1
  38. package/build/types.js +8 -1
  39. package/build/types.js.map +1 -1
  40. package/build/utils/log.d.ts +23 -36
  41. package/build/utils/log.d.ts.map +1 -1
  42. package/build/utils/log.js +7 -11
  43. package/build/utils/log.js.map +1 -1
  44. package/build/utils/login.d.ts.map +1 -1
  45. package/build/utils/login.js +3 -3
  46. package/build/utils/login.js.map +1 -1
  47. package/package.json +6 -4
@@ -0,0 +1,162 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-06/schema#",
3
+ "type": "object",
4
+ "description": "The schema of TeamsFx configuration.",
5
+ "properties": {
6
+ "$schema": {
7
+ "type": "string"
8
+ },
9
+ "description": {
10
+ "type": "string"
11
+ },
12
+ "auth": {
13
+ "type": "object",
14
+ "description": "Existing AAD app configuration.",
15
+ "properties": {
16
+ "clientId": {
17
+ "type": "string",
18
+ "description": "The client id of existing AAD app for Teams app.",
19
+ "minLength": 1
20
+ },
21
+ "clientSecret": {
22
+ "type": "string",
23
+ "description": "The client secret of existing AAD app for Teams app.",
24
+ "minLength": 1
25
+ },
26
+ "objectId": {
27
+ "type": "string",
28
+ "description": "The object id of existing AAD app for Teams app.",
29
+ "minLength": 1
30
+ },
31
+ "accessAsUserScopeId": {
32
+ "type": "string",
33
+ "description": "The access_as_user scope id of existing AAD app for Teams app.",
34
+ "minLength": 1
35
+ },
36
+ "frontendDomain": {
37
+ "type": "string",
38
+ "description": "The frontend domain for redirect URLs of existing AAD app for Teams app.",
39
+ "minLength": 1
40
+ },
41
+ "botId": {
42
+ "type": "string",
43
+ "description": "The bot id for identifier URIs of existing AAD app for Teams app.",
44
+ "minLength": 1
45
+ },
46
+ "botEndpoint": {
47
+ "type": "string",
48
+ "description": "The bot endpoint for redirect URLs of existing AAD app for Teams app.",
49
+ "minLength": 1
50
+ }
51
+ },
52
+ "dependencies": {
53
+ "clientId": ["clientSecret", "objectId"],
54
+ "clientSecret": ["clientId", "objectId"],
55
+ "objectId": ["clientId", "clientSecret"],
56
+ "accessAsUserScopeId": ["clientId", "clientSecret", "objectId"],
57
+ "botId": ["botEndpoint"],
58
+ "botEndpoint": ["botId"]
59
+ }
60
+ },
61
+ "azure": {
62
+ "type": "object",
63
+ "description": "The Azure resource related configuration.",
64
+ "properties": {
65
+ "subscriptionId": {
66
+ "type": "string",
67
+ "description": "The default subscription to provision Azure resources.",
68
+ "minLength": 1,
69
+ "pattern": "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"
70
+ },
71
+ "resourceGroupName": {
72
+ "type": "string",
73
+ "description": "The default resource group of Azure resources.",
74
+ "minLength": 1,
75
+ "pattern": "^[-\\w\\._\\(\\)]+$"
76
+ }
77
+ }
78
+ },
79
+ "bot": {
80
+ "type": "object",
81
+ "description": "Existing bot AAD app configuration.",
82
+ "properties": {
83
+ "appId": {
84
+ "type": "string",
85
+ "description": "The id of existing bot AAD app.",
86
+ "minLength": 1
87
+ },
88
+ "appPassword": {
89
+ "type": "string",
90
+ "description": "The password of existing bot AAD app.",
91
+ "minLength": 1
92
+ }
93
+ },
94
+ "dependencies": {
95
+ "appId": ["appPassword"],
96
+ "appPassword": ["appId"]
97
+ }
98
+ },
99
+ "manifest": {
100
+ "type": "object",
101
+ "description": "The Teams App manifest related configuration.",
102
+ "properties": {
103
+ "appName": {
104
+ "type": "object",
105
+ "description": "Teams app name.",
106
+ "properties": {
107
+ "short": {
108
+ "type": "string",
109
+ "description": "A short display name for teams app.",
110
+ "maxLength": 30,
111
+ "minLength": 1
112
+ },
113
+ "full": {
114
+ "type": "string",
115
+ "description": "The full name for teams app.",
116
+ "maxLength": 100
117
+ }
118
+ },
119
+ "required": ["short"]
120
+ },
121
+ "description": {
122
+ "type": "object",
123
+ "description": "Description for Teams app.",
124
+ "properties": {
125
+ "short": {
126
+ "type": "string",
127
+ "description": "A short description of the app used when space is limited. Maximum length is 80 characters.",
128
+ "maxLength": 80
129
+ },
130
+ "full": {
131
+ "type": "string",
132
+ "description": "The full description of the app. Maximum length is 4000 characters.",
133
+ "maxLength": 4000
134
+ }
135
+ }
136
+ },
137
+ "icons": {
138
+ "type": "object",
139
+ "description": "Icons for Teams App.",
140
+ "properties": {
141
+ "color": {
142
+ "type": "string",
143
+ "description": "A relative file path to a full color PNG icon. Size 192x192.",
144
+ "minLength": 1
145
+ },
146
+ "outline": {
147
+ "type": "string",
148
+ "description": "A relative file path to a transparent PNG outline icon. The border color needs to be white. Size 32x32.",
149
+ "minLength": 1
150
+ }
151
+ }
152
+ }
153
+ },
154
+ "required": ["appName"]
155
+ },
156
+ "skipAddingSqlUser": {
157
+ "type": "boolean",
158
+ "description": "Skip to add user during SQL provision."
159
+ }
160
+ },
161
+ "required": ["manifest"]
162
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./envConfig";
2
+ import * as EnvConfigSchema from "./envConfig.json";
3
+ export { EnvConfigSchema };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,eAAe,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT license.
3
+ "use strict";
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.EnvConfigSchema = void 0;
6
+ const tslib_1 = require("tslib");
7
+ tslib_1.__exportStar(require("./envConfig"), exports);
8
+ const EnvConfigSchema = tslib_1.__importStar(require("./envConfig.json"));
9
+ exports.EnvConfigSchema = EnvConfigSchema;
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;;AAEb,sDAA4B;AAC5B,0EAAoD;AAC3C,0CAAe"}
@@ -0,0 +1,162 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-06/schema#",
3
+ "type": "object",
4
+ "description": "The schema of TeamsFx configuration.",
5
+ "properties": {
6
+ "$schema": {
7
+ "type": "string"
8
+ },
9
+ "description": {
10
+ "type": "string"
11
+ },
12
+ "auth": {
13
+ "type": "object",
14
+ "description": "Existing AAD app configuration.",
15
+ "properties": {
16
+ "clientId": {
17
+ "type": "string",
18
+ "description": "The client id of existing AAD app for Teams app.",
19
+ "minLength": 1
20
+ },
21
+ "clientSecret": {
22
+ "type": "string",
23
+ "description": "The client secret of existing AAD app for Teams app.",
24
+ "minLength": 1
25
+ },
26
+ "objectId": {
27
+ "type": "string",
28
+ "description": "The object id of existing AAD app for Teams app.",
29
+ "minLength": 1
30
+ },
31
+ "accessAsUserScopeId": {
32
+ "type": "string",
33
+ "description": "The access_as_user scope id of existing AAD app for Teams app.",
34
+ "minLength": 1
35
+ },
36
+ "frontendDomain": {
37
+ "type": "string",
38
+ "description": "The frontend domain for redirect URLs of existing AAD app for Teams app.",
39
+ "minLength": 1
40
+ },
41
+ "botId": {
42
+ "type": "string",
43
+ "description": "The bot id for identifier URIs of existing AAD app for Teams app.",
44
+ "minLength": 1
45
+ },
46
+ "botEndpoint": {
47
+ "type": "string",
48
+ "description": "The bot endpoint for redirect URLs of existing AAD app for Teams app.",
49
+ "minLength": 1
50
+ }
51
+ },
52
+ "dependencies": {
53
+ "clientId": ["clientSecret", "objectId"],
54
+ "clientSecret": ["clientId", "objectId"],
55
+ "objectId": ["clientId", "clientSecret"],
56
+ "accessAsUserScopeId": ["clientId", "clientSecret", "objectId"],
57
+ "botId": ["botEndpoint"],
58
+ "botEndpoint": ["botId"]
59
+ }
60
+ },
61
+ "azure": {
62
+ "type": "object",
63
+ "description": "The Azure resource related configuration.",
64
+ "properties": {
65
+ "subscriptionId": {
66
+ "type": "string",
67
+ "description": "The default subscription to provision Azure resources.",
68
+ "minLength": 1,
69
+ "pattern": "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"
70
+ },
71
+ "resourceGroupName": {
72
+ "type": "string",
73
+ "description": "The default resource group of Azure resources.",
74
+ "minLength": 1,
75
+ "pattern": "^[-\\w\\._\\(\\)]+$"
76
+ }
77
+ }
78
+ },
79
+ "bot": {
80
+ "type": "object",
81
+ "description": "Existing bot AAD app configuration.",
82
+ "properties": {
83
+ "appId": {
84
+ "type": "string",
85
+ "description": "The id of existing bot AAD app.",
86
+ "minLength": 1
87
+ },
88
+ "appPassword": {
89
+ "type": "string",
90
+ "description": "The password of existing bot AAD app.",
91
+ "minLength": 1
92
+ }
93
+ },
94
+ "dependencies": {
95
+ "appId": ["appPassword"],
96
+ "appPassword": ["appId"]
97
+ }
98
+ },
99
+ "manifest": {
100
+ "type": "object",
101
+ "description": "The Teams App manifest related configuration.",
102
+ "properties": {
103
+ "appName": {
104
+ "type": "object",
105
+ "description": "Teams app name.",
106
+ "properties": {
107
+ "short": {
108
+ "type": "string",
109
+ "description": "A short display name for teams app.",
110
+ "maxLength": 30,
111
+ "minLength": 1
112
+ },
113
+ "full": {
114
+ "type": "string",
115
+ "description": "The full name for teams app.",
116
+ "maxLength": 100
117
+ }
118
+ },
119
+ "required": ["short"]
120
+ },
121
+ "description": {
122
+ "type": "object",
123
+ "description": "Description for Teams app.",
124
+ "properties": {
125
+ "short": {
126
+ "type": "string",
127
+ "description": "A short description of the app used when space is limited. Maximum length is 80 characters.",
128
+ "maxLength": 80
129
+ },
130
+ "full": {
131
+ "type": "string",
132
+ "description": "The full description of the app. Maximum length is 4000 characters.",
133
+ "maxLength": 4000
134
+ }
135
+ }
136
+ },
137
+ "icons": {
138
+ "type": "object",
139
+ "description": "Icons for Teams App.",
140
+ "properties": {
141
+ "color": {
142
+ "type": "string",
143
+ "description": "A relative file path to a full color PNG icon. Size 192x192.",
144
+ "minLength": 1
145
+ },
146
+ "outline": {
147
+ "type": "string",
148
+ "description": "A relative file path to a transparent PNG outline icon. The border color needs to be white. Size 32x32.",
149
+ "minLength": 1
150
+ }
151
+ }
152
+ }
153
+ },
154
+ "required": ["appName"]
155
+ },
156
+ "skipAddingSqlUser": {
157
+ "type": "boolean",
158
+ "description": "Skip to add user during SQL provision."
159
+ }
160
+ },
161
+ "required": ["manifest"]
162
+ }
package/build/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IBot, IComposeExtension, IConfigurableTab, IStaticTab, IWebApplicationInfo } from "@microsoft/teams-manifest";
2
- import { Platform, Stage, VsCodeEnv } from "./constants";
2
+ import { Platform } from "./constants";
3
3
  /**
4
4
  * Definition of option item in single selection or multiple selection
5
5
  */
@@ -25,7 +25,7 @@ export interface OptionItem {
25
25
  */
26
26
  data?: unknown;
27
27
  /**
28
- * CLI display name. CLI will use `cliName` as display name, and use `id` instead if `cliName` is undefined.
28
+ * @deprecated CLI display name. CLI will use `cliName` as display name, and use `id` instead if `cliName` is undefined.
29
29
  */
30
30
  cliName?: string;
31
31
  /**
@@ -56,24 +56,11 @@ export interface EnvMeta {
56
56
  sideloading: boolean;
57
57
  }
58
58
  export interface Inputs extends Record<string, any> {
59
- projectPath?: string;
60
- targetEnvName?: string;
61
- sourceEnvName?: string;
62
- targetResourceGroupName?: string;
63
- targetResourceLocationName?: string;
64
- targetSubscriptionId?: string;
65
59
  platform: Platform;
66
- stage?: Stage;
67
- vscodeEnv?: VsCodeEnv;
68
- ignoreConfigPersist?: boolean;
69
- ignoreEnvInfo?: boolean;
70
- env?: string;
60
+ projectPath?: string;
71
61
  projectId?: string;
72
- existingResources?: string[];
73
- locale?: string;
74
- isM365?: boolean;
75
- inProductDoc?: boolean;
76
- teamsAppFromTdp?: any;
62
+ nonInteractive?: boolean;
63
+ correlationId?: string;
77
64
  }
78
65
  export declare type InputsWithProjectPath = Inputs & {
79
66
  projectPath: string;
@@ -110,4 +97,40 @@ export declare type ManifestCapability = {
110
97
  snippet?: IWebApplicationInfo;
111
98
  existingApp?: boolean;
112
99
  };
100
+ export declare enum OpenAIManifestAuthType {
101
+ None = "none",
102
+ UserHttp = "user_http",
103
+ ServiceHttp = "service_http",
104
+ OAuth = "oauth"
105
+ }
106
+ export interface OpenAIPluginManifest {
107
+ schema_version: string;
108
+ name_for_human: string;
109
+ name_for_model: string;
110
+ description_for_human: string;
111
+ description_for_model: string;
112
+ auth: {
113
+ type: OpenAIManifestAuthType;
114
+ };
115
+ api: {
116
+ type: string;
117
+ url: string;
118
+ };
119
+ logo_url: string;
120
+ contact_email: string;
121
+ legal_info_url: string;
122
+ }
123
+ export interface ApiOperation {
124
+ id: string;
125
+ label: string;
126
+ groupName: string;
127
+ }
128
+ export interface Warning {
129
+ type: string;
130
+ content: string;
131
+ }
132
+ export interface CreateProjectResult {
133
+ projectPath: string;
134
+ warnings?: Warning[];
135
+ }
113
136
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,IAAI,EACJ,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACpE;AAGD,oBAAY,IAAI,GAAG,EAAE,CAAC;AACtB,eAAO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AE,OAAO,EAAE,CAAC;CACtB"}
package/build/types.js CHANGED
@@ -2,6 +2,13 @@
2
2
  // Licensed under the MIT license.
3
3
  "use strict";
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.Void = void 0;
5
+ exports.OpenAIManifestAuthType = exports.Void = void 0;
6
6
  exports.Void = {};
7
+ var OpenAIManifestAuthType;
8
+ (function (OpenAIManifestAuthType) {
9
+ OpenAIManifestAuthType["None"] = "none";
10
+ OpenAIManifestAuthType["UserHttp"] = "user_http";
11
+ OpenAIManifestAuthType["ServiceHttp"] = "service_http";
12
+ OpenAIManifestAuthType["OAuth"] = "oauth";
13
+ })(OpenAIManifestAuthType = exports.OpenAIManifestAuthType || (exports.OpenAIManifestAuthType = {}));
7
14
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAwDA,QAAA,IAAI,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAwDA,QAAA,IAAI,GAAG,EAAE,CAAC;AA8DvB,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAChC,uCAAa,CAAA;IACb,gDAAsB,CAAA;IACtB,sDAA4B,CAAA;IAC5B,yCAAe,CAAA;AACjB,CAAC,EALW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAKjC"}
@@ -1,74 +1,61 @@
1
1
  export declare enum LogLevel {
2
- /**
3
- * Contain the most detailed messages.
4
- */
5
- Trace = 0,
6
2
  /**
7
3
  * For debugging and development.
8
4
  */
9
5
  Debug = 1,
6
+ /**
7
+ * Contain the most detailed messages.
8
+ */
9
+ Verbose = 2,
10
10
  /**
11
11
  * Tracks the general flow of the app. May have long-term value.
12
12
  */
13
- Info = 2,
13
+ Info = 3,
14
14
  /**
15
15
  * For abnormal or unexpected events. Typically includes errors or conditions that don't cause the app to fail.
16
16
  */
17
- Warning = 3,
17
+ Warning = 4,
18
18
  /**
19
19
  * For errors and exceptions that cannot be handled. These messages indicate a failure in the current operation or request, not an app-wide failure.
20
20
  */
21
- Error = 4,
22
- /**
23
- * For failures that require immediate attention. Examples: data loss scenarios.
24
- */
25
- Fatal = 5
21
+ Error = 5
26
22
  }
27
23
  export interface LogProvider {
28
24
  /**
29
- * Use to record information
30
- * @param logLevel Defines logging severity levels.
31
- * @param message Information of log event
25
+ * log by level
32
26
  */
33
- log(logLevel: LogLevel, message: string): Promise<boolean>;
27
+ log(logLevel: LogLevel, message: string): void;
34
28
  /**
35
- * Use to record trace information
36
- * @param message Information of log event
29
+ * diagnostic information used by user
37
30
  */
38
- trace(message: string): Promise<boolean>;
31
+ verbose(message: string): void;
39
32
  /**
40
- * Use to record debug information
41
- * @param message Information of log event
33
+ * debug information used internally
42
34
  */
43
- debug(message: string): Promise<boolean>;
35
+ debug(message: string): void;
44
36
  /**
45
- * Use to record info information
46
- * @param message Information of log event
37
+ * normal output information
47
38
  */
48
- info(message: string, logToFile?: boolean): Promise<boolean>;
39
+ info(message: string): void;
49
40
  /**
50
- * Use to record info information
51
- * @param message Information of log event
41
+ * normal output information, colored version
52
42
  */
53
43
  info(message: Array<{
54
44
  content: string;
55
45
  color: Colors;
56
- }>, logToFile?: boolean): Promise<boolean>;
46
+ }>): void;
57
47
  /**
58
- * Use to record warning information
59
- * @param message Information of log event
48
+ * warning information
60
49
  */
61
- warning(message: string, logToFile?: boolean): Promise<boolean>;
50
+ warning(message: string): void;
62
51
  /**
63
- * Use to record error information
64
- * @param message Information of log event
52
+ * error information
65
53
  */
66
- error(message: string, logToFile?: boolean): Promise<boolean>;
54
+ error(message: string): void;
67
55
  /**
68
- * Use to record critical information
69
- * @param message Information of log event
56
+ * log content into file
70
57
  */
71
- fatal(message: string): Promise<boolean>;
58
+ logInFile(logLevel: LogLevel, message: string): Promise<void>;
72
59
  /**
73
60
  * Get log file path
74
61
  */
@@ -1 +1 @@
1
- {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/utils/log.ts"],"names":[],"mappings":"AAIA,oBAAY,QAAQ;IAClB;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,IAAI,IAAI;IACR;;OAEG;IACH,OAAO,IAAI;IACX;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,KAAK,IAAI;CACV;AAED,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE3D;;;OAGG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzC;;;OAGG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzC;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE7D;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhG;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhE;;;OAGG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9D;;;OAGG;IACH,KAAK,CA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,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D;;OAEG;IACH,cAAc,IAAI,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,oBAAY,MAAM;IAChB;;OAEG;IACH,YAAY,IAAI;IAChB;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,cAAc,IAAI;IAClB;;OAEG;IACH,YAAY,IAAI;IAChB;;OAEG;IACH,aAAa,IAAI;IACjB;;OAEG;IACH,UAAU,IAAI;IACd;;OAEG;IACH,WAAW,IAAI;CAChB"}
@@ -5,30 +5,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Colors = exports.LogLevel = void 0;
6
6
  var LogLevel;
7
7
  (function (LogLevel) {
8
- /**
9
- * Contain the most detailed messages.
10
- */
11
- LogLevel[LogLevel["Trace"] = 0] = "Trace";
12
8
  /**
13
9
  * For debugging and development.
14
10
  */
15
11
  LogLevel[LogLevel["Debug"] = 1] = "Debug";
12
+ /**
13
+ * Contain the most detailed messages.
14
+ */
15
+ LogLevel[LogLevel["Verbose"] = 2] = "Verbose";
16
16
  /**
17
17
  * Tracks the general flow of the app. May have long-term value.
18
18
  */
19
- LogLevel[LogLevel["Info"] = 2] = "Info";
19
+ LogLevel[LogLevel["Info"] = 3] = "Info";
20
20
  /**
21
21
  * For abnormal or unexpected events. Typically includes errors or conditions that don't cause the app to fail.
22
22
  */
23
- LogLevel[LogLevel["Warning"] = 3] = "Warning";
23
+ LogLevel[LogLevel["Warning"] = 4] = "Warning";
24
24
  /**
25
25
  * For errors and exceptions that cannot be handled. These messages indicate a failure in the current operation or request, not an app-wide failure.
26
26
  */
27
- LogLevel[LogLevel["Error"] = 4] = "Error";
28
- /**
29
- * For failures that require immediate attention. Examples: data loss scenarios.
30
- */
31
- LogLevel[LogLevel["Fatal"] = 5] = "Fatal";
27
+ LogLevel[LogLevel["Error"] = 5] = "Error";
32
28
  })(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
33
29
  /**
34
30
  * Colors for CLI output message
@@ -1 +1 @@
1
- {"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/utils/log.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,IAAY,QAyBX;AAzBD,WAAY,QAAQ;IAClB;;OAEG;IACH,yCAAS,CAAA;IACT;;OAEG;IACH,yCAAS,CAAA;IACT;;OAEG;IACH,uCAAQ,CAAA;IACR;;OAEG;IACH,6CAAW,CAAA;IACX;;OAEG;IACH,yCAAS,CAAA;IACT;;OAEG;IACH,yCAAS,CAAA;AACX,CAAC,EAzBW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAyBnB;AA0DD;;GAEG;AACH,IAAY,MA6BX;AA7BD,WAAY,MAAM;IAChB;;OAEG;IACH,mDAAgB,CAAA;IAChB;;OAEG;IACH,qCAAS,CAAA;IACT;;OAEG;IACH,uDAAkB,CAAA;IAClB;;OAEG;IACH,mDAAgB,CAAA;IAChB;;OAEG;IACH,qDAAiB,CAAA;IACjB;;OAEG;IACH,+CAAc,CAAA;IACd;;OAEG;IACH,iDAAe,CAAA;AACjB,CAAC,EA7BW,MAAM,GAAN,cAAM,KAAN,cAAM,QA6BjB"}
1
+ {"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/utils/log.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,IAAY,QAqBX;AArBD,WAAY,QAAQ;IAClB;;OAEG;IACH,yCAAS,CAAA;IACT;;OAEG;IACH,6CAAW,CAAA;IACX;;OAEG;IACH,uCAAQ,CAAA;IACR;;OAEG;IACH,6CAAW,CAAA;IACX;;OAEG;IACH,yCAAS,CAAA;AACX,CAAC,EArBW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAqBnB;AAgDD;;GAEG;AACH,IAAY,MA6BX;AA7BD,WAAY,MAAM;IAChB;;OAEG;IACH,m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O,GACtB,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACrC;;;OAGG;IACH,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;CACxE;AAED,oBAAY,aAAa,GAAG;IAC1B,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,CAAC;AAEF;;GAEG;AACH,8BAAsB,UAAU;IAC9B,eAAe,gBAAa;IAEtB,kBAAkB,CACtB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,CACZ,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAClC,OAAO,CAAC,IAAI,CAAC,EAClB,aAAa,UAAO,GACnB,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAepC,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAKtE,QAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAE/E,YAAY,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;CAY9D"}
@@ -16,14 +16,14 @@ class BasicLogin {
16
16
  if (immediateCall) {
17
17
  const loginStatusRes = await this.getStatus(tokenRequest);
18
18
  if (loginStatusRes.isOk()) {
19
- statusChange(loginStatusRes.value.status, loginStatusRes.value.token, loginStatusRes.value.accountInfo);
19
+ await statusChange(loginStatusRes.value.status, loginStatusRes.value.token, loginStatusRes.value.accountInfo);
20
20
  }
21
21
  }
22
22
  return neverthrow_1.ok(true);
23
23
  }
24
- async removeStatusChangeMap(name) {
24
+ removeStatusChangeMap(name) {
25
25
  this.statusChangeMap.delete(name);
26
- return neverthrow_1.ok(true);
26
+ return Promise.resolve(neverthrow_1.ok(true));
27
27
  }
28
28
  async notifyStatus(tokenRequest) {
29
29
  const loginStatusRes = await this.getStatus(tokenRequest);