@ludeo/cloud-common 1.2.262-beta-yahil-4 → 1.2.262-beta-yahil-5
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/ludeocast-agent/save-artifacts-ended.d.ts +1 -1
- package/dist/v4/events/ludeocast-agent/save-artifacts-ended.js +1 -1
- package/dist/v4/events/site-controller/save-artifacts.command.d.ts +1 -1
- package/dist/v4/events/site-controller/save-artifacts.command.js +1 -1
- package/dist/v4/events/site-controller/save-artifacts.command.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/ludeocast-agent/save-artifacts-ended.ts +3 -3
- package/src/v4/events/site-controller/save-artifacts.command.ts +6 -3
|
@@ -6,7 +6,7 @@ export declare class SaveArtifactsEndedPayload extends BaseCommandPayload {
|
|
|
6
6
|
status: SiteOperationStatus;
|
|
7
7
|
reason?: string;
|
|
8
8
|
artifactPrefix: string;
|
|
9
|
-
|
|
9
|
+
targetVersion: string;
|
|
10
10
|
artifactKeyParts: ArtifactKeyParts;
|
|
11
11
|
}
|
|
12
12
|
export declare function getSaveArtifactsEndedTopic(machineResourceId: string): string;
|
|
@@ -41,7 +41,7 @@ __decorate([
|
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, class_validator_1.IsString)(),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
|
-
], SaveArtifactsEndedPayload.prototype, "
|
|
44
|
+
], SaveArtifactsEndedPayload.prototype, "targetVersion", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, decorators_1.ValidateNestedType)(() => types_1.ArtifactKeyParts),
|
|
47
47
|
__metadata("design:type", types_1.ArtifactKeyParts)
|
|
@@ -4,7 +4,7 @@ import { ArtifactKeyParts } from '../../types/site-controller/types';
|
|
|
4
4
|
export declare class SaveArtifactsCommandPayload extends BaseCommandPayload {
|
|
5
5
|
gameResourceId: string;
|
|
6
6
|
artifactPrefix: string;
|
|
7
|
-
|
|
7
|
+
targetVersion: string;
|
|
8
8
|
artifactKeyParts: ArtifactKeyParts;
|
|
9
9
|
uploads: RuntimeArtifactPresignedUploadDto[];
|
|
10
10
|
}
|
|
@@ -29,7 +29,7 @@ __decorate([
|
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, class_validator_1.IsString)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
|
-
], SaveArtifactsCommandPayload.prototype, "
|
|
32
|
+
], SaveArtifactsCommandPayload.prototype, "targetVersion", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, decorators_1.ValidateNestedType)(() => types_1.ArtifactKeyParts),
|
|
35
35
|
__metadata("design:type", types_1.ArtifactKeyParts)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-artifacts.command.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/save-artifacts.command.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4D;AAC5D,oDAAyD;AACzD,uCAA+D;AAC/D,6FAAsG;AACtG,6DAAqE;AAGrE,MAAa,2BAA4B,SAAQ,yBAAkB;
|
|
1
|
+
{"version":3,"file":"save-artifacts.command.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/save-artifacts.command.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4D;AAC5D,oDAAyD;AACzD,uCAA+D;AAC/D,6FAAsG;AACtG,6DAAqE;AAGrE,MAAa,2BAA4B,SAAQ,yBAAkB;CAsBlE;AAtBD,kEAsBC;AAnBC;IADC,IAAA,wBAAM,GAAE;;mEACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;mEACY;AAOvB;IADC,IAAA,0BAAQ,GAAE;;kEACW;AAItB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC;8BACzB,wBAAgB;qEAAC;AAInC;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,yDAAiC,CAAC;;4DACf;AAG/C,MAAa,oBAAqB,SAAQ,kBAAwC;IAIhF,YAAY,OAAoC;QAC9C,KAAK,CAAC,OAAO,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF;AAPD,oDAOC;AALC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
|
package/package.json
CHANGED
|
@@ -22,11 +22,11 @@ export class SaveArtifactsEndedPayload extends BaseCommandPayload {
|
|
|
22
22
|
@IsString()
|
|
23
23
|
artifactPrefix: string;
|
|
24
24
|
|
|
25
|
-
/**
|
|
25
|
+
/** Echo of `save-artifacts.targetVersion` — server-minted publish destination the agent uploaded to. */
|
|
26
26
|
@IsString()
|
|
27
|
-
|
|
27
|
+
targetVersion: string;
|
|
28
28
|
|
|
29
|
-
/** Echo of `save-artifacts.artifactKeyParts`; site-controller persists `
|
|
29
|
+
/** Echo of `save-artifacts.artifactKeyParts`; site-controller persists registry row with `latestVersion` = `targetVersion` on success. */
|
|
30
30
|
@ValidateNestedType(() => ArtifactKeyParts)
|
|
31
31
|
artifactKeyParts: ArtifactKeyParts;
|
|
32
32
|
}
|
|
@@ -4,7 +4,7 @@ import { BaseCommand, BaseCommandPayload } from '../base/base';
|
|
|
4
4
|
import { RuntimeArtifactPresignedUploadDto } from '../../types/site-controller/runtime-artifacts.dto';
|
|
5
5
|
import { ArtifactKeyParts } from '../../types/site-controller/types';
|
|
6
6
|
|
|
7
|
-
/** Machine-scoped PUT pass: `artifactPrefix` +
|
|
7
|
+
/** Machine-scoped PUT pass: `artifactPrefix` + **`targetVersion`** + presigned **`uploads`** per object key. */
|
|
8
8
|
export class SaveArtifactsCommandPayload extends BaseCommandPayload {
|
|
9
9
|
/** Game session this upload pass belongs to (parity with `{@link DetectArtifactsCommandPayload.gameResourceId}`). */
|
|
10
10
|
@IsUUID()
|
|
@@ -13,9 +13,12 @@ export class SaveArtifactsCommandPayload extends BaseCommandPayload {
|
|
|
13
13
|
@IsString()
|
|
14
14
|
artifactPrefix: string;
|
|
15
15
|
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Server-minted publish target (semver bump destination). Distinct from on-disk **`latestVersion`** in
|
|
18
|
+
* `detect-artifacts`. Agent must echo this in `save-artifacts-ended.targetVersion`.
|
|
19
|
+
*/
|
|
17
20
|
@IsString()
|
|
18
|
-
|
|
21
|
+
targetVersion: string;
|
|
19
22
|
|
|
20
23
|
/** Registry triple this publish belongs to. Agent echoes back so site-controller can persist on success. */
|
|
21
24
|
@ValidateNestedType(() => ArtifactKeyParts)
|