@golemio/core 1.18.1-dev.1592261843 → 1.18.1-dev.1622172793

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 (152) hide show
  1. package/dist/helpers/DateTime.js +4 -5
  2. package/dist/helpers/DateTime.js.map +1 -1
  3. package/dist/helpers/HealthCheck.js +5 -14
  4. package/dist/helpers/HealthCheck.js.map +1 -1
  5. package/dist/helpers/configuration/SimpleConfig.js +4 -1
  6. package/dist/helpers/configuration/SimpleConfig.js.map +1 -1
  7. package/dist/helpers/data-access/amqp/AlternateExchangeCreator.js +4 -13
  8. package/dist/helpers/data-access/amqp/AlternateExchangeCreator.js.map +1 -1
  9. package/dist/helpers/data-access/amqp/AmqpConnector.js +28 -40
  10. package/dist/helpers/data-access/amqp/AmqpConnector.js.map +1 -1
  11. package/dist/helpers/data-access/feature-flags/helpers/AbstractFeatureFlagServiceWrapper.js +2 -13
  12. package/dist/helpers/data-access/feature-flags/helpers/AbstractFeatureFlagServiceWrapper.js.map +1 -1
  13. package/dist/helpers/data-access/feature-flags/providers/NoopFeatureFlagService.js +9 -24
  14. package/dist/helpers/data-access/feature-flags/providers/NoopFeatureFlagService.js.map +1 -1
  15. package/dist/helpers/data-access/postgres/DatabaseConnector.js +23 -25
  16. package/dist/helpers/data-access/postgres/DatabaseConnector.js.map +1 -1
  17. package/dist/helpers/data-access/postgres/repositories/AbstractCachedRepository.js +3 -12
  18. package/dist/helpers/data-access/postgres/repositories/AbstractCachedRepository.js.map +1 -1
  19. package/dist/helpers/data-access/pubsub/subscribers/RedisSubscriber.js +15 -30
  20. package/dist/helpers/data-access/pubsub/subscribers/RedisSubscriber.js.map +1 -1
  21. package/dist/helpers/data-access/redis/IoRedisConnector.js +8 -17
  22. package/dist/helpers/data-access/redis/IoRedisConnector.js.map +1 -1
  23. package/dist/helpers/data-access/storage/AzureBlobStorageService.js +64 -81
  24. package/dist/helpers/data-access/storage/AzureBlobStorageService.js.map +1 -1
  25. package/dist/helpers/data-access/storage/NoopStorageService.js +9 -26
  26. package/dist/helpers/data-access/storage/NoopStorageService.js.map +1 -1
  27. package/dist/helpers/data-access/table-storage/TableStorageServiceFactory.js +1 -2
  28. package/dist/helpers/data-access/table-storage/TableStorageServiceFactory.js.map +1 -1
  29. package/dist/helpers/data-access/table-storage/providers/AzureTableStorageService.js +39 -68
  30. package/dist/helpers/data-access/table-storage/providers/AzureTableStorageService.js.map +1 -1
  31. package/dist/helpers/data-access/table-storage/providers/NoopTableStorageService.js +4 -17
  32. package/dist/helpers/data-access/table-storage/providers/NoopTableStorageService.js.map +1 -1
  33. package/dist/helpers/logger/LoggerProvider.js +33 -14
  34. package/dist/helpers/logger/LoggerProvider.js.map +1 -1
  35. package/dist/helpers/logger/RequestLoggerProvider.js +1 -2
  36. package/dist/helpers/logger/RequestLoggerProvider.js.map +1 -1
  37. package/dist/helpers/routing/AbstractGeoJsonRouter.js +16 -34
  38. package/dist/helpers/routing/AbstractGeoJsonRouter.js.map +1 -1
  39. package/dist/input-gateway/config/InputGatewayConfiguration.js +1 -2
  40. package/dist/input-gateway/config/InputGatewayConfiguration.js.map +1 -1
  41. package/dist/input-gateway/connectors/AMQPConnector.js +52 -68
  42. package/dist/input-gateway/connectors/AMQPConnector.js.map +1 -1
  43. package/dist/input-gateway/controllers/BaseController.js +4 -13
  44. package/dist/input-gateway/controllers/BaseController.js.map +1 -1
  45. package/dist/integration-engine/connectors/AMQPConnector.js +28 -40
  46. package/dist/integration-engine/connectors/AMQPConnector.js.map +1 -1
  47. package/dist/integration-engine/data-access/RawDataStorage.js +7 -16
  48. package/dist/integration-engine/data-access/RawDataStorage.js.map +1 -1
  49. package/dist/integration-engine/data-access/pubsub/RedisPubSubChannel.js +3 -14
  50. package/dist/integration-engine/data-access/pubsub/RedisPubSubChannel.js.map +1 -1
  51. package/dist/integration-engine/data-access/pubsub/subscribers/RedisSubscriber.js +12 -25
  52. package/dist/integration-engine/data-access/pubsub/subscribers/RedisSubscriber.js.map +1 -1
  53. package/dist/integration-engine/datasources/DataSource.js +41 -60
  54. package/dist/integration-engine/datasources/DataSource.js.map +1 -1
  55. package/dist/integration-engine/datasources/DataSourceStream.js +12 -21
  56. package/dist/integration-engine/datasources/DataSourceStream.js.map +1 -1
  57. package/dist/integration-engine/datasources/DataSourceStreamManager.js +4 -13
  58. package/dist/integration-engine/datasources/DataSourceStreamManager.js.map +1 -1
  59. package/dist/integration-engine/datasources/DataSourceStreamed.js +37 -51
  60. package/dist/integration-engine/datasources/DataSourceStreamed.js.map +1 -1
  61. package/dist/integration-engine/datasources/RetryDataSource.js +25 -40
  62. package/dist/integration-engine/datasources/RetryDataSource.js.map +1 -1
  63. package/dist/integration-engine/datasources/datatype-strategy/CSVDataTypeStrategy.js +22 -33
  64. package/dist/integration-engine/datasources/datatype-strategy/CSVDataTypeStrategy.js.map +1 -1
  65. package/dist/integration-engine/datasources/datatype-strategy/JSONDataTypeStrategy.js +14 -25
  66. package/dist/integration-engine/datasources/datatype-strategy/JSONDataTypeStrategy.js.map +1 -1
  67. package/dist/integration-engine/datasources/datatype-strategy/XMLDataTypeStrategy.js +11 -22
  68. package/dist/integration-engine/datasources/datatype-strategy/XMLDataTypeStrategy.js.map +1 -1
  69. package/dist/integration-engine/datasources/datatype-strategy/ZipFileDataTypeStrategy.js +33 -45
  70. package/dist/integration-engine/datasources/datatype-strategy/ZipFileDataTypeStrategy.js.map +1 -1
  71. package/dist/integration-engine/datasources/protocol-strategy/FTPProtocolStrategy.js +17 -26
  72. package/dist/integration-engine/datasources/protocol-strategy/FTPProtocolStrategy.js.map +1 -1
  73. package/dist/integration-engine/datasources/protocol-strategy/GoogleCloudStorageProtocolStrategy.js +10 -19
  74. package/dist/integration-engine/datasources/protocol-strategy/GoogleCloudStorageProtocolStrategy.js.map +1 -1
  75. package/dist/integration-engine/datasources/protocol-strategy/HTTPFetchProtocolStrategy.js +42 -51
  76. package/dist/integration-engine/datasources/protocol-strategy/HTTPFetchProtocolStrategy.js.map +1 -1
  77. package/dist/integration-engine/datasources/protocol-strategy/HTTPRequestProtocolStrategy.js +49 -62
  78. package/dist/integration-engine/datasources/protocol-strategy/HTTPRequestProtocolStrategy.js.map +1 -1
  79. package/dist/integration-engine/datasources/protocol-strategy/HTTPRequestProtocolStrategyStreamed.js +67 -81
  80. package/dist/integration-engine/datasources/protocol-strategy/HTTPRequestProtocolStrategyStreamed.js.map +1 -1
  81. package/dist/integration-engine/datasources/protocol-strategy/PaginatedHTTPProtocolStrategy.js +29 -38
  82. package/dist/integration-engine/datasources/protocol-strategy/PaginatedHTTPProtocolStrategy.js.map +1 -1
  83. package/dist/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategy.js +37 -42
  84. package/dist/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategy.js.map +1 -1
  85. package/dist/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategyStreamed.js +29 -32
  86. package/dist/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategyStreamed.js.map +1 -1
  87. package/dist/integration-engine/datasources/protocol-strategy/ProtocolStrategy.js +73 -88
  88. package/dist/integration-engine/datasources/protocol-strategy/ProtocolStrategy.js.map +1 -1
  89. package/dist/integration-engine/datasources/protocol-strategy/SFTPProtocolStrategy.js +17 -26
  90. package/dist/integration-engine/datasources/protocol-strategy/SFTPProtocolStrategy.js.map +1 -1
  91. package/dist/integration-engine/datasources/protocol-strategy/helpers/FTPFileProcessor.js +37 -49
  92. package/dist/integration-engine/datasources/protocol-strategy/helpers/FTPFileProcessor.js.map +1 -1
  93. package/dist/integration-engine/helpers/FileCompressor.js +59 -76
  94. package/dist/integration-engine/helpers/FileCompressor.js.map +1 -1
  95. package/dist/integration-engine/helpers/GeocodeApi.js +20 -30
  96. package/dist/integration-engine/helpers/GeocodeApi.js.map +1 -1
  97. package/dist/integration-engine/helpers/IntegrationErrorHandler.js +3 -3
  98. package/dist/integration-engine/helpers/IntegrationErrorHandler.js.map +1 -1
  99. package/dist/integration-engine/helpers/PaginationHelper.js +1 -2
  100. package/dist/integration-engine/helpers/PaginationHelper.js.map +1 -1
  101. package/dist/integration-engine/models/PostgresModel.js +70 -75
  102. package/dist/integration-engine/models/PostgresModel.js.map +1 -1
  103. package/dist/integration-engine/models/RedisModel.js +28 -39
  104. package/dist/integration-engine/models/RedisModel.js.map +1 -1
  105. package/dist/integration-engine/queueprocessors/QueueProcessor.js +23 -28
  106. package/dist/integration-engine/queueprocessors/QueueProcessor.js.map +1 -1
  107. package/dist/integration-engine/transformations/BaseTransformation.js +8 -17
  108. package/dist/integration-engine/transformations/BaseTransformation.js.map +1 -1
  109. package/dist/integration-engine/workers/AbstractTask.js +7 -18
  110. package/dist/integration-engine/workers/AbstractTask.js.map +1 -1
  111. package/dist/integration-engine/workers/AbstractTaskJsonSchema.js +25 -38
  112. package/dist/integration-engine/workers/AbstractTaskJsonSchema.js.map +1 -1
  113. package/dist/integration-engine/workers/AbstractTaskWithoutValidation.js +2 -13
  114. package/dist/integration-engine/workers/AbstractTaskWithoutValidation.js.map +1 -1
  115. package/dist/integration-engine/workers/BaseWorker.js +4 -13
  116. package/dist/integration-engine/workers/BaseWorker.js.map +1 -1
  117. package/dist/integration-engine/workers/helpers/MessageDataParser.js +1 -2
  118. package/dist/integration-engine/workers/helpers/MessageDataParser.js.map +1 -1
  119. package/dist/integration-engine/workers/helpers/MessageDataValidator.js +18 -29
  120. package/dist/integration-engine/workers/helpers/MessageDataValidator.js.map +1 -1
  121. package/dist/integration-engine/workers/helpers/WebhookDecorators.js +1 -10
  122. package/dist/integration-engine/workers/helpers/WebhookDecorators.js.map +1 -1
  123. package/dist/integration-engine/workers/webhooks/CloudflareCachePurgeWebhook.js +13 -24
  124. package/dist/integration-engine/workers/webhooks/CloudflareCachePurgeWebhook.js.map +1 -1
  125. package/dist/monitoring/metrics/metrics-builder.js +21 -17
  126. package/dist/monitoring/metrics/metrics-builder.js.map +1 -1
  127. package/dist/monitoring/metrics/metrics-service.js +4 -14
  128. package/dist/monitoring/metrics/metrics-service.js.map +1 -1
  129. package/dist/monitoring/opentelemetry/instrumentation/configs/amqplib.js +1 -2
  130. package/dist/monitoring/opentelemetry/instrumentation/configs/amqplib.js.map +1 -1
  131. package/dist/monitoring/opentelemetry/instrumentation/configs/aws-sdk.js +1 -1
  132. package/dist/monitoring/opentelemetry/instrumentation/configs/aws-sdk.js.map +1 -1
  133. package/dist/monitoring/opentelemetry/trace-provider.js +8 -2
  134. package/dist/monitoring/opentelemetry/trace-provider.js.map +1 -1
  135. package/dist/monitoring/sentry/sentry-provider.js +1 -1
  136. package/dist/monitoring/sentry/sentry-provider.js.map +1 -1
  137. package/dist/monitoring/sentry/sentry-transactions.js +9 -19
  138. package/dist/monitoring/sentry/sentry-transactions.js.map +1 -1
  139. package/dist/output-gateway/Geo.js +3 -24
  140. package/dist/output-gateway/Geo.js.map +1 -1
  141. package/dist/output-gateway/config/OutputGatewayConfiguration.js +1 -2
  142. package/dist/output-gateway/config/OutputGatewayConfiguration.js.map +1 -1
  143. package/dist/output-gateway/database/index.js +3 -12
  144. package/dist/output-gateway/database/index.js.map +1 -1
  145. package/dist/output-gateway/ioc/Di.js +1 -10
  146. package/dist/output-gateway/ioc/Di.js.map +1 -1
  147. package/dist/output-gateway/models/SequelizeModel.js +4 -2
  148. package/dist/output-gateway/models/SequelizeModel.js.map +1 -1
  149. package/dist/output-gateway/routes/GeoJsonRouter.js +14 -32
  150. package/dist/output-gateway/routes/GeoJsonRouter.js.map +1 -1
  151. package/package.json +1 -1
  152. package/tsconfig.base.json +2 -2
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
12
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
4
  };
@@ -29,24 +20,20 @@ class RedisSubscriber extends AbstractSubscriber_1.Subscriber {
29
20
  this.logger.error("Error while connecting to Redis as Subscriber", { err });
30
21
  });
31
22
  }
32
- subscribe() {
33
- return __awaiter(this, void 0, void 0, function* () {
34
- if (this.connection.status === "ready") {
35
- this.logger.warn(`Already subscribed to Redis channel ${this.redisChannel}`);
36
- }
37
- else {
38
- yield this.connection.connect();
39
- yield this.connection.subscribe(this.redisChannel);
40
- this.logger.debug(`Subscribed to Redis channel ${this.redisChannel}`);
41
- }
42
- return this.connection;
43
- });
23
+ async subscribe() {
24
+ if (this.connection.status === "ready") {
25
+ this.logger.warn(`Already subscribed to Redis channel ${this.redisChannel}`);
26
+ }
27
+ else {
28
+ await this.connection.connect();
29
+ await this.connection.subscribe(this.redisChannel);
30
+ this.logger.debug(`Subscribed to Redis channel ${this.redisChannel}`);
31
+ }
32
+ return this.connection;
44
33
  }
45
- unsubscribe() {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- yield this.connection.unsubscribe(this.redisChannel);
48
- this.connection.disconnect();
49
- });
34
+ async unsubscribe() {
35
+ await this.connection.unsubscribe(this.redisChannel);
36
+ this.connection.disconnect();
50
37
  }
51
38
  listen(callback) {
52
39
  this.logger.debug(`Listening to Redis channel ${this.redisChannel}`);
@@ -63,10 +50,8 @@ class RedisSubscriber extends AbstractSubscriber_1.Subscriber {
63
50
  }
64
51
  });
65
52
  }
66
- dispose() {
67
- return __awaiter(this, void 0, void 0, function* () {
68
- yield this.unsubscribe();
69
- });
53
+ async dispose() {
54
+ await this.unsubscribe();
70
55
  }
71
56
  }
72
57
  exports.RedisSubscriber = RedisSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"RedisSub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C,YAAY,CAAC,CAAC;YACrD,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QACjC,CAAC;KAAA;IAEM,MAAM,CAAC,QAA+B;QACzC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;QACrE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;YAC/C,IAAI;gBACA,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,qCAAqC,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;gBAC/E,IAAI,OAAO,KAAK,IAAI,CAAC,YAAY,EAAE;oBAC/B,OAAO;iBACV;gBAED,QAAQ,CAAC,OAAY,CAAC,CAAC;aAC1B;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,GAAG,GAAG,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;aAC1F;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAEY,OAAO;;YAChB,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;QAC7B,CAAC;KAAA;CACJ;AAzDD,0CAyDC"}
1
+ {"version":3,"file":"RedisSubscriber.js","sourceRoot":"","sources":["../../../../../src/helpers/data-access/pubsub/subscribers/RedisSubscriber.ts"],"names":[],"mappings":";;;;;;AACA,sDAAwD;AACxD,6DAAkD;AASlD,MAAa,eAA4B,SAAQ,+BAAU;IAKvD,YAAY,OAA2B;QACnC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAE7B,IAAI,CAAC,UAAU,GAAG,IAAI,iBAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE;YACvD,cAAc,EAAE,kBAAkB,IAAI,CAAC,YA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,IAAI,CAAC,YAAY,EAAE;oBAC/B,OAAO;iBACV;gBAED,QAAQ,CAAC,OAAY,CAAC,CAAC;aAC1B;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,GAAG,GAAG,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;aAC1F;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,KAAK,CAAC,OAAO;QAChB,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;IAC7B,CAAC;CACJ;AAzDD,0CAyDC"}
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
12
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
4
  };
@@ -19,7 +10,7 @@ class IoRedisConnector {
19
10
  constructor(redisConnection, logger) {
20
11
  this.redisConnection = redisConnection;
21
12
  this.logger = logger;
22
- this.connect = () => __awaiter(this, void 0, void 0, function* () {
13
+ this.connect = async () => {
23
14
  if (this.connection) {
24
15
  return this.connection;
25
16
  }
@@ -40,7 +31,7 @@ class IoRedisConnector {
40
31
  catch (err) {
41
32
  throw new errors_1.FatalError("Error while connecting to Redis.", this.constructor.name, err);
42
33
  }
43
- });
34
+ };
44
35
  this.getConnection = () => {
45
36
  if (!this.connection) {
46
37
  throw new errors_1.FatalError("Redis connection does not exists. First call connect() method.", this.constructor.name);
@@ -50,15 +41,15 @@ class IoRedisConnector {
50
41
  this.isConnected = () => {
51
42
  return !!this.connection && this.connection.status === "ready";
52
43
  };
53
- this.disconnect = () => __awaiter(this, void 0, void 0, function* () {
44
+ this.disconnect = async () => {
54
45
  this.logger.info("Redis disconnect called");
55
46
  if (this.connection) {
56
- yield this.connection.quit();
47
+ await this.connection.quit();
57
48
  }
58
- });
59
- this.dispose = () => __awaiter(this, void 0, void 0, function* () {
60
- yield this.disconnect();
61
- });
49
+ };
50
+ this.dispose = async () => {
51
+ await this.disconnect();
52
+ };
62
53
  }
63
54
  }
64
55
  exports.IoRedisConnector = IoRedisConnector;
@@ -1 +1 @@
1
- {"version":3,"file":"IoRedisConnector.js","sourceRoot":"","sources":["../../../../src/helpers/data-access/redis/IoRedisConnector.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,4CAA2D;AAC3D,sDAAwD;AAGxD,MAAa,gBAAgB;IAGzB,YAA6B,eAAuB,EAAmB,MAAe;QAAzD,oBAAe,GAAf,eAAe,CAAQ;QAAmB,WAAM,GAAN,MAAM,CAAS;QAE/E,YAAO,GAAG,GAAiC,EAAE;YAChD,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjB,OAAO,IAAI,CAAC,UAAU,CAAC;aAC1B;YAED,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;gBACvB,MAAM,IAAI,mBAAU,CAAC,kCAAkC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;aACnF;YAED,IAAI;gBACA,IAAI,CAAC,UAAU,GAAG,IAAI,iBAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;gBAElD,IAAI,CAAC,UAAU;qBACV,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;oBACjB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,qBAAY,CAAC,2BAA2B,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;gBAChG,CAAC,CAAC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AE;YAC/B,OAAO,CAAC,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,OAAO,CAAC;QACnE,CAAC,CAAC;QAEK,eAAU,GAAG,KAAK,IAAmB,EAAE;YAC1C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;YAC5C,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjB,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;aAChC;QACL,CAAC,CAAC;QAEK,YAAO,GAAG,KAAK,IAAmB,EAAE;YACvC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QAC5B,CAAC,CAAC;IAhDuF,CAAC;CAiD7F;AApDD,4CAoDC"}
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.AzureBlobStorageService = void 0;
13
4
  const _helpers_1 = require("../..");
@@ -22,81 +13,73 @@ class AzureBlobStorageService extends AbstractStorageService_1.AbstractStorageSe
22
13
  this.log = log;
23
14
  this.uploadTimeoutInMs = config.uploadTimeoutInSeconds * 1000;
24
15
  }
25
- uploadStream(stream, pathPrefix, ext = "", fileName) {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- const now = (0, _helpers_1.dateTime)(new Date(), { timeZone: "Europe/Prague" });
28
- const fileNamePrefix = fileName !== null && fileName !== void 0 ? fileName : `${now.format("yyyy-MM-dd")}/${now.format("HH_mm_ss.SSS")}`;
29
- const fileNameKey = `${pathPrefix}/${fileNamePrefix}`;
30
- const fileNameExt = ext ? `.${ext}` : "";
31
- try {
32
- const options = {
33
- blobHTTPHeaders: { blobContentType: "application/octet-stream" },
34
- onProgress: this.handleUploadProgress(fileNameKey + fileNameExt),
35
- abortSignal: AbortSignal.timeout(this.uploadTimeoutInMs),
36
- };
37
- const containerClient = this.instantiateContainerClient();
38
- const blobClient = containerClient.getBlockBlobClient(`${fileNameKey}${fileNameExt}`);
39
- yield blobClient.uploadStream(stream, UPLOAD_STREAM_BUFFER_SIZE, undefined, options);
40
- this.log.verbose(`[${this.constructor.name}] Data stream uploaded (${fileNameKey}${fileNameExt})`);
41
- }
42
- catch (err) {
43
- this.log.error(err, `[${this.constructor.name}] Saving of data stream failed (${fileNameKey}${fileNameExt})`);
44
- }
45
- });
16
+ async uploadStream(stream, pathPrefix, ext = "", fileName) {
17
+ const now = (0, _helpers_1.dateTime)(new Date(), { timeZone: "Europe/Prague" });
18
+ const fileNamePrefix = fileName ?? `${now.format("yyyy-MM-dd")}/${now.format("HH_mm_ss.SSS")}`;
19
+ const fileNameKey = `${pathPrefix}/${fileNamePrefix}`;
20
+ const fileNameExt = ext ? `.${ext}` : "";
21
+ try {
22
+ const options = {
23
+ blobHTTPHeaders: { blobContentType: "application/octet-stream" },
24
+ onProgress: this.handleUploadProgress(fileNameKey + fileNameExt),
25
+ abortSignal: AbortSignal.timeout(this.uploadTimeoutInMs),
26
+ };
27
+ const containerClient = this.instantiateContainerClient();
28
+ const blobClient = containerClient.getBlockBlobClient(`${fileNameKey}${fileNameExt}`);
29
+ await blobClient.uploadStream(stream, UPLOAD_STREAM_BUFFER_SIZE, undefined, options);
30
+ this.log.verbose(`[${this.constructor.name}] Data stream uploaded (${fileNameKey}${fileNameExt})`);
31
+ }
32
+ catch (err) {
33
+ this.log.error(err, `[${this.constructor.name}] Saving of data stream failed (${fileNameKey}${fileNameExt})`);
34
+ }
46
35
  }
47
- uploadFile(data, pathPrefix, ext = "", fileName) {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- const now = (0, _helpers_1.dateTime)(new Date(), { timeZone: "Europe/Prague" });
50
- const fileNamePrefix = fileName !== null && fileName !== void 0 ? fileName : `${now.format("yyyy-MM-dd")}/${now.format("HH_mm_ss.SSS")}`;
51
- const fileNameKey = `${pathPrefix}/${fileNamePrefix}`;
52
- const fileNameExt = ext ? `.${ext}` : "";
53
- try {
54
- const options = {
55
- blobHTTPHeaders: { blobContentType: "application/octet-stream" },
56
- onProgress: this.handleUploadProgress(fileNameKey + fileNameExt, Buffer.byteLength(data)),
57
- abortSignal: AbortSignal.timeout(this.uploadTimeoutInMs),
58
- };
59
- if (!Buffer.isBuffer(data)) {
60
- data = Buffer.from(data);
61
- }
62
- const containerClient = this.instantiateContainerClient();
63
- const blobClient = containerClient.getBlockBlobClient(`${fileNameKey}${fileNameExt}`);
64
- yield blobClient.uploadData(data, options);
65
- this.log.verbose(`[${this.constructor.name}] Data uploaded (${fileNameKey}${fileNameExt})`);
36
+ async uploadFile(data, pathPrefix, ext = "", fileName) {
37
+ const now = (0, _helpers_1.dateTime)(new Date(), { timeZone: "Europe/Prague" });
38
+ const fileNamePrefix = fileName ?? `${now.format("yyyy-MM-dd")}/${now.format("HH_mm_ss.SSS")}`;
39
+ const fileNameKey = `${pathPrefix}/${fileNamePrefix}`;
40
+ const fileNameExt = ext ? `.${ext}` : "";
41
+ try {
42
+ const options = {
43
+ blobHTTPHeaders: { blobContentType: "application/octet-stream" },
44
+ onProgress: this.handleUploadProgress(fileNameKey + fileNameExt, Buffer.byteLength(data)),
45
+ abortSignal: AbortSignal.timeout(this.uploadTimeoutInMs),
46
+ };
47
+ if (!Buffer.isBuffer(data)) {
48
+ data = Buffer.from(data);
66
49
  }
67
- catch (err) {
68
- this.log.error(err, `[${this.constructor.name}] Saving of data failed (${fileNameKey}${fileNameExt})`);
69
- }
70
- });
50
+ const containerClient = this.instantiateContainerClient();
51
+ const blobClient = containerClient.getBlockBlobClient(`${fileNameKey}${fileNameExt}`);
52
+ await blobClient.uploadData(data, options);
53
+ this.log.verbose(`[${this.constructor.name}] Data uploaded (${fileNameKey}${fileNameExt})`);
54
+ }
55
+ catch (err) {
56
+ this.log.error(err, `[${this.constructor.name}] Saving of data failed (${fileNameKey}${fileNameExt})`);
57
+ }
71
58
  }
72
- deleteFile(fileKey) {
73
- return __awaiter(this, void 0, void 0, function* () {
74
- try {
75
- const options = {
76
- deleteSnapshots: "include",
77
- };
78
- const containerClient = this.instantiateContainerClient();
79
- const blobClient = containerClient.getBlockBlobClient(fileKey);
80
- yield blobClient.delete(options);
81
- this.log.verbose(`[${this.constructor.name}] Data deleted (${fileKey})`);
82
- }
83
- catch (err) {
84
- this.log.error(err, `[${this.constructor.name}] Deletion of data failed (${fileKey})`);
85
- }
86
- });
59
+ async deleteFile(fileKey) {
60
+ try {
61
+ const options = {
62
+ deleteSnapshots: "include",
63
+ };
64
+ const containerClient = this.instantiateContainerClient();
65
+ const blobClient = containerClient.getBlockBlobClient(fileKey);
66
+ await blobClient.delete(options);
67
+ this.log.verbose(`[${this.constructor.name}] Data deleted (${fileKey})`);
68
+ }
69
+ catch (err) {
70
+ this.log.error(err, `[${this.constructor.name}] Deletion of data failed (${fileKey})`);
71
+ }
87
72
  }
88
- getFileStream(fileKey) {
89
- return __awaiter(this, void 0, void 0, function* () {
90
- try {
91
- const containerClient = this.instantiateContainerClient();
92
- const blobClient = containerClient.getBlockBlobClient(fileKey);
93
- const downloadResponse = yield blobClient.download();
94
- return downloadResponse.readableStreamBody;
95
- }
96
- catch (err) {
97
- this.log.error(err, `[${this.constructor.name}] Getting data failed (${fileKey})`);
98
- }
99
- });
73
+ async getFileStream(fileKey) {
74
+ try {
75
+ const containerClient = this.instantiateContainerClient();
76
+ const blobClient = containerClient.getBlockBlobClient(fileKey);
77
+ const downloadResponse = await blobClient.download();
78
+ return downloadResponse.readableStreamBody;
79
+ }
80
+ catch (err) {
81
+ this.log.error(err, `[${this.constructor.name}] Getting data failed (${fileKey})`);
82
+ }
100
83
  }
101
84
  instantiateContainerClient() {
102
85
  // TODO: use @azure/identity-cache-persistence if Microsoft starts to reject auth requests
@@ -107,7 +90,7 @@ class AzureBlobStorageService extends AbstractStorageService_1.AbstractStorageSe
107
90
  handleUploadProgress(filePath, dataByteLength) {
108
91
  return (progress) => {
109
92
  this.log.verbose(`[${this.constructor.name}] File upload ` +
110
- `${filePath}: ${progress.loadedBytes} / ${dataByteLength !== null && dataByteLength !== void 0 ? dataByteLength : "unknown"}`);
93
+ `${filePath}: ${progress.loadedBytes} / ${dataByteLength ?? "unknown"}`);
111
94
  };
112
95
  }
113
96
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AzureBlobStorageService.js","sourceRoot":"","sources":["../../../../src/helpers/data-access/storage/AzureBlobStorageService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAoC;AAGpC,8CAAyD;AACzD,sDAA4H;AAE5H,qEAAkE;AAWlE,MAAM,yBAAyB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,OAAO;AAE1D,MAAa,uBAAwB,SAAQ,+CAAsB;IAG/D,YAAoB,MAA+B,EAAmB,GAAY;QAC9E,KAAK,EAAE,CAAC;QADQ,WAAM,GAAN,MAAM,CAAyB;QAAmB,QAAG,GAAH,GAAG,CAAS;QAE9E,IAAI,CAAC,iBAAiB,GAAG,MAAM,CAAC,sBAAsB,GAAG,IAAI,CAAC;IAClE,CAAC;IAEY,YAAY,CAAC,MAAgB,EAAE,UAAkB,EAAE,MAAc,EAAE,EAAE,QAAiB;;YAC/F,MAAM,GAAG,GAAG,IAAA,mBAAQ,EAAC,IAAI,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;YAChE,MAAM,cAAc,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,GAAG,GAAG,CAAC,MAAM,CAAC,YAAY,CA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CAAC,CAAC;QACrH,MAAM,iBAAiB,GAAG,IAAI,gCAAiB,CAAC,WAAW,IAAI,CAAC,MAAM,CAAC,OAAO,wBAAwB,EAAE,WAAW,CAAC,CAAC;QACrH,OAAO,iBAAiB,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC3E,CAAC;IAEO,oBAAoB,CAAC,QAAgB,EAAE,cAAuB;QAClE,OAAO,CAAC,QAA+B,EAAE,EAAE;YACvC,IAAI,CAAC,GAAG,CAAC,OAAO,CACZ,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,gBAAgB;gBACrC,GAAG,QAAQ,KAAK,QAAQ,CAAC,WAAW,MAAM,cAAc,IAAI,SAAS,EAAE,CAC9E,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CACJ;AArGD,0DAqGC"}
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.NoopStorageService = void 0;
13
4
  const AbstractStorageService_1 = require("./AbstractStorageService");
@@ -16,26 +7,18 @@ class NoopStorageService extends AbstractStorageService_1.AbstractStorageService
16
7
  super();
17
8
  this.log = log;
18
9
  }
19
- uploadStream(stream, pathPrefix, ext, fileName) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- this.log.silly("[NoopStorageService] Storage is disabled. Skipping stream upload.");
22
- });
10
+ async uploadStream(stream, pathPrefix, ext, fileName) {
11
+ this.log.silly("[NoopStorageService] Storage is disabled. Skipping stream upload.");
23
12
  }
24
- uploadFile(data, pathPrefix, ext, fileName) {
25
- return __awaiter(this, void 0, void 0, function* () {
26
- this.log.silly("[NoopStorageService] Storage is disabled. Skipping file upload.");
27
- });
13
+ async uploadFile(data, pathPrefix, ext, fileName) {
14
+ this.log.silly("[NoopStorageService] Storage is disabled. Skipping file upload.");
28
15
  }
29
- deleteFile(fileKey) {
30
- return __awaiter(this, void 0, void 0, function* () {
31
- this.log.silly("[NoopStorageService] Storage is disabled. Skipping file deletion.");
32
- });
16
+ async deleteFile(fileKey) {
17
+ this.log.silly("[NoopStorageService] Storage is disabled. Skipping file deletion.");
33
18
  }
34
- getFileStream(fileKey) {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- this.log.silly("[NoopStorageService] Storage is disabled. Skipping file fetching.");
37
- return;
38
- });
19
+ async getFileStream(fileKey) {
20
+ this.log.silly("[NoopStorageService] Storage is disabled. Skipping file fetching.");
21
+ return;
39
22
  }
40
23
  }
41
24
  exports.NoopStorageService = NoopStorageService;
@@ -1 +1 @@
1
- {"version":3,"file":"NoopStorageService.js","sourceRoot":"","sources":["../../../../src/helpers/data-access/storage/NoopStorageService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qEAAkE;AAElE,MAAa,kBAAmB,SAAQ,+CAAsB;IAC1D,YAA6B,GAAY;QACrC,KAAK,EAAE,CAAC;QADiB,QAAG,GAAH,GAAG,CAAS;IAEzC,CAAC;IAEY,YAAY,CAAC,MAAgB,EAAE,UAAkB,EAAE,GAAW,EAAE,QAAiB;;YAC1F,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;QACxF,CAAC;KAAA;IAEY,UAAU,CAAC,IAAqB,EAAE,UAAkB,EAAE,GAAW,EAAE,QAAiB;;YAC7F,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;QACtF,CAAC;KAAA;IAEY,UAAU,CAAC,OAAe;;YACnC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;QACxF,CAAC;KAAA;IAEY,aAAa,CAAC,OAAe;;YACtC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;YACpF,OAAO;QACX,CAAC;KAAA;CACJ;AArBD,gDAqBC"}
1
+ {"version":3,"file":"NoopStorageService.js","sourceRoot":"","sources":["../../../../src/helpers/data-access/storage/NoopStorageService.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAElE,MAAa,kBAAmB,SAAQ,+CAAsB;IAC1D,YAA6B,GAAY;QACrC,KAAK,EAAE,CAAC;QADiB,QAAG,GAAH,GAAG,CAAS;IAEzC,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,MAAgB,EAAE,UAAkB,EAAE,GAAW,EAAE,QAAiB;QAC1F,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;IACxF,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,IAAqB,EAAE,UAAkB,EAAE,GAAW,EAAE,QAAiB;QAC7F,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;IACtF,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,OAAe;QACnC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;IACxF,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,OAAe;QACtC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;QACpF,OAAO;IACX,CAAC;CACJ;AArBD,gDAqBC"}
@@ -17,8 +17,7 @@ class TableStorageServiceFactory {
17
17
  }
18
18
  }
19
19
  getService(storageProvider) {
20
- var _a;
21
- return (_a = this.dictionary.get(storageProvider)) !== null && _a !== void 0 ? _a : this.dictionary.get(TableStorageProviderEnum_1.TableStorageProvider.Noop);
20
+ return this.dictionary.get(storageProvider) ?? this.dictionary.get(TableStorageProviderEnum_1.TableStorageProvider.Noop);
22
21
  }
23
22
  }
24
23
  exports.TableStorageServiceFactory = TableStorageServiceFactory;
@@ -1 +1 @@
1
- {"version":3,"file":"TableStorageServiceFactory.js","sourceRoot":"","sources":["../../../../src/helpers/data-access/table-storage/TableStorageServiceFactory.ts"],"names":[],"mappings":";;;AAGA,mFAAgF;AAChF,iFAA8E;AAC9E,yFAAkF;AAGlF,MAAa,0BAA0B;IAGnC,YAAY,MAA2B,EAAE,MAAe;QACpD,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,EAAE,CAAC;QAC5B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,+CAAoB,CAAC,IAAI,EAAE,IAAI,iDAAuB,CAAC,MAAM,CAAC,CAAC,CAAC;QAEpF,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YACjB,MAAM,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;YAChE,OAAO;SACV;aAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE;YAC9B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,+CAAoB,CAAC,KAAK,EAAE,IAAI,mDAAwB,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;SAChH;IACL,CAAC;IAEM,UAAU,CAAC,eAAqC;;QACnD,OAAO,MAAA,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC,mCAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,+CAAoB,CAAC,IAAI,CAAE,CAAC;IACnG,CAAC;CACJ;AAlBD,gEAkBC"}
1
+ {"version":3,"file":"TableStorageServiceFactory.js","sourceRoot":"","sources":["../../../../src/helpers/data-access/table-storage/TableStorageServiceFactory.ts"],"names":[],"mappings":";;;AAGA,mFAAgF;AAChF,iFAA8E;AAC9E,yFAAkF;AAGlF,MAAa,0BAA0B;IAGnC,YAAY,MAA2B,EAAE,MAAe;QACpD,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,EAAE,CAAC;QAC5B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,+CAAoB,CAAC,IAAI,EAAE,IAAI,iDAAuB,CAAC,MAAM,CAAC,CAAC,CAAC;QAEpF,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YACjB,MAAM,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;YAChE,OAAO;SACV;aAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE;YAC9B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,+CAAoB,CAAC,KAAK,EAAE,IAAI,mDAAwB,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;SAChH;IACL,CAAC;IAEM,UAAU,CAAC,eAAqC;QACnD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,+CAAoB,CAAC,IAAI,CAAE,CAAC;IACnG,CAAC;CACJ;AAlBD,gEAkBC"}
@@ -1,20 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __asyncValues = (this && this.__asyncValues) || function (o) {
12
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
13
- var m = o[Symbol.asyncIterator], i;
14
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
15
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
16
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
17
- };
18
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
19
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
20
4
  };
@@ -30,62 +14,49 @@ class AzureTableStorageService {
30
14
  this.log = log;
31
15
  this.tableClientDict = new Map();
32
16
  }
33
- createEntities(tableName, entities) {
34
- return __awaiter(this, void 0, void 0, function* () {
35
- if (!entities.length) {
36
- return;
37
- }
38
- const nowDateTime = new _helpers_1.DateTime(new Date(), { timeZone: "Europe/Prague" });
39
- const fallbackPartitionKey = nowDateTime.format("yyyy-MM-dd");
40
- const rowKeyPrefix = nowDateTime.format("HH_mm_ss.SSS") + "_" + crypto_1.default.randomBytes(3).toString("hex");
41
- const tableEntities = entities.map((entity, i) => {
42
- if (!this.isEntityValid(entity)) {
43
- entity = Object.assign({ partitionKey: fallbackPartitionKey, rowKey: rowKeyPrefix + "_" + i }, entity);
44
- }
45
- return entity;
46
- });
47
- const tableClient = this.getTableClient(tableName);
48
- for (let i = 0; i < tableEntities.length; i += this.config.entityBatchSize) {
49
- const entityChunk = tableEntities.slice(i, i + this.config.entityBatchSize);
50
- const actions = entityChunk.map((entity) => ["create", entity]);
51
- yield tableClient.submitTransaction(actions);
17
+ async createEntities(tableName, entities) {
18
+ if (!entities.length) {
19
+ return;
20
+ }
21
+ const nowDateTime = new _helpers_1.DateTime(new Date(), { timeZone: "Europe/Prague" });
22
+ const fallbackPartitionKey = nowDateTime.format("yyyy-MM-dd");
23
+ const rowKeyPrefix = nowDateTime.format("HH_mm_ss.SSS") + "_" + crypto_1.default.randomBytes(3).toString("hex");
24
+ const tableEntities = entities.map((entity, i) => {
25
+ if (!this.isEntityValid(entity)) {
26
+ entity = {
27
+ partitionKey: fallbackPartitionKey,
28
+ rowKey: rowKeyPrefix + "_" + i,
29
+ ...entity,
30
+ };
52
31
  }
32
+ return entity;
53
33
  });
34
+ const tableClient = this.getTableClient(tableName);
35
+ for (let i = 0; i < tableEntities.length; i += this.config.entityBatchSize) {
36
+ const entityChunk = tableEntities.slice(i, i + this.config.entityBatchSize);
37
+ const actions = entityChunk.map((entity) => ["create", entity]);
38
+ await tableClient.submitTransaction(actions);
39
+ }
54
40
  }
55
- deleteEntitiesOlderThan(tableName, timestamp) {
56
- var _a, e_1, _b, _c;
57
- return __awaiter(this, void 0, void 0, function* () {
58
- const tableClient = this.getTableClient(tableName);
59
- const resultsIterator = tableClient
60
- .listEntities({
61
- queryOptions: {
62
- filter: `Timestamp lt datetime'${timestamp}'`,
63
- select: ["PartitionKey", "RowKey"],
64
- },
65
- })
66
- .byPage({ maxPageSize: this.config.entityBatchSize });
67
- try {
68
- for (var _d = true, resultsIterator_1 = __asyncValues(resultsIterator), resultsIterator_1_1; resultsIterator_1_1 = yield resultsIterator_1.next(), _a = resultsIterator_1_1.done, !_a; _d = true) {
69
- _c = resultsIterator_1_1.value;
70
- _d = false;
71
- const page = _c;
72
- if (!page.length)
73
- break;
74
- const partitionKeyMap = page.reduce((groups, el) => groups.set(el.partitionKey, [...(groups.get(el.partitionKey) || []), el]), new Map());
75
- for (const [_, value] of partitionKeyMap) {
76
- const actions = value.map((entity) => ["delete", entity]);
77
- yield tableClient.submitTransaction(actions);
78
- }
79
- }
80
- }
81
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
82
- finally {
83
- try {
84
- if (!_d && !_a && (_b = resultsIterator_1.return)) yield _b.call(resultsIterator_1);
85
- }
86
- finally { if (e_1) throw e_1.error; }
41
+ async deleteEntitiesOlderThan(tableName, timestamp) {
42
+ const tableClient = this.getTableClient(tableName);
43
+ const resultsIterator = tableClient
44
+ .listEntities({
45
+ queryOptions: {
46
+ filter: `Timestamp lt datetime'${timestamp}'`,
47
+ select: ["PartitionKey", "RowKey"],
48
+ },
49
+ })
50
+ .byPage({ maxPageSize: this.config.entityBatchSize });
51
+ for await (const page of resultsIterator) {
52
+ if (!page.length)
53
+ break;
54
+ const partitionKeyMap = page.reduce((groups, el) => groups.set(el.partitionKey, [...(groups.get(el.partitionKey) || []), el]), new Map());
55
+ for (const [_, value] of partitionKeyMap) {
56
+ const actions = value.map((entity) => ["delete", entity]);
57
+ await tableClient.submitTransaction(actions);
87
58
  }
88
- });
59
+ }
89
60
  }
90
61
  getTableClient(tableName) {
91
62
  if (this.tableClientDict.has(tableName)) {
@@ -1 +1 @@
1
- {"version":3,"file":"AzureTableStorageService.js","sourceRoot":"","sources":["../../../../../src/helpers/data-access/table-storage/providers/AzureTableStorageService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAoC;AAEpC,oDAA2G;AAC3G,oDAA4B;AAG5B,8CAAyD;AAEzD,MAAa,wBAAwB;IAGjC,YAAoB,MAAgC,EAAU,GAAY;QAAtD,WAAM,GAAN,MAAM,CAA0B;QAAU,QAAG,GAAH,GAAG,CAAS;QACtE,IAAI,CAAC,eAAe,GAAG,IAAI,GAAG,EAAE,CAAC;IACrC,CAAC;IAEY,cAAc,CAAmB,SAAiB,EAAE,QAAa;;YAC1E,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;gBAClB,OAAO;aACV;YAED,MAAM,WAAW,GAAG,IAAI,mBAAQ,CAAC,IAAI,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;YAC5E,MAAM,oBAAoB,GAAG,WAAW,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YAC9D,MAAM,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,GAAG,GAAG,gBAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YACtG,MAAM,aAAa,GAAG,QAAQ,CAAC,GA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;IAEO,aAAa,CAAmB,MAAS;QAC7C,OAAO,MAAM,CAAC,cAAc,CAAC,cAAc,CAAC,IAAI,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IACpF,CAAC;CACJ;AA5ED,4DA4EC"}
1
+ {"version":3,"file":"AzureTableStorageService.js","sourceRoot":"","sources":["../../../../../src/helpers/data-access/table-storage/providers/AzureTableStorageService.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAoC;AAEpC,oDAA2G;AAC3G,oDAA4B;AAG5B,8CAAyD;AAEzD,MAAa,wBAAwB;IAGjC,YAAoB,MAAgC,EAAU,GAAY;QAAtD,WAAM,GAAN,MAAM,CAA0B;QAAU,QAAG,GAAH,GAAG,CAAS;QACtE,IAAI,CAAC,eAAe,GAAG,IAAI,GAAG,EAAE,CAAC;IACrC,CAAC;IAEM,KAAK,CAAC,cAAc,CAAmB,SAAiB,EAAE,QAAa;QAC1E,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YAClB,OAAO;SACV;QAED,MAAM,WAAW,GAAG,IAAI,mBAAQ,CAAC,IAAI,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;QAC5E,MAAM,oBAAoB,GAAG,WAAW,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC9D,MAAM,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,GAAG,GAAG,gBAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACtG,MAAM,aAAa,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC7C,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE;gBAC7B,MAAM,GAAG;oBACL,YAAY,EAAE,oBAAoB;oBAClC,MAAM,EAAE,YAAY,GAAG,GAAG,GAAG,CAAC;oBAC9B,GAAG,MAAM;iBACZ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EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EACzF,IAAI,GAAG,EAAE,CACZ,CAAC;YAEF,KAAK,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,eAAe,EAAE;gBACtC,MAAM,OAAO,GAA+B,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAwB,CAAC,CAAC,CAAC;gBACxG,MAAM,WAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;aAChD;SACJ;IACL,CAAC;IAEO,cAAc,CAAC,SAAiB;QACpC,IAAI,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;YACrC,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,SAAS,CAAE,CAAC;SAC/C;QACD,MAAM,WAAW,GAAG,IAAI,iCAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACrH,MAAM,WAAW,GAAG,IAAI,yBAAW,CAAC,WAAW,IAAI,CAAC,MAAM,CAAC,OAAO,yBAAyB,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;QACrH,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QACjD,OAAO,WAAW,CAAC;IACvB,CAAC;IAEO,aAAa,CAAmB,MAAS;QAC7C,OAAO,MAAM,CAAC,cAAc,CAAC,cAAc,CAAC,IAAI,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IACpF,CAAC;CACJ;AA5ED,4DA4EC"}
@@ -1,28 +1,15 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.NoopTableStorageService = void 0;
13
4
  class NoopTableStorageService {
14
5
  constructor(log) {
15
6
  this.log = log;
16
7
  }
17
- createEntities(tableName, entities) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- this.log.silly("NoopTableStorageService: table storage is disabled. Skipping entities creation.");
20
- });
8
+ async createEntities(tableName, entities) {
9
+ this.log.silly("NoopTableStorageService: table storage is disabled. Skipping entities creation.");
21
10
  }
22
- deleteEntitiesOlderThan(tableName, timestamp) {
23
- return __awaiter(this, void 0, void 0, function* () {
24
- this.log.silly("NoopTableStorageService: table storage is disabled. Skipping entities deletion.");
25
- });
11
+ async deleteEntitiesOlderThan(tableName, timestamp) {
12
+ this.log.silly("NoopTableStorageService: table storage is disabled. Skipping entities deletion.");
26
13
  }
27
14
  }
28
15
  exports.NoopTableStorageService = NoopTableStorageService;
@@ -1 +1 @@
1
- {"version":3,"file":"NoopTableStorageService.js","sourceRoot":"","sources":["../../../../../src/helpers/data-access/table-storage/providers/NoopTableStorageService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,MAAa,uBAAuB;IAChC,YAAoB,GAAY;QAAZ,QAAG,GAAH,GAAG,CAAS;IAAG,CAAC;IAEvB,cAAc,CAAgC,SAAiB,EAAE,QAAa;;YACvF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAC;QACtG,CAAC;KAAA;IAEY,uBAAuB,CAAmB,SAAiB,EAAE,SAAiB;;YACvF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAC;QACtG,CAAC;KAAA;CACJ;AAVD,0DAUC"}
1
+ {"version":3,"file":"NoopTableStorageService.js","sourceRoot":"","sources":["../../../../../src/helpers/data-access/table-storage/providers/NoopTableStorageService.ts"],"names":[],"mappings":";;;AAGA,MAAa,uBAAuB;IAChC,YAAoB,GAAY;QAAZ,QAAG,GAAH,GAAG,CAAS;IAAG,CAAC;IAE7B,KAAK,CAAC,cAAc,CAAgC,SAAiB,EAAE,QAAa;QACvF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAC;IACtG,CAAC;IAEM,KAAK,CAAC,uBAAuB,CAAmB,SAAiB,EAAE,SAAiB;QACvF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAC;IACtG,CAAC;CACJ;AAVD,0DAUC"}