@telia-ace/alliance-internal-node-utilities 1.0.6 → 1.1.0-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/dist/chunk-26VIM55J.js +23 -0
- package/dist/chunk-JG7V63GM.js +1 -0
- package/dist/chunk-RKK7CWA6.js +32 -0
- package/dist/compile-distribution.d.ts +1 -0
- package/dist/compile-distribution.js +301 -0
- package/dist/index.d.ts +16 -4
- package/dist/index.js +4 -737
- package/dist/main-FN5JZTIU.js +9 -0
- package/dist/prompt-YMONYGAG.js +45 -0
- package/package.json +12 -9
- package/CHANGELOG.md +0 -158
- package/dist/index.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { AppManifest } from '@telia-ace/alliance-framework/manifest';
|
|
3
|
+
import { StorageValue, Storage } from 'unstorage';
|
|
2
4
|
import { RequestHandler, ErrorRequestHandler } from 'express';
|
|
3
5
|
|
|
4
6
|
type BearerTokenSettings = {
|
|
@@ -139,7 +141,14 @@ declare enum AllianceHeaders {
|
|
|
139
141
|
TargetWorkspace = "alliance-target-workspace"
|
|
140
142
|
}
|
|
141
143
|
|
|
142
|
-
declare function
|
|
144
|
+
declare function createIndexHtml(apps: AppImportInfo[]): string;
|
|
145
|
+
type AppImportInfo = {
|
|
146
|
+
packageName: string;
|
|
147
|
+
appImportPath: string;
|
|
148
|
+
manifestImportPath: string;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
declare function getAppManifests(apps: string[]): Promise<AppManifest[]>;
|
|
143
152
|
|
|
144
153
|
declare function slugify(value: string, replacement?: string): string;
|
|
145
154
|
|
|
@@ -169,12 +178,15 @@ declare function createLogger(config: PartialConfig): {
|
|
|
169
178
|
};
|
|
170
179
|
declare function requestLoggerHandler(logger: Logger): RequestHandler;
|
|
171
180
|
|
|
181
|
+
declare function createFileStorage<T extends StorageValue = StorageValue>({ prefix, logger, }: {
|
|
182
|
+
prefix: string;
|
|
183
|
+
logger: Logger;
|
|
184
|
+
}): Storage<T>;
|
|
185
|
+
|
|
172
186
|
declare enum GatewayErrorCode {
|
|
173
187
|
NoObjectId = 10001,
|
|
174
188
|
NoTargetAppHeader = 10002,
|
|
175
189
|
NoTargetWorkspaceHeader = 10003,
|
|
176
|
-
NoManifestsInCache = 10004,
|
|
177
|
-
NoDevSessionInCache = 10005,
|
|
178
190
|
NoManifest = 10006,
|
|
179
191
|
NoRequestContext = 10007,
|
|
180
192
|
NoUserInRequestContext = 10008,
|
|
@@ -204,4 +216,4 @@ declare class AllianceError extends Error {
|
|
|
204
216
|
}
|
|
205
217
|
declare function requestErrorHandler(logger: Logger): ErrorRequestHandler;
|
|
206
218
|
|
|
207
|
-
export { AllianceError, AllianceHeaders, BearerTokenContent, DataErrorCode, GatewayErrorCode, Logger, PublicKeys, createBearerToken,
|
|
219
|
+
export { AllianceError, AllianceHeaders, type AppImportInfo, type BearerTokenContent, DataErrorCode, GatewayErrorCode, type Logger, type PublicKeys, createBearerToken, createFileStorage, createIndexHtml, createLogger, createPublicKeys, createSystemUserToken, getAppManifests, getCleanPublicKey, getPrivateKey, requestErrorHandler, requestLoggerHandler, slugify, zBooleanEnum, zNonEmptyString, zSharedConfig };
|