@supernova-studio/pulsar-core 1.0.4 → 1.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.
Files changed (217) hide show
  1. package/package.json +4 -5
  2. package/build/browser/pulsar.js +0 -141743
  3. package/build/browser/pulsar.min.js +0 -270
  4. package/build/main/browser-bundle.d.ts +0 -1
  5. package/build/main/browser-bundle.js +0 -17
  6. package/build/main/browser-bundle.js.map +0 -1
  7. package/build/main/engine/ExportEngine.d.ts +0 -17
  8. package/build/main/engine/ExportEngine.js +0 -122
  9. package/build/main/engine/ExportEngine.js.map +0 -1
  10. package/build/main/engine/configuration/ExportConfiguration.d.ts +0 -18
  11. package/build/main/engine/configuration/ExportConfiguration.js +0 -47
  12. package/build/main/engine/configuration/ExportConfiguration.js.map +0 -1
  13. package/build/main/engine/generation/ExportDataProducer.d.ts +0 -15
  14. package/build/main/engine/generation/ExportDataProducer.js +0 -100
  15. package/build/main/engine/generation/ExportDataProducer.js.map +0 -1
  16. package/build/main/engine/generation/queue/ExportDataQueue.d.ts +0 -16
  17. package/build/main/engine/generation/queue/ExportDataQueue.js +0 -72
  18. package/build/main/engine/generation/queue/ExportDataQueue.js.map +0 -1
  19. package/build/main/engine/generation/queue/ExportDataQueueOperation.d.ts +0 -6
  20. package/build/main/engine/generation/queue/ExportDataQueueOperation.js +0 -36
  21. package/build/main/engine/generation/queue/ExportDataQueueOperation.js.map +0 -1
  22. package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.d.ts +0 -7
  23. package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.js +0 -54
  24. package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.js.map +0 -1
  25. package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.d.ts +0 -7
  26. package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.js +0 -40
  27. package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.js.map +0 -1
  28. package/build/main/engine/generation/requests/ExportDataRequest.d.ts +0 -19
  29. package/build/main/engine/generation/requests/ExportDataRequest.js +0 -55
  30. package/build/main/engine/generation/requests/ExportDataRequest.js.map +0 -1
  31. package/build/main/engine/generation/requests/ExportDataRequestDataStore.d.ts +0 -16
  32. package/build/main/engine/generation/requests/ExportDataRequestDataStore.js +0 -57
  33. package/build/main/engine/generation/requests/ExportDataRequestDataStore.js.map +0 -1
  34. package/build/main/engine/generation/requests/ExportDataRequestNameStore.d.ts +0 -22
  35. package/build/main/engine/generation/requests/ExportDataRequestNameStore.js +0 -86
  36. package/build/main/engine/generation/requests/ExportDataRequestNameStore.js.map +0 -1
  37. package/build/main/engine/generation/requests/ExportDataRequestProducer.d.ts +0 -16
  38. package/build/main/engine/generation/requests/ExportDataRequestProducer.js +0 -162
  39. package/build/main/engine/generation/requests/ExportDataRequestProducer.js.map +0 -1
  40. package/build/main/engine/generation/requests/ExportDataResponse.d.ts +0 -13
  41. package/build/main/engine/generation/requests/ExportDataResponse.js +0 -30
  42. package/build/main/engine/generation/requests/ExportDataResponse.js.map +0 -1
  43. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.d.ts +0 -14
  44. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.js +0 -77
  45. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.js.map +0 -1
  46. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.d.ts +0 -13
  47. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.js +0 -47
  48. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.js.map +0 -1
  49. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.d.ts +0 -13
  50. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.js +0 -47
  51. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.js.map +0 -1
  52. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.d.ts +0 -11
  53. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.js +0 -43
  54. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.js.map +0 -1
  55. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.d.ts +0 -13
  56. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.js +0 -47
  57. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.js.map +0 -1
  58. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.d.ts +0 -13
  59. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.js +0 -47
  60. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.js.map +0 -1
  61. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.d.ts +0 -13
  62. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.js +0 -47
  63. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.js.map +0 -1
  64. package/build/main/engine/items/ExportItemProducer.d.ts +0 -14
  65. package/build/main/engine/items/ExportItemProducer.js +0 -70
  66. package/build/main/engine/items/ExportItemProducer.js.map +0 -1
  67. package/build/main/engine/items/construction/ExportItem.d.ts +0 -8
  68. package/build/main/engine/items/construction/ExportItem.js +0 -25
  69. package/build/main/engine/items/construction/ExportItem.js.map +0 -1
  70. package/build/main/engine/items/construction/ExportItemBuilder.d.ts +0 -9
  71. package/build/main/engine/items/construction/ExportItemBuilder.js +0 -47
  72. package/build/main/engine/items/construction/ExportItemBuilder.js.map +0 -1
  73. package/build/main/engine/items/queue/ExportItemQueue.d.ts +0 -16
  74. package/build/main/engine/items/queue/ExportItemQueue.js +0 -70
  75. package/build/main/engine/items/queue/ExportItemQueue.js.map +0 -1
  76. package/build/main/engine/items/queue/ExportItemQueueOperation.d.ts +0 -6
  77. package/build/main/engine/items/queue/ExportItemQueueOperation.js +0 -36
  78. package/build/main/engine/items/queue/ExportItemQueueOperation.js.map +0 -1
  79. package/build/main/engine/items/requests/ExportItemRequest.d.ts +0 -16
  80. package/build/main/engine/items/requests/ExportItemRequest.js +0 -68
  81. package/build/main/engine/items/requests/ExportItemRequest.js.map +0 -1
  82. package/build/main/engine/items/requests/ExportItemRequestProducer.d.ts +0 -8
  83. package/build/main/engine/items/requests/ExportItemRequestProducer.js +0 -24
  84. package/build/main/engine/items/requests/ExportItemRequestProducer.js.map +0 -1
  85. package/build/main/engine/items/requests/ExportItemResponse.d.ts +0 -9
  86. package/build/main/engine/items/requests/ExportItemResponse.js +0 -25
  87. package/build/main/engine/items/requests/ExportItemResponse.js.map +0 -1
  88. package/build/main/engine/items/requests/ExportItemResponseProducer.d.ts +0 -7
  89. package/build/main/engine/items/requests/ExportItemResponseProducer.js +0 -45
  90. package/build/main/engine/items/requests/ExportItemResponseProducer.js.map +0 -1
  91. package/build/main/engine/loaders/BlueprintLoader.d.ts +0 -9
  92. package/build/main/engine/loaders/BlueprintLoader.js +0 -55
  93. package/build/main/engine/loaders/BlueprintLoader.js.map +0 -1
  94. package/build/main/engine/writing/queue/ExportWriterQueue.d.ts +0 -16
  95. package/build/main/engine/writing/queue/ExportWriterQueue.js +0 -70
  96. package/build/main/engine/writing/queue/ExportWriterQueue.js.map +0 -1
  97. package/build/main/engine/writing/queue/ExportWriterQueueOperation.d.ts +0 -6
  98. package/build/main/engine/writing/queue/ExportWriterQueueOperation.js +0 -36
  99. package/build/main/engine/writing/queue/ExportWriterQueueOperation.js.map +0 -1
  100. package/build/main/engine/writing/requests/ExportWriterRequest.d.ts +0 -14
  101. package/build/main/engine/writing/requests/ExportWriterRequest.js +0 -40
  102. package/build/main/engine/writing/requests/ExportWriterRequest.js.map +0 -1
  103. package/build/main/engine/writing/requests/ExportWriterRequestProducer.d.ts +0 -8
  104. package/build/main/engine/writing/requests/ExportWriterRequestProducer.js +0 -30
  105. package/build/main/engine/writing/requests/ExportWriterRequestProducer.js.map +0 -1
  106. package/build/main/engine/writing/requests/ExportWriterResponse.d.ts +0 -9
  107. package/build/main/engine/writing/requests/ExportWriterResponse.js +0 -25
  108. package/build/main/engine/writing/requests/ExportWriterResponse.js.map +0 -1
  109. package/build/main/engine/writing/requests/ExportWriterResponseProducer.d.ts +0 -7
  110. package/build/main/engine/writing/requests/ExportWriterResponseProducer.js +0 -40
  111. package/build/main/engine/writing/requests/ExportWriterResponseProducer.js.map +0 -1
  112. package/build/main/engine/writing/writers/ExportItemWriter.d.ts +0 -14
  113. package/build/main/engine/writing/writers/ExportItemWriter.js +0 -70
  114. package/build/main/engine/writing/writers/ExportItemWriter.js.map +0 -1
  115. package/build/main/engine/writing/writers/ExportWriterRuleProcessor.d.ts +0 -9
  116. package/build/main/engine/writing/writers/ExportWriterRuleProcessor.js +0 -63
  117. package/build/main/engine/writing/writers/ExportWriterRuleProcessor.js.map +0 -1
  118. package/build/main/engine/writing/writers/memory/ExportWriterMemory.d.ts +0 -4
  119. package/build/main/engine/writing/writers/memory/ExportWriterMemory.js +0 -29
  120. package/build/main/engine/writing/writers/memory/ExportWriterMemory.js.map +0 -1
  121. package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.d.ts +0 -5
  122. package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.js +0 -59
  123. package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.js.map +0 -1
  124. package/build/main/engine/writing/writers/memory/ExportWriterStore.d.ts +0 -5
  125. package/build/main/engine/writing/writers/memory/ExportWriterStore.js +0 -33
  126. package/build/main/engine/writing/writers/memory/ExportWriterStore.js.map +0 -1
  127. package/build/main/exports.d.ts +0 -4
  128. package/build/main/exports.js +0 -13
  129. package/build/main/exports.js.map +0 -1
  130. package/build/main/index.d.ts +0 -1
  131. package/build/main/index.js +0 -14
  132. package/build/main/index.js.map +0 -1
  133. package/build/main/model/dsm/DSMReferenceStore.d.ts +0 -28
  134. package/build/main/model/dsm/DSMReferenceStore.js +0 -100
  135. package/build/main/model/dsm/DSMReferenceStore.js.map +0 -1
  136. package/build/main/model/exporters/Exporter.d.ts +0 -50
  137. package/build/main/model/exporters/Exporter.js +0 -88
  138. package/build/main/model/exporters/Exporter.js.map +0 -1
  139. package/build/main/model/maps/ExporterMapBlueprint.d.ts +0 -12
  140. package/build/main/model/maps/ExporterMapBlueprint.js +0 -39
  141. package/build/main/model/maps/ExporterMapBlueprint.js.map +0 -1
  142. package/build/main/model/sources/ExporterSource.d.ts +0 -25
  143. package/build/main/model/sources/ExporterSource.js +0 -58
  144. package/build/main/model/sources/ExporterSource.js.map +0 -1
  145. package/build/main/pulsar/Pulsar.d.ts +0 -105
  146. package/build/main/pulsar/Pulsar.js +0 -351
  147. package/build/main/pulsar/Pulsar.js.map +0 -1
  148. package/build/main/pulsar/PulsarInterface.d.ts +0 -152
  149. package/build/main/pulsar/PulsarInterface.js +0 -37
  150. package/build/main/pulsar/PulsarInterface.js.map +0 -1
  151. package/build/main/pulsar/PulsarStaticAnalysis.d.ts +0 -23
  152. package/build/main/pulsar/PulsarStaticAnalysis.js +0 -47
  153. package/build/main/pulsar/PulsarStaticAnalysis.js.map +0 -1
  154. package/build/main/pulsar/PulsarStaticAnalysisInterface.d.ts +0 -10
  155. package/build/main/pulsar/PulsarStaticAnalysisInterface.js +0 -10
  156. package/build/main/pulsar/PulsarStaticAnalysisInterface.js.map +0 -1
  157. package/build/main/pulsar/managers/PulsarBlueprintManager.d.ts +0 -16
  158. package/build/main/pulsar/managers/PulsarBlueprintManager.js +0 -76
  159. package/build/main/pulsar/managers/PulsarBlueprintManager.js.map +0 -1
  160. package/build/main/pulsar/managers/PulsarCIManager.d.ts +0 -25
  161. package/build/main/pulsar/managers/PulsarCIManager.js +0 -220
  162. package/build/main/pulsar/managers/PulsarCIManager.js.map +0 -1
  163. package/build/main/pulsar/managers/PulsarCodeManager.d.ts +0 -24
  164. package/build/main/pulsar/managers/PulsarCodeManager.js +0 -180
  165. package/build/main/pulsar/managers/PulsarCodeManager.js.map +0 -1
  166. package/build/main/pulsar/managers/PulsarConfigurationManager.d.ts +0 -16
  167. package/build/main/pulsar/managers/PulsarConfigurationManager.js +0 -48
  168. package/build/main/pulsar/managers/PulsarConfigurationManager.js.map +0 -1
  169. package/build/main/pulsar/managers/PulsarExporterManager.d.ts +0 -25
  170. package/build/main/pulsar/managers/PulsarExporterManager.js +0 -121
  171. package/build/main/pulsar/managers/PulsarExporterManager.js.map +0 -1
  172. package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.d.ts +0 -16
  173. package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.js +0 -276
  174. package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.js.map +0 -1
  175. package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.d.ts +0 -7
  176. package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.js +0 -63
  177. package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.js.map +0 -1
  178. package/build/main/pulsar/managers/loaders/PulsarBaseLoader.d.ts +0 -5
  179. package/build/main/pulsar/managers/loaders/PulsarBaseLoader.js +0 -28
  180. package/build/main/pulsar/managers/loaders/PulsarBaseLoader.js.map +0 -1
  181. package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.d.ts +0 -11
  182. package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.js +0 -99
  183. package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.js.map +0 -1
  184. package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.d.ts +0 -9
  185. package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.js +0 -81
  186. package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.js.map +0 -1
  187. package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.d.ts +0 -20
  188. package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.js +0 -194
  189. package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.js.map +0 -1
  190. package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.d.ts +0 -12
  191. package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.js +0 -143
  192. package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.js.map +0 -1
  193. package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.d.ts +0 -12
  194. package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.js +0 -115
  195. package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.js.map +0 -1
  196. package/build/main/tests/TestConfiguration.d.ts +0 -9
  197. package/build/main/tests/TestConfiguration.js +0 -25
  198. package/build/main/tests/TestConfiguration.js.map +0 -1
  199. package/build/main/tests/casebuilders/ci.d.ts +0 -12
  200. package/build/main/tests/casebuilders/ci.js +0 -38
  201. package/build/main/tests/casebuilders/ci.js.map +0 -1
  202. package/build/main/tests/casebuilders/configuration.d.ts +0 -5
  203. package/build/main/tests/casebuilders/configuration.js +0 -25
  204. package/build/main/tests/casebuilders/configuration.js.map +0 -1
  205. package/build/main/tests/casebuilders/dsm.d.ts +0 -7
  206. package/build/main/tests/casebuilders/dsm.js +0 -57
  207. package/build/main/tests/casebuilders/dsm.js.map +0 -1
  208. package/build/main/tests/casebuilders/modelObjects.d.ts +0 -13
  209. package/build/main/tests/casebuilders/modelObjects.js +0 -120
  210. package/build/main/tests/casebuilders/modelObjects.js.map +0 -1
  211. package/build/main/tools/Logger.d.ts +0 -27
  212. package/build/main/tools/Logger.js +0 -98
  213. package/build/main/tools/Logger.js.map +0 -1
  214. package/build/main/tools/LoggerDefaultMessages.d.ts +0 -13
  215. package/build/main/tools/LoggerDefaultMessages.js +0 -41
  216. package/build/main/tools/LoggerDefaultMessages.js.map +0 -1
  217. package/build/tsconfig.tsbuildinfo +0 -2829
@@ -1,115 +0,0 @@
1
- "use strict";
2
- // PulsarExporterZIPLoader.ts
3
- // Supernova
4
- //
5
- // Created by Jiri Trecak.
6
- // Copyright © 2020 Jiri Trecak. All rights reserved.
7
- //
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.PLSPulsarExporterZIPLoader = void 0;
13
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
14
- // MARK: - Imports
15
- const PulsarBaseLoader_1 = require("../PulsarBaseLoader");
16
- const PulsarExporterMemoryLoader_1 = require("../memory/PulsarExporterMemoryLoader");
17
- const request_1 = __importDefault(require("request"));
18
- const jszip_1 = __importDefault(require("jszip"));
19
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
20
- // MARK: - Definitions
21
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
22
- // MARK: - Class
23
- class PLSPulsarExporterZIPLoader extends PulsarBaseLoader_1.PLSPulsarBaseLoader {
24
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
25
- // MARK: - Setup
26
- constructor(sourceZIPURL) {
27
- super();
28
- this.zipSourceURL = sourceZIPURL;
29
- }
30
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
31
- // MARK: - Initialization of the exporter
32
- async initialize() {
33
- let rawZIP = await this.downloadZIPFromURL(this.zipSourceURL);
34
- let processedFiles = await this.processZIP(rawZIP);
35
- let unpackager = new PulsarExporterMemoryLoader_1.PLSPulsarExporterMemoryLoader(processedFiles);
36
- let exporter = await unpackager.constructExporterFromSourceFiles();
37
- return exporter;
38
- }
39
- async downloadZIPFromURL(url) {
40
- return new Promise((resolve, reject) => {
41
- // Write zip file into buffered chunks
42
- let buffers = [];
43
- let buffer;
44
- // Create request to download the zipball.
45
- request_1.default.get(url)
46
- .on('end', () => {
47
- buffer = Buffer.concat(buffers);
48
- jszip_1.default.loadAsync(buffer)
49
- .then(zip => {
50
- resolve(zip);
51
- })
52
- .catch(error => {
53
- reject(error);
54
- });
55
- })
56
- .on('error', error => {
57
- reject(error);
58
- })
59
- .on('data', d => {
60
- buffers.push(d);
61
- });
62
- });
63
- }
64
- async processZIP(zip) {
65
- let processedFiles = new Map();
66
- let values = Object.values(zip.files);
67
- // Fetch each file from zip (only if not directory)
68
- for (let file of values) {
69
- if (file.dir) {
70
- continue;
71
- }
72
- // Obtain directory and filename of the unzipped file
73
- let parsedFile = await this.parseUnzippedFile(file);
74
- if (parsedFile) {
75
- processedFiles.set(parsedFile.key, parsedFile);
76
- }
77
- }
78
- return processedFiles;
79
- }
80
- async parseUnzippedFile(file) {
81
- // Only retrieve files that are .blazar or .json
82
- let components = file.name.split('/');
83
- // Extract filename, extension and paths
84
- let filename = components[components.length - 1];
85
- let fullpath = components.join('/');
86
- // Extract directory
87
- components.pop();
88
- let directory = components.join('/');
89
- // Get extension and check whether it is correct format
90
- let nameParts = filename.split('.');
91
- let extension;
92
- let name;
93
- if (nameParts.length >= 2) {
94
- extension = nameParts[nameParts.length - 1];
95
- nameParts.pop();
96
- name = nameParts.join('.');
97
- }
98
- // Only blazar and json extension are of interest to us
99
- if (extension !== 'pr' && extension !== 'json') {
100
- return null;
101
- }
102
- // Extract content
103
- let content = await file.async('string');
104
- return {
105
- key: fullpath,
106
- filename: filename,
107
- name: name,
108
- extension: extension,
109
- directory: directory,
110
- content: content
111
- };
112
- }
113
- }
114
- exports.PLSPulsarExporterZIPLoader = PLSPulsarExporterZIPLoader;
115
- //# sourceMappingURL=PulsarExporterZIPLoader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PulsarExporterZIPLoader.js","sourceRoot":"","sources":["../../../../../../src/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.ts"],"names":[],"mappings":";AAAA,8BAA8B;AAC9B,aAAa;AACb,EAAE;AACF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AG,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAErC,uDAAuD;QACvD,IAAI,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACpC,IAAI,SAAiB,CAAC;QACtB,IAAI,IAAY,CAAC;QACjB,IAAI,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE;YACzB,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YAC5C,SAAS,CAAC,GAAG,EAAE,CAAC;YAChB,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC5B;QAED,uDAAuD;QACvD,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,KAAK,MAAM,EAAE;YAC9C,OAAO,IAAI,CAAC;SACb;QAED,kBAAkB;QAClB,IAAI,OAAO,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAEzC,OAAO;YACL,GAAG,EAAE,QAAQ;YACb,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,IAAI;YACV,SAAS,EAAE,SAAS;YACpB,SAAS,EAAE,SAAS;YACpB,OAAO,EAAE,OAAO;SACjB,CAAC;IACJ,CAAC;CACF;AAlHD,gEAkHC"}
@@ -1,9 +0,0 @@
1
- export declare class UnitTestConfiguration {
2
- dsmEmail: string;
3
- dsmPass: string;
4
- dsVersionId: string;
5
- designSystemId: string;
6
- apiUrl: string;
7
- apiVersion: string;
8
- accessToken: string;
9
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- //
3
- // UnitTestConfiguration.ts
4
- // Pulsar
5
- //
6
- // Created by Jiri Trecak.
7
- // Copyright © 2020 Supernova. All rights reserved.
8
- //
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.UnitTestConfiguration = void 0;
11
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
12
- // MARK: - Unit Test Configuration for all UTs
13
- class UnitTestConfiguration {
14
- constructor() {
15
- this.dsmEmail = 'api-test-1@supernova.io';
16
- this.dsmPass = '123456';
17
- this.dsVersionId = '669';
18
- this.designSystemId = '641';
19
- this.apiUrl = 'https://dev.api2.supernova.io/api';
20
- this.apiVersion = '0.2';
21
- this.accessToken = '';
22
- }
23
- }
24
- exports.UnitTestConfiguration = UnitTestConfiguration;
25
- //# sourceMappingURL=TestConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestConfiguration.js","sourceRoot":"","sources":["../../../src/tests/TestConfiguration.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,4BAA4B;AAC5B,UAAU;AACV,EAAE;AACF,2BAA2B;AAC3B,oDAAoD;AACpD,EAAE;;;AAEF,8GAA8G;AAC9G,8CAA8C;AAE9C,MAAa,qBAAqB;IAAlC;QACE,aAAQ,GAAG,yBAAyB,CAAC;QACrC,YAAO,GAAG,QAAQ,CAAC;QACnB,gBAAW,GAAG,KAAK,CAAC;QACpB,mBAAc,GAAG,KAAK,CAAC;QACvB,WAAM,GAAG,mCAAmC,CAAC;QAC7C,eAAU,GAAG,KAAK,CAAC;QACnB,gBAAW,GAAG,EAAE,CAAC;IACnB,CAAC;CAAA;AARD,sDAQC"}
@@ -1,12 +0,0 @@
1
- import { PLSExporter } from './../../model/exporters/Exporter';
2
- import { PLSExportConfiguration } from './../../engine/configuration/ExportConfiguration';
3
- import { PLSPulsarCIManager } from '../../pulsar/managers/PulsarCIManager';
4
- import { PLSPulsarExporterMode } from '../../pulsar/Pulsar';
5
- export declare type ExportPack = {
6
- exporter: PLSExporter;
7
- manager: PLSPulsarCIManager;
8
- configuration: PLSExportConfiguration;
9
- accessToken: string;
10
- };
11
- export declare function executeExportPack(pack: ExportPack, exporterMode: PLSPulsarExporterMode): Promise<import("../../pulsar/PulsarInterface").PLSEngineExporterProcessingResult>;
12
- export declare function newExportTestPack(): Promise<ExportPack>;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- //
3
- // configuration.ts
4
- // Pulsar
5
- //
6
- // Created by Jiri Trecak.
7
- // Copyright © 2020 Supernova. All rights reserved.
8
- //
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.newExportTestPack = exports.executeExportPack = void 0;
11
- const dsm_1 = require("./dsm");
12
- const PulsarCIManager_1 = require("../../pulsar/managers/PulsarCIManager");
13
- const modelObjects_1 = require("./modelObjects");
14
- const configuration_1 = require("./configuration");
15
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
16
- // MARK: - Convenience Configuration Construction
17
- async function executeExportPack(pack, exporterMode) {
18
- // Execute exporter with configuration pack
19
- return await pack.manager.executeExporter(Object.assign({ accessToken: pack.accessToken }, pack.configuration.dsmBridgeConfig), exporterMode);
20
- }
21
- exports.executeExportPack = executeExportPack;
22
- async function newExportTestPack() {
23
- // Prepare exporter to be executed
24
- let exporter = modelObjects_1.newEmptyExporter();
25
- let dsmReferenceStore = await dsm_1.newConfiguredDSMStore();
26
- let configuration = await configuration_1.newDevExportConfiguration(exporter, dsmReferenceStore);
27
- let token = await dsm_1.newConfiguredDSMToken();
28
- // Prepare the manager pack
29
- let ciManager = new PulsarCIManager_1.PLSPulsarCIManager(exporter);
30
- return {
31
- exporter: exporter,
32
- configuration: configuration,
33
- manager: ciManager,
34
- accessToken: token
35
- };
36
- }
37
- exports.newExportTestPack = newExportTestPack;
38
- //# sourceMappingURL=ci.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ci.js","sourceRoot":"","sources":["../../../../src/tests/casebuilders/ci.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,oBAAoB;AACpB,UAAU;AACV,EAAE;AACF,2BAA2B;AAC3B,oDAAoD;AACpD,EAAE;;;AAOF,+BAAqE;AACrE,2EAA2E;AAC3E,iDAAkD;AAClD,mDAA4D;AAa5D,8GAA8G;AAC9G,iDAAiD;AAE1C,KAAK,UAAU,iBAAiB,CACrC,IAAgB,EAChB,YAAmC;IAEnC,2CAA2C;IAC3C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,iBAErC,WAAW,EAAE,IAAI,CAAC,WAAW,IAC1B,IAAI,CAAC,aAAa,CAAC,eAAe,GAEvC,YAAY,CACb,CAAC;AACJ,CAAC;AAZD,8CAYC;AAEM,KAAK,UAAU,iBAAiB;IACrC,kCAAkC;IAClC,IAAI,QAAQ,GAAG,+BAAgB,EAAE,CAAC;IAClC,IAAI,iBAAiB,GAAG,MAAM,2BAAqB,EAAE,CAAC;IACtD,IAAI,aAAa,GAAG,MAAM,yCAAyB,CACjD,QAAQ,EACR,iBAAiB,CAClB,CAAC;IACF,IAAI,KAAK,GAAG,MAAM,2BAAqB,EAAE,CAAC;IAE1C,2BAA2B;IAC3B,IAAI,SAAS,GAAG,IAAI,oCAAkB,CAAC,QAAQ,CAAC,CAAC;IAEjD,OAAO;QACL,QAAQ,EAAE,QAAQ;QAClB,aAAa,EAAE,aAAa;QAC5B,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,KAAK;KACnB,CAAC;AACJ,CAAC;AAnBD,8CAmBC"}
@@ -1,5 +0,0 @@
1
- import { PLSExporter } from './../../model/exporters/Exporter';
2
- import { DSMReferenceStore } from './../../model/dsm/DSMReferenceStore';
3
- import { PLSExportConfiguration } from './../../engine/configuration/ExportConfiguration';
4
- import { PLSPulsarExporterMode } from '../../pulsar/Pulsar';
5
- export declare function newDevExportConfiguration(exporter: PLSExporter, store: DSMReferenceStore, exportMode?: PLSPulsarExporterMode): Promise<PLSExportConfiguration>;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- //
3
- // configuration.ts
4
- // Pulsar
5
- //
6
- // Created by Jiri Trecak.
7
- // Copyright © 2020 Supernova. All rights reserved.
8
- //
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.newDevExportConfiguration = void 0;
11
- const ExportConfiguration_1 = require("./../../engine/configuration/ExportConfiguration");
12
- const Logger_1 = require("./../../tools/Logger");
13
- const dsm_1 = require("./dsm");
14
- const TestConfiguration_1 = require("./../TestConfiguration");
15
- const Pulsar_1 = require("../../pulsar/Pulsar");
16
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
17
- // MARK: - Convenience Configuration Construction
18
- async function newDevExportConfiguration(exporter, store, exportMode = Pulsar_1.PLSPulsarExporterMode.ci) {
19
- let configuration = new TestConfiguration_1.UnitTestConfiguration();
20
- let token = await dsm_1.newConfiguredDSMToken();
21
- let logger = new Logger_1.PLSLogger();
22
- return new ExportConfiguration_1.PLSExportConfiguration(exporter, logger, store, Object.assign(Object.assign({}, configuration), { accessToken: token }), exportMode, null);
23
- }
24
- exports.newDevExportConfiguration = newDevExportConfiguration;
25
- //# sourceMappingURL=configuration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../src/tests/casebuilders/configuration.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,oBAAoB;AACpB,UAAU;AACV,EAAE;AACF,2BAA2B;AAC3B,oDAAoD;AACpD,EAAE;;;AAOF,0FAA0F;AAC1F,iDAAiD;AACjD,+BAA8C;AAC9C,8DAA+D;AAC/D,gDAA4D;AAE5D,8GAA8G;AAC9G,iDAAiD;AAE1C,KAAK,UAAU,yBAAyB,CAC7C,QAAqB,EACrB,KAAwB,EACxB,aAAoC,8BAAqB,CAAC,EAAE;IAE5D,IAAI,aAAa,GAAG,IAAI,yCAAqB,EAAE,CAAC;IAChD,IAAI,KAAK,GAAG,MAAM,2BAAqB,EAAE,CAAC;IAE1C,IAAI,MAAM,GAAG,IAAI,kBAAS,EAAE,CAAC;IAC7B,OAAO,IAAI,4CAAsB,CAC/B,QAAQ,EACR,MAAM,EACN,KAAK,kCAEA,aAAa,KAChB,WAAW,EAAE,KAAK,KAEpB,UAAU,EACV,IAAI,CACL,CAAC;AACJ,CAAC;AApBD,8DAoBC"}
@@ -1,7 +0,0 @@
1
- import { DSMExecutionContext, DSMBridge } from '@supernova-studio/pulsar-language';
2
- import { DSMReferenceStore } from './../../model/dsm/DSMReferenceStore';
3
- import { PLSExporter } from './../../model/exporters/Exporter';
4
- export declare function newConfiguredDSMExecutionContext(exporter: PLSExporter): Promise<DSMExecutionContext>;
5
- export declare function newConfiguredDSMStore(): Promise<DSMReferenceStore>;
6
- export declare function newConfiguredDSMBridge(): Promise<DSMBridge>;
7
- export declare function newConfiguredDSMToken(): Promise<string>;
@@ -1,57 +0,0 @@
1
- "use strict";
2
- //
3
- // dsm.ts
4
- // Pulsar
5
- //
6
- // Created by Jiri Trecak.
7
- // Copyright © 2020 Supernova. All rights reserved.
8
- //
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.newConfiguredDSMToken = exports.newConfiguredDSMBridge = exports.newConfiguredDSMStore = exports.newConfiguredDSMExecutionContext = void 0;
11
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
12
- // MARK: - Imports
13
- const pulsar_language_1 = require("@supernova-studio/pulsar-language");
14
- const Logger_1 = require("@supernova-studio/pulsar-language/build/main/interpreter/loggers/Logger");
15
- const DSMReferenceStore_1 = require("./../../model/dsm/DSMReferenceStore");
16
- const BlueprintLoader_1 = require("./../../engine/loaders/BlueprintLoader");
17
- const TestConfiguration_1 = require("./../TestConfiguration");
18
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
19
- // MARK: - Convenience Configuration Construction
20
- async function newConfiguredDSMExecutionContext(exporter) {
21
- // Configure the DSM execution context
22
- let dsmBridge = await newConfiguredDSMBridge();
23
- let loader = new BlueprintLoader_1.PLSBlueprintLoader(exporter);
24
- let emitter = new pulsar_language_1.BLZMemoryBlueprintEmitter();
25
- let logger = new Logger_1.BLZLogger();
26
- let executionContext = new pulsar_language_1.DSMExecutionContext(loader, emitter, logger, dsmBridge, null);
27
- return executionContext;
28
- }
29
- exports.newConfiguredDSMExecutionContext = newConfiguredDSMExecutionContext;
30
- async function newConfiguredDSMStore() {
31
- let dsmBridge = await newConfiguredDSMBridge();
32
- let result = await dsmBridge.getDSMDataFromEndpoint('bff/structure', null);
33
- // Construct store from the result
34
- let store = new DSMReferenceStore_1.DSMReferenceStore(result);
35
- return store;
36
- }
37
- exports.newConfiguredDSMStore = newConfiguredDSMStore;
38
- async function newConfiguredDSMBridge() {
39
- // Configure DSM bridge, fetch access token
40
- let configuration = new TestConfiguration_1.UnitTestConfiguration();
41
- let token = await newConfiguredDSMToken();
42
- let dsmBridge = new pulsar_language_1.DSMBridge(Object.assign(Object.assign({}, configuration), { accessToken: token }));
43
- return dsmBridge;
44
- }
45
- exports.newConfiguredDSMBridge = newConfiguredDSMBridge;
46
- async function newConfiguredDSMToken() {
47
- let configuration = new TestConfiguration_1.UnitTestConfiguration();
48
- if (configuration.accessToken) {
49
- return configuration.accessToken;
50
- }
51
- else {
52
- let dsmToken = await pulsar_language_1.DSMBridge.getAccessToken(configuration.dsmEmail, configuration.dsmPass);
53
- return dsmToken;
54
- }
55
- }
56
- exports.newConfiguredDSMToken = newConfiguredDSMToken;
57
- //# sourceMappingURL=dsm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dsm.js","sourceRoot":"","sources":["../../../../src/tests/casebuilders/dsm.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,UAAU;AACV,UAAU;AACV,EAAE;AACF,2BAA2B;AAC3B,oDAAoD;AACpD,EAAE;;;AAEF,8GAA8G;AAC9G,kBAAkB;AAElB,uEAI2C;AAC3C,oGAAoG;AACpG,2EAAwE;AACxE,4EAA4E;AAE5E,8DAA+D;AAE/D,8GAA8G;AAC9G,iDAAiD;AAE1C,KAAK,UAAU,gCAAgC,CACpD,QAAqB;IAErB,sCAAsC;IACtC,IAAI,SAAS,GAAG,MAAM,sBAAsB,EAAE,CAAC;IAC/C,IAAI,MAAM,GAAG,IAAI,oCAAkB,CAAC,QAAQ,CAAC,CAAC;IAC9C,IAAI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SExporterSourceContextType } from '../../model/sources/ExporterSource';
3
- import { PLSExporterMapBlueprint } from '../../model/maps/ExporterMapBlueprint';
4
- export declare function newEmptyExporter(): PLSExporter;
5
- export declare function newFullExporter(): PLSExporter;
6
- export declare function newBlueprintFor(exporter: PLSExporter, definition: string, name: string, path: string | null, context: PLSExporterSourceContextType, targetsCI?: boolean, targetsSandbox?: boolean, targetsDocs?: boolean): PLSExporterSource;
7
- export declare function newGenericBlueprintFor(exporter: PLSExporter, id: string, definition: string): PLSExporterSource;
8
- export declare function newComponentBlueprintFor(exporter: PLSExporter, id: string, definition: string): PLSExporterSource;
9
- export declare function newComponentGroupBlueprintFor(exporter: PLSExporter, id: string, definition: string): PLSExporterSource;
10
- export declare function newTokenGroupBlueprintFor(exporter: PLSExporter, id: string, definition: string): PLSExporterSource;
11
- export declare function newTokenTypeBlueprintFor(exporter: PLSExporter, id: string, definition: string): PLSExporterSource;
12
- export declare function newThemeBlueprintFor(exporter: PLSExporter, id: string, definition: string): PLSExporterSource;
13
- export declare function newOutputInvokingBlueprint(blueprint: string, writeTo: string | null, writeUsing: string | null, exporter: PLSExporter): PLSExporterMapBlueprint;
@@ -1,120 +0,0 @@
1
- "use strict";
2
- //
3
- // modelObjects.ts
4
- // Pulsar
5
- //
6
- // Created by Jiri Trecak.
7
- // Copyright © 2020 Supernova. All rights reserved.
8
- //
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.newOutputInvokingBlueprint = exports.newThemeBlueprintFor = exports.newTokenTypeBlueprintFor = exports.newTokenGroupBlueprintFor = exports.newComponentGroupBlueprintFor = exports.newComponentBlueprintFor = exports.newGenericBlueprintFor = exports.newBlueprintFor = exports.newFullExporter = exports.newEmptyExporter = void 0;
11
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
12
- // MARK: - Imports
13
- const Exporter_1 = require("./../../model/exporters/Exporter");
14
- const ts_dedent_1 = require("ts-dedent");
15
- const ExporterSource_1 = require("../../model/sources/ExporterSource");
16
- const ExporterMapBlueprint_1 = require("../../model/maps/ExporterMapBlueprint");
17
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
18
- // MARK: - Convenience Model Objects Construction
19
- function newEmptyExporter() {
20
- let exporterData = {
21
- id: 'xxx-xxx-xxx',
22
- name: 'Token Exporter',
23
- description: 'This is a token exporter, exporting tokens. Duh.',
24
- version: '1.0.0',
25
- author: 'Jiri',
26
- homepage: 'https://supernova.io',
27
- tags: ['one', 'two'],
28
- source_dir: 'src'
29
- };
30
- return new Exporter_1.PLSExporter(exporterData);
31
- }
32
- exports.newEmptyExporter = newEmptyExporter;
33
- function newFullExporter() {
34
- let exporter = new Exporter_1.PLSExporter({
35
- name: 'Temporary Exporter',
36
- id: '123456789',
37
- author: 'Supernova',
38
- homepage: 'https://supernova.io',
39
- version: '1.0.0',
40
- description: 'Test Exporter',
41
- organization: 'Supernova Organization',
42
- icon: 'test/icon.png',
43
- source_dir: 'src',
44
- tags: ['foo', 'bar'],
45
- config: {
46
- sources: 'blueprints.json',
47
- output: 'output.json'
48
- },
49
- engines: {
50
- blazar: '1.0',
51
- supernova: '1.0'
52
- }
53
- });
54
- // Load one source
55
- let source = new ExporterSource_1.PLSExporterSource('bp.tokens.pr', 'src/path/to', ts_dedent_1.dedent(`
56
- Content of file for token type {{ tokenTypeId }}
57
- `));
58
- source.context = ExporterSource_1.PLSExporterSourceContextType.tokenType;
59
- exporter.linkSources([source]);
60
- // Load one map
61
- let map = new ExporterMapBlueprint_1.PLSExporterMapBlueprint({
62
- invoke: 'fm.token-stylesheet.pr',
63
- write_to: 'styles/{{ tokenTypeId }}s.css'
64
- });
65
- exporter.linkOutputs([map]);
66
- return exporter;
67
- }
68
- exports.newFullExporter = newFullExporter;
69
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
70
- // MARK: - Blueprint construction
71
- function newBlueprintFor(exporter, definition, name, path, context, targetsCI = true, targetsSandbox = false, targetsDocs = false) {
72
- let source = new ExporterSource_1.PLSExporterSource(name, path, definition);
73
- source.loadBlueprintConfiguration({
74
- context: context,
75
- targets_ci: targetsCI,
76
- targets_sandbox: targetsSandbox,
77
- targets_documentation: targetsDocs
78
- });
79
- exporter.storeNewSource(source);
80
- return source;
81
- }
82
- exports.newBlueprintFor = newBlueprintFor;
83
- function newGenericBlueprintFor(exporter, id, definition) {
84
- return newBlueprintFor(exporter, definition, id, null, ExporterSource_1.PLSExporterSourceContextType.generic);
85
- }
86
- exports.newGenericBlueprintFor = newGenericBlueprintFor;
87
- function newComponentBlueprintFor(exporter, id, definition) {
88
- return newBlueprintFor(exporter, definition, id, null, ExporterSource_1.PLSExporterSourceContextType.component);
89
- }
90
- exports.newComponentBlueprintFor = newComponentBlueprintFor;
91
- function newComponentGroupBlueprintFor(exporter, id, definition) {
92
- return newBlueprintFor(exporter, definition, id, null, ExporterSource_1.PLSExporterSourceContextType.componentGroup);
93
- }
94
- exports.newComponentGroupBlueprintFor = newComponentGroupBlueprintFor;
95
- function newTokenGroupBlueprintFor(exporter, id, definition) {
96
- return newBlueprintFor(exporter, definition, id, null, ExporterSource_1.PLSExporterSourceContextType.tokenGroup);
97
- }
98
- exports.newTokenGroupBlueprintFor = newTokenGroupBlueprintFor;
99
- function newTokenTypeBlueprintFor(exporter, id, definition) {
100
- return newBlueprintFor(exporter, definition, id, null, ExporterSource_1.PLSExporterSourceContextType.tokenType);
101
- }
102
- exports.newTokenTypeBlueprintFor = newTokenTypeBlueprintFor;
103
- function newThemeBlueprintFor(exporter, id, definition) {
104
- return newBlueprintFor(exporter, definition, id, null, ExporterSource_1.PLSExporterSourceContextType.theme);
105
- }
106
- exports.newThemeBlueprintFor = newThemeBlueprintFor;
107
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
108
- // MARK: - Map construction
109
- function newOutputInvokingBlueprint(blueprint, writeTo, writeUsing, exporter) {
110
- let data = {
111
- invoke: blueprint,
112
- write_to: writeTo,
113
- write_using: writeUsing
114
- };
115
- let output = new ExporterMapBlueprint_1.PLSExporterMapBlueprint(data);
116
- exporter.linkOutputs([output]);
117
- return output;
118
- }
119
- exports.newOutputInvokingBlueprint = newOutputInvokingBlueprint;
120
- //# sourceMappingURL=modelObjects.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modelObjects.js","sourceRoot":"","sources":["../../../../src/tests/casebuilders/modelObjects.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,mBAAmB;AACnB,UAAU;AACV,EAAE;AACF,2BAA2B;AAC3B,oDAAoD;AACpD,EAAE;;;AAEF,8GAA8G;AAC9G,kBAAkB;AAElB,+DAG0C;AAC1C,yCAAmC;AACnC,uEAG4C;AAC5C,gFAAgF;AAEhF,8GAA8G;AAC9G,iDAAiD;AAEjD,SAAgB,gBAAgB;IAC9B,IAAI,YAAY,GAAqB;QACnC,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,sBAAsB;QAChC,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QACpB,UAAU,EAAE,KAAK;KAClB,CAAC;IAEF,OAAO,IAAI,sBAAW,CAAC,YAAY,CAAC,CAAC;AACvC,CAAC;AAbD,4CAaC;AAED,SAAgB,eAAe;IAC7B,IAAI,QAAQ,GAAG,IAAI,sBAAW,CAAC;QAC7B,IAAI,EAAE,oBAAoB;QAC1B,EAAE,EAAE,WAAW;QACf,MAAM,EAAE,WAAW;QACnB,QAAQ,EAAE,sBAAsB;QAChC,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,eAAe;QAC5B,YAAY,EAAE,wBAAwB;QACtC,IAAI,EAAE,eAAe;QACrB,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,CAAC,KAA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;QACjB,WAAW,EAAE,UAAU;KACxB,CAAC;IAEF,IAAI,MAAM,GAAG,IAAI,8CAAuB,CAAC,IAAI,CAAC,CAAC;IAC/C,QAAQ,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IAE/B,OAAO,MAAM,CAAC;AAChB,CAAC;AAhBD,gEAgBC"}
@@ -1,27 +0,0 @@
1
- import { PLSLoggerDefaultMessage } from './LoggerDefaultMessages';
2
- export declare enum PLSLogType {
3
- success = 0,
4
- info = 1,
5
- warning = 2,
6
- error = 3,
7
- user = 4
8
- }
9
- export interface PLSLog {
10
- id: string;
11
- time: Date;
12
- type: PLSLogType;
13
- message: string;
14
- }
15
- export declare class PLSLogger {
16
- logs: Array<PLSLog>;
17
- constructor();
18
- emptyLogs(): void;
19
- store(log: PLSLog): PLSLog;
20
- logSuccess(message: string, id: string): PLSLog;
21
- logInfo(message: string, id: string): PLSLog;
22
- logWarning(message: string, id: string): PLSLog;
23
- logError(message: string, id: string): PLSLog;
24
- logUser(message: string, id: string): PLSLog;
25
- logType(type: PLSLogType, message: string, id: string): PLSLog;
26
- logSystem(systemMessage: PLSLoggerDefaultMessage, id: string): PLSLog;
27
- }
@@ -1,98 +0,0 @@
1
- "use strict";
2
- //
3
- // PLSLogger.ts
4
- // Blazar
5
- //
6
- // Created by Jiri Trecak.
7
- // Copyright © 2020 Supernova. All rights reserved.
8
- //
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.PLSLogger = exports.PLSLogType = void 0;
11
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
12
- // MARK: - Interpreter Definition
13
- var PLSLogType;
14
- (function (PLSLogType) {
15
- PLSLogType[PLSLogType["success"] = 0] = "success";
16
- PLSLogType[PLSLogType["info"] = 1] = "info";
17
- PLSLogType[PLSLogType["warning"] = 2] = "warning";
18
- PLSLogType[PLSLogType["error"] = 3] = "error";
19
- PLSLogType[PLSLogType["user"] = 4] = "user";
20
- })(PLSLogType = exports.PLSLogType || (exports.PLSLogType = {}));
21
- class PLSLogger {
22
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
23
- // MARK: - Init
24
- constructor() {
25
- this.logs = [];
26
- }
27
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
28
- // MARK: - Log manipulation
29
- emptyLogs() {
30
- this.logs = [];
31
- }
32
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
33
- // MARK: - Log creation
34
- store(log) {
35
- this.logs.push(log);
36
- return log;
37
- }
38
- logSuccess(message, id) {
39
- let log = {
40
- id: id,
41
- message: message,
42
- type: PLSLogType.success,
43
- time: new Date()
44
- };
45
- return this.store(log);
46
- }
47
- logInfo(message, id) {
48
- let log = {
49
- id: id,
50
- message: message,
51
- type: PLSLogType.info,
52
- time: new Date()
53
- };
54
- return this.store(log);
55
- }
56
- logWarning(message, id) {
57
- let log = {
58
- id: id,
59
- message: message,
60
- type: PLSLogType.warning,
61
- time: new Date()
62
- };
63
- return this.store(log);
64
- }
65
- logError(message, id) {
66
- let log = {
67
- id: id,
68
- message: message,
69
- type: PLSLogType.error,
70
- time: new Date()
71
- };
72
- return this.store(log);
73
- }
74
- logUser(message, id) {
75
- let log = {
76
- id: id,
77
- message: message,
78
- type: PLSLogType.user,
79
- time: new Date()
80
- };
81
- return this.store(log);
82
- }
83
- logType(type, message, id) {
84
- let log = {
85
- id: id,
86
- message: message,
87
- type: type,
88
- time: new Date()
89
- };
90
- return this.store(log);
91
- }
92
- // Note not because only core is allowed to use system messages
93
- logSystem(systemMessage, id) {
94
- return this.logType(systemMessage.type, systemMessage.message, id);
95
- }
96
- }
97
- exports.PLSLogger = PLSLogger;
98
- //# sourceMappingURL=Logger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../../src/tools/Log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essage {
3
- message: string;
4
- type: PLSLogType;
5
- }
6
- export declare class PLSLoggerDefaultMessages {
7
- static compilerStart: PLSLoggerDefaultMessage;
8
- static compilerBuildSuccessful: PLSLoggerDefaultMessage;
9
- static compilerBuildFailure: PLSLoggerDefaultMessage;
10
- static interpreterStart: PLSLoggerDefaultMessage;
11
- static interpreterRenderingSuccessful: PLSLoggerDefaultMessage;
12
- static interpreterRenderingFailure: PLSLoggerDefaultMessage;
13
- }