gs2-cdk 1.0.0 → 1.0.1
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/package.json +1 -1
- package/serialKey/index.d.ts +11 -0
- package/serialKey/index.js +31 -0
- package/serialKey/index.js.map +1 -0
- package/serialKey/index.ts +34 -0
- package/serialKey/model/CampaignModel.d.ts +14 -0
- package/serialKey/model/CampaignModel.js +46 -0
- package/serialKey/model/CampaignModel.js.map +1 -0
- package/serialKey/model/CampaignModel.ts +61 -0
- package/serialKey/model/CampaignModelMaster.d.ts +23 -0
- package/serialKey/model/CampaignModelMaster.js +66 -0
- package/serialKey/model/CampaignModelMaster.js.map +1 -0
- package/serialKey/model/CampaignModelMaster.ts +96 -0
- package/serialKey/model/CurrentMasterData.d.ts +12 -0
- package/serialKey/model/CurrentMasterData.js +41 -0
- package/serialKey/model/CurrentMasterData.js.map +1 -0
- package/serialKey/model/CurrentMasterData.ts +52 -0
- package/serialKey/model/IssueJob.d.ts +5 -0
- package/serialKey/model/IssueJob.js +23 -0
- package/serialKey/model/IssueJob.js.map +1 -0
- package/serialKey/model/IssueJob.ts +25 -0
- package/serialKey/model/Namespace.d.ts +24 -0
- package/serialKey/model/Namespace.js +63 -0
- package/serialKey/model/Namespace.js.map +1 -0
- package/serialKey/model/Namespace.ts +98 -0
- package/serialKey/model/SerialKey.d.ts +6 -0
- package/serialKey/model/SerialKey.js +24 -0
- package/serialKey/model/SerialKey.js.map +1 -0
- package/serialKey/model/SerialKey.ts +26 -0
- package/serialKey/model/index.d.ts +5 -0
- package/serialKey/model/index.js +28 -0
- package/serialKey/model/index.js.map +1 -0
- package/serialKey/model/index.ts +28 -0
- package/serialKey/ref/CampaignModelMasterRef.d.ts +6 -0
- package/serialKey/ref/CampaignModelMasterRef.js +39 -0
- package/serialKey/ref/CampaignModelMasterRef.js.map +1 -0
- package/serialKey/ref/CampaignModelMasterRef.ts +48 -0
- package/serialKey/ref/CampaignModelRef.d.ts +8 -0
- package/serialKey/ref/CampaignModelRef.js +44 -0
- package/serialKey/ref/CampaignModelRef.js.map +1 -0
- package/serialKey/ref/CampaignModelRef.ts +59 -0
- package/serialKey/ref/CurrentCampaignMasterRef.d.ts +5 -0
- package/serialKey/ref/CurrentCampaignMasterRef.js +35 -0
- package/serialKey/ref/CurrentCampaignMasterRef.js.map +1 -0
- package/serialKey/ref/CurrentCampaignMasterRef.ts +42 -0
- package/serialKey/ref/IssueJobRef.d.ts +7 -0
- package/serialKey/ref/IssueJobRef.js +43 -0
- package/serialKey/ref/IssueJobRef.js.map +1 -0
- package/serialKey/ref/IssueJobRef.ts +54 -0
- package/serialKey/ref/NamespaceRef.d.ts +13 -0
- package/serialKey/ref/NamespaceRef.js +52 -0
- package/serialKey/ref/NamespaceRef.js.map +1 -0
- package/serialKey/ref/NamespaceRef.ts +80 -0
- package/serialKey/ref/SerialKeyRef.d.ts +8 -0
- package/serialKey/ref/SerialKeyRef.js +43 -0
- package/serialKey/ref/SerialKeyRef.js.map +1 -0
- package/serialKey/ref/SerialKeyRef.ts +59 -0
- package/serialKey/ref/index.d.ts +7 -0
- package/serialKey/ref/index.js +32 -0
- package/serialKey/ref/index.js.map +1 -0
- package/serialKey/ref/index.ts +30 -0
- package/serialKey/stampSheet/UseByUserId.d.ts +4 -0
- package/serialKey/stampSheet/UseByUserId.js +35 -0
- package/serialKey/stampSheet/UseByUserId.js.map +1 -0
- package/serialKey/stampSheet/UseByUserId.ts +41 -0
- package/serialKey/stampSheet/index.d.ts +2 -0
- package/serialKey/stampSheet/index.js +22 -0
- package/serialKey/stampSheet/index.js.map +1 -0
- package/serialKey/stampSheet/index.ts +20 -0
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as model from "./model";
|
|
2
|
+
import * as ref from "./ref";
|
|
3
|
+
import * as stampSheet from "./stampSheet";
|
|
4
|
+
declare function namespace(namespaceName: string): ref.NamespaceRef;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
model: typeof model;
|
|
7
|
+
ref: typeof ref;
|
|
8
|
+
stampSheet: typeof stampSheet;
|
|
9
|
+
namespace: typeof namespace;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
function namespace(namespaceName) {
|
|
23
|
+
return new ref.NamespaceRef(namespaceName);
|
|
24
|
+
}
|
|
25
|
+
exports.default = {
|
|
26
|
+
model,
|
|
27
|
+
ref,
|
|
28
|
+
stampSheet,
|
|
29
|
+
namespace,
|
|
30
|
+
};
|
|
31
|
+
//# 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;AAE3C,SAAS,SAAS,CACV,aAAqB;IAEzB,OAAO,IAAI,GAAG,CAAC,YAAY,CACvB,aAAa,CAChB,CAAA;AACL,CAAC;AAED,kBAAe;IACX,KAAK;IACL,GAAG;IACH,UAAU;IACV,SAAS;CACZ,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
|
|
21
|
+
function namespace(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
): ref.NamespaceRef {
|
|
24
|
+
return new ref.NamespaceRef(
|
|
25
|
+
namespaceName,
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
model,
|
|
31
|
+
ref,
|
|
32
|
+
stampSheet,
|
|
33
|
+
namespace,
|
|
34
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import CampaignModelRef from "../ref/CampaignModelRef";
|
|
2
|
+
export interface CampaignModelOptions {
|
|
3
|
+
metadata?: string | null | undefined;
|
|
4
|
+
}
|
|
5
|
+
export default class CampaignModel {
|
|
6
|
+
private readonly name;
|
|
7
|
+
private readonly metadata;
|
|
8
|
+
private readonly enableCampaignCode;
|
|
9
|
+
constructor(name: string, enableCampaignCode: boolean, options?: CampaignModelOptions);
|
|
10
|
+
properties(): {
|
|
11
|
+
[name: string]: any;
|
|
12
|
+
};
|
|
13
|
+
ref(namespaceName: string): CampaignModelRef;
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 CampaignModelRef_1 = tslib_1.__importDefault(require("../ref/CampaignModelRef"));
|
|
20
|
+
class CampaignModel {
|
|
21
|
+
constructor(name, enableCampaignCode, options) {
|
|
22
|
+
var _a;
|
|
23
|
+
this.metadata = null;
|
|
24
|
+
this.name = name;
|
|
25
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
26
|
+
this.enableCampaignCode = enableCampaignCode;
|
|
27
|
+
}
|
|
28
|
+
properties() {
|
|
29
|
+
let properties = {};
|
|
30
|
+
if (this.name != null) {
|
|
31
|
+
properties["Name"] = this.name;
|
|
32
|
+
}
|
|
33
|
+
if (this.metadata != null) {
|
|
34
|
+
properties["Metadata"] = this.metadata;
|
|
35
|
+
}
|
|
36
|
+
if (this.enableCampaignCode != null) {
|
|
37
|
+
properties["EnableCampaignCode"] = this.enableCampaignCode;
|
|
38
|
+
}
|
|
39
|
+
return properties;
|
|
40
|
+
}
|
|
41
|
+
ref(namespaceName) {
|
|
42
|
+
return new CampaignModelRef_1.default(namespaceName, this.name);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.default = CampaignModel;
|
|
46
|
+
//# sourceMappingURL=CampaignModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CampaignModel.js","sourceRoot":"","sources":["CampaignModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uFAAuD;AAOvD,MAAqB,aAAa;IAK9B,YACQ,IAAY,EACZ,kBAA2B,EAC3B,OAA8B;;QANrB,aAAQ,GAAgB,IAAI,CAAC;QAQ1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IACjD,CAAC;IAEM,UAAU;QACb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAC3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG,CACF,aAAqB;QAEzB,OAAO,IAAI,0BAAgB,CACvB,aAAa,EACb,IAAI,CAAC,IAAI,CACZ,CAAC;IACN,CAAC;CACJ;AArCD,gCAqCC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 CampaignModelRef from "../ref/CampaignModelRef";
|
|
18
|
+
|
|
19
|
+
export interface CampaignModelOptions {
|
|
20
|
+
metadata?: string|null|undefined;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export default class CampaignModel {
|
|
25
|
+
private readonly name: string;
|
|
26
|
+
private readonly metadata: string|null = null;
|
|
27
|
+
private readonly enableCampaignCode: boolean;
|
|
28
|
+
|
|
29
|
+
public constructor(
|
|
30
|
+
name: string,
|
|
31
|
+
enableCampaignCode: boolean,
|
|
32
|
+
options?: CampaignModelOptions,
|
|
33
|
+
) {
|
|
34
|
+
this.name = name;
|
|
35
|
+
this.metadata = options?.metadata ?? null;
|
|
36
|
+
this.enableCampaignCode = enableCampaignCode;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public properties(): {[name: string]: any} {
|
|
40
|
+
let properties: {[name: string]: any} = {};
|
|
41
|
+
if (this.name != null) {
|
|
42
|
+
properties["Name"] = this.name;
|
|
43
|
+
}
|
|
44
|
+
if (this.metadata != null) {
|
|
45
|
+
properties["Metadata"] = this.metadata;
|
|
46
|
+
}
|
|
47
|
+
if (this.enableCampaignCode != null) {
|
|
48
|
+
properties["EnableCampaignCode"] = this.enableCampaignCode;
|
|
49
|
+
}
|
|
50
|
+
return properties;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public ref(
|
|
54
|
+
namespaceName: string,
|
|
55
|
+
): CampaignModelRef {
|
|
56
|
+
return new CampaignModelRef(
|
|
57
|
+
namespaceName,
|
|
58
|
+
this.name,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import core from "../../core";
|
|
2
|
+
import { GetAttr } from "../../core/func";
|
|
3
|
+
import { Stack } from "../../core/model";
|
|
4
|
+
import CampaignModelMasterRef from "../ref/CampaignModelMasterRef";
|
|
5
|
+
export interface CampaignModelMasterOptions {
|
|
6
|
+
description?: string | null | undefined;
|
|
7
|
+
metadata?: string | null | undefined;
|
|
8
|
+
}
|
|
9
|
+
export default class CampaignModelMaster extends core.CdkResource {
|
|
10
|
+
private stack;
|
|
11
|
+
private readonly namespaceName;
|
|
12
|
+
private readonly name;
|
|
13
|
+
private readonly description;
|
|
14
|
+
private readonly metadata;
|
|
15
|
+
private readonly enableCampaignCode;
|
|
16
|
+
constructor(stack: Stack, namespaceName: string, name: string, enableCampaignCode: boolean, options?: CampaignModelMasterOptions);
|
|
17
|
+
resourceType(): string;
|
|
18
|
+
properties(): {
|
|
19
|
+
[name: string]: any;
|
|
20
|
+
};
|
|
21
|
+
ref(namespaceName: string): CampaignModelMasterRef;
|
|
22
|
+
getAttrCampaignId(): GetAttr;
|
|
23
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 core_1 = tslib_1.__importDefault(require("../../core"));
|
|
20
|
+
const func_1 = require("../../core/func");
|
|
21
|
+
const CampaignModelMasterRef_1 = tslib_1.__importDefault(require("../ref/CampaignModelMasterRef"));
|
|
22
|
+
class CampaignModelMaster extends core_1.default.CdkResource {
|
|
23
|
+
constructor(stack, namespaceName, name, enableCampaignCode, options) {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
super("SerialKey_CampaignModelMaster_" + name);
|
|
26
|
+
this.description = null;
|
|
27
|
+
this.metadata = null;
|
|
28
|
+
this.stack = stack;
|
|
29
|
+
this.namespaceName = namespaceName;
|
|
30
|
+
this.name = name;
|
|
31
|
+
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
32
|
+
this.metadata = (_b = options === null || options === void 0 ? void 0 : options.metadata) !== null && _b !== void 0 ? _b : null;
|
|
33
|
+
this.enableCampaignCode = enableCampaignCode;
|
|
34
|
+
stack.addResource(this);
|
|
35
|
+
}
|
|
36
|
+
resourceType() {
|
|
37
|
+
return "GS2::SerialKey::CampaignModelMaster";
|
|
38
|
+
}
|
|
39
|
+
properties() {
|
|
40
|
+
let properties = {};
|
|
41
|
+
if (this.namespaceName != null) {
|
|
42
|
+
properties["NamespaceName"] = this.namespaceName;
|
|
43
|
+
}
|
|
44
|
+
if (this.name != null) {
|
|
45
|
+
properties["Name"] = this.name;
|
|
46
|
+
}
|
|
47
|
+
if (this.description != null) {
|
|
48
|
+
properties["Description"] = this.description;
|
|
49
|
+
}
|
|
50
|
+
if (this.metadata != null) {
|
|
51
|
+
properties["Metadata"] = this.metadata;
|
|
52
|
+
}
|
|
53
|
+
if (this.enableCampaignCode != null) {
|
|
54
|
+
properties["EnableCampaignCode"] = this.enableCampaignCode;
|
|
55
|
+
}
|
|
56
|
+
return properties;
|
|
57
|
+
}
|
|
58
|
+
ref(namespaceName) {
|
|
59
|
+
return new CampaignModelMasterRef_1.default(namespaceName, this.name);
|
|
60
|
+
}
|
|
61
|
+
getAttrCampaignId() {
|
|
62
|
+
return new func_1.GetAttr(null, null, "Item.CampaignId");
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.default = CampaignModelMaster;
|
|
66
|
+
//# sourceMappingURL=CampaignModelMaster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CampaignModelMaster.js","sourceRoot":"","sources":["CampaignModelMaster.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,8DAA8B;AAC9B,0CAAwC;AAGxC,mGAAmE;AAOnE,MAAqB,mBAAoB,SAAQ,cAAI,CAAC,WAAW;IAS7D,YACQ,KAAY,EACZ,aAAqB,EACrB,IAAY,EACZ,kBAA2B,EAC3B,OAAoC;;QAExC,KAAK,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC;QAXrC,gBAAW,GAAgB,IAAI,CAAC;QAChC,aAAQ,GAAgB,IAAI,CAAC;QAYvC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAE7C,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAEM,YAAY;QACf,OAAO,qCAAqC,CAAC;IACjD,CAAC;IAEM,UAAU;QACb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAC3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG,CACF,aAAqB;QAEzB,OAAO,IAAI,gCAAsB,CAC7B,aAAa,EACb,IAAI,CAAC,IAAI,CACZ,CAAC;IACN,CAAC;IAEM,iBAAiB;QACpB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,IAAI,EACJ,iBAAiB,CACpB,CAAC;IACN,CAAC;CACJ;AApED,sCAoEC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
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 core from "../../core";
|
|
18
|
+
import {GetAttr} from "../../core/func";
|
|
19
|
+
import {Stack} from "../../core/model";
|
|
20
|
+
|
|
21
|
+
import CampaignModelMasterRef from "../ref/CampaignModelMasterRef";
|
|
22
|
+
|
|
23
|
+
export interface CampaignModelMasterOptions {
|
|
24
|
+
description?: string|null|undefined;
|
|
25
|
+
metadata?: string|null|undefined;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default class CampaignModelMaster extends core.CdkResource {
|
|
29
|
+
|
|
30
|
+
private stack: Stack;
|
|
31
|
+
private readonly namespaceName: string;
|
|
32
|
+
private readonly name: string;
|
|
33
|
+
private readonly description: string|null = null;
|
|
34
|
+
private readonly metadata: string|null = null;
|
|
35
|
+
private readonly enableCampaignCode: boolean;
|
|
36
|
+
|
|
37
|
+
public constructor(
|
|
38
|
+
stack: Stack,
|
|
39
|
+
namespaceName: string,
|
|
40
|
+
name: string,
|
|
41
|
+
enableCampaignCode: boolean,
|
|
42
|
+
options?: CampaignModelMasterOptions,
|
|
43
|
+
) {
|
|
44
|
+
super("SerialKey_CampaignModelMaster_" + name);
|
|
45
|
+
|
|
46
|
+
this.stack = stack;
|
|
47
|
+
this.namespaceName = namespaceName;
|
|
48
|
+
this.name = name;
|
|
49
|
+
this.description = options?.description ?? null;
|
|
50
|
+
this.metadata = options?.metadata ?? null;
|
|
51
|
+
this.enableCampaignCode = enableCampaignCode;
|
|
52
|
+
|
|
53
|
+
stack.addResource(this);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public resourceType(): string {
|
|
57
|
+
return "GS2::SerialKey::CampaignModelMaster";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
public properties(): {[name: string]: any} {
|
|
61
|
+
let properties: {[name: string]: any} = {};
|
|
62
|
+
if (this.namespaceName != null) {
|
|
63
|
+
properties["NamespaceName"] = this.namespaceName;
|
|
64
|
+
}
|
|
65
|
+
if (this.name != null) {
|
|
66
|
+
properties["Name"] = this.name;
|
|
67
|
+
}
|
|
68
|
+
if (this.description != null) {
|
|
69
|
+
properties["Description"] = this.description;
|
|
70
|
+
}
|
|
71
|
+
if (this.metadata != null) {
|
|
72
|
+
properties["Metadata"] = this.metadata;
|
|
73
|
+
}
|
|
74
|
+
if (this.enableCampaignCode != null) {
|
|
75
|
+
properties["EnableCampaignCode"] = this.enableCampaignCode;
|
|
76
|
+
}
|
|
77
|
+
return properties;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
public ref(
|
|
81
|
+
namespaceName: string,
|
|
82
|
+
): CampaignModelMasterRef {
|
|
83
|
+
return new CampaignModelMasterRef(
|
|
84
|
+
namespaceName,
|
|
85
|
+
this.name,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
public getAttrCampaignId(): GetAttr {
|
|
90
|
+
return new GetAttr(
|
|
91
|
+
null,
|
|
92
|
+
null,
|
|
93
|
+
"Item.CampaignId"
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CdkResource, Stack } from "../../core/model";
|
|
2
|
+
import CampaignModel from "./CampaignModel";
|
|
3
|
+
export default class CurrentMasterData extends CdkResource {
|
|
4
|
+
private version;
|
|
5
|
+
private namespaceName;
|
|
6
|
+
private readonly campaignModels;
|
|
7
|
+
constructor(stack: Stack, namespaceName: string, campaignModels: CampaignModel[]);
|
|
8
|
+
resourceType(): string;
|
|
9
|
+
properties(): {
|
|
10
|
+
[name: string]: any;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 CurrentMasterData extends model_1.CdkResource {
|
|
20
|
+
constructor(stack, namespaceName, campaignModels) {
|
|
21
|
+
super("SerialKey_CurrentCampaignMaster_" + namespaceName);
|
|
22
|
+
this.version = "2022-09-13";
|
|
23
|
+
this.namespaceName = namespaceName;
|
|
24
|
+
this.campaignModels = campaignModels;
|
|
25
|
+
stack.addResource(this);
|
|
26
|
+
}
|
|
27
|
+
resourceType() {
|
|
28
|
+
return "GS2::SerialKey::CurrentCampaignMaster";
|
|
29
|
+
}
|
|
30
|
+
properties() {
|
|
31
|
+
return {
|
|
32
|
+
"NamespaceName": this.namespaceName,
|
|
33
|
+
"Settings": {
|
|
34
|
+
"version": this.version,
|
|
35
|
+
"campaignModels": this.campaignModels.map(v => v.properties()),
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.default = CurrentMasterData;
|
|
41
|
+
//# sourceMappingURL=CurrentMasterData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentMasterData.js","sourceRoot":"","sources":["CurrentMasterData.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAAoD;AAGpD,MAAqB,iBAAkB,SAAQ,mBAAW;IAMtD,YACQ,KAAY,EACZ,aAAqB,EACrB,cAA+B;QAEnC,KAAK,CAAC,kCAAkC,GAAG,aAAa,CAAC,CAAC;QATtD,YAAO,GAAW,YAAY,CAAC;QAWnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAEM,YAAY;QACf,OAAO,uCAAuC,CAAC;IACnD,CAAC;IAEM,UAAU;QACb,OAAO;YACH,eAAe,EAAE,IAAI,CAAC,aAAa;YACnC,UAAU,EAAE;gBACR,SAAS,EAAE,IAAI,CAAC,OAAO;gBACvB,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;aACjE;SACJ,CAAC;IACN,CAAC;CACJ;AAhCD,oCAgCC"}
|
|
@@ -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 {CdkResource, Stack} from "../../core/model";
|
|
18
|
+
import CampaignModel from "./CampaignModel";
|
|
19
|
+
|
|
20
|
+
export default class CurrentMasterData extends CdkResource {
|
|
21
|
+
|
|
22
|
+
private version: string = "2022-09-13";
|
|
23
|
+
private namespaceName: string;
|
|
24
|
+
private readonly campaignModels: CampaignModel[];
|
|
25
|
+
|
|
26
|
+
public constructor(
|
|
27
|
+
stack: Stack,
|
|
28
|
+
namespaceName: string,
|
|
29
|
+
campaignModels: CampaignModel[],
|
|
30
|
+
) {
|
|
31
|
+
super("SerialKey_CurrentCampaignMaster_" + namespaceName);
|
|
32
|
+
|
|
33
|
+
this.namespaceName = namespaceName;
|
|
34
|
+
this.campaignModels = campaignModels;
|
|
35
|
+
|
|
36
|
+
stack.addResource(this);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public resourceType(): string {
|
|
40
|
+
return "GS2::SerialKey::CurrentCampaignMaster";
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public properties(): {[name: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"NamespaceName": this.namespaceName,
|
|
46
|
+
"Settings": {
|
|
47
|
+
"version": this.version,
|
|
48
|
+
"campaignModels": this.campaignModels.map(v => v.properties()),
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
* Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
* You may not use this file except in compliance with the License.
|
|
8
|
+
* A copy of the License is located at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
* express or implied. See the License for the specific language governing
|
|
15
|
+
* permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.IssueJobStatus = void 0;
|
|
19
|
+
exports.IssueJobStatus = {
|
|
20
|
+
PROCESSING: "PROCESSING",
|
|
21
|
+
COMPLETE: "COMPLETE",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=IssueJob.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IssueJob.js","sourceRoot":"","sources":["IssueJob.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAMU,QAAA,cAAc,GAAG;IAC1B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACd,CAAC"}
|
|
@@ -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
|
+
|
|
17
|
+
import core from "../../core";
|
|
18
|
+
import {GetAttr} from "../../core/func";
|
|
19
|
+
import {Stack} from "../../core/model";
|
|
20
|
+
|
|
21
|
+
export const IssueJobStatus = {
|
|
22
|
+
PROCESSING: "PROCESSING",
|
|
23
|
+
COMPLETE: "COMPLETE",
|
|
24
|
+
} as const;
|
|
25
|
+
export type IssueJobStatus = typeof IssueJobStatus[keyof typeof IssueJobStatus];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import core from "../../core";
|
|
2
|
+
import { GetAttr } from "../../core/func";
|
|
3
|
+
import { Stack } from "../../core/model";
|
|
4
|
+
import LogSetting from "../../core/model/LogSetting";
|
|
5
|
+
import CampaignModel from "./CampaignModel";
|
|
6
|
+
import NamespaceRef from "../ref/NamespaceRef";
|
|
7
|
+
export interface NamespaceOptions {
|
|
8
|
+
description?: string | null | undefined;
|
|
9
|
+
logSetting?: LogSetting | null | undefined;
|
|
10
|
+
}
|
|
11
|
+
export default class Namespace extends core.CdkResource {
|
|
12
|
+
private stack;
|
|
13
|
+
private readonly name;
|
|
14
|
+
private readonly description;
|
|
15
|
+
private readonly logSetting;
|
|
16
|
+
constructor(stack: Stack, name: string, options?: NamespaceOptions);
|
|
17
|
+
resourceType(): string;
|
|
18
|
+
properties(): {
|
|
19
|
+
[name: string]: any;
|
|
20
|
+
};
|
|
21
|
+
ref(): NamespaceRef;
|
|
22
|
+
getAttrNamespaceId(): GetAttr;
|
|
23
|
+
masterData(campaignModels: CampaignModel[]): Namespace;
|
|
24
|
+
}
|