gs2-cdk 1.0.151 → 1.0.153

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 (51) hide show
  1. package/account/model/IssuedCodeSetting.d.ts +10 -0
  2. package/account/model/IssuedCodeSetting.js +26 -0
  3. package/account/model/IssuedCodeSetting.js.map +1 -0
  4. package/account/model/IssuedCodeSetting.ts +49 -0
  5. package/account/model/TakeOverTypeModel.d.ts +10 -2
  6. package/account/model/TakeOverTypeModel.js +27 -4
  7. package/account/model/TakeOverTypeModel.js.map +1 -1
  8. package/account/model/TakeOverTypeModel.ts +48 -3
  9. package/account/model/enums/TakeOverTypeModelTakeOverMethod.d.ts +5 -0
  10. package/account/model/enums/TakeOverTypeModelTakeOverMethod.js +23 -0
  11. package/account/model/enums/TakeOverTypeModelTakeOverMethod.js.map +1 -0
  12. package/account/model/enums/TakeOverTypeModelTakeOverMethod.ts +23 -0
  13. package/account/model/index.d.ts +6 -1
  14. package/account/model/index.js +5 -1
  15. package/account/model/index.js.map +1 -1
  16. package/account/model/index.ts +10 -0
  17. package/account/model/options/IssuedCodeSettingOptions.d.ts +3 -0
  18. package/account/model/options/IssuedCodeSettingOptions.js +18 -0
  19. package/account/model/options/IssuedCodeSettingOptions.js.map +1 -0
  20. package/account/model/options/IssuedCodeSettingOptions.ts +20 -0
  21. package/account/model/options/TakeOverTypeModelOptions.d.ts +4 -0
  22. package/account/model/options/TakeOverTypeModelOptions.ts +4 -0
  23. package/account/model/options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions.d.ts +3 -0
  24. package/account/model/options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions.js +3 -0
  25. package/account/model/options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions.js.map +1 -0
  26. package/account/model/options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions.ts +23 -0
  27. package/account/model/options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions.d.ts +3 -0
  28. package/account/model/options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions.js +3 -0
  29. package/account/model/options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions.js.map +1 -0
  30. package/account/model/options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions.ts +23 -0
  31. package/adReward/ref/NamespaceRef.d.ts +3 -0
  32. package/adReward/ref/NamespaceRef.js +4 -0
  33. package/adReward/ref/NamespaceRef.js.map +1 -1
  34. package/adReward/ref/NamespaceRef.ts +17 -0
  35. package/adReward/stampSheet/VerifyPointByUserId.d.ts +15 -0
  36. package/adReward/stampSheet/VerifyPointByUserId.js +58 -0
  37. package/adReward/stampSheet/VerifyPointByUserId.js.map +1 -0
  38. package/adReward/stampSheet/VerifyPointByUserId.ts +76 -0
  39. package/adReward/stampSheet/enums/PointVerifyType.d.ts +9 -0
  40. package/adReward/stampSheet/enums/PointVerifyType.js +27 -0
  41. package/adReward/stampSheet/enums/PointVerifyType.js.map +1 -0
  42. package/adReward/stampSheet/enums/PointVerifyType.ts +27 -0
  43. package/adReward/stampSheet/index.d.ts +2 -1
  44. package/adReward/stampSheet/index.js +3 -1
  45. package/adReward/stampSheet/index.js.map +1 -1
  46. package/adReward/stampSheet/index.ts +2 -0
  47. package/package.json +1 -1
  48. package/realtime/model/index.d.ts +3 -1
  49. package/realtime/model/index.js +3 -1
  50. package/realtime/model/index.js.map +1 -1
  51. package/realtime/model/index.ts +4 -0
@@ -0,0 +1,10 @@
1
+ import { IssuedCodeSettingOptions } from "./options/IssuedCodeSettingOptions";
2
+ export default class IssuedCodeSetting {
3
+ private readonly expiresDays;
4
+ private readonly deleteOnUse;
5
+ private readonly maxFailedAttempts;
6
+ constructor(expiresDays: number, deleteOnUse: boolean, options?: IssuedCodeSettingOptions | null);
7
+ properties(): {
8
+ [name: string]: any;
9
+ };
10
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class IssuedCodeSetting {
4
+ constructor(expiresDays, deleteOnUse, options = null) {
5
+ var _a;
6
+ this.maxFailedAttempts = null;
7
+ this.expiresDays = expiresDays;
8
+ this.deleteOnUse = deleteOnUse;
9
+ this.maxFailedAttempts = (_a = options === null || options === void 0 ? void 0 : options.maxFailedAttempts) !== null && _a !== void 0 ? _a : null;
10
+ }
11
+ properties() {
12
+ let properties = {};
13
+ if (this.expiresDays != null) {
14
+ properties["expiresDays"] = this.expiresDays;
15
+ }
16
+ if (this.maxFailedAttempts != null) {
17
+ properties["maxFailedAttempts"] = this.maxFailedAttempts;
18
+ }
19
+ if (this.deleteOnUse != null) {
20
+ properties["deleteOnUse"] = this.deleteOnUse;
21
+ }
22
+ return properties;
23
+ }
24
+ }
25
+ exports.default = IssuedCodeSetting;
26
+ //# sourceMappingURL=IssuedCodeSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IssuedCodeSetting.js","sourceRoot":"","sources":["IssuedCodeSetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,iBAAiB;IAKlC,YACI,WAAmB,EACnB,WAAoB,EACpB,UAAyC,IAAI;;QALhC,sBAAiB,GAAgB,IAAI,CAAC;QAOnD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,mCAAI,IAAI,CAAC;IAChE,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA/BD,oCA+BC"}
@@ -0,0 +1,49 @@
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 { IssuedCodeSettingOptions } from "./options/IssuedCodeSettingOptions";
17
+
18
+ export default class IssuedCodeSetting {
19
+ private readonly expiresDays: number;
20
+ private readonly deleteOnUse: boolean;
21
+ private readonly maxFailedAttempts: number|null = null;
22
+
23
+ public constructor(
24
+ expiresDays: number,
25
+ deleteOnUse: boolean,
26
+ options: IssuedCodeSettingOptions|null = null,
27
+ ) {
28
+ this.expiresDays = expiresDays;
29
+ this.deleteOnUse = deleteOnUse;
30
+ this.maxFailedAttempts = options?.maxFailedAttempts ?? null;
31
+ }
32
+
33
+ public properties(
34
+ ): {[name: string]: any} {
35
+ let properties: {[name: string]: any} = {};
36
+
37
+ if (this.expiresDays != null) {
38
+ properties["expiresDays"] = this.expiresDays;
39
+ }
40
+ if (this.maxFailedAttempts != null) {
41
+ properties["maxFailedAttempts"] = this.maxFailedAttempts;
42
+ }
43
+ if (this.deleteOnUse != null) {
44
+ properties["deleteOnUse"] = this.deleteOnUse;
45
+ }
46
+
47
+ return properties;
48
+ }
49
+ }
@@ -1,10 +1,18 @@
1
1
  import OpenIdConnectSetting from "./OpenIdConnectSetting";
2
+ import IssuedCodeSetting from "./IssuedCodeSetting";
2
3
  import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
4
+ import { TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions } from "./options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions";
5
+ import { TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions } from "./options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions";
6
+ import { TakeOverTypeModelTakeOverMethod } from "./enums/TakeOverTypeModelTakeOverMethod";
3
7
  export default class TakeOverTypeModel {
4
8
  private readonly type;
5
- private readonly openIdConnectSetting;
9
+ private readonly takeOverMethod;
6
10
  private readonly metadata;
7
- constructor(type: number, openIdConnectSetting: OpenIdConnectSetting, options?: TakeOverTypeModelOptions | null);
11
+ private readonly openIdConnectSetting;
12
+ private readonly issuedCodeSetting;
13
+ constructor(type: number, takeOverMethod: TakeOverTypeModelTakeOverMethod, options?: TakeOverTypeModelOptions | null);
14
+ static takeOverMethodIsOpenIdConnect(type: number, openIdConnectSetting: OpenIdConnectSetting, options?: TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions | null): TakeOverTypeModel;
15
+ static takeOverMethodIsIssuedCode(type: number, issuedCodeSetting: IssuedCodeSetting, options?: TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions | null): TakeOverTypeModel;
8
16
  properties(): {
9
17
  [name: string]: any;
10
18
  };
@@ -1,15 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const TakeOverTypeModelTakeOverMethod_1 = require("./enums/TakeOverTypeModelTakeOverMethod");
3
4
  class TakeOverTypeModel {
4
- constructor(type, openIdConnectSetting, options = null) {
5
- var _a;
5
+ constructor(type, takeOverMethod, options = null) {
6
+ var _a, _b, _c;
6
7
  this.metadata = null;
8
+ this.openIdConnectSetting = null;
9
+ this.issuedCodeSetting = null;
7
10
  this.type = type;
8
- this.openIdConnectSetting = openIdConnectSetting;
11
+ this.takeOverMethod = takeOverMethod;
9
12
  this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
13
+ this.openIdConnectSetting = (_b = options === null || options === void 0 ? void 0 : options.openIdConnectSetting) !== null && _b !== void 0 ? _b : null;
14
+ this.issuedCodeSetting = (_c = options === null || options === void 0 ? void 0 : options.issuedCodeSetting) !== null && _c !== void 0 ? _c : null;
15
+ }
16
+ static takeOverMethodIsOpenIdConnect(type, openIdConnectSetting, options = null) {
17
+ return new TakeOverTypeModel(type, TakeOverTypeModelTakeOverMethod_1.TakeOverTypeModelTakeOverMethod.OPEN_ID_CONNECT, {
18
+ openIdConnectSetting: openIdConnectSetting,
19
+ metadata: options === null || options === void 0 ? void 0 : options.metadata,
20
+ });
21
+ }
22
+ static takeOverMethodIsIssuedCode(type, issuedCodeSetting, options = null) {
23
+ return new TakeOverTypeModel(type, TakeOverTypeModelTakeOverMethod_1.TakeOverTypeModelTakeOverMethod.ISSUED_CODE, {
24
+ issuedCodeSetting: issuedCodeSetting,
25
+ metadata: options === null || options === void 0 ? void 0 : options.metadata,
26
+ });
10
27
  }
11
28
  properties() {
12
- var _a;
29
+ var _a, _b;
13
30
  let properties = {};
14
31
  if (this.type != null) {
15
32
  properties["type"] = this.type;
@@ -17,9 +34,15 @@ class TakeOverTypeModel {
17
34
  if (this.metadata != null) {
18
35
  properties["metadata"] = this.metadata;
19
36
  }
37
+ if (this.takeOverMethod != null) {
38
+ properties["takeOverMethod"] = this.takeOverMethod;
39
+ }
20
40
  if (this.openIdConnectSetting != null) {
21
41
  properties["openIdConnectSetting"] = (_a = this.openIdConnectSetting) === null || _a === void 0 ? void 0 : _a.properties();
22
42
  }
43
+ if (this.issuedCodeSetting != null) {
44
+ properties["issuedCodeSetting"] = (_b = this.issuedCodeSetting) === null || _b === void 0 ? void 0 : _b.properties();
45
+ }
23
46
  return properties;
24
47
  }
25
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TakeOverTypeModel.js","sourceRoot":"","sources":["TakeOverTypeModel.ts"],"names":[],"mappings":";;AAmBA,MAAqB,iBAAiB;IAKlC,YACI,IAAY,EACZ,oBAA0C,EAC1C,UAAyC,IAAI;;QALhC,aAAQ,GAAgB,IAAI,CAAC;QAO1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE;YACnC,UAAU,CAAC,sBAAsB,CAAC,GAAG,MAAA,IAAI,CAAC,oBAAoB,0CAAE,UAAU,EACzE,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,oCAgCC"}
1
+ {"version":3,"file":"TakeOverTypeModel.js","sourceRoot":"","sources":["TakeOverTypeModel.ts"],"names":[],"mappings":";;AAqBA,6FAA0F;AAE1F,MAAqB,iBAAiB;IAOlC,YACI,IAAY,EACZ,cAA+C,EAC/C,UAAyC,IAAI;;QAPhC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,yBAAoB,GAA8B,IAAI,CAAC;QACvD,sBAAiB,GAA2B,IAAI,CAAC;QAO9D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,oBAAoB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB,mCAAI,IAAI,CAAC;QAClE,IAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,mCAAI,IAAI,CAAC;IAChE,CAAC;IAEM,MAAM,CAAC,6BAA6B,CACvC,IAAY,EACZ,oBAA0C,EAC1C,UAAsE,IAAI;QAE1E,OAAO,IAAI,iBAAiB,CACxB,IAAI,EACJ,iEAA+B,CAAC,eAAe,EAC/C;YACI,oBAAoB,EAAE,oBAAoB;YAC1C,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;SAC9B,CACJ,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,0BAA0B,CACpC,IAAY,EACZ,iBAAoC,EACpC,UAAmE,IAAI;QAEvE,OAAO,IAAI,iBAAiB,CACxB,IAAI,EACJ,iEAA+B,CAAC,WAAW,EAC3C;YACI,iBAAiB,EAAE,iBAAiB;YACpC,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;SAC9B,CACJ,CAAC;IACN,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE;YACnC,UAAU,CAAC,sBAAsB,CAAC,GAAG,MAAA,IAAI,CAAC,oBAAoB,0CAAE,UAAU,EACzE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,MAAA,IAAI,CAAC,iBAAiB,0CAAE,UAAU,EACnE,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAzED,oCAyEC"}
@@ -15,21 +15,59 @@
15
15
  */
16
16
  import ScopeValue from "./ScopeValue";
17
17
  import OpenIdConnectSetting from "./OpenIdConnectSetting";
18
+ import IssuedCodeSetting from "./IssuedCodeSetting";
18
19
  import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
20
+ import { TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions } from "./options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions";
21
+ import { TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions } from "./options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions";
22
+ import { TakeOverTypeModelTakeOverMethod } from "./enums/TakeOverTypeModelTakeOverMethod";
19
23
 
20
24
  export default class TakeOverTypeModel {
21
25
  private readonly type: number;
22
- private readonly openIdConnectSetting: OpenIdConnectSetting;
26
+ private readonly takeOverMethod: TakeOverTypeModelTakeOverMethod;
23
27
  private readonly metadata: string|null = null;
28
+ private readonly openIdConnectSetting: OpenIdConnectSetting|null = null;
29
+ private readonly issuedCodeSetting: IssuedCodeSetting|null = null;
24
30
 
25
31
  public constructor(
26
32
  type: number,
27
- openIdConnectSetting: OpenIdConnectSetting,
33
+ takeOverMethod: TakeOverTypeModelTakeOverMethod,
28
34
  options: TakeOverTypeModelOptions|null = null,
29
35
  ) {
30
36
  this.type = type;
31
- this.openIdConnectSetting = openIdConnectSetting;
37
+ this.takeOverMethod = takeOverMethod;
32
38
  this.metadata = options?.metadata ?? null;
39
+ this.openIdConnectSetting = options?.openIdConnectSetting ?? null;
40
+ this.issuedCodeSetting = options?.issuedCodeSetting ?? null;
41
+ }
42
+
43
+ public static takeOverMethodIsOpenIdConnect(
44
+ type: number,
45
+ openIdConnectSetting: OpenIdConnectSetting,
46
+ options: TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions|null = null,
47
+ ): TakeOverTypeModel {
48
+ return new TakeOverTypeModel(
49
+ type,
50
+ TakeOverTypeModelTakeOverMethod.OPEN_ID_CONNECT,
51
+ {
52
+ openIdConnectSetting: openIdConnectSetting,
53
+ metadata: options?.metadata,
54
+ },
55
+ );
56
+ }
57
+
58
+ public static takeOverMethodIsIssuedCode(
59
+ type: number,
60
+ issuedCodeSetting: IssuedCodeSetting,
61
+ options: TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions|null = null,
62
+ ): TakeOverTypeModel {
63
+ return new TakeOverTypeModel(
64
+ type,
65
+ TakeOverTypeModelTakeOverMethod.ISSUED_CODE,
66
+ {
67
+ issuedCodeSetting: issuedCodeSetting,
68
+ metadata: options?.metadata,
69
+ },
70
+ );
33
71
  }
34
72
 
35
73
  public properties(
@@ -42,10 +80,17 @@ export default class TakeOverTypeModel {
42
80
  if (this.metadata != null) {
43
81
  properties["metadata"] = this.metadata;
44
82
  }
83
+ if (this.takeOverMethod != null) {
84
+ properties["takeOverMethod"] = this.takeOverMethod;
85
+ }
45
86
  if (this.openIdConnectSetting != null) {
46
87
  properties["openIdConnectSetting"] = this.openIdConnectSetting?.properties(
47
88
  );
48
89
  }
90
+ if (this.issuedCodeSetting != null) {
91
+ properties["issuedCodeSetting"] = this.issuedCodeSetting?.properties(
92
+ );
93
+ }
49
94
 
50
95
  return properties;
51
96
  }
@@ -0,0 +1,5 @@
1
+ export declare const TakeOverTypeModelTakeOverMethod: {
2
+ readonly OPEN_ID_CONNECT: "openIdConnect";
3
+ readonly ISSUED_CODE: "issuedCode";
4
+ };
5
+ export type TakeOverTypeModelTakeOverMethod = typeof TakeOverTypeModelTakeOverMethod[keyof typeof TakeOverTypeModelTakeOverMethod];
@@ -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.TakeOverTypeModelTakeOverMethod = void 0;
19
+ exports.TakeOverTypeModelTakeOverMethod = {
20
+ OPEN_ID_CONNECT: "openIdConnect",
21
+ ISSUED_CODE: "issuedCode",
22
+ };
23
+ //# sourceMappingURL=TakeOverTypeModelTakeOverMethod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TakeOverTypeModelTakeOverMethod.js","sourceRoot":"","sources":["TakeOverTypeModelTakeOverMethod.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,+BAA+B,GAAG;IAC3C,eAAe,EAAE,eAAe;IAChC,WAAW,EAAE,YAAY;CACnB,CAAC"}
@@ -0,0 +1,23 @@
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
+
18
+
19
+ export const TakeOverTypeModelTakeOverMethod = {
20
+ OPEN_ID_CONNECT: "openIdConnect",
21
+ ISSUED_CODE: "issuedCode",
22
+ } as const;
23
+ export type TakeOverTypeModelTakeOverMethod = typeof TakeOverTypeModelTakeOverMethod[keyof typeof TakeOverTypeModelTakeOverMethod];
@@ -2,8 +2,13 @@ import Namespace from "./Namespace";
2
2
  import { NamespaceOptions } from "./options/NamespaceOptions";
3
3
  import TakeOverTypeModel from "./TakeOverTypeModel";
4
4
  import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
5
+ import { TakeOverTypeModelTakeOverMethod } from "./enums/TakeOverTypeModelTakeOverMethod";
6
+ import { TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions } from "./options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions";
7
+ import { TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions } from "./options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions";
5
8
  import OpenIdConnectSetting from "./OpenIdConnectSetting";
6
9
  import { OpenIdConnectSettingOptions } from "./options/OpenIdConnectSettingOptions";
10
+ import IssuedCodeSetting from "./IssuedCodeSetting";
11
+ import { IssuedCodeSettingOptions } from "./options/IssuedCodeSettingOptions";
7
12
  import ScopeValue from "./ScopeValue";
8
13
  import { ScopeValueOptions } from "./options/ScopeValueOptions";
9
14
  import PlatformUser from "./PlatformUser";
@@ -17,4 +22,4 @@ import { AccountDeletionSettingCleanUserDataScope } from "./enums/AccountDeletio
17
22
  import TransactionSettingV2 from "./TransactionSettingV2";
18
23
  import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
19
24
  import CurrentMasterData from "./CurrentMasterData";
20
- export { Namespace, NamespaceOptions, TakeOverTypeModel, TakeOverTypeModelOptions, OpenIdConnectSetting, OpenIdConnectSettingOptions, ScopeValue, ScopeValueOptions, PlatformUser, PlatformUserOptions, BanStatus, BanStatusOptions, AccountDeletionSetting, AccountDeletionSettingOptions, AccountDeletionSettingLoginDuringGracePeriod, AccountDeletionSettingCleanUserDataScope, TransactionSettingV2, TransactionSettingV2Options, CurrentMasterData, };
25
+ export { Namespace, NamespaceOptions, TakeOverTypeModel, TakeOverTypeModelOptions, TakeOverTypeModelTakeOverMethod, TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions, TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions, OpenIdConnectSetting, OpenIdConnectSettingOptions, IssuedCodeSetting, IssuedCodeSettingOptions, ScopeValue, ScopeValueOptions, PlatformUser, PlatformUserOptions, BanStatus, BanStatusOptions, AccountDeletionSetting, AccountDeletionSettingOptions, AccountDeletionSettingLoginDuringGracePeriod, AccountDeletionSettingCleanUserDataScope, TransactionSettingV2, TransactionSettingV2Options, CurrentMasterData, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CurrentMasterData = exports.TransactionSettingV2 = exports.AccountDeletionSettingCleanUserDataScope = exports.AccountDeletionSettingLoginDuringGracePeriod = exports.AccountDeletionSetting = exports.BanStatus = exports.PlatformUser = exports.ScopeValue = exports.OpenIdConnectSetting = exports.TakeOverTypeModel = exports.Namespace = void 0;
3
+ exports.CurrentMasterData = exports.TransactionSettingV2 = exports.AccountDeletionSettingCleanUserDataScope = exports.AccountDeletionSettingLoginDuringGracePeriod = exports.AccountDeletionSetting = exports.BanStatus = exports.PlatformUser = exports.ScopeValue = exports.IssuedCodeSetting = exports.OpenIdConnectSetting = exports.TakeOverTypeModelTakeOverMethod = exports.TakeOverTypeModel = exports.Namespace = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -21,8 +21,12 @@ const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
21
21
  exports.Namespace = Namespace_1.default;
22
22
  const TakeOverTypeModel_1 = tslib_1.__importDefault(require("./TakeOverTypeModel"));
23
23
  exports.TakeOverTypeModel = TakeOverTypeModel_1.default;
24
+ const TakeOverTypeModelTakeOverMethod_1 = require("./enums/TakeOverTypeModelTakeOverMethod");
25
+ Object.defineProperty(exports, "TakeOverTypeModelTakeOverMethod", { enumerable: true, get: function () { return TakeOverTypeModelTakeOverMethod_1.TakeOverTypeModelTakeOverMethod; } });
24
26
  const OpenIdConnectSetting_1 = tslib_1.__importDefault(require("./OpenIdConnectSetting"));
25
27
  exports.OpenIdConnectSetting = OpenIdConnectSetting_1.default;
28
+ const IssuedCodeSetting_1 = tslib_1.__importDefault(require("./IssuedCodeSetting"));
29
+ exports.IssuedCodeSetting = IssuedCodeSetting_1.default;
26
30
  const ScopeValue_1 = tslib_1.__importDefault(require("./ScopeValue"));
27
31
  exports.ScopeValue = ScopeValue_1.default;
28
32
  const PlatformUser_1 = tslib_1.__importDefault(require("./PlatformUser"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAqBhC,oBArBG,mBAAS,CAqBH;AAnBb,oFAAoD;AAqBhD,4BArBG,2BAAiB,CAqBH;AAnBrB,0FAA0D;AAqBtD,+BArBG,8BAAoB,CAqBH;AAnBxB,sEAAsC;AAqBlC,qBArBG,oBAAU,CAqBH;AAnBd,0EAA0C;AAqBtC,uBArBG,sBAAY,CAqBH;AAnBhB,oEAAoC;AAqBhC,oBArBG,mBAAS,CAqBH;AAnBb,8FAA8D;AAqB1D,iCArBG,gCAAsB,CAqBH;AAnB1B,uHAAoH;AAqBhH,6HArBK,2FAA4C,OAqBL;AApBhD,+GAA4G;AAqBxG,yHArBK,mFAAwC,OAqBL;AApB5C,0FAA0D;AAqBtD,+BArBG,8BAAoB,CAqBH;AAnBxB,oFAAoD;AAqBhD,4BArBG,2BAAiB,CAqBH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AA0BhC,oBA1BG,mBAAS,CA0BH;AAxBb,oFAAoD;AA0BhD,4BA1BG,2BAAiB,CA0BH;AAxBrB,6FAA0F;AA0BtF,gHA1BK,iEAA+B,OA0BL;AAvBnC,0FAA0D;AA0BtD,+BA1BG,8BAAoB,CA0BH;AAxBxB,oFAAoD;AA0BhD,4BA1BG,2BAAiB,CA0BH;AAxBrB,sEAAsC;AA0BlC,qBA1BG,oBAAU,CA0BH;AAxBd,0EAA0C;AA0BtC,uBA1BG,sBAAY,CA0BH;AAxBhB,oEAAoC;AA0BhC,oBA1BG,mBAAS,CA0BH;AAxBb,8FAA8D;AA0B1D,iCA1BG,gCAAsB,CA0BH;AAxB1B,uHAAoH;AA0BhH,6HA1BK,2FAA4C,OA0BL;AAzBhD,+GAA4G;AA0BxG,yHA1BK,mFAAwC,OA0BL;AAzB5C,0FAA0D;AA0BtD,+BA1BG,8BAAoB,CA0BH;AAxBxB,oFAAoD;AA0BhD,4BA1BG,2BAAiB,CA0BH"}
@@ -17,8 +17,13 @@ import Namespace from "./Namespace";
17
17
  import { NamespaceOptions } from "./options/NamespaceOptions";
18
18
  import TakeOverTypeModel from "./TakeOverTypeModel";
19
19
  import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
20
+ import { TakeOverTypeModelTakeOverMethod } from "./enums/TakeOverTypeModelTakeOverMethod";
21
+ import { TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions } from "./options/TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions"
22
+ import { TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions } from "./options/TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions"
20
23
  import OpenIdConnectSetting from "./OpenIdConnectSetting";
21
24
  import { OpenIdConnectSettingOptions } from "./options/OpenIdConnectSettingOptions";
25
+ import IssuedCodeSetting from "./IssuedCodeSetting";
26
+ import { IssuedCodeSettingOptions } from "./options/IssuedCodeSettingOptions";
22
27
  import ScopeValue from "./ScopeValue";
23
28
  import { ScopeValueOptions } from "./options/ScopeValueOptions";
24
29
  import PlatformUser from "./PlatformUser";
@@ -38,8 +43,13 @@ export {
38
43
  NamespaceOptions,
39
44
  TakeOverTypeModel,
40
45
  TakeOverTypeModelOptions,
46
+ TakeOverTypeModelTakeOverMethod,
47
+ TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions,
48
+ TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions,
41
49
  OpenIdConnectSetting,
42
50
  OpenIdConnectSettingOptions,
51
+ IssuedCodeSetting,
52
+ IssuedCodeSettingOptions,
43
53
  ScopeValue,
44
54
  ScopeValueOptions,
45
55
  PlatformUser,
@@ -0,0 +1,3 @@
1
+ export interface IssuedCodeSettingOptions {
2
+ maxFailedAttempts?: number | null;
3
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ //# sourceMappingURL=IssuedCodeSettingOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IssuedCodeSettingOptions.js","sourceRoot":"","sources":["IssuedCodeSettingOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -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
+
17
+ export interface IssuedCodeSettingOptions {
18
+ maxFailedAttempts?: number|null;
19
+ }
20
+
@@ -1,3 +1,7 @@
1
+ import OpenIdConnectSetting from "../OpenIdConnectSetting";
2
+ import IssuedCodeSetting from "../IssuedCodeSetting";
1
3
  export interface TakeOverTypeModelOptions {
2
4
  metadata?: string | null;
5
+ openIdConnectSetting?: OpenIdConnectSetting | null;
6
+ issuedCodeSetting?: IssuedCodeSetting | null;
3
7
  }
@@ -15,8 +15,12 @@
15
15
  */
16
16
  import ScopeValue from "../ScopeValue";
17
17
  import OpenIdConnectSetting from "../OpenIdConnectSetting";
18
+ import IssuedCodeSetting from "../IssuedCodeSetting";
19
+ import { TakeOverTypeModelTakeOverMethod } from "../enums/TakeOverTypeModelTakeOverMethod";
18
20
 
19
21
  export interface TakeOverTypeModelOptions {
20
22
  metadata?: string|null;
23
+ openIdConnectSetting?: OpenIdConnectSetting|null;
24
+ issuedCodeSetting?: IssuedCodeSetting|null;
21
25
  }
22
26
 
@@ -0,0 +1,3 @@
1
+ export interface TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions {
2
+ metadata?: string | null;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions.js","sourceRoot":"","sources":["TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
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 ScopeValue from "../ScopeValue";
17
+ import OpenIdConnectSetting from "../OpenIdConnectSetting";
18
+ import IssuedCodeSetting from "../IssuedCodeSetting";
19
+ import { TakeOverTypeModelTakeOverMethod } from "../enums/TakeOverTypeModelTakeOverMethod";
20
+
21
+ export interface TakeOverTypeModelTakeOverMethodIsIssuedCodeOptions {
22
+ metadata?: string|null;
23
+ }
@@ -0,0 +1,3 @@
1
+ export interface TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions {
2
+ metadata?: string | null;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions.js","sourceRoot":"","sources":["TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
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 ScopeValue from "../ScopeValue";
17
+ import OpenIdConnectSetting from "../OpenIdConnectSetting";
18
+ import IssuedCodeSetting from "../IssuedCodeSetting";
19
+ import { TakeOverTypeModelTakeOverMethod } from "../enums/TakeOverTypeModelTakeOverMethod";
20
+
21
+ export interface TakeOverTypeModelTakeOverMethodIsOpenIdConnectOptions {
22
+ metadata?: string|null;
23
+ }
@@ -1,9 +1,12 @@
1
1
  import AcquirePointByUserId from "../stampSheet/AcquirePointByUserId";
2
2
  import ConsumePointByUserId from "../stampSheet/ConsumePointByUserId";
3
+ import VerifyPointByUserId from "../stampSheet/VerifyPointByUserId";
4
+ import { PointVerifyType } from "../stampSheet/enums/PointVerifyType";
3
5
  export default class NamespaceRef {
4
6
  private readonly namespaceName;
5
7
  constructor(namespaceName: string);
6
8
  acquirePoint(point: number, userId?: string): AcquirePointByUserId;
7
9
  consumePoint(point: number, userId?: string): ConsumePointByUserId;
10
+ verifyPoint(verifyType: PointVerifyType, point: number, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyPointByUserId;
8
11
  grn(): string;
9
12
  }
@@ -19,6 +19,7 @@ const tslib_1 = require("tslib");
19
19
  const func_1 = require("../../core/func");
20
20
  const AcquirePointByUserId_1 = tslib_1.__importDefault(require("../stampSheet/AcquirePointByUserId"));
21
21
  const ConsumePointByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ConsumePointByUserId"));
22
+ const VerifyPointByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyPointByUserId"));
22
23
  class NamespaceRef {
23
24
  constructor(namespaceName) {
24
25
  this.namespaceName = namespaceName;
@@ -29,6 +30,9 @@ class NamespaceRef {
29
30
  consumePoint(point, userId = "#{userId}") {
30
31
  return new ConsumePointByUserId_1.default(this.namespaceName, point, userId);
31
32
  }
33
+ verifyPoint(verifyType, point, multiplyValueSpecifyingQuantity = null, userId = "#{userId}") {
34
+ return new VerifyPointByUserId_1.default(this.namespaceName, verifyType, point, multiplyValueSpecifyingQuantity, userId);
35
+ }
32
36
  grn() {
33
37
  return new func_1.Join(":", [
34
38
  "grn",
@@ -1 +1 @@
1
- {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,sGAAsE;AACtE,sGAAsE;AAEtE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,YAAY,CACf,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,YAAY,CACf,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,KAAK,EACL,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,UAAU;YACV,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAlDD,+BAkDC"}
1
+ {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,sGAAsE;AACtE,sGAAsE;AACtE,oGAAoE;AAGpE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,YAAY,CACf,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,YAAY,CACf,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,WAAW,CACd,UAA2B,EAC3B,KAAa,EACb,kCAAgD,IAAI,EACpD,SAAiB,WAAW;QAE5B,OAAO,IAAI,6BAAmB,CAC1B,IAAI,CAAC,aAAa,EAClB,UAAU,EACV,KAAK,EACL,+BAA+B,EAC/B,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,UAAU;YACV,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjED,+BAiEC"}
@@ -17,6 +17,8 @@
17
17
  import {GetAttr, Join} from "../../core/func";
18
18
  import AcquirePointByUserId from "../stampSheet/AcquirePointByUserId";
19
19
  import ConsumePointByUserId from "../stampSheet/ConsumePointByUserId";
20
+ import VerifyPointByUserId from "../stampSheet/VerifyPointByUserId";
21
+ import { PointVerifyType } from "../stampSheet/enums/PointVerifyType";
20
22
 
21
23
  export default class NamespaceRef {
22
24
  private readonly namespaceName: string;
@@ -49,6 +51,21 @@ export default class NamespaceRef {
49
51
  );
50
52
  }
51
53
 
54
+ public verifyPoint(
55
+ verifyType: PointVerifyType,
56
+ point: number,
57
+ multiplyValueSpecifyingQuantity: boolean|null = null,
58
+ userId: string = "#{userId}",
59
+ ): VerifyPointByUserId {
60
+ return new VerifyPointByUserId(
61
+ this.namespaceName,
62
+ verifyType,
63
+ point,
64
+ multiplyValueSpecifyingQuantity,
65
+ userId,
66
+ );
67
+ }
68
+
52
69
  public grn(
53
70
  ): string {
54
71
  return new Join(
@@ -0,0 +1,15 @@
1
+ import { VerifyAction } from "../../core/model";
2
+ import { PointVerifyType } from "./enums/PointVerifyType";
3
+ export default class VerifyPointByUserId extends VerifyAction {
4
+ private readonly namespaceName;
5
+ private readonly userId;
6
+ private readonly verifyType;
7
+ private readonly point;
8
+ private readonly multiplyValueSpecifyingQuantity;
9
+ private readonly timeOffsetToken;
10
+ constructor(namespaceName: string, verifyType: PointVerifyType, point: number, multiplyValueSpecifyingQuantity?: boolean | null, timeOffsetToken?: string | null, userId?: string);
11
+ request(): {
12
+ [name: string]: any;
13
+ };
14
+ action(): string;
15
+ }
@@ -0,0 +1,58 @@
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 VerifyPointByUserId extends model_1.VerifyAction {
20
+ constructor(namespaceName, verifyType, point, multiplyValueSpecifyingQuantity = null, timeOffsetToken = null, userId = "#{userId}") {
21
+ super();
22
+ this.multiplyValueSpecifyingQuantity = null;
23
+ this.timeOffsetToken = null;
24
+ this.namespaceName = namespaceName;
25
+ this.verifyType = verifyType;
26
+ this.point = point;
27
+ this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity !== null && multiplyValueSpecifyingQuantity !== void 0 ? multiplyValueSpecifyingQuantity : null;
28
+ this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
29
+ this.userId = userId;
30
+ }
31
+ request() {
32
+ let properties = {};
33
+ if (this.namespaceName != null) {
34
+ properties["namespaceName"] = this.namespaceName;
35
+ }
36
+ if (this.userId != null) {
37
+ properties["userId"] = this.userId;
38
+ }
39
+ if (this.verifyType != null) {
40
+ properties["verifyType"] = this.verifyType;
41
+ }
42
+ if (this.point != null) {
43
+ properties["point"] = this.point;
44
+ }
45
+ if (this.multiplyValueSpecifyingQuantity != null) {
46
+ properties["multiplyValueSpecifyingQuantity"] = this.multiplyValueSpecifyingQuantity;
47
+ }
48
+ if (this.timeOffsetToken != null) {
49
+ properties["timeOffsetToken"] = this.timeOffsetToken;
50
+ }
51
+ return properties;
52
+ }
53
+ action() {
54
+ return "Gs2AdReward:VerifyPointByUserId";
55
+ }
56
+ }
57
+ exports.default = VerifyPointByUserId;
58
+ //# sourceMappingURL=VerifyPointByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyPointByUserId.js","sourceRoot":"","sources":["VerifyPointByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAG5E,MAAqB,mBAAoB,SAAQ,oBAAY;IASzD,YACI,aAAqB,EACrB,UAA2B,EAC3B,KAAa,EACb,kCAAgD,IAAI,EACpD,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAZK,oCAA+B,GAAiB,IAAI,CAAC;QACrD,oBAAe,GAAgB,IAAI,CAAC;QAajD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,+BAA+B,GAAG,+BAA+B,aAA/B,+BAA+B,cAA/B,+BAA+B,GAAI,IAAI,CAAC;QAC/E,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,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,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,+BAA+B,IAAI,IAAI,EAAE;YAC9C,UAAU,CAAC,iCAAiC,CAAC,GAAG,IAAI,CAAC,+BAA+B,CAAC;SACxF;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,sCAwDC"}
@@ -0,0 +1,76 @@
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
+ import { PointVerifyType } from "./enums/PointVerifyType";
19
+
20
+ export default class VerifyPointByUserId extends VerifyAction {
21
+ private readonly namespaceName: string;
22
+ private readonly userId: string;
23
+ private readonly verifyType: PointVerifyType;
24
+ private readonly point: number;
25
+ private readonly multiplyValueSpecifyingQuantity: boolean|null = null;
26
+ private readonly timeOffsetToken: string|null = null;
27
+
28
+
29
+ public constructor(
30
+ namespaceName: string,
31
+ verifyType: PointVerifyType,
32
+ point: number,
33
+ multiplyValueSpecifyingQuantity: boolean|null = null,
34
+ timeOffsetToken: string|null = null,
35
+ userId: string = "#{userId}",
36
+ ) {
37
+ super();
38
+
39
+ this.namespaceName = namespaceName;
40
+ this.verifyType = verifyType;
41
+ this.point = point;
42
+ this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity ?? null;
43
+ this.timeOffsetToken = timeOffsetToken ?? null;
44
+ this.userId = userId;
45
+ }
46
+
47
+ public request(
48
+ ): {[name: string]: any} {
49
+ let properties: {[name: string]: any} = {};
50
+
51
+ if (this.namespaceName != null) {
52
+ properties["namespaceName"] = this.namespaceName;
53
+ }
54
+ if (this.userId != null) {
55
+ properties["userId"] = this.userId;
56
+ }
57
+ if (this.verifyType != null) {
58
+ properties["verifyType"] = this.verifyType;
59
+ }
60
+ if (this.point != null) {
61
+ properties["point"] = this.point;
62
+ }
63
+ if (this.multiplyValueSpecifyingQuantity != null) {
64
+ properties["multiplyValueSpecifyingQuantity"] = this.multiplyValueSpecifyingQuantity;
65
+ }
66
+ if (this.timeOffsetToken != null) {
67
+ properties["timeOffsetToken"] = this.timeOffsetToken;
68
+ }
69
+
70
+ return properties;
71
+ }
72
+
73
+ public action(): string {
74
+ return "Gs2AdReward:VerifyPointByUserId";
75
+ }
76
+ }
@@ -0,0 +1,9 @@
1
+ export declare const PointVerifyType: {
2
+ readonly LESS: "less";
3
+ readonly LESS_EQUAL: "lessEqual";
4
+ readonly GREATER: "greater";
5
+ readonly GREATER_EQUAL: "greaterEqual";
6
+ readonly EQUAL: "equal";
7
+ readonly NOT_EQUAL: "notEqual";
8
+ };
9
+ export type PointVerifyType = typeof PointVerifyType[keyof typeof PointVerifyType];
@@ -0,0 +1,27 @@
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.PointVerifyType = void 0;
19
+ exports.PointVerifyType = {
20
+ LESS: "less",
21
+ LESS_EQUAL: "lessEqual",
22
+ GREATER: "greater",
23
+ GREATER_EQUAL: "greaterEqual",
24
+ EQUAL: "equal",
25
+ NOT_EQUAL: "notEqual",
26
+ };
27
+ //# sourceMappingURL=PointVerifyType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PointVerifyType.js","sourceRoot":"","sources":["PointVerifyType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,eAAe,GAAG;IAC3B,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,WAAW;IACvB,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,cAAc;IAC7B,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,UAAU;CACf,CAAC"}
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+
18
+
19
+ export const PointVerifyType = {
20
+ LESS: "less",
21
+ LESS_EQUAL: "lessEqual",
22
+ GREATER: "greater",
23
+ GREATER_EQUAL: "greaterEqual",
24
+ EQUAL: "equal",
25
+ NOT_EQUAL: "notEqual",
26
+ } as const;
27
+ export type PointVerifyType = typeof PointVerifyType[keyof typeof PointVerifyType];
@@ -1,3 +1,4 @@
1
1
  import AcquirePointByUserId from "./AcquirePointByUserId";
2
2
  import ConsumePointByUserId from "./ConsumePointByUserId";
3
- export { AcquirePointByUserId, ConsumePointByUserId, };
3
+ import VerifyPointByUserId from "./VerifyPointByUserId";
4
+ export { AcquirePointByUserId, ConsumePointByUserId, VerifyPointByUserId, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConsumePointByUserId = exports.AcquirePointByUserId = void 0;
3
+ exports.VerifyPointByUserId = exports.ConsumePointByUserId = exports.AcquirePointByUserId = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -21,4 +21,6 @@ const AcquirePointByUserId_1 = tslib_1.__importDefault(require("./AcquirePointBy
21
21
  exports.AcquirePointByUserId = AcquirePointByUserId_1.default;
22
22
  const ConsumePointByUserId_1 = tslib_1.__importDefault(require("./ConsumePointByUserId"));
23
23
  exports.ConsumePointByUserId = ConsumePointByUserId_1.default;
24
+ const VerifyPointByUserId_1 = tslib_1.__importDefault(require("./VerifyPointByUserId"));
25
+ exports.VerifyPointByUserId = VerifyPointByUserId_1.default;
24
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0FAA0D;AAItD,+BAJG,8BAAoB,CAIH;AAHxB,0FAA0D;AAItD,+BAJG,8BAAoB,CAIH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0FAA0D;AAKtD,+BALG,8BAAoB,CAKH;AAJxB,0FAA0D;AAKtD,+BALG,8BAAoB,CAKH;AAJxB,wFAAwD;AAKpD,8BALG,6BAAmB,CAKH"}
@@ -15,8 +15,10 @@
15
15
  */
16
16
  import AcquirePointByUserId from "./AcquirePointByUserId";
17
17
  import ConsumePointByUserId from "./ConsumePointByUserId";
18
+ import VerifyPointByUserId from "./VerifyPointByUserId";
18
19
 
19
20
  export {
20
21
  AcquirePointByUserId,
21
22
  ConsumePointByUserId,
23
+ VerifyPointByUserId,
22
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.151",
3
+ "version": "1.0.153",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -13,4 +13,6 @@ import MobileNotificationMessage from "./MobileNotificationMessage";
13
13
  import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
14
14
  import TransactionSettingV2 from "./TransactionSettingV2";
15
15
  import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
16
- export { Namespace, NamespaceOptions, NamespaceServerType, NamespaceServerTypeIsRelayOptions, NamespaceServerTypeIsSyncOptions, NamespaceServerTypeIsStateMachineOptions, NamespaceServerSpec, SyncSetting, SyncSettingOptions, StateMachineSetting, StateMachineSettingOptions, MobileNotificationMessage, MobileNotificationMessageOptions, TransactionSettingV2, TransactionSettingV2Options, };
16
+ import ParticipantSetting from "./ParticipantSetting";
17
+ import { ParticipantSettingOptions } from "./options/ParticipantSettingOptions";
18
+ export { Namespace, NamespaceOptions, NamespaceServerType, NamespaceServerTypeIsRelayOptions, NamespaceServerTypeIsSyncOptions, NamespaceServerTypeIsStateMachineOptions, NamespaceServerSpec, SyncSetting, SyncSettingOptions, StateMachineSetting, StateMachineSettingOptions, MobileNotificationMessage, MobileNotificationMessageOptions, TransactionSettingV2, TransactionSettingV2Options, ParticipantSetting, ParticipantSettingOptions, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionSettingV2 = exports.MobileNotificationMessage = exports.StateMachineSetting = exports.SyncSetting = exports.NamespaceServerSpec = exports.NamespaceServerType = exports.Namespace = void 0;
3
+ exports.ParticipantSetting = exports.TransactionSettingV2 = exports.MobileNotificationMessage = exports.StateMachineSetting = exports.SyncSetting = exports.NamespaceServerSpec = exports.NamespaceServerType = exports.Namespace = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -33,4 +33,6 @@ const MobileNotificationMessage_1 = tslib_1.__importDefault(require("./MobileNot
33
33
  exports.MobileNotificationMessage = MobileNotificationMessage_1.default;
34
34
  const TransactionSettingV2_1 = tslib_1.__importDefault(require("./TransactionSettingV2"));
35
35
  exports.TransactionSettingV2 = TransactionSettingV2_1.default;
36
+ const ParticipantSetting_1 = tslib_1.__importDefault(require("./ParticipantSetting"));
37
+ exports.ParticipantSetting = ParticipantSetting_1.default;
36
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,oEAAoC;AAiBhC,oBAjBG,mBAAS,CAiBH;AAfb,qEAAkE;AAiB9D,oGAjBK,yCAAmB,OAiBL;AAbvB,qEAAkE;AAiB9D,oGAjBK,yCAAmB,OAiBL;AAhBvB,wEAAwC;AAiBpC,sBAjBG,qBAAW,CAiBH;AAff,wFAAwD;AAiBpD,8BAjBG,6BAAmB,CAiBH;AAfvB,oGAAoE;AAiBhE,oCAjBG,mCAAyB,CAiBH;AAf7B,0FAA0D;AAiBtD,+BAjBG,8BAAoB,CAiBH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,oEAAoC;AAmBhC,oBAnBG,mBAAS,CAmBH;AAjBb,qEAAkE;AAmB9D,oGAnBK,yCAAmB,OAmBL;AAfvB,qEAAkE;AAmB9D,oGAnBK,yCAAmB,OAmBL;AAlBvB,wEAAwC;AAmBpC,sBAnBG,qBAAW,CAmBH;AAjBf,wFAAwD;AAmBpD,8BAnBG,6BAAmB,CAmBH;AAjBvB,oGAAoE;AAmBhE,oCAnBG,mCAAyB,CAmBH;AAjB7B,0FAA0D;AAmBtD,+BAnBG,8BAAoB,CAmBH;AAjBxB,sFAAsD;AAmBlD,6BAnBG,4BAAkB,CAmBH"}
@@ -30,6 +30,8 @@ import MobileNotificationMessage from "./MobileNotificationMessage";
30
30
  import { MobileNotificationMessageOptions } from "./options/MobileNotificationMessageOptions";
31
31
  import TransactionSettingV2 from "./TransactionSettingV2";
32
32
  import { TransactionSettingV2Options } from "./options/TransactionSettingV2Options";
33
+ import ParticipantSetting from "./ParticipantSetting";
34
+ import { ParticipantSettingOptions } from "./options/ParticipantSettingOptions";
33
35
 
34
36
  export {
35
37
  Namespace,
@@ -47,4 +49,6 @@ export {
47
49
  MobileNotificationMessageOptions,
48
50
  TransactionSettingV2,
49
51
  TransactionSettingV2Options,
52
+ ParticipantSetting,
53
+ ParticipantSettingOptions,
50
54
  }