gs2-cdk 1.0.32 → 1.0.34
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/adReward/index.d.ts +12 -0
- package/adReward/index.js +32 -0
- package/adReward/index.js.map +1 -0
- package/adReward/index.ts +36 -0
- package/adReward/model/AdMob.d.ts +8 -0
- package/adReward/model/AdMob.js +16 -0
- package/adReward/model/AdMob.js.map +1 -0
- package/adReward/model/AdMob.ts +38 -0
- package/adReward/model/Namespace.d.ts +22 -0
- package/adReward/model/Namespace.js +76 -0
- package/adReward/model/Namespace.js.map +1 -0
- package/adReward/model/Namespace.ts +115 -0
- package/adReward/model/UnityAd.d.ts +8 -0
- package/adReward/model/UnityAd.js +18 -0
- package/adReward/model/UnityAd.js.map +1 -0
- package/adReward/model/UnityAd.ts +37 -0
- package/adReward/model/index.d.ts +7 -0
- package/adReward/model/index.js +26 -0
- package/adReward/model/index.js.map +1 -0
- package/adReward/model/index.ts +30 -0
- package/adReward/model/options/AdMobOptions.d.ts +2 -0
- package/adReward/model/options/AdMobOptions.js +18 -0
- package/adReward/model/options/AdMobOptions.js.map +1 -0
- package/adReward/model/options/AdMobOptions.ts +19 -0
- package/adReward/model/options/NamespaceOptions.d.ts +9 -0
- package/adReward/model/options/NamespaceOptions.js +3 -0
- package/adReward/model/options/NamespaceOptions.js.map +1 -0
- package/adReward/model/options/NamespaceOptions.ts +27 -0
- package/adReward/model/options/UnityAdOptions.d.ts +3 -0
- package/adReward/model/options/UnityAdOptions.js +18 -0
- package/adReward/model/options/UnityAdOptions.js.map +1 -0
- package/adReward/model/options/UnityAdOptions.ts +20 -0
- package/adReward/ref/NamespaceRef.d.ts +9 -0
- package/adReward/ref/NamespaceRef.js +44 -0
- package/adReward/ref/NamespaceRef.js.map +1 -0
- package/adReward/ref/NamespaceRef.ts +71 -0
- package/adReward/ref/index.d.ts +2 -0
- package/adReward/ref/index.js +22 -0
- package/adReward/ref/index.js.map +1 -0
- package/adReward/ref/index.ts +20 -0
- package/adReward/stampSheet/AcquirePointByUserId.d.ts +4 -0
- package/adReward/stampSheet/AcquirePointByUserId.js +29 -0
- package/adReward/stampSheet/AcquirePointByUserId.js.map +1 -0
- package/adReward/stampSheet/AcquirePointByUserId.ts +37 -0
- package/adReward/stampSheet/ConsumePointByUserId.d.ts +4 -0
- package/adReward/stampSheet/ConsumePointByUserId.js +29 -0
- package/adReward/stampSheet/ConsumePointByUserId.js.map +1 -0
- package/adReward/stampSheet/ConsumePointByUserId.ts +37 -0
- package/adReward/stampSheet/index.d.ts +3 -0
- package/adReward/stampSheet/index.js +24 -0
- package/adReward/stampSheet/index.js.map +1 -0
- package/adReward/stampSheet/index.ts +22 -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.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,20 @@
|
|
|
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 UnityAdOptions {
|
|
18
|
+
keys?: string[]|null;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import AcquirePointByUserId from "../stampSheet/AcquirePointByUserId";
|
|
2
|
+
import ConsumePointByUserId from "../stampSheet/ConsumePointByUserId";
|
|
3
|
+
export default class NamespaceRef {
|
|
4
|
+
private readonly namespaceName;
|
|
5
|
+
constructor(namespaceName: string);
|
|
6
|
+
acquirePoint(point: number, userId?: string | null): AcquirePointByUserId;
|
|
7
|
+
consumePoint(point: number, userId?: string | null): ConsumePointByUserId;
|
|
8
|
+
grn(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
const tslib_1 = require("tslib");
|
|
19
|
+
const func_1 = require("../../core/func");
|
|
20
|
+
const AcquirePointByUserId_1 = tslib_1.__importDefault(require("../stampSheet/AcquirePointByUserId"));
|
|
21
|
+
const ConsumePointByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ConsumePointByUserId"));
|
|
22
|
+
class NamespaceRef {
|
|
23
|
+
constructor(namespaceName) {
|
|
24
|
+
this.namespaceName = namespaceName;
|
|
25
|
+
}
|
|
26
|
+
acquirePoint(point, userId = "#{userId}") {
|
|
27
|
+
return new AcquirePointByUserId_1.default(this.namespaceName, point, userId);
|
|
28
|
+
}
|
|
29
|
+
consumePoint(point, userId = "#{userId}") {
|
|
30
|
+
return new ConsumePointByUserId_1.default(this.namespaceName, point, userId);
|
|
31
|
+
}
|
|
32
|
+
grn() {
|
|
33
|
+
return new func_1.Join(":", [
|
|
34
|
+
"grn",
|
|
35
|
+
"gs2",
|
|
36
|
+
func_1.GetAttr.region().str(),
|
|
37
|
+
func_1.GetAttr.ownerId().str(),
|
|
38
|
+
"adReward",
|
|
39
|
+
this.namespaceName,
|
|
40
|
+
]).str();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.default = NamespaceRef;
|
|
44
|
+
//# sourceMappingURL=NamespaceRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,sGAAsE;AACtE,sGAAsE;AAEtE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,YAAY,CACf,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,YAAY,CACf,KAAa,EACb,SAAsB,WAAW;QAEjC,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,UAAU;YACV,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAlDD,+BAkDC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
import {GetAttr, Join} from "../../core/func";
|
|
18
|
+
import AcquirePointByUserId from "../stampSheet/AcquirePointByUserId";
|
|
19
|
+
import ConsumePointByUserId from "../stampSheet/ConsumePointByUserId";
|
|
20
|
+
|
|
21
|
+
export default class NamespaceRef {
|
|
22
|
+
private readonly namespaceName: string;
|
|
23
|
+
|
|
24
|
+
public constructor(
|
|
25
|
+
namespaceName: string,
|
|
26
|
+
) {
|
|
27
|
+
this.namespaceName = namespaceName;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public acquirePoint(
|
|
31
|
+
point: number,
|
|
32
|
+
userId: string|null = "#{userId}",
|
|
33
|
+
): AcquirePointByUserId {
|
|
34
|
+
return new AcquirePointByUserId(
|
|
35
|
+
this.namespaceName,
|
|
36
|
+
point,
|
|
37
|
+
userId,
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public consumePoint(
|
|
42
|
+
point: number,
|
|
43
|
+
userId: string|null = "#{userId}",
|
|
44
|
+
): ConsumePointByUserId {
|
|
45
|
+
return new ConsumePointByUserId(
|
|
46
|
+
this.namespaceName,
|
|
47
|
+
point,
|
|
48
|
+
userId,
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public grn(
|
|
53
|
+
): string {
|
|
54
|
+
return new Join(
|
|
55
|
+
":",
|
|
56
|
+
[
|
|
57
|
+
"grn",
|
|
58
|
+
"gs2",
|
|
59
|
+
GetAttr.region(
|
|
60
|
+
).str(
|
|
61
|
+
),
|
|
62
|
+
GetAttr.ownerId(
|
|
63
|
+
).str(
|
|
64
|
+
),
|
|
65
|
+
"adReward",
|
|
66
|
+
this.namespaceName,
|
|
67
|
+
],
|
|
68
|
+
).str(
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NamespaceRef = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/*
|
|
6
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
7
|
+
* Reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
10
|
+
* You may not use this file except in compliance with the License.
|
|
11
|
+
* A copy of the License is located at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
16
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
17
|
+
* express or implied. See the License for the specific language governing
|
|
18
|
+
* permissions and limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
|
|
21
|
+
exports.NamespaceRef = NamespaceRef_1.default;
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAGtC,uBAHG,sBAAY,CAGH"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 NamespaceRef from "./NamespaceRef";
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
NamespaceRef,
|
|
20
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class AcquirePointByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, point, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["point"] = point;
|
|
24
|
+
properties["userId"] = userId;
|
|
25
|
+
super("Gs2AdReward:AcquirePointByUserId", properties);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.default = AcquirePointByUserId;
|
|
29
|
+
//# sourceMappingURL=AcquirePointByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcquirePointByUserId.js","sourceRoot":"","sources":["AcquirePointByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,oBAAqB,SAAQ,qBAAa;IAE3D,YACI,aAAqB,EACrB,KAAa,EACb,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,OAAO,CAAC,GAAG,KAAK,CAAA;QAC3B,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,kCAAkC,EAClC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAlBD,uCAkBC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
import {AcquireAction, ConsumeAction} from "../../core/model";
|
|
18
|
+
|
|
19
|
+
export default class AcquirePointByUserId extends AcquireAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
point: number,
|
|
24
|
+
userId: string|null = "#{userId}",
|
|
25
|
+
) {
|
|
26
|
+
let properties: {[name: string]: any} = {};
|
|
27
|
+
|
|
28
|
+
properties["namespaceName"] = namespaceName
|
|
29
|
+
properties["point"] = point
|
|
30
|
+
properties["userId"] = userId
|
|
31
|
+
|
|
32
|
+
super(
|
|
33
|
+
"Gs2AdReward:AcquirePointByUserId",
|
|
34
|
+
properties,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class ConsumePointByUserId extends model_1.ConsumeAction {
|
|
20
|
+
constructor(namespaceName, point, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["point"] = point;
|
|
24
|
+
properties["userId"] = userId;
|
|
25
|
+
super("Gs2AdReward:ConsumePointByUserId", properties);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.default = ConsumePointByUserId;
|
|
29
|
+
//# sourceMappingURL=ConsumePointByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsumePointByUserId.js","sourceRoot":"","sources":["ConsumePointByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,oBAAqB,SAAQ,qBAAa;IAE3D,YACI,aAAqB,EACrB,KAAa,EACb,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,OAAO,CAAC,GAAG,KAAK,CAAA;QAC3B,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,kCAAkC,EAClC,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAlBD,uCAkBC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
import {AcquireAction, ConsumeAction} from "../../core/model";
|
|
18
|
+
|
|
19
|
+
export default class ConsumePointByUserId extends ConsumeAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
point: number,
|
|
24
|
+
userId: string|null = "#{userId}",
|
|
25
|
+
) {
|
|
26
|
+
let properties: {[name: string]: any} = {};
|
|
27
|
+
|
|
28
|
+
properties["namespaceName"] = namespaceName
|
|
29
|
+
properties["point"] = point
|
|
30
|
+
properties["userId"] = userId
|
|
31
|
+
|
|
32
|
+
super(
|
|
33
|
+
"Gs2AdReward:ConsumePointByUserId",
|
|
34
|
+
properties,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConsumePointByUserId = exports.AcquirePointByUserId = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/*
|
|
6
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
7
|
+
* Reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
10
|
+
* You may not use this file except in compliance with the License.
|
|
11
|
+
* A copy of the License is located at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
16
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
17
|
+
* express or implied. See the License for the specific language governing
|
|
18
|
+
* permissions and limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
const AcquirePointByUserId_1 = tslib_1.__importDefault(require("./AcquirePointByUserId"));
|
|
21
|
+
exports.AcquirePointByUserId = AcquirePointByUserId_1.default;
|
|
22
|
+
const ConsumePointByUserId_1 = tslib_1.__importDefault(require("./ConsumePointByUserId"));
|
|
23
|
+
exports.ConsumePointByUserId = ConsumePointByUserId_1.default;
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0FAA0D;AAItD,+BAJG,8BAAoB,CAIH;AAHxB,0FAA0D;AAItD,+BAJG,8BAAoB,CAIH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 AcquirePointByUserId from "./AcquirePointByUserId";
|
|
17
|
+
import ConsumePointByUserId from "./ConsumePointByUserId";
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
AcquirePointByUserId,
|
|
21
|
+
ConsumePointByUserId,
|
|
22
|
+
}
|
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
|
+
}
|
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
|
}
|