@ludeo/cloud-common 1.2.73 → 1.2.75-beta-yahil-1
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/contexts/build-context.d.ts +3 -0
- package/dist/v4/contexts/build-context.js +21 -0
- package/dist/v4/contexts/build-context.js.map +1 -0
- package/dist/v4/contexts/index.d.ts +1 -0
- package/dist/v4/contexts/index.js +1 -0
- package/dist/v4/contexts/index.js.map +1 -1
- package/dist/v4/events/build-distributed-successfully.d.ts +15 -0
- package/dist/v4/events/build-distributed-successfully.js +51 -0
- package/dist/v4/events/build-distributed-successfully.js.map +1 -0
- package/dist/v4/events/build-distribution-failed-response.d.ts +13 -0
- package/dist/v4/events/build-distribution-failed-response.js +46 -0
- package/dist/v4/events/build-distribution-failed-response.js.map +1 -0
- package/dist/v4/events/distribute-build-request.d.ts +14 -0
- package/dist/v4/events/distribute-build-request.js +47 -0
- package/dist/v4/events/distribute-build-request.js.map +1 -0
- package/dist/v4/events/index.d.ts +4 -0
- package/dist/v4/events/index.js +4 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/monitor-stream-groups-task.d.ts +9 -0
- package/dist/v4/events/monitor-stream-groups-task.js +30 -0
- package/dist/v4/events/monitor-stream-groups-task.js.map +1 -0
- package/dist/v4/types/build.d.ts +67 -0
- package/dist/v4/types/build.js +31 -0
- package/dist/v4/types/build.js.map +1 -0
- package/package.json +1 -1
- package/src/v4/contexts/build-context.ts +6 -0
- package/src/v4/contexts/index.ts +1 -0
- package/src/v4/events/build-distributed-successfully.ts +36 -0
- package/src/v4/events/build-distribution-failed-response.ts +33 -0
- package/src/v4/events/distribute-build-request.ts +30 -0
- package/src/v4/events/index.ts +4 -0
- package/src/v4/events/monitor-stream-groups-task.ts +19 -0
- package/src/v4/types/build.ts +81 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { V4 } from "@ludeo/cloud-common";
|
|
2
|
+
|
|
3
|
+
export enum BuildStatus {
|
|
4
|
+
DRAFT = "draft",
|
|
5
|
+
UPLOADED = "uploaded",
|
|
6
|
+
DISTRIBUTING = "distributing",
|
|
7
|
+
DISTRIBUTED = "distributed",
|
|
8
|
+
FAILED = "failed",
|
|
9
|
+
CREATING = "creating",
|
|
10
|
+
CREATED = "created",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum DistributionStatus {
|
|
14
|
+
DISTRIBUTING = "distributing",
|
|
15
|
+
DISTRIBUTED = "distributed",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum ArtifactStatus {
|
|
19
|
+
CREATING = "creating",
|
|
20
|
+
CREATED = "created",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type BuildMetadata = {
|
|
24
|
+
studioId: string;
|
|
25
|
+
gameId: string;
|
|
26
|
+
versionId: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type AwsArtifactData = {
|
|
30
|
+
basePath: string;
|
|
31
|
+
executeableLaunchPath: string;
|
|
32
|
+
runtimeEnvironment: string;
|
|
33
|
+
applicationName: string;
|
|
34
|
+
applicationIdentifier?: string;
|
|
35
|
+
status?: ArtifactStatus;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type AwsDistributionData = {
|
|
39
|
+
path: string; // URL or path to the build in the specific region
|
|
40
|
+
status?: DistributionStatus;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type AwsDistributions = {
|
|
44
|
+
[region: string]: AwsDistributionData;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type AwsArtifacts = {
|
|
48
|
+
[region: string]: AwsArtifactData;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type Artifacts = {
|
|
52
|
+
[V4.Types.CloudProvider.AWS]: AwsArtifacts;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type Distributions = {
|
|
56
|
+
[V4.Types.CloudProvider.AWS]: AwsDistributions;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type BuildProviderSettings = {
|
|
60
|
+
[V4.Types.CloudProvider.AWS]: {
|
|
61
|
+
status?: BuildStatus;
|
|
62
|
+
artifacts?: AwsArtifacts;
|
|
63
|
+
distributions?: AwsDistributions;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export class CloudBuild {
|
|
68
|
+
id: string;
|
|
69
|
+
createdAt: number;
|
|
70
|
+
updatedAt?: number;
|
|
71
|
+
status: BuildStatus;
|
|
72
|
+
centralizedPath?: string;
|
|
73
|
+
meta?: BuildMetadata;
|
|
74
|
+
providers?: Partial<BuildProviderSettings>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export class AwsDistributorResponse {
|
|
78
|
+
distributions: AwsDistributions;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type DistributorResponse = AwsDistributorResponse;
|