@intuitionrobotics/thunderstorm 0.45.0 → 0.45.1

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 (225) hide show
  1. package/app-backend/api/v1/utils/version/_assert.js +20 -0
  2. package/app-backend/api/v1/utils/version/_assert.js.map +1 -1
  3. package/app-backend/api/v1/utils/version/assert.js +20 -0
  4. package/app-backend/api/v1/utils/version/assert.js.map +1 -1
  5. package/app-backend/core/BaseStorm.d.ts +1 -1
  6. package/app-backend/core/BaseStorm.js +22 -2
  7. package/app-backend/core/BaseStorm.js.map +1 -1
  8. package/app-backend/core/Storm.js +27 -9
  9. package/app-backend/core/Storm.js.map +1 -1
  10. package/app-backend/exceptions.d.ts +2 -2
  11. package/app-backend/exceptions.js +22 -2
  12. package/app-backend/exceptions.js.map +1 -1
  13. package/app-backend/modules/CleanupScheduler.js +4 -5
  14. package/app-backend/modules/CleanupScheduler.js.map +1 -1
  15. package/app-backend/modules/FirestoreBackupScheduler.d.ts +1 -1
  16. package/app-backend/modules/FirestoreBackupScheduler.js +9 -23
  17. package/app-backend/modules/FirestoreBackupScheduler.js.map +1 -1
  18. package/app-backend/modules/ForceUpgrade.d.ts +1 -1
  19. package/app-backend/modules/ForceUpgrade.js +26 -8
  20. package/app-backend/modules/ForceUpgrade.js.map +1 -1
  21. package/app-backend/modules/SlackModule.d.ts +4 -2
  22. package/app-backend/modules/SlackModule.js +30 -9
  23. package/app-backend/modules/SlackModule.js.map +1 -1
  24. package/app-backend/modules/_imports.d.ts +10 -0
  25. package/app-backend/modules/_imports.js +43 -0
  26. package/app-backend/modules/_imports.js.map +1 -0
  27. package/app-backend/modules/http/AxiosHttpModule.js +23 -3
  28. package/app-backend/modules/http/AxiosHttpModule.js.map +1 -1
  29. package/app-backend/modules/proxy/RemoteProxy.d.ts +1 -2
  30. package/app-backend/modules/proxy/RemoteProxy.js +30 -11
  31. package/app-backend/modules/proxy/RemoteProxy.js.map +1 -1
  32. package/app-backend/modules/proxy/RemoteProxyCaller.d.ts +1 -1
  33. package/app-backend/modules/proxy/RemoteProxyCaller.js +29 -11
  34. package/app-backend/modules/proxy/RemoteProxyCaller.js.map +1 -1
  35. package/app-backend/modules/server/HttpServer.d.ts +2 -3
  36. package/app-backend/modules/server/HttpServer.js +31 -9
  37. package/app-backend/modules/server/HttpServer.js.map +1 -1
  38. package/app-backend/modules/server/server-api.d.ts +7 -3
  39. package/app-backend/modules/server/server-api.js +56 -30
  40. package/app-backend/modules/server/server-api.js.map +1 -1
  41. package/app-backend/modules/server/server-errors.d.ts +1 -1
  42. package/app-backend/modules/server/server-errors.js +26 -7
  43. package/app-backend/modules/server/server-errors.js.map +1 -1
  44. package/app-backend/utils/LogClient_File.d.ts +2 -2
  45. package/app-backend/utils/LogClient_File.js +30 -12
  46. package/app-backend/utils/LogClient_File.js.map +1 -1
  47. package/app-backend/utils/file.js +20 -0
  48. package/app-backend/utils/file.js.map +1 -1
  49. package/app-backend/utils/promisify-request.js +22 -2
  50. package/app-backend/utils/promisify-request.js.map +1 -1
  51. package/app-backend/utils/to-be-removed.js +20 -0
  52. package/app-backend/utils/to-be-removed.js.map +1 -1
  53. package/app-backend/utils/types.d.ts +1 -1
  54. package/app-backend/utils/types.js +22 -2
  55. package/app-backend/utils/types.js.map +1 -1
  56. package/app-frontend/components/ActionButton.js +20 -0
  57. package/app-frontend/components/ActionButton.js.map +1 -1
  58. package/app-frontend/components/DropDown.js +24 -5
  59. package/app-frontend/components/DropDown.js.map +1 -1
  60. package/app-frontend/components/FilterInput.js +23 -4
  61. package/app-frontend/components/FilterInput.js.map +1 -1
  62. package/app-frontend/components/GenericSelect.js +21 -1
  63. package/app-frontend/components/GenericSelect.js.map +1 -1
  64. package/app-frontend/components/GenericTabs.d.ts +4 -0
  65. package/app-frontend/components/GenericTabs.js +11 -0
  66. package/app-frontend/components/GenericTabs.js.map +1 -0
  67. package/app-frontend/components/Overlay.js +20 -0
  68. package/app-frontend/components/Overlay.js.map +1 -1
  69. package/app-frontend/components/TS_Input.js +23 -3
  70. package/app-frontend/components/TS_Input.js.map +1 -1
  71. package/app-frontend/components/TS_Table.d.ts +1 -1
  72. package/app-frontend/components/TS_Table.js +20 -0
  73. package/app-frontend/components/TS_Table.js.map +1 -1
  74. package/app-frontend/components/TS_TextArea.js +20 -0
  75. package/app-frontend/components/TS_TextArea.js.map +1 -1
  76. package/app-frontend/components/adapter/Adapter.js +26 -6
  77. package/app-frontend/components/adapter/Adapter.js.map +1 -1
  78. package/app-frontend/components/adapter/BaseRenderer.js +20 -0
  79. package/app-frontend/components/adapter/BaseRenderer.js.map +1 -1
  80. package/app-frontend/components/checkbox/TS_Checkbox.d.ts +2 -2
  81. package/app-frontend/components/checkbox/TS_Checkbox.js +1 -2
  82. package/app-frontend/components/checkbox/TS_Checkbox.js.map +1 -1
  83. package/app-frontend/components/checkbox/TS_CheckboxField.js +18 -0
  84. package/app-frontend/components/checkbox/TS_CheckboxField.js.map +1 -1
  85. package/app-frontend/components/form/Form.d.ts +1 -2
  86. package/app-frontend/components/form/Form.js +22 -2
  87. package/app-frontend/components/form/Form.js.map +1 -1
  88. package/app-frontend/components/form/types.d.ts +1 -2
  89. package/app-frontend/components/form/types.js +20 -0
  90. package/app-frontend/components/form/types.js.map +1 -1
  91. package/app-frontend/components/playground/Example_NewProps.js +20 -0
  92. package/app-frontend/components/playground/Example_NewProps.js.map +1 -1
  93. package/app-frontend/components/playground/Playground.js +21 -1
  94. package/app-frontend/components/playground/Playground.js.map +1 -1
  95. package/app-frontend/components/tree/MenuComponent.js +22 -2
  96. package/app-frontend/components/tree/MenuComponent.js.map +1 -1
  97. package/app-frontend/components/tree/MultiTypeAdaptor.js +22 -2
  98. package/app-frontend/components/tree/MultiTypeAdaptor.js.map +1 -1
  99. package/app-frontend/components/tree/SimpleTreeNodeRenderer.js +20 -0
  100. package/app-frontend/components/tree/SimpleTreeNodeRenderer.js.map +1 -1
  101. package/app-frontend/components/tree/Tree.js +23 -3
  102. package/app-frontend/components/tree/Tree.js.map +1 -1
  103. package/app-frontend/components/tree/types.js +20 -0
  104. package/app-frontend/components/tree/types.js.map +1 -1
  105. package/app-frontend/components/treeicons.js.map +1 -1
  106. package/app-frontend/components/types.js +20 -0
  107. package/app-frontend/components/types.js.map +1 -1
  108. package/app-frontend/core/AbstractThunder.d.ts +3 -0
  109. package/app-frontend/core/AbstractThunder.js +32 -0
  110. package/app-frontend/core/AbstractThunder.js.map +1 -1
  111. package/app-frontend/core/AppPage.js +20 -0
  112. package/app-frontend/core/AppPage.js.map +1 -1
  113. package/app-frontend/core/AppWrapper.js +23 -2
  114. package/app-frontend/core/AppWrapper.js.map +1 -1
  115. package/app-frontend/core/BaseComponent.d.ts +4 -2
  116. package/app-frontend/core/BaseComponent.js +41 -18
  117. package/app-frontend/core/BaseComponent.js.map +1 -1
  118. package/app-frontend/core/SimpleScriptInjector.js +22 -2
  119. package/app-frontend/core/SimpleScriptInjector.js.map +1 -1
  120. package/app-frontend/core/Thunder.js +22 -3
  121. package/app-frontend/core/Thunder.js.map +1 -1
  122. package/app-frontend/core/thunder-dispatcher.d.ts +1 -2
  123. package/app-frontend/core/thunder-dispatcher.js +23 -13
  124. package/app-frontend/core/thunder-dispatcher.js.map +1 -1
  125. package/app-frontend/modules/ConnectivityModule.d.ts +1 -1
  126. package/app-frontend/modules/ConnectivityModule.js +2 -2
  127. package/app-frontend/modules/ConnectivityModule.js.map +1 -1
  128. package/app-frontend/modules/ForceUpgrade.d.ts +1 -1
  129. package/app-frontend/modules/ForceUpgrade.js +23 -4
  130. package/app-frontend/modules/ForceUpgrade.js.map +1 -1
  131. package/app-frontend/modules/HistoryModule.d.ts +5 -3
  132. package/app-frontend/modules/HistoryModule.js +28 -9
  133. package/app-frontend/modules/HistoryModule.js.map +1 -1
  134. package/app-frontend/modules/ResourcesModule.d.ts +4 -1
  135. package/app-frontend/modules/ResourcesModule.js +25 -2
  136. package/app-frontend/modules/ResourcesModule.js.map +1 -1
  137. package/app-frontend/modules/StorageModule.d.ts +4 -1
  138. package/app-frontend/modules/StorageModule.js +26 -4
  139. package/app-frontend/modules/StorageModule.js.map +1 -1
  140. package/app-frontend/modules/ThunderstormModule.d.ts +1 -1
  141. package/app-frontend/modules/ThunderstormModule.js +3 -3
  142. package/app-frontend/modules/ThunderstormModule.js.map +1 -1
  143. package/app-frontend/modules/component-loader/ReactEntryComponentInjector.js +20 -0
  144. package/app-frontend/modules/component-loader/ReactEntryComponentInjector.js.map +1 -1
  145. package/app-frontend/modules/component-loader/entry-component-loading-module.d.ts +1 -1
  146. package/app-frontend/modules/component-loader/entry-component-loading-module.js +25 -4
  147. package/app-frontend/modules/component-loader/entry-component-loading-module.js.map +1 -1
  148. package/app-frontend/modules/dialog/Dialog.js +22 -0
  149. package/app-frontend/modules/dialog/Dialog.js.map +1 -1
  150. package/app-frontend/modules/dialog/DialogModule.d.ts +1 -1
  151. package/app-frontend/modules/dialog/DialogModule.js +22 -2
  152. package/app-frontend/modules/dialog/DialogModule.js.map +1 -1
  153. package/app-frontend/modules/http/HttpClient.js +20 -0
  154. package/app-frontend/modules/http/HttpClient.js.map +1 -1
  155. package/app-frontend/modules/http/XhrHttpModule.js +10 -9
  156. package/app-frontend/modules/http/XhrHttpModule.js.map +1 -1
  157. package/app-frontend/modules/locale/LocaleModule.d.ts +4 -1
  158. package/app-frontend/modules/locale/LocaleModule.js +24 -5
  159. package/app-frontend/modules/locale/LocaleModule.js.map +1 -1
  160. package/app-frontend/modules/locale/types.d.ts +3 -0
  161. package/app-frontend/modules/locale/types.js +20 -0
  162. package/app-frontend/modules/locale/types.js.map +1 -1
  163. package/app-frontend/modules/menu/MenuAndButton.js +2 -2
  164. package/app-frontend/modules/menu/MenuAndButton.js.map +1 -1
  165. package/app-frontend/modules/menu/MenuModule.d.ts +1 -1
  166. package/app-frontend/modules/menu/MenuModule.js +3 -4
  167. package/app-frontend/modules/menu/MenuModule.js.map +1 -1
  168. package/app-frontend/modules/menu/PopupMenu.js +2 -2
  169. package/app-frontend/modules/menu/PopupMenu.js.map +1 -1
  170. package/app-frontend/modules/routing/RoutingModule.d.ts +2 -2
  171. package/app-frontend/modules/routing/RoutingModule.js +25 -6
  172. package/app-frontend/modules/routing/RoutingModule.js.map +1 -1
  173. package/app-frontend/modules/routing/route.d.ts +2 -2
  174. package/app-frontend/modules/routing/route.js +20 -0
  175. package/app-frontend/modules/routing/route.js.map +1 -1
  176. package/app-frontend/modules/toaster/BaseToaster.js +22 -0
  177. package/app-frontend/modules/toaster/BaseToaster.js.map +1 -1
  178. package/app-frontend/modules/toaster/Toaster.js +20 -0
  179. package/app-frontend/modules/toaster/Toaster.js.map +1 -1
  180. package/app-frontend/modules/toaster/ToasterModule.d.ts +1 -1
  181. package/app-frontend/modules/toaster/ToasterModule.js +25 -5
  182. package/app-frontend/modules/toaster/ToasterModule.js.map +1 -1
  183. package/app-frontend/modules/tooltip/Tooltip.js +22 -2
  184. package/app-frontend/modules/tooltip/Tooltip.js.map +1 -1
  185. package/app-frontend/modules/tooltip/TooltipModule.d.ts +1 -1
  186. package/app-frontend/modules/tooltip/TooltipModule.js +23 -4
  187. package/app-frontend/modules/tooltip/TooltipModule.js.map +1 -1
  188. package/app-frontend/tools/KeyboardListener.js +17 -0
  189. package/app-frontend/tools/KeyboardListener.js.map +1 -1
  190. package/app-frontend/tools/Stylable.js +20 -0
  191. package/app-frontend/tools/Stylable.js.map +1 -1
  192. package/app-frontend/types/renderer-map.js +20 -0
  193. package/app-frontend/types/renderer-map.js.map +1 -1
  194. package/app-frontend/utils/tools.js +23 -3
  195. package/app-frontend/utils/tools.js.map +1 -1
  196. package/backend-test.d.ts +1 -0
  197. package/backend-test.js +34 -0
  198. package/backend-test.js.map +1 -0
  199. package/backend.d.ts +17 -0
  200. package/backend.js +50 -0
  201. package/backend.js.map +1 -0
  202. package/frontend.d.ts +55 -0
  203. package/frontend.js +88 -0
  204. package/frontend.js.map +1 -0
  205. package/index.d.ts +6 -0
  206. package/index.js +37 -0
  207. package/index.js.map +1 -1
  208. package/package.json +1 -1
  209. package/shared/BaseHttpModule.d.ts +1 -1
  210. package/shared/BaseHttpModule.js +5 -6
  211. package/shared/BaseHttpModule.js.map +1 -1
  212. package/shared/BaseHttpRequest.js +27 -9
  213. package/shared/BaseHttpRequest.js.map +1 -1
  214. package/shared/consts.js +20 -0
  215. package/shared/consts.js.map +1 -1
  216. package/shared/force-upgrade.js +20 -0
  217. package/shared/force-upgrade.js.map +1 -1
  218. package/shared/request-types.js +20 -0
  219. package/shared/request-types.js.map +1 -1
  220. package/shared/types.js +20 -0
  221. package/shared/types.js.map +1 -1
  222. package/test-backend/StormTester.js +26 -6
  223. package/test-backend/StormTester.js.map +1 -1
  224. package/test-frontend/ThunderTester.js +20 -0
  225. package/test-frontend/ThunderTester.js.map +1 -1
@@ -1,4 +1,24 @@
1
1
  "use strict";
2
+ /*
3
+ * Thunderstorm is a full web app framework!
4
+ *
5
+ * Typescript & Express backend infrastructure that natively runs on firebase function
6
+ * Typescript & React frontend infrastructure
7
+ *
8
+ * Copyright (C) 2020 Intuition Robotics
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
2
22
  Object.defineProperty(exports, "__esModule", { value: true });
3
23
  const HttpServer_1 = require("../../../../modules/server/HttpServer");
4
24
  module.exports = new HttpServer_1.RouteResolver(require, __dirname);
@@ -1 +1 @@
1
- {"version":3,"file":"_assert.js","sourceRoot":"","sources":["../../../../../../src/main/app-backend/api/v1/utils/version/_assert.ts"],"names":[],"mappings":";;AACA,sEAAoE;AAEpE,MAAM,CAAC,OAAO,GAAG,IAAI,0BAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"_assert.js","sourceRoot":"","sources":["../../../../../../src/main/app-backend/api/v1/utils/version/_assert.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;AAEH,sEAAoE;AAEpE,MAAM,CAAC,OAAO,GAAG,IAAI,0BAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
@@ -1,4 +1,24 @@
1
1
  "use strict";
2
+ /*
3
+ * Thunderstorm is a full web app framework!
4
+ *
5
+ * Typescript & Express backend infrastructure that natively runs on firebase function
6
+ * Typescript & React frontend infrastructure
7
+ *
8
+ * Copyright (C) 2020 Intuition Robotics
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
2
22
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
23
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
24
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -1 +1 @@
1
- {"version":3,"file":"assert.js","sourceRoot":"","sources":["../../../../../../src/main/app-backend/api/v1/utils/version/assert.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,uEAI6C;AAC7C,sEAG+C;AAC/C,uDAAuD;AACvD,mEAA+D;AAI/D,MAAM,0BACL,SAAQ,sBAAqC;IAE7C;QACC,KAAK,CAAC,kBAAU,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QAChC,IAAI,CAAC,cAAc,CAAC,yCAAyB,EAAE,sCAAsB,CAAC,CAAC;IACxE,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAU;;YAClG,OAAO,2BAAY,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC7C,CAAC;KAAA;CACD;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,0BAA0B,EAAE,CAAC"}
1
+ {"version":3,"file":"assert.js","sourceRoot":"","sources":["../../../../../../src/main/app-backend/api/v1/utils/version/assert.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;AAGH,uEAI6C;AAC7C,sEAG+C;AAC/C,uDAAuD;AACvD,mEAA+D;AAI/D,MAAM,0BACL,SAAQ,sBAAqC;IAE7C;QACC,KAAK,CAAC,kBAAU,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QAChC,IAAI,CAAC,cAAc,CAAC,yCAAyB,EAAE,sCAAsB,CAAC,CAAC;IACxE,CAAC;IAEe,OAAO,CAAC,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAU;;YAClG,OAAO,2BAAY,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC7C,CAAC;KAAA;CACD;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,0BAA0B,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ModuleManager } from "@intuitionrobotics/ts-common/core/module-manager";
1
+ import { ModuleManager } from "@intuitionrobotics/ts-common";
2
2
  export declare abstract class BaseStorm extends ModuleManager {
3
3
  private envKey;
4
4
  setEnvironment(envKey: string): this;
@@ -1,8 +1,28 @@
1
1
  "use strict";
2
+ /*
3
+ * Thunderstorm is a full web app framework!
4
+ *
5
+ * Typescript & Express backend infrastructure that natively runs on firebase function
6
+ * Typescript & React frontend infrastructure
7
+ *
8
+ * Copyright (C) 2020 Intuition Robotics
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
2
22
  Object.defineProperty(exports, "__esModule", { value: true });
3
23
  exports.BaseStorm = void 0;
4
- const module_manager_1 = require("@intuitionrobotics/ts-common/core/module-manager");
5
- class BaseStorm extends module_manager_1.ModuleManager {
24
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
25
+ class BaseStorm extends ts_common_1.ModuleManager {
6
26
  constructor() {
7
27
  super(...arguments);
8
28
  this.envKey = "dev";
@@ -1 +1 @@
1
- {"version":3,"file":"BaseStorm.js","sourceRoot":"","sources":["../../../src/main/app-backend/core/BaseStorm.ts"],"names":[],"mappings":";;;AACA,qFAA+E;AAE/E,MAAsB,SAClB,SAAQ,8BAAa;IADzB;;QAEY,WAAM,GAAW,KAAK,CAAC;IASnC,CAAC;IARG,cAAc,CAAC,MAAc;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,cAAc;QACV,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;CACJ;AAXD,8BAWC"}
1
+ {"version":3,"file":"BaseStorm.js","sourceRoot":"","sources":["../../../src/main/app-backend/core/BaseStorm.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,4DAA2D;AAE3D,MAAsB,SAClB,SAAQ,yBAAa;IADzB;;QAEY,WAAM,GAAW,KAAK,CAAC;IASnC,CAAC;IARG,cAAc,CAAC,MAAc;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,cAAc;QACV,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;CACJ;AAXD,8BAWC"}
@@ -1,11 +1,29 @@
1
1
  "use strict";
2
+ /*
3
+ * Thunderstorm is a full web app framework!
4
+ *
5
+ * Typescript & Express backend infrastructure that natively runs on firebase function
6
+ * Typescript & React frontend infrastructure
7
+ *
8
+ * Copyright (C) 2020 Intuition Robotics
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
2
22
  Object.defineProperty(exports, "__esModule", { value: true });
3
23
  exports.Storm = void 0;
4
- const FirebaseModule_1 = require("@intuitionrobotics/firebase/app-backend/FirebaseModule");
5
- const LogClient_Function_1 = require("@intuitionrobotics/ts-common/core/logger/LogClient_Function");
6
- const BeLogged_1 = require("@intuitionrobotics/ts-common/core/logger/BeLogged");
7
- const LogClient_Terminal_1 = require("@intuitionrobotics/ts-common/core/logger/LogClient_Terminal");
8
- const firebase_function_1 = require("@intuitionrobotics/firebase/app-backend/functions/firebase-function");
24
+ const backend_1 = require("@intuitionrobotics/firebase/backend");
25
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
26
+ const backend_functions_1 = require("@intuitionrobotics/firebase/backend-functions");
9
27
  const HttpServer_1 = require("../modules/server/HttpServer");
10
28
  const server_api_1 = require("../modules/server/server-api");
11
29
  const BaseStorm_1 = require("./BaseStorm");
@@ -17,7 +35,7 @@ class Storm extends BaseStorm_1.BaseStorm {
17
35
  this.apis = [];
18
36
  this.express = _express || express();
19
37
  this.httpServer = new HttpServer_1.HttpServer_Class(this.express);
20
- this.addModules(this.httpServer, FirebaseModule_1.FirebaseModule);
38
+ this.addModules(this.httpServer, backend_1.FirebaseModule);
21
39
  }
22
40
  static getInstance() {
23
41
  return Storm.instance;
@@ -27,7 +45,7 @@ class Storm extends BaseStorm_1.BaseStorm {
27
45
  }
28
46
  init() {
29
47
  var _a;
30
- BeLogged_1.BeLogged.addClient(process.env.GCLOUD_PROJECT && process.env.FUNCTIONS_EMULATOR ? LogClient_Terminal_1.LogClient_Terminal : LogClient_Function_1.LogClient_Function);
48
+ ts_common_1.BeLogged.addClient(process.env.GCLOUD_PROJECT && process.env.FUNCTIONS_EMULATOR ? ts_common_1.LogClient_Terminal : ts_common_1.LogClient_Function);
31
49
  server_api_1.ServerApi.isDebug = !!((_a = this.config) === null || _a === void 0 ? void 0 : _a.isDebug);
32
50
  super.init();
33
51
  const urlPrefix = !process.env.GCLOUD_PROJECT ? this.initialPath : "";
@@ -48,8 +66,8 @@ class Storm extends BaseStorm_1.BaseStorm {
48
66
  return this;
49
67
  }
50
68
  startServer(onStarted) {
51
- const modulesAsFunction = this.modules.filter((module) => module instanceof firebase_function_1.FirebaseFunction);
52
- this.functions = [new firebase_function_1.Firebase_ExpressFunction(this.httpServer.express),
69
+ const modulesAsFunction = this.modules.filter((module) => module instanceof backend_functions_1.FirebaseFunction);
70
+ this.functions = [new backend_functions_1.Firebase_ExpressFunction(this.httpServer.express),
53
71
  ...modulesAsFunction];
54
72
  this.init();
55
73
  onStarted && onStarted().catch(e => this.logError(e));
@@ -1 +1 @@
1
- {"version":3,"file":"Storm.js","sourceRoot":"","sources":["../../../src/main/app-backend/core/Storm.ts"],"names":[],"mappings":";;;AACA,2FAAsF;AAEtF,oGAA+F;AAC/F,gFAA2E;AAC3E,oGAA+F;AAC/F,2GAA+H;AAC/H,6DAA6E;AAC7E,6DAAuD;AACvD,2CAAsC;AAEtC,mCAAmC;AAEnC,MAAa,KACT,SAAQ,qBAAS;IAQjB,YAAY,QAAkB;QAC1B,KAAK,EAAE,CAAC;QANJ,cAAS,GAAU,EAAE,CAAC;QACtB,SAAI,GAAqB,EAAE,CAAC;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ared/types";
1
+ import { CustomException } from "@intuitionrobotics/ts-common";
2
+ import { ErrorBody, ErrorResponse } from "../index";
3
3
  export declare class ApiException<E extends object | void = void> extends CustomException {
4
4
  readonly responseBody: ErrorResponse<E>;
5
5
  readonly responseCode: number;
@@ -1,8 +1,28 @@
1
1
  "use strict";
2
+ /*
3
+ * Thunderstorm is a full web app framework!
4
+ *
5
+ * Typescript & Express backend infrastructure that natively runs on firebase function
6
+ * Typescript & React frontend infrastructure
7
+ *
8
+ * Copyright (C) 2020 Intuition Robotics
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
2
22
  Object.defineProperty(exports, "__esModule", { value: true });
3
23
  exports.ApiException = void 0;
4
- const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
5
- class ApiException extends exceptions_1.CustomException {
24
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
25
+ class ApiException extends ts_common_1.CustomException {
6
26
  constructor(responseCode, debugMessage, cause) {
7
27
  super(ApiException, `${responseCode}-${JSON.stringify(debugMessage)}`, cause);
8
28
  this.responseBody = {};
@@ -1 +1 @@
1
- {"version":3,"file":"exceptions.js","sourceRoot":"","sources":["../../src/main/app-backend/exceptions.ts"],"names":[],"mappings":";;;AACA,6EAA6E;AAI7E,MAAa,YACT,SAAQ,4BAAe;IAUvB,YAAY,YAAoB,EAAE,YAAqB,EAAE,KAAa;QAClE,KAAK,CAAC,YAAY,EAAE,GAAG,YAAY,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QATlE,iBAAY,GAAqB,EAAE,CAAC;QAGpC,iBAAY,GAAG,CAAC,SAAuB,EAAE,EAAE;YACvD,IAAI,CAAC,YAAY,CAAC,KAAK,GAAG,SAAS,CAAC;YACpC,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC;QAKE,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,YAAY,CAAC,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAClE,CAAC;CAEJ;AAlBD,oCAkBC"}
1
+ {"version":3,"file":"exceptions.js","sourceRoot":"","sources":["../../src/main/app-backend/exceptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,4DAA8D;AAM9D,MAAa,YACZ,SAAQ,2BAAe;IAUvB,YAAY,YAAoB,EAAE,YAAqB,EAAE,KAAa;QACrE,KAAK,CAAC,YAAY,EAAE,GAAG,YAAY,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QAT/D,iBAAY,GAAqB,EAAE,CAAC;QAGpC,iBAAY,GAAG,CAAC,SAAuB,EAAE,EAAE;YAC1D,IAAI,CAAC,YAAY,CAAC,KAAK,GAAG,SAAS,CAAC;YACpC,OAAO,IAAI,CAAC;QACb,CAAC,CAAC;QAKD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,YAAY,CAAC,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAC/D,CAAC;CAED;AAlBD,oCAkBC"}
@@ -10,11 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CleanupScheduler = exports.CleanupScheduler_Class = void 0;
13
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
13
14
  const firebase_function_1 = require("@intuitionrobotics/firebase/app-backend/functions/firebase-function");
14
15
  const FirebaseModule_1 = require("@intuitionrobotics/firebase/app-backend/FirebaseModule");
15
- const dispatcher_1 = require("@intuitionrobotics/ts-common/core/dispatcher");
16
- const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
17
- const dispatch_onCleanupSchedulerAct = new dispatcher_1.Dispatcher("__onCleanupSchedulerAct");
16
+ const dispatch_onCleanupSchedulerAct = new ts_common_1.Dispatcher("__onCleanupSchedulerAct");
18
17
  class CleanupScheduler_Class extends firebase_function_1.FirebaseScheduledFunction {
19
18
  constructor() {
20
19
  super("CleanupScheduler");
@@ -23,11 +22,11 @@ class CleanupScheduler_Class extends firebase_function_1.FirebaseScheduledFuncti
23
22
  const cleanups = dispatch_onCleanupSchedulerAct.dispatchModule([]);
24
23
  yield Promise.all(cleanups.map((cleanupItem) => __awaiter(this, void 0, void 0, function* () {
25
24
  const doc = yield cleanupStatusCollection.queryUnique({ where: { moduleKey: cleanupItem.moduleKey } });
26
- if (doc && doc.timestamp + cleanupItem.interval > date_time_tools_1.currentTimeMillies())
25
+ if (doc && doc.timestamp + cleanupItem.interval > ts_common_1.currentTimeMillies())
27
26
  return;
28
27
  try {
29
28
  yield cleanupItem.cleanup();
30
- yield cleanupStatusCollection.upsert({ timestamp: date_time_tools_1.currentTimeMillies(), moduleKey: cleanupItem.moduleKey });
29
+ yield cleanupStatusCollection.upsert({ timestamp: ts_common_1.currentTimeMillies(), moduleKey: cleanupItem.moduleKey });
31
30
  }
32
31
  catch (e) {
33
32
  this.logWarning(`cleanup of ${cleanupItem.moduleKey} has failed with error '${e}'`);
@@ -1 +1 @@
1
- {"version":3,"file":"CleanupScheduler.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/CleanupScheduler.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2GAA8G;AAC9G,2FAAsF;AACtF,6EAA0E;AAC1E,wFAAwF;AAiBxF,MAAM,8BAA8B,GAAG,IAAI,uBAAU,CAAmD,yBAAyB,CAAC,CAAC;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wDAwBC;AAEY,QAAA,gBAAgB,GAAG,IAAI,sBAAsB,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { FirebaseScheduledFunction } from "@intuitionrobotics/firebase/app-backend/functions/firebase-function";
2
2
  import { ActDetailsDoc } from "./CleanupScheduler";
3
3
  import { FirestoreCollection } from "@intuitionrobotics/firebase/app-backend/firestore/FirestoreCollection";
4
- import { FirestoreQuery } from "@intuitionrobotics/firebase/shared/types";
4
+ import { FirestoreQuery } from "@intuitionrobotics/firebase";
5
5
  export declare type BackupDoc = ActDetailsDoc & {
6
6
  backupPath: string;
7
7
  };
@@ -10,22 +10,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.FirestoreBackupScheduler = exports.FirestoreBackupScheduler_Class = void 0;
13
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
13
14
  const firebase_function_1 = require("@intuitionrobotics/firebase/app-backend/functions/firebase-function");
14
15
  const FirebaseModule_1 = require("@intuitionrobotics/firebase/app-backend/FirebaseModule");
15
- const dispatcher_1 = require("@intuitionrobotics/ts-common/core/dispatcher");
16
- const array_tools_1 = require("@intuitionrobotics/ts-common/utils/array-tools");
17
- const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
18
- const tools_1 = require("@intuitionrobotics/ts-common/utils/tools");
19
- const utils_1 = require("@intuitionrobotics/ts-common/core/logger/utils");
20
- const error_handling_1 = require("@intuitionrobotics/ts-common/core/error-handling");
21
- const dispatch_onFirestoreBackupSchedulerAct = new dispatcher_1.Dispatcher("__onFirestoreBackupSchedulerAct");
16
+ const dispatch_onFirestoreBackupSchedulerAct = new ts_common_1.Dispatcher("__onFirestoreBackupSchedulerAct");
22
17
  class FirestoreBackupScheduler_Class extends firebase_function_1.FirebaseScheduledFunction {
23
18
  constructor() {
24
19
  super("FirestoreBackupScheduler");
25
20
  this.onScheduledEvent = () => __awaiter(this, void 0, void 0, function* () {
26
21
  const backupStatusCollection = FirebaseModule_1.FirebaseModule.createAdminSession().getFirestore().getCollection('firestore-backup-status', ["moduleKey", "timestamp"]);
27
22
  const backups = [];
28
- array_tools_1.filterInstances(dispatch_onFirestoreBackupSchedulerAct.dispatchModule([])).forEach(backupArray => {
23
+ ts_common_1.filterInstances(dispatch_onFirestoreBackupSchedulerAct.dispatchModule([])).forEach(backupArray => {
29
24
  backups.push(...backupArray);
30
25
  });
31
26
  const bucket = yield FirebaseModule_1.FirebaseModule.createAdminSession().getStorage().getOrCreateBucket();
@@ -37,25 +32,16 @@ class FirestoreBackupScheduler_Class extends firebase_function_1.FirebaseSchedul
37
32
  };
38
33
  const docs = yield backupStatusCollection.query(query);
39
34
  const latestDoc = docs[0];
40
- if (latestDoc && latestDoc.timestamp + backupItem.interval > date_time_tools_1.currentTimeMillies())
35
+ if (latestDoc && latestDoc.timestamp + backupItem.interval > ts_common_1.currentTimeMillies())
41
36
  return;
42
- const backupPath = `backup/firestore/${backupItem.moduleKey}/${date_time_tools_1.currentTimeMillies()}.json`;
37
+ const backupPath = `backup/firestore/${backupItem.moduleKey}/${ts_common_1.currentTimeMillies()}.json`;
43
38
  try {
44
39
  const toBackupData = yield backupItem.collection.query(backupItem.backupQuery);
45
40
  yield (yield bucket.getFile(backupPath)).write(toBackupData);
46
- yield backupStatusCollection.upsert({
47
- timestamp: date_time_tools_1.currentTimeMillies(),
48
- moduleKey: backupItem.moduleKey,
49
- backupPath
50
- });
41
+ yield backupStatusCollection.upsert({ timestamp: ts_common_1.currentTimeMillies(), moduleKey: backupItem.moduleKey, backupPath });
51
42
  const keepInterval = backupItem.keepInterval;
52
43
  if (keepInterval) {
53
- const queryOld = {
54
- where: {
55
- moduleKey: backupItem.moduleKey,
56
- timestamp: { $lt: date_time_tools_1.currentTimeMillies() - keepInterval }
57
- }
58
- };
44
+ const queryOld = { where: { moduleKey: backupItem.moduleKey, timestamp: { $lt: ts_common_1.currentTimeMillies() - keepInterval } } };
59
45
  const oldDocs = yield backupStatusCollection.query(queryOld);
60
46
  yield Promise.all(oldDocs.map((oldDoc) => __awaiter(this, void 0, void 0, function* () {
61
47
  yield (yield bucket.getFile(oldDoc.backupPath)).delete();
@@ -65,8 +51,8 @@ class FirestoreBackupScheduler_Class extends firebase_function_1.FirebaseSchedul
65
51
  }
66
52
  catch (e) {
67
53
  this.logWarning(`backup of ${backupItem.moduleKey} has failed with error`, e);
68
- const errorMessage = `Error backing up firestore collection config:\n ${tools_1.__stringify(backupItem, true)}\nError: ${utils_1._logger_logException(e)}`;
69
- yield error_handling_1.dispatch_onServerError.dispatchModuleAsync([error_handling_1.ServerErrorSeverity.Critical, this, errorMessage]);
54
+ const errorMessage = `Error backing up firestore collection config:\n ${ts_common_1.__stringify(backupItem, true)}\nError: ${ts_common_1._logger_logException(e)}`;
55
+ yield ts_common_1.dispatch_onServerError.dispatchModuleAsync([ts_common_1.ServerErrorSeverity.Critical, this, errorMessage]);
70
56
  }
71
57
  })));
72
58
  });
@@ -1 +1 @@
1
- {"version":3,"file":"FirestoreBackupScheduler.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/FirestoreBackupScheduler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2GAA8G;AAC9G,2FAAsF;AAGtF,6EAAwE;AAExE,gFAA+E;AAC/E,wFAAsF;AACtF,oEAAqE;AACrE,0EAAoF;AACpF,qFAA6G;AAkB7G,MAAM,sCAAsC,GAAG,IAAI,uBAAU,CACzD,iCAAiC,CAAC,CAAC;AAEvC,MAAa,8BACT,SAAQ,6CAAyB;IAEjC;QACI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAItC,qBAAgB,GAAG,GAAuB,EAAE;YACxC,MAAM,sBAAsB,GAAG,+BAAc,CAAC,kBAAkB,EAAE,CAAC,YAAY,EAAE,CAAC,aAAa,CAAY,yBAAyB,EAChI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;YAChC,MAAM,OAAO,GAAkC,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,SAAS,wBAAwB,EAAC,CAAC,CAAC,CAAC;oBAC7E,MAAM,YAAY,GAAG,mDAAmD,uBAAW,CAAC,UAAU,EAAE,IAAI,CAAC,YAAY,gCAAoB,CAAC,CAAC,CAAC,EAAE,CAAC;oBAE3I,MAAM,kCAAsB,CAAC,mBAAmB,CAAC,CAAC,+BAAmB,CAAC,QAAQ,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;iBAErG;YACF,CAAC,CAAA,CAAC,CAAC,CAAC;QACL,CAAC,CAAA,CAAC;QAhDD,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACpC,CAAC;CAgDD;AAtDD,wEAsDC;AAEY,QAAA,wBAAwB,GAAG,IAAI,8BAA8B,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
+ import { Module } from "@intuitionrobotics/ts-common";
1
2
  import { ServerApi_Middleware } from "./server/HttpServer";
2
3
  import { UpgradeRequired } from "../../shared/force-upgrade";
3
4
  import { PlatformName } from "../../shared/consts";
4
5
  import { ExpressRequest } from "../utils/types";
5
- import { Module } from "@intuitionrobotics/ts-common/core/module";
6
6
  declare type VersionConfig = {
7
7
  [K in PlatformName]: {
8
8
  regexp: string;
@@ -1,4 +1,24 @@
1
1
  "use strict";
2
+ /*
3
+ * Thunderstorm is a full web app framework!
4
+ *
5
+ * Typescript & Express backend infrastructure that natively runs on firebase function
6
+ * Typescript & React frontend infrastructure
7
+ *
8
+ * Copyright (C) 2020 Intuition Robotics
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
2
22
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
23
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
24
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -10,18 +30,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
30
  };
11
31
  Object.defineProperty(exports, "__esModule", { value: true });
12
32
  exports.ForceUpgrade = void 0;
33
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
13
34
  const HttpServer_1 = require("./server/HttpServer");
14
35
  const exceptions_1 = require("../exceptions");
15
36
  const force_upgrade_1 = require("../../shared/force-upgrade");
16
- const module_1 = require("@intuitionrobotics/ts-common/core/module");
17
- const exceptions_2 = require("@intuitionrobotics/ts-common/core/exceptions");
18
- const tools_1 = require("@intuitionrobotics/ts-common/utils/tools");
19
37
  const Header_PlatformVersion = new HttpServer_1.HeaderKey(force_upgrade_1.HeaderKey_PlatformVersion);
20
38
  const Header_PlatformName = new HttpServer_1.HeaderKey(force_upgrade_1.HeaderKey_PlatformName);
21
39
  // const DefaultRegexps: { [k in PlatformName]: string } = {
22
40
  // chrome: "Chrome/([0-9\.]+)"
23
41
  // };
24
- class ForceUpgrade_Class extends module_1.Module {
42
+ class ForceUpgrade_Class extends ts_common_1.Module {
25
43
  constructor() {
26
44
  super("ForceUpgrade");
27
45
  }
@@ -38,7 +56,7 @@ class ForceUpgrade_Class extends module_1.Module {
38
56
  const regex = new RegExp(platformNameConfig.regexp);
39
57
  const match = platformVersion.match(regex);
40
58
  if (!match)
41
- throw new exceptions_2.BadImplementationException(`Error extracting version.. \nVersion: '${platformVersion}'\n config: '${tools_1.__stringify(this.config)}'`);
59
+ throw new ts_common_1.BadImplementationException(`Error extracting version.. \nVersion: '${platformVersion}'\n config: '${ts_common_1.__stringify(this.config)}'`);
42
60
  const minimumValidVersion = platformNameConfig.minimumValidVersion;
43
61
  if (!minimumValidVersion)
44
62
  return {
@@ -46,13 +64,13 @@ class ForceUpgrade_Class extends module_1.Module {
46
64
  };
47
65
  const matchGroups = match.groups;
48
66
  if (!matchGroups)
49
- throw new exceptions_2.BadImplementationException(`If minimumValidVersion is provided ${platformNameConfig.minimumValidVersion}, then groups in regex have to be defined ${tools_1.__stringify(match)}. i.e. "(?<first>[0-9]+).(?<second>[0-9]+).(?<third>[0-9]+)"`);
67
+ throw new ts_common_1.BadImplementationException(`If minimumValidVersion is provided ${platformNameConfig.minimumValidVersion}, then groups in regex have to be defined ${ts_common_1.__stringify(match)}. i.e. "(?<first>[0-9]+).(?<second>[0-9]+).(?<third>[0-9]+)"`);
50
68
  const minimumVersionMatch = minimumValidVersion.match(regex);
51
69
  if (!minimumVersionMatch)
52
- throw new exceptions_2.BadImplementationException(`Error extracting minimum valid version. \nVersion: '${minimumValidVersion}'\n config: '${tools_1.__stringify(this.config)}'`);
70
+ throw new ts_common_1.BadImplementationException(`Error extracting minimum valid version. \nVersion: '${minimumValidVersion}'\n config: '${ts_common_1.__stringify(this.config)}'`);
53
71
  const versionsGroups = minimumVersionMatch.groups;
54
72
  if (!versionsGroups)
55
- throw new exceptions_2.BadImplementationException(`If minimumValidVersion is provided ${platformNameConfig.minimumValidVersion}, then groups in regex have to be defined ${tools_1.__stringify(minimumVersionMatch)}. i.e. "(?<first>[0-9]+).(?<second>[0-9]+).(?<third>[0-9]+)"`);
73
+ throw new ts_common_1.BadImplementationException(`If minimumValidVersion is provided ${platformNameConfig.minimumValidVersion}, then groups in regex have to be defined ${ts_common_1.__stringify(minimumVersionMatch)}. i.e. "(?<first>[0-9]+).(?<second>[0-9]+).(?<third>[0-9]+)"`);
56
74
  const versions = Object.values(matchGroups);
57
75
  const minimumVersions = Object.values(versionsGroups);
58
76
  for (let i = 0; i < versions.length; i++) {
@@ -1 +1 @@
1
- {"version":3,"file":"ForceUpgrade.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/ForceUpgrade.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oDAG6B;AAE7B,8CAA2C;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AAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACzC,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YACtB,MAAM,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;YAEhC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI;gBACb,OAAO,EAAC,eAAe,EAAE,IAAI,EAAC,CAAA;SAC/B;QAED,OAAO,EAAC,eAAe,EAAE,KAAK,EAAC,CAAA;IAChC,CAAC;IAEK,aAAa,CAAC,OAAuB;;YAC1C,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACrD,IAAI,eAAe,CAAC,eAAe;gBAClC,MAAM,IAAI,yBAAY,CAAkB,GAAG,EAAE,mBAAmB,CAAC,CAAC,YAAY,CAAC,EAAC,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,eAAe,EAAC,CAAC,CAAA;QACnI,CAAC;KAAA;;AA9De,6BAAU,GAAyB,CAAO,OAAuB,EAAE,EAAE,kDAAC,OAAA,oBAAY,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA,GAAA,CAAC;AAiE9G,QAAA,YAAY,GAAG,IAAI,kBAAkB,EAAE,CAAC"}
@@ -1,5 +1,7 @@
1
- import { OnApplicationError, ServerErrorSeverity } from "@intuitionrobotics/ts-common/core/error-handling";
2
- import { Module } from "@intuitionrobotics/ts-common/core/module";
1
+ /**
2
+ * Created by AlanBen on 29/08/2019.
3
+ */
4
+ import { Module, OnApplicationError, ServerErrorSeverity } from "@intuitionrobotics/ts-common";
3
5
  import { WebClientOptions } from "@slack/web-api";
4
6
  declare type ConfigType = {
5
7
  token: string;
@@ -1,4 +1,24 @@
1
1
  "use strict";
2
+ /*
3
+ * Thunderstorm is a full web app framework!
4
+ *
5
+ * Typescript & Express backend infrastructure that natively runs on firebase function
6
+ * Typescript & React frontend infrastructure
7
+ *
8
+ * Copyright (C) 2020 Adam van der Kruk aka TacB0sS
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
2
22
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
23
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
24
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -10,11 +30,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
30
  };
11
31
  Object.defineProperty(exports, "__esModule", { value: true });
12
32
  exports.Slack_ServerApiError = exports.Slack_ServerApiError_Class = exports.SlackModule = exports.SlackModule_Class = void 0;
13
- const error_handling_1 = require("@intuitionrobotics/ts-common/core/error-handling");
14
- const module_1 = require("@intuitionrobotics/ts-common/core/module");
15
- const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
33
+ /**
34
+ * Created by AlanBen on 29/08/2019.
35
+ */
36
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
16
37
  const web_api_1 = require("@slack/web-api");
17
- class SlackModule_Class extends module_1.Module {
38
+ class SlackModule_Class extends ts_common_1.Module {
18
39
  constructor() {
19
40
  super("SlackModule");
20
41
  this.messageMap = {};
@@ -32,7 +53,7 @@ class SlackModule_Class extends module_1.Module {
32
53
  channel: this.config.defaultChannel
33
54
  } : slackMessage;
34
55
  const time = this.messageMap[parameters.text];
35
- if (time && date_time_tools_1.currentTimeMillies() - time < (this.config.throttlingTime || date_time_tools_1.Minute))
56
+ if (time && ts_common_1.currentTimeMillies() - time < (this.config.throttlingTime || ts_common_1.Minute))
36
57
  return;
37
58
  try {
38
59
  return yield this.postMessageImpl(parameters);
@@ -45,23 +66,23 @@ class SlackModule_Class extends module_1.Module {
45
66
  postMessageImpl(message) {
46
67
  return __awaiter(this, void 0, void 0, function* () {
47
68
  const res = yield this.web.chat.postMessage(message);
48
- this.messageMap[message.text] = date_time_tools_1.currentTimeMillies();
69
+ this.messageMap[message.text] = ts_common_1.currentTimeMillies();
49
70
  this.logDebug(`A message was posted to channel: ${message.channel} with message id ${res.ts} which contains the message ${message.text}`);
50
71
  });
51
72
  }
52
73
  }
53
74
  exports.SlackModule_Class = SlackModule_Class;
54
75
  exports.SlackModule = new SlackModule_Class();
55
- class Slack_ServerApiError_Class extends module_1.Module {
76
+ class Slack_ServerApiError_Class extends ts_common_1.Module {
56
77
  constructor() {
57
78
  super("Slack_ServerApiError");
58
- this.setConfig({ exclude: [], minLevel: error_handling_1.ServerErrorSeverity.Info });
79
+ this.setDefaultConfig({ exclude: [], minLevel: ts_common_1.ServerErrorSeverity.Info });
59
80
  }
60
81
  init() {
61
82
  }
62
83
  __processApplicationError(errorLevel, module, message) {
63
84
  return __awaiter(this, void 0, void 0, function* () {
64
- if (error_handling_1.ServerErrorSeverity_Ordinal.indexOf(errorLevel) < error_handling_1.ServerErrorSeverity_Ordinal.indexOf(this.config.minLevel))
85
+ if (ts_common_1.ServerErrorSeverity_Ordinal.indexOf(errorLevel) < ts_common_1.ServerErrorSeverity_Ordinal.indexOf(this.config.minLevel))
65
86
  return;
66
87
  for (const key of this.config.exclude || []) {
67
88
  if (message.includes(key))
@@ -1 +1 @@
1
- {"version":3,"file":"SlackModule.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/SlackModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qFAAuI;AACvI,qEAAkE;AAClE,wFAAgG;AAChG,4CAA6E;AA6B7E,MAAa,iBACT,SAAQ,eAAkB;IAI1B;QACI,KAAK,CAAC,aAAa,CAAC,CAAC;QAHjB,eAAU,GAAe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;QACI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC9B,IAAI,CAAC,gBAAgB,CAAC,EAAC,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,+BAAmB,CAAC,IAAI,EAAC,CAAC,CAAA;IAC5E,CAAC;IAES,IAAI;IACd,CAAC;IAEK,yBAAyB,CAAC,UAA+B,EAAE,MAAc,EAAE,OAAe;;YAC5F,IAAI,uCAA2B,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,uCAA2B,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;gBAC3G,OAAO;YAEX,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,EAAE;gBACzC,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC;oBACrB,OAAM;aACb;YAED,MAAM,mBAAW,CAAC,WAAW,CAAC,SAAS,OAAO,QAAQ,CAAC,CAAC;QAC5D,CAAC;KAAA;CACJ;AAtBD,gEAsBC;AAEY,QAAA,oBAAoB,GAAG,IAAI,0BAA0B,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from "./server/server-api";
2
+ export * from "./server/HttpServer";
3
+ export * from "./proxy/RemoteProxyCaller";
4
+ export * from "./proxy/RemoteProxy";
5
+ export * from "../exceptions";
6
+ export * from "../utils/promisify-request";
7
+ export * from "../utils/to-be-removed";
8
+ export * from "./CleanupScheduler";
9
+ export * from "./FirestoreBackupScheduler";
10
+ export * from "../../index";