@ludeo/cloud-common 1.2.268 → 1.2.269
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/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/events/index.d.ts +1 -1
- package/dist/v4/events/index.js +2 -2
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/test-machines/index.d.ts +1 -0
- package/dist/v4/events/test-machines/index.js +18 -0
- package/dist/v4/events/test-machines/index.js.map +1 -0
- package/dist/v4/events/{set-sftp-credentials.d.ts → test-machines/set-sftp-credentials.d.ts} +3 -2
- package/dist/v4/events/{set-sftp-credentials.js → test-machines/set-sftp-credentials.js} +7 -3
- package/dist/v4/events/test-machines/set-sftp-credentials.js.map +1 -0
- package/package.json +1 -1
- package/src/v4/events/index.ts +2 -2
- package/src/v4/events/test-machines/index.ts +1 -0
- package/src/v4/events/{set-sftp-credentials.ts → test-machines/set-sftp-credentials.ts} +7 -3
- package/dist/v4/events/set-sftp-credentials.js.map +0 -1
|
@@ -40,7 +40,6 @@ export * from "./pool-status";
|
|
|
40
40
|
export * from "./send-pools-to-predictor";
|
|
41
41
|
export * from "./set-pool";
|
|
42
42
|
export * from "./set-pools-state";
|
|
43
|
-
export * from "./set-sftp-credentials";
|
|
44
43
|
export * from "./sftp-credentials-installed";
|
|
45
44
|
export * from "./swap-cloud-user-completed";
|
|
46
45
|
export * from "./swap-cloud-user-request-failed";
|
|
@@ -188,3 +187,4 @@ export * as SonicServer from "./sonic-server";
|
|
|
188
187
|
export * as CloudSessionAllocator from "./cloud-session-allocator";
|
|
189
188
|
export * as CloudResourceMonitor from "./cloud-resource-monitor";
|
|
190
189
|
export * as CloudSessions from "./cloud-sessions";
|
|
190
|
+
export * as TestMachines from "./test-machines";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.CloudSessions = exports.CloudResourceMonitor = exports.CloudSessionAllocator = exports.SonicServer = exports.LudeocastAgent = exports.Provisioner = exports.Forecast = exports.CloudBuilds = exports.CloudResources = exports.SiteController = void 0;
|
|
17
|
+
exports.TestMachines = exports.CloudSessions = exports.CloudResourceMonitor = exports.CloudSessionAllocator = exports.SonicServer = exports.LudeocastAgent = exports.Provisioner = exports.Forecast = exports.CloudBuilds = exports.CloudResources = exports.SiteController = void 0;
|
|
18
18
|
__exportStar(require("./activation"), exports);
|
|
19
19
|
__exportStar(require("./allocate-game-request"), exports);
|
|
20
20
|
__exportStar(require("./allocate-game-resource-request"), exports);
|
|
@@ -57,7 +57,6 @@ __exportStar(require("./pool-status"), exports);
|
|
|
57
57
|
__exportStar(require("./send-pools-to-predictor"), exports);
|
|
58
58
|
__exportStar(require("./set-pool"), exports);
|
|
59
59
|
__exportStar(require("./set-pools-state"), exports);
|
|
60
|
-
__exportStar(require("./set-sftp-credentials"), exports);
|
|
61
60
|
__exportStar(require("./sftp-credentials-installed"), exports);
|
|
62
61
|
__exportStar(require("./swap-cloud-user-completed"), exports);
|
|
63
62
|
__exportStar(require("./swap-cloud-user-request-failed"), exports);
|
|
@@ -205,4 +204,5 @@ exports.SonicServer = require("./sonic-server");
|
|
|
205
204
|
exports.CloudSessionAllocator = require("./cloud-session-allocator");
|
|
206
205
|
exports.CloudResourceMonitor = require("./cloud-resource-monitor");
|
|
207
206
|
exports.CloudSessions = require("./cloud-sessions");
|
|
207
|
+
exports.TestMachines = require("./test-machines");
|
|
208
208
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;A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C,kDAAgC;AAChC,wDAAsC;AACtC,kEAAgD;AAChD,sEAAoD;AACpD,uEAAqD;AACrD,oDAAkC;AAClC,iEAA+C;AAC/C,mDAAiC;AACjC,iDAA+B;AAC/B,0DAAwC;AACxC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,iFAA+D;AAC/D,iDAA+B;AAC/B,2EAAyD;AACzD,iFAA+D;AAC/D,yEAAuD;AACvD,sFAAoE;AACpE,6DAA2C;AAC3C,qEAAmD;AACnD,mDAAiC;AACjC,oEAAkD;AAClD,kEAAgD;AAChD,4DAA0C;AAC1C,8EAA4D;AAC5D,wDAAsC;AACtC,iEAA+C;AAC/C,8EAA4D;AAC5D,iEAA+C;AAC/C,0EAAwD;AACxD,wEAAsD;AACtD,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,mDAAiC;AACjC,4EAA0D;AAC1D,+EAA6D;AAC7D,uDAAqC;AACrC,4DAA0C;AAC1C,iDAA+B;AAC/B,kDAAgC;AAChC,4DAA0C;AAC1C,sEAAoD;AACpD,oEAAkD;AAClD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,iDAA+B;AAC/B,qDAAmC;AACnC,4DAA0C;AAC1C,8DAA4C;AAC5C,kDAAgC;AAChC,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,oEAAkD;AAClD,2EAAyD;AACzD,kFAAgE;AAChE,kEAAgD;AAEhD,sDAAoD;AACpD,sDAAoD;AACpD,gDAA8C;AAC9C,yCAAuC;AACvC,+CAA6C;AAC7C,sDAAoD;AACpD,gDAA8C;AAC9C,qEAAmE;AACnE,mEAAiE;AACjE,oDAAkD;AAClD,kDAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./set-sftp-credentials";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./set-sftp-credentials"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/test-machines/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC"}
|
package/dist/v4/events/{set-sftp-credentials.d.ts → test-machines/set-sftp-credentials.d.ts}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { LudeoEvent } from "
|
|
2
|
-
import { CloudResourceContext } from "
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { CloudResourceContext } from "../../contexts";
|
|
3
3
|
export declare class SetSftpCredentialsPayload {
|
|
4
4
|
principalId: string;
|
|
5
5
|
publicKey: string;
|
|
6
|
+
site: string;
|
|
6
7
|
}
|
|
7
8
|
export declare class SetSftpCredentials extends LudeoEvent {
|
|
8
9
|
static readonly EVENT_NAME = "test-machines.set-sftp-credentials";
|
|
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SetSftpCredentials = exports.SetSftpCredentialsPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const validate_nested_type_decorator_1 = require("
|
|
15
|
-
const infra_1 = require("
|
|
16
|
-
const contexts_1 = require("
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../../decorators/validate-nested-type.decorator");
|
|
15
|
+
const infra_1 = require("../../../infra");
|
|
16
|
+
const contexts_1 = require("../../contexts");
|
|
17
17
|
class SetSftpCredentialsPayload {
|
|
18
18
|
}
|
|
19
19
|
exports.SetSftpCredentialsPayload = SetSftpCredentialsPayload;
|
|
@@ -25,6 +25,10 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsString)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], SetSftpCredentialsPayload.prototype, "publicKey", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SetSftpCredentialsPayload.prototype, "site", void 0);
|
|
28
32
|
class SetSftpCredentials extends infra_1.LudeoEvent {
|
|
29
33
|
constructor(payload, context) {
|
|
30
34
|
super(SetSftpCredentials.EVENT_NAME);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-sftp-credentials.js","sourceRoot":"","sources":["../../../../src/v4/events/test-machines/set-sftp-credentials.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,uGAAwF;AACxF,0CAA4C;AAC5C,6CAAsD;AAEtD,MAAa,yBAAyB;CAarC;AAbD,8DAaC;AATC;IADC,IAAA,0BAAQ,GAAE;;8DACS;AAIpB;IADC,IAAA,0BAAQ,GAAE;;4DACO;AAIlB;IADC,IAAA,0BAAQ,GAAE;;uDACE;AAGf,MAAa,kBAAmB,SAAQ,kBAAU;IAGhD,YACE,OAAkC,EAClC,OAA6B;QAE7B,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gDAiBC;AAhBiB,6BAAU,GAAG,oCAAoC,CAAC;AAYlE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC;8BAC3C,yBAAyB;mDAAC;AAGnC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;mDAAC"}
|
package/package.json
CHANGED
package/src/v4/events/index.ts
CHANGED
|
@@ -40,7 +40,6 @@ export * from "./pool-status";
|
|
|
40
40
|
export * from "./send-pools-to-predictor";
|
|
41
41
|
export * from "./set-pool";
|
|
42
42
|
export * from "./set-pools-state";
|
|
43
|
-
export * from "./set-sftp-credentials";
|
|
44
43
|
export * from "./sftp-credentials-installed";
|
|
45
44
|
export * from "./swap-cloud-user-completed";
|
|
46
45
|
export * from "./swap-cloud-user-request-failed";
|
|
@@ -188,4 +187,5 @@ export * as LudeocastAgent from "./ludeocast-agent";
|
|
|
188
187
|
export * as SonicServer from "./sonic-server";
|
|
189
188
|
export * as CloudSessionAllocator from "./cloud-session-allocator";
|
|
190
189
|
export * as CloudResourceMonitor from "./cloud-resource-monitor";
|
|
191
|
-
export * as CloudSessions from "./cloud-sessions";
|
|
190
|
+
export * as CloudSessions from "./cloud-sessions";
|
|
191
|
+
export * as TestMachines from "./test-machines";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./set-sftp-credentials";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IsString } from "class-validator";
|
|
2
|
-
import { ValidateNestedType } from "
|
|
3
|
-
import { LudeoEvent } from "
|
|
4
|
-
import { CloudResourceContext } from "
|
|
2
|
+
import { ValidateNestedType } from "../../../decorators/validate-nested-type.decorator";
|
|
3
|
+
import { LudeoEvent } from "../../../infra";
|
|
4
|
+
import { CloudResourceContext } from "../../contexts";
|
|
5
5
|
|
|
6
6
|
export class SetSftpCredentialsPayload {
|
|
7
7
|
// Stable userId of the dev who clicked Browse Files. Carried through so the
|
|
@@ -12,6 +12,10 @@ export class SetSftpCredentialsPayload {
|
|
|
12
12
|
// The dev's SSH public key (BYOK). Public by definition - safe to log/store.
|
|
13
13
|
@IsString()
|
|
14
14
|
publicKey: string;
|
|
15
|
+
|
|
16
|
+
// GCP site/region — used by site-controller to filter events per deployment.
|
|
17
|
+
@IsString()
|
|
18
|
+
site: string;
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
export class SetSftpCredentials extends LudeoEvent {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-sftp-credentials.js","sourceRoot":"","sources":["../../../src/v4/events/set-sftp-credentials.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AAEnD,MAAa,yBAAyB;CASrC;AATD,8DASC;AALC;IADC,IAAA,0BAAQ,GAAE;;8DACS;AAIpB;IADC,IAAA,0BAAQ,GAAE;;4DACO;AAGpB,MAAa,kBAAmB,SAAQ,kBAAU;IAGhD,YACE,OAAkC,EAClC,OAA6B;QAE7B,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gDAiBC;AAhBiB,6BAAU,GAAG,oCAAoC,CAAC;AAYlE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC;8BAC3C,yBAAyB;mDAAC;AAGnC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;mDAAC"}
|