@supernovaio/cli-next 2.0.5 → 2.0.7
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/types/types.d.ts +0 -21
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/types.js +0 -8
- package/dist/types/types.js.map +1 -1
- package/dist/utils/run-exporter/exporter-utils.d.ts +1 -13
- package/dist/utils/run-exporter/exporter-utils.d.ts.map +1 -1
- package/dist/utils/run-exporter/exporter-utils.js +1 -15
- package/dist/utils/run-exporter/exporter-utils.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/dist/types/types.d.ts
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
import * as pulsar from "@supernova-studio/pulsar-language";
|
|
2
|
-
export interface ExportConfiguration {
|
|
3
|
-
accessToken: string;
|
|
4
|
-
apiUrl: string;
|
|
5
|
-
apiVersion?: string;
|
|
6
|
-
brandId?: string;
|
|
7
|
-
debugMode?: boolean;
|
|
8
|
-
designSystemId: string;
|
|
9
|
-
designSystemVersionId: string;
|
|
10
|
-
exportPath: string;
|
|
11
|
-
logger: pulsar.PLLogger;
|
|
12
|
-
proxyUrl?: string;
|
|
13
|
-
themeId?: string;
|
|
14
|
-
}
|
|
15
1
|
export declare enum Environment {
|
|
16
2
|
demo = "demo",
|
|
17
3
|
development = "development",
|
|
@@ -19,11 +5,4 @@ export declare enum Environment {
|
|
|
19
5
|
production = "production",
|
|
20
6
|
staging = "staging"
|
|
21
7
|
}
|
|
22
|
-
export declare enum ErrorCode {
|
|
23
|
-
designSystemDescriptionFailed = "ERR_DESIGN_SYSTEM_DESCRIPTION_FAILED",
|
|
24
|
-
documentationPublishingFailed = "ERR_DOCUMENTATION_PUBLISHING_FAILED",
|
|
25
|
-
exportFailed = "ERR_EXPORT_FAILED",
|
|
26
|
-
tokenSyncFailed = "ERR_TOKEN_SYNC_FAILED",
|
|
27
|
-
workspaceDescriptionFailed = "ERR_WORKSPACE_DESCRIPTION_FAILED"
|
|
28
|
-
}
|
|
29
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AA+BA,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB"}
|
package/dist/types/types.js
CHANGED
|
@@ -6,12 +6,4 @@ export var Environment;
|
|
|
6
6
|
Environment["production"] = "production";
|
|
7
7
|
Environment["staging"] = "staging";
|
|
8
8
|
})(Environment || (Environment = {}));
|
|
9
|
-
export var ErrorCode;
|
|
10
|
-
(function (ErrorCode) {
|
|
11
|
-
ErrorCode["designSystemDescriptionFailed"] = "ERR_DESIGN_SYSTEM_DESCRIPTION_FAILED";
|
|
12
|
-
ErrorCode["documentationPublishingFailed"] = "ERR_DOCUMENTATION_PUBLISHING_FAILED";
|
|
13
|
-
ErrorCode["exportFailed"] = "ERR_EXPORT_FAILED";
|
|
14
|
-
ErrorCode["tokenSyncFailed"] = "ERR_TOKEN_SYNC_FAILED";
|
|
15
|
-
ErrorCode["workspaceDescriptionFailed"] = "ERR_WORKSPACE_DESCRIPTION_FAILED";
|
|
16
|
-
})(ErrorCode || (ErrorCode = {}));
|
|
17
9
|
//# sourceMappingURL=types.js.map
|
package/dist/types/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AA+BA,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,0CAA2B,CAAA;IAC3B,8BAAe,CAAA;IACf,wCAAyB,CAAA;IACzB,kCAAmB,CAAA;AACrB,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AA+BA,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,0CAA2B,CAAA;IAC3B,8BAAe,CAAA;IACf,wCAAyB,CAAA;IACzB,kCAAmB,CAAA;AACrB,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB","sourcesContent":["// //\n// // types.ts\n// // Supernova CLI\n// //\n// // Created by Jiri Trecak.\n// // Copyright © Supernova.io. All rights reserved.\n// //\n\n// // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---\n// // MARK: - Imports\n\n// // eslint-disable-next-line n/no-extraneous-import\n// import * as pulsar from \"@supernova-studio/pulsar-language\"\n\n// // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---\n// // MARK: - Types\n\n// export interface ExportConfiguration {\n// accessToken: string\n// apiUrl: string\n// apiVersion?: string\n// brandId?: string\n// debugMode?: boolean\n// designSystemId: string\n// designSystemVersionId: string\n// exportPath: string\n// logger: pulsar.PLLogger\n// proxyUrl?: string\n// themeId?: string\n// }\n\nexport enum Environment {\n demo = \"demo\",\n development = \"development\",\n local = \"local\",\n production = \"production\",\n staging = \"staging\",\n}\n\n// export enum ErrorCode {\n// designSystemDescriptionFailed = \"ERR_DESIGN_SYSTEM_DESCRIPTION_FAILED\",\n// documentationPublishingFailed = \"ERR_DOCUMENTATION_PUBLISHING_FAILED\",\n// exportFailed = \"ERR_EXPORT_FAILED\",\n// tokenSyncFailed = \"ERR_TOKEN_SYNC_FAILED\",\n// workspaceDescriptionFailed = \"ERR_WORKSPACE_DESCRIPTION_FAILED\",\n// }\n"]}
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { Environment, ExportConfiguration } from '../../types/index.js';
|
|
3
|
-
export declare function exportConfiguration(setup: {
|
|
4
|
-
apiKey: string;
|
|
5
|
-
brandId?: string;
|
|
6
|
-
dsId: string;
|
|
7
|
-
environment: Environment;
|
|
8
|
-
exportPath: string;
|
|
9
|
-
logger: pulsar.PLLogger;
|
|
10
|
-
proxyUrl?: string;
|
|
11
|
-
themeId?: string;
|
|
12
|
-
versionId: string;
|
|
13
|
-
}): ExportConfiguration;
|
|
1
|
+
export {};
|
|
14
2
|
//# sourceMappingURL=exporter-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/run-exporter/exporter-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exporter-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/run-exporter/exporter-utils.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export function exportConfiguration(setup) {
|
|
3
|
-
return {
|
|
4
|
-
accessToken: setup.apiKey,
|
|
5
|
-
apiUrl: environmentAPI(setup.environment),
|
|
6
|
-
apiVersion: '0.2',
|
|
7
|
-
brandId: setup.brandId,
|
|
8
|
-
designSystemId: setup.dsId,
|
|
9
|
-
designSystemVersionId: setup.versionId,
|
|
10
|
-
exportPath: setup.exportPath,
|
|
11
|
-
logger: setup.logger,
|
|
12
|
-
proxyUrl: setup.proxyUrl,
|
|
13
|
-
themeId: setup.themeId,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
1
|
+
export {};
|
|
16
2
|
//# sourceMappingURL=exporter-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter-utils.js","sourceRoot":"","sources":["../../../src/utils/run-exporter/exporter-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exporter-utils.js","sourceRoot":"","sources":["../../../src/utils/run-exporter/exporter-utils.ts"],"names":[],"mappings":"","sourcesContent":["// //\n// // exporter-utils.ts\n// // Supernova CLI\n// //\n// // Created by Jiri Trecak.\n// // Copyright © Supernova.io. All rights reserved.\n// //\n\n// // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---\n// // MARK: - Imports\n\n// // eslint-disable-next-line n/no-extraneous-import\n// import * as pulsar from '@supernova-studio/pulsar-language'\n\n// import {Environment, ExportConfiguration} from '../../types/index.js'\n// import {environmentAPI} from '../network.js'\n\n// // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---\n// // MARK: - Utils\n\n// export function exportConfiguration(setup: {\n// apiKey: string\n// brandId?: string\n// dsId: string\n// environment: Environment\n// exportPath: string\n// logger: pulsar.PLLogger\n// proxyUrl?: string\n// themeId?: string\n// versionId: string\n// }): ExportConfiguration {\n// return {\n// accessToken: setup.apiKey,\n// apiUrl: environmentAPI(setup.environment),\n// apiVersion: '0.2',\n// brandId: setup.brandId,\n// designSystemId: setup.dsId,\n// designSystemVersionId: setup.versionId,\n// exportPath: setup.exportPath,\n// logger: setup.logger,\n// proxyUrl: setup.proxyUrl,\n// themeId: setup.themeId,\n// }\n// }\n"]}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supernovaio/cli-next",
|
|
3
3
|
"description": "Supernova.io Command Line Interface",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.7",
|
|
5
5
|
"author": "Supernova.io",
|
|
6
6
|
"bin": {
|
|
7
7
|
"supernova": "./bin/run"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@supernova-studio/model"
|
|
67
67
|
],
|
|
68
68
|
"engines": {
|
|
69
|
-
"node": ">=
|
|
69
|
+
"node": ">=20.0.0"
|
|
70
70
|
},
|
|
71
71
|
"files": [
|
|
72
72
|
"/bin",
|