attlaz-client 1.9.7 → 1.9.10

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 (269) hide show
  1. package/dist/{src/Client.d.ts → Client.d.ts} +0 -0
  2. package/dist/{src/Client.js → Client.js} +0 -0
  3. package/dist/{src/Http → Http}/HttpClient.d.ts +0 -0
  4. package/dist/{src/Http → Http}/HttpClient.js +0 -0
  5. package/dist/{src/Http → Http}/HttpClientRequest.d.ts +0 -0
  6. package/dist/{src/Http → Http}/HttpClientRequest.js +0 -0
  7. package/dist/{src/Http → Http}/HttpClientResponse.d.ts +0 -0
  8. package/dist/{src/Http → Http}/HttpClientResponse.js +0 -0
  9. package/dist/{src/Http → Http}/OAuthClient.d.ts +0 -0
  10. package/dist/{src/Http → Http}/OAuthClient.js +0 -0
  11. package/dist/{src/Http → Http}/OAuthClientOptions.d.ts +0 -0
  12. package/dist/{src/Http → Http}/OAuthClientOptions.js +0 -0
  13. package/dist/{src/Http → Http}/OAuthClientToken.d.ts +0 -0
  14. package/dist/{src/Http → Http}/OAuthClientToken.js +0 -0
  15. package/dist/{src/Model → Model}/Adapter/Adapter.d.ts +0 -0
  16. package/dist/{src/Model → Model}/Adapter/Adapter.js +0 -0
  17. package/dist/{src/Model → Model}/Adapter/AdapterConfiguration.d.ts +0 -0
  18. package/dist/{src/Model → Model}/Adapter/AdapterConfiguration.js +0 -0
  19. package/dist/{src/Model → Model}/Adapter/AdapterConnection.d.ts +0 -0
  20. package/dist/{src/Model → Model}/Adapter/AdapterConnection.js +0 -0
  21. package/dist/{src/Model → Model}/Config.d.ts +0 -0
  22. package/dist/{src/Model → Model}/Config.js +0 -0
  23. package/dist/{src/Model → Model}/DataValue.d.ts +0 -0
  24. package/dist/{src/Model → Model}/DataValue.js +0 -0
  25. package/dist/{src/Model → Model}/DataValueCollection.d.ts +0 -0
  26. package/dist/{src/Model → Model}/DataValueCollection.js +0 -0
  27. package/dist/{src/Model → Model}/Deployment/CodeSource.d.ts +0 -0
  28. package/dist/{src/Model → Model}/Deployment/CodeSource.js +0 -0
  29. package/dist/{src/Model → Model}/Deployment/CodeSourceAccount.d.ts +0 -0
  30. package/dist/{src/Model → Model}/Deployment/CodeSourceAccount.js +0 -0
  31. package/dist/{src/Model → Model}/Error/ClientError.d.ts +0 -0
  32. package/dist/{src/Model → Model}/Error/ClientError.js +0 -0
  33. package/dist/{src/Model → Model}/Event/EventType.d.ts +0 -0
  34. package/dist/{src/Model → Model}/Event/EventType.js +0 -0
  35. package/dist/{src/Model → Model}/Flow/Flow.d.ts +0 -0
  36. package/dist/{src/Model → Model}/Flow/Flow.js +0 -0
  37. package/dist/{src/Model → Model}/Flow/FlowRun.d.ts +0 -0
  38. package/dist/{src/Model → Model}/Flow/FlowRun.js +0 -0
  39. package/dist/{src/Model → Model}/Flow/FlowRunHistory.d.ts +0 -0
  40. package/dist/{src/Model → Model}/Flow/FlowRunHistory.js +0 -0
  41. package/dist/{src/Model → Model}/Flow/FlowRunPriority.d.ts +0 -0
  42. package/dist/{src/Model → Model}/Flow/FlowRunPriority.js +0 -0
  43. package/dist/{src/Model → Model}/Flow/FlowRunResponse.d.ts +0 -0
  44. package/dist/{src/Model → Model}/Flow/FlowRunResponse.js +0 -0
  45. package/dist/{src/Model → Model}/Flow/FlowRunStats.d.ts +0 -0
  46. package/dist/{src/Model → Model}/Flow/FlowRunStats.js +0 -0
  47. package/dist/{src/Model → Model}/Flow/FlowRunStatus.d.ts +0 -0
  48. package/dist/{src/Model → Model}/Flow/FlowRunStatus.js +0 -0
  49. package/dist/{src/Model → Model}/Flow/FlowRunSummary.d.ts +0 -0
  50. package/dist/{src/Model → Model}/Flow/FlowRunSummary.js +0 -0
  51. package/dist/{src/Model → Model}/Flow/FlowSummary.d.ts +0 -0
  52. package/dist/{src/Model → Model}/Flow/FlowSummary.js +0 -0
  53. package/dist/{src/Model → Model}/HealthAlert/HealthAlert.d.ts +0 -0
  54. package/dist/{src/Model → Model}/HealthAlert/HealthAlert.js +1 -1
  55. package/dist/{src/Model → Model}/HealthAlert/HealthAlertStatus.d.ts +0 -0
  56. package/dist/{src/Model → Model}/HealthAlert/HealthAlertStatus.js +0 -0
  57. package/dist/{src/Model → Model}/HealthAlert/HealthTestType.d.ts +0 -0
  58. package/dist/{src/Model → Model}/HealthAlert/HealthTestType.js +0 -0
  59. package/dist/{src/Model → Model}/JsonSerializable.d.ts +0 -0
  60. package/dist/{src/Model → Model}/JsonSerializable.js +0 -0
  61. package/dist/{src/Model → Model}/Log/Log.d.ts +0 -0
  62. package/dist/{src/Model → Model}/Log/Log.js +0 -0
  63. package/dist/{src/Model → Model}/Log/LogLevel.d.ts +0 -0
  64. package/dist/{src/Model → Model}/Log/LogLevel.js +0 -0
  65. package/dist/{src/Model → Model}/Log/LogQuery.d.ts +0 -0
  66. package/dist/{src/Model → Model}/Log/LogQuery.js +0 -0
  67. package/dist/{src/Model → Model}/Log/LogStatus.d.ts +0 -0
  68. package/dist/{src/Model → Model}/Log/LogStatus.js +0 -0
  69. package/dist/{src/Model → Model}/Log/LogStream.d.ts +0 -0
  70. package/dist/{src/Model → Model}/Log/LogStream.js +0 -0
  71. package/dist/{src/Model → Model}/Log/LogStreamId.d.ts +0 -0
  72. package/dist/{src/Model → Model}/Log/LogStreamId.js +0 -0
  73. package/dist/{src/Model → Model}/Log/LogStreamInformation.d.ts +0 -0
  74. package/dist/{src/Model → Model}/Log/LogStreamInformation.js +0 -0
  75. package/dist/{src/Model → Model}/Messaging/Channel/Channel.d.ts +0 -0
  76. package/dist/{src/Model → Model}/Messaging/Channel/Channel.js +0 -0
  77. package/dist/{src/Model → Model}/Messaging/Channel/ChannelData.d.ts +0 -0
  78. package/dist/{src/Model → Model}/Messaging/Channel/ChannelData.js +0 -0
  79. package/dist/{src/Model → Model}/Messaging/Channel/ChannelType.d.ts +0 -0
  80. package/dist/{src/Model → Model}/Messaging/Channel/ChannelType.js +0 -0
  81. package/dist/{src/Model → Model}/Messaging/Channel/EmailChannelData.d.ts +0 -0
  82. package/dist/{src/Model → Model}/Messaging/Channel/EmailChannelData.js +0 -0
  83. package/dist/{src/Model → Model}/Messaging/Channel/PushChannelData.d.ts +0 -0
  84. package/dist/{src/Model → Model}/Messaging/Channel/PushChannelData.js +0 -0
  85. package/dist/{src/Model → Model}/Messaging/Channel/SlackChannelData.d.ts +0 -0
  86. package/dist/{src/Model → Model}/Messaging/Channel/SlackChannelData.js +0 -0
  87. package/dist/{src/Model → Model}/Messaging/Channel/SmsChannelData.d.ts +0 -0
  88. package/dist/{src/Model → Model}/Messaging/Channel/SmsChannelData.js +0 -0
  89. package/dist/{src/Model → Model}/Messaging/Channel/WebhookChannelData.d.ts +0 -0
  90. package/dist/{src/Model → Model}/Messaging/Channel/WebhookChannelData.js +0 -0
  91. package/dist/{src/Model → Model}/Messaging/ChannelHistory.d.ts +0 -0
  92. package/dist/{src/Model → Model}/Messaging/ChannelHistory.js +0 -0
  93. package/dist/{src/Model → Model}/Messaging/Subscriber.d.ts +0 -0
  94. package/dist/{src/Model → Model}/Messaging/Subscriber.js +0 -0
  95. package/dist/{src/Model → Model}/Notification.d.ts +0 -0
  96. package/dist/{src/Model → Model}/Notification.js +0 -0
  97. package/dist/{src/Model → Model}/Project/PlatformLanguage.d.ts +0 -0
  98. package/dist/{src/Model → Model}/Project/PlatformLanguage.js +0 -0
  99. package/dist/{src/Model → Model}/Project/Project.d.ts +0 -0
  100. package/dist/{src/Model → Model}/Project/Project.js +0 -0
  101. package/dist/{src/Model → Model}/Project/ProjectDeploy.d.ts +0 -0
  102. package/dist/{src/Model → Model}/Project/ProjectDeploy.js +0 -0
  103. package/dist/{src/Model → Model}/Project/ProjectDeployCommit.d.ts +0 -0
  104. package/dist/{src/Model → Model}/Project/ProjectDeployCommit.js +0 -0
  105. package/dist/{src/Model → Model}/Project/ProjectDeployStatus.d.ts +0 -0
  106. package/dist/{src/Model → Model}/Project/ProjectDeployStatus.js +0 -0
  107. package/dist/{src/Model → Model}/Project/ProjectEnvironment.d.ts +0 -0
  108. package/dist/{src/Model → Model}/Project/ProjectEnvironment.js +0 -0
  109. package/dist/{src/Model → Model}/Queue/QueueStatus.d.ts +0 -0
  110. package/dist/{src/Model → Model}/Queue/QueueStatus.js +0 -0
  111. package/dist/{src/Model → Model}/Result/CollectionResult.d.ts +0 -0
  112. package/dist/{src/Model → Model}/Result/CollectionResult.js +0 -0
  113. package/dist/{src/Model → Model}/Result/DataResult.d.ts +0 -0
  114. package/dist/{src/Model → Model}/Result/DataResult.js +0 -0
  115. package/dist/{src/Model → Model}/Result/ObjectResult.d.ts +0 -0
  116. package/dist/{src/Model → Model}/Result/ObjectResult.js +0 -0
  117. package/dist/Model/Result/ObjectWrapper.d.ts +3 -0
  118. package/dist/Model/Result/ObjectWrapper.js +19 -0
  119. package/dist/{src/Model → Model}/Result/ResultError.d.ts +0 -0
  120. package/dist/{src/Model → Model}/Result/ResultError.js +0 -0
  121. package/dist/{src/Model → Model}/SourcesAccountRepository.d.ts +0 -0
  122. package/dist/{src/Model → Model}/SourcesAccountRepository.js +0 -0
  123. package/dist/{src/Model → Model}/State.d.ts +0 -0
  124. package/dist/{src/Model → Model}/State.js +0 -0
  125. package/dist/{src/Model → Model}/StateAware.d.ts +0 -0
  126. package/dist/{src/Model → Model}/StateAware.js +0 -0
  127. package/dist/{src/Model → Model}/Storage/StorageInformation.d.ts +0 -0
  128. package/dist/{src/Model → Model}/Storage/StorageInformation.js +0 -0
  129. package/dist/{src/Model → Model}/Storage/StorageItem.d.ts +0 -0
  130. package/dist/{src/Model → Model}/Storage/StorageItem.js +0 -0
  131. package/dist/{src/Model → Model}/Storage/StorageItemInformation.d.ts +0 -0
  132. package/dist/{src/Model → Model}/Storage/StorageItemInformation.js +0 -0
  133. package/dist/{src/Model → Model}/Storage/StorageType.d.ts +0 -0
  134. package/dist/{src/Model → Model}/Storage/StorageType.js +0 -0
  135. package/dist/{src/Model → Model}/Trigger/ApiTrigger.d.ts +0 -0
  136. package/dist/{src/Model → Model}/Trigger/ApiTrigger.js +0 -0
  137. package/dist/{src/Model → Model}/Trigger/ApiTriggerData.d.ts +0 -0
  138. package/dist/{src/Model → Model}/Trigger/ApiTriggerData.js +0 -0
  139. package/dist/{src/Model → Model}/Trigger/ScheduleTrigger.d.ts +0 -0
  140. package/dist/{src/Model → Model}/Trigger/ScheduleTrigger.js +0 -0
  141. package/dist/{src/Model → Model}/Trigger/ScheduleTriggerData.d.ts +0 -0
  142. package/dist/{src/Model → Model}/Trigger/ScheduleTriggerData.js +0 -0
  143. package/dist/{src/Model → Model}/Trigger/Trigger.d.ts +0 -0
  144. package/dist/{src/Model → Model}/Trigger/Trigger.js +0 -0
  145. package/dist/{src/Model → Model}/Trigger/TriggerData.d.ts +0 -0
  146. package/dist/{src/Model → Model}/Trigger/TriggerData.js +0 -0
  147. package/dist/{src/Model → Model}/Trigger/TriggerType.d.ts +0 -0
  148. package/dist/{src/Model → Model}/Trigger/TriggerType.js +0 -0
  149. package/dist/{src/Model → Model}/Trigger/WebhookTrigger.d.ts +0 -0
  150. package/dist/{src/Model → Model}/Trigger/WebhookTrigger.js +0 -0
  151. package/dist/{src/Model → Model}/Trigger/WebhookTriggerData.d.ts +0 -0
  152. package/dist/{src/Model → Model}/Trigger/WebhookTriggerData.js +0 -0
  153. package/dist/{src/Model → Model}/User/UserAction.d.ts +0 -0
  154. package/dist/{src/Model → Model}/User/UserAction.js +0 -0
  155. package/dist/{src/Model → Model}/User/UserAuthProvider.d.ts +0 -0
  156. package/dist/{src/Model → Model}/User/UserAuthProvider.js +0 -0
  157. package/dist/{src/Model → Model}/User.d.ts +0 -0
  158. package/dist/{src/Model → Model}/User.js +0 -0
  159. package/dist/{src/Model → Model}/Worker/Platform.d.ts +0 -0
  160. package/dist/{src/Model → Model}/Worker/Platform.js +0 -0
  161. package/dist/{src/Model → Model}/Worker/PlatformImage.d.ts +0 -0
  162. package/dist/{src/Model → Model}/Worker/PlatformImage.js +0 -0
  163. package/dist/{src/Model → Model}/Worker/Worker.d.ts +0 -0
  164. package/dist/{src/Model → Model}/Worker/Worker.js +0 -0
  165. package/dist/{src/Model → Model}/Worker/WorkerConfig.d.ts +0 -0
  166. package/dist/{src/Model → Model}/Worker/WorkerConfig.js +0 -0
  167. package/dist/{src/Model → Model}/Worker/WorkerInstance.d.ts +0 -0
  168. package/dist/{src/Model → Model}/Worker/WorkerInstance.js +0 -0
  169. package/dist/{src/Model → Model}/Worker/WorkerInstanceState.d.ts +0 -0
  170. package/dist/{src/Model → Model}/Worker/WorkerInstanceState.js +0 -0
  171. package/dist/{src/Model → Model}/Worker/WorkerState.d.ts +0 -0
  172. package/dist/{src/Model → Model}/Worker/WorkerState.js +0 -0
  173. package/dist/{src/Model → Model}/Workspace/Workspace.d.ts +0 -0
  174. package/dist/{src/Model → Model}/Workspace/Workspace.js +0 -0
  175. package/dist/{src/Model → Model}/Workspace/WorkspaceMember.d.ts +0 -0
  176. package/dist/{src/Model → Model}/Workspace/WorkspaceMember.js +0 -0
  177. package/dist/{src/Model → Model}/Workspace/WorkspaceMemberInvite.d.ts +0 -0
  178. package/dist/{src/Model → Model}/Workspace/WorkspaceMemberInvite.js +0 -0
  179. package/dist/{src/Model → Model}/Workspace/WorkspaceMemberInvite2.d.ts +0 -0
  180. package/dist/{src/Model → Model}/Workspace/WorkspaceMemberInvite2.js +0 -0
  181. package/dist/{src/Model → Model}/Workspace/WorkspaceMemberInviteState.d.ts +0 -0
  182. package/dist/{src/Model → Model}/Workspace/WorkspaceMemberInviteState.js +0 -0
  183. package/dist/{src/Model → Model}/Workspace/WorkspaceMemberRole.d.ts +0 -0
  184. package/dist/{src/Model → Model}/Workspace/WorkspaceMemberRole.js +0 -0
  185. package/dist/{src/Service → Service}/AdapterEndpoint.d.ts +0 -0
  186. package/dist/{src/Service → Service}/AdapterEndpoint.js +0 -0
  187. package/dist/{src/Service → Service}/ChannelEndpoint.d.ts +0 -0
  188. package/dist/{src/Service → Service}/ChannelEndpoint.js +0 -0
  189. package/dist/{src/Service → Service}/ConfigEndpoint.d.ts +0 -0
  190. package/dist/{src/Service → Service}/ConfigEndpoint.js +0 -0
  191. package/dist/{src/Service → Service}/Endpoint.d.ts +0 -0
  192. package/dist/{src/Service → Service}/Endpoint.js +9 -2
  193. package/dist/{src/Service → Service}/FlowEndpoint.d.ts +0 -0
  194. package/dist/{src/Service → Service}/FlowEndpoint.js +0 -0
  195. package/dist/{src/Service → Service}/FlowRunEndpoint.d.ts +0 -0
  196. package/dist/{src/Service → Service}/FlowRunEndpoint.js +0 -0
  197. package/dist/{src/Service → Service}/FlowRunRequestEndpoint.d.ts +0 -0
  198. package/dist/{src/Service → Service}/FlowRunRequestEndpoint.js +0 -0
  199. package/dist/{src/Service → Service}/FlowRunStatsEndpoint.d.ts +0 -0
  200. package/dist/{src/Service → Service}/FlowRunStatsEndpoint.js +0 -0
  201. package/dist/{src/Service → Service}/HealthAlertEndpoint.d.ts +0 -0
  202. package/dist/{src/Service → Service}/HealthAlertEndpoint.js +0 -0
  203. package/dist/{src/Service → Service}/LogEndpoint.d.ts +0 -0
  204. package/dist/{src/Service → Service}/LogEndpoint.js +0 -0
  205. package/dist/{src/Service → Service}/NotificationsEndpoint.d.ts +0 -0
  206. package/dist/{src/Service → Service}/NotificationsEndpoint.js +0 -0
  207. package/dist/{src/Service → Service}/PlatformEndpoint.d.ts +0 -0
  208. package/dist/{src/Service → Service}/PlatformEndpoint.js +0 -0
  209. package/dist/{src/Service → Service}/PlatformLanguageEndpoint.d.ts +0 -0
  210. package/dist/{src/Service → Service}/PlatformLanguageEndpoint.js +0 -0
  211. package/dist/{src/Service → Service}/ProjectDeployEndpoint.d.ts +0 -0
  212. package/dist/{src/Service → Service}/ProjectDeployEndpoint.js +0 -0
  213. package/dist/{src/Service → Service}/ProjectEndpoint.d.ts +0 -0
  214. package/dist/{src/Service → Service}/ProjectEndpoint.js +0 -0
  215. package/dist/{src/Service → Service}/ProjectEnvironmentEndpoint.d.ts +0 -0
  216. package/dist/{src/Service → Service}/ProjectEnvironmentEndpoint.js +0 -0
  217. package/dist/{src/Service → Service}/QueueEndpoint.d.ts +0 -0
  218. package/dist/{src/Service → Service}/QueueEndpoint.js +0 -0
  219. package/dist/{src/Service → Service}/SourcesAccountEndpoint.d.ts +0 -0
  220. package/dist/{src/Service → Service}/SourcesAccountEndpoint.js +0 -0
  221. package/dist/{src/Service → Service}/StorageEndpoint.d.ts +0 -0
  222. package/dist/{src/Service → Service}/StorageEndpoint.js +0 -0
  223. package/dist/{src/Service → Service}/SubscriberEndpoint.d.ts +0 -0
  224. package/dist/{src/Service → Service}/SubscriberEndpoint.js +0 -0
  225. package/dist/{src/Service → Service}/TriggerEndpoint.d.ts +0 -0
  226. package/dist/{src/Service → Service}/TriggerEndpoint.js +0 -0
  227. package/dist/{src/Service → Service}/UserEndpoint.d.ts +4 -0
  228. package/dist/{src/Service → Service}/UserEndpoint.js +8 -0
  229. package/dist/{src/Service → Service}/WorkerConfigEndpoint.d.ts +0 -0
  230. package/dist/{src/Service → Service}/WorkerConfigEndpoint.js +0 -0
  231. package/dist/{src/Service → Service}/WorkerEndpoint.d.ts +0 -0
  232. package/dist/{src/Service → Service}/WorkerEndpoint.js +0 -0
  233. package/dist/{src/Service → Service}/WorkspaceEndpoint.d.ts +0 -0
  234. package/dist/{src/Service → Service}/WorkspaceEndpoint.js +0 -0
  235. package/dist/{src/Service → Service}/WorkspaceMemberEndpoint.d.ts +0 -0
  236. package/dist/{src/Service → Service}/WorkspaceMemberEndpoint.js +0 -0
  237. package/dist/{src/Utils.d.ts → Utils.d.ts} +0 -0
  238. package/dist/{src/Utils.js → Utils.js} +0 -0
  239. package/dist/{src/index.d.ts → index.d.ts} +0 -1
  240. package/dist/{src/index.js → index.js} +2 -4
  241. package/dist/{src/main.d.ts → main.d.ts} +0 -0
  242. package/dist/{src/main.js → main.js} +0 -0
  243. package/dist/{src/version.d.ts → version.d.ts} +0 -0
  244. package/dist/{src/version.js → version.js} +0 -0
  245. package/package.json +2 -2
  246. package/dist/e2e/src/helper.d.ts +0 -3
  247. package/dist/e2e/src/helper.js +0 -13
  248. package/dist/src/Http/HttpClientRequest.spec.d.ts +0 -1
  249. package/dist/src/Http/HttpClientRequest.spec.js +0 -15
  250. package/dist/src/Http/OAuthClient.spec.d.ts +0 -1
  251. package/dist/src/Http/OAuthClient.spec.js +0 -20
  252. package/dist/src/Model/PagedResult.d.ts +0 -6
  253. package/dist/src/Model/PagedResult.js +0 -17
  254. package/dist/src/Model/Result/DataResult.spec.d.ts +0 -1
  255. package/dist/src/Model/Result/DataResult.spec.js +0 -6
  256. package/dist/src/Service/ProjectDeployEndpoint.spec.d.ts +0 -1
  257. package/dist/src/Service/ProjectDeployEndpoint.spec.js +0 -19
  258. package/dist/src/Service/ProjectEnvironmentEndpoint.spec.d.ts +0 -1
  259. package/dist/src/Service/ProjectEnvironmentEndpoint.spec.js +0 -19
  260. package/dist/src/Service/WorkspaceEndpoint.spec.d.ts +0 -1
  261. package/dist/src/Service/WorkspaceEndpoint.spec.js +0 -19
  262. package/dist/src/Utils.spec.d.ts +0 -1
  263. package/dist/src/Utils.spec.js +0 -40
  264. package/dist/src/auth.spec.d.ts +0 -1
  265. package/dist/src/auth.spec.js +0 -178
  266. package/dist/src/data.spec.d.ts +0 -1
  267. package/dist/src/data.spec.js +0 -37
  268. package/dist/src/test.d.ts +0 -4
  269. package/dist/src/test.js +0 -196
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -12,7 +12,7 @@ class HealthAlert {
12
12
  this.data = [];
13
13
  }
14
14
  static parse(raw) {
15
- let healthAlert = new HealthAlert(HealthTestType_1.HealthTestType.fromString(raw.healthTestType), HealthAlertStatus_1.HealthAlertStatus.fromString(raw.status));
15
+ let healthAlert = new HealthAlert(HealthTestType_1.HealthTestType.fromString(raw.health_test_type), HealthAlertStatus_1.HealthAlertStatus.fromString(raw.status));
16
16
  healthAlert.id = raw.id;
17
17
  healthAlert.date = new Date(raw.date);
18
18
  healthAlert.data = raw.data;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ export declare class ObjectWrapper {
2
+ static wrap<T>(raw: T): T;
3
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ObjectWrapper = void 0;
4
+ class ObjectWrapper {
5
+ static wrap(raw) {
6
+ const handler = {
7
+ get(target, property, receiver) {
8
+ const value = target[property];
9
+ if (value === undefined) {
10
+ throw new Error('Property "' + property + '" does not exist');
11
+ }
12
+ return value;
13
+ },
14
+ };
15
+ const wrapper = new Proxy(raw, handler);
16
+ return wrapper;
17
+ }
18
+ }
19
+ exports.ObjectWrapper = ObjectWrapper;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -6,6 +6,7 @@ const CollectionResult_1 = require("../Model/Result/CollectionResult");
6
6
  const ObjectResult_1 = require("../Model/Result/ObjectResult");
7
7
  const HttpClient_1 = require("../Http/HttpClient");
8
8
  const Utils_1 = require("../Utils");
9
+ const ObjectWrapper_1 = require("../Model/Result/ObjectWrapper");
9
10
  class Endpoint {
10
11
  constructor(httpClient) {
11
12
  this.httpClient = httpClient;
@@ -49,7 +50,9 @@ class Endpoint {
49
50
  if (error.code === HttpClient_1.HttpClient.HTTP_NOTFOUND) {
50
51
  result.setData(null);
51
52
  }
52
- throw error;
53
+ else {
54
+ throw error;
55
+ }
53
56
  }
54
57
  return result;
55
58
  }
@@ -64,7 +67,11 @@ class Endpoint {
64
67
  throw new Error('Invalid data');
65
68
  }
66
69
  for (const rawDataEntry of rawData) {
67
- data.push(parser(rawDataEntry));
70
+ // TODO: is it interesting to keep this, or only in develop mode?
71
+ const wrappedData = ObjectWrapper_1.ObjectWrapper.wrap(rawDataEntry);
72
+ const parsedData = parser(wrappedData);
73
+ // const parsedData:T = parser(rawDataEntry);
74
+ data.push(parsedData);
68
75
  }
69
76
  return data;
70
77
  }
File without changes
File without changes
File without changes
File without changes
File without changes