@boostercloud/framework-provider-azure 1.4.1 → 1.5.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.
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ const read_model_adapter_1 = require("./library/read-model-adapter");
11
11
  const searcher_adapter_1 = require("./library/searcher-adapter");
12
12
  const scheduled_adapter_1 = require("./library/scheduled-adapter");
13
13
  const events_searcher_adapter_1 = require("./library/events-searcher-adapter");
14
+ const rocket_adapter_1 = require("./library/rocket-adapter");
14
15
  let cosmosClient;
15
16
  if (typeof process.env[constants_1.environmentVarNames.cosmosDbConnectionString] === 'undefined') {
16
17
  cosmosClient = {};
@@ -68,6 +69,9 @@ const Provider = (rockets) => ({
68
69
  scheduled: {
69
70
  rawToEnvelope: scheduled_adapter_1.rawScheduledInputToEnvelope,
70
71
  },
72
+ rockets: {
73
+ rawToEnvelopes: rocket_adapter_1.rawRocketInputToEnvelope,
74
+ },
71
75
  // ProviderInfrastructureGetter
72
76
  infrastructure: () => {
73
77
  const infrastructurePackageName = require('../package.json').name + '-infrastructure';
@@ -0,0 +1,2 @@
1
+ import { BoosterConfig, RocketEnvelope } from "@boostercloud/framework-types";
2
+ export declare function rawRocketInputToEnvelope(config: BoosterConfig, request: unknown): RocketEnvelope;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rawRocketInputToEnvelope = void 0;
4
+ const framework_types_1 = require("@boostercloud/framework-types");
5
+ function rawRocketInputToEnvelope(config, request) {
6
+ return {
7
+ rocketId: process.env[framework_types_1.rocketFunctionIDEnvVar],
8
+ };
9
+ }
10
+ exports.rawRocketInputToEnvelope = rawRocketInputToEnvelope;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boostercloud/framework-provider-azure",
3
- "version": "1.4.1",
3
+ "version": "1.5.1",
4
4
  "description": "Handle Booster's integration with Azure",
5
5
  "keywords": [
6
6
  "framework-provider-azure"
@@ -23,8 +23,8 @@
23
23
  "@azure/cosmos": "^3.17.0",
24
24
  "@azure/functions": "^1.2.2",
25
25
  "@azure/identity": "~2.1.0",
26
- "@boostercloud/framework-common-helpers": "^1.4.1",
27
- "@boostercloud/framework-types": "^1.4.1",
26
+ "@boostercloud/framework-common-helpers": "^1.5.1",
27
+ "@boostercloud/framework-types": "^1.5.1",
28
28
  "tslib": "^2.4.0",
29
29
  "@effect-ts/core": "^0.60.4"
30
30
  },