@versori/run 0.2.22 → 0.2.23
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/esm/src/context/Context.js +1 -1
- package/esm/src/dsl/http/versori/platformapi.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/platformapi.js +8 -5
- package/package.json +1 -1
- package/script/src/context/Context.js +1 -1
- package/script/src/dsl/http/versori/platformapi.d.ts.map +1 -1
- package/script/src/dsl/http/versori/platformapi.js +8 -5
|
@@ -141,7 +141,7 @@ export class ContextImpl {
|
|
|
141
141
|
metadata: {
|
|
142
142
|
executionId: this.executionId,
|
|
143
143
|
activationId: this.activation?.id,
|
|
144
|
-
userId: this.activation?.user
|
|
144
|
+
userId: this.activation?.user?.externalId,
|
|
145
145
|
},
|
|
146
146
|
payload,
|
|
147
147
|
maxAttempts: opts.maxAttempts,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platformapi.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/platformapi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"platformapi.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/platformapi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAkBzE,qBAAa,iBAAkB,YAAW,kBAAkB;IACxD,OAAO,CAAC,OAAO,CAAS;IAExB,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,CAAC,YAAY,CAAe;IAEnC,OAAO,CAAC,GAAG,CAAS;gBAER,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAQtE,MAAM,CAAC,OAAO,IAAI,iBAAiB;IAa7B,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAgBnE,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAuBzD,mBAAmB,IAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAgCtD,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAmBpE,uBAAuB,CACzB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GACrB,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAmB5B,eAAe,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAuBxC,qBAAqB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAuBjG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { envVarEnvId, envVarOrgId, envVarPlatformApiBaseURL } from './constants.js';
|
|
2
|
-
import { InternalAuth } from './internalauth.js';
|
|
3
1
|
import { ConsoleLogger } from '../../../mod.js';
|
|
4
2
|
import { ActivationImpl } from './activation.js';
|
|
3
|
+
import { envVarEnvId, envVarOrgId, envVarPlatformApiBaseURL } from './constants.js';
|
|
4
|
+
import { InternalAuth } from './internalauth.js';
|
|
5
5
|
export class PlatformAPIClient {
|
|
6
6
|
constructor(baseUrl, orgId, envId, log) {
|
|
7
7
|
Object.defineProperty(this, "baseUrl", {
|
|
@@ -83,11 +83,14 @@ export class PlatformAPIClient {
|
|
|
83
83
|
if (!resp.ok) {
|
|
84
84
|
return undefined;
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
if (!
|
|
86
|
+
const activations = (await resp.json());
|
|
87
|
+
if (!activations) {
|
|
88
88
|
return undefined;
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
if (activations.length === 0) {
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
93
|
+
return new ActivationImpl(activations[0].id, activations[0].user, this, this.log, activations[0].dynamicVariables);
|
|
91
94
|
}
|
|
92
95
|
async getActivation(activationId) {
|
|
93
96
|
const authHeader = await this.internalAuth.getAuthHeader();
|
package/package.json
CHANGED
|
@@ -144,7 +144,7 @@ class ContextImpl {
|
|
|
144
144
|
metadata: {
|
|
145
145
|
executionId: this.executionId,
|
|
146
146
|
activationId: this.activation?.id,
|
|
147
|
-
userId: this.activation?.user
|
|
147
|
+
userId: this.activation?.user?.externalId,
|
|
148
148
|
},
|
|
149
149
|
payload,
|
|
150
150
|
maxAttempts: opts.maxAttempts,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platformapi.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/platformapi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"platformapi.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/platformapi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAkBzE,qBAAa,iBAAkB,YAAW,kBAAkB;IACxD,OAAO,CAAC,OAAO,CAAS;IAExB,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,CAAC,YAAY,CAAe;IAEnC,OAAO,CAAC,GAAG,CAAS;gBAER,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAQtE,MAAM,CAAC,OAAO,IAAI,iBAAiB;IAa7B,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAgBnE,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAuBzD,mBAAmB,IAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAgCtD,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAmBpE,uBAAuB,CACzB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GACrB,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAmB5B,eAAe,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAuBxC,qBAAqB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAuBjG"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PlatformAPIClient = void 0;
|
|
4
|
-
const constants_js_1 = require("./constants.js");
|
|
5
|
-
const internalauth_js_1 = require("./internalauth.js");
|
|
6
4
|
const mod_js_1 = require("../../../mod.js");
|
|
7
5
|
const activation_js_1 = require("./activation.js");
|
|
6
|
+
const constants_js_1 = require("./constants.js");
|
|
7
|
+
const internalauth_js_1 = require("./internalauth.js");
|
|
8
8
|
class PlatformAPIClient {
|
|
9
9
|
constructor(baseUrl, orgId, envId, log) {
|
|
10
10
|
Object.defineProperty(this, "baseUrl", {
|
|
@@ -86,11 +86,14 @@ class PlatformAPIClient {
|
|
|
86
86
|
if (!resp.ok) {
|
|
87
87
|
return undefined;
|
|
88
88
|
}
|
|
89
|
-
const
|
|
90
|
-
if (!
|
|
89
|
+
const activations = (await resp.json());
|
|
90
|
+
if (!activations) {
|
|
91
91
|
return undefined;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
if (activations.length === 0) {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
return new activation_js_1.ActivationImpl(activations[0].id, activations[0].user, this, this.log, activations[0].dynamicVariables);
|
|
94
97
|
}
|
|
95
98
|
async getActivation(activationId) {
|
|
96
99
|
const authHeader = await this.internalAuth.getAuthHeader();
|