@ludeo/cloud-common 1.2.276 → 1.2.277

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.
@@ -3,6 +3,8 @@ import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  export declare class BuildUploadedPayload {
4
4
  buildId: string;
5
5
  centralizedPath: string;
6
+ versionId?: string;
7
+ buildVersion?: string;
6
8
  }
7
9
  export declare class BuildUploaded extends LudeoEvent {
8
10
  static readonly EVENT_NAME = "cloud-builds.build-uploaded";
@@ -25,6 +25,16 @@ __decorate([
25
25
  (0, class_validator_1.IsString)(),
26
26
  __metadata("design:type", String)
27
27
  ], BuildUploadedPayload.prototype, "centralizedPath", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsOptional)(),
30
+ (0, class_validator_1.IsString)(),
31
+ __metadata("design:type", String)
32
+ ], BuildUploadedPayload.prototype, "versionId", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsString)(),
36
+ __metadata("design:type", String)
37
+ ], BuildUploadedPayload.prototype, "buildVersion", void 0);
28
38
  class BuildUploaded extends ludeo_event_1.LudeoEvent {
29
39
  constructor(payload, context) {
30
40
  super(BuildUploaded.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"build-uploaded.js","sourceRoot":"","sources":["../../../src/v4/events/build-uploaded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,oBAAoB;CAMhC;AAND,oDAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;qDACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;6DACa;AAG1B,MAAa,aAAc,SAAQ,wBAAU;IAG3C,YAAY,OAA6B,EAAE,OAAqB;QAC9D,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sCAcC;AAbiB,wBAAU,GAAG,6BAA6B,CAAC;AAS3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;8CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;8BACtC,oBAAoB;8CAAC"}
1
+ {"version":3,"file":"build-uploaded.js","sourceRoot":"","sources":["../../../src/v4/events/build-uploaded.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,oBAAoB;CAiBhC;AAjBD,oDAiBC;AAfC;IADC,IAAA,wBAAM,GAAE;;qDACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;6DACa;AAOxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACW;AAGxB,MAAa,aAAc,SAAQ,wBAAU;IAG3C,YAAY,OAA6B,EAAE,OAAqB;QAC9D,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sCAcC;AAbiB,wBAAU,GAAG,6BAA6B,CAAC;AAS3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;8CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;8BACtC,oBAAoB;8CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.276",
3
+ "version": "1.2.277",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,4 +1,4 @@
1
- import { IsUUID, IsString } from "class-validator";
1
+ import { IsUUID, IsString, IsOptional } from "class-validator";
2
2
  import { BuildContext } from "../contexts/build-context";
3
3
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
4
4
  import { LudeoEvent } from "../../infra/ludeo-event";
@@ -9,6 +9,17 @@ export class BuildUploadedPayload {
9
9
 
10
10
  @IsString()
11
11
  centralizedPath: string;
12
+
13
+ // The game version this build belongs to (from the build metadata). Optional for backward
14
+ // compatibility. Lets consumers (e.g. the CRM sync) correlate the upload to a game/version
15
+ // without a follow-up fetch — the build-uploaded event otherwise carried no game identifier.
16
+ @IsOptional()
17
+ @IsString()
18
+ versionId?: string;
19
+
20
+ @IsOptional()
21
+ @IsString()
22
+ buildVersion?: string;
12
23
  }
13
24
 
14
25
  export class BuildUploaded extends LudeoEvent {