gs2-cdk 1.0.77 → 1.0.78
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/distributor/stampSheet/AndExpressionByUserId.d.ts +12 -0
- package/distributor/stampSheet/AndExpressionByUserId.js +50 -0
- package/distributor/stampSheet/AndExpressionByUserId.js.map +1 -0
- package/distributor/stampSheet/AndExpressionByUserId.ts +64 -0
- package/distributor/stampSheet/IfExpressionByUserId.d.ts +15 -0
- package/distributor/stampSheet/IfExpressionByUserId.js +65 -0
- package/distributor/stampSheet/IfExpressionByUserId.js.map +1 -0
- package/distributor/stampSheet/IfExpressionByUserId.ts +84 -0
- package/distributor/stampSheet/OrExpressionByUserId.d.ts +12 -0
- package/distributor/stampSheet/OrExpressionByUserId.js +50 -0
- package/distributor/stampSheet/OrExpressionByUserId.js.map +1 -0
- package/distributor/stampSheet/OrExpressionByUserId.ts +64 -0
- package/distributor/stampSheet/index.d.ts +4 -1
- package/distributor/stampSheet/index.js +9 -1
- package/distributor/stampSheet/index.js.map +1 -1
- package/distributor/stampSheet/index.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VerifyAction } from "../../core/model";
|
|
2
|
+
export default class AndExpressionByUserId extends VerifyAction {
|
|
3
|
+
private readonly namespaceName;
|
|
4
|
+
private readonly userId;
|
|
5
|
+
private readonly actions;
|
|
6
|
+
private readonly timeOffsetToken;
|
|
7
|
+
constructor(namespaceName: string, actions?: VerifyAction[] | null, timeOffsetToken?: string | null, userId?: string);
|
|
8
|
+
request(): {
|
|
9
|
+
[name: string]: any;
|
|
10
|
+
};
|
|
11
|
+
action(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 AndExpressionByUserId extends model_1.VerifyAction {
|
|
20
|
+
constructor(namespaceName, actions = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.actions = null;
|
|
23
|
+
this.timeOffsetToken = null;
|
|
24
|
+
this.namespaceName = namespaceName;
|
|
25
|
+
this.actions = actions !== null && actions !== void 0 ? actions : null;
|
|
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.actions != null) {
|
|
38
|
+
properties["actions"] = this.actions.map(v => v.properties());
|
|
39
|
+
}
|
|
40
|
+
if (this.timeOffsetToken != null) {
|
|
41
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
42
|
+
}
|
|
43
|
+
return properties;
|
|
44
|
+
}
|
|
45
|
+
action() {
|
|
46
|
+
return "Gs2Distributor:AndExpressionByUserId";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.default = AndExpressionByUserId;
|
|
50
|
+
//# sourceMappingURL=AndExpressionByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AndExpressionByUserId.js","sourceRoot":"","sources":["AndExpressionByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAE5E,MAAqB,qBAAsB,SAAQ,oBAAY;IAO3D,YACI,aAAqB,EACrB,UAA+B,IAAI,EACnC,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAVK,YAAO,GAAwB,IAAI,CAAC;QACpC,oBAAe,GAAgB,IAAI,CAAC;QAWjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,IAAI,CAAC;QAC/B,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,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACrD,CAAC,CAAC;SACV;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,sCAAsC,CAAC;IAClD,CAAC;CACJ;AA7CD,wCA6CC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
|
|
18
|
+
|
|
19
|
+
export default class AndExpressionByUserId extends VerifyAction {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly userId: string;
|
|
22
|
+
private readonly actions: VerifyAction[]|null = null;
|
|
23
|
+
private readonly timeOffsetToken: string|null = null;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
public constructor(
|
|
27
|
+
namespaceName: string,
|
|
28
|
+
actions: VerifyAction[]|null = null,
|
|
29
|
+
timeOffsetToken: string|null = null,
|
|
30
|
+
userId: string = "#{userId}",
|
|
31
|
+
) {
|
|
32
|
+
super();
|
|
33
|
+
|
|
34
|
+
this.namespaceName = namespaceName;
|
|
35
|
+
this.actions = actions ?? null;
|
|
36
|
+
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
37
|
+
this.userId = userId;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public request(
|
|
41
|
+
): {[name: string]: any} {
|
|
42
|
+
let properties: {[name: string]: any} = {};
|
|
43
|
+
|
|
44
|
+
if (this.namespaceName != null) {
|
|
45
|
+
properties["namespaceName"] = this.namespaceName;
|
|
46
|
+
}
|
|
47
|
+
if (this.userId != null) {
|
|
48
|
+
properties["userId"] = this.userId;
|
|
49
|
+
}
|
|
50
|
+
if (this.actions != null) {
|
|
51
|
+
properties["actions"] = this.actions.map(v => v.properties(
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
if (this.timeOffsetToken != null) {
|
|
55
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return properties;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public action(): string {
|
|
62
|
+
return "Gs2Distributor:AndExpressionByUserId";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ConsumeAction, VerifyAction } from "../../core/model";
|
|
2
|
+
export default class IfExpressionByUserId extends ConsumeAction {
|
|
3
|
+
private readonly namespaceName;
|
|
4
|
+
private readonly userId;
|
|
5
|
+
private readonly condition;
|
|
6
|
+
private readonly trueActions;
|
|
7
|
+
private readonly falseActions;
|
|
8
|
+
private readonly multiplyValueSpecifyingQuantity;
|
|
9
|
+
private readonly timeOffsetToken;
|
|
10
|
+
constructor(namespaceName: string, condition: VerifyAction, trueActions?: ConsumeAction[] | null, falseActions?: ConsumeAction[] | null, multiplyValueSpecifyingQuantity?: boolean | null, timeOffsetToken?: string | null, userId?: string);
|
|
11
|
+
request(): {
|
|
12
|
+
[name: string]: any;
|
|
13
|
+
};
|
|
14
|
+
action(): string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 IfExpressionByUserId extends model_1.ConsumeAction {
|
|
20
|
+
constructor(namespaceName, condition, trueActions = null, falseActions = null, multiplyValueSpecifyingQuantity = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.trueActions = null;
|
|
23
|
+
this.falseActions = null;
|
|
24
|
+
this.multiplyValueSpecifyingQuantity = null;
|
|
25
|
+
this.timeOffsetToken = null;
|
|
26
|
+
this.namespaceName = namespaceName;
|
|
27
|
+
this.condition = condition;
|
|
28
|
+
this.trueActions = trueActions !== null && trueActions !== void 0 ? trueActions : null;
|
|
29
|
+
this.falseActions = falseActions !== null && falseActions !== void 0 ? falseActions : null;
|
|
30
|
+
this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity !== null && multiplyValueSpecifyingQuantity !== void 0 ? multiplyValueSpecifyingQuantity : null;
|
|
31
|
+
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
32
|
+
this.userId = userId;
|
|
33
|
+
}
|
|
34
|
+
request() {
|
|
35
|
+
var _a;
|
|
36
|
+
let properties = {};
|
|
37
|
+
if (this.namespaceName != null) {
|
|
38
|
+
properties["namespaceName"] = this.namespaceName;
|
|
39
|
+
}
|
|
40
|
+
if (this.userId != null) {
|
|
41
|
+
properties["userId"] = this.userId;
|
|
42
|
+
}
|
|
43
|
+
if (this.condition != null) {
|
|
44
|
+
properties["condition"] = (_a = this.condition) === null || _a === void 0 ? void 0 : _a.properties();
|
|
45
|
+
}
|
|
46
|
+
if (this.trueActions != null) {
|
|
47
|
+
properties["trueActions"] = this.trueActions.map(v => v.properties());
|
|
48
|
+
}
|
|
49
|
+
if (this.falseActions != null) {
|
|
50
|
+
properties["falseActions"] = this.falseActions.map(v => v.properties());
|
|
51
|
+
}
|
|
52
|
+
if (this.multiplyValueSpecifyingQuantity != null) {
|
|
53
|
+
properties["multiplyValueSpecifyingQuantity"] = this.multiplyValueSpecifyingQuantity;
|
|
54
|
+
}
|
|
55
|
+
if (this.timeOffsetToken != null) {
|
|
56
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
57
|
+
}
|
|
58
|
+
return properties;
|
|
59
|
+
}
|
|
60
|
+
action() {
|
|
61
|
+
return "Gs2Distributor:IfExpressionByUserId";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.default = IfExpressionByUserId;
|
|
65
|
+
//# sourceMappingURL=IfExpressionByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IfExpressionByUserId.js","sourceRoot":"","sources":["IfExpressionByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAE5E,MAAqB,oBAAqB,SAAQ,qBAAa;IAU3D,YACI,aAAqB,EACrB,SAAuB,EACvB,cAAoC,IAAI,EACxC,eAAqC,IAAI,EACzC,kCAAgD,IAAI,EACpD,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAfK,gBAAW,GAAyB,IAAI,CAAC;QACzC,iBAAY,GAAyB,IAAI,CAAC;QAC1C,oCAA+B,GAAiB,IAAI,CAAC;QACrD,oBAAe,GAAgB,IAAI,CAAC;QAcjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,WAAW,GAAG,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,IAAI,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,IAAI,CAAC;QACzC,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,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,MAAA,IAAI,CAAC,SAAS,0CAAE,UAAU,EACnD,CAAC;SACL;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC7D,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC/D,CAAC,CAAC;SACV;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,qCAAqC,CAAC;IACjD,CAAC;CACJ;AAjED,uCAiEC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
|
|
18
|
+
|
|
19
|
+
export default class IfExpressionByUserId extends ConsumeAction {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly userId: string;
|
|
22
|
+
private readonly condition: VerifyAction;
|
|
23
|
+
private readonly trueActions: ConsumeAction[]|null = null;
|
|
24
|
+
private readonly falseActions: ConsumeAction[]|null = null;
|
|
25
|
+
private readonly multiplyValueSpecifyingQuantity: boolean|null = null;
|
|
26
|
+
private readonly timeOffsetToken: string|null = null;
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
public constructor(
|
|
30
|
+
namespaceName: string,
|
|
31
|
+
condition: VerifyAction,
|
|
32
|
+
trueActions: ConsumeAction[]|null = null,
|
|
33
|
+
falseActions: ConsumeAction[]|null = null,
|
|
34
|
+
multiplyValueSpecifyingQuantity: boolean|null = null,
|
|
35
|
+
timeOffsetToken: string|null = null,
|
|
36
|
+
userId: string = "#{userId}",
|
|
37
|
+
) {
|
|
38
|
+
super();
|
|
39
|
+
|
|
40
|
+
this.namespaceName = namespaceName;
|
|
41
|
+
this.condition = condition;
|
|
42
|
+
this.trueActions = trueActions ?? null;
|
|
43
|
+
this.falseActions = falseActions ?? null;
|
|
44
|
+
this.multiplyValueSpecifyingQuantity = multiplyValueSpecifyingQuantity ?? null;
|
|
45
|
+
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
46
|
+
this.userId = userId;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public request(
|
|
50
|
+
): {[name: string]: any} {
|
|
51
|
+
let properties: {[name: string]: any} = {};
|
|
52
|
+
|
|
53
|
+
if (this.namespaceName != null) {
|
|
54
|
+
properties["namespaceName"] = this.namespaceName;
|
|
55
|
+
}
|
|
56
|
+
if (this.userId != null) {
|
|
57
|
+
properties["userId"] = this.userId;
|
|
58
|
+
}
|
|
59
|
+
if (this.condition != null) {
|
|
60
|
+
properties["condition"] = this.condition?.properties(
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
if (this.trueActions != null) {
|
|
64
|
+
properties["trueActions"] = this.trueActions.map(v => v.properties(
|
|
65
|
+
));
|
|
66
|
+
}
|
|
67
|
+
if (this.falseActions != null) {
|
|
68
|
+
properties["falseActions"] = this.falseActions.map(v => v.properties(
|
|
69
|
+
));
|
|
70
|
+
}
|
|
71
|
+
if (this.multiplyValueSpecifyingQuantity != null) {
|
|
72
|
+
properties["multiplyValueSpecifyingQuantity"] = this.multiplyValueSpecifyingQuantity;
|
|
73
|
+
}
|
|
74
|
+
if (this.timeOffsetToken != null) {
|
|
75
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return properties;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
public action(): string {
|
|
82
|
+
return "Gs2Distributor:IfExpressionByUserId";
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VerifyAction } from "../../core/model";
|
|
2
|
+
export default class OrExpressionByUserId extends VerifyAction {
|
|
3
|
+
private readonly namespaceName;
|
|
4
|
+
private readonly userId;
|
|
5
|
+
private readonly actions;
|
|
6
|
+
private readonly timeOffsetToken;
|
|
7
|
+
constructor(namespaceName: string, actions?: VerifyAction[] | null, timeOffsetToken?: string | null, userId?: string);
|
|
8
|
+
request(): {
|
|
9
|
+
[name: string]: any;
|
|
10
|
+
};
|
|
11
|
+
action(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 OrExpressionByUserId extends model_1.VerifyAction {
|
|
20
|
+
constructor(namespaceName, actions = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.actions = null;
|
|
23
|
+
this.timeOffsetToken = null;
|
|
24
|
+
this.namespaceName = namespaceName;
|
|
25
|
+
this.actions = actions !== null && actions !== void 0 ? actions : null;
|
|
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.actions != null) {
|
|
38
|
+
properties["actions"] = this.actions.map(v => v.properties());
|
|
39
|
+
}
|
|
40
|
+
if (this.timeOffsetToken != null) {
|
|
41
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
42
|
+
}
|
|
43
|
+
return properties;
|
|
44
|
+
}
|
|
45
|
+
action() {
|
|
46
|
+
return "Gs2Distributor:OrExpressionByUserId";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.default = OrExpressionByUserId;
|
|
50
|
+
//# sourceMappingURL=OrExpressionByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrExpressionByUserId.js","sourceRoot":"","sources":["OrExpressionByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAE5E,MAAqB,oBAAqB,SAAQ,oBAAY;IAO1D,YACI,aAAqB,EACrB,UAA+B,IAAI,EACnC,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAVK,YAAO,GAAwB,IAAI,CAAC;QACpC,oBAAe,GAAgB,IAAI,CAAC;QAWjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,IAAI,CAAC;QAC/B,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,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACrD,CAAC,CAAC;SACV;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,qCAAqC,CAAC;IACjD,CAAC;CACJ;AA7CD,uCA6CC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
|
|
18
|
+
|
|
19
|
+
export default class OrExpressionByUserId extends VerifyAction {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly userId: string;
|
|
22
|
+
private readonly actions: VerifyAction[]|null = null;
|
|
23
|
+
private readonly timeOffsetToken: string|null = null;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
public constructor(
|
|
27
|
+
namespaceName: string,
|
|
28
|
+
actions: VerifyAction[]|null = null,
|
|
29
|
+
timeOffsetToken: string|null = null,
|
|
30
|
+
userId: string = "#{userId}",
|
|
31
|
+
) {
|
|
32
|
+
super();
|
|
33
|
+
|
|
34
|
+
this.namespaceName = namespaceName;
|
|
35
|
+
this.actions = actions ?? null;
|
|
36
|
+
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
37
|
+
this.userId = userId;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public request(
|
|
41
|
+
): {[name: string]: any} {
|
|
42
|
+
let properties: {[name: string]: any} = {};
|
|
43
|
+
|
|
44
|
+
if (this.namespaceName != null) {
|
|
45
|
+
properties["namespaceName"] = this.namespaceName;
|
|
46
|
+
}
|
|
47
|
+
if (this.userId != null) {
|
|
48
|
+
properties["userId"] = this.userId;
|
|
49
|
+
}
|
|
50
|
+
if (this.actions != null) {
|
|
51
|
+
properties["actions"] = this.actions.map(v => v.properties(
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
if (this.timeOffsetToken != null) {
|
|
55
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return properties;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public action(): string {
|
|
62
|
+
return "Gs2Distributor:OrExpressionByUserId";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import IfExpressionByUserId from "./IfExpressionByUserId";
|
|
2
|
+
import AndExpressionByUserId from "./AndExpressionByUserId";
|
|
3
|
+
import OrExpressionByUserId from "./OrExpressionByUserId";
|
|
4
|
+
export { IfExpressionByUserId, AndExpressionByUserId, OrExpressionByUserId, };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrExpressionByUserId = exports.AndExpressionByUserId = exports.IfExpressionByUserId = 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,10 @@
|
|
|
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 IfExpressionByUserId_1 = tslib_1.__importDefault(require("./IfExpressionByUserId"));
|
|
21
|
+
exports.IfExpressionByUserId = IfExpressionByUserId_1.default;
|
|
22
|
+
const AndExpressionByUserId_1 = tslib_1.__importDefault(require("./AndExpressionByUserId"));
|
|
23
|
+
exports.AndExpressionByUserId = AndExpressionByUserId_1.default;
|
|
24
|
+
const OrExpressionByUserId_1 = tslib_1.__importDefault(require("./OrExpressionByUserId"));
|
|
25
|
+
exports.OrExpressionByUserId = OrExpressionByUserId_1.default;
|
|
18
26
|
//# 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,0FAA0D;AAKtD,+BALG,8BAAoB,CAKH;AAJxB,4FAA4D;AAKxD,gCALG,+BAAqB,CAKH;AAJzB,0FAA0D;AAKtD,+BALG,8BAAoB,CAKH"}
|
|
@@ -13,6 +13,12 @@
|
|
|
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 IfExpressionByUserId from "./IfExpressionByUserId";
|
|
17
|
+
import AndExpressionByUserId from "./AndExpressionByUserId";
|
|
18
|
+
import OrExpressionByUserId from "./OrExpressionByUserId";
|
|
16
19
|
|
|
17
20
|
export {
|
|
21
|
+
IfExpressionByUserId,
|
|
22
|
+
AndExpressionByUserId,
|
|
23
|
+
OrExpressionByUserId,
|
|
18
24
|
}
|