@telia-ace/alliance-utilities 1.0.2 → 1.0.3-next.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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +914 -843
- package/dist/index.js.map +1 -1
- package/dist/texts.d.ts +8 -0
- package/dist/translations.d.ts +57 -0
- package/package.json +1 -1
- package/typescript-config.json +0 -1
package/dist/texts.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Translations, TranslationsKey } from './translations';
|
|
2
|
+
export type TextArgs = (string | number)[];
|
|
3
|
+
export declare class Texts {
|
|
4
|
+
protected static getTranslations: () => Translations;
|
|
5
|
+
protected static getTranslation: (key: TranslationsKey, ...args: TextArgs) => string;
|
|
6
|
+
static get: (key?: TranslationsKey, ...args: TextArgs) => string;
|
|
7
|
+
}
|
|
8
|
+
export default Texts;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export type Translations = {
|
|
2
|
+
[key in TranslationsKey]: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const enum TranslationsKey {
|
|
5
|
+
Yes = 0,
|
|
6
|
+
No = 1,
|
|
7
|
+
Done = 2,
|
|
8
|
+
NoWorkspaceName = 3,
|
|
9
|
+
NoAppName = 4,
|
|
10
|
+
AlreadyExists = 5,
|
|
11
|
+
CwdIsNotWorkspace = 6,
|
|
12
|
+
NoAppOrWorkspaceInCurrentDirectory = 7,
|
|
13
|
+
UnrecognizedCommand = 8,
|
|
14
|
+
WorkspaceCreated = 9,
|
|
15
|
+
AppCreated = 10,
|
|
16
|
+
ServedStopped = 11,
|
|
17
|
+
WorkspaceNameInquiry = 12,
|
|
18
|
+
AppNameInquiry = 13,
|
|
19
|
+
GatewayInquiry = 14,
|
|
20
|
+
CliVersionOption = 15,
|
|
21
|
+
CreateWorkspaceDescription = 16,
|
|
22
|
+
CreateAppDescription = 17,
|
|
23
|
+
ServeDescription = 18,
|
|
24
|
+
BuildDescription = 19,
|
|
25
|
+
MissingTranslationKey = 20,
|
|
26
|
+
ActionErrorOccured = 21,
|
|
27
|
+
OperationStateSetError = 22,
|
|
28
|
+
OperationCancelled = 23,
|
|
29
|
+
StopServerInstructions = 24,
|
|
30
|
+
LanguageInquiry = 25,
|
|
31
|
+
TemplateInquiry = 26,
|
|
32
|
+
NonSupportedBuildPlugin = 27,
|
|
33
|
+
DevServerPortDescription = 28,
|
|
34
|
+
ApiGatewayPortDescription = 29,
|
|
35
|
+
ApiServerModeDescription = 30,
|
|
36
|
+
DevServerOpenDescription = 31,
|
|
37
|
+
BuildWatchDescription = 32,
|
|
38
|
+
CouldNotStartGatewayInDocker = 33,
|
|
39
|
+
PullingLatestImage = 34,
|
|
40
|
+
PullLatestImageError = 35,
|
|
41
|
+
AppEntryBuildOptionDescription = 36,
|
|
42
|
+
ManifestEntryBuildOptionDescription = 37,
|
|
43
|
+
BuildPluginOptionDescription = 38,
|
|
44
|
+
BuildModeOptionDescription = 39,
|
|
45
|
+
FetchPackageVersionError = 40,
|
|
46
|
+
UnknownArgumentDescription = 41,
|
|
47
|
+
DockerNotStartedOrInstalled = 42,
|
|
48
|
+
PressAnyKeyToContinue = 43,
|
|
49
|
+
EnableDevAuthentication = 44,
|
|
50
|
+
UnsupportedBuildPlugin = 45,
|
|
51
|
+
NoAppNameFound = 46,
|
|
52
|
+
AppConfigurationPath = 47,
|
|
53
|
+
ServerGatewayMode = 48,
|
|
54
|
+
ServerProxyMode = 49,
|
|
55
|
+
ServerMode = 50
|
|
56
|
+
}
|
|
57
|
+
export declare const en: Translations;
|
package/package.json
CHANGED