gs2-cdk 1.0.31 → 1.0.33
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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as model from "./model";
|
|
2
|
+
import * as ref from "./ref";
|
|
3
|
+
import * as stampSheet from "./stampSheet";
|
|
4
|
+
import { NamespaceRef } from "./ref";
|
|
5
|
+
declare function namespace(namespaceName: string): NamespaceRef;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
model: typeof model;
|
|
8
|
+
ref: typeof ref;
|
|
9
|
+
stampSheet: typeof stampSheet;
|
|
10
|
+
namespace: typeof namespace;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 model = tslib_1.__importStar(require("./model"));
|
|
20
|
+
const ref = tslib_1.__importStar(require("./ref"));
|
|
21
|
+
const stampSheet = tslib_1.__importStar(require("./stampSheet"));
|
|
22
|
+
const ref_1 = require("./ref");
|
|
23
|
+
function namespace(namespaceName) {
|
|
24
|
+
return new ref_1.NamespaceRef(namespaceName);
|
|
25
|
+
}
|
|
26
|
+
exports.default = {
|
|
27
|
+
model,
|
|
28
|
+
ref,
|
|
29
|
+
stampSheet,
|
|
30
|
+
namespace,
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uDAAiC;AACjC,mDAA6B;AAC7B,iEAA2C;AAC3C,+BAAqC;AAGrC,SAAS,SAAS,CACd,aAAqB;IAErB,OAAO,IAAI,kBAAY,CACnB,aAAa,CAChB,CAAC;AACN,CAAC;AAED,kBAAe;IACX,KAAK;IACL,GAAG;IACH,UAAU;IACV,SAAS;CACZ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 * as model from "./model";
|
|
18
|
+
import * as ref from "./ref";
|
|
19
|
+
import * as stampSheet from "./stampSheet";
|
|
20
|
+
import { NamespaceRef } from "./ref";
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
function namespace(
|
|
24
|
+
namespaceName: string,
|
|
25
|
+
): NamespaceRef {
|
|
26
|
+
return new NamespaceRef(
|
|
27
|
+
namespaceName,
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
model,
|
|
33
|
+
ref,
|
|
34
|
+
stampSheet,
|
|
35
|
+
namespace,
|
|
36
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class AdMob {
|
|
4
|
+
constructor(allowAdUnitIds, options = null) {
|
|
5
|
+
this.allowAdUnitIds = allowAdUnitIds;
|
|
6
|
+
}
|
|
7
|
+
properties() {
|
|
8
|
+
let properties = {};
|
|
9
|
+
if (this.allowAdUnitIds != null) {
|
|
10
|
+
properties["allowAdUnitIds"] = this.allowAdUnitIds;
|
|
11
|
+
}
|
|
12
|
+
return properties;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.default = AdMob;
|
|
16
|
+
//# sourceMappingURL=AdMob.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdMob.js","sourceRoot":"","sources":["AdMob.ts"],"names":[],"mappings":";;AAiBA,MAAqB,KAAK;IAGtB,YACI,cAAwB,EACxB,UAA6B,IAAI;QAEjC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACzC,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AApBD,wBAoBC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { AdMobOptions } from "./options/AdMobOptions";
|
|
17
|
+
|
|
18
|
+
export default class AdMob {
|
|
19
|
+
private readonly allowAdUnitIds: string[];
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
allowAdUnitIds: string[],
|
|
23
|
+
options: AdMobOptions|null = null,
|
|
24
|
+
) {
|
|
25
|
+
this.allowAdUnitIds = allowAdUnitIds;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public properties(
|
|
29
|
+
): {[name: string]: any} {
|
|
30
|
+
let properties: {[name: string]: any} = {};
|
|
31
|
+
|
|
32
|
+
if (this.allowAdUnitIds != null) {
|
|
33
|
+
properties["allowAdUnitIds"] = this.allowAdUnitIds;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return properties;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CdkResource, Stack } from "../../core/model";
|
|
2
|
+
import { GetAttr } from "../../core/func";
|
|
3
|
+
import NotificationSetting from "../../core/model/NotificationSetting";
|
|
4
|
+
import NamespaceRef from "../ref/NamespaceRef";
|
|
5
|
+
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
6
|
+
export default class Namespace extends CdkResource {
|
|
7
|
+
private readonly stack;
|
|
8
|
+
private readonly name;
|
|
9
|
+
private readonly changePointNotification;
|
|
10
|
+
private readonly admob;
|
|
11
|
+
private readonly unityAd;
|
|
12
|
+
private readonly description;
|
|
13
|
+
private readonly logSetting;
|
|
14
|
+
constructor(stack: Stack, name: string, changePointNotification: NotificationSetting, options?: NamespaceOptions | null);
|
|
15
|
+
alternateKeys(): string;
|
|
16
|
+
resourceType(): string;
|
|
17
|
+
properties(): {
|
|
18
|
+
[name: string]: any;
|
|
19
|
+
};
|
|
20
|
+
ref(): NamespaceRef;
|
|
21
|
+
getAttrNamespaceId(): GetAttr;
|
|
22
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 model_1 = require("../../core/model");
|
|
20
|
+
const func_1 = require("../../core/func");
|
|
21
|
+
const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
|
|
22
|
+
class Namespace extends model_1.CdkResource {
|
|
23
|
+
constructor(stack, name, changePointNotification, options = null) {
|
|
24
|
+
var _a, _b, _c, _d;
|
|
25
|
+
super("AdReward_Namespace_" + name);
|
|
26
|
+
this.admob = null;
|
|
27
|
+
this.unityAd = null;
|
|
28
|
+
this.description = null;
|
|
29
|
+
this.logSetting = null;
|
|
30
|
+
this.stack = stack;
|
|
31
|
+
this.name = name;
|
|
32
|
+
this.changePointNotification = changePointNotification;
|
|
33
|
+
this.admob = (_a = options === null || options === void 0 ? void 0 : options.admob) !== null && _a !== void 0 ? _a : null;
|
|
34
|
+
this.unityAd = (_b = options === null || options === void 0 ? void 0 : options.unityAd) !== null && _b !== void 0 ? _b : null;
|
|
35
|
+
this.description = (_c = options === null || options === void 0 ? void 0 : options.description) !== null && _c !== void 0 ? _c : null;
|
|
36
|
+
this.logSetting = (_d = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _d !== void 0 ? _d : null;
|
|
37
|
+
stack.addResource(this);
|
|
38
|
+
}
|
|
39
|
+
alternateKeys() {
|
|
40
|
+
return "name";
|
|
41
|
+
}
|
|
42
|
+
resourceType() {
|
|
43
|
+
return "GS2::AdReward::Namespace";
|
|
44
|
+
}
|
|
45
|
+
properties() {
|
|
46
|
+
var _a, _b, _c, _d;
|
|
47
|
+
let properties = {};
|
|
48
|
+
if (this.name != null) {
|
|
49
|
+
properties["Name"] = this.name;
|
|
50
|
+
}
|
|
51
|
+
if (this.admob != null) {
|
|
52
|
+
properties["Admob"] = (_a = this.admob) === null || _a === void 0 ? void 0 : _a.properties();
|
|
53
|
+
}
|
|
54
|
+
if (this.unityAd != null) {
|
|
55
|
+
properties["UnityAd"] = (_b = this.unityAd) === null || _b === void 0 ? void 0 : _b.properties();
|
|
56
|
+
}
|
|
57
|
+
if (this.description != null) {
|
|
58
|
+
properties["Description"] = this.description;
|
|
59
|
+
}
|
|
60
|
+
if (this.changePointNotification != null) {
|
|
61
|
+
properties["ChangePointNotification"] = (_c = this.changePointNotification) === null || _c === void 0 ? void 0 : _c.properties();
|
|
62
|
+
}
|
|
63
|
+
if (this.logSetting != null) {
|
|
64
|
+
properties["LogSetting"] = (_d = this.logSetting) === null || _d === void 0 ? void 0 : _d.properties();
|
|
65
|
+
}
|
|
66
|
+
return properties;
|
|
67
|
+
}
|
|
68
|
+
ref() {
|
|
69
|
+
return new NamespaceRef_1.default(this.name);
|
|
70
|
+
}
|
|
71
|
+
getAttrNamespaceId() {
|
|
72
|
+
return new func_1.GetAttr(this, "Item.NamespaceId", null);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.default = Namespace;
|
|
76
|
+
//# sourceMappingURL=Namespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAMxC,+EAA+C;AAI/C,MAAqB,SAAU,SAAQ,mBAAW;IAS9C,YACI,KAAY,EACZ,IAAY,EACZ,uBAA4C,EAC5C,UAAiC,IAAI;;QAErC,KAAK,CACD,qBAAqB,GAAG,IAAI,CAC/B,CAAC;QAbW,UAAK,GAAe,IAAI,CAAC;QACzB,YAAO,GAAiB,IAAI,CAAC;QAC7B,gBAAW,GAAgB,IAAI,CAAC;QAChC,eAAU,GAAoB,IAAI,CAAC;QAYhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;QACvD,IAAI,CAAC,KAAK,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,IAAI,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,IAAI,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAGM,aAAa;QAEhB,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,YAAY;QAEf,OAAO,0BAA0B,CAAC;IACtC,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,MAAA,IAAI,CAAC,KAAK,0CAAE,UAAU,EAC3C,CAAC;SACL;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,EAC/C,CAAC;SACL;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,uBAAuB,IAAI,IAAI,EAAE;YACtC,UAAU,CAAC,yBAAyB,CAAC,GAAG,MAAA,IAAI,CAAC,uBAAuB,0CAAE,UAAU,EAC/E,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;CACJ;AAvFD,4BAuFC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
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 {CdkResource, Stack} from "../../core/model";
|
|
18
|
+
import {GetAttr} from "../../core/func";
|
|
19
|
+
import AdMob from "./AdMob";
|
|
20
|
+
import UnityAd from "./UnityAd";
|
|
21
|
+
import NotificationSetting from "../../core/model/NotificationSetting";
|
|
22
|
+
import LogSetting from "../../core/model/LogSetting";
|
|
23
|
+
|
|
24
|
+
import NamespaceRef from "../ref/NamespaceRef";
|
|
25
|
+
|
|
26
|
+
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
27
|
+
|
|
28
|
+
export default class Namespace extends CdkResource {
|
|
29
|
+
private readonly stack: Stack;
|
|
30
|
+
private readonly name: string;
|
|
31
|
+
private readonly changePointNotification: NotificationSetting;
|
|
32
|
+
private readonly admob: AdMob|null = null;
|
|
33
|
+
private readonly unityAd: UnityAd|null = null;
|
|
34
|
+
private readonly description: string|null = null;
|
|
35
|
+
private readonly logSetting: LogSetting|null = null;
|
|
36
|
+
|
|
37
|
+
public constructor(
|
|
38
|
+
stack: Stack,
|
|
39
|
+
name: string,
|
|
40
|
+
changePointNotification: NotificationSetting,
|
|
41
|
+
options: NamespaceOptions|null = null,
|
|
42
|
+
) {
|
|
43
|
+
super(
|
|
44
|
+
"AdReward_Namespace_" + name
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
this.stack = stack;
|
|
48
|
+
this.name = name;
|
|
49
|
+
this.changePointNotification = changePointNotification;
|
|
50
|
+
this.admob = options?.admob ?? null;
|
|
51
|
+
this.unityAd = options?.unityAd ?? null;
|
|
52
|
+
this.description = options?.description ?? null;
|
|
53
|
+
this.logSetting = options?.logSetting ?? null;
|
|
54
|
+
stack.addResource(
|
|
55
|
+
this,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
public alternateKeys(
|
|
61
|
+
) {
|
|
62
|
+
return "name";
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public resourceType(
|
|
66
|
+
): string {
|
|
67
|
+
return "GS2::AdReward::Namespace";
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
public properties(
|
|
71
|
+
): {[name: string]: any} {
|
|
72
|
+
let properties: {[name: string]: any} = {};
|
|
73
|
+
|
|
74
|
+
if (this.name != null) {
|
|
75
|
+
properties["Name"] = this.name;
|
|
76
|
+
}
|
|
77
|
+
if (this.admob != null) {
|
|
78
|
+
properties["Admob"] = this.admob?.properties(
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
if (this.unityAd != null) {
|
|
82
|
+
properties["UnityAd"] = this.unityAd?.properties(
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
if (this.description != null) {
|
|
86
|
+
properties["Description"] = this.description;
|
|
87
|
+
}
|
|
88
|
+
if (this.changePointNotification != null) {
|
|
89
|
+
properties["ChangePointNotification"] = this.changePointNotification?.properties(
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
if (this.logSetting != null) {
|
|
93
|
+
properties["LogSetting"] = this.logSetting?.properties(
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return properties;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
public ref(
|
|
101
|
+
): NamespaceRef {
|
|
102
|
+
return new NamespaceRef(
|
|
103
|
+
this.name!,
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
public getAttrNamespaceId(
|
|
108
|
+
): GetAttr {
|
|
109
|
+
return new GetAttr(
|
|
110
|
+
this,
|
|
111
|
+
"Item.NamespaceId",
|
|
112
|
+
null,
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class UnityAd {
|
|
4
|
+
constructor(options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.keys = null;
|
|
7
|
+
this.keys = (_a = options === null || options === void 0 ? void 0 : options.keys) !== null && _a !== void 0 ? _a : null;
|
|
8
|
+
}
|
|
9
|
+
properties() {
|
|
10
|
+
let properties = {};
|
|
11
|
+
if (this.keys != null) {
|
|
12
|
+
properties["keys"] = this.keys;
|
|
13
|
+
}
|
|
14
|
+
return properties;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = UnityAd;
|
|
18
|
+
//# sourceMappingURL=UnityAd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnityAd.js","sourceRoot":"","sources":["UnityAd.ts"],"names":[],"mappings":";;AAiBA,MAAqB,OAAO;IAGxB,YACI,UAA+B,IAAI;;QAHtB,SAAI,GAAkB,IAAI,CAAC;QAKxC,IAAI,CAAC,IAAI,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,IAAI,CAAC;IACtC,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAnBD,0BAmBC"}
|
|
@@ -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
|
+
import { UnityAdOptions } from "./options/UnityAdOptions";
|
|
17
|
+
|
|
18
|
+
export default class UnityAd {
|
|
19
|
+
private readonly keys: string[]|null = null;
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
options: UnityAdOptions|null = null,
|
|
23
|
+
) {
|
|
24
|
+
this.keys = options?.keys ?? null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public properties(
|
|
28
|
+
): {[name: string]: any} {
|
|
29
|
+
let properties: {[name: string]: any} = {};
|
|
30
|
+
|
|
31
|
+
if (this.keys != null) {
|
|
32
|
+
properties["keys"] = this.keys;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return properties;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import Namespace from "./Namespace";
|
|
2
|
+
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
3
|
+
import AdMob from "./AdMob";
|
|
4
|
+
import { AdMobOptions } from "./options/AdMobOptions";
|
|
5
|
+
import UnityAd from "./UnityAd";
|
|
6
|
+
import { UnityAdOptions } from "./options/UnityAdOptions";
|
|
7
|
+
export { Namespace, NamespaceOptions, AdMob, AdMobOptions, UnityAd, UnityAdOptions, };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnityAd = exports.AdMob = exports.Namespace = 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 Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
|
|
21
|
+
exports.Namespace = Namespace_1.default;
|
|
22
|
+
const AdMob_1 = tslib_1.__importDefault(require("./AdMob"));
|
|
23
|
+
exports.AdMob = AdMob_1.default;
|
|
24
|
+
const UnityAd_1 = tslib_1.__importDefault(require("./UnityAd"));
|
|
25
|
+
exports.UnityAd = UnityAd_1.default;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAQhC,oBARG,mBAAS,CAQH;AANb,4DAA4B;AAQxB,gBARG,eAAK,CAQH;AANT,gEAAgC;AAQ5B,kBARG,iBAAO,CAQH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 Namespace from "./Namespace";
|
|
17
|
+
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
18
|
+
import AdMob from "./AdMob";
|
|
19
|
+
import { AdMobOptions } from "./options/AdMobOptions";
|
|
20
|
+
import UnityAd from "./UnityAd";
|
|
21
|
+
import { UnityAdOptions } from "./options/UnityAdOptions";
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
Namespace,
|
|
25
|
+
NamespaceOptions,
|
|
26
|
+
AdMob,
|
|
27
|
+
AdMobOptions,
|
|
28
|
+
UnityAd,
|
|
29
|
+
UnityAdOptions,
|
|
30
|
+
}
|
|
@@ -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=AdMobOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdMobOptions.js","sourceRoot":"","sources":["AdMobOptions.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 AdMobOptions {
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import AdMob from "../AdMob";
|
|
2
|
+
import UnityAd from "../UnityAd";
|
|
3
|
+
import LogSetting from "../../../core/model/LogSetting";
|
|
4
|
+
export interface NamespaceOptions {
|
|
5
|
+
admob?: AdMob | null;
|
|
6
|
+
unityAd?: UnityAd | null;
|
|
7
|
+
description?: string | null;
|
|
8
|
+
logSetting?: LogSetting | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamespaceOptions.js","sourceRoot":"","sources":["NamespaceOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 AdMob from "../AdMob";
|
|
17
|
+
import UnityAd from "../UnityAd";
|
|
18
|
+
import NotificationSetting from "../../../core/model/NotificationSetting";
|
|
19
|
+
import LogSetting from "../../../core/model/LogSetting";
|
|
20
|
+
|
|
21
|
+
export interface NamespaceOptions {
|
|
22
|
+
admob?: AdMob|null;
|
|
23
|
+
unityAd?: UnityAd|null;
|
|
24
|
+
description?: string|null;
|
|
25
|
+
logSetting?: LogSetting|null;
|
|
26
|
+
}
|
|
27
|
+
|
|
@@ -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=UnityAdOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnityAdOptions.js","sourceRoot":"","sources":["UnityAdOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -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
|
+
}
|