gs2-cdk 1.0.91 → 1.0.92

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.91",
3
+ "version": "1.0.92",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -1,5 +1,6 @@
1
1
  import CampaignModelRef from "./CampaignModelRef";
2
2
  import RevertUseByUserId from "../stampSheet/RevertUseByUserId";
3
+ import IssueOnce from "../stampSheet/IssueOnce";
3
4
  import UseByUserId from "../stampSheet/UseByUserId";
4
5
  import VerifyCodeByUserId from "../stampSheet/VerifyCodeByUserId";
5
6
  import { SerialKeyVerifyType } from "../stampSheet/enum/SerialKeyVerifyType";
@@ -8,7 +9,8 @@ export default class NamespaceRef {
8
9
  constructor(namespaceName: string);
9
10
  campaignModel(campaignModelName: string): CampaignModelRef;
10
11
  revertUse(code: string, userId?: string): RevertUseByUserId;
12
+ issueOnce(campaignModelName: string, metadata?: string | null): IssueOnce;
11
13
  use(code: string, userId?: string): UseByUserId;
12
- verifyCode(code: string, verifyType: SerialKeyVerifyType, userId?: string): VerifyCodeByUserId;
14
+ verifyCode(code: string, verifyType: SerialKeyVerifyType, campaignModelName?: string | null, userId?: string): VerifyCodeByUserId;
13
15
  grn(): string;
14
16
  }
@@ -19,6 +19,7 @@ const tslib_1 = require("tslib");
19
19
  const func_1 = require("../../core/func");
20
20
  const CampaignModelRef_1 = tslib_1.__importDefault(require("./CampaignModelRef"));
21
21
  const RevertUseByUserId_1 = tslib_1.__importDefault(require("../stampSheet/RevertUseByUserId"));
22
+ const IssueOnce_1 = tslib_1.__importDefault(require("../stampSheet/IssueOnce"));
22
23
  const UseByUserId_1 = tslib_1.__importDefault(require("../stampSheet/UseByUserId"));
23
24
  const VerifyCodeByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyCodeByUserId"));
24
25
  class NamespaceRef {
@@ -31,11 +32,14 @@ class NamespaceRef {
31
32
  revertUse(code, userId = "#{userId}") {
32
33
  return new RevertUseByUserId_1.default(this.namespaceName, code, userId);
33
34
  }
35
+ issueOnce(campaignModelName, metadata = null) {
36
+ return new IssueOnce_1.default(this.namespaceName, campaignModelName, metadata);
37
+ }
34
38
  use(code, userId = "#{userId}") {
35
39
  return new UseByUserId_1.default(this.namespaceName, code, userId);
36
40
  }
37
- verifyCode(code, verifyType, userId = "#{userId}") {
38
- return new VerifyCodeByUserId_1.default(this.namespaceName, code, verifyType, userId);
41
+ verifyCode(code, verifyType, campaignModelName = null, userId = "#{userId}") {
42
+ return new VerifyCodeByUserId_1.default(this.namespaceName, code, verifyType, campaignModelName, userId);
39
43
  }
40
44
  grn() {
41
45
  return new func_1.Join(":", [
@@ -1 +1 @@
1
- {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,kFAAkD;AAClD,gGAAgE;AAChE,oFAAoD;AACpD,kGAAkE;AAGlE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,aAAa,CAChB,iBAAyB;QAEzB,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,iBAAiB,CACpB,CAAC;IACN,CAAC;IAEM,SAAS,CACZ,IAAY,EACZ,SAAiB,WAAW;QAE5B,OAAO,IAAI,2BAAiB,CACxB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG,CACN,IAAY,EACZ,SAAiB,WAAW;QAE5B,OAAO,IAAI,qBAAW,CAClB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,UAAU,CACb,IAAY,EACZ,UAA+B,EA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ACb,IAAY,EACZ,UAA+B,EAC/B,oBAAiC,IAAI,EACrC,SAAiB,WAAW;QAE5B,OAAO,IAAI,4BAAkB,CACzB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,UAAU,EACV,iBAAiB,EACjB,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,WAAW;YACX,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AArFD,+BAqFC"}
@@ -17,6 +17,7 @@
17
17
  import {GetAttr, Join} from "../../core/func";
18
18
  import CampaignModelRef from "./CampaignModelRef";
19
19
  import RevertUseByUserId from "../stampSheet/RevertUseByUserId";
20
+ import IssueOnce from "../stampSheet/IssueOnce";
20
21
  import UseByUserId from "../stampSheet/UseByUserId";
21
22
  import VerifyCodeByUserId from "../stampSheet/VerifyCodeByUserId";
22
23
  import { SerialKeyVerifyType } from "../stampSheet/enum/SerialKeyVerifyType";
@@ -50,6 +51,17 @@ export default class NamespaceRef {
50
51
  );
51
52
  }
52
53
 
54
+ public issueOnce(
55
+ campaignModelName: string,
56
+ metadata: string|null = null,
57
+ ): IssueOnce {
58
+ return new IssueOnce(
59
+ this.namespaceName,
60
+ campaignModelName,
61
+ metadata,
62
+ );
63
+ }
64
+
53
65
  public use(
54
66
  code: string,
55
67
  userId: string = "#{userId}",
@@ -64,12 +76,14 @@ export default class NamespaceRef {
64
76
  public verifyCode(
65
77
  code: string,
66
78
  verifyType: SerialKeyVerifyType,
79
+ campaignModelName: string|null = null,
67
80
  userId: string = "#{userId}",
68
81
  ): VerifyCodeByUserId {
69
82
  return new VerifyCodeByUserId(
70
83
  this.namespaceName,
71
84
  code,
72
85
  verifyType,
86
+ campaignModelName,
73
87
  userId,
74
88
  );
75
89
  }
@@ -0,0 +1,11 @@
1
+ import { AcquireAction } from "../../core/model";
2
+ export default class IssueOnce extends AcquireAction {
3
+ private readonly namespaceName;
4
+ private readonly campaignModelName;
5
+ private readonly metadata;
6
+ constructor(namespaceName: string, campaignModelName: string, metadata?: string | null);
7
+ request(): {
8
+ [name: string]: any;
9
+ };
10
+ action(): string;
11
+ }
@@ -0,0 +1,45 @@
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 IssueOnce extends model_1.AcquireAction {
20
+ constructor(namespaceName, campaignModelName, metadata = null) {
21
+ super();
22
+ this.metadata = null;
23
+ this.namespaceName = namespaceName;
24
+ this.campaignModelName = campaignModelName;
25
+ this.metadata = metadata !== null && metadata !== void 0 ? metadata : null;
26
+ }
27
+ request() {
28
+ let properties = {};
29
+ if (this.namespaceName != null) {
30
+ properties["namespaceName"] = this.namespaceName;
31
+ }
32
+ if (this.campaignModelName != null) {
33
+ properties["campaignModelName"] = this.campaignModelName;
34
+ }
35
+ if (this.metadata != null) {
36
+ properties["metadata"] = this.metadata;
37
+ }
38
+ return properties;
39
+ }
40
+ action() {
41
+ return "Gs2SerialKey:IssueOnce";
42
+ }
43
+ }
44
+ exports.default = IssueOnce;
45
+ //# sourceMappingURL=IssueOnce.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IssueOnce.js","sourceRoot":"","sources":["IssueOnce.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAE5E,MAAqB,SAAU,SAAQ,qBAAa;IAMhD,YACI,aAAqB,EACrB,iBAAyB,EACzB,WAAwB,IAAI;QAE5B,KAAK,EAAE,CAAC;QARK,aAAQ,GAAgB,IAAI,CAAC;QAU1C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,IAAI,CAAC;IACrC,CAAC;IAEM,OAAO;QAEV,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,wBAAwB,CAAC;IACpC,CAAC;CACJ;AAtCD,4BAsCC"}
@@ -0,0 +1,57 @@
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, VerifyAction} from "../../core/model";
18
+
19
+ export default class IssueOnce extends AcquireAction {
20
+ private readonly namespaceName: string;
21
+ private readonly campaignModelName: string;
22
+ private readonly metadata: string|null = null;
23
+
24
+
25
+ public constructor(
26
+ namespaceName: string,
27
+ campaignModelName: string,
28
+ metadata: string|null = null,
29
+ ) {
30
+ super();
31
+
32
+ this.namespaceName = namespaceName;
33
+ this.campaignModelName = campaignModelName;
34
+ this.metadata = metadata ?? null;
35
+ }
36
+
37
+ public request(
38
+ ): {[name: string]: any} {
39
+ let properties: {[name: string]: any} = {};
40
+
41
+ if (this.namespaceName != null) {
42
+ properties["namespaceName"] = this.namespaceName;
43
+ }
44
+ if (this.campaignModelName != null) {
45
+ properties["campaignModelName"] = this.campaignModelName;
46
+ }
47
+ if (this.metadata != null) {
48
+ properties["metadata"] = this.metadata;
49
+ }
50
+
51
+ return properties;
52
+ }
53
+
54
+ public action(): string {
55
+ return "Gs2SerialKey:IssueOnce";
56
+ }
57
+ }
@@ -5,8 +5,9 @@ export default class VerifyCodeByUserId extends VerifyAction {
5
5
  private readonly userId;
6
6
  private readonly code;
7
7
  private readonly verifyType;
8
+ private readonly campaignModelName;
8
9
  private readonly timeOffsetToken;
9
- constructor(namespaceName: string, code: string, verifyType: SerialKeyVerifyType, timeOffsetToken?: string | null, userId?: string);
10
+ constructor(namespaceName: string, code: string, verifyType: SerialKeyVerifyType, campaignModelName?: string | null, timeOffsetToken?: string | null, userId?: string);
10
11
  request(): {
11
12
  [name: string]: any;
12
13
  };
@@ -17,12 +17,14 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const model_1 = require("../../core/model");
19
19
  class VerifyCodeByUserId extends model_1.VerifyAction {
20
- constructor(namespaceName, code, verifyType, timeOffsetToken = null, userId = "#{userId}") {
20
+ constructor(namespaceName, code, verifyType, campaignModelName = null, timeOffsetToken = null, userId = "#{userId}") {
21
21
  super();
22
+ this.campaignModelName = null;
22
23
  this.timeOffsetToken = null;
23
24
  this.namespaceName = namespaceName;
24
25
  this.code = code;
25
26
  this.verifyType = verifyType;
27
+ this.campaignModelName = campaignModelName !== null && campaignModelName !== void 0 ? campaignModelName : null;
26
28
  this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
27
29
  this.userId = userId;
28
30
  }
@@ -37,6 +39,9 @@ class VerifyCodeByUserId extends model_1.VerifyAction {
37
39
  if (this.code != null) {
38
40
  properties["code"] = this.code;
39
41
  }
42
+ if (this.campaignModelName != null) {
43
+ properties["campaignModelName"] = this.campaignModelName;
44
+ }
40
45
  if (this.verifyType != null) {
41
46
  properties["verifyType"] = this.verifyType;
42
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"VerifyCodeByUserId.js","sourceRoot":"","sources":["VerifyCodeByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAG5E,MAAqB,kBAAmB,SAAQ,oBAAY;IAQxD,YACI,aAAqB,EACrB,IAAY,EACZ,UAA+B,EAC/B,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAVK,oBAAe,GAAgB,IAAI,CAAC;QAYjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,eAAe,GAAG,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,IAAI,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,OAAO;QAEV,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CA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QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,OAAO;QAEV,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,iCAAiC,CAAC;IAC7C,CAAC;CACJ;AAxDD,qCAwDC"}
@@ -22,6 +22,7 @@ export default class VerifyCodeByUserId extends VerifyAction {
22
22
  private readonly userId: string;
23
23
  private readonly code: string;
24
24
  private readonly verifyType: SerialKeyVerifyType;
25
+ private readonly campaignModelName: string|null = null;
25
26
  private readonly timeOffsetToken: string|null = null;
26
27
 
27
28
 
@@ -29,6 +30,7 @@ export default class VerifyCodeByUserId extends VerifyAction {
29
30
  namespaceName: string,
30
31
  code: string,
31
32
  verifyType: SerialKeyVerifyType,
33
+ campaignModelName: string|null = null,
32
34
  timeOffsetToken: string|null = null,
33
35
  userId: string = "#{userId}",
34
36
  ) {
@@ -37,6 +39,7 @@ export default class VerifyCodeByUserId extends VerifyAction {
37
39
  this.namespaceName = namespaceName;
38
40
  this.code = code;
39
41
  this.verifyType = verifyType;
42
+ this.campaignModelName = campaignModelName ?? null;
40
43
  this.timeOffsetToken = timeOffsetToken ?? null;
41
44
  this.userId = userId;
42
45
  }
@@ -54,6 +57,9 @@ export default class VerifyCodeByUserId extends VerifyAction {
54
57
  if (this.code != null) {
55
58
  properties["code"] = this.code;
56
59
  }
60
+ if (this.campaignModelName != null) {
61
+ properties["campaignModelName"] = this.campaignModelName;
62
+ }
57
63
  if (this.verifyType != null) {
58
64
  properties["verifyType"] = this.verifyType;
59
65
  }
@@ -1,4 +1,5 @@
1
1
  import RevertUseByUserId from "./RevertUseByUserId";
2
+ import IssueOnce from "./IssueOnce";
2
3
  import UseByUserId from "./UseByUserId";
3
4
  import VerifyCodeByUserId from "./VerifyCodeByUserId";
4
- export { RevertUseByUserId, UseByUserId, VerifyCodeByUserId, };
5
+ export { RevertUseByUserId, IssueOnce, UseByUserId, VerifyCodeByUserId, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VerifyCodeByUserId = exports.UseByUserId = exports.RevertUseByUserId = void 0;
3
+ exports.VerifyCodeByUserId = exports.UseByUserId = exports.IssueOnce = exports.RevertUseByUserId = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -19,6 +19,8 @@ const tslib_1 = require("tslib");
19
19
  */
20
20
  const RevertUseByUserId_1 = tslib_1.__importDefault(require("./RevertUseByUserId"));
21
21
  exports.RevertUseByUserId = RevertUseByUserId_1.default;
22
+ const IssueOnce_1 = tslib_1.__importDefault(require("./IssueOnce"));
23
+ exports.IssueOnce = IssueOnce_1.default;
22
24
  const UseByUserId_1 = tslib_1.__importDefault(require("./UseByUserId"));
23
25
  exports.UseByUserId = UseByUserId_1.default;
24
26
  const VerifyCodeByUserId_1 = tslib_1.__importDefault(require("./VerifyCodeByUserId"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oFAAoD;AAKhD,4BALG,2BAAiB,CAKH;AAJrB,wEAAwC;AAKpC,sBALG,qBAAW,CAKH;AAJf,sFAAsD;AAKlD,6BALG,4BAAkB,CAKH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oFAAoD;AAMhD,4BANG,2BAAiB,CAMH;AALrB,oEAAoC;AAMhC,oBANG,mBAAS,CAMH;AALb,wEAAwC;AAMpC,sBANG,qBAAW,CAMH;AALf,sFAAsD;AAMlD,6BANG,4BAAkB,CAMH"}
@@ -14,11 +14,13 @@
14
14
  * permissions and limitations under the License.
15
15
  */
16
16
  import RevertUseByUserId from "./RevertUseByUserId";
17
+ import IssueOnce from "./IssueOnce";
17
18
  import UseByUserId from "./UseByUserId";
18
19
  import VerifyCodeByUserId from "./VerifyCodeByUserId";
19
20
 
20
21
  export {
21
22
  RevertUseByUserId,
23
+ IssueOnce,
22
24
  UseByUserId,
23
25
  VerifyCodeByUserId,
24
26
  }