gs2-cdk 1.0.85 → 1.0.86

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 (99) hide show
  1. package/account/ref/MasterDataVersionRef.d.ts +5 -0
  2. package/account/ref/MasterDataVersionRef.js +25 -0
  3. package/account/ref/MasterDataVersionRef.js.map +1 -0
  4. package/account/ref/MasterDataVersionRef.ts +30 -0
  5. package/account/ref/NamespaceRef.js.map +1 -1
  6. package/account/ref/NamespaceRef.ts +1 -0
  7. package/account/ref/index.d.ts +2 -1
  8. package/account/ref/index.js +3 -1
  9. package/account/ref/index.js.map +1 -1
  10. package/account/ref/index.ts +2 -0
  11. package/dictionary/ref/EntryModelRef.d.ts +3 -3
  12. package/dictionary/ref/EntryModelRef.js +5 -5
  13. package/dictionary/ref/EntryModelRef.js.map +1 -1
  14. package/dictionary/ref/EntryModelRef.ts +5 -6
  15. package/dictionary/ref/NamespaceRef.d.ts +1 -1
  16. package/dictionary/ref/NamespaceRef.js +2 -2
  17. package/dictionary/ref/NamespaceRef.js.map +1 -1
  18. package/dictionary/ref/NamespaceRef.ts +2 -2
  19. package/package.json +1 -1
  20. package/quest/model/CurrentMasterData.d.ts +2 -2
  21. package/quest/model/CurrentMasterData.js +4 -4
  22. package/quest/model/CurrentMasterData.js.map +1 -1
  23. package/quest/model/CurrentMasterData.ts +5 -5
  24. package/quest/model/Namespace.d.ts +1 -1
  25. package/quest/model/Namespace.js +2 -2
  26. package/quest/model/Namespace.js.map +1 -1
  27. package/quest/model/Namespace.ts +2 -2
  28. package/ranking/model/CurrentMasterData.d.ts +2 -2
  29. package/ranking/model/CurrentMasterData.js +4 -4
  30. package/ranking/model/CurrentMasterData.js.map +1 -1
  31. package/ranking/model/CurrentMasterData.ts +5 -5
  32. package/ranking/model/Namespace.d.ts +1 -1
  33. package/ranking/model/Namespace.js +2 -2
  34. package/ranking/model/Namespace.js.map +1 -1
  35. package/ranking/model/Namespace.ts +2 -2
  36. package/ranking2/ref/NamespaceRef.d.ts +9 -0
  37. package/ranking2/ref/NamespaceRef.js +12 -0
  38. package/ranking2/ref/NamespaceRef.js.map +1 -1
  39. package/ranking2/ref/NamespaceRef.ts +65 -0
  40. package/ranking2/stampSheet/VerifyClusterRankingScoreByUserId.d.ts +18 -0
  41. package/ranking2/stampSheet/VerifyClusterRankingScoreByUserId.js +71 -0
  42. package/ranking2/stampSheet/VerifyClusterRankingScoreByUserId.js.map +1 -0
  43. package/ranking2/stampSheet/VerifyClusterRankingScoreByUserId.ts +94 -0
  44. package/ranking2/stampSheet/VerifyGlobalRankingScoreByUserId.d.ts +17 -0
  45. package/ranking2/stampSheet/VerifyGlobalRankingScoreByUserId.js +67 -0
  46. package/ranking2/stampSheet/VerifyGlobalRankingScoreByUserId.js.map +1 -0
  47. package/ranking2/stampSheet/VerifyGlobalRankingScoreByUserId.ts +88 -0
  48. package/ranking2/stampSheet/VerifySubscribeRankingScoreByUserId.d.ts +17 -0
  49. package/ranking2/stampSheet/VerifySubscribeRankingScoreByUserId.js +67 -0
  50. package/ranking2/stampSheet/VerifySubscribeRankingScoreByUserId.js.map +1 -0
  51. package/ranking2/stampSheet/VerifySubscribeRankingScoreByUserId.ts +88 -0
  52. package/ranking2/stampSheet/enum/ClusterRankingScoreVerifyType.d.ts +9 -0
  53. package/ranking2/stampSheet/enum/ClusterRankingScoreVerifyType.js +27 -0
  54. package/ranking2/stampSheet/enum/ClusterRankingScoreVerifyType.js.map +1 -0
  55. package/ranking2/stampSheet/enum/ClusterRankingScoreVerifyType.ts +27 -0
  56. package/ranking2/stampSheet/enum/GlobalRankingScoreVerifyType.d.ts +9 -0
  57. package/ranking2/stampSheet/enum/GlobalRankingScoreVerifyType.js +27 -0
  58. package/ranking2/stampSheet/enum/GlobalRankingScoreVerifyType.js.map +1 -0
  59. package/ranking2/stampSheet/enum/GlobalRankingScoreVerifyType.ts +27 -0
  60. package/ranking2/stampSheet/enum/SubscribeRankingScoreVerifyType.d.ts +9 -0
  61. package/ranking2/stampSheet/enum/SubscribeRankingScoreVerifyType.js +27 -0
  62. package/ranking2/stampSheet/enum/SubscribeRankingScoreVerifyType.js.map +1 -0
  63. package/ranking2/stampSheet/enum/SubscribeRankingScoreVerifyType.ts +27 -0
  64. package/ranking2/stampSheet/index.d.ts +4 -1
  65. package/ranking2/stampSheet/index.js +7 -1
  66. package/ranking2/stampSheet/index.js.map +1 -1
  67. package/ranking2/stampSheet/index.ts +6 -0
  68. package/script/ref/NamespaceRef.d.ts +3 -0
  69. package/script/ref/NamespaceRef.js +5 -0
  70. package/script/ref/NamespaceRef.js.map +1 -1
  71. package/script/ref/NamespaceRef.ts +16 -0
  72. package/script/ref/ScriptRef.d.ts +3 -0
  73. package/script/ref/ScriptRef.js +5 -0
  74. package/script/ref/ScriptRef.js.map +1 -1
  75. package/script/ref/ScriptRef.ts +16 -0
  76. package/script/stampSheet/InvokeScript.d.ts +14 -0
  77. package/script/stampSheet/InvokeScript.js +60 -0
  78. package/script/stampSheet/InvokeScript.js.map +1 -0
  79. package/script/stampSheet/InvokeScript.ts +73 -0
  80. package/script/stampSheet/index.d.ts +2 -1
  81. package/script/stampSheet/index.js +5 -1
  82. package/script/stampSheet/index.js.map +1 -1
  83. package/script/stampSheet/index.ts +2 -0
  84. package/serialKey/ref/NamespaceRef.d.ts +3 -0
  85. package/serialKey/ref/NamespaceRef.js +4 -0
  86. package/serialKey/ref/NamespaceRef.js.map +1 -1
  87. package/serialKey/ref/NamespaceRef.ts +15 -0
  88. package/serialKey/stampSheet/VerifyCodeByUserId.d.ts +14 -0
  89. package/serialKey/stampSheet/VerifyCodeByUserId.js +53 -0
  90. package/serialKey/stampSheet/VerifyCodeByUserId.js.map +1 -0
  91. package/serialKey/stampSheet/VerifyCodeByUserId.ts +70 -0
  92. package/serialKey/stampSheet/enum/SerialKeyVerifyType.d.ts +5 -0
  93. package/serialKey/stampSheet/enum/SerialKeyVerifyType.js +23 -0
  94. package/serialKey/stampSheet/enum/SerialKeyVerifyType.js.map +1 -0
  95. package/serialKey/stampSheet/enum/SerialKeyVerifyType.ts +23 -0
  96. package/serialKey/stampSheet/index.d.ts +2 -1
  97. package/serialKey/stampSheet/index.js +3 -1
  98. package/serialKey/stampSheet/index.js.map +1 -1
  99. package/serialKey/stampSheet/index.ts +2 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClusterRankingScoreVerifyType.js","sourceRoot":"","sources":["ClusterRankingScoreVerifyType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,6BAA6B,GAAG;IACzC,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 ClusterRankingScoreVerifyType = {
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 ClusterRankingScoreVerifyType = typeof ClusterRankingScoreVerifyType[keyof typeof ClusterRankingScoreVerifyType];
@@ -0,0 +1,9 @@
1
+ export declare const GlobalRankingScoreVerifyType: {
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 GlobalRankingScoreVerifyType = typeof GlobalRankingScoreVerifyType[keyof typeof GlobalRankingScoreVerifyType];
@@ -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.GlobalRankingScoreVerifyType = void 0;
19
+ exports.GlobalRankingScoreVerifyType = {
20
+ LESS: "less",
21
+ LESS_EQUAL: "lessEqual",
22
+ GREATER: "greater",
23
+ GREATER_EQUAL: "greaterEqual",
24
+ EQUAL: "equal",
25
+ NOT_EQUAL: "notEqual",
26
+ };
27
+ //# sourceMappingURL=GlobalRankingScoreVerifyType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalRankingScoreVerifyType.js","sourceRoot":"","sources":["GlobalRankingScoreVerifyType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,4BAA4B,GAAG;IACxC,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 GlobalRankingScoreVerifyType = {
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 GlobalRankingScoreVerifyType = typeof GlobalRankingScoreVerifyType[keyof typeof GlobalRankingScoreVerifyType];
@@ -0,0 +1,9 @@
1
+ export declare const SubscribeRankingScoreVerifyType: {
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 SubscribeRankingScoreVerifyType = typeof SubscribeRankingScoreVerifyType[keyof typeof SubscribeRankingScoreVerifyType];
@@ -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.SubscribeRankingScoreVerifyType = void 0;
19
+ exports.SubscribeRankingScoreVerifyType = {
20
+ LESS: "less",
21
+ LESS_EQUAL: "lessEqual",
22
+ GREATER: "greater",
23
+ GREATER_EQUAL: "greaterEqual",
24
+ EQUAL: "equal",
25
+ NOT_EQUAL: "notEqual",
26
+ };
27
+ //# sourceMappingURL=SubscribeRankingScoreVerifyType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscribeRankingScoreVerifyType.js","sourceRoot":"","sources":["SubscribeRankingScoreVerifyType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,+BAA+B,GAAG;IAC3C,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 SubscribeRankingScoreVerifyType = {
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 SubscribeRankingScoreVerifyType = typeof SubscribeRankingScoreVerifyType[keyof typeof SubscribeRankingScoreVerifyType];
@@ -1,3 +1,6 @@
1
1
  import CreateGlobalRankingReceivedRewardByUserId from "./CreateGlobalRankingReceivedRewardByUserId";
2
2
  import CreateClusterRankingReceivedRewardByUserId from "./CreateClusterRankingReceivedRewardByUserId";
3
- export { CreateGlobalRankingReceivedRewardByUserId, CreateClusterRankingReceivedRewardByUserId, };
3
+ import VerifyGlobalRankingScoreByUserId from "./VerifyGlobalRankingScoreByUserId";
4
+ import VerifyClusterRankingScoreByUserId from "./VerifyClusterRankingScoreByUserId";
5
+ import VerifySubscribeRankingScoreByUserId from "./VerifySubscribeRankingScoreByUserId";
6
+ export { CreateGlobalRankingReceivedRewardByUserId, CreateClusterRankingReceivedRewardByUserId, VerifyGlobalRankingScoreByUserId, VerifyClusterRankingScoreByUserId, VerifySubscribeRankingScoreByUserId, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateClusterRankingReceivedRewardByUserId = exports.CreateGlobalRankingReceivedRewardByUserId = void 0;
3
+ exports.VerifySubscribeRankingScoreByUserId = exports.VerifyClusterRankingScoreByUserId = exports.VerifyGlobalRankingScoreByUserId = exports.CreateClusterRankingReceivedRewardByUserId = exports.CreateGlobalRankingReceivedRewardByUserId = 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,10 @@ const CreateGlobalRankingReceivedRewardByUserId_1 = tslib_1.__importDefault(requ
21
21
  exports.CreateGlobalRankingReceivedRewardByUserId = CreateGlobalRankingReceivedRewardByUserId_1.default;
22
22
  const CreateClusterRankingReceivedRewardByUserId_1 = tslib_1.__importDefault(require("./CreateClusterRankingReceivedRewardByUserId"));
23
23
  exports.CreateClusterRankingReceivedRewardByUserId = CreateClusterRankingReceivedRewardByUserId_1.default;
24
+ const VerifyGlobalRankingScoreByUserId_1 = tslib_1.__importDefault(require("./VerifyGlobalRankingScoreByUserId"));
25
+ exports.VerifyGlobalRankingScoreByUserId = VerifyGlobalRankingScoreByUserId_1.default;
26
+ const VerifyClusterRankingScoreByUserId_1 = tslib_1.__importDefault(require("./VerifyClusterRankingScoreByUserId"));
27
+ exports.VerifyClusterRankingScoreByUserId = VerifyClusterRankingScoreByUserId_1.default;
28
+ const VerifySubscribeRankingScoreByUserId_1 = tslib_1.__importDefault(require("./VerifySubscribeRankingScoreByUserId"));
29
+ exports.VerifySubscribeRankingScoreByUserId = VerifySubscribeRankingScoreByUserId_1.default;
24
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oIAAoG;AAIhG,oDAJG,mDAAyC,CAIH;AAH7C,sIAAsG;AAIlG,qDAJG,oDAA0C,CAIH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oIAAoG;AAOhG,oDAPG,mDAAyC,CAOH;AAN7C,sIAAsG;AAOlG,qDAPG,oDAA0C,CAOH;AAN9C,kHAAkF;AAO9E,2CAPG,0CAAgC,CAOH;AANpC,oHAAoF;AAOhF,4CAPG,2CAAiC,CAOH;AANrC,wHAAwF;AAOpF,8CAPG,6CAAmC,CAOH"}
@@ -15,8 +15,14 @@
15
15
  */
16
16
  import CreateGlobalRankingReceivedRewardByUserId from "./CreateGlobalRankingReceivedRewardByUserId";
17
17
  import CreateClusterRankingReceivedRewardByUserId from "./CreateClusterRankingReceivedRewardByUserId";
18
+ import VerifyGlobalRankingScoreByUserId from "./VerifyGlobalRankingScoreByUserId";
19
+ import VerifyClusterRankingScoreByUserId from "./VerifyClusterRankingScoreByUserId";
20
+ import VerifySubscribeRankingScoreByUserId from "./VerifySubscribeRankingScoreByUserId";
18
21
 
19
22
  export {
20
23
  CreateGlobalRankingReceivedRewardByUserId,
21
24
  CreateClusterRankingReceivedRewardByUserId,
25
+ VerifyGlobalRankingScoreByUserId,
26
+ VerifyClusterRankingScoreByUserId,
27
+ VerifySubscribeRankingScoreByUserId,
22
28
  }
@@ -1,5 +1,8 @@
1
+ import InvokeScript from "../stampSheet/InvokeScript";
2
+ import RandomStatus from "../model/RandomStatus";
1
3
  export default class NamespaceRef {
2
4
  private readonly namespaceName;
3
5
  constructor(namespaceName: string);
6
+ invokeScript(scriptId: string, args?: string | null, randomStatus?: RandomStatus | null, userId?: string): InvokeScript;
4
7
  grn(): string;
5
8
  }
@@ -15,11 +15,16 @@
15
15
  * permissions and limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ const tslib_1 = require("tslib");
18
19
  const func_1 = require("../../core/func");
20
+ const InvokeScript_1 = tslib_1.__importDefault(require("../stampSheet/InvokeScript"));
19
21
  class NamespaceRef {
20
22
  constructor(namespaceName) {
21
23
  this.namespaceName = namespaceName;
22
24
  }
25
+ invokeScript(scriptId, args = null, randomStatus = null, userId = "#{userId}") {
26
+ return new InvokeScript_1.default(scriptId, args, randomStatus, userId);
27
+ }
23
28
  grn() {
24
29
  return new func_1.Join(":", [
25
30
  "grn",
@@ -1 +1 @@
1
- {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAG9C,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,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,QAAQ;YACR,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA5BD,+BA4BC"}
1
+ {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAE9C,sFAAsD;AAGtD,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,YAAY,CACf,QAAgB,EAChB,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,SAAiB,WAAW;QAE5B,OAAO,IAAI,sBAAY,CACnB,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,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,QAAQ;YACR,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA1CD,+BA0CC"}
@@ -16,6 +16,8 @@
16
16
 
17
17
  import {GetAttr, Join} from "../../core/func";
18
18
  import ScriptRef from "./ScriptRef";
19
+ import InvokeScript from "../stampSheet/InvokeScript";
20
+ import RandomStatus from "../model/RandomStatus";
19
21
 
20
22
  export default class NamespaceRef {
21
23
  private readonly namespaceName: string;
@@ -26,6 +28,20 @@ export default class NamespaceRef {
26
28
  this.namespaceName = namespaceName;
27
29
  }
28
30
 
31
+ public invokeScript(
32
+ scriptId: string,
33
+ args: string|null = null,
34
+ randomStatus: RandomStatus|null = null,
35
+ userId: string = "#{userId}",
36
+ ): InvokeScript {
37
+ return new InvokeScript(
38
+ scriptId,
39
+ args,
40
+ randomStatus,
41
+ userId,
42
+ );
43
+ }
44
+
29
45
  public grn(
30
46
  ): string {
31
47
  return new Join(
@@ -1,6 +1,9 @@
1
+ import InvokeScript from "../stampSheet/InvokeScript";
2
+ import RandomStatus from "../model/RandomStatus";
1
3
  export default class ScriptRef {
2
4
  private readonly namespaceName;
3
5
  private readonly scriptName;
4
6
  constructor(namespaceName: string, scriptName: string);
7
+ invokeScript(scriptId: string, args?: string | null, randomStatus?: RandomStatus | null, userId?: string): InvokeScript;
5
8
  grn(): string;
6
9
  }
@@ -15,12 +15,17 @@
15
15
  * permissions and limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ const tslib_1 = require("tslib");
18
19
  const func_1 = require("../../core/func");
20
+ const InvokeScript_1 = tslib_1.__importDefault(require("../stampSheet/InvokeScript"));
19
21
  class ScriptRef {
20
22
  constructor(namespaceName, scriptName) {
21
23
  this.namespaceName = namespaceName;
22
24
  this.scriptName = scriptName;
23
25
  }
26
+ invokeScript(scriptId, args = null, randomStatus = null, userId = "#{userId}") {
27
+ return new InvokeScript_1.default(scriptId, args, randomStatus, userId);
28
+ }
24
29
  grn() {
25
30
  return new func_1.Join(":", [
26
31
  "grn",
@@ -1 +1 @@
1
- {"version":3,"file":"ScriptRef.js","sourceRoot":"","sources":["ScriptRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,SAAS;IAI1B,YACI,aAAqB,EACrB,UAAkB;QAElB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,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,QAAQ;YACR,IAAI,CAAC,aAAa;YAClB,QAAQ;YACR,IAAI,CAAC,UAAU;SAClB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjCD,4BAiCC"}
1
+ {"version":3,"file":"ScriptRef.js","sourceRoot":"","sources":["ScriptRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,sFAAsD;AAGtD,MAAqB,SAAS;IAI1B,YACI,aAAqB,EACrB,UAAkB;QAElB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEM,YAAY,CACf,QAAgB,EAChB,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,SAAiB,WAAW;QAE5B,OAAO,IAAI,sBAAY,CACnB,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,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,QAAQ;YACR,IAAI,CAAC,aAAa;YAClB,QAAQ;YACR,IAAI,CAAC,UAAU;SAClB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA/CD,4BA+CC"}
@@ -15,6 +15,8 @@
15
15
  */
16
16
 
17
17
  import {GetAttr, Join} from "../../core/func";
18
+ import InvokeScript from "../stampSheet/InvokeScript";
19
+ import RandomStatus from "../model/RandomStatus";
18
20
 
19
21
  export default class ScriptRef {
20
22
  private readonly namespaceName: string;
@@ -28,6 +30,20 @@ export default class ScriptRef {
28
30
  this.scriptName = scriptName;
29
31
  }
30
32
 
33
+ public invokeScript(
34
+ scriptId: string,
35
+ args: string|null = null,
36
+ randomStatus: RandomStatus|null = null,
37
+ userId: string = "#{userId}",
38
+ ): InvokeScript {
39
+ return new InvokeScript(
40
+ scriptId,
41
+ args,
42
+ randomStatus,
43
+ userId,
44
+ );
45
+ }
46
+
31
47
  public grn(
32
48
  ): string {
33
49
  return new Join(
@@ -0,0 +1,14 @@
1
+ import { AcquireAction } from "../../core/model";
2
+ import RandomStatus from "../model/RandomStatus";
3
+ export default class InvokeScript extends AcquireAction {
4
+ private readonly scriptId;
5
+ private readonly userId;
6
+ private readonly args;
7
+ private readonly randomStatus;
8
+ private readonly timeOffsetToken;
9
+ constructor(scriptId?: string | null, args?: string | null, randomStatus?: RandomStatus | null, timeOffsetToken?: string | null, userId?: string);
10
+ request(): {
11
+ [name: string]: any;
12
+ };
13
+ action(): string;
14
+ }
@@ -0,0 +1,60 @@
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
+ * deny overwrite
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ const model_1 = require("../../core/model");
21
+ class InvokeScript extends model_1.AcquireAction {
22
+ constructor(scriptId = null, args = null, randomStatus = null, timeOffsetToken = null, userId = "#{userId}") {
23
+ super();
24
+ this.scriptId = null;
25
+ this.userId = null;
26
+ this.args = null;
27
+ this.randomStatus = null;
28
+ this.timeOffsetToken = null;
29
+ this.scriptId = scriptId !== null && scriptId !== void 0 ? scriptId : null;
30
+ this.args = args !== null && args !== void 0 ? args : null;
31
+ this.randomStatus = randomStatus !== null && randomStatus !== void 0 ? randomStatus : null;
32
+ this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
33
+ this.userId = userId;
34
+ }
35
+ request() {
36
+ var _a;
37
+ let properties = {};
38
+ if (this.scriptId != null) {
39
+ properties["scriptId"] = this.scriptId;
40
+ }
41
+ if (this.userId != null) {
42
+ properties["userId"] = this.userId;
43
+ }
44
+ if (this.args != null) {
45
+ properties["args"] = this.args;
46
+ }
47
+ if (this.randomStatus != null) {
48
+ properties["randomStatus"] = (_a = this.randomStatus) === null || _a === void 0 ? void 0 : _a.properties();
49
+ }
50
+ if (this.timeOffsetToken != null) {
51
+ properties["timeOffsetToken"] = this.timeOffsetToken;
52
+ }
53
+ return properties;
54
+ }
55
+ action() {
56
+ return "Gs2Script:InvokeScript";
57
+ }
58
+ }
59
+ exports.default = InvokeScript;
60
+ //# sourceMappingURL=InvokeScript.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvokeScript.js","sourceRoot":"","sources":["InvokeScript.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,4CAA4E;AAG5E,MAAqB,YAAa,SAAQ,qBAAa;IAQnD,YACI,WAAwB,IAAI,EAC5B,OAAoB,IAAI,EACxB,eAAkC,IAAI,EACtC,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAdK,aAAQ,GAAgB,IAAI,CAAC;QAC7B,WAAM,GAAgB,IAAI,CAAC;QAC3B,SAAI,GAAgB,IAAI,CAAC;QACzB,iBAAY,GAAsB,IAAI,CAAC;QACvC,oBAAe,GAAgB,IAAI,CAAC;QAYjD,IAAI,CAAC,QAAQ,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,IAAI,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,IAAI,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,IAAI,CAAC;QACzC,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,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;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,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,MAAA,IAAI,CAAC,YAAY,0CAAE,UAAU,EACzD,CAAC;SACL;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,wBAAwB,CAAC;IACpC,CAAC;CACJ;AAnDD,+BAmDC"}
@@ -0,0 +1,73 @@
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
+ * deny overwrite
17
+ */
18
+
19
+ import {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
20
+ import RandomStatus from "../model/RandomStatus";
21
+
22
+ export default class InvokeScript extends AcquireAction {
23
+ private readonly scriptId: string|null = null;
24
+ private readonly userId: string|null = null;
25
+ private readonly args: string|null = null;
26
+ private readonly randomStatus: RandomStatus|null = null;
27
+ private readonly timeOffsetToken: string|null = null;
28
+
29
+
30
+ public constructor(
31
+ scriptId: string|null = null,
32
+ args: string|null = null,
33
+ randomStatus: RandomStatus|null = null,
34
+ timeOffsetToken: string|null = null,
35
+ userId: string = "#{userId}",
36
+ ) {
37
+ super();
38
+
39
+ this.scriptId = scriptId ?? null;
40
+ this.args = args ?? null;
41
+ this.randomStatus = randomStatus ?? null;
42
+ this.timeOffsetToken = timeOffsetToken ?? null;
43
+ this.userId = userId;
44
+ }
45
+
46
+ public request(
47
+ ): {[name: string]: any} {
48
+ let properties: {[name: string]: any} = {};
49
+
50
+ if (this.scriptId != null) {
51
+ properties["scriptId"] = this.scriptId;
52
+ }
53
+ if (this.userId != null) {
54
+ properties["userId"] = this.userId;
55
+ }
56
+ if (this.args != null) {
57
+ properties["args"] = this.args;
58
+ }
59
+ if (this.randomStatus != null) {
60
+ properties["randomStatus"] = this.randomStatus?.properties(
61
+ );
62
+ }
63
+ if (this.timeOffsetToken != null) {
64
+ properties["timeOffsetToken"] = this.timeOffsetToken;
65
+ }
66
+
67
+ return properties;
68
+ }
69
+
70
+ public action(): string {
71
+ return "Gs2Script:InvokeScript";
72
+ }
73
+ }
@@ -1 +1,2 @@
1
- export {};
1
+ import InvokeScript from "./InvokeScript";
2
+ export { InvokeScript, };
@@ -1,4 +1,7 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvokeScript = void 0;
4
+ const tslib_1 = require("tslib");
2
5
  /*
3
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
4
7
  * Reserved.
@@ -14,5 +17,6 @@
14
17
  * express or implied. See the License for the specific language governing
15
18
  * permissions and limitations under the License.
16
19
  */
17
- Object.defineProperty(exports, "__esModule", { value: true });
20
+ const InvokeScript_1 = tslib_1.__importDefault(require("./InvokeScript"));
21
+ exports.InvokeScript = InvokeScript_1.default;
18
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAGtC,uBAHG,sBAAY,CAGH"}
@@ -13,6 +13,8 @@
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
15
  */
16
+ import InvokeScript from "./InvokeScript";
16
17
 
17
18
  export {
19
+ InvokeScript,
18
20
  }
@@ -1,11 +1,14 @@
1
1
  import CampaignModelRef from "./CampaignModelRef";
2
2
  import RevertUseByUserId from "../stampSheet/RevertUseByUserId";
3
3
  import UseByUserId from "../stampSheet/UseByUserId";
4
+ import VerifyCodeByUserId from "../stampSheet/VerifyCodeByUserId";
5
+ import { SerialKeyVerifyType } from "../stampSheet/enum/SerialKeyVerifyType";
4
6
  export default class NamespaceRef {
5
7
  private readonly namespaceName;
6
8
  constructor(namespaceName: string);
7
9
  campaignModel(campaignModelName: string): CampaignModelRef;
8
10
  revertUse(code: string, userId?: string): RevertUseByUserId;
9
11
  use(code: string, userId?: string): UseByUserId;
12
+ verifyCode(code: string, verifyType: SerialKeyVerifyType, userId?: string): VerifyCodeByUserId;
10
13
  grn(): string;
11
14
  }
@@ -20,6 +20,7 @@ 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
22
  const UseByUserId_1 = tslib_1.__importDefault(require("../stampSheet/UseByUserId"));
23
+ const VerifyCodeByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyCodeByUserId"));
23
24
  class NamespaceRef {
24
25
  constructor(namespaceName) {
25
26
  this.namespaceName = namespaceName;
@@ -33,6 +34,9 @@ class NamespaceRef {
33
34
  use(code, userId = "#{userId}") {
34
35
  return new UseByUserId_1.default(this.namespaceName, code, userId);
35
36
  }
37
+ verifyCode(code, verifyType, userId = "#{userId}") {
38
+ return new VerifyCodeByUserId_1.default(this.namespaceName, code, verifyType, userId);
39
+ }
36
40
  grn() {
37
41
  return new func_1.Join(":", [
38
42
  "grn",
@@ -1 +1 @@
1
- {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,kFAAkD;AAClD,gGAAgE;AAChE,oFAAoD;AAEpD,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,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;AA3DD,+BA2DC"}
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,EAC/B,SAAiB,WAAW;QAE5B,OAAO,IAAI,4BAAkB,CACzB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,UAAU,EACV,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;AAxED,+BAwEC"}
@@ -18,6 +18,8 @@ import {GetAttr, Join} from "../../core/func";
18
18
  import CampaignModelRef from "./CampaignModelRef";
19
19
  import RevertUseByUserId from "../stampSheet/RevertUseByUserId";
20
20
  import UseByUserId from "../stampSheet/UseByUserId";
21
+ import VerifyCodeByUserId from "../stampSheet/VerifyCodeByUserId";
22
+ import { SerialKeyVerifyType } from "../stampSheet/enum/SerialKeyVerifyType";
21
23
 
22
24
  export default class NamespaceRef {
23
25
  private readonly namespaceName: string;
@@ -59,6 +61,19 @@ export default class NamespaceRef {
59
61
  );
60
62
  }
61
63
 
64
+ public verifyCode(
65
+ code: string,
66
+ verifyType: SerialKeyVerifyType,
67
+ userId: string = "#{userId}",
68
+ ): VerifyCodeByUserId {
69
+ return new VerifyCodeByUserId(
70
+ this.namespaceName,
71
+ code,
72
+ verifyType,
73
+ userId,
74
+ );
75
+ }
76
+
62
77
  public grn(
63
78
  ): string {
64
79
  return new Join(
@@ -0,0 +1,14 @@
1
+ import { VerifyAction } from "../../core/model";
2
+ import { SerialKeyVerifyType } from "./enum/SerialKeyVerifyType";
3
+ export default class VerifyCodeByUserId extends VerifyAction {
4
+ private readonly namespaceName;
5
+ private readonly userId;
6
+ private readonly code;
7
+ private readonly verifyType;
8
+ private readonly timeOffsetToken;
9
+ constructor(namespaceName: string, code: string, verifyType: SerialKeyVerifyType, timeOffsetToken?: string | null, userId?: string);
10
+ request(): {
11
+ [name: string]: any;
12
+ };
13
+ action(): string;
14
+ }