gs2-cdk 1.0.83 → 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.
- package/account/ref/MasterDataVersionRef.d.ts +5 -0
- package/account/ref/MasterDataVersionRef.js +25 -0
- package/account/ref/MasterDataVersionRef.js.map +1 -0
- package/account/ref/MasterDataVersionRef.ts +30 -0
- package/account/ref/NamespaceRef.js.map +1 -1
- package/account/ref/NamespaceRef.ts +1 -0
- package/account/ref/index.d.ts +2 -1
- package/account/ref/index.js +3 -1
- package/account/ref/index.js.map +1 -1
- package/account/ref/index.ts +2 -0
- package/chat/model/Namespace.d.ts +1 -0
- package/chat/model/Namespace.js +13 -8
- package/chat/model/Namespace.js.map +1 -1
- package/chat/model/Namespace.ts +5 -0
- package/chat/model/options/NamespaceOptions.d.ts +1 -0
- package/chat/model/options/NamespaceOptions.ts +1 -0
- package/dictionary/ref/EntryModelRef.d.ts +3 -3
- package/dictionary/ref/EntryModelRef.js +5 -5
- package/dictionary/ref/EntryModelRef.js.map +1 -1
- package/dictionary/ref/EntryModelRef.ts +5 -6
- package/dictionary/ref/NamespaceRef.d.ts +1 -1
- package/dictionary/ref/NamespaceRef.js +2 -2
- package/dictionary/ref/NamespaceRef.js.map +1 -1
- package/dictionary/ref/NamespaceRef.ts +2 -2
- package/mission/ref/NamespaceRef.d.ts +2 -0
- package/mission/ref/NamespaceRef.js +4 -0
- package/mission/ref/NamespaceRef.js.map +1 -1
- package/mission/ref/NamespaceRef.ts +14 -0
- package/mission/stampSheet/BatchReceiveByUserId.d.ts +13 -0
- package/mission/stampSheet/BatchReceiveByUserId.js +53 -0
- package/mission/stampSheet/BatchReceiveByUserId.js.map +1 -0
- package/mission/stampSheet/BatchReceiveByUserId.ts +69 -0
- package/mission/stampSheet/index.d.ts +2 -1
- package/mission/stampSheet/index.js +3 -1
- package/mission/stampSheet/index.js.map +1 -1
- package/mission/stampSheet/index.ts +2 -0
- package/package.json +1 -1
- package/quest/model/CurrentMasterData.d.ts +2 -2
- package/quest/model/CurrentMasterData.js +4 -4
- package/quest/model/CurrentMasterData.js.map +1 -1
- package/quest/model/CurrentMasterData.ts +5 -5
- package/quest/model/Namespace.d.ts +1 -1
- package/quest/model/Namespace.js +2 -2
- package/quest/model/Namespace.js.map +1 -1
- package/quest/model/Namespace.ts +2 -2
- package/ranking/model/CurrentMasterData.d.ts +2 -2
- package/ranking/model/CurrentMasterData.js +4 -4
- package/ranking/model/CurrentMasterData.js.map +1 -1
- package/ranking/model/CurrentMasterData.ts +5 -5
- package/ranking/model/Namespace.d.ts +1 -1
- package/ranking/model/Namespace.js +2 -2
- package/ranking/model/Namespace.js.map +1 -1
- package/ranking/model/Namespace.ts +2 -2
- package/ranking2/ref/NamespaceRef.d.ts +9 -0
- package/ranking2/ref/NamespaceRef.js +12 -0
- package/ranking2/ref/NamespaceRef.js.map +1 -1
- package/ranking2/ref/NamespaceRef.ts +65 -0
- package/ranking2/stampSheet/VerifyClusterRankingScoreByUserId.d.ts +18 -0
- package/ranking2/stampSheet/VerifyClusterRankingScoreByUserId.js +71 -0
- package/ranking2/stampSheet/VerifyClusterRankingScoreByUserId.js.map +1 -0
- package/ranking2/stampSheet/VerifyClusterRankingScoreByUserId.ts +94 -0
- package/ranking2/stampSheet/VerifyGlobalRankingScoreByUserId.d.ts +17 -0
- package/ranking2/stampSheet/VerifyGlobalRankingScoreByUserId.js +67 -0
- package/ranking2/stampSheet/VerifyGlobalRankingScoreByUserId.js.map +1 -0
- package/ranking2/stampSheet/VerifyGlobalRankingScoreByUserId.ts +88 -0
- package/ranking2/stampSheet/VerifySubscribeRankingScoreByUserId.d.ts +17 -0
- package/ranking2/stampSheet/VerifySubscribeRankingScoreByUserId.js +67 -0
- package/ranking2/stampSheet/VerifySubscribeRankingScoreByUserId.js.map +1 -0
- package/ranking2/stampSheet/VerifySubscribeRankingScoreByUserId.ts +88 -0
- package/ranking2/stampSheet/enum/ClusterRankingScoreVerifyType.d.ts +9 -0
- package/ranking2/stampSheet/enum/ClusterRankingScoreVerifyType.js +27 -0
- package/ranking2/stampSheet/enum/ClusterRankingScoreVerifyType.js.map +1 -0
- package/ranking2/stampSheet/enum/ClusterRankingScoreVerifyType.ts +27 -0
- package/ranking2/stampSheet/enum/GlobalRankingScoreVerifyType.d.ts +9 -0
- package/ranking2/stampSheet/enum/GlobalRankingScoreVerifyType.js +27 -0
- package/ranking2/stampSheet/enum/GlobalRankingScoreVerifyType.js.map +1 -0
- package/ranking2/stampSheet/enum/GlobalRankingScoreVerifyType.ts +27 -0
- package/ranking2/stampSheet/enum/SubscribeRankingScoreVerifyType.d.ts +9 -0
- package/ranking2/stampSheet/enum/SubscribeRankingScoreVerifyType.js +27 -0
- package/ranking2/stampSheet/enum/SubscribeRankingScoreVerifyType.js.map +1 -0
- package/ranking2/stampSheet/enum/SubscribeRankingScoreVerifyType.ts +27 -0
- package/ranking2/stampSheet/index.d.ts +4 -1
- package/ranking2/stampSheet/index.js +7 -1
- package/ranking2/stampSheet/index.js.map +1 -1
- package/ranking2/stampSheet/index.ts +6 -0
- package/script/model/Script.d.ts +1 -0
- package/script/model/Script.js +6 -1
- package/script/model/Script.js.map +1 -1
- package/script/model/Script.ts +5 -0
- package/script/model/options/ScriptOptions.d.ts +1 -0
- package/script/model/options/ScriptOptions.ts +1 -0
- package/script/ref/NamespaceRef.d.ts +3 -0
- package/script/ref/NamespaceRef.js +5 -0
- package/script/ref/NamespaceRef.js.map +1 -1
- package/script/ref/NamespaceRef.ts +16 -0
- package/script/ref/ScriptRef.d.ts +3 -0
- package/script/ref/ScriptRef.js +5 -0
- package/script/ref/ScriptRef.js.map +1 -1
- package/script/ref/ScriptRef.ts +16 -0
- package/script/stampSheet/InvokeScript.d.ts +14 -0
- package/script/stampSheet/InvokeScript.js +60 -0
- package/script/stampSheet/InvokeScript.js.map +1 -0
- package/script/stampSheet/InvokeScript.ts +73 -0
- package/script/stampSheet/index.d.ts +2 -1
- package/script/stampSheet/index.js +5 -1
- package/script/stampSheet/index.js.map +1 -1
- package/script/stampSheet/index.ts +2 -0
- package/serialKey/ref/NamespaceRef.d.ts +3 -0
- package/serialKey/ref/NamespaceRef.js +4 -0
- package/serialKey/ref/NamespaceRef.js.map +1 -1
- package/serialKey/ref/NamespaceRef.ts +15 -0
- package/serialKey/stampSheet/VerifyCodeByUserId.d.ts +14 -0
- package/serialKey/stampSheet/VerifyCodeByUserId.js +53 -0
- package/serialKey/stampSheet/VerifyCodeByUserId.js.map +1 -0
- package/serialKey/stampSheet/VerifyCodeByUserId.ts +70 -0
- package/serialKey/stampSheet/enum/SerialKeyVerifyType.d.ts +5 -0
- package/serialKey/stampSheet/enum/SerialKeyVerifyType.js +23 -0
- package/serialKey/stampSheet/enum/SerialKeyVerifyType.js.map +1 -0
- package/serialKey/stampSheet/enum/SerialKeyVerifyType.ts +23 -0
- package/serialKey/stampSheet/index.d.ts +2 -1
- package/serialKey/stampSheet/index.js +3 -1
- package/serialKey/stampSheet/index.js.map +1 -1
- package/serialKey/stampSheet/index.ts +2 -0
package/script/model/Script.js
CHANGED
|
@@ -21,14 +21,16 @@ const func_1 = require("../../core/func");
|
|
|
21
21
|
const ScriptRef_1 = tslib_1.__importDefault(require("../ref/ScriptRef"));
|
|
22
22
|
class Script extends model_1.CdkResource {
|
|
23
23
|
constructor(stack, namespaceName, name, script, options = null) {
|
|
24
|
-
var _a;
|
|
24
|
+
var _a, _b;
|
|
25
25
|
super("Script_Script_" + name);
|
|
26
26
|
this.description = null;
|
|
27
|
+
this.disableStringNumberToNumber = null;
|
|
27
28
|
this.stack = stack;
|
|
28
29
|
this.namespaceName = namespaceName;
|
|
29
30
|
this.name = name;
|
|
30
31
|
this.script = script;
|
|
31
32
|
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
33
|
+
this.disableStringNumberToNumber = (_b = options === null || options === void 0 ? void 0 : options.disableStringNumberToNumber) !== null && _b !== void 0 ? _b : null;
|
|
32
34
|
stack.addResource(this);
|
|
33
35
|
}
|
|
34
36
|
alternateKeys() {
|
|
@@ -51,6 +53,9 @@ class Script extends model_1.CdkResource {
|
|
|
51
53
|
if (this.script != null) {
|
|
52
54
|
properties["Script"] = this.script;
|
|
53
55
|
}
|
|
56
|
+
if (this.disableStringNumberToNumber != null) {
|
|
57
|
+
properties["DisableStringNumberToNumber"] = this.disableStringNumberToNumber;
|
|
58
|
+
}
|
|
54
59
|
return properties;
|
|
55
60
|
}
|
|
56
61
|
ref() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Script.js","sourceRoot":"","sources":["Script.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAExC,yEAAyC;AAIzC,MAAqB,MAAO,SAAQ,mBAAW;
|
|
1
|
+
{"version":3,"file":"Script.js","sourceRoot":"","sources":["Script.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAExC,yEAAyC;AAIzC,MAAqB,MAAO,SAAQ,mBAAW;IAQ3C,YACI,KAAY,EACZ,aAAqB,EACrB,IAAY,EACZ,MAAc,EACd,UAA8B,IAAI;;QAElC,KAAK,CACD,gBAAgB,GAAG,IAAI,CAC1B,CAAC;QAZW,gBAAW,GAAgB,IAAI,CAAC;QAChC,gCAA2B,GAAiB,IAAI,CAAC;QAa9D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,2BAA2B,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,2BAA2B,mCAAI,IAAI,CAAC;QAChF,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAGM,aAAa;QAEhB,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,YAAY;QAEf,OAAO,qBAAqB,CAAC;IACjC,CAAC;IAEM,UAAU;QAEb,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,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,2BAA2B,IAAI,IAAI,EAAE;YAC1C,UAAU,CAAC,6BAA6B,CAAC,GAAG,IAAI,CAAC,2BAA2B,CAAC;SAChF;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,mBAAS,CAChB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,eAAe;QAElB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,eAAe,EACf,IAAI,CACP,CAAC;IACN,CAAC;CACJ;AAhFD,yBAgFC"}
|
package/script/model/Script.ts
CHANGED
|
@@ -27,6 +27,7 @@ export default class Script extends CdkResource {
|
|
|
27
27
|
private readonly name: string;
|
|
28
28
|
private readonly script: string;
|
|
29
29
|
private readonly description: string|null = null;
|
|
30
|
+
private readonly disableStringNumberToNumber: boolean|null = null;
|
|
30
31
|
|
|
31
32
|
public constructor(
|
|
32
33
|
stack: Stack,
|
|
@@ -44,6 +45,7 @@ export default class Script extends CdkResource {
|
|
|
44
45
|
this.name = name;
|
|
45
46
|
this.script = script;
|
|
46
47
|
this.description = options?.description ?? null;
|
|
48
|
+
this.disableStringNumberToNumber = options?.disableStringNumberToNumber ?? null;
|
|
47
49
|
stack.addResource(
|
|
48
50
|
this,
|
|
49
51
|
);
|
|
@@ -76,6 +78,9 @@ export default class Script extends CdkResource {
|
|
|
76
78
|
if (this.script != null) {
|
|
77
79
|
properties["Script"] = this.script;
|
|
78
80
|
}
|
|
81
|
+
if (this.disableStringNumberToNumber != null) {
|
|
82
|
+
properties["DisableStringNumberToNumber"] = this.disableStringNumberToNumber;
|
|
83
|
+
}
|
|
79
84
|
|
|
80
85
|
return properties;
|
|
81
86
|
}
|
|
@@ -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
|
|
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
|
}
|
package/script/ref/ScriptRef.js
CHANGED
|
@@ -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
|
|
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"}
|
package/script/ref/ScriptRef.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAGtC,uBAHG,sBAAY,CAGH"}
|
|
@@ -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;
|
|
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
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 VerifyCodeByUserId extends model_1.VerifyAction {
|
|
20
|
+
constructor(namespaceName, code, verifyType, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.timeOffsetToken = null;
|
|
23
|
+
this.namespaceName = namespaceName;
|
|
24
|
+
this.code = code;
|
|
25
|
+
this.verifyType = verifyType;
|
|
26
|
+
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
27
|
+
this.userId = userId;
|
|
28
|
+
}
|
|
29
|
+
request() {
|
|
30
|
+
let properties = {};
|
|
31
|
+
if (this.namespaceName != null) {
|
|
32
|
+
properties["namespaceName"] = this.namespaceName;
|
|
33
|
+
}
|
|
34
|
+
if (this.userId != null) {
|
|
35
|
+
properties["userId"] = this.userId;
|
|
36
|
+
}
|
|
37
|
+
if (this.code != null) {
|
|
38
|
+
properties["code"] = this.code;
|
|
39
|
+
}
|
|
40
|
+
if (this.verifyType != null) {
|
|
41
|
+
properties["verifyType"] = this.verifyType;
|
|
42
|
+
}
|
|
43
|
+
if (this.timeOffsetToken != null) {
|
|
44
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
45
|
+
}
|
|
46
|
+
return properties;
|
|
47
|
+
}
|
|
48
|
+
action() {
|
|
49
|
+
return "Gs2SerialKey:VerifyCodeByUserId";
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.default = VerifyCodeByUserId;
|
|
53
|
+
//# sourceMappingURL=VerifyCodeByUserId.js.map
|
|
@@ -0,0 +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,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,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;AAlDD,qCAkDC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { SerialKeyVerifyType } from "./enum/SerialKeyVerifyType";
|
|
19
|
+
|
|
20
|
+
export default class VerifyCodeByUserId extends VerifyAction {
|
|
21
|
+
private readonly namespaceName: string;
|
|
22
|
+
private readonly userId: string;
|
|
23
|
+
private readonly code: string;
|
|
24
|
+
private readonly verifyType: SerialKeyVerifyType;
|
|
25
|
+
private readonly timeOffsetToken: string|null = null;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
public constructor(
|
|
29
|
+
namespaceName: string,
|
|
30
|
+
code: string,
|
|
31
|
+
verifyType: SerialKeyVerifyType,
|
|
32
|
+
timeOffsetToken: string|null = null,
|
|
33
|
+
userId: string = "#{userId}",
|
|
34
|
+
) {
|
|
35
|
+
super();
|
|
36
|
+
|
|
37
|
+
this.namespaceName = namespaceName;
|
|
38
|
+
this.code = code;
|
|
39
|
+
this.verifyType = verifyType;
|
|
40
|
+
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
41
|
+
this.userId = userId;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public request(
|
|
45
|
+
): {[name: string]: any} {
|
|
46
|
+
let properties: {[name: string]: any} = {};
|
|
47
|
+
|
|
48
|
+
if (this.namespaceName != null) {
|
|
49
|
+
properties["namespaceName"] = this.namespaceName;
|
|
50
|
+
}
|
|
51
|
+
if (this.userId != null) {
|
|
52
|
+
properties["userId"] = this.userId;
|
|
53
|
+
}
|
|
54
|
+
if (this.code != null) {
|
|
55
|
+
properties["code"] = this.code;
|
|
56
|
+
}
|
|
57
|
+
if (this.verifyType != null) {
|
|
58
|
+
properties["verifyType"] = this.verifyType;
|
|
59
|
+
}
|
|
60
|
+
if (this.timeOffsetToken != null) {
|
|
61
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return properties;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public action(): string {
|
|
68
|
+
return "Gs2SerialKey:VerifyCodeByUserId";
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -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.SerialKeyVerifyType = void 0;
|
|
19
|
+
exports.SerialKeyVerifyType = {
|
|
20
|
+
ACTIVE: "active",
|
|
21
|
+
INACTIVE: "inactive",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=SerialKeyVerifyType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SerialKeyVerifyType.js","sourceRoot":"","sources":["SerialKeyVerifyType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,mBAAmB,GAAG;IAC/B,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACd,CAAC"}
|