gs2-cdk 1.0.33 → 1.0.35
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/account/model/BanStatus.d.ts +9 -0
- package/account/model/BanStatus.js +20 -0
- package/account/model/BanStatus.js.map +1 -0
- package/account/model/BanStatus.ts +44 -0
- package/account/model/index.d.ts +3 -1
- package/account/model/index.js +3 -1
- package/account/model/index.js.map +1 -1
- package/account/model/index.ts +4 -0
- package/account/model/options/BanStatusOptions.d.ts +2 -0
- package/account/model/options/BanStatusOptions.js +18 -0
- package/account/model/options/BanStatusOptions.js.map +1 -0
- package/account/model/options/BanStatusOptions.ts +19 -0
- package/package.json +1 -1
- package/version/model/ScheduleVersion.d.ts +12 -0
- package/version/model/ScheduleVersion.js +31 -0
- package/version/model/ScheduleVersion.js.map +1 -0
- package/version/model/ScheduleVersion.ts +59 -0
- package/version/model/Status.js.map +1 -1
- package/version/model/Status.ts +1 -0
- package/version/model/TargetVersion.d.ts +2 -3
- package/version/model/TargetVersion.js +7 -6
- package/version/model/TargetVersion.js.map +1 -1
- package/version/model/TargetVersion.ts +6 -7
- package/version/model/VersionModel.d.ts +12 -5
- package/version/model/VersionModel.js +45 -18
- package/version/model/VersionModel.js.map +1 -1
- package/version/model/VersionModel.ts +67 -21
- package/version/model/enum/VersionModelType.d.ts +5 -0
- package/version/model/enum/VersionModelType.js +23 -0
- package/version/model/enum/VersionModelType.js.map +1 -0
- package/version/model/enum/VersionModelType.ts +23 -0
- package/version/model/index.d.ts +8 -3
- package/version/model/index.js +7 -3
- package/version/model/index.js.map +1 -1
- package/version/model/index.ts +14 -4
- package/version/model/options/ScheduleVersionOptions.d.ts +3 -0
- package/version/model/options/ScheduleVersionOptions.js +3 -0
- package/version/model/options/ScheduleVersionOptions.js.map +1 -0
- package/version/model/options/ScheduleVersionOptions.ts +21 -0
- package/version/model/options/StatusOptions.ts +1 -0
- package/version/model/options/TargetVersionOptions.d.ts +2 -0
- package/version/model/options/TargetVersionOptions.ts +1 -0
- package/version/model/options/VersionModelOptions.d.ts +4 -0
- package/version/model/options/VersionModelOptions.ts +5 -0
- package/version/model/options/VersionModelScopeIsActiveOptions.d.ts +2 -0
- package/version/model/options/VersionModelScopeIsActiveOptions.ts +3 -0
- package/version/model/options/VersionModelScopeIsPassiveOptions.d.ts +2 -0
- package/version/model/options/VersionModelScopeIsPassiveOptions.ts +3 -0
- package/version/model/options/VersionModelTypeIsScheduleOptions.d.ts +5 -0
- package/version/model/options/VersionModelTypeIsScheduleOptions.js +3 -0
- package/version/model/options/VersionModelTypeIsScheduleOptions.js.map +1 -0
- package/version/model/options/VersionModelTypeIsScheduleOptions.ts +24 -0
- package/version/model/options/VersionModelTypeIsSimpleOptions.d.ts +5 -0
- package/version/model/options/VersionModelTypeIsSimpleOptions.js +3 -0
- package/version/model/options/VersionModelTypeIsSimpleOptions.js.map +1 -0
- package/version/model/options/VersionModelTypeIsSimpleOptions.ts +24 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BanStatusOptions } from "./options/BanStatusOptions";
|
|
2
|
+
export default class BanStatus {
|
|
3
|
+
private readonly reason;
|
|
4
|
+
private readonly releaseTimestamp;
|
|
5
|
+
constructor(reason: string, releaseTimestamp: number, options?: BanStatusOptions | null);
|
|
6
|
+
properties(): {
|
|
7
|
+
[name: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class BanStatus {
|
|
4
|
+
constructor(reason, releaseTimestamp, options = null) {
|
|
5
|
+
this.reason = reason;
|
|
6
|
+
this.releaseTimestamp = releaseTimestamp;
|
|
7
|
+
}
|
|
8
|
+
properties() {
|
|
9
|
+
let properties = {};
|
|
10
|
+
if (this.reason != null) {
|
|
11
|
+
properties["reason"] = this.reason;
|
|
12
|
+
}
|
|
13
|
+
if (this.releaseTimestamp != null) {
|
|
14
|
+
properties["releaseTimestamp"] = this.releaseTimestamp;
|
|
15
|
+
}
|
|
16
|
+
return properties;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = BanStatus;
|
|
20
|
+
//# sourceMappingURL=BanStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BanStatus.js","sourceRoot":"","sources":["BanStatus.ts"],"names":[],"mappings":";;AAiBA,MAAqB,SAAS;IAI1B,YACI,MAAc,EACd,gBAAwB,EACxB,UAAiC,IAAI;QAErC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC7C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC;SAC1D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,4BA0BC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { BanStatusOptions } from "./options/BanStatusOptions";
|
|
17
|
+
|
|
18
|
+
export default class BanStatus {
|
|
19
|
+
private readonly reason: string;
|
|
20
|
+
private readonly releaseTimestamp: number;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
reason: string,
|
|
24
|
+
releaseTimestamp: number,
|
|
25
|
+
options: BanStatusOptions|null = null,
|
|
26
|
+
) {
|
|
27
|
+
this.reason = reason;
|
|
28
|
+
this.releaseTimestamp = releaseTimestamp;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.reason != null) {
|
|
36
|
+
properties["reason"] = this.reason;
|
|
37
|
+
}
|
|
38
|
+
if (this.releaseTimestamp != null) {
|
|
39
|
+
properties["releaseTimestamp"] = this.releaseTimestamp;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return properties;
|
|
43
|
+
}
|
|
44
|
+
}
|
package/account/model/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import Namespace from "./Namespace";
|
|
2
2
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
3
|
-
|
|
3
|
+
import BanStatus from "./BanStatus";
|
|
4
|
+
import { BanStatusOptions } from "./options/BanStatusOptions";
|
|
5
|
+
export { Namespace, NamespaceOptions, BanStatus, BanStatusOptions, };
|
package/account/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Namespace = void 0;
|
|
3
|
+
exports.BanStatus = exports.Namespace = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -19,4 +19,6 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
*/
|
|
20
20
|
const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
|
|
21
21
|
exports.Namespace = Namespace_1.default;
|
|
22
|
+
const BanStatus_1 = tslib_1.__importDefault(require("./BanStatus"));
|
|
23
|
+
exports.BanStatus = BanStatus_1.default;
|
|
22
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAMhC,oBANG,mBAAS,CAMH;AAJb,oEAAoC;AAMhC,oBANG,mBAAS,CAMH"}
|
package/account/model/index.ts
CHANGED
|
@@ -15,8 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import Namespace from "./Namespace";
|
|
17
17
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
18
|
+
import BanStatus from "./BanStatus";
|
|
19
|
+
import { BanStatusOptions } from "./options/BanStatusOptions";
|
|
18
20
|
|
|
19
21
|
export {
|
|
20
22
|
Namespace,
|
|
21
23
|
NamespaceOptions,
|
|
24
|
+
BanStatus,
|
|
25
|
+
BanStatusOptions,
|
|
22
26
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
* Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
* You may not use this file except in compliance with the License.
|
|
8
|
+
* A copy of the License is located at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
* express or implied. See the License for the specific language governing
|
|
15
|
+
* permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=BanStatusOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BanStatusOptions.js","sourceRoot":"","sources":["BanStatusOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
export interface BanStatusOptions {
|
|
18
|
+
}
|
|
19
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Version from "./Version";
|
|
2
|
+
import { ScheduleVersionOptions } from "./options/ScheduleVersionOptions";
|
|
3
|
+
export default class ScheduleVersion {
|
|
4
|
+
private readonly currentVersion;
|
|
5
|
+
private readonly warningVersion;
|
|
6
|
+
private readonly errorVersion;
|
|
7
|
+
private readonly scheduleEventId;
|
|
8
|
+
constructor(currentVersion: Version, warningVersion: Version, errorVersion: Version, options?: ScheduleVersionOptions | null);
|
|
9
|
+
properties(): {
|
|
10
|
+
[name: string]: any;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class ScheduleVersion {
|
|
4
|
+
constructor(currentVersion, warningVersion, errorVersion, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.scheduleEventId = null;
|
|
7
|
+
this.currentVersion = currentVersion;
|
|
8
|
+
this.warningVersion = warningVersion;
|
|
9
|
+
this.errorVersion = errorVersion;
|
|
10
|
+
this.scheduleEventId = (_a = options === null || options === void 0 ? void 0 : options.scheduleEventId) !== null && _a !== void 0 ? _a : null;
|
|
11
|
+
}
|
|
12
|
+
properties() {
|
|
13
|
+
var _a, _b, _c;
|
|
14
|
+
let properties = {};
|
|
15
|
+
if (this.currentVersion != null) {
|
|
16
|
+
properties["currentVersion"] = (_a = this.currentVersion) === null || _a === void 0 ? void 0 : _a.properties();
|
|
17
|
+
}
|
|
18
|
+
if (this.warningVersion != null) {
|
|
19
|
+
properties["warningVersion"] = (_b = this.warningVersion) === null || _b === void 0 ? void 0 : _b.properties();
|
|
20
|
+
}
|
|
21
|
+
if (this.errorVersion != null) {
|
|
22
|
+
properties["errorVersion"] = (_c = this.errorVersion) === null || _c === void 0 ? void 0 : _c.properties();
|
|
23
|
+
}
|
|
24
|
+
if (this.scheduleEventId != null) {
|
|
25
|
+
properties["scheduleEventId"] = this.scheduleEventId;
|
|
26
|
+
}
|
|
27
|
+
return properties;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.default = ScheduleVersion;
|
|
31
|
+
//# sourceMappingURL=ScheduleVersion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduleVersion.js","sourceRoot":"","sources":["ScheduleVersion.ts"],"names":[],"mappings":";;AAkBA,MAAqB,eAAe;IAMhC,YACI,cAAuB,EACvB,cAAuB,EACvB,YAAqB,EACrB,UAAuC,IAAI;;QAN9B,oBAAe,GAAgB,IAAI,CAAC;QAQjD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,eAAe,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,mCAAI,IAAI,CAAC;IAC5D,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,MAAA,IAAI,CAAC,cAAc,0CAAE,UAAU,EAC7D,CAAC;SACL;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,MAAA,IAAI,CAAC,cAAc,0CAAE,UAAU,EAC7D,CAAC;SACL;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,MAAA,IAAI,CAAC,YAAY,0CAAE,UAAU,EACzD,CAAC;SACL;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAxCD,kCAwCC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import Version from "./Version";
|
|
17
|
+
import { ScheduleVersionOptions } from "./options/ScheduleVersionOptions";
|
|
18
|
+
|
|
19
|
+
export default class ScheduleVersion {
|
|
20
|
+
private readonly currentVersion: Version;
|
|
21
|
+
private readonly warningVersion: Version;
|
|
22
|
+
private readonly errorVersion: Version;
|
|
23
|
+
private readonly scheduleEventId: string|null = null;
|
|
24
|
+
|
|
25
|
+
public constructor(
|
|
26
|
+
currentVersion: Version,
|
|
27
|
+
warningVersion: Version,
|
|
28
|
+
errorVersion: Version,
|
|
29
|
+
options: ScheduleVersionOptions|null = null,
|
|
30
|
+
) {
|
|
31
|
+
this.currentVersion = currentVersion;
|
|
32
|
+
this.warningVersion = warningVersion;
|
|
33
|
+
this.errorVersion = errorVersion;
|
|
34
|
+
this.scheduleEventId = options?.scheduleEventId ?? null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public properties(
|
|
38
|
+
): {[name: string]: any} {
|
|
39
|
+
let properties: {[name: string]: any} = {};
|
|
40
|
+
|
|
41
|
+
if (this.currentVersion != null) {
|
|
42
|
+
properties["currentVersion"] = this.currentVersion?.properties(
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
if (this.warningVersion != null) {
|
|
46
|
+
properties["warningVersion"] = this.warningVersion?.properties(
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
if (this.errorVersion != null) {
|
|
50
|
+
properties["errorVersion"] = this.errorVersion?.properties(
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
if (this.scheduleEventId != null) {
|
|
54
|
+
properties["scheduleEventId"] = this.scheduleEventId;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return properties;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Status.js","sourceRoot":"","sources":["Status.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"Status.js","sourceRoot":"","sources":["Status.ts"],"names":[],"mappings":";;AAoBA,MAAqB,MAAM;IAIvB,YACI,YAA0B,EAC1B,UAA8B,IAAI;;QAJrB,mBAAc,GAAiB,IAAI,CAAC;QAMjD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,IAAI,CAAC;IAC1D,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,MAAA,IAAI,CAAC,YAAY,0CAAE,UAAU,EACzD,CAAC;SACL;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,MAAA,IAAI,CAAC,cAAc,0CAAE,UAAU,EAC7D,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA3BD,yBA2BC"}
|
package/version/model/Status.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import Version from "./Version";
|
|
2
1
|
import { TargetVersionOptions } from "./options/TargetVersionOptions";
|
|
3
2
|
export default class TargetVersion {
|
|
4
3
|
private readonly versionName;
|
|
5
|
-
private readonly version;
|
|
6
4
|
private readonly body;
|
|
7
5
|
private readonly signature;
|
|
8
|
-
|
|
6
|
+
private readonly version;
|
|
7
|
+
constructor(versionName: string, options?: TargetVersionOptions | null);
|
|
9
8
|
properties(): {
|
|
10
9
|
[name: string]: any;
|
|
11
10
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class TargetVersion {
|
|
4
|
-
constructor(versionName,
|
|
5
|
-
var _a, _b;
|
|
4
|
+
constructor(versionName, options = null) {
|
|
5
|
+
var _a, _b, _c;
|
|
6
6
|
this.body = null;
|
|
7
7
|
this.signature = null;
|
|
8
|
+
this.version = null;
|
|
8
9
|
this.versionName = versionName;
|
|
9
|
-
this.version = version;
|
|
10
10
|
this.body = (_a = options === null || options === void 0 ? void 0 : options.body) !== null && _a !== void 0 ? _a : null;
|
|
11
11
|
this.signature = (_b = options === null || options === void 0 ? void 0 : options.signature) !== null && _b !== void 0 ? _b : null;
|
|
12
|
+
this.version = (_c = options === null || options === void 0 ? void 0 : options.version) !== null && _c !== void 0 ? _c : null;
|
|
12
13
|
}
|
|
13
14
|
properties() {
|
|
14
15
|
var _a;
|
|
@@ -16,15 +17,15 @@ class TargetVersion {
|
|
|
16
17
|
if (this.versionName != null) {
|
|
17
18
|
properties["versionName"] = this.versionName;
|
|
18
19
|
}
|
|
19
|
-
if (this.version != null) {
|
|
20
|
-
properties["version"] = (_a = this.version) === null || _a === void 0 ? void 0 : _a.properties();
|
|
21
|
-
}
|
|
22
20
|
if (this.body != null) {
|
|
23
21
|
properties["body"] = this.body;
|
|
24
22
|
}
|
|
25
23
|
if (this.signature != null) {
|
|
26
24
|
properties["signature"] = this.signature;
|
|
27
25
|
}
|
|
26
|
+
if (this.version != null) {
|
|
27
|
+
properties["version"] = (_a = this.version) === null || _a === void 0 ? void 0 : _a.properties();
|
|
28
|
+
}
|
|
28
29
|
return properties;
|
|
29
30
|
}
|
|
30
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TargetVersion.js","sourceRoot":"","sources":["TargetVersion.ts"],"names":[],"mappings":";;AAkBA,MAAqB,aAAa;IAM9B,YACI,WAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"TargetVersion.js","sourceRoot":"","sources":["TargetVersion.ts"],"names":[],"mappings":";;AAkBA,MAAqB,aAAa;IAM9B,YACI,WAAmB,EACnB,UAAqC,IAAI;;QAN5B,SAAI,GAAgB,IAAI,CAAC;QACzB,cAAS,GAAgB,IAAI,CAAC;QAC9B,YAAO,GAAiB,IAAI,CAAC;QAM1C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,IAAI,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,IAAI,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,mCAAI,IAAI,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,IAAI,CAAC;IAC5C,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,EAC/C,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AApCD,gCAoCC"}
|
|
@@ -18,19 +18,18 @@ import { TargetVersionOptions } from "./options/TargetVersionOptions";
|
|
|
18
18
|
|
|
19
19
|
export default class TargetVersion {
|
|
20
20
|
private readonly versionName: string;
|
|
21
|
-
private readonly version: Version;
|
|
22
21
|
private readonly body: string|null = null;
|
|
23
22
|
private readonly signature: string|null = null;
|
|
23
|
+
private readonly version: Version|null = null;
|
|
24
24
|
|
|
25
25
|
public constructor(
|
|
26
26
|
versionName: string,
|
|
27
|
-
version: Version,
|
|
28
27
|
options: TargetVersionOptions|null = null,
|
|
29
28
|
) {
|
|
30
29
|
this.versionName = versionName;
|
|
31
|
-
this.version = version;
|
|
32
30
|
this.body = options?.body ?? null;
|
|
33
31
|
this.signature = options?.signature ?? null;
|
|
32
|
+
this.version = options?.version ?? null;
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
public properties(
|
|
@@ -40,16 +39,16 @@ export default class TargetVersion {
|
|
|
40
39
|
if (this.versionName != null) {
|
|
41
40
|
properties["versionName"] = this.versionName;
|
|
42
41
|
}
|
|
43
|
-
if (this.version != null) {
|
|
44
|
-
properties["version"] = this.version?.properties(
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
42
|
if (this.body != null) {
|
|
48
43
|
properties["body"] = this.body;
|
|
49
44
|
}
|
|
50
45
|
if (this.signature != null) {
|
|
51
46
|
properties["signature"] = this.signature;
|
|
52
47
|
}
|
|
48
|
+
if (this.version != null) {
|
|
49
|
+
properties["version"] = this.version?.properties(
|
|
50
|
+
);
|
|
51
|
+
}
|
|
53
52
|
|
|
54
53
|
return properties;
|
|
55
54
|
}
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import Version from "./Version";
|
|
2
2
|
import { VersionModelOptions } from "./options/VersionModelOptions";
|
|
3
|
+
import { VersionModelTypeIsSimpleOptions } from "./options/VersionModelTypeIsSimpleOptions";
|
|
4
|
+
import { VersionModelTypeIsScheduleOptions } from "./options/VersionModelTypeIsScheduleOptions";
|
|
3
5
|
import { VersionModelScopeIsPassiveOptions } from "./options/VersionModelScopeIsPassiveOptions";
|
|
4
6
|
import { VersionModelScopeIsActiveOptions } from "./options/VersionModelScopeIsActiveOptions";
|
|
5
7
|
import { VersionModelScope } from "./enum/VersionModelScope";
|
|
8
|
+
import { VersionModelType } from "./enum/VersionModelType";
|
|
6
9
|
export default class VersionModel {
|
|
7
10
|
private readonly name;
|
|
8
|
-
private readonly warningVersion;
|
|
9
|
-
private readonly errorVersion;
|
|
10
11
|
private readonly scope;
|
|
12
|
+
private readonly type;
|
|
11
13
|
private readonly metadata;
|
|
12
14
|
private readonly currentVersion;
|
|
15
|
+
private readonly warningVersion;
|
|
16
|
+
private readonly errorVersion;
|
|
17
|
+
private readonly scheduleVersions;
|
|
13
18
|
private readonly needSignature;
|
|
14
19
|
private readonly signatureKeyId;
|
|
15
|
-
constructor(name: string,
|
|
16
|
-
static
|
|
17
|
-
static
|
|
20
|
+
constructor(name: string, scope: VersionModelScope, type: VersionModelType, options?: VersionModelOptions | null);
|
|
21
|
+
static typeIsSimple(name: string, scope: VersionModelScope, warningVersion: Version, errorVersion: Version, options?: VersionModelTypeIsSimpleOptions | null): VersionModel;
|
|
22
|
+
static typeIsSchedule(name: string, scope: VersionModelScope, options?: VersionModelTypeIsScheduleOptions | null): VersionModel;
|
|
23
|
+
static scopeIsPassive(name: string, type: VersionModelType, needSignature: boolean, options?: VersionModelScopeIsPassiveOptions | null): VersionModel;
|
|
24
|
+
static scopeIsActive(name: string, type: VersionModelType, options?: VersionModelScopeIsActiveOptions | null): VersionModel;
|
|
18
25
|
properties(): {
|
|
19
26
|
[name: string]: any;
|
|
20
27
|
};
|
|
@@ -1,32 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const VersionModelScope_1 = require("./enum/VersionModelScope");
|
|
4
|
+
const VersionModelType_1 = require("./enum/VersionModelType");
|
|
4
5
|
class VersionModel {
|
|
5
|
-
constructor(name,
|
|
6
|
-
var _a, _b, _c, _d;
|
|
6
|
+
constructor(name, scope, type, options = null) {
|
|
7
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
7
8
|
this.metadata = null;
|
|
8
9
|
this.currentVersion = null;
|
|
10
|
+
this.warningVersion = null;
|
|
11
|
+
this.errorVersion = null;
|
|
12
|
+
this.scheduleVersions = null;
|
|
9
13
|
this.needSignature = null;
|
|
10
14
|
this.signatureKeyId = null;
|
|
11
15
|
this.name = name;
|
|
12
|
-
this.warningVersion = warningVersion;
|
|
13
|
-
this.errorVersion = errorVersion;
|
|
14
16
|
this.scope = scope;
|
|
17
|
+
this.type = type;
|
|
15
18
|
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
16
19
|
this.currentVersion = (_b = options === null || options === void 0 ? void 0 : options.currentVersion) !== null && _b !== void 0 ? _b : null;
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
20
|
+
this.warningVersion = (_c = options === null || options === void 0 ? void 0 : options.warningVersion) !== null && _c !== void 0 ? _c : null;
|
|
21
|
+
this.errorVersion = (_d = options === null || options === void 0 ? void 0 : options.errorVersion) !== null && _d !== void 0 ? _d : null;
|
|
22
|
+
this.scheduleVersions = (_e = options === null || options === void 0 ? void 0 : options.scheduleVersions) !== null && _e !== void 0 ? _e : null;
|
|
23
|
+
this.needSignature = (_f = options === null || options === void 0 ? void 0 : options.needSignature) !== null && _f !== void 0 ? _f : null;
|
|
24
|
+
this.signatureKeyId = (_g = options === null || options === void 0 ? void 0 : options.signatureKeyId) !== null && _g !== void 0 ? _g : null;
|
|
19
25
|
}
|
|
20
|
-
static
|
|
21
|
-
return new VersionModel(name,
|
|
26
|
+
static typeIsSimple(name, scope, warningVersion, errorVersion, options = null) {
|
|
27
|
+
return new VersionModel(name, scope, VersionModelType_1.VersionModelType.SIMPLE, {
|
|
28
|
+
warningVersion: warningVersion,
|
|
29
|
+
errorVersion: errorVersion,
|
|
30
|
+
metadata: options === null || options === void 0 ? void 0 : options.metadata,
|
|
31
|
+
scheduleVersions: options === null || options === void 0 ? void 0 : options.scheduleVersions,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
static typeIsSchedule(name, scope, options = null) {
|
|
35
|
+
return new VersionModel(name, scope, VersionModelType_1.VersionModelType.SCHEDULE, {
|
|
36
|
+
metadata: options === null || options === void 0 ? void 0 : options.metadata,
|
|
37
|
+
scheduleVersions: options === null || options === void 0 ? void 0 : options.scheduleVersions,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
static scopeIsPassive(name, type, needSignature, options = null) {
|
|
41
|
+
return new VersionModel(name, VersionModelScope_1.VersionModelScope.PASSIVE, type, {
|
|
22
42
|
needSignature: needSignature,
|
|
23
43
|
metadata: options === null || options === void 0 ? void 0 : options.metadata,
|
|
44
|
+
scheduleVersions: options === null || options === void 0 ? void 0 : options.scheduleVersions,
|
|
24
45
|
});
|
|
25
46
|
}
|
|
26
|
-
static scopeIsActive(name,
|
|
27
|
-
return new VersionModel(name,
|
|
28
|
-
currentVersion: currentVersion,
|
|
47
|
+
static scopeIsActive(name, type, options = null) {
|
|
48
|
+
return new VersionModel(name, VersionModelScope_1.VersionModelScope.ACTIVE, type, {
|
|
29
49
|
metadata: options === null || options === void 0 ? void 0 : options.metadata,
|
|
50
|
+
scheduleVersions: options === null || options === void 0 ? void 0 : options.scheduleVersions,
|
|
30
51
|
});
|
|
31
52
|
}
|
|
32
53
|
properties() {
|
|
@@ -38,17 +59,23 @@ class VersionModel {
|
|
|
38
59
|
if (this.metadata != null) {
|
|
39
60
|
properties["metadata"] = this.metadata;
|
|
40
61
|
}
|
|
41
|
-
if (this.warningVersion != null) {
|
|
42
|
-
properties["warningVersion"] = (_a = this.warningVersion) === null || _a === void 0 ? void 0 : _a.properties();
|
|
43
|
-
}
|
|
44
|
-
if (this.errorVersion != null) {
|
|
45
|
-
properties["errorVersion"] = (_b = this.errorVersion) === null || _b === void 0 ? void 0 : _b.properties();
|
|
46
|
-
}
|
|
47
62
|
if (this.scope != null) {
|
|
48
63
|
properties["scope"] = this.scope;
|
|
49
64
|
}
|
|
65
|
+
if (this.type != null) {
|
|
66
|
+
properties["type"] = this.type;
|
|
67
|
+
}
|
|
50
68
|
if (this.currentVersion != null) {
|
|
51
|
-
properties["currentVersion"] = (
|
|
69
|
+
properties["currentVersion"] = (_a = this.currentVersion) === null || _a === void 0 ? void 0 : _a.properties();
|
|
70
|
+
}
|
|
71
|
+
if (this.warningVersion != null) {
|
|
72
|
+
properties["warningVersion"] = (_b = this.warningVersion) === null || _b === void 0 ? void 0 : _b.properties();
|
|
73
|
+
}
|
|
74
|
+
if (this.errorVersion != null) {
|
|
75
|
+
properties["errorVersion"] = (_c = this.errorVersion) === null || _c === void 0 ? void 0 : _c.properties();
|
|
76
|
+
}
|
|
77
|
+
if (this.scheduleVersions != null) {
|
|
78
|
+
properties["scheduleVersions"] = this.scheduleVersions.map(v => v.properties());
|
|
52
79
|
}
|
|
53
80
|
if (this.needSignature != null) {
|
|
54
81
|
properties["needSignature"] = this.needSignature;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VersionModel.js","sourceRoot":"","sources":["VersionModel.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"VersionModel.js","sourceRoot":"","sources":["VersionModel.ts"],"names":[],"mappings":"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"}
|
|
@@ -14,72 +14,111 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import Version from "./Version";
|
|
17
|
+
import ScheduleVersion from "./ScheduleVersion";
|
|
17
18
|
import { VersionModelOptions } from "./options/VersionModelOptions";
|
|
19
|
+
import { VersionModelTypeIsSimpleOptions } from "./options/VersionModelTypeIsSimpleOptions";
|
|
20
|
+
import { VersionModelTypeIsScheduleOptions } from "./options/VersionModelTypeIsScheduleOptions";
|
|
18
21
|
import { VersionModelScopeIsPassiveOptions } from "./options/VersionModelScopeIsPassiveOptions";
|
|
19
22
|
import { VersionModelScopeIsActiveOptions } from "./options/VersionModelScopeIsActiveOptions";
|
|
20
23
|
import { VersionModelScope } from "./enum/VersionModelScope";
|
|
24
|
+
import { VersionModelType } from "./enum/VersionModelType";
|
|
21
25
|
|
|
22
26
|
export default class VersionModel {
|
|
23
27
|
private readonly name: string;
|
|
24
|
-
private readonly warningVersion: Version;
|
|
25
|
-
private readonly errorVersion: Version;
|
|
26
28
|
private readonly scope: VersionModelScope;
|
|
29
|
+
private readonly type: VersionModelType;
|
|
27
30
|
private readonly metadata: string|null = null;
|
|
28
31
|
private readonly currentVersion: Version|null = null;
|
|
32
|
+
private readonly warningVersion: Version|null = null;
|
|
33
|
+
private readonly errorVersion: Version|null = null;
|
|
34
|
+
private readonly scheduleVersions: ScheduleVersion[]|null = null;
|
|
29
35
|
private readonly needSignature: boolean|null = null;
|
|
30
36
|
private readonly signatureKeyId: string|null = null;
|
|
31
37
|
|
|
32
38
|
public constructor(
|
|
33
39
|
name: string,
|
|
34
|
-
warningVersion: Version,
|
|
35
|
-
errorVersion: Version,
|
|
36
40
|
scope: VersionModelScope,
|
|
41
|
+
type: VersionModelType,
|
|
37
42
|
options: VersionModelOptions|null = null,
|
|
38
43
|
) {
|
|
39
44
|
this.name = name;
|
|
40
|
-
this.warningVersion = warningVersion;
|
|
41
|
-
this.errorVersion = errorVersion;
|
|
42
45
|
this.scope = scope;
|
|
46
|
+
this.type = type;
|
|
43
47
|
this.metadata = options?.metadata ?? null;
|
|
44
48
|
this.currentVersion = options?.currentVersion ?? null;
|
|
49
|
+
this.warningVersion = options?.warningVersion ?? null;
|
|
50
|
+
this.errorVersion = options?.errorVersion ?? null;
|
|
51
|
+
this.scheduleVersions = options?.scheduleVersions ?? null;
|
|
45
52
|
this.needSignature = options?.needSignature ?? null;
|
|
46
53
|
this.signatureKeyId = options?.signatureKeyId ?? null;
|
|
47
54
|
}
|
|
48
55
|
|
|
49
|
-
public static
|
|
56
|
+
public static typeIsSimple(
|
|
50
57
|
name: string,
|
|
58
|
+
scope: VersionModelScope,
|
|
51
59
|
warningVersion: Version,
|
|
52
60
|
errorVersion: Version,
|
|
61
|
+
options: VersionModelTypeIsSimpleOptions|null = null,
|
|
62
|
+
): VersionModel {
|
|
63
|
+
return new VersionModel(
|
|
64
|
+
name,
|
|
65
|
+
scope,
|
|
66
|
+
VersionModelType.SIMPLE,
|
|
67
|
+
{
|
|
68
|
+
warningVersion: warningVersion,
|
|
69
|
+
errorVersion: errorVersion,
|
|
70
|
+
metadata: options?.metadata,
|
|
71
|
+
scheduleVersions: options?.scheduleVersions,
|
|
72
|
+
},
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public static typeIsSchedule(
|
|
77
|
+
name: string,
|
|
78
|
+
scope: VersionModelScope,
|
|
79
|
+
options: VersionModelTypeIsScheduleOptions|null = null,
|
|
80
|
+
): VersionModel {
|
|
81
|
+
return new VersionModel(
|
|
82
|
+
name,
|
|
83
|
+
scope,
|
|
84
|
+
VersionModelType.SCHEDULE,
|
|
85
|
+
{
|
|
86
|
+
metadata: options?.metadata,
|
|
87
|
+
scheduleVersions: options?.scheduleVersions,
|
|
88
|
+
},
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
public static scopeIsPassive(
|
|
93
|
+
name: string,
|
|
94
|
+
type: VersionModelType,
|
|
53
95
|
needSignature: boolean,
|
|
54
96
|
options: VersionModelScopeIsPassiveOptions|null = null,
|
|
55
97
|
): VersionModel {
|
|
56
98
|
return new VersionModel(
|
|
57
99
|
name,
|
|
58
|
-
warningVersion,
|
|
59
|
-
errorVersion,
|
|
60
100
|
VersionModelScope.PASSIVE,
|
|
101
|
+
type,
|
|
61
102
|
{
|
|
62
103
|
needSignature: needSignature,
|
|
63
104
|
metadata: options?.metadata,
|
|
105
|
+
scheduleVersions: options?.scheduleVersions,
|
|
64
106
|
},
|
|
65
107
|
);
|
|
66
108
|
}
|
|
67
109
|
|
|
68
110
|
public static scopeIsActive(
|
|
69
111
|
name: string,
|
|
70
|
-
|
|
71
|
-
errorVersion: Version,
|
|
72
|
-
currentVersion: Version,
|
|
112
|
+
type: VersionModelType,
|
|
73
113
|
options: VersionModelScopeIsActiveOptions|null = null,
|
|
74
114
|
): VersionModel {
|
|
75
115
|
return new VersionModel(
|
|
76
116
|
name,
|
|
77
|
-
warningVersion,
|
|
78
|
-
errorVersion,
|
|
79
117
|
VersionModelScope.ACTIVE,
|
|
118
|
+
type,
|
|
80
119
|
{
|
|
81
|
-
currentVersion: currentVersion,
|
|
82
120
|
metadata: options?.metadata,
|
|
121
|
+
scheduleVersions: options?.scheduleVersions,
|
|
83
122
|
},
|
|
84
123
|
);
|
|
85
124
|
}
|
|
@@ -94,6 +133,16 @@ export default class VersionModel {
|
|
|
94
133
|
if (this.metadata != null) {
|
|
95
134
|
properties["metadata"] = this.metadata;
|
|
96
135
|
}
|
|
136
|
+
if (this.scope != null) {
|
|
137
|
+
properties["scope"] = this.scope;
|
|
138
|
+
}
|
|
139
|
+
if (this.type != null) {
|
|
140
|
+
properties["type"] = this.type;
|
|
141
|
+
}
|
|
142
|
+
if (this.currentVersion != null) {
|
|
143
|
+
properties["currentVersion"] = this.currentVersion?.properties(
|
|
144
|
+
);
|
|
145
|
+
}
|
|
97
146
|
if (this.warningVersion != null) {
|
|
98
147
|
properties["warningVersion"] = this.warningVersion?.properties(
|
|
99
148
|
);
|
|
@@ -102,12 +151,9 @@ export default class VersionModel {
|
|
|
102
151
|
properties["errorVersion"] = this.errorVersion?.properties(
|
|
103
152
|
);
|
|
104
153
|
}
|
|
105
|
-
if (this.
|
|
106
|
-
properties["
|
|
107
|
-
|
|
108
|
-
if (this.currentVersion != null) {
|
|
109
|
-
properties["currentVersion"] = this.currentVersion?.properties(
|
|
110
|
-
);
|
|
154
|
+
if (this.scheduleVersions != null) {
|
|
155
|
+
properties["scheduleVersions"] = this.scheduleVersions.map(v => v.properties(
|
|
156
|
+
));
|
|
111
157
|
}
|
|
112
158
|
if (this.needSignature != null) {
|
|
113
159
|
properties["needSignature"] = this.needSignature;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
* Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
* You may not use this file except in compliance with the License.
|
|
8
|
+
* A copy of the License is located at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
* express or implied. See the License for the specific language governing
|
|
15
|
+
* permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.VersionModelType = void 0;
|
|
19
|
+
exports.VersionModelType = {
|
|
20
|
+
SIMPLE: "simple",
|
|
21
|
+
SCHEDULE: "schedule",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=VersionModelType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VersionModelType.js","sourceRoot":"","sources":["VersionModelType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,gBAAgB,GAAG;IAC5B,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACd,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export const VersionModelType = {
|
|
20
|
+
SIMPLE: "simple",
|
|
21
|
+
SCHEDULE: "schedule",
|
|
22
|
+
} as const;
|
|
23
|
+
export type VersionModelType = typeof VersionModelType[keyof typeof VersionModelType];
|
package/version/model/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import Namespace from "./Namespace";
|
|
2
2
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
3
|
-
import Version from "./Version";
|
|
4
|
-
import { VersionOptions } from "./options/VersionOptions";
|
|
5
3
|
import VersionModel from "./VersionModel";
|
|
6
4
|
import { VersionModelOptions } from "./options/VersionModelOptions";
|
|
7
5
|
import { VersionModelScope } from "./enum/VersionModelScope";
|
|
6
|
+
import { VersionModelType } from "./enum/VersionModelType";
|
|
7
|
+
import { VersionModelTypeIsSimpleOptions } from "./options/VersionModelTypeIsSimpleOptions";
|
|
8
|
+
import { VersionModelTypeIsScheduleOptions } from "./options/VersionModelTypeIsScheduleOptions";
|
|
8
9
|
import { VersionModelScopeIsPassiveOptions } from "./options/VersionModelScopeIsPassiveOptions";
|
|
9
10
|
import { VersionModelScopeIsActiveOptions } from "./options/VersionModelScopeIsActiveOptions";
|
|
10
11
|
import Status from "./Status";
|
|
@@ -13,5 +14,9 @@ import TargetVersion from "./TargetVersion";
|
|
|
13
14
|
import { TargetVersionOptions } from "./options/TargetVersionOptions";
|
|
14
15
|
import SignTargetVersion from "./SignTargetVersion";
|
|
15
16
|
import { SignTargetVersionOptions } from "./options/SignTargetVersionOptions";
|
|
17
|
+
import Version from "./Version";
|
|
18
|
+
import { VersionOptions } from "./options/VersionOptions";
|
|
19
|
+
import ScheduleVersion from "./ScheduleVersion";
|
|
20
|
+
import { ScheduleVersionOptions } from "./options/ScheduleVersionOptions";
|
|
16
21
|
import CurrentMasterData from "./CurrentMasterData";
|
|
17
|
-
export { Namespace, NamespaceOptions,
|
|
22
|
+
export { Namespace, NamespaceOptions, VersionModel, VersionModelOptions, VersionModelScope, VersionModelType, VersionModelTypeIsSimpleOptions, VersionModelTypeIsScheduleOptions, VersionModelScopeIsPassiveOptions, VersionModelScopeIsActiveOptions, Status, StatusOptions, TargetVersion, TargetVersionOptions, SignTargetVersion, SignTargetVersionOptions, Version, VersionOptions, ScheduleVersion, ScheduleVersionOptions, CurrentMasterData, };
|
package/version/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CurrentMasterData = exports.SignTargetVersion = exports.TargetVersion = exports.Status = exports.
|
|
3
|
+
exports.CurrentMasterData = exports.ScheduleVersion = exports.Version = exports.SignTargetVersion = exports.TargetVersion = exports.Status = exports.VersionModelType = exports.VersionModelScope = exports.VersionModel = exports.Namespace = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -19,18 +19,22 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
*/
|
|
20
20
|
const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
|
|
21
21
|
exports.Namespace = Namespace_1.default;
|
|
22
|
-
const Version_1 = tslib_1.__importDefault(require("./Version"));
|
|
23
|
-
exports.Version = Version_1.default;
|
|
24
22
|
const VersionModel_1 = tslib_1.__importDefault(require("./VersionModel"));
|
|
25
23
|
exports.VersionModel = VersionModel_1.default;
|
|
26
24
|
const VersionModelScope_1 = require("./enum/VersionModelScope");
|
|
27
25
|
Object.defineProperty(exports, "VersionModelScope", { enumerable: true, get: function () { return VersionModelScope_1.VersionModelScope; } });
|
|
26
|
+
const VersionModelType_1 = require("./enum/VersionModelType");
|
|
27
|
+
Object.defineProperty(exports, "VersionModelType", { enumerable: true, get: function () { return VersionModelType_1.VersionModelType; } });
|
|
28
28
|
const Status_1 = tslib_1.__importDefault(require("./Status"));
|
|
29
29
|
exports.Status = Status_1.default;
|
|
30
30
|
const TargetVersion_1 = tslib_1.__importDefault(require("./TargetVersion"));
|
|
31
31
|
exports.TargetVersion = TargetVersion_1.default;
|
|
32
32
|
const SignTargetVersion_1 = tslib_1.__importDefault(require("./SignTargetVersion"));
|
|
33
33
|
exports.SignTargetVersion = SignTargetVersion_1.default;
|
|
34
|
+
const Version_1 = tslib_1.__importDefault(require("./Version"));
|
|
35
|
+
exports.Version = Version_1.default;
|
|
36
|
+
const ScheduleVersion_1 = tslib_1.__importDefault(require("./ScheduleVersion"));
|
|
37
|
+
exports.ScheduleVersion = ScheduleVersion_1.default;
|
|
34
38
|
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
35
39
|
exports.CurrentMasterData = CurrentMasterData_1.default;
|
|
36
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAuBhC,oBAvBG,mBAAS,CAuBH;AArBb,0EAA0C;AAuBtC,uBAvBG,sBAAY,CAuBH;AArBhB,gEAA6D;AAuBzD,kGAvBK,qCAAiB,OAuBL;AAtBrB,8DAA2D;AAuBvD,iGAvBK,mCAAgB,OAuBL;AAlBpB,8DAA8B;AAuB1B,iBAvBG,gBAAM,CAuBH;AArBV,4EAA4C;AAuBxC,wBAvBG,uBAAa,CAuBH;AArBjB,oFAAoD;AAuBhD,4BAvBG,2BAAiB,CAuBH;AArBrB,gEAAgC;AAuB5B,kBAvBG,iBAAO,CAuBH;AArBX,gFAAgD;AAuB5C,0BAvBG,yBAAe,CAuBH;AArBnB,oFAAoD;AAuBhD,4BAvBG,2BAAiB,CAuBH"}
|
package/version/model/index.ts
CHANGED
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import Namespace from "./Namespace";
|
|
17
17
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
18
|
-
import Version from "./Version";
|
|
19
|
-
import { VersionOptions } from "./options/VersionOptions";
|
|
20
18
|
import VersionModel from "./VersionModel";
|
|
21
19
|
import { VersionModelOptions } from "./options/VersionModelOptions";
|
|
22
20
|
import { VersionModelScope } from "./enum/VersionModelScope";
|
|
21
|
+
import { VersionModelType } from "./enum/VersionModelType";
|
|
22
|
+
import { VersionModelTypeIsSimpleOptions } from "./options/VersionModelTypeIsSimpleOptions"
|
|
23
|
+
import { VersionModelTypeIsScheduleOptions } from "./options/VersionModelTypeIsScheduleOptions"
|
|
23
24
|
import { VersionModelScopeIsPassiveOptions } from "./options/VersionModelScopeIsPassiveOptions"
|
|
24
25
|
import { VersionModelScopeIsActiveOptions } from "./options/VersionModelScopeIsActiveOptions"
|
|
25
26
|
import Status from "./Status";
|
|
@@ -28,16 +29,21 @@ import TargetVersion from "./TargetVersion";
|
|
|
28
29
|
import { TargetVersionOptions } from "./options/TargetVersionOptions";
|
|
29
30
|
import SignTargetVersion from "./SignTargetVersion";
|
|
30
31
|
import { SignTargetVersionOptions } from "./options/SignTargetVersionOptions";
|
|
32
|
+
import Version from "./Version";
|
|
33
|
+
import { VersionOptions } from "./options/VersionOptions";
|
|
34
|
+
import ScheduleVersion from "./ScheduleVersion";
|
|
35
|
+
import { ScheduleVersionOptions } from "./options/ScheduleVersionOptions";
|
|
31
36
|
import CurrentMasterData from "./CurrentMasterData";
|
|
32
37
|
|
|
33
38
|
export {
|
|
34
39
|
Namespace,
|
|
35
40
|
NamespaceOptions,
|
|
36
|
-
Version,
|
|
37
|
-
VersionOptions,
|
|
38
41
|
VersionModel,
|
|
39
42
|
VersionModelOptions,
|
|
40
43
|
VersionModelScope,
|
|
44
|
+
VersionModelType,
|
|
45
|
+
VersionModelTypeIsSimpleOptions,
|
|
46
|
+
VersionModelTypeIsScheduleOptions,
|
|
41
47
|
VersionModelScopeIsPassiveOptions,
|
|
42
48
|
VersionModelScopeIsActiveOptions,
|
|
43
49
|
Status,
|
|
@@ -46,5 +52,9 @@ export {
|
|
|
46
52
|
TargetVersionOptions,
|
|
47
53
|
SignTargetVersion,
|
|
48
54
|
SignTargetVersionOptions,
|
|
55
|
+
Version,
|
|
56
|
+
VersionOptions,
|
|
57
|
+
ScheduleVersion,
|
|
58
|
+
ScheduleVersionOptions,
|
|
49
59
|
CurrentMasterData,
|
|
50
60
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduleVersionOptions.js","sourceRoot":"","sources":["ScheduleVersionOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import Version from "../Version";
|
|
17
|
+
|
|
18
|
+
export interface ScheduleVersionOptions {
|
|
19
|
+
scheduleEventId?: string|null;
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import Version from "../Version";
|
|
2
|
+
import ScheduleVersion from "../ScheduleVersion";
|
|
2
3
|
export interface VersionModelOptions {
|
|
3
4
|
metadata?: string | null;
|
|
4
5
|
currentVersion?: Version | null;
|
|
6
|
+
warningVersion?: Version | null;
|
|
7
|
+
errorVersion?: Version | null;
|
|
8
|
+
scheduleVersions?: ScheduleVersion[] | null;
|
|
5
9
|
needSignature?: boolean | null;
|
|
6
10
|
signatureKeyId?: string | null;
|
|
7
11
|
}
|
|
@@ -14,11 +14,16 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import Version from "../Version";
|
|
17
|
+
import ScheduleVersion from "../ScheduleVersion";
|
|
17
18
|
import { VersionModelScope } from "../enum/VersionModelScope";
|
|
19
|
+
import { VersionModelType } from "../enum/VersionModelType";
|
|
18
20
|
|
|
19
21
|
export interface VersionModelOptions {
|
|
20
22
|
metadata?: string|null;
|
|
21
23
|
currentVersion?: Version|null;
|
|
24
|
+
warningVersion?: Version|null;
|
|
25
|
+
errorVersion?: Version|null;
|
|
26
|
+
scheduleVersions?: ScheduleVersion[]|null;
|
|
22
27
|
needSignature?: boolean|null;
|
|
23
28
|
signatureKeyId?: string|null;
|
|
24
29
|
}
|
|
@@ -14,8 +14,11 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import Version from "../Version";
|
|
17
|
+
import ScheduleVersion from "../ScheduleVersion";
|
|
17
18
|
import { VersionModelScope } from "../enum/VersionModelScope";
|
|
19
|
+
import { VersionModelType } from "../enum/VersionModelType";
|
|
18
20
|
|
|
19
21
|
export interface VersionModelScopeIsActiveOptions {
|
|
20
22
|
metadata?: string|null;
|
|
23
|
+
scheduleVersions?: ScheduleVersion[]|null;
|
|
21
24
|
}
|
|
@@ -14,8 +14,11 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import Version from "../Version";
|
|
17
|
+
import ScheduleVersion from "../ScheduleVersion";
|
|
17
18
|
import { VersionModelScope } from "../enum/VersionModelScope";
|
|
19
|
+
import { VersionModelType } from "../enum/VersionModelType";
|
|
18
20
|
|
|
19
21
|
export interface VersionModelScopeIsPassiveOptions {
|
|
20
22
|
metadata?: string|null;
|
|
23
|
+
scheduleVersions?: ScheduleVersion[]|null;
|
|
21
24
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VersionModelTypeIsScheduleOptions.js","sourceRoot":"","sources":["VersionModelTypeIsScheduleOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import Version from "../Version";
|
|
17
|
+
import ScheduleVersion from "../ScheduleVersion";
|
|
18
|
+
import { VersionModelScope } from "../enum/VersionModelScope";
|
|
19
|
+
import { VersionModelType } from "../enum/VersionModelType";
|
|
20
|
+
|
|
21
|
+
export interface VersionModelTypeIsScheduleOptions {
|
|
22
|
+
metadata?: string|null;
|
|
23
|
+
scheduleVersions?: ScheduleVersion[]|null;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VersionModelTypeIsSimpleOptions.js","sourceRoot":"","sources":["VersionModelTypeIsSimpleOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import Version from "../Version";
|
|
17
|
+
import ScheduleVersion from "../ScheduleVersion";
|
|
18
|
+
import { VersionModelScope } from "../enum/VersionModelScope";
|
|
19
|
+
import { VersionModelType } from "../enum/VersionModelType";
|
|
20
|
+
|
|
21
|
+
export interface VersionModelTypeIsSimpleOptions {
|
|
22
|
+
metadata?: string|null;
|
|
23
|
+
scheduleVersions?: ScheduleVersion[]|null;
|
|
24
|
+
}
|