@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.
@@ -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":"AAYA,OAAO,KAAK,MAAM,MAAM,mCAAmC,CAAA;AAK3D,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;IACtB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB;AAED,oBAAY,SAAS;IACnB,6BAA6B,yCAAyC;IACtE,6BAA6B,wCAAwC;IACrE,YAAY,sBAAsB;IAClC,eAAe,0BAA0B;IACzC,0BAA0B,qCAAqC;CAChE"}
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"}
@@ -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
@@ -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;AAED,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,mFAAsE,CAAA;IACtE,kFAAqE,CAAA;IACrE,+CAAkC,CAAA;IAClC,sDAAyC,CAAA;IACzC,4EAA+D,CAAA;AACjE,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB","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\nimport * as pulsar from \"@supernova-studio/pulsar-language\"\n\n// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---\n// MARK: - Types\n\nexport 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\nexport 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
+ {"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
- import * as pulsar from '@supernova-studio/pulsar-language';
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":"AAYA,OAAO,KAAK,MAAM,MAAM,mCAAmC,CAAA;AAE3D,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,sBAAsB,CAAA;AAMrE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,WAAW,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CAClB,GAAG,mBAAmB,CAatB"}
1
+ {"version":3,"file":"exporter-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/run-exporter/exporter-utils.ts"],"names":[],"mappings":""}
@@ -1,16 +1,2 @@
1
- import { environmentAPI } from '../network.js';
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":"AAeA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAA;AAK5C,MAAM,UAAU,mBAAmB,CAAC,KAUnC;IACC,OAAO;QACL,WAAW,EAAE,KAAK,CAAC,MAAM;QACzB,MAAM,EAAE,cAAc,CAAC,KAAK,CAAC,WAAW,CAAC;QACzC,UAAU,EAAE,KAAK;QACjB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,cAAc,EAAE,KAAK,CAAC,IAAI;QAC1B,qBAAqB,EAAE,KAAK,CAAC,SAAS;QACtC,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,OAAO,EAAE,KAAK,CAAC,OAAO;KACvB,CAAA;AACH,CAAC","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\nimport * as pulsar from '@supernova-studio/pulsar-language'\n\nimport {Environment, ExportConfiguration} from '../../types/index.js'\nimport {environmentAPI} from '../network.js'\n\n// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---\n// MARK: - Utils\n\nexport 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"]}
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"]}
@@ -530,5 +530,5 @@
530
530
  ]
531
531
  }
532
532
  },
533
- "version": "2.0.5"
533
+ "version": "2.0.7"
534
534
  }
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.5",
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": ">=21.0.0"
69
+ "node": ">=20.0.0"
70
70
  },
71
71
  "files": [
72
72
  "/bin",