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.
Files changed (69) hide show
  1. package/package.json +1 -1
  2. package/serialKey/index.d.ts +11 -0
  3. package/serialKey/index.js +31 -0
  4. package/serialKey/index.js.map +1 -0
  5. package/serialKey/index.ts +34 -0
  6. package/serialKey/model/CampaignModel.d.ts +14 -0
  7. package/serialKey/model/CampaignModel.js +46 -0
  8. package/serialKey/model/CampaignModel.js.map +1 -0
  9. package/serialKey/model/CampaignModel.ts +61 -0
  10. package/serialKey/model/CampaignModelMaster.d.ts +23 -0
  11. package/serialKey/model/CampaignModelMaster.js +66 -0
  12. package/serialKey/model/CampaignModelMaster.js.map +1 -0
  13. package/serialKey/model/CampaignModelMaster.ts +96 -0
  14. package/serialKey/model/CurrentMasterData.d.ts +12 -0
  15. package/serialKey/model/CurrentMasterData.js +41 -0
  16. package/serialKey/model/CurrentMasterData.js.map +1 -0
  17. package/serialKey/model/CurrentMasterData.ts +52 -0
  18. package/serialKey/model/IssueJob.d.ts +5 -0
  19. package/serialKey/model/IssueJob.js +23 -0
  20. package/serialKey/model/IssueJob.js.map +1 -0
  21. package/serialKey/model/IssueJob.ts +25 -0
  22. package/serialKey/model/Namespace.d.ts +24 -0
  23. package/serialKey/model/Namespace.js +63 -0
  24. package/serialKey/model/Namespace.js.map +1 -0
  25. package/serialKey/model/Namespace.ts +98 -0
  26. package/serialKey/model/SerialKey.d.ts +6 -0
  27. package/serialKey/model/SerialKey.js +24 -0
  28. package/serialKey/model/SerialKey.js.map +1 -0
  29. package/serialKey/model/SerialKey.ts +26 -0
  30. package/serialKey/model/index.d.ts +5 -0
  31. package/serialKey/model/index.js +28 -0
  32. package/serialKey/model/index.js.map +1 -0
  33. package/serialKey/model/index.ts +28 -0
  34. package/serialKey/ref/CampaignModelMasterRef.d.ts +6 -0
  35. package/serialKey/ref/CampaignModelMasterRef.js +39 -0
  36. package/serialKey/ref/CampaignModelMasterRef.js.map +1 -0
  37. package/serialKey/ref/CampaignModelMasterRef.ts +48 -0
  38. package/serialKey/ref/CampaignModelRef.d.ts +8 -0
  39. package/serialKey/ref/CampaignModelRef.js +44 -0
  40. package/serialKey/ref/CampaignModelRef.js.map +1 -0
  41. package/serialKey/ref/CampaignModelRef.ts +59 -0
  42. package/serialKey/ref/CurrentCampaignMasterRef.d.ts +5 -0
  43. package/serialKey/ref/CurrentCampaignMasterRef.js +35 -0
  44. package/serialKey/ref/CurrentCampaignMasterRef.js.map +1 -0
  45. package/serialKey/ref/CurrentCampaignMasterRef.ts +42 -0
  46. package/serialKey/ref/IssueJobRef.d.ts +7 -0
  47. package/serialKey/ref/IssueJobRef.js +43 -0
  48. package/serialKey/ref/IssueJobRef.js.map +1 -0
  49. package/serialKey/ref/IssueJobRef.ts +54 -0
  50. package/serialKey/ref/NamespaceRef.d.ts +13 -0
  51. package/serialKey/ref/NamespaceRef.js +52 -0
  52. package/serialKey/ref/NamespaceRef.js.map +1 -0
  53. package/serialKey/ref/NamespaceRef.ts +80 -0
  54. package/serialKey/ref/SerialKeyRef.d.ts +8 -0
  55. package/serialKey/ref/SerialKeyRef.js +43 -0
  56. package/serialKey/ref/SerialKeyRef.js.map +1 -0
  57. package/serialKey/ref/SerialKeyRef.ts +59 -0
  58. package/serialKey/ref/index.d.ts +7 -0
  59. package/serialKey/ref/index.js +32 -0
  60. package/serialKey/ref/index.js.map +1 -0
  61. package/serialKey/ref/index.ts +30 -0
  62. package/serialKey/stampSheet/UseByUserId.d.ts +4 -0
  63. package/serialKey/stampSheet/UseByUserId.js +35 -0
  64. package/serialKey/stampSheet/UseByUserId.js.map +1 -0
  65. package/serialKey/stampSheet/UseByUserId.ts +41 -0
  66. package/serialKey/stampSheet/index.d.ts +2 -0
  67. package/serialKey/stampSheet/index.js +22 -0
  68. package/serialKey/stampSheet/index.js.map +1 -0
  69. package/serialKey/stampSheet/index.ts +20 -0
@@ -0,0 +1,63 @@
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 CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
22
+ const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
23
+ class Namespace extends core_1.default.CdkResource {
24
+ constructor(stack, name, options) {
25
+ var _a, _b;
26
+ super("SerialKey_Namespace_" + name);
27
+ this.description = null;
28
+ this.logSetting = null;
29
+ this.stack = stack;
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.logSetting = (_b = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _b !== void 0 ? _b : null;
33
+ stack.addResource(this);
34
+ }
35
+ resourceType() {
36
+ return "GS2::SerialKey::Namespace";
37
+ }
38
+ properties() {
39
+ let properties = {};
40
+ if (this.name != null) {
41
+ properties["Name"] = this.name;
42
+ }
43
+ if (this.description != null) {
44
+ properties["Description"] = this.description;
45
+ }
46
+ if (this.logSetting != null) {
47
+ properties["LogSetting"] = this.logSetting.properties();
48
+ }
49
+ return properties;
50
+ }
51
+ ref() {
52
+ return new NamespaceRef_1.default(this.name);
53
+ }
54
+ getAttrNamespaceId() {
55
+ return new func_1.GetAttr(null, null, "Item.NamespaceId");
56
+ }
57
+ masterData(campaignModels) {
58
+ new CurrentMasterData_1.default(this.stack, this.name, campaignModels).addDependsOn(this);
59
+ return this;
60
+ }
61
+ }
62
+ exports.default = Namespace;
63
+ //# sourceMappingURL=Namespace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,8DAA8B;AAC9B,0CAAwC;AAGxC,oFAAoD;AAGpD,+EAA+C;AAO/C,MAAqB,SAAU,SAAQ,cAAI,CAAC,WAAW;IAOnD,YACQ,KAAY,EACZ,IAAY,EACZ,OAA0B;;QAE9B,KAAK,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAAC;QAR3B,gBAAW,GAAgB,IAAI,CAAC;QAChC,eAAU,GAAoB,IAAI,CAAC;QAS7C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,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,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAE9C,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAEM,YAAY;QACf,OAAO,2BAA2B,CAAC;IACvC,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,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;SAC3D;QACD,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAI,CACZ,CAAC;IACN,CAAC;IAEM,kBAAkB;QACrB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,IAAI,EACJ,kBAAkB,CACrB,CAAC;IACN,CAAC;IAEM,UAAU,CACT,cAA+B;QAEnC,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,cAAc,CACjB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAnED,4BAmEC"}
@@ -0,0 +1,98 @@
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
+ import LogSetting from "../../core/model/LogSetting";
21
+ import CurrentMasterData from "./CurrentMasterData";
22
+ import CampaignModel from "./CampaignModel";
23
+
24
+ import NamespaceRef from "../ref/NamespaceRef";
25
+
26
+ export interface NamespaceOptions {
27
+ description?: string|null|undefined;
28
+ logSetting?: LogSetting|null|undefined;
29
+ }
30
+
31
+ export default class Namespace extends core.CdkResource {
32
+
33
+ private stack: Stack;
34
+ private readonly name: string;
35
+ private readonly description: string|null = null;
36
+ private readonly logSetting: LogSetting|null = null;
37
+
38
+ public constructor(
39
+ stack: Stack,
40
+ name: string,
41
+ options?: NamespaceOptions,
42
+ ) {
43
+ super("SerialKey_Namespace_" + name);
44
+
45
+ this.stack = stack;
46
+ this.name = name;
47
+ this.description = options?.description ?? null;
48
+ this.logSetting = options?.logSetting ?? null;
49
+
50
+ stack.addResource(this);
51
+ }
52
+
53
+ public resourceType(): string {
54
+ return "GS2::SerialKey::Namespace";
55
+ }
56
+
57
+ public properties(): {[name: string]: any} {
58
+ let properties: {[name: string]: any} = {};
59
+ if (this.name != null) {
60
+ properties["Name"] = this.name;
61
+ }
62
+ if (this.description != null) {
63
+ properties["Description"] = this.description;
64
+ }
65
+ if (this.logSetting != null) {
66
+ properties["LogSetting"] = this.logSetting.properties();
67
+ }
68
+ return properties;
69
+ }
70
+
71
+ public ref(
72
+ ): NamespaceRef {
73
+ return new NamespaceRef(
74
+ this.name,
75
+ );
76
+ }
77
+
78
+ public getAttrNamespaceId(): GetAttr {
79
+ return new GetAttr(
80
+ null,
81
+ null,
82
+ "Item.NamespaceId"
83
+ );
84
+ }
85
+
86
+ public masterData(
87
+ campaignModels: CampaignModel[],
88
+ ): Namespace {
89
+ new CurrentMasterData(
90
+ this.stack,
91
+ this.name,
92
+ campaignModels,
93
+ ).addDependsOn(
94
+ this
95
+ );
96
+ return this;
97
+ }
98
+ }
@@ -0,0 +1,6 @@
1
+ export declare const SerialKeyStatus: {
2
+ readonly ACTIVE: "ACTIVE";
3
+ readonly USED: "USED";
4
+ readonly INACTIVE: "INACTIVE";
5
+ };
6
+ export declare type SerialKeyStatus = typeof SerialKeyStatus[keyof typeof SerialKeyStatus];
@@ -0,0 +1,24 @@
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.SerialKeyStatus = void 0;
19
+ exports.SerialKeyStatus = {
20
+ ACTIVE: "ACTIVE",
21
+ USED: "USED",
22
+ INACTIVE: "INACTIVE",
23
+ };
24
+ //# sourceMappingURL=SerialKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SerialKey.js","sourceRoot":"","sources":["SerialKey.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAMU,QAAA,eAAe,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;CACd,CAAC"}
@@ -0,0 +1,26 @@
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 SerialKeyStatus = {
22
+ ACTIVE: "ACTIVE",
23
+ USED: "USED",
24
+ INACTIVE: "INACTIVE",
25
+ } as const;
26
+ export type SerialKeyStatus = typeof SerialKeyStatus[keyof typeof SerialKeyStatus];
@@ -0,0 +1,5 @@
1
+ import CampaignModel from "./CampaignModel";
2
+ import CurrentMasterData from "./CurrentMasterData";
3
+ import Namespace from "./Namespace";
4
+ import CampaignModelMaster from "./CampaignModelMaster";
5
+ export { CampaignModel, CurrentMasterData, Namespace, CampaignModelMaster, };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CampaignModelMaster = exports.Namespace = exports.CurrentMasterData = exports.CampaignModel = 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 CampaignModel_1 = tslib_1.__importDefault(require("./CampaignModel"));
21
+ exports.CampaignModel = CampaignModel_1.default;
22
+ const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
23
+ exports.CurrentMasterData = CurrentMasterData_1.default;
24
+ const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
25
+ exports.Namespace = Namespace_1.default;
26
+ const CampaignModelMaster_1 = tslib_1.__importDefault(require("./CampaignModelMaster"));
27
+ exports.CampaignModelMaster = CampaignModelMaster_1.default;
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4EAA4C;AAQxC,wBARG,uBAAa,CAQH;AAPjB,oFAAoD;AAQhD,4BARG,2BAAiB,CAQH;AAPrB,oEAAoC;AAQhC,oBARG,mBAAS,CAQH;AALb,wFAAwD;AAMpD,8BANG,6BAAmB,CAMH"}
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import CampaignModel from "./CampaignModel";
17
+ import CurrentMasterData from "./CurrentMasterData";
18
+ import Namespace from "./Namespace";
19
+ import { IssueJobStatus } from "./IssueJob";
20
+ import { SerialKeyStatus } from "./SerialKey";
21
+ import CampaignModelMaster from "./CampaignModelMaster";
22
+
23
+ export {
24
+ CampaignModel,
25
+ CurrentMasterData,
26
+ Namespace,
27
+ CampaignModelMaster,
28
+ }
@@ -0,0 +1,6 @@
1
+ export default class CampaignModelMasterRef {
2
+ private namespaceName;
3
+ private campaignModelName;
4
+ constructor(namespaceName: string, campaignModelName: string);
5
+ grn(): string;
6
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const func_1 = require("../../core/func");
19
+ class CampaignModelMasterRef {
20
+ constructor(namespaceName, campaignModelName) {
21
+ this.namespaceName = namespaceName;
22
+ this.campaignModelName = campaignModelName;
23
+ }
24
+ grn() {
25
+ return new func_1.Join(":", [
26
+ "grn",
27
+ "gs2",
28
+ func_1.GetAttr.region().str(),
29
+ func_1.GetAttr.ownerId().str(),
30
+ "serialKey",
31
+ this.namespaceName,
32
+ "master",
33
+ "campaign",
34
+ this.campaignModelName
35
+ ]).str();
36
+ }
37
+ }
38
+ exports.default = CampaignModelMasterRef;
39
+ //# sourceMappingURL=CampaignModelMasterRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CampaignModelMasterRef.js","sourceRoot":"","sources":["CampaignModelMasterRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAG9C,MAAqB,sBAAsB;IAIvC,YACQ,aAAqB,EACrB,iBAAyB;QAE7B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;IAEM,GAAG;QACN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;YACtB,cAAO,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE;YACvB,WAAW;YACX,IAAI,CAAC,aAAa;YAClB,QAAQ;YACR,UAAU;YACV,IAAI,CAAC,iBAAiB;SACzB,CACJ,CAAC,GAAG,EAAE,CAAC;IACZ,CAAC;CACJ;AA5BD,yCA4BC"}
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ import {GetAttr, Join} from "../../core/func";
18
+
19
+
20
+ export default class CampaignModelMasterRef {
21
+ private namespaceName: string;
22
+ private campaignModelName: string;
23
+
24
+ public constructor(
25
+ namespaceName: string,
26
+ campaignModelName: string,
27
+ ) {
28
+ this.namespaceName = namespaceName;
29
+ this.campaignModelName = campaignModelName;
30
+ }
31
+
32
+ public grn(): string {
33
+ return new Join(
34
+ ":",
35
+ [
36
+ "grn",
37
+ "gs2",
38
+ GetAttr.region().str(),
39
+ GetAttr.ownerId().str(),
40
+ "serialKey",
41
+ this.namespaceName,
42
+ "master",
43
+ "campaign",
44
+ this.campaignModelName
45
+ ]
46
+ ).str();
47
+ }
48
+ }
@@ -0,0 +1,8 @@
1
+ import IssueJobRef from "./IssueJobRef";
2
+ export default class CampaignModelRef {
3
+ private namespaceName;
4
+ private campaignModelName;
5
+ constructor(namespaceName: string, campaignModelName: string);
6
+ issueJob(issueJobName: string): IssueJobRef;
7
+ grn(): string;
8
+ }
@@ -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 IssueJobRef_1 = tslib_1.__importDefault(require("./IssueJobRef"));
21
+ class CampaignModelRef {
22
+ constructor(namespaceName, campaignModelName) {
23
+ this.namespaceName = namespaceName;
24
+ this.campaignModelName = campaignModelName;
25
+ }
26
+ issueJob(issueJobName) {
27
+ return new IssueJobRef_1.default(this.namespaceName, this.campaignModelName, issueJobName);
28
+ }
29
+ grn() {
30
+ return new func_1.Join(":", [
31
+ "grn",
32
+ "gs2",
33
+ func_1.GetAttr.region().str(),
34
+ func_1.GetAttr.ownerId().str(),
35
+ "serialKey",
36
+ this.namespaceName,
37
+ "master",
38
+ "campaign",
39
+ this.campaignModelName
40
+ ]).str();
41
+ }
42
+ }
43
+ exports.default = CampaignModelRef;
44
+ //# sourceMappingURL=CampaignModelRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CampaignModelRef.js","sourceRoot":"","sources":["CampaignModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,wEAAwC;AAGxC,MAAqB,gBAAgB;IAIjC,YACQ,aAAqB,EACrB,iBAAyB;QAE7B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;IAEM,QAAQ,CACP,YAAoB;QAExB,OAAO,IAAI,qBAAW,CAClB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,iBAAiB,EACtB,YAAY,CACf,CAAC;IACN,CAAC;IAEM,GAAG;QACN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;YACtB,cAAO,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE;YACvB,WAAW;YACX,IAAI,CAAC,aAAa;YAClB,QAAQ;YACR,UAAU;YACV,IAAI,CAAC,iBAAiB;SACzB,CACJ,CAAC,GAAG,EAAE,CAAC;IACZ,CAAC;CACJ;AAtCD,mCAsCC"}
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ import {GetAttr, Join} from "../../core/func";
18
+ import IssueJobRef from "./IssueJobRef";
19
+
20
+
21
+ export default class CampaignModelRef {
22
+ private namespaceName: string;
23
+ private campaignModelName: string;
24
+
25
+ public constructor(
26
+ namespaceName: string,
27
+ campaignModelName: string,
28
+ ) {
29
+ this.namespaceName = namespaceName;
30
+ this.campaignModelName = campaignModelName;
31
+ }
32
+
33
+ public issueJob(
34
+ issueJobName: string,
35
+ ): IssueJobRef {
36
+ return new IssueJobRef(
37
+ this.namespaceName,
38
+ this.campaignModelName,
39
+ issueJobName,
40
+ );
41
+ }
42
+
43
+ public grn(): string {
44
+ return new Join(
45
+ ":",
46
+ [
47
+ "grn",
48
+ "gs2",
49
+ GetAttr.region().str(),
50
+ GetAttr.ownerId().str(),
51
+ "serialKey",
52
+ this.namespaceName,
53
+ "master",
54
+ "campaign",
55
+ this.campaignModelName
56
+ ]
57
+ ).str();
58
+ }
59
+ }
@@ -0,0 +1,5 @@
1
+ export default class CurrentCampaignMasterRef {
2
+ private namespaceName;
3
+ constructor(namespaceName: string);
4
+ grn(): string;
5
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const func_1 = require("../../core/func");
19
+ class CurrentCampaignMasterRef {
20
+ constructor(namespaceName) {
21
+ this.namespaceName = namespaceName;
22
+ }
23
+ grn() {
24
+ return new func_1.Join(":", [
25
+ "grn",
26
+ "gs2",
27
+ func_1.GetAttr.region().str(),
28
+ func_1.GetAttr.ownerId().str(),
29
+ "serialKey",
30
+ this.namespaceName
31
+ ]).str();
32
+ }
33
+ }
34
+ exports.default = CurrentCampaignMasterRef;
35
+ //# sourceMappingURL=CurrentCampaignMasterRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrentCampaignMasterRef.js","sourceRoot":"","sources":["CurrentCampaignMasterRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAG9C,MAAqB,wBAAwB;IAGzC,YACQ,aAAqB;QAEzB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,GAAG;QACN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;YACtB,cAAO,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE;YACvB,WAAW;YACX,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EAAE,CAAC;IACZ,CAAC;CACJ;AAtBD,2CAsBC"}
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ import {GetAttr, Join} from "../../core/func";
18
+
19
+
20
+ export default class CurrentCampaignMasterRef {
21
+ private namespaceName: string;
22
+
23
+ public constructor(
24
+ namespaceName: string,
25
+ ) {
26
+ this.namespaceName = namespaceName;
27
+ }
28
+
29
+ public grn(): string {
30
+ return new Join(
31
+ ":",
32
+ [
33
+ "grn",
34
+ "gs2",
35
+ GetAttr.region().str(),
36
+ GetAttr.ownerId().str(),
37
+ "serialKey",
38
+ this.namespaceName
39
+ ]
40
+ ).str();
41
+ }
42
+ }
@@ -0,0 +1,7 @@
1
+ export default class IssueJobRef {
2
+ private namespaceName;
3
+ private campaignModelName;
4
+ private issueJobName;
5
+ constructor(namespaceName: string, campaignModelName: string, issueJobName: string);
6
+ grn(): string;
7
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const func_1 = require("../../core/func");
19
+ class IssueJobRef {
20
+ constructor(namespaceName, campaignModelName, issueJobName) {
21
+ this.namespaceName = namespaceName;
22
+ this.campaignModelName = campaignModelName;
23
+ this.issueJobName = issueJobName;
24
+ }
25
+ grn() {
26
+ return new func_1.Join(":", [
27
+ "grn",
28
+ "gs2",
29
+ func_1.GetAttr.region().str(),
30
+ func_1.GetAttr.ownerId().str(),
31
+ "serialKey",
32
+ this.namespaceName,
33
+ "master",
34
+ "campaign",
35
+ this.campaignModelName,
36
+ "issue",
37
+ "job",
38
+ this.issueJobName
39
+ ]).str();
40
+ }
41
+ }
42
+ exports.default = IssueJobRef;
43
+ //# sourceMappingURL=IssueJobRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IssueJobRef.js","sourceRoot":"","sources":["IssueJobRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAG9C,MAAqB,WAAW;IAK5B,YACQ,aAAqB,EACrB,iBAAyB,EACzB,YAAoB;QAExB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACrC,CAAC;IAEM,GAAG;QACN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;YACtB,cAAO,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE;YACvB,WAAW;YACX,IAAI,CAAC,aAAa;YAClB,QAAQ;YACR,UAAU;YACV,IAAI,CAAC,iBAAiB;YACtB,OAAO;YACP,KAAK;YACL,IAAI,CAAC,YAAY;SACpB,CACJ,CAAC,GAAG,EAAE,CAAC;IACZ,CAAC;CACJ;AAlCD,8BAkCC"}