gs2-cdk 1.0.16 → 1.0.18
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/LICENSE.txt +63 -0
- package/README-en.md +26 -0
- package/README.md +26 -0
- package/loginReward/index.d.ts +12 -0
- package/loginReward/index.js +32 -0
- package/loginReward/index.js.map +1 -0
- package/loginReward/index.ts +36 -0
- package/loginReward/model/BonusModel.d.ts +27 -0
- package/loginReward/model/BonusModel.js +90 -0
- package/loginReward/model/BonusModel.js.map +1 -0
- package/loginReward/model/BonusModel.ts +166 -0
- package/loginReward/model/CurrentMasterData.d.ts +13 -0
- package/loginReward/model/CurrentMasterData.js +50 -0
- package/loginReward/model/CurrentMasterData.js.map +1 -0
- package/loginReward/model/CurrentMasterData.ts +70 -0
- package/loginReward/model/Namespace.d.ts +23 -0
- package/loginReward/model/Namespace.js +76 -0
- package/loginReward/model/Namespace.js.map +1 -0
- package/loginReward/model/Namespace.ts +123 -0
- package/loginReward/model/Reward.d.ts +9 -0
- package/loginReward/model/Reward.js +16 -0
- package/loginReward/model/Reward.js.map +1 -0
- package/loginReward/model/Reward.ts +40 -0
- package/loginReward/model/enum/BonusModelMissedReceiveRelief.d.ts +5 -0
- package/loginReward/model/enum/BonusModelMissedReceiveRelief.js +23 -0
- package/loginReward/model/enum/BonusModelMissedReceiveRelief.js.map +1 -0
- package/loginReward/model/enum/BonusModelMissedReceiveRelief.ts +23 -0
- package/loginReward/model/enum/BonusModelMode.d.ts +5 -0
- package/loginReward/model/enum/BonusModelMode.js +23 -0
- package/loginReward/model/enum/BonusModelMode.js.map +1 -0
- package/loginReward/model/enum/BonusModelMode.ts +23 -0
- package/loginReward/model/enum/BonusModelRepeat.d.ts +5 -0
- package/loginReward/model/enum/BonusModelRepeat.js +23 -0
- package/loginReward/model/enum/BonusModelRepeat.js.map +1 -0
- package/loginReward/model/enum/BonusModelRepeat.ts +23 -0
- package/loginReward/model/index.d.ts +15 -0
- package/loginReward/model/index.js +34 -0
- package/loginReward/model/index.js.map +1 -0
- package/loginReward/model/index.ts +46 -0
- package/loginReward/model/options/BonusModelMissedReceiveReliefIsDisabledOptions.d.ts +8 -0
- package/loginReward/model/options/BonusModelMissedReceiveReliefIsDisabledOptions.js +3 -0
- package/loginReward/model/options/BonusModelMissedReceiveReliefIsDisabledOptions.js.map +1 -0
- package/loginReward/model/options/BonusModelMissedReceiveReliefIsDisabledOptions.ts +28 -0
- package/loginReward/model/options/BonusModelMissedReceiveReliefIsEnabledOptions.d.ts +8 -0
- package/loginReward/model/options/BonusModelMissedReceiveReliefIsEnabledOptions.js +3 -0
- package/loginReward/model/options/BonusModelMissedReceiveReliefIsEnabledOptions.js.map +1 -0
- package/loginReward/model/options/BonusModelMissedReceiveReliefIsEnabledOptions.ts +28 -0
- package/loginReward/model/options/BonusModelModeIsScheduleOptions.d.ts +8 -0
- package/loginReward/model/options/BonusModelModeIsScheduleOptions.js +3 -0
- package/loginReward/model/options/BonusModelModeIsScheduleOptions.js.map +1 -0
- package/loginReward/model/options/BonusModelModeIsScheduleOptions.ts +28 -0
- package/loginReward/model/options/BonusModelModeIsStreamingOptions.d.ts +8 -0
- package/loginReward/model/options/BonusModelModeIsStreamingOptions.js +3 -0
- package/loginReward/model/options/BonusModelModeIsStreamingOptions.js.map +1 -0
- package/loginReward/model/options/BonusModelModeIsStreamingOptions.ts +28 -0
- package/loginReward/model/options/BonusModelOptions.d.ts +11 -0
- package/loginReward/model/options/BonusModelOptions.js +3 -0
- package/loginReward/model/options/BonusModelOptions.js.map +1 -0
- package/loginReward/model/options/BonusModelOptions.ts +31 -0
- package/loginReward/model/options/NamespaceOptions.d.ts +7 -0
- package/loginReward/model/options/NamespaceOptions.js +3 -0
- package/loginReward/model/options/NamespaceOptions.js.map +1 -0
- package/loginReward/model/options/NamespaceOptions.ts +25 -0
- package/loginReward/model/options/RewardOptions.d.ts +2 -0
- package/loginReward/model/options/RewardOptions.js +3 -0
- package/loginReward/model/options/RewardOptions.js.map +1 -0
- package/loginReward/model/options/RewardOptions.ts +20 -0
- package/loginReward/ref/BonusModelRef.d.ts +6 -0
- package/loginReward/ref/BonusModelRef.js +38 -0
- package/loginReward/ref/BonusModelRef.js.map +1 -0
- package/loginReward/ref/BonusModelRef.ts +52 -0
- package/loginReward/ref/NamespaceRef.d.ts +11 -0
- package/loginReward/ref/NamespaceRef.js +48 -0
- package/loginReward/ref/NamespaceRef.js.map +1 -0
- package/loginReward/ref/NamespaceRef.ts +83 -0
- package/loginReward/ref/index.d.ts +3 -0
- package/loginReward/ref/index.js +24 -0
- package/loginReward/ref/index.js.map +1 -0
- package/loginReward/ref/index.ts +22 -0
- package/loginReward/stampSheet/DeleteReceiveStatusByUserId.d.ts +4 -0
- package/loginReward/stampSheet/DeleteReceiveStatusByUserId.js +29 -0
- package/loginReward/stampSheet/DeleteReceiveStatusByUserId.js.map +1 -0
- package/loginReward/stampSheet/DeleteReceiveStatusByUserId.ts +37 -0
- package/loginReward/stampSheet/MarkReceivedByUserId.d.ts +4 -0
- package/loginReward/stampSheet/MarkReceivedByUserId.js +30 -0
- package/loginReward/stampSheet/MarkReceivedByUserId.js.map +1 -0
- package/loginReward/stampSheet/MarkReceivedByUserId.ts +39 -0
- package/loginReward/stampSheet/index.d.ts +3 -0
- package/loginReward/stampSheet/index.js +24 -0
- package/loginReward/stampSheet/index.js.map +1 -0
- package/loginReward/stampSheet/index.ts +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
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 { AcquireAction } from "../../../core/model";
|
|
17
|
+
import Reward from "../Reward";
|
|
18
|
+
import { ConsumeAction } from "../../../core/model";
|
|
19
|
+
import { BonusModelMode } from "../enum/BonusModelMode";
|
|
20
|
+
import { BonusModelRepeat } from "../enum/BonusModelRepeat";
|
|
21
|
+
import { BonusModelMissedReceiveRelief } from "../enum/BonusModelMissedReceiveRelief";
|
|
22
|
+
|
|
23
|
+
export interface BonusModelMissedReceiveReliefIsEnabledOptions {
|
|
24
|
+
metadata?: string|null;
|
|
25
|
+
periodEventId?: string|null;
|
|
26
|
+
rewards?: Reward[]|null;
|
|
27
|
+
missedReceiveReliefConsumeActions?: ConsumeAction[]|null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Reward from "../Reward";
|
|
2
|
+
import { ConsumeAction } from "../../../core/model";
|
|
3
|
+
export interface BonusModelModeIsScheduleOptions {
|
|
4
|
+
metadata?: string | null;
|
|
5
|
+
periodEventId?: string | null;
|
|
6
|
+
rewards?: Reward[] | null;
|
|
7
|
+
missedReceiveReliefConsumeActions?: ConsumeAction[] | null;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BonusModelModeIsScheduleOptions.js","sourceRoot":"","sources":["BonusModelModeIsScheduleOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { AcquireAction } from "../../../core/model";
|
|
17
|
+
import Reward from "../Reward";
|
|
18
|
+
import { ConsumeAction } from "../../../core/model";
|
|
19
|
+
import { BonusModelMode } from "../enum/BonusModelMode";
|
|
20
|
+
import { BonusModelRepeat } from "../enum/BonusModelRepeat";
|
|
21
|
+
import { BonusModelMissedReceiveRelief } from "../enum/BonusModelMissedReceiveRelief";
|
|
22
|
+
|
|
23
|
+
export interface BonusModelModeIsScheduleOptions {
|
|
24
|
+
metadata?: string|null;
|
|
25
|
+
periodEventId?: string|null;
|
|
26
|
+
rewards?: Reward[]|null;
|
|
27
|
+
missedReceiveReliefConsumeActions?: ConsumeAction[]|null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Reward from "../Reward";
|
|
2
|
+
import { ConsumeAction } from "../../../core/model";
|
|
3
|
+
export interface BonusModelModeIsStreamingOptions {
|
|
4
|
+
metadata?: string | null;
|
|
5
|
+
periodEventId?: string | null;
|
|
6
|
+
rewards?: Reward[] | null;
|
|
7
|
+
missedReceiveReliefConsumeActions?: ConsumeAction[] | null;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BonusModelModeIsStreamingOptions.js","sourceRoot":"","sources":["BonusModelModeIsStreamingOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { AcquireAction } from "../../../core/model";
|
|
17
|
+
import Reward from "../Reward";
|
|
18
|
+
import { ConsumeAction } from "../../../core/model";
|
|
19
|
+
import { BonusModelMode } from "../enum/BonusModelMode";
|
|
20
|
+
import { BonusModelRepeat } from "../enum/BonusModelRepeat";
|
|
21
|
+
import { BonusModelMissedReceiveRelief } from "../enum/BonusModelMissedReceiveRelief";
|
|
22
|
+
|
|
23
|
+
export interface BonusModelModeIsStreamingOptions {
|
|
24
|
+
metadata?: string|null;
|
|
25
|
+
periodEventId?: string|null;
|
|
26
|
+
rewards?: Reward[]|null;
|
|
27
|
+
missedReceiveReliefConsumeActions?: ConsumeAction[]|null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Reward from "../Reward";
|
|
2
|
+
import { ConsumeAction } from "../../../core/model";
|
|
3
|
+
import { BonusModelRepeat } from "../enum/BonusModelRepeat";
|
|
4
|
+
export interface BonusModelOptions {
|
|
5
|
+
metadata?: string | null;
|
|
6
|
+
periodEventId?: string | null;
|
|
7
|
+
resetHour?: number | null;
|
|
8
|
+
repeat?: BonusModelRepeat | null;
|
|
9
|
+
rewards?: Reward[] | null;
|
|
10
|
+
missedReceiveReliefConsumeActions?: ConsumeAction[] | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BonusModelOptions.js","sourceRoot":"","sources":["BonusModelOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { AcquireAction } from "../../../core/model";
|
|
17
|
+
import Reward from "../Reward";
|
|
18
|
+
import { ConsumeAction } from "../../../core/model";
|
|
19
|
+
import { BonusModelMode } from "../enum/BonusModelMode";
|
|
20
|
+
import { BonusModelRepeat } from "../enum/BonusModelRepeat";
|
|
21
|
+
import { BonusModelMissedReceiveRelief } from "../enum/BonusModelMissedReceiveRelief";
|
|
22
|
+
|
|
23
|
+
export interface BonusModelOptions {
|
|
24
|
+
metadata?: string|null;
|
|
25
|
+
periodEventId?: string|null;
|
|
26
|
+
resetHour?: number|null;
|
|
27
|
+
repeat?: BonusModelRepeat|null;
|
|
28
|
+
rewards?: Reward[]|null;
|
|
29
|
+
missedReceiveReliefConsumeActions?: ConsumeAction[]|null;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import ScriptSetting from "../../../core/model/ScriptSetting";
|
|
2
|
+
import LogSetting from "../../../core/model/LogSetting";
|
|
3
|
+
export interface NamespaceOptions {
|
|
4
|
+
description?: string | null;
|
|
5
|
+
receiveScript?: ScriptSetting | null;
|
|
6
|
+
logSetting?: LogSetting | null;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamespaceOptions.js","sourceRoot":"","sources":["NamespaceOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 TransactionSetting from "../../../core/model/TransactionSetting";
|
|
17
|
+
import ScriptSetting from "../../../core/model/ScriptSetting";
|
|
18
|
+
import LogSetting from "../../../core/model/LogSetting";
|
|
19
|
+
|
|
20
|
+
export interface NamespaceOptions {
|
|
21
|
+
description?: string|null;
|
|
22
|
+
receiveScript?: ScriptSetting|null;
|
|
23
|
+
logSetting?: LogSetting|null;
|
|
24
|
+
}
|
|
25
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RewardOptions.js","sourceRoot":"","sources":["RewardOptions.ts"],"names":[],"mappings":""}
|
|
@@ -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 { AcquireAction } from "../../../core/model";
|
|
17
|
+
|
|
18
|
+
export interface RewardOptions {
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
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 func_1 = require("../../core/func");
|
|
19
|
+
class BonusModelRef {
|
|
20
|
+
constructor(namespaceName, bonusModelName) {
|
|
21
|
+
this.namespaceName = namespaceName;
|
|
22
|
+
this.bonusModelName = bonusModelName;
|
|
23
|
+
}
|
|
24
|
+
grn() {
|
|
25
|
+
return new func_1.Join(":", [
|
|
26
|
+
"grn",
|
|
27
|
+
"gs2",
|
|
28
|
+
func_1.GetAttr.region().str(),
|
|
29
|
+
func_1.GetAttr.ownerId().str(),
|
|
30
|
+
"loginReward",
|
|
31
|
+
this.namespaceName,
|
|
32
|
+
"bonusModel",
|
|
33
|
+
this.bonusModelName,
|
|
34
|
+
]).str();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = BonusModelRef;
|
|
38
|
+
//# sourceMappingURL=BonusModelRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BonusModelRef.js","sourceRoot":"","sources":["BonusModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,aAAa;IAI9B,YACI,aAAqB,EACrB,cAAsB;QAEtB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACzC,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,aAAa;YACb,IAAI,CAAC,aAAa;YAClB,YAAY;YACZ,IAAI,CAAC,cAAc;SACtB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjCD,gCAiCC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
|
|
19
|
+
export default class BonusModelRef {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly bonusModelName: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
namespaceName: string,
|
|
25
|
+
bonusModelName: string,
|
|
26
|
+
) {
|
|
27
|
+
this.namespaceName = namespaceName;
|
|
28
|
+
this.bonusModelName = bonusModelName;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public grn(
|
|
32
|
+
): string {
|
|
33
|
+
return new Join(
|
|
34
|
+
":",
|
|
35
|
+
[
|
|
36
|
+
"grn",
|
|
37
|
+
"gs2",
|
|
38
|
+
GetAttr.region(
|
|
39
|
+
).str(
|
|
40
|
+
),
|
|
41
|
+
GetAttr.ownerId(
|
|
42
|
+
).str(
|
|
43
|
+
),
|
|
44
|
+
"loginReward",
|
|
45
|
+
this.namespaceName,
|
|
46
|
+
"bonusModel",
|
|
47
|
+
this.bonusModelName,
|
|
48
|
+
],
|
|
49
|
+
).str(
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import BonusModelRef from "./BonusModelRef";
|
|
2
|
+
import DeleteReceiveStatusByUserId from "../stampSheet/DeleteReceiveStatusByUserId";
|
|
3
|
+
import MarkReceivedByUserId from "../stampSheet/MarkReceivedByUserId";
|
|
4
|
+
export default class NamespaceRef {
|
|
5
|
+
private readonly namespaceName;
|
|
6
|
+
constructor(namespaceName: string);
|
|
7
|
+
bonusModel(bonusModelName: string): BonusModelRef;
|
|
8
|
+
deleteReceiveStatus(bonusModelName: string, userId?: string | null): DeleteReceiveStatusByUserId;
|
|
9
|
+
markReceived(bonusModelName: string, stepNumber: number, userId?: string | null): MarkReceivedByUserId;
|
|
10
|
+
grn(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 BonusModelRef_1 = tslib_1.__importDefault(require("./BonusModelRef"));
|
|
21
|
+
const DeleteReceiveStatusByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DeleteReceiveStatusByUserId"));
|
|
22
|
+
const MarkReceivedByUserId_1 = tslib_1.__importDefault(require("../stampSheet/MarkReceivedByUserId"));
|
|
23
|
+
class NamespaceRef {
|
|
24
|
+
constructor(namespaceName) {
|
|
25
|
+
this.namespaceName = namespaceName;
|
|
26
|
+
}
|
|
27
|
+
bonusModel(bonusModelName) {
|
|
28
|
+
return new BonusModelRef_1.default(this.namespaceName, bonusModelName);
|
|
29
|
+
}
|
|
30
|
+
deleteReceiveStatus(bonusModelName, userId = "#{userId}") {
|
|
31
|
+
return new DeleteReceiveStatusByUserId_1.default(this.namespaceName, bonusModelName, userId);
|
|
32
|
+
}
|
|
33
|
+
markReceived(bonusModelName, stepNumber, userId = "#{userId}") {
|
|
34
|
+
return new MarkReceivedByUserId_1.default(this.namespaceName, bonusModelName, stepNumber, userId);
|
|
35
|
+
}
|
|
36
|
+
grn() {
|
|
37
|
+
return new func_1.Join(":", [
|
|
38
|
+
"grn",
|
|
39
|
+
"gs2",
|
|
40
|
+
func_1.GetAttr.region().str(),
|
|
41
|
+
func_1.GetAttr.ownerId().str(),
|
|
42
|
+
"loginReward",
|
|
43
|
+
this.namespaceName,
|
|
44
|
+
]).str();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.default = NamespaceRef;
|
|
48
|
+
//# sourceMappingURL=NamespaceRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4EAA4C;AAC5C,oHAAoF;AACpF,sGAAsE;AAEtE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,UAAU,CACb,cAAsB;QAEtB,OAAO,IAAI,uBAAa,CACpB,IAAI,CAAC,aAAa,EAClB,cAAc,CACjB,CAAC;IACN,CAAC;IAEM,mBAAmB,CACtB,cAAsB,EACtB,SAAsB,WAAW;QAEjC,OAAO,IAAI,qCAA2B,CAClC,IAAI,CAAC,aAAa,EAClB,cAAc,EACd,MAAM,CACT,CAAC;IACN,CAAC;IAEM,YAAY,CACf,cAAsB,EACtB,UAAkB,EAClB,SAAsB,WAAW;QAEjC,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,cAAc,EACd,UAAU,EACV,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,aAAa;YACb,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA7DD,+BA6DC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 BonusModelRef from "./BonusModelRef";
|
|
19
|
+
import DeleteReceiveStatusByUserId from "../stampSheet/DeleteReceiveStatusByUserId";
|
|
20
|
+
import MarkReceivedByUserId from "../stampSheet/MarkReceivedByUserId";
|
|
21
|
+
|
|
22
|
+
export default class NamespaceRef {
|
|
23
|
+
private readonly namespaceName: string;
|
|
24
|
+
|
|
25
|
+
public constructor(
|
|
26
|
+
namespaceName: string,
|
|
27
|
+
) {
|
|
28
|
+
this.namespaceName = namespaceName;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public bonusModel(
|
|
32
|
+
bonusModelName: string,
|
|
33
|
+
): BonusModelRef {
|
|
34
|
+
return new BonusModelRef(
|
|
35
|
+
this.namespaceName,
|
|
36
|
+
bonusModelName,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public deleteReceiveStatus(
|
|
41
|
+
bonusModelName: string,
|
|
42
|
+
userId: string|null = "#{userId}",
|
|
43
|
+
): DeleteReceiveStatusByUserId {
|
|
44
|
+
return new DeleteReceiveStatusByUserId(
|
|
45
|
+
this.namespaceName,
|
|
46
|
+
bonusModelName,
|
|
47
|
+
userId,
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public markReceived(
|
|
52
|
+
bonusModelName: string,
|
|
53
|
+
stepNumber: number,
|
|
54
|
+
userId: string|null = "#{userId}",
|
|
55
|
+
): MarkReceivedByUserId {
|
|
56
|
+
return new MarkReceivedByUserId(
|
|
57
|
+
this.namespaceName,
|
|
58
|
+
bonusModelName,
|
|
59
|
+
stepNumber,
|
|
60
|
+
userId,
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
public grn(
|
|
65
|
+
): string {
|
|
66
|
+
return new Join(
|
|
67
|
+
":",
|
|
68
|
+
[
|
|
69
|
+
"grn",
|
|
70
|
+
"gs2",
|
|
71
|
+
GetAttr.region(
|
|
72
|
+
).str(
|
|
73
|
+
),
|
|
74
|
+
GetAttr.ownerId(
|
|
75
|
+
).str(
|
|
76
|
+
),
|
|
77
|
+
"loginReward",
|
|
78
|
+
this.namespaceName,
|
|
79
|
+
],
|
|
80
|
+
).str(
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BonusModelRef = 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
|
+
const BonusModelRef_1 = tslib_1.__importDefault(require("./BonusModelRef"));
|
|
23
|
+
exports.BonusModelRef = BonusModelRef_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,0EAA0C;AAItC,uBAJG,sBAAY,CAIH;AAHhB,4EAA4C;AAIxC,wBAJG,uBAAa,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 NamespaceRef from "./NamespaceRef";
|
|
17
|
+
import BonusModelRef from "./BonusModelRef";
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
NamespaceRef,
|
|
21
|
+
BonusModelRef,
|
|
22
|
+
}
|
|
@@ -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 DeleteReceiveStatusByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, bonusModelName, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["bonusModelName"] = bonusModelName;
|
|
24
|
+
properties["userId"] = userId;
|
|
25
|
+
super("Gs2LoginReward:DeleteReceiveStatusByUserId", properties);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.default = DeleteReceiveStatusByUserId;
|
|
29
|
+
//# sourceMappingURL=DeleteReceiveStatusByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteReceiveStatusByUserId.js","sourceRoot":"","sources":["DeleteReceiveStatusByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,2BAA4B,SAAQ,qBAAa;IAElE,YACI,aAAqB,EACrB,cAAsB,EACtB,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,gBAAgB,CAAC,GAAG,cAAc,CAAA;QAC7C,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,4CAA4C,EAC5C,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAlBD,8CAkBC"}
|
|
@@ -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 DeleteReceiveStatusByUserId extends AcquireAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
bonusModelName: string,
|
|
24
|
+
userId: string|null = "#{userId}",
|
|
25
|
+
) {
|
|
26
|
+
let properties: {[name: string]: any} = {};
|
|
27
|
+
|
|
28
|
+
properties["namespaceName"] = namespaceName
|
|
29
|
+
properties["bonusModelName"] = bonusModelName
|
|
30
|
+
properties["userId"] = userId
|
|
31
|
+
|
|
32
|
+
super(
|
|
33
|
+
"Gs2LoginReward:DeleteReceiveStatusByUserId",
|
|
34
|
+
properties,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
}
|