gs2-cdk 1.0.77 → 1.0.79

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 (57) hide show
  1. package/account/model/CurrentMasterData.d.ts +13 -0
  2. package/account/model/CurrentMasterData.js +50 -0
  3. package/account/model/CurrentMasterData.js.map +1 -0
  4. package/account/model/CurrentMasterData.ts +70 -0
  5. package/account/model/Namespace.d.ts +2 -0
  6. package/account/model/Namespace.js +5 -0
  7. package/account/model/Namespace.js.map +1 -1
  8. package/account/model/Namespace.ts +15 -0
  9. package/account/model/OpenIdConnectSetting.d.ts +13 -0
  10. package/account/model/OpenIdConnectSetting.js +41 -0
  11. package/account/model/OpenIdConnectSetting.js.map +1 -0
  12. package/account/model/OpenIdConnectSetting.ts +64 -0
  13. package/account/model/TakeOverTypeModel.d.ts +11 -0
  14. package/account/model/TakeOverTypeModel.js +27 -0
  15. package/account/model/TakeOverTypeModel.js.map +1 -0
  16. package/account/model/TakeOverTypeModel.ts +51 -0
  17. package/account/model/index.d.ts +6 -1
  18. package/account/model/index.js +7 -1
  19. package/account/model/index.js.map +1 -1
  20. package/account/model/index.ts +10 -0
  21. package/account/model/options/OpenIdConnectSettingOptions.d.ts +6 -0
  22. package/account/model/options/OpenIdConnectSettingOptions.js +18 -0
  23. package/account/model/options/OpenIdConnectSettingOptions.js.map +1 -0
  24. package/account/model/options/OpenIdConnectSettingOptions.ts +23 -0
  25. package/account/model/options/TakeOverTypeModelOptions.d.ts +3 -0
  26. package/account/model/options/TakeOverTypeModelOptions.js +3 -0
  27. package/account/model/options/TakeOverTypeModelOptions.js.map +1 -0
  28. package/account/model/options/TakeOverTypeModelOptions.ts +21 -0
  29. package/account/ref/NamespaceRef.d.ts +2 -0
  30. package/account/ref/NamespaceRef.js +5 -0
  31. package/account/ref/NamespaceRef.js.map +1 -1
  32. package/account/ref/NamespaceRef.ts +10 -0
  33. package/account/ref/TakeOverTypeModelRef.d.ts +6 -0
  34. package/account/ref/TakeOverTypeModelRef.js +41 -0
  35. package/account/ref/TakeOverTypeModelRef.js.map +1 -0
  36. package/account/ref/TakeOverTypeModelRef.ts +55 -0
  37. package/account/ref/index.d.ts +2 -1
  38. package/account/ref/index.js +3 -1
  39. package/account/ref/index.js.map +1 -1
  40. package/account/ref/index.ts +2 -0
  41. package/distributor/stampSheet/AndExpressionByUserId.d.ts +12 -0
  42. package/distributor/stampSheet/AndExpressionByUserId.js +50 -0
  43. package/distributor/stampSheet/AndExpressionByUserId.js.map +1 -0
  44. package/distributor/stampSheet/AndExpressionByUserId.ts +64 -0
  45. package/distributor/stampSheet/IfExpressionByUserId.d.ts +15 -0
  46. package/distributor/stampSheet/IfExpressionByUserId.js +65 -0
  47. package/distributor/stampSheet/IfExpressionByUserId.js.map +1 -0
  48. package/distributor/stampSheet/IfExpressionByUserId.ts +84 -0
  49. package/distributor/stampSheet/OrExpressionByUserId.d.ts +12 -0
  50. package/distributor/stampSheet/OrExpressionByUserId.js +50 -0
  51. package/distributor/stampSheet/OrExpressionByUserId.js.map +1 -0
  52. package/distributor/stampSheet/OrExpressionByUserId.ts +64 -0
  53. package/distributor/stampSheet/index.d.ts +4 -1
  54. package/distributor/stampSheet/index.js +9 -1
  55. package/distributor/stampSheet/index.js.map +1 -1
  56. package/distributor/stampSheet/index.ts +6 -0
  57. package/package.json +1 -1
@@ -15,6 +15,7 @@
15
15
  */
16
16
 
17
17
  import {GetAttr, Join} from "../../core/func";
18
+ import TakeOverTypeModelRef from "./TakeOverTypeModelRef";
18
19
 
19
20
  export default class NamespaceRef {
20
21
  private readonly namespaceName: string;
@@ -25,6 +26,15 @@ export default class NamespaceRef {
25
26
  this.namespaceName = namespaceName;
26
27
  }
27
28
 
29
+ public takeOverTypeModel(
30
+ type: number,
31
+ ): TakeOverTypeModelRef {
32
+ return new TakeOverTypeModelRef(
33
+ this.namespaceName,
34
+ type,
35
+ );
36
+ }
37
+
28
38
  public grn(
29
39
  ): string {
30
40
  return new Join(
@@ -0,0 +1,6 @@
1
+ export default class TakeOverTypeModelRef {
2
+ private readonly namespaceName;
3
+ private readonly type;
4
+ constructor(namespaceName: string, type: number);
5
+ grn(): string;
6
+ }
@@ -0,0 +1,41 @@
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 func_1 = require("../../core/func");
21
+ class TakeOverTypeModelRef {
22
+ constructor(namespaceName, type) {
23
+ this.namespaceName = namespaceName;
24
+ this.type = type;
25
+ }
26
+ grn() {
27
+ return new func_1.Join(":", [
28
+ "grn",
29
+ "gs2",
30
+ func_1.GetAttr.region().str(),
31
+ func_1.GetAttr.ownerId().str(),
32
+ "account",
33
+ this.namespaceName,
34
+ "model",
35
+ "takeOver",
36
+ this.type.toString(),
37
+ ]).str();
38
+ }
39
+ }
40
+ exports.default = TakeOverTypeModelRef;
41
+ //# sourceMappingURL=TakeOverTypeModelRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TakeOverTypeModelRef.js","sourceRoot":"","sources":["TakeOverTypeModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,0CAA8C;AAE9C,MAAqB,oBAAoB;IAIrC,YACI,aAAqB,EACrB,IAAY;QAEZ,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,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,SAAS;YACT,IAAI,CAAC,aAAa;YAClB,OAAO;YACP,UAAU;YACV,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;SACvB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAlCD,uCAkCC"}
@@ -0,0 +1,55 @@
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 {GetAttr, Join} from "../../core/func";
20
+
21
+ export default class TakeOverTypeModelRef {
22
+ private readonly namespaceName: string;
23
+ private readonly type: number;
24
+
25
+ public constructor(
26
+ namespaceName: string,
27
+ type: number,
28
+ ) {
29
+ this.namespaceName = namespaceName;
30
+ this.type = type;
31
+ }
32
+
33
+ public grn(
34
+ ): string {
35
+ return new Join(
36
+ ":",
37
+ [
38
+ "grn",
39
+ "gs2",
40
+ GetAttr.region(
41
+ ).str(
42
+ ),
43
+ GetAttr.ownerId(
44
+ ).str(
45
+ ),
46
+ "account",
47
+ this.namespaceName,
48
+ "model",
49
+ "takeOver",
50
+ this.type.toString(),
51
+ ],
52
+ ).str(
53
+ );
54
+ }
55
+ }
@@ -1,2 +1,3 @@
1
1
  import NamespaceRef from "./NamespaceRef";
2
- export { NamespaceRef, };
2
+ import TakeOverTypeModelRef from "./TakeOverTypeModelRef";
3
+ export { NamespaceRef, TakeOverTypeModelRef, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NamespaceRef = void 0;
3
+ exports.TakeOverTypeModelRef = exports.NamespaceRef = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -19,4 +19,6 @@ const tslib_1 = require("tslib");
19
19
  */
20
20
  const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
21
21
  exports.NamespaceRef = NamespaceRef_1.default;
22
+ const TakeOverTypeModelRef_1 = tslib_1.__importDefault(require("./TakeOverTypeModelRef"));
23
+ exports.TakeOverTypeModelRef = TakeOverTypeModelRef_1.default;
22
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAGtC,uBAHG,sBAAY,CAGH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAItC,uBAJG,sBAAY,CAIH;AAHhB,0FAA0D;AAItD,+BAJG,8BAAoB,CAIH"}
@@ -14,7 +14,9 @@
14
14
  * permissions and limitations under the License.
15
15
  */
16
16
  import NamespaceRef from "./NamespaceRef";
17
+ import TakeOverTypeModelRef from "./TakeOverTypeModelRef";
17
18
 
18
19
  export {
19
20
  NamespaceRef,
21
+ TakeOverTypeModelRef,
20
22
  }
@@ -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.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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,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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
- export {};
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
- Object.defineProperty(exports, "__esModule", { value: true });
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":";AAAA;;;;;;;;;;;;;;GAcG"}
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
  }