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,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"}
|