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,54 @@
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 IssueJobRef {
21
+ private namespaceName: string;
22
+ private campaignModelName: string;
23
+ private issueJobName: string;
24
+
25
+ public constructor(
26
+ namespaceName: string,
27
+ campaignModelName: string,
28
+ issueJobName: string,
29
+ ) {
30
+ this.namespaceName = namespaceName;
31
+ this.campaignModelName = campaignModelName;
32
+ this.issueJobName = issueJobName;
33
+ }
34
+
35
+ public grn(): string {
36
+ return new Join(
37
+ ":",
38
+ [
39
+ "grn",
40
+ "gs2",
41
+ GetAttr.region().str(),
42
+ GetAttr.ownerId().str(),
43
+ "serialKey",
44
+ this.namespaceName,
45
+ "master",
46
+ "campaign",
47
+ this.campaignModelName,
48
+ "issue",
49
+ "job",
50
+ this.issueJobName
51
+ ]
52
+ ).str();
53
+ }
54
+ }
@@ -0,0 +1,13 @@
1
+ import CurrentCampaignMasterRef from "./CurrentCampaignMasterRef";
2
+ import CampaignModelRef from "./CampaignModelRef";
3
+ import SerialKeyRef from "./SerialKeyRef";
4
+ import CampaignModelMasterRef from "./CampaignModelMasterRef";
5
+ export default class NamespaceRef {
6
+ private namespaceName;
7
+ constructor(namespaceName: string);
8
+ currentCampaignMaster(): CurrentCampaignMasterRef;
9
+ campaignModel(campaignModelName: string): CampaignModelRef;
10
+ serialKey(serialKeyCode: string): SerialKeyRef;
11
+ campaignModelMaster(campaignModelName: string): CampaignModelMasterRef;
12
+ grn(): string;
13
+ }
@@ -0,0 +1,52 @@
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 CurrentCampaignMasterRef_1 = tslib_1.__importDefault(require("./CurrentCampaignMasterRef"));
21
+ const CampaignModelRef_1 = tslib_1.__importDefault(require("./CampaignModelRef"));
22
+ const SerialKeyRef_1 = tslib_1.__importDefault(require("./SerialKeyRef"));
23
+ const CampaignModelMasterRef_1 = tslib_1.__importDefault(require("./CampaignModelMasterRef"));
24
+ class NamespaceRef {
25
+ constructor(namespaceName) {
26
+ this.namespaceName = namespaceName;
27
+ }
28
+ currentCampaignMaster() {
29
+ return new CurrentCampaignMasterRef_1.default(this.namespaceName);
30
+ }
31
+ campaignModel(campaignModelName) {
32
+ return new CampaignModelRef_1.default(this.namespaceName, campaignModelName);
33
+ }
34
+ serialKey(serialKeyCode) {
35
+ return new SerialKeyRef_1.default(this.namespaceName, serialKeyCode);
36
+ }
37
+ campaignModelMaster(campaignModelName) {
38
+ return new CampaignModelMasterRef_1.default(this.namespaceName, campaignModelName);
39
+ }
40
+ grn() {
41
+ return new func_1.Join(":", [
42
+ "grn",
43
+ "gs2",
44
+ func_1.GetAttr.region().str(),
45
+ func_1.GetAttr.ownerId().str(),
46
+ "serialKey",
47
+ this.namespaceName
48
+ ]).str();
49
+ }
50
+ }
51
+ exports.default = NamespaceRef;
52
+ //# sourceMappingURL=NamespaceRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,kGAAkE;AAClE,kFAAkD;AAClD,0EAA0C;AAC1C,8FAA8D;AAG9D,MAAqB,YAAY;IAG7B,YACQ,aAAqB;QAEzB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,qBAAqB;QAExB,OAAO,IAAI,kCAAwB,CAC/B,IAAI,CAAC,aAAa,CACrB,CAAC;IACN,CAAC;IAEM,aAAa,CACZ,iBAAyB;QAE7B,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,iBAAiB,CACpB,CAAC;IACN,CAAC;IAEM,SAAS,CACR,aAAqB;QAEzB,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,aAAa,EAClB,aAAa,CAChB,CAAC;IACN,CAAC;IAEM,mBAAmB,CAClB,iBAAyB;QAE7B,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,iBAAiB,CACpB,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;SACrB,CACJ,CAAC,GAAG,EAAE,CAAC;IACZ,CAAC;CACJ;AAxDD,+BAwDC"}
@@ -0,0 +1,80 @@
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 CurrentCampaignMasterRef from "./CurrentCampaignMasterRef";
19
+ import CampaignModelRef from "./CampaignModelRef";
20
+ import SerialKeyRef from "./SerialKeyRef";
21
+ import CampaignModelMasterRef from "./CampaignModelMasterRef";
22
+
23
+
24
+ export default class NamespaceRef {
25
+ private namespaceName: string;
26
+
27
+ public constructor(
28
+ namespaceName: string,
29
+ ) {
30
+ this.namespaceName = namespaceName;
31
+ }
32
+
33
+ public currentCampaignMaster(
34
+ ): CurrentCampaignMasterRef {
35
+ return new CurrentCampaignMasterRef(
36
+ this.namespaceName,
37
+ );
38
+ }
39
+
40
+ public campaignModel(
41
+ campaignModelName: string,
42
+ ): CampaignModelRef {
43
+ return new CampaignModelRef(
44
+ this.namespaceName,
45
+ campaignModelName,
46
+ );
47
+ }
48
+
49
+ public serialKey(
50
+ serialKeyCode: string,
51
+ ): SerialKeyRef {
52
+ return new SerialKeyRef(
53
+ this.namespaceName,
54
+ serialKeyCode,
55
+ );
56
+ }
57
+
58
+ public campaignModelMaster(
59
+ campaignModelName: string,
60
+ ): CampaignModelMasterRef {
61
+ return new CampaignModelMasterRef(
62
+ this.namespaceName,
63
+ campaignModelName,
64
+ );
65
+ }
66
+
67
+ public grn(): string {
68
+ return new Join(
69
+ ":",
70
+ [
71
+ "grn",
72
+ "gs2",
73
+ GetAttr.region().str(),
74
+ GetAttr.ownerId().str(),
75
+ "serialKey",
76
+ this.namespaceName
77
+ ]
78
+ ).str();
79
+ }
80
+ }
@@ -0,0 +1,8 @@
1
+ import UseByUserId from "../stampSheet/UseByUserId";
2
+ export default class SerialKeyRef {
3
+ private namespaceName;
4
+ private serialKeyCode;
5
+ constructor(namespaceName: string, serialKeyCode: string);
6
+ use(code: string, userId?: string): UseByUserId;
7
+ grn(): string;
8
+ }
@@ -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 tslib_1 = require("tslib");
19
+ const func_1 = require("../../core/func");
20
+ const UseByUserId_1 = tslib_1.__importDefault(require("../stampSheet/UseByUserId"));
21
+ class SerialKeyRef {
22
+ constructor(namespaceName, serialKeyCode) {
23
+ this.namespaceName = namespaceName;
24
+ this.serialKeyCode = serialKeyCode;
25
+ }
26
+ use(code, userId = '#{userId}') {
27
+ return new UseByUserId_1.default(this.namespaceName, code, userId);
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
+ "serialKey",
38
+ this.serialKeyCode
39
+ ]).str();
40
+ }
41
+ }
42
+ exports.default = SerialKeyRef;
43
+ //# sourceMappingURL=SerialKeyRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SerialKeyRef.js","sourceRoot":"","sources":["SerialKeyRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,oFAAoD;AAGpD,MAAqB,YAAY;IAI7B,YACQ,aAAqB,EACrB,aAAqB;QAEzB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,GAAG,CACF,IAAY,EACZ,SAAiB,WAAW;QAEhC,OAAO,IAAI,qBAAW,CAClB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,MAAM,CACT,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,WAAW;YACX,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EAAE,CAAC;IACZ,CAAC;CACJ;AAtCD,+BAsCC"}
@@ -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 UseByUserId from "../stampSheet/UseByUserId";
19
+
20
+
21
+ export default class SerialKeyRef {
22
+ private namespaceName: string;
23
+ private serialKeyCode: string;
24
+
25
+ public constructor(
26
+ namespaceName: string,
27
+ serialKeyCode: string,
28
+ ) {
29
+ this.namespaceName = namespaceName;
30
+ this.serialKeyCode = serialKeyCode;
31
+ }
32
+
33
+ public use(
34
+ code: string,
35
+ userId: string = '#{userId}',
36
+ ): UseByUserId {
37
+ return new UseByUserId(
38
+ this.namespaceName,
39
+ code,
40
+ userId,
41
+ );
42
+ }
43
+
44
+ public grn(): string {
45
+ return new Join(
46
+ ":",
47
+ [
48
+ "grn",
49
+ "gs2",
50
+ GetAttr.region().str(),
51
+ GetAttr.ownerId().str(),
52
+ "serialKey",
53
+ this.namespaceName,
54
+ "serialKey",
55
+ this.serialKeyCode
56
+ ]
57
+ ).str();
58
+ }
59
+ }
@@ -0,0 +1,7 @@
1
+ import NamespaceRef from "./NamespaceRef";
2
+ import IssueJobRef from "./IssueJobRef";
3
+ import SerialKeyRef from "./SerialKeyRef";
4
+ import CampaignModelRef from "./CampaignModelRef";
5
+ import CampaignModelMasterRef from "./CampaignModelMasterRef";
6
+ import CurrentCampaignMasterRef from "./CurrentCampaignMasterRef";
7
+ export { NamespaceRef, IssueJobRef, SerialKeyRef, CampaignModelRef, CampaignModelMasterRef, CurrentCampaignMasterRef, };
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CurrentCampaignMasterRef = exports.CampaignModelMasterRef = exports.CampaignModelRef = exports.SerialKeyRef = exports.IssueJobRef = exports.NamespaceRef = void 0;
4
+ const tslib_1 = require("tslib");
5
+ /*
6
+ * Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
7
+ * Reserved.
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License").
10
+ * You may not use this file except in compliance with the License.
11
+ * A copy of the License is located at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * or in the "license" file accompanying this file. This file is distributed
16
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
17
+ * express or implied. See the License for the specific language governing
18
+ * permissions and limitations under the License.
19
+ */
20
+ const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
21
+ exports.NamespaceRef = NamespaceRef_1.default;
22
+ const IssueJobRef_1 = tslib_1.__importDefault(require("./IssueJobRef"));
23
+ exports.IssueJobRef = IssueJobRef_1.default;
24
+ const SerialKeyRef_1 = tslib_1.__importDefault(require("./SerialKeyRef"));
25
+ exports.SerialKeyRef = SerialKeyRef_1.default;
26
+ const CampaignModelRef_1 = tslib_1.__importDefault(require("./CampaignModelRef"));
27
+ exports.CampaignModelRef = CampaignModelRef_1.default;
28
+ const CampaignModelMasterRef_1 = tslib_1.__importDefault(require("./CampaignModelMasterRef"));
29
+ exports.CampaignModelMasterRef = CampaignModelMasterRef_1.default;
30
+ const CurrentCampaignMasterRef_1 = tslib_1.__importDefault(require("./CurrentCampaignMasterRef"));
31
+ exports.CurrentCampaignMasterRef = CurrentCampaignMasterRef_1.default;
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAQtC,uBARG,sBAAY,CAQH;AAPhB,wEAAwC;AAQpC,sBARG,qBAAW,CAQH;AAPf,0EAA0C;AAQtC,uBARG,sBAAY,CAQH;AAPhB,kFAAkD;AAQ9C,2BARG,0BAAgB,CAQH;AAPpB,8FAA8D;AAQ1D,iCARG,gCAAsB,CAQH;AAP1B,kGAAkE;AAQ9D,mCARG,kCAAwB,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 NamespaceRef from "./NamespaceRef";
17
+ import IssueJobRef from "./IssueJobRef";
18
+ import SerialKeyRef from "./SerialKeyRef";
19
+ import CampaignModelRef from "./CampaignModelRef";
20
+ import CampaignModelMasterRef from "./CampaignModelMasterRef";
21
+ import CurrentCampaignMasterRef from "./CurrentCampaignMasterRef";
22
+
23
+ export {
24
+ NamespaceRef,
25
+ IssueJobRef,
26
+ SerialKeyRef,
27
+ CampaignModelRef,
28
+ CampaignModelMasterRef,
29
+ CurrentCampaignMasterRef,
30
+ }
@@ -0,0 +1,4 @@
1
+ import { ConsumeAction } from "../../core/model";
2
+ export default class UseByUserId extends ConsumeAction {
3
+ constructor(namespaceName: string, code: string, userId?: string);
4
+ }
@@ -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 model_1 = require("../../core/model");
19
+ class UseByUserId extends model_1.ConsumeAction {
20
+ constructor(namespaceName, code, userId = '#{userId}') {
21
+ let properties = {};
22
+ if (namespaceName != null) {
23
+ properties["namespaceName"] = namespaceName;
24
+ }
25
+ if (userId != null) {
26
+ properties["userId"] = userId;
27
+ }
28
+ if (code != null) {
29
+ properties["code"] = code;
30
+ }
31
+ super("Gs2SerialKey:UseByUserId", properties);
32
+ }
33
+ }
34
+ exports.default = UseByUserId;
35
+ //# sourceMappingURL=UseByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UseByUserId.js","sourceRoot":"","sources":["UseByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,WAAY,SAAQ,qBAAa;IAElD,YACQ,aAAqB,EACrB,IAAY,EACZ,SAAiB,WAAW;QAEhC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAC3C,IAAI,aAAa,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAC;SAC/C;QACD,IAAI,MAAM,IAAI,IAAI,EAAE;YAChB,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;SACjC;QACD,IAAI,IAAI,IAAI,IAAI,EAAE;YACd,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;SAC7B;QACD,KAAK,CACD,0BAA0B,EAC1B,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAtBD,8BAsBC"}
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ import {AcquireAction, ConsumeAction} from "../../core/model";
18
+
19
+ export default class UseByUserId extends ConsumeAction {
20
+
21
+ public constructor(
22
+ namespaceName: string,
23
+ code: string,
24
+ userId: string = '#{userId}',
25
+ ) {
26
+ let properties: {[name: string]: any} = {};
27
+ if (namespaceName != null) {
28
+ properties["namespaceName"] = namespaceName;
29
+ }
30
+ if (userId != null) {
31
+ properties["userId"] = userId;
32
+ }
33
+ if (code != null) {
34
+ properties["code"] = code;
35
+ }
36
+ super(
37
+ "Gs2SerialKey:UseByUserId",
38
+ properties,
39
+ );
40
+ }
41
+ }
@@ -0,0 +1,2 @@
1
+ import UseByUserId from "./UseByUserId";
2
+ export { UseByUserId, };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UseByUserId = 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 UseByUserId_1 = tslib_1.__importDefault(require("./UseByUserId"));
21
+ exports.UseByUserId = UseByUserId_1.default;
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wEAAwC;AAGpC,sBAHG,qBAAW,CAGH"}
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import UseByUserId from "./UseByUserId";
17
+
18
+ export {
19
+ UseByUserId,
20
+ }