@blocklet/constant 1.16.15-beta-04d1e821 → 1.16.15-beta-e3a24907
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/index.d.ts +206 -0
- package/package.json +4 -3
package/index.d.ts
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
type StringNumberObject = {
|
|
2
|
+
[key: string]: number;
|
|
3
|
+
};
|
|
4
|
+
export declare const BlockletStatus: StringNumberObject;
|
|
5
|
+
export declare const BLOCKLET_CONTROLLER_STATUS: {
|
|
6
|
+
normal: number;
|
|
7
|
+
suspended: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const SUSPENDED_REASON: {
|
|
10
|
+
expired: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const fromBlockletStatus: (v: number | string) => string;
|
|
13
|
+
export declare const toBlockletStatus: (v: number | string) => string;
|
|
14
|
+
export declare const BlockletSource: StringNumberObject;
|
|
15
|
+
export declare const fromBlockletSource: (v: number | string) => string;
|
|
16
|
+
export declare const toBlockletSource: (v: number | string) => string;
|
|
17
|
+
export declare const BlockletGroup: Readonly<{
|
|
18
|
+
static: "static";
|
|
19
|
+
dapp: "dapp";
|
|
20
|
+
starter: false;
|
|
21
|
+
gateway: "gateway";
|
|
22
|
+
}>;
|
|
23
|
+
export declare const BLOCKLET_GROUPS: string[];
|
|
24
|
+
export declare const BlockletEvents: Readonly<{
|
|
25
|
+
added: "blocklet.added";
|
|
26
|
+
downloadFailed: "blocklet.downloadFailed";
|
|
27
|
+
installed: "blocklet.installed";
|
|
28
|
+
installFailed: "blocklet.installFailed";
|
|
29
|
+
upgraded: "blocklet.upgraded";
|
|
30
|
+
removed: "blocklet.removed";
|
|
31
|
+
started: "blocklet.started";
|
|
32
|
+
startFailed: "blocklet.startFailed";
|
|
33
|
+
stopped: "blocklet.stopped";
|
|
34
|
+
reloaded: "blocklet.reloaded";
|
|
35
|
+
statusChange: "blocklet.statusChange";
|
|
36
|
+
dataCleaned: "blocklet.dataCleaned";
|
|
37
|
+
componentInstalled: "blocklet.componentInstalled";
|
|
38
|
+
componentInstallFailed: "blocklet.componentInstallFailed";
|
|
39
|
+
componentUpgraded: "blocklet.componentUpgraded";
|
|
40
|
+
componentUpgradeFailed: "blocklet.componentUpgradeFailed";
|
|
41
|
+
componentRemoved: "blocklet.componentRemoved";
|
|
42
|
+
backupProgress: "blocklet.backupProgress";
|
|
43
|
+
restoreProgress: "blocklet.restoreProgress";
|
|
44
|
+
downloadBundleProgress: "blocklet.downloadBundleProgress";
|
|
45
|
+
updated: "blocklet.updated";
|
|
46
|
+
domainStatus: "blocklet.domainStatus";
|
|
47
|
+
storeChange: "blocklet.storeChange";
|
|
48
|
+
appDidChanged: "blocklet.appDidChanged";
|
|
49
|
+
purchaseChange: "blocklet.purchaseChange";
|
|
50
|
+
certError: "blocklet.certError";
|
|
51
|
+
certIssued: "blocklet.certIssued";
|
|
52
|
+
spaceConnected: "blocklet.spaceConnected";
|
|
53
|
+
nftConsumed: "blocklet.nftConsumed";
|
|
54
|
+
}>;
|
|
55
|
+
export declare const BlockletInternalEvents: Readonly<{
|
|
56
|
+
componentsUpdated: "blocklet.componentsUpdated";
|
|
57
|
+
appConfigChanged: "blocklet.appConfigChanged";
|
|
58
|
+
appSettingChanged: "blocklet.appSettingChanged";
|
|
59
|
+
}>;
|
|
60
|
+
export declare const BLOCKLET_PLATFORMS: string[];
|
|
61
|
+
export declare const BLOCKLET_ARCHITECTURES: string[];
|
|
62
|
+
export declare const BLOCKLET_MODES: Readonly<{
|
|
63
|
+
PRODUCTION: "production";
|
|
64
|
+
DEVELOPMENT: "development";
|
|
65
|
+
}>;
|
|
66
|
+
export declare const BLOCKLET_FACTORY_SHARES: {
|
|
67
|
+
developer: number;
|
|
68
|
+
store: number;
|
|
69
|
+
};
|
|
70
|
+
export declare const BLOCKLET_INTERFACE_TYPE_WEB = "web";
|
|
71
|
+
export declare const BLOCKLET_INTERFACE_TYPE_SERVICE = "service";
|
|
72
|
+
export declare const BLOCKLET_INTERFACE_TYPE_WELLKNOWN = "wellknown";
|
|
73
|
+
export declare const BLOCKLET_INTERFACE_TYPES: string[];
|
|
74
|
+
export declare const BLOCKLET_INTERFACE_PUBLIC = "publicUrl";
|
|
75
|
+
export declare const BLOCKLET_INTERFACE_WELLKNOWN = "wellknownUrl";
|
|
76
|
+
export declare const BLOCKLET_UI_INTERFACES: string[];
|
|
77
|
+
export declare const BLOCKLET_STANDARD_INTERFACES: string[];
|
|
78
|
+
export declare const BLOCKLET_INTERFACE_PROTOCOL_HTTP = "http";
|
|
79
|
+
export declare const BLOCKLET_INTERFACE_PROTOCOL_TCP = "tcp";
|
|
80
|
+
export declare const BLOCKLET_INTERFACE_PROTOCOL_UDP = "udp";
|
|
81
|
+
export declare const BLOCKLET_INTERFACE_PROTOCOLS: string[];
|
|
82
|
+
export declare const BLOCKLET_DYNAMIC_PATH_PREFIX = "*";
|
|
83
|
+
export declare const BLOCKLET_DEFAULT_PORT_NAME = "BLOCKLET_PORT";
|
|
84
|
+
export declare const BLOCKLET_DEFAULT_PATH_REWRITE = "/";
|
|
85
|
+
export declare const BLOCKLET_RELEASE_FOLDER = ".blocklet/release";
|
|
86
|
+
export declare const BLOCKLET_RELEASE_FILE = "blocklet.json";
|
|
87
|
+
export declare const BLOCKLET_BUNDLE_FOLDER = ".blocklet/bundle";
|
|
88
|
+
export declare const BLOCKLET_BUNDLE_FILE = "blocklet.zip";
|
|
89
|
+
export declare const BLOCKLET_ENTRY_FILE = "blocklet.js";
|
|
90
|
+
export declare const BLOCKLET_META_FILE = "blocklet.yml";
|
|
91
|
+
export declare const BLOCKLET_META_FILE_ALT = "blocklet.yaml";
|
|
92
|
+
export declare const BLOCKLET_PREFERENCE_FILE = "blocklet.prefs.json";
|
|
93
|
+
export declare const BLOCKLET_PREFERENCE_PREFIX = "prefs.";
|
|
94
|
+
export declare const BLOCKLET_DEFAULT_VERSION = "1.0.0";
|
|
95
|
+
export declare const BLOCKLET_UPLOADS_DIR = "__uploads";
|
|
96
|
+
export declare const BLOCKLET_LATEST_SPEC_VERSION = "1.2.8";
|
|
97
|
+
export declare const BLOCKLET_LATEST_REQUIREMENT_SERVER = ">=1.7.0";
|
|
98
|
+
export declare const BLOCKLET_LATEST_REQUIREMENT_ABTNODE = ">=1.5.15";
|
|
99
|
+
export declare const BLOCKLET_CONFIGURABLE_KEY: {
|
|
100
|
+
BLOCKLET_CLUSTER_SIZE: string;
|
|
101
|
+
BLOCKLET_APP_NAME: string;
|
|
102
|
+
BLOCKLET_APP_DESCRIPTION: string;
|
|
103
|
+
BLOCKLET_APP_SK: string;
|
|
104
|
+
BLOCKLET_APP_LOGO: string;
|
|
105
|
+
BLOCKLET_APP_LOGO_SQUARE: string;
|
|
106
|
+
BLOCKLET_APP_LOGO_RECT: string;
|
|
107
|
+
BLOCKLET_APP_LOGO_FAVICON: string;
|
|
108
|
+
BLOCKLET_APP_URL: string;
|
|
109
|
+
BLOCKLET_APP_LANGUAGES: string;
|
|
110
|
+
BLOCKLET_PASSPORT_COLOR: string;
|
|
111
|
+
BLOCKLET_WALLET_TYPE: string;
|
|
112
|
+
BLOCKLET_DELETABLE: string;
|
|
113
|
+
BLOCKLET_APP_SPACE_ENDPOINT: string;
|
|
114
|
+
BLOCKLET_APP_SPACES_URL: string;
|
|
115
|
+
BLOCKLET_APP_BACKUP_ENDPOINT: string;
|
|
116
|
+
BLOCKLET_APP_CHAIN_HOST: string;
|
|
117
|
+
BLOCKLET_APP_CHAIN_TYPE: string;
|
|
118
|
+
BLOCKLET_APP_CHAIN_ID: string;
|
|
119
|
+
COMPONENT_ACCESS_WHO: string;
|
|
120
|
+
};
|
|
121
|
+
export declare const BLOCKLET_APP_SPACE_ENDPOINTS: {
|
|
122
|
+
REQUIRED: string;
|
|
123
|
+
OPTIONAL: string;
|
|
124
|
+
};
|
|
125
|
+
export declare const CHAIN_INFO_CONFIG: {
|
|
126
|
+
CHAIN_TYPE: string[];
|
|
127
|
+
CHAIN_ID: string[];
|
|
128
|
+
CHAIN_HOST: string[];
|
|
129
|
+
};
|
|
130
|
+
export declare const RESTORE_PROGRESS_STATUS: {
|
|
131
|
+
waiting: number;
|
|
132
|
+
start: number;
|
|
133
|
+
importData: number;
|
|
134
|
+
downloading: number;
|
|
135
|
+
importDataSuccess: number;
|
|
136
|
+
installing: number;
|
|
137
|
+
completed: number;
|
|
138
|
+
error: number;
|
|
139
|
+
};
|
|
140
|
+
export declare const CHAIN_PROP_MAP: {
|
|
141
|
+
BLOCKLET_APP_CHAIN_HOST: string;
|
|
142
|
+
BLOCKLET_APP_CHAIN_ID: string;
|
|
143
|
+
BLOCKLET_APP_CHAIN_TYPE: string;
|
|
144
|
+
};
|
|
145
|
+
export declare const CHAIN_PROP_MAP_REVERSE: {};
|
|
146
|
+
export declare const SUPPORTED_LANGUAGES: {
|
|
147
|
+
en: {
|
|
148
|
+
name: string;
|
|
149
|
+
nativeName: string;
|
|
150
|
+
};
|
|
151
|
+
es: {
|
|
152
|
+
name: string;
|
|
153
|
+
nativeName: string;
|
|
154
|
+
};
|
|
155
|
+
fr: {
|
|
156
|
+
name: string;
|
|
157
|
+
nativeName: string;
|
|
158
|
+
};
|
|
159
|
+
it: {
|
|
160
|
+
name: string;
|
|
161
|
+
nativeName: string;
|
|
162
|
+
};
|
|
163
|
+
zh: {
|
|
164
|
+
name: string;
|
|
165
|
+
nativeName: string;
|
|
166
|
+
};
|
|
167
|
+
'zh-TW': {
|
|
168
|
+
name: string;
|
|
169
|
+
nativeName: string;
|
|
170
|
+
};
|
|
171
|
+
ja: {
|
|
172
|
+
name: string;
|
|
173
|
+
nativeName: string;
|
|
174
|
+
};
|
|
175
|
+
ko: {
|
|
176
|
+
name: string;
|
|
177
|
+
nativeName: string;
|
|
178
|
+
};
|
|
179
|
+
pt: {
|
|
180
|
+
name: string;
|
|
181
|
+
nativeName: string;
|
|
182
|
+
};
|
|
183
|
+
ru: {
|
|
184
|
+
name: string;
|
|
185
|
+
nativeName: string;
|
|
186
|
+
};
|
|
187
|
+
ar: {
|
|
188
|
+
name: string;
|
|
189
|
+
nativeName: string;
|
|
190
|
+
};
|
|
191
|
+
de: {
|
|
192
|
+
name: string;
|
|
193
|
+
nativeName: string;
|
|
194
|
+
};
|
|
195
|
+
mn: {
|
|
196
|
+
name: string;
|
|
197
|
+
nativeName: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
export declare const LOGIN_PROVIDER: {
|
|
201
|
+
AUTH0: string;
|
|
202
|
+
WALLET: string;
|
|
203
|
+
FEDERATED: string;
|
|
204
|
+
NFT: string;
|
|
205
|
+
};
|
|
206
|
+
export {};
|
package/package.json
CHANGED
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.15-beta-
|
|
6
|
+
"version": "1.16.15-beta-e3a24907",
|
|
7
7
|
"description": "Blocklet constants",
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"files": [
|
|
10
|
-
"index.js"
|
|
10
|
+
"index.js",
|
|
11
|
+
"index.d.ts"
|
|
11
12
|
],
|
|
12
13
|
"scripts": {
|
|
13
14
|
"lint": "eslint tests index.ts",
|
|
@@ -31,5 +32,5 @@
|
|
|
31
32
|
"ts-jest": "^27.1.5",
|
|
32
33
|
"typescript": "^5.0.4"
|
|
33
34
|
},
|
|
34
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "b87c810902571b8cdb8f12ef497286b1549888e9"
|
|
35
36
|
}
|