@supernova-studio/pulsar-core 1.0.32 → 1.0.36

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 (241) hide show
  1. package/build/browser/pulsar-core-dev.js +67725 -0
  2. package/build/browser/pulsar-core-dev.js.map +1 -0
  3. package/build/browser/pulsar-core.js +7 -0
  4. package/build/browser/pulsar-core.js.LICENSE.txt +31 -0
  5. package/build/browser/pulsar-core.js.map +1 -0
  6. package/build/main/pulsar-core.js +22495 -0
  7. package/build/main/pulsar-core.js.map +1 -0
  8. package/build/typings/core/tsconfig.typings.tsbuildinfo +5035 -0
  9. package/package.json +19 -15
  10. package/tsconfig.typings.json +19 -0
  11. package/webpack.config.browser.dev.js +52 -0
  12. package/webpack.config.browser.js +52 -0
  13. package/webpack.config.main.js +45 -0
  14. package/build/browser/pulsar.js +0 -142584
  15. package/build/browser/pulsar.min.js +0 -270
  16. package/build/main/browser-bundle.d.ts +0 -1
  17. package/build/main/browser-bundle.js +0 -16
  18. package/build/main/browser-bundle.js.map +0 -1
  19. package/build/main/engine/ExportEngine.d.ts +0 -17
  20. package/build/main/engine/ExportEngine.js +0 -122
  21. package/build/main/engine/ExportEngine.js.map +0 -1
  22. package/build/main/engine/configuration/ExportConfiguration.d.ts +0 -18
  23. package/build/main/engine/configuration/ExportConfiguration.js +0 -47
  24. package/build/main/engine/configuration/ExportConfiguration.js.map +0 -1
  25. package/build/main/engine/generation/ExportDataProducer.d.ts +0 -15
  26. package/build/main/engine/generation/ExportDataProducer.js +0 -100
  27. package/build/main/engine/generation/ExportDataProducer.js.map +0 -1
  28. package/build/main/engine/generation/queue/ExportDataQueue.d.ts +0 -16
  29. package/build/main/engine/generation/queue/ExportDataQueue.js +0 -72
  30. package/build/main/engine/generation/queue/ExportDataQueue.js.map +0 -1
  31. package/build/main/engine/generation/queue/ExportDataQueueOperation.d.ts +0 -6
  32. package/build/main/engine/generation/queue/ExportDataQueueOperation.js +0 -36
  33. package/build/main/engine/generation/queue/ExportDataQueueOperation.js.map +0 -1
  34. package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.d.ts +0 -7
  35. package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.js +0 -54
  36. package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.js.map +0 -1
  37. package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.d.ts +0 -7
  38. package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.js +0 -40
  39. package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.js.map +0 -1
  40. package/build/main/engine/generation/requests/ExportDataRequest.d.ts +0 -19
  41. package/build/main/engine/generation/requests/ExportDataRequest.js +0 -55
  42. package/build/main/engine/generation/requests/ExportDataRequest.js.map +0 -1
  43. package/build/main/engine/generation/requests/ExportDataRequestDataStore.d.ts +0 -16
  44. package/build/main/engine/generation/requests/ExportDataRequestDataStore.js +0 -57
  45. package/build/main/engine/generation/requests/ExportDataRequestDataStore.js.map +0 -1
  46. package/build/main/engine/generation/requests/ExportDataRequestNameStore.d.ts +0 -22
  47. package/build/main/engine/generation/requests/ExportDataRequestNameStore.js +0 -86
  48. package/build/main/engine/generation/requests/ExportDataRequestNameStore.js.map +0 -1
  49. package/build/main/engine/generation/requests/ExportDataRequestProducer.d.ts +0 -16
  50. package/build/main/engine/generation/requests/ExportDataRequestProducer.js +0 -149
  51. package/build/main/engine/generation/requests/ExportDataRequestProducer.js.map +0 -1
  52. package/build/main/engine/generation/requests/ExportDataResponse.d.ts +0 -13
  53. package/build/main/engine/generation/requests/ExportDataResponse.js +0 -30
  54. package/build/main/engine/generation/requests/ExportDataResponse.js.map +0 -1
  55. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.d.ts +0 -14
  56. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.js +0 -76
  57. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.js.map +0 -1
  58. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.d.ts +0 -13
  59. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.js +0 -47
  60. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.js.map +0 -1
  61. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.d.ts +0 -13
  62. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.js +0 -47
  63. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.js.map +0 -1
  64. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.d.ts +0 -11
  65. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.js +0 -43
  66. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.js.map +0 -1
  67. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.d.ts +0 -13
  68. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.js +0 -47
  69. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.js.map +0 -1
  70. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.d.ts +0 -13
  71. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.js +0 -47
  72. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.js.map +0 -1
  73. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.d.ts +0 -13
  74. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.js +0 -47
  75. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.js.map +0 -1
  76. package/build/main/engine/items/ExportItemProducer.d.ts +0 -14
  77. package/build/main/engine/items/ExportItemProducer.js +0 -70
  78. package/build/main/engine/items/ExportItemProducer.js.map +0 -1
  79. package/build/main/engine/items/construction/ExportItem.d.ts +0 -8
  80. package/build/main/engine/items/construction/ExportItem.js +0 -25
  81. package/build/main/engine/items/construction/ExportItem.js.map +0 -1
  82. package/build/main/engine/items/construction/ExportItemBuilder.d.ts +0 -9
  83. package/build/main/engine/items/construction/ExportItemBuilder.js +0 -43
  84. package/build/main/engine/items/construction/ExportItemBuilder.js.map +0 -1
  85. package/build/main/engine/items/queue/ExportItemQueue.d.ts +0 -16
  86. package/build/main/engine/items/queue/ExportItemQueue.js +0 -70
  87. package/build/main/engine/items/queue/ExportItemQueue.js.map +0 -1
  88. package/build/main/engine/items/queue/ExportItemQueueOperation.d.ts +0 -6
  89. package/build/main/engine/items/queue/ExportItemQueueOperation.js +0 -36
  90. package/build/main/engine/items/queue/ExportItemQueueOperation.js.map +0 -1
  91. package/build/main/engine/items/requests/ExportItemRequest.d.ts +0 -16
  92. package/build/main/engine/items/requests/ExportItemRequest.js +0 -68
  93. package/build/main/engine/items/requests/ExportItemRequest.js.map +0 -1
  94. package/build/main/engine/items/requests/ExportItemRequestProducer.d.ts +0 -8
  95. package/build/main/engine/items/requests/ExportItemRequestProducer.js +0 -24
  96. package/build/main/engine/items/requests/ExportItemRequestProducer.js.map +0 -1
  97. package/build/main/engine/items/requests/ExportItemResponse.d.ts +0 -9
  98. package/build/main/engine/items/requests/ExportItemResponse.js +0 -25
  99. package/build/main/engine/items/requests/ExportItemResponse.js.map +0 -1
  100. package/build/main/engine/items/requests/ExportItemResponseProducer.d.ts +0 -7
  101. package/build/main/engine/items/requests/ExportItemResponseProducer.js +0 -45
  102. package/build/main/engine/items/requests/ExportItemResponseProducer.js.map +0 -1
  103. package/build/main/engine/loaders/BlueprintLoader.d.ts +0 -9
  104. package/build/main/engine/loaders/BlueprintLoader.js +0 -55
  105. package/build/main/engine/loaders/BlueprintLoader.js.map +0 -1
  106. package/build/main/engine/writing/queue/ExportWriterQueue.d.ts +0 -16
  107. package/build/main/engine/writing/queue/ExportWriterQueue.js +0 -70
  108. package/build/main/engine/writing/queue/ExportWriterQueue.js.map +0 -1
  109. package/build/main/engine/writing/queue/ExportWriterQueueOperation.d.ts +0 -6
  110. package/build/main/engine/writing/queue/ExportWriterQueueOperation.js +0 -36
  111. package/build/main/engine/writing/queue/ExportWriterQueueOperation.js.map +0 -1
  112. package/build/main/engine/writing/requests/ExportWriterRequest.d.ts +0 -14
  113. package/build/main/engine/writing/requests/ExportWriterRequest.js +0 -40
  114. package/build/main/engine/writing/requests/ExportWriterRequest.js.map +0 -1
  115. package/build/main/engine/writing/requests/ExportWriterRequestProducer.d.ts +0 -8
  116. package/build/main/engine/writing/requests/ExportWriterRequestProducer.js +0 -30
  117. package/build/main/engine/writing/requests/ExportWriterRequestProducer.js.map +0 -1
  118. package/build/main/engine/writing/requests/ExportWriterResponse.d.ts +0 -9
  119. package/build/main/engine/writing/requests/ExportWriterResponse.js +0 -25
  120. package/build/main/engine/writing/requests/ExportWriterResponse.js.map +0 -1
  121. package/build/main/engine/writing/requests/ExportWriterResponseProducer.d.ts +0 -7
  122. package/build/main/engine/writing/requests/ExportWriterResponseProducer.js +0 -40
  123. package/build/main/engine/writing/requests/ExportWriterResponseProducer.js.map +0 -1
  124. package/build/main/engine/writing/writers/ExportItemWriter.d.ts +0 -14
  125. package/build/main/engine/writing/writers/ExportItemWriter.js +0 -70
  126. package/build/main/engine/writing/writers/ExportItemWriter.js.map +0 -1
  127. package/build/main/engine/writing/writers/ExportWriterRuleProcessor.d.ts +0 -9
  128. package/build/main/engine/writing/writers/ExportWriterRuleProcessor.js +0 -63
  129. package/build/main/engine/writing/writers/ExportWriterRuleProcessor.js.map +0 -1
  130. package/build/main/engine/writing/writers/memory/ExportWriterMemory.d.ts +0 -4
  131. package/build/main/engine/writing/writers/memory/ExportWriterMemory.js +0 -29
  132. package/build/main/engine/writing/writers/memory/ExportWriterMemory.js.map +0 -1
  133. package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.d.ts +0 -5
  134. package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.js +0 -59
  135. package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.js.map +0 -1
  136. package/build/main/engine/writing/writers/memory/ExportWriterStore.d.ts +0 -5
  137. package/build/main/engine/writing/writers/memory/ExportWriterStore.js +0 -33
  138. package/build/main/engine/writing/writers/memory/ExportWriterStore.js.map +0 -1
  139. package/build/main/exports.d.ts +0 -5
  140. package/build/main/exports.js +0 -15
  141. package/build/main/exports.js.map +0 -1
  142. package/build/main/index.d.ts +0 -1
  143. package/build/main/index.js +0 -14
  144. package/build/main/index.js.map +0 -1
  145. package/build/main/model/dsm/DSMReferenceStore.d.ts +0 -28
  146. package/build/main/model/dsm/DSMReferenceStore.js +0 -100
  147. package/build/main/model/dsm/DSMReferenceStore.js.map +0 -1
  148. package/build/main/model/exporters/Exporter.d.ts +0 -53
  149. package/build/main/model/exporters/Exporter.js +0 -106
  150. package/build/main/model/exporters/Exporter.js.map +0 -1
  151. package/build/main/model/maps/ExporterMapBlueprint.d.ts +0 -12
  152. package/build/main/model/maps/ExporterMapBlueprint.js +0 -39
  153. package/build/main/model/maps/ExporterMapBlueprint.js.map +0 -1
  154. package/build/main/model/sources/ExporterSource.d.ts +0 -26
  155. package/build/main/model/sources/ExporterSource.js +0 -64
  156. package/build/main/model/sources/ExporterSource.js.map +0 -1
  157. package/build/main/pulsar/Pulsar.d.ts +0 -105
  158. package/build/main/pulsar/Pulsar.js +0 -353
  159. package/build/main/pulsar/Pulsar.js.map +0 -1
  160. package/build/main/pulsar/PulsarInterface.d.ts +0 -152
  161. package/build/main/pulsar/PulsarInterface.js +0 -37
  162. package/build/main/pulsar/PulsarInterface.js.map +0 -1
  163. package/build/main/pulsar/PulsarStaticAnalysis.d.ts +0 -26
  164. package/build/main/pulsar/PulsarStaticAnalysis.js +0 -69
  165. package/build/main/pulsar/PulsarStaticAnalysis.js.map +0 -1
  166. package/build/main/pulsar/PulsarStaticAnalysisInterface.d.ts +0 -13
  167. package/build/main/pulsar/PulsarStaticAnalysisInterface.js +0 -10
  168. package/build/main/pulsar/PulsarStaticAnalysisInterface.js.map +0 -1
  169. package/build/main/pulsar/managers/PulsarBlueprintManager.d.ts +0 -16
  170. package/build/main/pulsar/managers/PulsarBlueprintManager.js +0 -76
  171. package/build/main/pulsar/managers/PulsarBlueprintManager.js.map +0 -1
  172. package/build/main/pulsar/managers/PulsarCIManager.d.ts +0 -25
  173. package/build/main/pulsar/managers/PulsarCIManager.js +0 -220
  174. package/build/main/pulsar/managers/PulsarCIManager.js.map +0 -1
  175. package/build/main/pulsar/managers/PulsarCodeManager.d.ts +0 -24
  176. package/build/main/pulsar/managers/PulsarCodeManager.js +0 -180
  177. package/build/main/pulsar/managers/PulsarCodeManager.js.map +0 -1
  178. package/build/main/pulsar/managers/PulsarConfigurationManager.d.ts +0 -17
  179. package/build/main/pulsar/managers/PulsarConfigurationManager.js +0 -88
  180. package/build/main/pulsar/managers/PulsarConfigurationManager.js.map +0 -1
  181. package/build/main/pulsar/managers/PulsarExporterManager.d.ts +0 -25
  182. package/build/main/pulsar/managers/PulsarExporterManager.js +0 -121
  183. package/build/main/pulsar/managers/PulsarExporterManager.js.map +0 -1
  184. package/build/main/pulsar/managers/generators/PulsarExporterConfigFileGenerator.d.ts +0 -12
  185. package/build/main/pulsar/managers/generators/PulsarExporterConfigFileGenerator.js +0 -140
  186. package/build/main/pulsar/managers/generators/PulsarExporterConfigFileGenerator.js.map +0 -1
  187. package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.d.ts +0 -8
  188. package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.js +0 -45
  189. package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.js.map +0 -1
  190. package/build/main/pulsar/managers/generators/PulsarExporterSourceFileGenerator.d.ts +0 -9
  191. package/build/main/pulsar/managers/generators/PulsarExporterSourceFileGenerator.js +0 -45
  192. package/build/main/pulsar/managers/generators/PulsarExporterSourceFileGenerator.js.map +0 -1
  193. package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.d.ts +0 -7
  194. package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.js +0 -63
  195. package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.js.map +0 -1
  196. package/build/main/pulsar/managers/generators/PulsarFileGenerator.d.ts +0 -20
  197. package/build/main/pulsar/managers/generators/PulsarFileGenerator.js +0 -77
  198. package/build/main/pulsar/managers/generators/PulsarFileGenerator.js.map +0 -1
  199. package/build/main/pulsar/managers/loaders/PulsarBaseLoader.d.ts +0 -5
  200. package/build/main/pulsar/managers/loaders/PulsarBaseLoader.js +0 -28
  201. package/build/main/pulsar/managers/loaders/PulsarBaseLoader.js.map +0 -1
  202. package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.d.ts +0 -11
  203. package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.js +0 -98
  204. package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.js.map +0 -1
  205. package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.d.ts +0 -9
  206. package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.js +0 -81
  207. package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.js.map +0 -1
  208. package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.d.ts +0 -11
  209. package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.js +0 -106
  210. package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.js.map +0 -1
  211. package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.d.ts +0 -12
  212. package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.js +0 -143
  213. package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.js.map +0 -1
  214. package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.d.ts +0 -12
  215. package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.js +0 -115
  216. package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.js.map +0 -1
  217. package/build/main/pulsar/managers/validators/PulsarExporterConfigFileValidator.d.ts +0 -7
  218. package/build/main/pulsar/managers/validators/PulsarExporterConfigFileValidator.js +0 -124
  219. package/build/main/pulsar/managers/validators/PulsarExporterConfigFileValidator.js.map +0 -1
  220. package/build/main/tests/TestConfiguration.d.ts +0 -9
  221. package/build/main/tests/TestConfiguration.js +0 -25
  222. package/build/main/tests/TestConfiguration.js.map +0 -1
  223. package/build/main/tests/casebuilders/ci.d.ts +0 -12
  224. package/build/main/tests/casebuilders/ci.js +0 -38
  225. package/build/main/tests/casebuilders/ci.js.map +0 -1
  226. package/build/main/tests/casebuilders/configuration.d.ts +0 -5
  227. package/build/main/tests/casebuilders/configuration.js +0 -25
  228. package/build/main/tests/casebuilders/configuration.js.map +0 -1
  229. package/build/main/tests/casebuilders/dsm.d.ts +0 -7
  230. package/build/main/tests/casebuilders/dsm.js +0 -57
  231. package/build/main/tests/casebuilders/dsm.js.map +0 -1
  232. package/build/main/tests/casebuilders/modelObjects.d.ts +0 -13
  233. package/build/main/tests/casebuilders/modelObjects.js +0 -120
  234. package/build/main/tests/casebuilders/modelObjects.js.map +0 -1
  235. package/build/main/tools/Logger.d.ts +0 -27
  236. package/build/main/tools/Logger.js +0 -98
  237. package/build/main/tools/Logger.js.map +0 -1
  238. package/build/main/tools/LoggerDefaultMessages.d.ts +0 -13
  239. package/build/main/tools/LoggerDefaultMessages.js +0 -41
  240. package/build/main/tools/LoggerDefaultMessages.js.map +0 -1
  241. package/build/tsconfig.tsbuildinfo +0 -3045
@@ -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.PCPulsarCIManager(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,+BAAoE;AACpE,2EAAyE;AACzE,iDAAiD;AACjD,mDAA2D;AAa3D,8GAA8G;AAC9G,iDAAiD;AAE1C,KAAK,UAAU,iBAAiB,CAAC,IAAgB,EAAE,YAAkC;IAC1F,2CAA2C;IAC3C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,iBAErC,WAAW,EAAE,IAAI,CAAC,WAAW,IAC1B,IAAI,CAAC,aAAa,CAAC,eAAe,GAEvC,YAAY,CACb,CAAA;AACH,CAAC;AATD,8CASC;AAEM,KAAK,UAAU,iBAAiB;IACrC,kCAAkC;IAClC,IAAI,QAAQ,GAAG,+BAAgB,EAAE,CAAA;IACjC,IAAI,iBAAiB,GAAG,MAAM,2BAAqB,EAAE,CAAA;IACrD,IAAI,aAAa,GAAG,MAAM,yCAAyB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAA;IAChF,IAAI,KAAK,GAAG,MAAM,2BAAqB,EAAE,CAAA;IAEzC,2BAA2B;IAC3B,IAAI,SAAS,GAAG,IAAI,mCAAiB,CAAC,QAAQ,CAAC,CAAA;IAE/C,OAAO;QACL,QAAQ,EAAE,QAAQ;QAClB,aAAa,EAAE,aAAa;QAC5B,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC;AAhBD,8CAgBC"}
@@ -1,5 +0,0 @@
1
- import { PCExporter } from './../../model/exporters/Exporter';
2
- import { DSMReferenceStore } from './../../model/dsm/DSMReferenceStore';
3
- import { PCExportConfiguration } from './../../engine/configuration/ExportConfiguration';
4
- import { PCPulsarExporterMode } from '../../pulsar/Pulsar';
5
- export declare function newDevExportConfiguration(exporter: PCExporter, store: DSMReferenceStore, exportMode?: PCPulsarExporterMode): Promise<PCExportConfiguration>;
@@ -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.PCPulsarExporterMode.ci) {
19
- let configuration = new TestConfiguration_1.UnitTestConfiguration();
20
- let token = await dsm_1.newConfiguredDSMToken();
21
- let logger = new Logger_1.PCLogger();
22
- return new ExportConfiguration_1.PCExportConfiguration(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,0FAAwF;AACxF,iDAA+C;AAC/C,+BAA6C;AAC7C,8DAA8D;AAC9D,gDAA0D;AAE1D,8GAA8G;AAC9G,iDAAiD;AAE1C,KAAK,UAAU,yBAAyB,CAC7C,QAAoB,EACpB,KAAwB,EACxB,aAAmC,6BAAoB,CAAC,EAAE;IAE1D,IAAI,aAAa,GAAG,IAAI,yCAAqB,EAAE,CAAA;IAC/C,IAAI,KAAK,GAAG,MAAM,2BAAqB,EAAE,CAAA;IAEzC,IAAI,MAAM,GAAG,IAAI,iBAAQ,EAAE,CAAA;IAC3B,OAAO,IAAI,2CAAqB,CAC9B,QAAQ,EACR,MAAM,EACN,KAAK,kCAEA,aAAa,KAChB,WAAW,EAAE,KAAK,KAEpB,UAAU,EACV,IAAI,CACL,CAAA;AACH,CAAC;AApBD,8DAoBC"}
@@ -1,7 +0,0 @@
1
- import { DSMExecutionContext, DSMBridge } from '@supernova-studio/pulsar-language/build/main';
2
- import { DSMReferenceStore } from './../../model/dsm/DSMReferenceStore';
3
- import { PCExporter } from './../../model/exporters/Exporter';
4
- export declare function newConfiguredDSMExecutionContext(exporter: PCExporter): 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 main_1 = require("@supernova-studio/pulsar-language/build/main");
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.PCBlueprintLoader(exporter);
24
- let emitter = new main_1.PLMemoryBlueprintEmitter();
25
- let logger = new Logger_1.PLLogger();
26
- let executionContext = new main_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 main_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 main_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,uEAAuH;AACvH,oGAAkG;AAClG,2EAAuE;AACvE,4EAA0E;AAE1E,8DAA8D;AAE9D,8GAA8G;AAC9G,iDAAiD;AAE1C,KAAK,UAAU,gCAAgC,CAAC,QAAoB;IACzE,sCAAsC;IACtC,IAAI,SAAS,GAAG,MAAM,sBAAsB,EAAE,CAAA;IAC9C,IAAI,MAAM,GAAG,IAAI,mCAAiB,CAAC,QAAQ,CAAC,CAAA;IAC5C,IAAI,OAAO,GAAG,IAAI,+BAAwB,EAAE,CAAA;IAC5C,IAAI,MAAM,GAAG,IAAI,iBAAQ,EAAE,CAAA;IAC3B,IAAI,gBAAgB,GAAG,IAAI,0BAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAA;IAExF,OAAO,gBAAgB,CAAA;AACzB,CAAC;AATD,4EASC;AAEM,KAAK,UAAU,qBAAqB;IACzC,IAAI,SAAS,GAAG,MAAM,sBAAsB,EAAE,CAAA;IAC9C,IAAI,MAAM,GAAG,MAAM,SAAS,CAAC,sBAAsB,CAAC,eAAe,EAAE,IAAI,CAAC,CAAA;IAE1E,kCAAkC;IAClC,IAAI,KAAK,GAAG,IAAI,qCAAiB,CAAC,MAAM,CAAC,CAAA;IACzC,OAAO,KAAK,CAAA;AACd,CAAC;AAPD,sDAOC;AAEM,KAAK,UAAU,sBAAsB;IAC1C,2CAA2C;IAC3C,IAAI,aAAa,GAAG,IAAI,yCAAqB,EAAE,CAAA;IAC/C,IAAI,KAAK,GAAG,MAAM,qBAAqB,EAAE,CAAA;IACzC,IAAI,SAAS,GAAG,IAAI,gBAAS,iCACxB,aAAa,KAChB,WAAW,EAAE,KAAK,IAClB,CAAA;IAEF,OAAO,SAAS,CAAA;AAClB,CAAC;AAVD,wDAUC;AAEM,KAAK,UAAU,qBAAqB;IACzC,IAAI,aAAa,GAAG,IAAI,yCAAqB,EAAE,CAAA;IAC/C,IAAI,aAAa,CAAC,WAAW,EAAE;QAC7B,OAAO,aAAa,CAAC,WAAW,CAAA;KACjC;SAAM;QACL,IAAI,QAAQ,GAAG,MAAM,gBAAS,CAAC,cAAc,CAAC,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,CAAA;QAC5F,OAAO,QAAQ,CAAA;KAChB;AACH,CAAC;AARD,sDAQC"}
@@ -1,13 +0,0 @@
1
- import { PCExporter } from './../../model/exporters/Exporter';
2
- import { PCExporterSource, PCExporterSourceContextType } from '../../model/sources/ExporterSource';
3
- import { PCExporterMapBlueprint } from '../../model/maps/ExporterMapBlueprint';
4
- export declare function newEmptyExporter(): PCExporter;
5
- export declare function newFullExporter(): PCExporter;
6
- export declare function newBlueprintFor(exporter: PCExporter, definition: string, name: string, path: string | null, context: PCExporterSourceContextType, targetsCI?: boolean, targetsSandbox?: boolean, targetsDocs?: boolean): PCExporterSource;
7
- export declare function newGenericBlueprintFor(exporter: PCExporter, id: string, definition: string): PCExporterSource;
8
- export declare function newComponentBlueprintFor(exporter: PCExporter, id: string, definition: string): PCExporterSource;
9
- export declare function newComponentGroupBlueprintFor(exporter: PCExporter, id: string, definition: string): PCExporterSource;
10
- export declare function newTokenGroupBlueprintFor(exporter: PCExporter, id: string, definition: string): PCExporterSource;
11
- export declare function newTokenTypeBlueprintFor(exporter: PCExporter, id: string, definition: string): PCExporterSource;
12
- export declare function newThemeBlueprintFor(exporter: PCExporter, id: string, definition: string): PCExporterSource;
13
- export declare function newOutputInvokingBlueprint(blueprint: string, writeTo: string | null, writeUsing: string | null, exporter: PCExporter): PCExporterMapBlueprint;
@@ -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.PCExporter(exporterData);
31
- }
32
- exports.newEmptyExporter = newEmptyExporter;
33
- function newFullExporter() {
34
- let exporter = new Exporter_1.PCExporter({
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
- pulsar: '1.0',
51
- supernova: '1.0'
52
- }
53
- });
54
- // Load one source
55
- let source = new ExporterSource_1.PCExporterSource('bp.tokens.pr', 'src/path/to', ts_dedent_1.dedent(`
56
- Content of file for token type {{ tokenTypeId }}
57
- `));
58
- source.context = ExporterSource_1.PCExporterSourceContextType.tokenType;
59
- exporter.linkSources([source]);
60
- // Load one map
61
- let map = new ExporterMapBlueprint_1.PCExporterMapBlueprint({
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.PCExporterSource(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.PCExporterSourceContextType.generic);
85
- }
86
- exports.newGenericBlueprintFor = newGenericBlueprintFor;
87
- function newComponentBlueprintFor(exporter, id, definition) {
88
- return newBlueprintFor(exporter, definition, id, null, ExporterSource_1.PCExporterSourceContextType.component);
89
- }
90
- exports.newComponentBlueprintFor = newComponentBlueprintFor;
91
- function newComponentGroupBlueprintFor(exporter, id, definition) {
92
- return newBlueprintFor(exporter, definition, id, null, ExporterSource_1.PCExporterSourceContextType.componentGroup);
93
- }
94
- exports.newComponentGroupBlueprintFor = newComponentGroupBlueprintFor;
95
- function newTokenGroupBlueprintFor(exporter, id, definition) {
96
- return newBlueprintFor(exporter, definition, id, null, ExporterSource_1.PCExporterSourceContextType.tokenGroup);
97
- }
98
- exports.newTokenGroupBlueprintFor = newTokenGroupBlueprintFor;
99
- function newTokenTypeBlueprintFor(exporter, id, definition) {
100
- return newBlueprintFor(exporter, definition, id, null, ExporterSource_1.PCExporterSourceContextType.tokenType);
101
- }
102
- exports.newTokenTypeBlueprintFor = newTokenTypeBlueprintFor;
103
- function newThemeBlueprintFor(exporter, id, definition) {
104
- return newBlueprintFor(exporter, definition, id, null, ExporterSource_1.PCExporterSourceContextType.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.PCExporterMapBlueprint(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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- warning = 2,
6
- error = 3,
7
- user = 4
8
- }
9
- export interface PCLog {
10
- id: string;
11
- time: Date;
12
- type: PCLogType;
13
- message: string;
14
- }
15
- export declare class PCLogger {
16
- logs: Array<PCLog>;
17
- constructor();
18
- emptyLogs(): void;
19
- store(log: PCLog): PCLog;
20
- logSuccess(message: string, id: string): PCLog;
21
- logInfo(message: string, id: string): PCLog;
22
- logWarning(message: string, id: string): PCLog;
23
- logError(message: string, id: string): PCLog;
24
- logUser(message: string, id: string): PCLog;
25
- logType(type: PCLogType, message: string, id: string): PCLog;
26
- logSystem(systemMessage: PCLoggerDefaultMessage, id: string): PCLog;
27
- }
@@ -1,98 +0,0 @@
1
- "use strict";
2
- //
3
- // PCLogger.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.PCLogger = exports.PCLogType = void 0;
11
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
12
- // MARK: - Interpreter Definition
13
- var PCLogType;
14
- (function (PCLogType) {
15
- PCLogType[PCLogType["success"] = 0] = "success";
16
- PCLogType[PCLogType["info"] = 1] = "info";
17
- PCLogType[PCLogType["warning"] = 2] = "warning";
18
- PCLogType[PCLogType["error"] = 3] = "error";
19
- PCLogType[PCLogType["user"] = 4] = "user";
20
- })(PCLogType = exports.PCLogType || (exports.PCLogType = {}));
21
- class PCLogger {
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: PCLogType.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: PCLogType.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: PCLogType.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: PCLogType.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: PCLogType.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.PCLogger = PCLogger;
98
- //# sourceMappingURL=Logger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../../src/tools/Logger.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,eAAe;AACf,UAAU;AACV,EAAE;AACF,2BAA2B;AAC3B,oDAAoD;AACpD,EAAE;;;AAOF,8GAA8G;AAC9G,iCAAiC;AAEjC,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,+CAAO,CAAA;IACP,yCAAI,CAAA;IACJ,+CAAO,CAAA;IACP,2CAAK,CAAA;IACL,yCAAI,CAAA;AACN,CAAC,EANW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAMpB;AASD,MAAa,QAAQ;IASnB,0GAA0G;IAC1G,eAAe;IA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I,EAAE;SACjB,CAAA;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACxB,CAAC;IAED,OAAO,CAAC,OAAe,EAAE,EAAU;QACjC,IAAI,GAAG,GAAU;YACf,EAAE,EAAE,EAAE;YACN,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,SAAS,CAAC,IAAI;YACpB,IAAI,EAAE,IAAI,IAAI,EAAE;SACjB,CAAA;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACxB,CAAC;IAED,OAAO,CAAC,IAAe,EAAE,OAAe,EAAE,EAAU;QAClD,IAAI,GAAG,GAAU;YACf,EAAE,EAAE,EAAE;YACN,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI,IAAI,EAAE;SACjB,CAAA;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACxB,CAAC;IAED,+DAA+D;IAC/D,SAAS,CAAC,aAAqC,EAAE,EAAU;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;IACpE,CAAC;CACF;AArGD,4BAqGC"}
@@ -1,13 +0,0 @@
1
- import { PCLogType } from './Logger';
2
- export interface PCLoggerDefaultMessage {
3
- message: string;
4
- type: PCLogType;
5
- }
6
- export declare class PCLoggerDefaultMessages {
7
- static compilerStart: PCLoggerDefaultMessage;
8
- static compilerBuildSuccessful: PCLoggerDefaultMessage;
9
- static compilerBuildFailure: PCLoggerDefaultMessage;
10
- static interpreterStart: PCLoggerDefaultMessage;
11
- static interpreterRenderingSuccessful: PCLoggerDefaultMessage;
12
- static interpreterRenderingFailure: PCLoggerDefaultMessage;
13
- }
@@ -1,41 +0,0 @@
1
- "use strict";
2
- //
3
- // PCLoggerDefaultMessages.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.PCLoggerDefaultMessages = void 0;
11
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
12
- // MARK: - Imports
13
- const Logger_1 = require("./Logger");
14
- class PCLoggerDefaultMessages {
15
- }
16
- exports.PCLoggerDefaultMessages = PCLoggerDefaultMessages;
17
- PCLoggerDefaultMessages.compilerStart = {
18
- message: 'Build started',
19
- type: Logger_1.PCLogType.info
20
- };
21
- PCLoggerDefaultMessages.compilerBuildSuccessful = {
22
- message: 'Build successful',
23
- type: Logger_1.PCLogType.info
24
- };
25
- PCLoggerDefaultMessages.compilerBuildFailure = {
26
- message: 'Build failed',
27
- type: Logger_1.PCLogType.info
28
- };
29
- PCLoggerDefaultMessages.interpreterStart = {
30
- message: 'Rendering started',
31
- type: Logger_1.PCLogType.info
32
- };
33
- PCLoggerDefaultMessages.interpreterRenderingSuccessful = {
34
- message: 'Rendering successful',
35
- type: Logger_1.PCLogType.info
36
- };
37
- PCLoggerDefaultMessages.interpreterRenderingFailure = {
38
- message: 'Rendering failed',
39
- type: Logger_1.PCLogType.info
40
- };
41
- //# sourceMappingURL=LoggerDefaultMessages.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoggerDefaultMessages.js","sourceRoot":"","sources":["../../../src/tools/LoggerDefaultMessages.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,8BAA8B;AAC9B,UAAU;AACV,EAAE;AACF,2BAA2B;AAC3B,oDAAoD;AACpD,EAAE;;;AAEF,8GAA8G;AAC9G,kBAAkB;AAElB,qCAAoC;AAUpC,MAAa,uBAAuB;;AAApC,0DAyBC;AAxBQ,qCAAa,GAA2B;IAC7C,OAAO,EAAE,eAAe;IACxB,IAAI,EAAE,kBAAS,CAAC,IAAI;CACrB,CAAA;AACM,+CAAuB,GAA2B;IACvD,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,kBAAS,CAAC,IAAI;CACrB,CAAA;AACM,4CAAoB,GAA2B;IACpD,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE,kBAAS,CAAC,IAAI;CACrB,CAAA;AACM,wCAAgB,GAA2B;IAChD,OAAO,EAAE,mBAAmB;IAC5B,IAAI,EAAE,kBAAS,CAAC,IAAI;CACrB,CAAA;AACM,sDAA8B,GAA2B;IAC9D,OAAO,EAAE,sBAAsB;IAC/B,IAAI,EAAE,kBAAS,CAAC,IAAI;CACrB,CAAA;AACM,mDAA2B,GAA2B;IAC3D,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,kBAAS,CAAC,IAAI;CACrB,CAAA"}