@ludeo/cloud-common 1.2.66 → 1.2.67
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/allocate-ludeo-request.d.ts +1 -1
- package/dist/v4/events/allocate-ludeo-request.js +2 -1
- package/dist/v4/events/allocate-ludeo-request.js.map +1 -1
- package/dist/v4/events/allocate-ludeo-resource-request.d.ts +1 -0
- package/dist/v4/events/allocate-ludeo-resource-request.js +5 -0
- package/dist/v4/events/allocate-ludeo-resource-request.js.map +1 -1
- package/dist/v4/events/ludeo-allocation-failed.d.ts +1 -0
- package/dist/v4/events/ludeo-allocation-failed.js +5 -0
- package/dist/v4/events/ludeo-allocation-failed.js.map +1 -1
- package/dist/v4/events/ludeo-resource-allocation-failed.d.ts +1 -0
- package/dist/v4/events/ludeo-resource-allocation-failed.js +5 -0
- package/dist/v4/events/ludeo-resource-allocation-failed.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/allocate-ludeo-request.ts +3 -2
- package/src/v4/events/allocate-ludeo-resource-request.ts +5 -1
- package/src/v4/events/ludeo-allocation-failed.ts +5 -1
- package/src/v4/events/ludeo-resource-allocation-failed.ts +5 -1
|
@@ -5,7 +5,7 @@ export declare class AllocateLudeoRequestPayload {
|
|
|
5
5
|
ludeoPoolId: string;
|
|
6
6
|
ludeoId: string;
|
|
7
7
|
requestData: AllocationRequestData;
|
|
8
|
-
|
|
8
|
+
allocationAttempt?: number;
|
|
9
9
|
}
|
|
10
10
|
export declare class AllocateLudeoRequest extends LudeoEvent {
|
|
11
11
|
static readonly EVENT_NAME = "cloud-session-allocator.allocate-ludeo-request";
|
|
@@ -32,8 +32,9 @@ __decorate([
|
|
|
32
32
|
], AllocateLudeoRequestPayload.prototype, "requestData", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, class_validator_1.IsNumber)(),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
36
|
__metadata("design:type", Number)
|
|
36
|
-
], AllocateLudeoRequestPayload.prototype, "
|
|
37
|
+
], AllocateLudeoRequestPayload.prototype, "allocationAttempt", void 0);
|
|
37
38
|
class AllocateLudeoRequest extends ludeo_event_1.LudeoEvent {
|
|
38
39
|
constructor(payload, context) {
|
|
39
40
|
super(AllocateLudeoRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocate-ludeo-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"allocate-ludeo-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAAiD;AAEjD,MAAa,2BAA2B;CAavC;AAbD,kEAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;gEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;4DACO;AAGhB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;gEAAC;AAInC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sEACc;AAG7B,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YACE,OAAoC,EACpC,OAA4B;QAE5B,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oDAiBC;AAhBiB,+BAAU,GAAG,gDAAgD,CAAC;AAY9E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;qDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
|
|
@@ -11,6 +11,7 @@ export declare class AllocateLudeoResourceRequestPayload {
|
|
|
11
11
|
ludeoResourceSettings: LudeoResourceSettings;
|
|
12
12
|
requestedLudeoId: string;
|
|
13
13
|
preloadedLudeoId?: string;
|
|
14
|
+
allocationAttempt?: number;
|
|
14
15
|
}
|
|
15
16
|
export declare class AllocateLudeoResourceRequest extends LudeoEvent {
|
|
16
17
|
static readonly EVENT_NAME = "cloud-pools.allocate-ludeo-resource-request";
|
|
@@ -56,6 +56,11 @@ __decorate([
|
|
|
56
56
|
(0, is_uuid_or_empty_decorator_1.IsUUIDOrEmpty)(),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
58
|
], AllocateLudeoResourceRequestPayload.prototype, "preloadedLudeoId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsNumber)(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], AllocateLudeoResourceRequestPayload.prototype, "allocationAttempt", void 0);
|
|
59
64
|
class AllocateLudeoResourceRequest extends ludeo_event_1.LudeoEvent {
|
|
60
65
|
constructor(payload, context) {
|
|
61
66
|
super(AllocateLudeoResourceRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocate-ludeo-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"allocate-ludeo-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAOkB;AAClB,4FAA4E;AAE5E,MAAa,mCAAmC;CAgC/C;AAhCD,kFAgCC;AA9BC;IADC,IAAA,wBAAM,GAAE;;4EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;wEACW;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;wEAAC;AAGnC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACzB,4BAAoB;iFAAC;AAG3C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACzB,6BAAqB;kFAAC;AAG7C;IADC,IAAA,wBAAM,GAAE;;6EACgB;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0CAAa,GAAE;;6EACU;AAI1B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8EACgB;AAG7B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAA4B;QAE5B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,6CAA6C,CAAC;AAY3E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;6DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -2,6 +2,7 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
2
2
|
import { CloudSessionContext } from "../contexts";
|
|
3
3
|
export declare class LudeoAllocationFailedPayload {
|
|
4
4
|
errorMessage: string;
|
|
5
|
+
allocationAttempt?: number;
|
|
5
6
|
}
|
|
6
7
|
export declare class LudeoAllocationFailed extends LudeoEvent {
|
|
7
8
|
static readonly EVENT_NAME = "cloud-pools.ludeo-allocation-failed";
|
|
@@ -21,6 +21,11 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsString)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], LudeoAllocationFailedPayload.prototype, "errorMessage", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], LudeoAllocationFailedPayload.prototype, "allocationAttempt", void 0);
|
|
24
29
|
class LudeoAllocationFailed extends ludeo_event_1.LudeoEvent {
|
|
25
30
|
constructor(payload, context) {
|
|
26
31
|
super(LudeoAllocationFailed.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ludeo-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"ludeo-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,qDAAiE;AAEjE,MAAa,4BAA4B;CAOxC;AAPD,oEAOC;AALC;IADC,IAAA,0BAAQ,GAAE;;kEACU;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uEACc;AAG7B,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAA4B;QAE5B,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sDAiBC;AAhBiB,gCAAU,GAAG,qCAAqC,CAAC;AAYnE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
|
|
@@ -4,6 +4,7 @@ export declare class LudeoResourceAllocationFailedPayload {
|
|
|
4
4
|
ludeoResourceId: string;
|
|
5
5
|
ludeoPoolId: string;
|
|
6
6
|
errorMessage: string;
|
|
7
|
+
allocationAttempt?: number;
|
|
7
8
|
}
|
|
8
9
|
export declare class LudeoResourceAllocationFailedResponse extends LudeoEvent {
|
|
9
10
|
static readonly EVENT_NAME = "cloud-resources.ludeo-resource-allocation-failed";
|
|
@@ -29,6 +29,11 @@ __decorate([
|
|
|
29
29
|
(0, class_validator_1.IsString)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], LudeoResourceAllocationFailedPayload.prototype, "errorMessage", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsNumber)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], LudeoResourceAllocationFailedPayload.prototype, "allocationAttempt", void 0);
|
|
32
37
|
class LudeoResourceAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
33
38
|
constructor(payload, context) {
|
|
34
39
|
super(LudeoResourceAllocationFailedResponse.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ludeo-resource-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"ludeo-resource-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAGlD,MAAa,oCAAoC;CAahD;AAbD,oFAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;6EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;yEACW;AAGpB;IADC,IAAA,0BAAQ,GAAE;;0EACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+EACgB;AAG7B,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAA6C,EAC7C,OAA4B;QAE5B,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sEAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;sEAAC"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsNumber, IsUUID } from "class-validator";
|
|
1
|
+
import { IsNumber, IsOptional, IsUUID } from "class-validator";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
4
|
import { CloudSessionContext } from "../contexts";
|
|
@@ -15,7 +15,8 @@ export class AllocateLudeoRequestPayload {
|
|
|
15
15
|
requestData: AllocationRequestData;
|
|
16
16
|
|
|
17
17
|
@IsNumber()
|
|
18
|
-
|
|
18
|
+
@IsOptional()
|
|
19
|
+
allocationAttempt?: number;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
export class AllocateLudeoRequest extends LudeoEvent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsEnum, IsOptional, IsUUID } from "class-validator";
|
|
1
|
+
import { IsEnum, IsNumber, IsOptional, IsUUID } from "class-validator";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
4
|
import { CloudSessionContext } from "../contexts";
|
|
@@ -40,6 +40,10 @@ export class AllocateLudeoResourceRequestPayload {
|
|
|
40
40
|
@IsOptional()
|
|
41
41
|
@IsUUIDOrEmpty()
|
|
42
42
|
preloadedLudeoId?: string;
|
|
43
|
+
|
|
44
|
+
@IsOptional()
|
|
45
|
+
@IsNumber()
|
|
46
|
+
allocationAttempt?: number;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
export class AllocateLudeoResourceRequest extends LudeoEvent {
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
3
|
import { CloudSessionContext } from "../contexts";
|
|
4
|
-
import { IsString } from "class-validator";
|
|
4
|
+
import { IsNumber, IsOptional, IsString } from "class-validator";
|
|
5
5
|
|
|
6
6
|
export class LudeoAllocationFailedPayload {
|
|
7
7
|
@IsString()
|
|
8
8
|
errorMessage: string;
|
|
9
|
+
|
|
10
|
+
@IsNumber()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
allocationAttempt?: number;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
15
|
export class LudeoAllocationFailed extends LudeoEvent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsString, IsUUID } from "class-validator";
|
|
1
|
+
import { IsString, IsUUID, IsOptional, IsNumber } from "class-validator";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
4
|
import { CloudSessionContext } from "../contexts";
|
|
@@ -13,6 +13,10 @@ export class LudeoResourceAllocationFailedPayload {
|
|
|
13
13
|
|
|
14
14
|
@IsString()
|
|
15
15
|
errorMessage: string;
|
|
16
|
+
|
|
17
|
+
@IsOptional()
|
|
18
|
+
@IsNumber()
|
|
19
|
+
allocationAttempt?: number;
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
export class LudeoResourceAllocationFailedResponse extends LudeoEvent {
|