@equinor/fusion-framework-cli 10.0.0-next-536392d2277f82421eaeb407d8839c716cb83be0 → 10.0.0-next-e2f0f5f45ddcf734f0d1c8a7ea2fb5e761f7b8f0
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 +8 -2
- package/bin/cli.mjs +1 -1
- package/dist/bin/main.mjs +2003 -0
- package/dist/bin/public/assets/{index-CwGBhRCD.js → index-Cb85_fOB.js} +294 -294
- package/dist/bin/public/index.html +1 -1
- package/dist/lib/app-config.js +4 -18
- package/dist/lib/app-config.js.map +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/plugins/app-proxy/app-proxy-plugin.js.map +1 -1
- package/dist/types/app-config.d.ts +26 -0
- package/dist/types/{lib/index.d.ts → index.d.ts} +1 -1
- package/dist/types/{lib/plugins → plugins}/app-proxy/app-proxy-plugin.d.ts +3 -2
- package/package.json +17 -13
- package/dist/bin/build-application.js +0 -65
- package/dist/bin/build-application.js.map +0 -1
- package/dist/bin/bundle-application.js +0 -56
- package/dist/bin/bundle-application.js.map +0 -1
- package/dist/bin/create-dev-serve.js +0 -123
- package/dist/bin/create-dev-serve.js.map +0 -1
- package/dist/bin/create-export-config.js +0 -115
- package/dist/bin/create-export-config.js.map +0 -1
- package/dist/bin/create-export-manifest.js +0 -77
- package/dist/bin/create-export-manifest.js.map +0 -1
- package/dist/bin/dev-portal/AppLoader.js +0 -77
- package/dist/bin/dev-portal/AppLoader.js.map +0 -1
- package/dist/bin/dev-portal/BookMarkSideSheet.js +0 -15
- package/dist/bin/dev-portal/BookMarkSideSheet.js.map +0 -1
- package/dist/bin/dev-portal/ContextSelector/ContextSelector.js +0 -41
- package/dist/bin/dev-portal/ContextSelector/ContextSelector.js.map +0 -1
- package/dist/bin/dev-portal/ContextSelector/index.js +0 -2
- package/dist/bin/dev-portal/ContextSelector/index.js.map +0 -1
- package/dist/bin/dev-portal/ContextSelector/useContextResolver.js +0 -171
- package/dist/bin/dev-portal/ContextSelector/useContextResolver.js.map +0 -1
- package/dist/bin/dev-portal/EquinorLoader.js +0 -14
- package/dist/bin/dev-portal/EquinorLoader.js.map +0 -1
- package/dist/bin/dev-portal/ErrorViewer.js +0 -7
- package/dist/bin/dev-portal/ErrorViewer.js.map +0 -1
- package/dist/bin/dev-portal/FusionLogo.js +0 -4
- package/dist/bin/dev-portal/FusionLogo.js.map +0 -1
- package/dist/bin/dev-portal/Header.js +0 -37
- package/dist/bin/dev-portal/Header.js.map +0 -1
- package/dist/bin/dev-portal/PersonSideSheet/index.js +0 -32
- package/dist/bin/dev-portal/PersonSideSheet/index.js.map +0 -1
- package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.js +0 -16
- package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.js.map +0 -1
- package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.js +0 -16
- package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.js.map +0 -1
- package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.js +0 -16
- package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.js.map +0 -1
- package/dist/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.js +0 -19
- package/dist/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.js.map +0 -1
- package/dist/bin/dev-portal/PersonSideSheet/sheets/Styled.js +0 -30
- package/dist/bin/dev-portal/PersonSideSheet/sheets/Styled.js.map +0 -1
- package/dist/bin/dev-portal/PersonSideSheet/sheets/index.js +0 -3
- package/dist/bin/dev-portal/PersonSideSheet/sheets/index.js.map +0 -1
- package/dist/bin/dev-portal/PersonSideSheet/sheets/types.js +0 -2
- package/dist/bin/dev-portal/PersonSideSheet/sheets/types.js.map +0 -1
- package/dist/bin/dev-portal/Router.js +0 -59
- package/dist/bin/dev-portal/Router.js.map +0 -1
- package/dist/bin/dev-portal/config.js +0 -69
- package/dist/bin/dev-portal/config.js.map +0 -1
- package/dist/bin/dev-portal/main.js +0 -13
- package/dist/bin/dev-portal/main.js.map +0 -1
- package/dist/bin/dev-portal/resources/fallback-photo.svg.js +0 -3
- package/dist/bin/dev-portal/resources/fallback-photo.svg.js.map +0 -1
- package/dist/bin/dev-portal/useAppContextNavigation.js +0 -68
- package/dist/bin/dev-portal/useAppContextNavigation.js.map +0 -1
- package/dist/bin/main.app.js +0 -138
- package/dist/bin/main.app.js.map +0 -1
- package/dist/bin/main.js +0 -20
- package/dist/bin/main.js.map +0 -1
- package/dist/bin/publish-application.js +0 -104
- package/dist/bin/publish-application.js.map +0 -1
- package/dist/bin/tag-application.js +0 -82
- package/dist/bin/tag-application.js.map +0 -1
- package/dist/bin/upload-application.js +0 -72
- package/dist/bin/upload-application.js.map +0 -1
- package/dist/bin/utils/execute-command.js +0 -23
- package/dist/bin/utils/execute-command.js.map +0 -1
- package/dist/bin/utils/format.js +0 -17
- package/dist/bin/utils/format.js.map +0 -1
- package/dist/bin/utils/getEndpointUrl.js +0 -49
- package/dist/bin/utils/getEndpointUrl.js.map +0 -1
- package/dist/bin/utils/index.js +0 -14
- package/dist/bin/utils/index.js.map +0 -1
- package/dist/bin/utils/isAppRegistered.js +0 -32
- package/dist/bin/utils/isAppRegistered.js.map +0 -1
- package/dist/bin/utils/load-app-config.js +0 -35
- package/dist/bin/utils/load-app-config.js.map +0 -1
- package/dist/bin/utils/load-manifest.js +0 -40
- package/dist/bin/utils/load-manifest.js.map +0 -1
- package/dist/bin/utils/load-package.js +0 -24
- package/dist/bin/utils/load-package.js.map +0 -1
- package/dist/bin/utils/load-vite-config.js +0 -54
- package/dist/bin/utils/load-vite-config.js.map +0 -1
- package/dist/bin/utils/proxy-request-logger.js +0 -34
- package/dist/bin/utils/proxy-request-logger.js.map +0 -1
- package/dist/bin/utils/publishAppConfig.js +0 -36
- package/dist/bin/utils/publishAppConfig.js.map +0 -1
- package/dist/bin/utils/requireToken.js +0 -10
- package/dist/bin/utils/requireToken.js.map +0 -1
- package/dist/bin/utils/spinner.js +0 -77
- package/dist/bin/utils/spinner.js.map +0 -1
- package/dist/bin/utils/tagAppBundle.js +0 -35
- package/dist/bin/utils/tagAppBundle.js.map +0 -1
- package/dist/bin/utils/uploadAppBundle.js +0 -54
- package/dist/bin/utils/uploadAppBundle.js.map +0 -1
- package/dist/types/bin/build-application.d.ts +0 -13
- package/dist/types/bin/bundle-application.d.ts +0 -4
- package/dist/types/bin/create-dev-serve.d.ts +0 -11
- package/dist/types/bin/create-export-config.d.ts +0 -11
- package/dist/types/bin/create-export-manifest.d.ts +0 -16
- package/dist/types/bin/dev-portal/AppLoader.d.ts +0 -11
- package/dist/types/bin/dev-portal/BookMarkSideSheet.d.ts +0 -6
- package/dist/types/bin/dev-portal/ContextSelector/ContextSelector.d.ts +0 -8
- package/dist/types/bin/dev-portal/ContextSelector/index.d.ts +0 -1
- package/dist/types/bin/dev-portal/ContextSelector/useContextResolver.d.ts +0 -15
- package/dist/types/bin/dev-portal/EquinorLoader.d.ts +0 -5
- package/dist/types/bin/dev-portal/ErrorViewer.d.ts +0 -4
- package/dist/types/bin/dev-portal/FusionLogo.d.ts +0 -5
- package/dist/types/bin/dev-portal/Header.d.ts +0 -3
- package/dist/types/bin/dev-portal/PersonSideSheet/index.d.ts +0 -11
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.d.ts +0 -6
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.d.ts +0 -5
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.d.ts +0 -5
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.d.ts +0 -5
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/Styled.d.ts +0 -6
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/index.d.ts +0 -2
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/types.d.ts +0 -5
- package/dist/types/bin/dev-portal/Router.d.ts +0 -1
- package/dist/types/bin/dev-portal/config.d.ts +0 -3
- package/dist/types/bin/dev-portal/main.d.ts +0 -1
- package/dist/types/bin/dev-portal/resources/fallback-photo.svg.d.ts +0 -2
- package/dist/types/bin/dev-portal/useAppContextNavigation.d.ts +0 -5
- package/dist/types/bin/main.app.d.ts +0 -3
- package/dist/types/bin/main.d.ts +0 -1
- package/dist/types/bin/publish-application.d.ts +0 -6
- package/dist/types/bin/tag-application.d.ts +0 -12
- package/dist/types/bin/upload-application.d.ts +0 -6
- package/dist/types/bin/utils/execute-command.d.ts +0 -8
- package/dist/types/bin/utils/format.d.ts +0 -8
- package/dist/types/bin/utils/getEndpointUrl.d.ts +0 -10
- package/dist/types/bin/utils/index.d.ts +0 -14
- package/dist/types/bin/utils/isAppRegistered.d.ts +0 -5
- package/dist/types/bin/utils/load-app-config.d.ts +0 -9
- package/dist/types/bin/utils/load-manifest.d.ts +0 -10
- package/dist/types/bin/utils/load-package.d.ts +0 -5
- package/dist/types/bin/utils/load-vite-config.d.ts +0 -10
- package/dist/types/bin/utils/proxy-request-logger.d.ts +0 -15
- package/dist/types/bin/utils/publishAppConfig.d.ts +0 -9
- package/dist/types/bin/utils/requireToken.d.ts +0 -4
- package/dist/types/bin/utils/spinner.d.ts +0 -20
- package/dist/types/bin/utils/tagAppBundle.d.ts +0 -7
- package/dist/types/bin/utils/uploadAppBundle.d.ts +0 -7
- package/dist/types/lib/app-config.d.ts +0 -24
- package/dist/types/version.d.ts +0 -1
- package/dist/version.js +0 -3
- package/dist/version.js.map +0 -1
- /package/dist/types/{lib/app-manifest.d.ts → app-manifest.d.ts} +0 -0
- /package/dist/types/{lib/app-package.d.ts → app-package.d.ts} +0 -0
- /package/dist/types/{lib/plugins → plugins}/app-assets/app-asset-plugin.d.ts +0 -0
- /package/dist/types/{lib/plugins → plugins}/app-assets/emit-asset.d.ts +0 -0
- /package/dist/types/{lib/plugins → plugins}/app-assets/extension-filter-pattern.d.ts +0 -0
- /package/dist/types/{lib/plugins → plugins}/app-assets/index.d.ts +0 -0
- /package/dist/types/{lib/plugins → plugins}/app-assets/read-asset-content.d.ts +0 -0
- /package/dist/types/{lib/plugins → plugins}/app-assets/resolve-asset-id.d.ts +0 -0
- /package/dist/types/{lib/plugins → plugins}/app-assets/static.d.ts +0 -0
- /package/dist/types/{lib/plugins → plugins}/app-proxy/index.d.ts +0 -0
- /package/dist/types/{lib/plugins → plugins}/external-public/external-public-plugin.d.ts +0 -0
- /package/dist/types/{lib/plugins → plugins}/external-public/index.d.ts +0 -0
- /package/dist/types/{lib/utils → utils}/assert.d.ts +0 -0
- /package/dist/types/{lib/utils → utils}/config.d.ts +0 -0
- /package/dist/types/{lib/utils → utils}/expect.d.ts +0 -0
- /package/dist/types/{lib/utils → utils}/file-exists.d.ts +0 -0
- /package/dist/types/{lib/utils → utils}/ts-transpile.d.ts +0 -0
- /package/dist/types/{lib/utils → utils}/types.d.ts +0 -0
- /package/dist/types/{lib/vite-config.d.ts → vite-config.d.ts} +0 -0
- /package/dist/types/{lib/vite-logger.d.ts → vite-logger.d.ts} +0 -0
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
7
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
9
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
10
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11
|
-
};
|
|
12
|
-
var _Spinner_ora;
|
|
13
|
-
import ora from 'ora';
|
|
14
|
-
const parseArgs = (args) => args.length ? args.join(' ') : undefined;
|
|
15
|
-
const originalConsole = console;
|
|
16
|
-
export class Spinner {
|
|
17
|
-
get ora() {
|
|
18
|
-
return __classPrivateFieldGet(this, _Spinner_ora, "f");
|
|
19
|
-
}
|
|
20
|
-
set attachConsole(value) {
|
|
21
|
-
if (value) {
|
|
22
|
-
console.log = this.info.bind(this);
|
|
23
|
-
console.info = this.info.bind(this);
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
console = originalConsole;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
static Global(options) {
|
|
30
|
-
_spinner = new Spinner(options);
|
|
31
|
-
return _spinner;
|
|
32
|
-
}
|
|
33
|
-
static Clone(spinner) {
|
|
34
|
-
const { prefixText } = spinner || _spinner;
|
|
35
|
-
return new Spinner({ prefixText });
|
|
36
|
-
}
|
|
37
|
-
static get Current() {
|
|
38
|
-
return _spinner;
|
|
39
|
-
}
|
|
40
|
-
static set Current(spinner) {
|
|
41
|
-
_spinner = spinner;
|
|
42
|
-
}
|
|
43
|
-
constructor(options) {
|
|
44
|
-
_Spinner_ora.set(this, void 0);
|
|
45
|
-
__classPrivateFieldSet(this, _Spinner_ora, ora(options), "f");
|
|
46
|
-
}
|
|
47
|
-
get prefixText() {
|
|
48
|
-
return __classPrivateFieldGet(this, _Spinner_ora, "f").prefixText;
|
|
49
|
-
}
|
|
50
|
-
info(...args) {
|
|
51
|
-
__classPrivateFieldGet(this, _Spinner_ora, "f").info(parseArgs(args));
|
|
52
|
-
}
|
|
53
|
-
succeed(...args) {
|
|
54
|
-
__classPrivateFieldGet(this, _Spinner_ora, "f").succeed(parseArgs(args));
|
|
55
|
-
}
|
|
56
|
-
start(...args) {
|
|
57
|
-
__classPrivateFieldGet(this, _Spinner_ora, "f").start(parseArgs(args));
|
|
58
|
-
}
|
|
59
|
-
fail(...args) {
|
|
60
|
-
__classPrivateFieldGet(this, _Spinner_ora, "f").fail(parseArgs(args));
|
|
61
|
-
}
|
|
62
|
-
warn(...args) {
|
|
63
|
-
__classPrivateFieldGet(this, _Spinner_ora, "f").warn(parseArgs(args));
|
|
64
|
-
}
|
|
65
|
-
clear() {
|
|
66
|
-
__classPrivateFieldGet(this, _Spinner_ora, "f").clear();
|
|
67
|
-
}
|
|
68
|
-
stop() {
|
|
69
|
-
__classPrivateFieldGet(this, _Spinner_ora, "f").stop();
|
|
70
|
-
}
|
|
71
|
-
stopAndPersist(...args) {
|
|
72
|
-
__classPrivateFieldGet(this, _Spinner_ora, "f").stopAndPersist(...args);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
_Spinner_ora = new WeakMap();
|
|
76
|
-
let _spinner = new Spinner();
|
|
77
|
-
//# sourceMappingURL=spinner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.js","sourceRoot":"","sources":["../../../src/bin/utils/spinner.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,GAA0B,MAAM,KAAK,CAAC;AAE7C,MAAM,SAAS,GAAG,CAAC,IAAc,EAAsB,EAAE,CACrD,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAE7C,MAAM,eAAe,GAAG,OAAO,CAAC;AAEhC,MAAM,OAAO,OAAO;IAGhB,IAAI,GAAG;QACH,OAAO,uBAAA,IAAI,oBAAK,CAAC;IACrB,CAAC;IAED,IAAI,aAAa,CAAC,KAAc;QAC5B,IAAI,KAAK,EAAE,CAAC;YACR,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACnC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACJ,OAAO,GAAG,eAAe,CAAC;QAC9B,CAAC;IACL,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,OAAiB;QAC3B,QAAQ,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;QAChC,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,OAAiB;QAC1B,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,IAAI,QAAQ,CAAC;QAC3C,OAAO,IAAI,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,KAAK,OAAO;QACd,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,MAAM,KAAK,OAAO,CAAC,OAAgB;QAC/B,QAAQ,GAAG,OAAO,CAAC;IACvB,CAAC;IAED,YAAY,OAAiB;QAjC7B,+BAAU;QAkCN,uBAAA,IAAI,gBAAQ,GAAG,CAAC,OAAO,CAAC,MAAA,CAAC;IAC7B,CAAC;IAED,IAAI,UAAU;QACV,OAAO,uBAAA,IAAI,oBAAK,CAAC,UAAU,CAAC;IAChC,CAAC;IACD,IAAI,CAAC,GAAG,IAAc;QAClB,uBAAA,IAAI,oBAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,CAAC,GAAG,IAAc;QACrB,uBAAA,IAAI,oBAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,CAAC;IACD,KAAK,CAAC,GAAG,IAAc;QACnB,uBAAA,IAAI,oBAAK,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACrC,CAAC;IACD,IAAI,CAAC,GAAG,IAAc;QAClB,uBAAA,IAAI,oBAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACpC,CAAC;IACD,IAAI,CAAC,GAAG,IAAc;QAClB,uBAAA,IAAI,oBAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACpC,CAAC;IACD,KAAK;QACD,uBAAA,IAAI,oBAAK,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;IACD,IAAI;QACA,uBAAA,IAAI,oBAAK,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC;IACD,cAAc,CAAC,GAAG,IAAuC;QACrD,uBAAA,IAAI,oBAAK,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC;IACtC,CAAC;CACJ;;AAED,IAAI,QAAQ,GAAG,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Send request to apps-service to tag a bundle.
|
|
12
|
-
* @param endpoint string The endpoint to send request to.
|
|
13
|
-
* @param version string The version to tag the bundle with.
|
|
14
|
-
* @returns Response object as json.
|
|
15
|
-
*/
|
|
16
|
-
export const tagAppBundle = (endpoint, version) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
-
const requestTag = yield fetch(endpoint, {
|
|
18
|
-
method: 'PUT',
|
|
19
|
-
body: JSON.stringify({ version }),
|
|
20
|
-
headers: {
|
|
21
|
-
Authorization: `Bearer ${process.env.FUSION_TOKEN}`,
|
|
22
|
-
'Content-Type': 'application/json',
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
if (requestTag.status === 404) {
|
|
26
|
-
throw new Error(`Failed to tag bundle, make sure version ${version} exist. HTTP status ${requestTag.status} - ${requestTag.statusText}`);
|
|
27
|
-
}
|
|
28
|
-
if (requestTag.status !== 200) {
|
|
29
|
-
const response = yield requestTag.json();
|
|
30
|
-
console.log(response);
|
|
31
|
-
throw new Error(`Failed to tag bundle. HTTP status ${requestTag.status}, ${requestTag.statusText}`);
|
|
32
|
-
}
|
|
33
|
-
return requestTag.json();
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=tagAppBundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tagAppBundle.js","sourceRoot":"","sources":["../../../src/bin/utils/tagAppBundle.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAO,QAAgB,EAAE,OAAe,EAAE,EAAE;IACpE,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,QAAQ,EAAE;QACrC,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;QACjC,OAAO,EAAE;YACL,aAAa,EAAE,UAAU,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;YACnD,cAAc,EAAE,kBAAkB;SACrC;KACJ,CAAC,CAAC;IAEH,IAAI,UAAU,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CACX,2CAA2C,OAAO,uBAAuB,UAAU,CAAC,MAAM,MAAM,UAAU,CAAC,UAAU,EAAE,CAC1H,CAAC;IACN,CAAC;IAED,IAAI,UAAU,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC5B,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,IAAI,EAAE,CAAC;QACzC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACtB,MAAM,IAAI,KAAK,CACX,qCAAqC,UAAU,CAAC,MAAM,KAAK,UAAU,CAAC,UAAU,EAAE,CACrF,CAAC;IACN,CAAC;IAED,OAAO,UAAU,CAAC,IAAI,EAAE,CAAC;AAC7B,CAAC,CAAA,CAAC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { readFileSync } from 'node:fs';
|
|
11
|
-
/**
|
|
12
|
-
* Function that uploads a zip bundle to the endpoint.
|
|
13
|
-
* @param endpoint string The endpoint to upload to
|
|
14
|
-
* @param bundle string The filename to upload
|
|
15
|
-
* @returns Object
|
|
16
|
-
*/
|
|
17
|
-
export const uploadAppBundle = (endpoint, bundle) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
-
const state = {
|
|
19
|
-
buffer: null,
|
|
20
|
-
};
|
|
21
|
-
try {
|
|
22
|
-
state.buffer = readFileSync(bundle);
|
|
23
|
-
}
|
|
24
|
-
catch (_a) {
|
|
25
|
-
throw new Error(`😞 Could not read bundle ${bundle}, does it exist?`);
|
|
26
|
-
}
|
|
27
|
-
const requestBundle = yield fetch(endpoint, {
|
|
28
|
-
method: 'POST',
|
|
29
|
-
body: state.buffer,
|
|
30
|
-
headers: {
|
|
31
|
-
Authorization: `Bearer ${process.env.FUSION_TOKEN}`,
|
|
32
|
-
'Content-Type': 'application/zip',
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
if (requestBundle.status === 401 || requestBundle.status === 403) {
|
|
36
|
-
throw new Error(`This is not allowed for this role on this app. HTTP message: ${requestBundle.statusText}`);
|
|
37
|
-
}
|
|
38
|
-
if (requestBundle.status === 404) {
|
|
39
|
-
throw new Error(`This app do not exist. HTTP message: ${requestBundle.statusText}`);
|
|
40
|
-
}
|
|
41
|
-
if (requestBundle.status === 409) {
|
|
42
|
-
throw new Error(`This version is already published. HTTP message: ${requestBundle.statusText}`);
|
|
43
|
-
}
|
|
44
|
-
if (requestBundle.status === 410) {
|
|
45
|
-
throw new Error(`This app is deleted. HTTP message: ${requestBundle.statusText}`);
|
|
46
|
-
}
|
|
47
|
-
if (!requestBundle.ok) {
|
|
48
|
-
const json = yield requestBundle.json();
|
|
49
|
-
console.error(json);
|
|
50
|
-
throw new Error(`Failed to publish bundle. HTTP status ${requestBundle.status}, ${requestBundle.statusText}`);
|
|
51
|
-
}
|
|
52
|
-
return requestBundle.json();
|
|
53
|
-
});
|
|
54
|
-
//# sourceMappingURL=uploadAppBundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uploadAppBundle.js","sourceRoot":"","sources":["../../../src/bin/utils/uploadAppBundle.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAO,QAAgB,EAAE,MAAc,EAAE,EAAE;IACtE,MAAM,KAAK,GAA8B;QACrC,MAAM,EAAE,IAAI;KACf,CAAC;IAEF,IAAI,CAAC;QACD,KAAK,CAAC,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAAC,WAAM,CAAC;QACL,MAAM,IAAI,KAAK,CAAC,4BAA4B,MAAM,kBAAkB,CAAC,CAAC;IAC1E,CAAC;IAED,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,QAAQ,EAAE;QACxC,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,KAAK,CAAC,MAAM;QAClB,OAAO,EAAE;YACL,aAAa,EAAE,UAAU,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;YACnD,cAAc,EAAE,iBAAiB;SACpC;KACJ,CAAC,CAAC;IAEH,IAAI,aAAa,CAAC,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC/D,MAAM,IAAI,KAAK,CACX,gEAAgE,aAAa,CAAC,UAAU,EAAE,CAC7F,CAAC;IACN,CAAC;IAED,IAAI,aAAa,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,wCAAwC,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC;IACxF,CAAC;IAED,IAAI,aAAa,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CACX,oDAAoD,aAAa,CAAC,UAAU,EAAE,CACjF,CAAC;IACN,CAAC;IAED,IAAI,aAAa,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,sCAAsC,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;QACpB,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,IAAI,EAAE,CAAC;QACxC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACpB,MAAM,IAAI,KAAK,CACX,yCAAyC,aAAa,CAAC,MAAM,KAAK,aAAa,CAAC,UAAU,EAAE,CAC/F,CAAC;IACN,CAAC;IAED,OAAO,aAAa,CAAC,IAAI,EAAE,CAAC;AAChC,CAAC,CAAA,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const buildApplication: (options: {
|
|
2
|
-
configSourceFiles?: {
|
|
3
|
-
app?: string;
|
|
4
|
-
manifest?: string;
|
|
5
|
-
vite?: string;
|
|
6
|
-
};
|
|
7
|
-
outDir: string;
|
|
8
|
-
library?: "react";
|
|
9
|
-
}) => Promise<{
|
|
10
|
-
viteConfig: import("vite").UserConfig | Record<string, any>;
|
|
11
|
-
viteBuild: import("rollup").RollupOutput | import("rollup").RollupOutput[] | import("rollup").RollupWatcher;
|
|
12
|
-
pkg: import("../lib/app-package.js").ResolvedAppPackage;
|
|
13
|
-
}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { FusionEnv } from './utils/index.js';
|
|
2
|
-
import { ConfigExecuterEnv } from '../lib/utils/config.js';
|
|
3
|
-
export declare const createExportConfig: (options: {
|
|
4
|
-
command?: ConfigExecuterEnv["command"];
|
|
5
|
-
configFile?: string;
|
|
6
|
-
publish?: string;
|
|
7
|
-
outputFile?: string;
|
|
8
|
-
env: FusionEnv;
|
|
9
|
-
service: string;
|
|
10
|
-
}) => Promise<import("@equinor/fusion-framework-module-app").AppConfig>;
|
|
11
|
-
export default createExportConfig;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ConfigExecuterEnv } from '../lib/utils/config.js';
|
|
2
|
-
import type { AppManifest } from '@equinor/fusion-framework-module-app';
|
|
3
|
-
export declare const normalizeVersion: (version: string) => {
|
|
4
|
-
major: number;
|
|
5
|
-
minor: number;
|
|
6
|
-
patch: number;
|
|
7
|
-
};
|
|
8
|
-
type CreateManifestOptions = {
|
|
9
|
-
command?: ConfigExecuterEnv['command'];
|
|
10
|
-
configFile?: string;
|
|
11
|
-
outputFile?: string;
|
|
12
|
-
onlyBuild?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const createAppManifest: (options?: CreateManifestOptions) => Promise<AppManifest>;
|
|
15
|
-
export declare const createBuildManifest: (options?: CreateManifestOptions) => Promise<import("@equinor/fusion-framework-module-app").AppBuildManifest | null | undefined>;
|
|
16
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React Functional Component for handling current application
|
|
3
|
-
*
|
|
4
|
-
* this component will set the current app by provided appKey.
|
|
5
|
-
* when the appKey changes, this component will try to initialize the referred application
|
|
6
|
-
* and render it.
|
|
7
|
-
*/
|
|
8
|
-
export declare const AppLoader: (props: {
|
|
9
|
-
readonly appKey: string;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default AppLoader;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ContextSearchProps } from '@equinor/fusion-react-context-selector';
|
|
2
|
-
/**
|
|
3
|
-
* See fusion-react-component storybook for available attributes
|
|
4
|
-
* @link https://equinor.github.io/fusion-react-components/?path=/docs/data-contextselector--component
|
|
5
|
-
* @returns JSX element
|
|
6
|
-
*/
|
|
7
|
-
export declare const ContextSelector: (props: ContextSearchProps) => JSX.Element | null;
|
|
8
|
-
export default ContextSelector;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ContextSelector } from './ContextSelector';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IContextProvider } from '@equinor/fusion-framework-module-context';
|
|
2
|
-
import '@equinor/fusion-framework-app';
|
|
3
|
-
import { ContextResult, ContextResolver } from '@equinor/fusion-react-context-selector';
|
|
4
|
-
/**
|
|
5
|
-
* Hook for querying context and setting resolver for ContextSelector component
|
|
6
|
-
* See React Components storybook for info about ContextSelector component and its resolver
|
|
7
|
-
* @link https://equinor.github.io/fusion-react-components/?path=/docs/data-contextselector--component
|
|
8
|
-
* @return Array<ContextResolver, SetContextCallback>
|
|
9
|
-
*/
|
|
10
|
-
export declare const useContextResolver: () => {
|
|
11
|
-
resolver: ContextResolver | null;
|
|
12
|
-
provider: IContextProvider | null;
|
|
13
|
-
currentContext: ContextResult;
|
|
14
|
-
};
|
|
15
|
-
export default useContextResolver;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type PersonSideSheetProps = {
|
|
2
|
-
readonly azureId?: string;
|
|
3
|
-
readonly isOpen: boolean;
|
|
4
|
-
onClose(): void;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Add Sidesheet with settings for the current user.
|
|
8
|
-
* @param PersonSideSheetProps
|
|
9
|
-
*/
|
|
10
|
-
export declare const PersonSideSheet: ({ azureId, isOpen, onClose }: PersonSideSheetProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default PersonSideSheet;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { SheetContentProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* JSX structure for the content of the PersonSidesheet's Features page.
|
|
4
|
-
* @param SheetContentProps
|
|
5
|
-
*/
|
|
6
|
-
export declare const FeatureSheetContent: ({ navigate }: SheetContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const Styled: {
|
|
2
|
-
SwitchList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
3
|
-
SwitchListItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
4
|
-
SwitchLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
-
Switch: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Router: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const svg = "<svg height=\"24px\" width=\"24px\" fill=\"#999\" viewBox=\"0 0 24 24\" title=\"person\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"100%\" height=\"100%\" fill=\"#eee\" /><path d=\"M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4Zm2 4c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2Zm4 10c-.2-.71-3.3-2-6-2-2.69 0-5.77 1.28-6 2h12ZM4 18c0-2.66 5.33-4 8-4s8 1.34 8 4v2H4v-2Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" class=\"sc-dmqHEX eydzYY\"></path></svg>";
|
|
2
|
-
export default svg;
|
package/dist/types/bin/main.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { FusionEnv } from './utils/index.js';
|
|
2
|
-
declare enum Tags {
|
|
3
|
-
preview = "preview",
|
|
4
|
-
latest = "latest"
|
|
5
|
-
}
|
|
6
|
-
export declare const tagApplication: (options: {
|
|
7
|
-
tag: keyof typeof Tags;
|
|
8
|
-
version: string;
|
|
9
|
-
env: FusionEnv;
|
|
10
|
-
service: string;
|
|
11
|
-
}) => Promise<void>;
|
|
12
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type FusionEnv = 'ci' | 'fqa' | 'tr' | 'fprd';
|
|
2
|
-
/**
|
|
3
|
-
* Retreive full endpoint URI to env in service-discovery
|
|
4
|
-
* @param endpoint <string> The endpoint to call in+ uri
|
|
5
|
-
* @param fusionEnv <FusionEnv> The Fusion env to get uri for
|
|
6
|
-
* @param service <string> Custom service uri to use insted of Fusion
|
|
7
|
-
* @param version <string> The version of the api to use
|
|
8
|
-
* @returns <string> The uri with endpoint
|
|
9
|
-
*/
|
|
10
|
-
export declare const getEndpointUrl: (endpoint: string, fusionEnv: FusionEnv, service: string, version?: string) => Promise<string>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { getEndpointUrl } from './getEndpointUrl.js';
|
|
2
|
-
export type { FusionEnv } from './getEndpointUrl.js';
|
|
3
|
-
export { requireToken } from './requireToken.js';
|
|
4
|
-
export { isAppRegistered } from './isAppRegistered.js';
|
|
5
|
-
export { loadAppConfig } from './load-app-config.js';
|
|
6
|
-
export { loadAppManifest } from './load-manifest.js';
|
|
7
|
-
export { loadPackage } from './load-package.js';
|
|
8
|
-
export { loadViteConfig } from './load-vite-config.js';
|
|
9
|
-
export { formatPath, formatByteSize } from './format.js';
|
|
10
|
-
export { executeCommand } from './execute-command.js';
|
|
11
|
-
export { publishAppConfig } from './publishAppConfig.js';
|
|
12
|
-
export { tagAppBundle } from './tagAppBundle.js';
|
|
13
|
-
export { uploadAppBundle } from './uploadAppBundle.js';
|
|
14
|
-
export { Spinner } from './spinner.js';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ConfigExecuterEnv } from '../../lib/utils/config.js';
|
|
2
|
-
import { type ResolvedAppPackage } from '../../lib/app-package.js';
|
|
3
|
-
export declare const loadAppConfig: (env: ConfigExecuterEnv, pkg: ResolvedAppPackage, options?: {
|
|
4
|
-
file?: string;
|
|
5
|
-
}) => Promise<{
|
|
6
|
-
config: import("@equinor/fusion-framework-module-app").AppConfig;
|
|
7
|
-
path?: string;
|
|
8
|
-
}>;
|
|
9
|
-
export default loadAppConfig;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AppManifest } from '@equinor/fusion-framework-module-app';
|
|
2
|
-
import { type ConfigExecuterEnv } from '../../lib/utils/config.js';
|
|
3
|
-
import { type ResolvedAppPackage } from '../../lib/app-package.js';
|
|
4
|
-
export declare const loadAppManifest: (env: ConfigExecuterEnv, pkg: ResolvedAppPackage, options?: {
|
|
5
|
-
file?: string;
|
|
6
|
-
}) => Promise<{
|
|
7
|
-
manifest: AppManifest;
|
|
8
|
-
path?: string;
|
|
9
|
-
}>;
|
|
10
|
-
export default loadAppManifest;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ConfigExecuterEnv } from '../../lib/utils/config.js';
|
|
2
|
-
export declare const loadViteConfig: (env: ConfigExecuterEnv, options?: {
|
|
3
|
-
file?: string;
|
|
4
|
-
}) => Promise<{
|
|
5
|
-
viteConfig: Record<string, any>;
|
|
6
|
-
path: string | undefined;
|
|
7
|
-
} | {
|
|
8
|
-
viteConfig: import("vite").UserConfig;
|
|
9
|
-
path?: undefined;
|
|
10
|
-
}>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type ClientRequest } from 'http';
|
|
2
|
-
/**
|
|
3
|
-
* Logs the status of a proxy request using a spinner.
|
|
4
|
-
*
|
|
5
|
-
* @param proxyReq - The proxy request to log.
|
|
6
|
-
*
|
|
7
|
-
* The function attaches event listeners to the proxy request to handle
|
|
8
|
-
* 'response' and 'error' events. It uses a spinner to indicate the status
|
|
9
|
-
* of the request:
|
|
10
|
-
* - On a successful response (status code < 400), the spinner succeeds.
|
|
11
|
-
* - On a response with a status code >= 400, the spinner warns with the status message.
|
|
12
|
-
* - On an error, the spinner fails.
|
|
13
|
-
*/
|
|
14
|
-
export declare const proxyRequestLogger: (proxyReq: ClientRequest) => void;
|
|
15
|
-
export default proxyRequestLogger;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AppConfig } from '@equinor/fusion-framework-module-app';
|
|
2
|
-
/**
|
|
3
|
-
* Publishes app config to the apps-service endpoint
|
|
4
|
-
* @param endpoint string The endpoint to upload to
|
|
5
|
-
* @param appKey The application key
|
|
6
|
-
* @param config Object with app config
|
|
7
|
-
* @returns HTTP response as json
|
|
8
|
-
*/
|
|
9
|
-
export declare const publishAppConfig: (endpoint: string, appKey: string, config: AppConfig) => Promise<any>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Options, type Ora } from 'ora';
|
|
2
|
-
export declare class Spinner {
|
|
3
|
-
#private;
|
|
4
|
-
get ora(): Ora;
|
|
5
|
-
set attachConsole(value: boolean);
|
|
6
|
-
static Global(options?: Options): Spinner;
|
|
7
|
-
static Clone(spinner?: Spinner): Spinner;
|
|
8
|
-
static get Current(): Spinner;
|
|
9
|
-
static set Current(spinner: Spinner);
|
|
10
|
-
constructor(options?: Options);
|
|
11
|
-
get prefixText(): string;
|
|
12
|
-
info(...args: string[]): void;
|
|
13
|
-
succeed(...args: string[]): void;
|
|
14
|
-
start(...args: string[]): void;
|
|
15
|
-
fail(...args: string[]): void;
|
|
16
|
-
warn(...args: string[]): void;
|
|
17
|
-
clear(): void;
|
|
18
|
-
stop(): void;
|
|
19
|
-
stopAndPersist(...args: Parameters<Ora['stopAndPersist']>): void;
|
|
20
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Send request to apps-service to tag a bundle.
|
|
3
|
-
* @param endpoint string The endpoint to send request to.
|
|
4
|
-
* @param version string The version to tag the bundle with.
|
|
5
|
-
* @returns Response object as json.
|
|
6
|
-
*/
|
|
7
|
-
export declare const tagAppBundle: (endpoint: string, version: string) => Promise<any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Function that uploads a zip bundle to the endpoint.
|
|
3
|
-
* @param endpoint string The endpoint to upload to
|
|
4
|
-
* @param bundle string The filename to upload
|
|
5
|
-
* @returns Object
|
|
6
|
-
*/
|
|
7
|
-
export declare const uploadAppBundle: (endpoint: string, bundle: string) => Promise<any>;
|