@ludeo/cloud-common 1.2.225 → 1.2.226-beta-yahil-2
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/provisioner/index.d.ts +1 -0
- package/dist/v4/events/provisioner/index.js +1 -0
- package/dist/v4/events/provisioner/index.js.map +1 -1
- package/dist/v4/events/provisioner/supported-sites.d.ts +17 -0
- package/dist/v4/events/provisioner/supported-sites.js +62 -0
- package/dist/v4/events/provisioner/supported-sites.js.map +1 -0
- package/package.json +1 -1
- package/src/v4/events/provisioner/index.ts +1 -0
- package/src/v4/events/provisioner/supported-sites.ts +40 -0
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./provisioning-ended"), exports);
|
|
18
|
+
__exportStar(require("./supported-sites"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/provisioner/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/provisioner/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,oDAAkC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
export declare class SupportedSiteRegionData {
|
|
3
|
+
ip: string;
|
|
4
|
+
latitude: number;
|
|
5
|
+
longitude: number;
|
|
6
|
+
city: string;
|
|
7
|
+
country: string;
|
|
8
|
+
region: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class SupportedSitesPayload {
|
|
11
|
+
sites: Record<string, SupportedSiteRegionData>;
|
|
12
|
+
}
|
|
13
|
+
export declare class SupportedSites extends LudeoEvent {
|
|
14
|
+
static readonly EVENT_NAME = "provisioner.supported-sites";
|
|
15
|
+
constructor(payload: SupportedSitesPayload);
|
|
16
|
+
payload: SupportedSitesPayload;
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SupportedSites = exports.SupportedSitesPayload = exports.SupportedSiteRegionData = void 0;
|
|
13
|
+
const infra_1 = require("../../../infra");
|
|
14
|
+
const decorators_1 = require("../../../decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class SupportedSiteRegionData {
|
|
17
|
+
}
|
|
18
|
+
exports.SupportedSiteRegionData = SupportedSiteRegionData;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], SupportedSiteRegionData.prototype, "ip", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], SupportedSiteRegionData.prototype, "latitude", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], SupportedSiteRegionData.prototype, "longitude", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], SupportedSiteRegionData.prototype, "city", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], SupportedSiteRegionData.prototype, "country", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], SupportedSiteRegionData.prototype, "region", void 0);
|
|
43
|
+
class SupportedSitesPayload {
|
|
44
|
+
}
|
|
45
|
+
exports.SupportedSitesPayload = SupportedSitesPayload;
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, decorators_1.ValidateNestedType)(() => SupportedSiteRegionData),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], SupportedSitesPayload.prototype, "sites", void 0);
|
|
50
|
+
class SupportedSites extends infra_1.LudeoEvent {
|
|
51
|
+
constructor(payload) {
|
|
52
|
+
super(SupportedSites.EVENT_NAME);
|
|
53
|
+
this.payload = payload;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.SupportedSites = SupportedSites;
|
|
57
|
+
SupportedSites.EVENT_NAME = "provisioner.supported-sites";
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, decorators_1.ValidateNestedType)(() => SupportedSitesPayload),
|
|
60
|
+
__metadata("design:type", SupportedSitesPayload)
|
|
61
|
+
], SupportedSites.prototype, "payload", void 0);
|
|
62
|
+
//# sourceMappingURL=supported-sites.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supported-sites.js","sourceRoot":"","sources":["../../../../src/v4/events/provisioner/supported-sites.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAqD;AAErD,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAhBC;IADC,IAAA,0BAAQ,GAAE;;mDACA;AAGX;IADC,IAAA,0BAAQ,GAAE;;yDACM;AAGjB;IADC,IAAA,0BAAQ,GAAE;;0DACO;AAGlB;IADC,IAAA,0BAAQ,GAAE;;qDACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;wDACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;uDACI;AAGjB,MAAa,qBAAqB;CAGjC;AAHD,sDAGC;AADC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;;oDACH;AAGjD,MAAa,cAAe,SAAQ,kBAAU;IAG5C,YAAY,OAA8B;QACxC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,wCAUC;AATiB,yBAAU,GAAG,6BAA6B,CAAC;AAQ3D;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BACvC,qBAAqB;+CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { ValidateNestedType } from "../../../decorators";
|
|
3
|
+
import { IsNumber, IsString } from "class-validator";
|
|
4
|
+
|
|
5
|
+
export class SupportedSiteRegionData {
|
|
6
|
+
@IsString()
|
|
7
|
+
ip: string;
|
|
8
|
+
|
|
9
|
+
@IsNumber()
|
|
10
|
+
latitude: number;
|
|
11
|
+
|
|
12
|
+
@IsNumber()
|
|
13
|
+
longitude: number;
|
|
14
|
+
|
|
15
|
+
@IsString()
|
|
16
|
+
city: string;
|
|
17
|
+
|
|
18
|
+
@IsString()
|
|
19
|
+
country: string;
|
|
20
|
+
|
|
21
|
+
@IsString()
|
|
22
|
+
region: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class SupportedSitesPayload {
|
|
26
|
+
@ValidateNestedType(() => SupportedSiteRegionData)
|
|
27
|
+
sites: Record<string, SupportedSiteRegionData>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class SupportedSites extends LudeoEvent {
|
|
31
|
+
static readonly EVENT_NAME = "provisioner.supported-sites";
|
|
32
|
+
|
|
33
|
+
constructor(payload: SupportedSitesPayload) {
|
|
34
|
+
super(SupportedSites.EVENT_NAME);
|
|
35
|
+
this.payload = payload;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@ValidateNestedType(() => SupportedSitesPayload)
|
|
39
|
+
payload: SupportedSitesPayload;
|
|
40
|
+
}
|