gs2-cdk 1.0.83 → 1.0.85

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.
@@ -7,6 +7,7 @@ export default class Namespace extends CdkResource {
7
7
  private readonly name;
8
8
  private readonly description;
9
9
  private readonly allowCreateRoom;
10
+ private readonly messageLifeTimeDays;
10
11
  private readonly postMessageScript;
11
12
  private readonly createRoomScript;
12
13
  private readonly deleteRoomScript;
@@ -21,10 +21,11 @@ const func_1 = require("../../core/func");
21
21
  const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
22
22
  class Namespace extends model_1.CdkResource {
23
23
  constructor(stack, name, options = null) {
24
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
24
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
25
25
  super("Chat_Namespace_" + name);
26
26
  this.description = null;
27
27
  this.allowCreateRoom = null;
28
+ this.messageLifeTimeDays = null;
28
29
  this.postMessageScript = null;
29
30
  this.createRoomScript = null;
30
31
  this.deleteRoomScript = null;
@@ -36,13 +37,14 @@ class Namespace extends model_1.CdkResource {
36
37
  this.name = name;
37
38
  this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
38
39
  this.allowCreateRoom = (_b = options === null || options === void 0 ? void 0 : options.allowCreateRoom) !== null && _b !== void 0 ? _b : null;
39
- this.postMessageScript = (_c = options === null || options === void 0 ? void 0 : options.postMessageScript) !== null && _c !== void 0 ? _c : null;
40
- this.createRoomScript = (_d = options === null || options === void 0 ? void 0 : options.createRoomScript) !== null && _d !== void 0 ? _d : null;
41
- this.deleteRoomScript = (_e = options === null || options === void 0 ? void 0 : options.deleteRoomScript) !== null && _e !== void 0 ? _e : null;
42
- this.subscribeRoomScript = (_f = options === null || options === void 0 ? void 0 : options.subscribeRoomScript) !== null && _f !== void 0 ? _f : null;
43
- this.unsubscribeRoomScript = (_g = options === null || options === void 0 ? void 0 : options.unsubscribeRoomScript) !== null && _g !== void 0 ? _g : null;
44
- this.postNotification = (_h = options === null || options === void 0 ? void 0 : options.postNotification) !== null && _h !== void 0 ? _h : null;
45
- this.logSetting = (_j = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _j !== void 0 ? _j : null;
40
+ this.messageLifeTimeDays = (_c = options === null || options === void 0 ? void 0 : options.messageLifeTimeDays) !== null && _c !== void 0 ? _c : null;
41
+ this.postMessageScript = (_d = options === null || options === void 0 ? void 0 : options.postMessageScript) !== null && _d !== void 0 ? _d : null;
42
+ this.createRoomScript = (_e = options === null || options === void 0 ? void 0 : options.createRoomScript) !== null && _e !== void 0 ? _e : null;
43
+ this.deleteRoomScript = (_f = options === null || options === void 0 ? void 0 : options.deleteRoomScript) !== null && _f !== void 0 ? _f : null;
44
+ this.subscribeRoomScript = (_g = options === null || options === void 0 ? void 0 : options.subscribeRoomScript) !== null && _g !== void 0 ? _g : null;
45
+ this.unsubscribeRoomScript = (_h = options === null || options === void 0 ? void 0 : options.unsubscribeRoomScript) !== null && _h !== void 0 ? _h : null;
46
+ this.postNotification = (_j = options === null || options === void 0 ? void 0 : options.postNotification) !== null && _j !== void 0 ? _j : null;
47
+ this.logSetting = (_k = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _k !== void 0 ? _k : null;
46
48
  stack.addResource(this);
47
49
  }
48
50
  alternateKeys() {
@@ -63,6 +65,9 @@ class Namespace extends model_1.CdkResource {
63
65
  if (this.allowCreateRoom != null) {
64
66
  properties["AllowCreateRoom"] = this.allowCreateRoom;
65
67
  }
68
+ if (this.messageLifeTimeDays != null) {
69
+ properties["MessageLifeTimeDays"] = this.messageLifeTimeDays;
70
+ }
66
71
  if (this.postMessageScript != null) {
67
72
  properties["PostMessageScript"] = (_a = this.postMessageScript) === null || _a === void 0 ? void 0 : _a.properties();
68
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;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,mBAAmB,IAAI,IAAI,EAAE;YAClC,UAAU,CAAC,qBAAqB,CAAC,GAAG,MAAA,IAAI,CAAC,mBAAmB,0CAAE,UAAU,EACvE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,qBAAqB,IAAI,IAAI,EAAE;YACpC,UAAU,CAAC,uBAAuB,CAAC,GAAG,MAAA,IAAI,CAAC,qBAAqB,0CAAE,UAAU,EAC3E,CAAC;SACL;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EACjE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;CACJ;AAlHD,4BAkHC"}
@@ -29,6 +29,7 @@ export default class Namespace extends CdkResource {
29
29
  private readonly name: string;
30
30
  private readonly description: string|null = null;
31
31
  private readonly allowCreateRoom: boolean|null = null;
32
+ private readonly messageLifeTimeDays: number|null = null;
32
33
  private readonly postMessageScript: ScriptSetting|null = null;
33
34
  private readonly createRoomScript: ScriptSetting|null = null;
34
35
  private readonly deleteRoomScript: ScriptSetting|null = null;
@@ -50,6 +51,7 @@ export default class Namespace extends CdkResource {
50
51
  this.name = name;
51
52
  this.description = options?.description ?? null;
52
53
  this.allowCreateRoom = options?.allowCreateRoom ?? null;
54
+ this.messageLifeTimeDays = options?.messageLifeTimeDays ?? null;
53
55
  this.postMessageScript = options?.postMessageScript ?? null;
54
56
  this.createRoomScript = options?.createRoomScript ?? null;
55
57
  this.deleteRoomScript = options?.deleteRoomScript ?? null;
@@ -86,6 +88,9 @@ export default class Namespace extends CdkResource {
86
88
  if (this.allowCreateRoom != null) {
87
89
  properties["AllowCreateRoom"] = this.allowCreateRoom;
88
90
  }
91
+ if (this.messageLifeTimeDays != null) {
92
+ properties["MessageLifeTimeDays"] = this.messageLifeTimeDays;
93
+ }
89
94
  if (this.postMessageScript != null) {
90
95
  properties["PostMessageScript"] = this.postMessageScript?.properties(
91
96
  );
@@ -4,6 +4,7 @@ import LogSetting from "../../../core/model/LogSetting";
4
4
  export interface NamespaceOptions {
5
5
  description?: string | null;
6
6
  allowCreateRoom?: boolean | null;
7
+ messageLifeTimeDays?: number | null;
7
8
  postMessageScript?: ScriptSetting | null;
8
9
  createRoomScript?: ScriptSetting | null;
9
10
  deleteRoomScript?: ScriptSetting | null;
@@ -20,6 +20,7 @@ import LogSetting from "../../../core/model/LogSetting";
20
20
  export interface NamespaceOptions {
21
21
  description?: string|null;
22
22
  allowCreateRoom?: boolean|null;
23
+ messageLifeTimeDays?: number|null;
23
24
  postMessageScript?: ScriptSetting|null;
24
25
  createRoomScript?: ScriptSetting|null;
25
26
  deleteRoomScript?: ScriptSetting|null;
@@ -5,6 +5,7 @@ import IncreaseCounterByUserId from "../stampSheet/IncreaseCounterByUserId";
5
5
  import SetCounterByUserId from "../stampSheet/SetCounterByUserId";
6
6
  import ScopedValue from "../model/ScopedValue";
7
7
  import ReceiveByUserId from "../stampSheet/ReceiveByUserId";
8
+ import BatchReceiveByUserId from "../stampSheet/BatchReceiveByUserId";
8
9
  import DecreaseCounterByUserId from "../stampSheet/DecreaseCounterByUserId";
9
10
  import VerifyCompleteByUserId from "../stampSheet/VerifyCompleteByUserId";
10
11
  import { CompleteVerifyType } from "../stampSheet/enum/CompleteVerifyType";
@@ -21,6 +22,7 @@ export default class NamespaceRef {
21
22
  increaseCounter(counterName: string, value: number, userId?: string): IncreaseCounterByUserId;
22
23
  setCounter(counterName: string, values?: ScopedValue[] | null, userId?: string): SetCounterByUserId;
23
24
  receive(missionGroupName: string, missionTaskName: string, userId?: string): ReceiveByUserId;
25
+ batchReceive(missionGroupName: string, missionTaskNames: string[], userId?: string): BatchReceiveByUserId;
24
26
  decreaseCounter(counterName: string, value: number, userId?: string): DecreaseCounterByUserId;
25
27
  verifyComplete(missionGroupName: string, verifyType: CompleteVerifyType, missionTaskName: string, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyCompleteByUserId;
26
28
  verifyCounterValue(counterName: string, verifyType: CounterVerifyType, scopeType?: CounterScopeType | null, resetType?: CounterResetType | null, conditionName?: string | null, value?: number | null, multiplyValueSpecifyingQuantity?: boolean | null, userId?: string): VerifyCounterValueByUserId;
@@ -23,6 +23,7 @@ const RevertReceiveByUserId_1 = tslib_1.__importDefault(require("../stampSheet/R
23
23
  const IncreaseCounterByUserId_1 = tslib_1.__importDefault(require("../stampSheet/IncreaseCounterByUserId"));
24
24
  const SetCounterByUserId_1 = tslib_1.__importDefault(require("../stampSheet/SetCounterByUserId"));
25
25
  const ReceiveByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ReceiveByUserId"));
26
+ const BatchReceiveByUserId_1 = tslib_1.__importDefault(require("../stampSheet/BatchReceiveByUserId"));
26
27
  const DecreaseCounterByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DecreaseCounterByUserId"));
27
28
  const VerifyCompleteByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyCompleteByUserId"));
28
29
  const VerifyCounterValueByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyCounterValueByUserId"));
@@ -48,6 +49,9 @@ class NamespaceRef {
48
49
  receive(missionGroupName, missionTaskName, userId = "#{userId}") {
49
50
  return new ReceiveByUserId_1.default(this.namespaceName, missionGroupName, missionTaskName, userId);
50
51
  }
52
+ batchReceive(missionGroupName, missionTaskNames, userId = "#{userId}") {
53
+ return new BatchReceiveByUserId_1.default(this.namespaceName, missionGroupName, missionTaskNames, userId);
54
+ }
51
55
  decreaseCounter(counterName, value, userId = "#{userId}") {
52
56
  return new DecreaseCounterByUserId_1.default(this.namespaceName, counterName, value, userId);
53
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0FAA0D;AAC1D,gFAAgD;AAChD,wGAAwE;AACxE,4GAA4E;AAC5E,kGAAkE;AAElE,4FAA4D;AAC5D,4GAA4E;AAC5E,0GAA0E;AAE1E,kHAAkF;AAKlF,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,iBAAiB,CACpB,gBAAwB;QAExB,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,gBAAgB,CACnB,CAAC;IACN,CAAC;IAEM,YAAY,CACf,WAAmB;QAEnB,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,WAAW,CACd,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,gBAAwB,EACxB,eAAuB,EACvB,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,gBAAgB,EAChB,eAAe,EACf,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,WAAmB,EACnB,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,UAAU,CACb,WAAmB,EACnB,SAA6B,IAAI,EACjC,SAAiB,WAAW;QAE5B,OAAO,IAAI,4BAAkB,CACzB,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,MAAM,EACN,MAAM,CACT,CAAC;IACN,CAAC;IAEM,OAAO,CACV,gBAAwB,EACxB,eAAuB,EACvB,SAAiB,WAAW;QAE5B,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,gBAAgB,EAChB,eAAe,EACf,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,WAAmB,EACnB,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,gBAAwB,EACxB,UAA8B,EAC9B,eAAuB,EACvB,kCAAgD,IAAI,EACpD,SAAiB,WAAW;QAE5B,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,+BAA+B,EAC/B,MAAM,CACT,CAAC;IACN,CAAC;IAEM,kBAAkB,CACrB,WAAmB,EACnB,UAA6B,EAC7B,YAAmC,IAAI,EACvC,YAAmC,IAAI,EACvC,gBAA6B,IAAI,EACjC,QAAqB,IAAI,EACzB,kCAAgD,IAAI,EACpD,SAAiB,WAAW;QAE5B,OAAO,IAAI,oCAA0B,CACjC,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,KAAK,EACL,+BAA+B,EAC/B,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,SAAS;YACT,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAvJD,+BAuJC"}
1
+ {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;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WAAW;QAE5B,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,WAAmB,EACnB,KAAa,EACb,SAAiB,WAAW;QAE5B,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,gBAAwB,EACxB,UAA8B,EAC9B,eAAuB,EACvB,kCAAgD,IAAI,EACpD,SAAiB,WAAW;QAE5B,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,+BAA+B,EAC/B,MAAM,CACT,CAAC;IACN,CAAC;IAEM,kBAAkB,CACrB,WAAmB,EACnB,UAA6B,EAC7B,YAAmC,IAAI,EACvC,YAAmC,IAAI,EACvC,gBAA6B,IAAI,EACjC,QAAqB,IAAI,EACzB,kCAAgD,IAAI,EACpD,SAAiB,WAAW;QAE5B,OAAO,IAAI,oCAA0B,CACjC,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,KAAK,EACL,+BAA+B,EAC/B,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,SAAS;YACT,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AApKD,+BAoKC"}
@@ -22,6 +22,7 @@ import IncreaseCounterByUserId from "../stampSheet/IncreaseCounterByUserId";
22
22
  import SetCounterByUserId from "../stampSheet/SetCounterByUserId";
23
23
  import ScopedValue from "../model/ScopedValue";
24
24
  import ReceiveByUserId from "../stampSheet/ReceiveByUserId";
25
+ import BatchReceiveByUserId from "../stampSheet/BatchReceiveByUserId";
25
26
  import DecreaseCounterByUserId from "../stampSheet/DecreaseCounterByUserId";
26
27
  import VerifyCompleteByUserId from "../stampSheet/VerifyCompleteByUserId";
27
28
  import { CompleteVerifyType } from "../stampSheet/enum/CompleteVerifyType";
@@ -109,6 +110,19 @@ export default class NamespaceRef {
109
110
  );
110
111
  }
111
112
 
113
+ public batchReceive(
114
+ missionGroupName: string,
115
+ missionTaskNames: string[],
116
+ userId: string = "#{userId}",
117
+ ): BatchReceiveByUserId {
118
+ return new BatchReceiveByUserId(
119
+ this.namespaceName,
120
+ missionGroupName,
121
+ missionTaskNames,
122
+ userId,
123
+ );
124
+ }
125
+
112
126
  public decreaseCounter(
113
127
  counterName: string,
114
128
  value: number,
@@ -0,0 +1,13 @@
1
+ import { ConsumeAction } from "../../core/model";
2
+ export default class BatchReceiveByUserId extends ConsumeAction {
3
+ private readonly namespaceName;
4
+ private readonly missionGroupName;
5
+ private readonly userId;
6
+ private readonly missionTaskNames;
7
+ private readonly timeOffsetToken;
8
+ constructor(namespaceName: string, missionGroupName: string, missionTaskNames: string[], timeOffsetToken?: string | null, userId?: string);
9
+ request(): {
10
+ [name: string]: any;
11
+ };
12
+ action(): string;
13
+ }
@@ -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 BatchReceiveByUserId extends model_1.ConsumeAction {
20
+ constructor(namespaceName, missionGroupName, missionTaskNames, timeOffsetToken = null, userId = "#{userId}") {
21
+ super();
22
+ this.timeOffsetToken = null;
23
+ this.namespaceName = namespaceName;
24
+ this.missionGroupName = missionGroupName;
25
+ this.missionTaskNames = missionTaskNames;
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.missionGroupName != null) {
35
+ properties["missionGroupName"] = this.missionGroupName;
36
+ }
37
+ if (this.userId != null) {
38
+ properties["userId"] = this.userId;
39
+ }
40
+ if (this.missionTaskNames != null) {
41
+ properties["missionTaskNames"] = this.missionTaskNames;
42
+ }
43
+ if (this.timeOffsetToken != null) {
44
+ properties["timeOffsetToken"] = this.timeOffsetToken;
45
+ }
46
+ return properties;
47
+ }
48
+ action() {
49
+ return "Gs2Mission:BatchReceiveByUserId";
50
+ }
51
+ }
52
+ exports.default = BatchReceiveByUserId;
53
+ //# sourceMappingURL=BatchReceiveByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BatchReceiveByUserId.js","sourceRoot":"","sources":["BatchReceiveByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAE5E,MAAqB,oBAAqB,SAAQ,qBAAa;IAQ3D,YACI,aAAqB,EACrB,gBAAwB,EACxB,gBAA0B,EAC1B,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,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,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,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC;SAC1D;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC;SAC1D;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,uCAkDC"}
@@ -0,0 +1,69 @@
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 BatchReceiveByUserId extends ConsumeAction {
20
+ private readonly namespaceName: string;
21
+ private readonly missionGroupName: string;
22
+ private readonly userId: string;
23
+ private readonly missionTaskNames: string[];
24
+ private readonly timeOffsetToken: string|null = null;
25
+
26
+
27
+ public constructor(
28
+ namespaceName: string,
29
+ missionGroupName: string,
30
+ missionTaskNames: string[],
31
+ timeOffsetToken: string|null = null,
32
+ userId: string = "#{userId}",
33
+ ) {
34
+ super();
35
+
36
+ this.namespaceName = namespaceName;
37
+ this.missionGroupName = missionGroupName;
38
+ this.missionTaskNames = missionTaskNames;
39
+ this.timeOffsetToken = timeOffsetToken ?? null;
40
+ this.userId = userId;
41
+ }
42
+
43
+ public request(
44
+ ): {[name: string]: any} {
45
+ let properties: {[name: string]: any} = {};
46
+
47
+ if (this.namespaceName != null) {
48
+ properties["namespaceName"] = this.namespaceName;
49
+ }
50
+ if (this.missionGroupName != null) {
51
+ properties["missionGroupName"] = this.missionGroupName;
52
+ }
53
+ if (this.userId != null) {
54
+ properties["userId"] = this.userId;
55
+ }
56
+ if (this.missionTaskNames != null) {
57
+ properties["missionTaskNames"] = this.missionTaskNames;
58
+ }
59
+ if (this.timeOffsetToken != null) {
60
+ properties["timeOffsetToken"] = this.timeOffsetToken;
61
+ }
62
+
63
+ return properties;
64
+ }
65
+
66
+ public action(): string {
67
+ return "Gs2Mission:BatchReceiveByUserId";
68
+ }
69
+ }
@@ -2,7 +2,8 @@ import RevertReceiveByUserId from "./RevertReceiveByUserId";
2
2
  import IncreaseCounterByUserId from "./IncreaseCounterByUserId";
3
3
  import SetCounterByUserId from "./SetCounterByUserId";
4
4
  import ReceiveByUserId from "./ReceiveByUserId";
5
+ import BatchReceiveByUserId from "./BatchReceiveByUserId";
5
6
  import DecreaseCounterByUserId from "./DecreaseCounterByUserId";
6
7
  import VerifyCompleteByUserId from "./VerifyCompleteByUserId";
7
8
  import VerifyCounterValueByUserId from "./VerifyCounterValueByUserId";
8
- export { RevertReceiveByUserId, IncreaseCounterByUserId, SetCounterByUserId, ReceiveByUserId, DecreaseCounterByUserId, VerifyCompleteByUserId, VerifyCounterValueByUserId, };
9
+ export { RevertReceiveByUserId, IncreaseCounterByUserId, SetCounterByUserId, ReceiveByUserId, BatchReceiveByUserId, DecreaseCounterByUserId, VerifyCompleteByUserId, VerifyCounterValueByUserId, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VerifyCounterValueByUserId = exports.VerifyCompleteByUserId = exports.DecreaseCounterByUserId = exports.ReceiveByUserId = exports.SetCounterByUserId = exports.IncreaseCounterByUserId = exports.RevertReceiveByUserId = void 0;
3
+ exports.VerifyCounterValueByUserId = exports.VerifyCompleteByUserId = exports.DecreaseCounterByUserId = exports.BatchReceiveByUserId = exports.ReceiveByUserId = exports.SetCounterByUserId = exports.IncreaseCounterByUserId = exports.RevertReceiveByUserId = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -25,6 +25,8 @@ const SetCounterByUserId_1 = tslib_1.__importDefault(require("./SetCounterByUser
25
25
  exports.SetCounterByUserId = SetCounterByUserId_1.default;
26
26
  const ReceiveByUserId_1 = tslib_1.__importDefault(require("./ReceiveByUserId"));
27
27
  exports.ReceiveByUserId = ReceiveByUserId_1.default;
28
+ const BatchReceiveByUserId_1 = tslib_1.__importDefault(require("./BatchReceiveByUserId"));
29
+ exports.BatchReceiveByUserId = BatchReceiveByUserId_1.default;
28
30
  const DecreaseCounterByUserId_1 = tslib_1.__importDefault(require("./DecreaseCounterByUserId"));
29
31
  exports.DecreaseCounterByUserId = DecreaseCounterByUserId_1.default;
30
32
  const VerifyCompleteByUserId_1 = tslib_1.__importDefault(require("./VerifyCompleteByUserId"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4FAA4D;AASxD,gCATG,+BAAqB,CASH;AARzB,gGAAgE;AAS5D,kCATG,iCAAuB,CASH;AAR3B,sFAAsD;AASlD,6BATG,4BAAkB,CASH;AARtB,gFAAgD;AAS5C,0BATG,yBAAe,CASH;AARnB,gGAAgE;AAS5D,kCATG,iCAAuB,CASH;AAR3B,8FAA8D;AAS1D,iCATG,gCAAsB,CASH;AAR1B,sGAAsE;AASlE,qCATG,oCAA0B,CASH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4FAA4D;AAUxD,gCAVG,+BAAqB,CAUH;AATzB,gGAAgE;AAU5D,kCAVG,iCAAuB,CAUH;AAT3B,sFAAsD;AAUlD,6BAVG,4BAAkB,CAUH;AATtB,gFAAgD;AAU5C,0BAVG,yBAAe,CAUH;AATnB,0FAA0D;AAUtD,+BAVG,8BAAoB,CAUH;AATxB,gGAAgE;AAU5D,kCAVG,iCAAuB,CAUH;AAT3B,8FAA8D;AAU1D,iCAVG,gCAAsB,CAUH;AAT1B,sGAAsE;AAUlE,qCAVG,oCAA0B,CAUH"}
@@ -17,6 +17,7 @@ import RevertReceiveByUserId from "./RevertReceiveByUserId";
17
17
  import IncreaseCounterByUserId from "./IncreaseCounterByUserId";
18
18
  import SetCounterByUserId from "./SetCounterByUserId";
19
19
  import ReceiveByUserId from "./ReceiveByUserId";
20
+ import BatchReceiveByUserId from "./BatchReceiveByUserId";
20
21
  import DecreaseCounterByUserId from "./DecreaseCounterByUserId";
21
22
  import VerifyCompleteByUserId from "./VerifyCompleteByUserId";
22
23
  import VerifyCounterValueByUserId from "./VerifyCounterValueByUserId";
@@ -26,6 +27,7 @@ export {
26
27
  IncreaseCounterByUserId,
27
28
  SetCounterByUserId,
28
29
  ReceiveByUserId,
30
+ BatchReceiveByUserId,
29
31
  DecreaseCounterByUserId,
30
32
  VerifyCompleteByUserId,
31
33
  VerifyCounterValueByUserId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -8,6 +8,7 @@ export default class Script extends CdkResource {
8
8
  private readonly name;
9
9
  private readonly script;
10
10
  private readonly description;
11
+ private readonly disableStringNumberToNumber;
11
12
  constructor(stack: Stack, namespaceName: string, name: string, script: string, options?: ScriptOptions | null);
12
13
  alternateKeys(): string;
13
14
  resourceType(): string;
@@ -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;;;;;;;;;;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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"}
@@ -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,3 +1,4 @@
1
1
  export interface ScriptOptions {
2
2
  description?: string | null;
3
+ disableStringNumberToNumber?: boolean | null;
3
4
  }
@@ -16,5 +16,6 @@
16
16
 
17
17
  export interface ScriptOptions {
18
18
  description?: string|null;
19
+ disableStringNumberToNumber?: boolean|null;
19
20
  }
20
21