gs2-cdk 1.0.68 → 1.0.70

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 (38) hide show
  1. package/account/model/PlatformUser.d.ts +10 -0
  2. package/account/model/PlatformUser.js +24 -0
  3. package/account/model/PlatformUser.js.map +1 -0
  4. package/account/model/PlatformUser.ts +50 -0
  5. package/account/model/index.d.ts +3 -1
  6. package/account/model/index.js +3 -1
  7. package/account/model/index.js.map +1 -1
  8. package/account/model/index.ts +4 -0
  9. package/account/model/options/PlatformUserOptions.d.ts +2 -0
  10. package/account/model/options/PlatformUserOptions.js +18 -0
  11. package/account/model/options/PlatformUserOptions.js.map +1 -0
  12. package/account/model/options/PlatformUserOptions.ts +19 -0
  13. package/money2/ref/NamespaceRef.d.ts +1 -2
  14. package/money2/ref/NamespaceRef.js +3 -1
  15. package/money2/ref/NamespaceRef.js.map +1 -1
  16. package/money2/ref/NamespaceRef.ts +3 -1
  17. package/money2/stampSheet/VerifyReceiptByUserId.d.ts +1 -2
  18. package/money2/stampSheet/VerifyReceiptByUserId.js +4 -3
  19. package/money2/stampSheet/VerifyReceiptByUserId.js.map +1 -1
  20. package/money2/stampSheet/VerifyReceiptByUserId.ts +5 -4
  21. package/package.json +1 -1
  22. package/schedule/model/RepeatSetting.d.ts +5 -0
  23. package/schedule/model/RepeatSetting.js +23 -1
  24. package/schedule/model/RepeatSetting.js.map +1 -1
  25. package/schedule/model/RepeatSetting.ts +32 -0
  26. package/schedule/model/enum/RepeatSettingRepeatType.d.ts +1 -0
  27. package/schedule/model/enum/RepeatSettingRepeatType.js +1 -0
  28. package/schedule/model/enum/RepeatSettingRepeatType.js.map +1 -1
  29. package/schedule/model/enum/RepeatSettingRepeatType.ts +1 -0
  30. package/schedule/model/index.d.ts +2 -1
  31. package/schedule/model/index.js.map +1 -1
  32. package/schedule/model/index.ts +2 -0
  33. package/schedule/model/options/RepeatSettingOptions.d.ts +3 -0
  34. package/schedule/model/options/RepeatSettingOptions.ts +3 -0
  35. package/schedule/model/options/RepeatSettingRepeatTypeIsCustomOptions.d.ts +2 -0
  36. package/schedule/model/options/RepeatSettingRepeatTypeIsCustomOptions.js +3 -0
  37. package/schedule/model/options/RepeatSettingRepeatTypeIsCustomOptions.js.map +1 -0
  38. package/schedule/model/options/RepeatSettingRepeatTypeIsCustomOptions.ts +21 -0
@@ -0,0 +1,10 @@
1
+ import { PlatformUserOptions } from "./options/PlatformUserOptions";
2
+ export default class PlatformUser {
3
+ private readonly type;
4
+ private readonly userIdentifier;
5
+ private readonly userId;
6
+ constructor(type: number, userIdentifier: string, userId: string, options?: PlatformUserOptions | null);
7
+ properties(): {
8
+ [name: string]: any;
9
+ };
10
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class PlatformUser {
4
+ constructor(type, userIdentifier, userId, options = null) {
5
+ this.type = type;
6
+ this.userIdentifier = userIdentifier;
7
+ this.userId = userId;
8
+ }
9
+ properties() {
10
+ let properties = {};
11
+ if (this.type != null) {
12
+ properties["type"] = this.type;
13
+ }
14
+ if (this.userIdentifier != null) {
15
+ properties["userIdentifier"] = this.userIdentifier;
16
+ }
17
+ if (this.userId != null) {
18
+ properties["userId"] = this.userId;
19
+ }
20
+ return properties;
21
+ }
22
+ }
23
+ exports.default = PlatformUser;
24
+ //# sourceMappingURL=PlatformUser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformUser.js","sourceRoot":"","sources":["PlatformUser.ts"],"names":[],"mappings":";;AAiBA,MAAqB,YAAY;IAK7B,YACI,IAAY,EACZ,cAAsB,EACtB,MAAc,EACd,UAAoC,IAAI;QAExC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,+BAgCC"}
@@ -0,0 +1,50 @@
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
+ import { PlatformUserOptions } from "./options/PlatformUserOptions";
17
+
18
+ export default class PlatformUser {
19
+ private readonly type: number;
20
+ private readonly userIdentifier: string;
21
+ private readonly userId: string;
22
+
23
+ public constructor(
24
+ type: number,
25
+ userIdentifier: string,
26
+ userId: string,
27
+ options: PlatformUserOptions|null = null,
28
+ ) {
29
+ this.type = type;
30
+ this.userIdentifier = userIdentifier;
31
+ this.userId = userId;
32
+ }
33
+
34
+ public properties(
35
+ ): {[name: string]: any} {
36
+ let properties: {[name: string]: any} = {};
37
+
38
+ if (this.type != null) {
39
+ properties["type"] = this.type;
40
+ }
41
+ if (this.userIdentifier != null) {
42
+ properties["userIdentifier"] = this.userIdentifier;
43
+ }
44
+ if (this.userId != null) {
45
+ properties["userId"] = this.userId;
46
+ }
47
+
48
+ return properties;
49
+ }
50
+ }
@@ -1,5 +1,7 @@
1
1
  import Namespace from "./Namespace";
2
2
  import { NamespaceOptions } from "./options/NamespaceOptions";
3
+ import PlatformUser from "./PlatformUser";
4
+ import { PlatformUserOptions } from "./options/PlatformUserOptions";
3
5
  import BanStatus from "./BanStatus";
4
6
  import { BanStatusOptions } from "./options/BanStatusOptions";
5
- export { Namespace, NamespaceOptions, BanStatus, BanStatusOptions, };
7
+ export { Namespace, NamespaceOptions, PlatformUser, PlatformUserOptions, BanStatus, BanStatusOptions, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BanStatus = exports.Namespace = void 0;
3
+ exports.BanStatus = exports.PlatformUser = exports.Namespace = 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,6 +19,8 @@ const tslib_1 = require("tslib");
19
19
  */
20
20
  const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
21
21
  exports.Namespace = Namespace_1.default;
22
+ const PlatformUser_1 = tslib_1.__importDefault(require("./PlatformUser"));
23
+ exports.PlatformUser = PlatformUser_1.default;
22
24
  const BanStatus_1 = tslib_1.__importDefault(require("./BanStatus"));
23
25
  exports.BanStatus = BanStatus_1.default;
24
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAMhC,oBANG,mBAAS,CAMH;AAJb,oEAAoC;AAMhC,oBANG,mBAAS,CAMH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAQhC,oBARG,mBAAS,CAQH;AANb,0EAA0C;AAQtC,uBARG,sBAAY,CAQH;AANhB,oEAAoC;AAQhC,oBARG,mBAAS,CAQH"}
@@ -15,12 +15,16 @@
15
15
  */
16
16
  import Namespace from "./Namespace";
17
17
  import { NamespaceOptions } from "./options/NamespaceOptions";
18
+ import PlatformUser from "./PlatformUser";
19
+ import { PlatformUserOptions } from "./options/PlatformUserOptions";
18
20
  import BanStatus from "./BanStatus";
19
21
  import { BanStatusOptions } from "./options/BanStatusOptions";
20
22
 
21
23
  export {
22
24
  Namespace,
23
25
  NamespaceOptions,
26
+ PlatformUser,
27
+ PlatformUserOptions,
24
28
  BanStatus,
25
29
  BanStatusOptions,
26
30
  }
@@ -0,0 +1,2 @@
1
+ export interface PlatformUserOptions {
2
+ }
@@ -0,0 +1,18 @@
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
+ //# sourceMappingURL=PlatformUserOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformUserOptions.js","sourceRoot":"","sources":["PlatformUserOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,19 @@
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
+ export interface PlatformUserOptions {
18
+ }
19
+
@@ -3,13 +3,12 @@ import DepositByUserId from "../stampSheet/DepositByUserId";
3
3
  import DepositTransaction from "../model/DepositTransaction";
4
4
  import WithdrawByUserId from "../stampSheet/WithdrawByUserId";
5
5
  import VerifyReceiptByUserId from "../stampSheet/VerifyReceiptByUserId";
6
- import Receipt from "../model/Receipt";
7
6
  export default class NamespaceRef {
8
7
  private readonly namespaceName;
9
8
  constructor(namespaceName: string);
10
9
  storeContentModel(contentName: string): StoreContentModelRef;
11
10
  deposit(slot: number, depositTransactions: DepositTransaction[], userId?: string): DepositByUserId;
12
11
  withdraw(slot: number, withdrawCount: number, paidOnly?: boolean | null, userId?: string): WithdrawByUserId;
13
- verifyReceipt(contentName: string, receipt: Receipt, userId?: string): VerifyReceiptByUserId;
12
+ verifyReceipt(contentName: string, receipt?: string, userId?: string): VerifyReceiptByUserId;
14
13
  grn(): string;
15
14
  }
@@ -13,6 +13,8 @@
13
13
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
14
  * express or implied. See the License for the specific language governing
15
15
  * permissions and limitations under the License.
16
+ *
17
+ * deny overwrite
16
18
  */
17
19
  Object.defineProperty(exports, "__esModule", { value: true });
18
20
  const tslib_1 = require("tslib");
@@ -34,7 +36,7 @@ class NamespaceRef {
34
36
  withdraw(slot, withdrawCount, paidOnly = null, userId = "#{userId}") {
35
37
  return new WithdrawByUserId_1.default(this.namespaceName, slot, withdrawCount, paidOnly, userId);
36
38
  }
37
- verifyReceipt(contentName, receipt, userId = "#{userId}") {
39
+ verifyReceipt(contentName, receipt = "#{receipt}", userId = "#{userId}") {
38
40
  return new VerifyReceiptByUserId_1.default(this.namespaceName, contentName, receipt, userId);
39
41
  }
40
42
  grn() {
@@ -1 +1 @@
1
- {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAE9C,0FAA0D;AAE1D,4FAA4D;AAE5D,8FAA8D;AAC9D,wGAAwE;AAGxE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,iBAAiB,CACpB,WAAmB;QAEnB,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,WAAW,CACd,CAAC;IACN,CAAC;IAEM,OAAO,CACV,IAAY,EACZ,mBAAyC,EACzC,SAAiB,WAAW;QAE5B,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,mBAAmB,EACnB,MAAM,CACT,CAAC;IACN,CAAC;IAEM,QAAQ,CACX,IAAY,EACZ,aAAqB,EACrB,WAAyB,IAAI,EAC7B,SAAiB,WAAW;QAE5B,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,aAAa,EACb,QAAQ,EACR,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,WAAmB,EACnB,OAAgB,EAChB,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,OAAO,EACP,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;AA9ED,+BA8EC"}
1
+ {"version":3,"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OUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
+ *
16
+ * deny overwrite
15
17
  */
16
18
 
17
19
  import {GetAttr, Join} from "../../core/func";
@@ -72,7 +74,7 @@ export default class NamespaceRef {
72
74
 
73
75
  public verifyReceipt(
74
76
  contentName: string,
75
- receipt: Receipt,
77
+ receipt: string = "#{receipt}",
76
78
  userId: string = "#{userId}",
77
79
  ): VerifyReceiptByUserId {
78
80
  return new VerifyReceiptByUserId(
@@ -1,12 +1,11 @@
1
1
  import { ConsumeAction } from "../../core/model";
2
- import Receipt from "../model/Receipt";
3
2
  export default class VerifyReceiptByUserId extends ConsumeAction {
4
3
  private readonly namespaceName;
5
4
  private readonly userId;
6
5
  private readonly contentName;
7
6
  private readonly receipt;
8
7
  private readonly timeOffsetToken;
9
- constructor(namespaceName: string, contentName: string, receipt: Receipt, timeOffsetToken?: string | null, userId?: string);
8
+ constructor(namespaceName: string, contentName: string, receipt?: string, timeOffsetToken?: string | null, userId?: string);
10
9
  request(): {
11
10
  [name: string]: any;
12
11
  };
@@ -13,11 +13,13 @@
13
13
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
14
  * express or implied. See the License for the specific language governing
15
15
  * permissions and limitations under the License.
16
+ *
17
+ * deny overwrite
16
18
  */
17
19
  Object.defineProperty(exports, "__esModule", { value: true });
18
20
  const model_1 = require("../../core/model");
19
21
  class VerifyReceiptByUserId extends model_1.ConsumeAction {
20
- constructor(namespaceName, contentName, receipt, timeOffsetToken = null, userId = "#{userId}") {
22
+ constructor(namespaceName, contentName, receipt = "#{receipt}", timeOffsetToken = null, userId = "#{userId}") {
21
23
  super();
22
24
  this.timeOffsetToken = null;
23
25
  this.namespaceName = namespaceName;
@@ -27,7 +29,6 @@ class VerifyReceiptByUserId extends model_1.ConsumeAction {
27
29
  this.userId = userId;
28
30
  }
29
31
  request() {
30
- var _a;
31
32
  let properties = {};
32
33
  if (this.namespaceName != null) {
33
34
  properties["namespaceName"] = this.namespaceName;
@@ -39,7 +40,7 @@ class VerifyReceiptByUserId extends model_1.ConsumeAction {
39
40
  properties["contentName"] = this.contentName;
40
41
  }
41
42
  if (this.receipt != null) {
42
- properties["receipt"] = (_a = this.receipt) === null || _a === void 0 ? void 0 : _a.properties();
43
+ properties["receipt"] = this.receipt;
43
44
  }
44
45
  if (this.timeOffsetToken != null) {
45
46
  properties["timeOffsetToken"] = this.timeOffsetToken;
@@ -1 +1 @@
1
- {"version":3,"file":"VerifyReceiptByUserId.js","sourceRoot":"","sources":["VerifyReceiptByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,qBAAsB,SAAQ,qBAAa;IAQ5D,YACI,aAAqB,EACrB,WAAmB,EACnB,OAAgB,EAChB,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,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,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,WAAW,IAAI,IAAI,EAAE;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,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;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,wCAkDC"}
@@ -12,6 +12,8 @@
12
12
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
+ *
16
+ * deny overwrite
15
17
  */
16
18
 
17
19
  import {AcquireAction, ConsumeAction} from "../../core/model";
@@ -21,14 +23,14 @@ export default class VerifyReceiptByUserId extends ConsumeAction {
21
23
  private readonly namespaceName: string;
22
24
  private readonly userId: string;
23
25
  private readonly contentName: string;
24
- private readonly receipt: Receipt;
26
+ private readonly receipt: string;
25
27
  private readonly timeOffsetToken: string|null = null;
26
28
 
27
29
 
28
30
  public constructor(
29
31
  namespaceName: string,
30
32
  contentName: string,
31
- receipt: Receipt,
33
+ receipt: string = "#{receipt}",
32
34
  timeOffsetToken: string|null = null,
33
35
  userId: string = "#{userId}",
34
36
  ) {
@@ -55,8 +57,7 @@ export default class VerifyReceiptByUserId extends ConsumeAction {
55
57
  properties["contentName"] = this.contentName;
56
58
  }
57
59
  if (this.receipt != null) {
58
- properties["receipt"] = this.receipt?.properties(
59
- );
60
+ properties["receipt"] = this.receipt;
60
61
  }
61
62
  if (this.timeOffsetToken != null) {
62
63
  properties["timeOffsetToken"] = this.timeOffsetToken;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -3,6 +3,7 @@ import { RepeatSettingRepeatTypeIsAlwaysOptions } from "./options/RepeatSettingR
3
3
  import { RepeatSettingRepeatTypeIsDailyOptions } from "./options/RepeatSettingRepeatTypeIsDailyOptions";
4
4
  import { RepeatSettingRepeatTypeIsWeeklyOptions } from "./options/RepeatSettingRepeatTypeIsWeeklyOptions";
5
5
  import { RepeatSettingRepeatTypeIsMonthlyOptions } from "./options/RepeatSettingRepeatTypeIsMonthlyOptions";
6
+ import { RepeatSettingRepeatTypeIsCustomOptions } from "./options/RepeatSettingRepeatTypeIsCustomOptions";
6
7
  import { RepeatSettingRepeatType } from "./enum/RepeatSettingRepeatType";
7
8
  import { RepeatSettingBeginDayOfWeek } from "./enum/RepeatSettingBeginDayOfWeek";
8
9
  import { RepeatSettingEndDayOfWeek } from "./enum/RepeatSettingEndDayOfWeek";
@@ -14,11 +15,15 @@ export default class RepeatSetting {
14
15
  private readonly endDayOfWeek;
15
16
  private readonly beginHour;
16
17
  private readonly endHour;
18
+ private readonly anchorTimestamp;
19
+ private readonly activeDays;
20
+ private readonly inactiveDays;
17
21
  constructor(repeatType: RepeatSettingRepeatType, options?: RepeatSettingOptions | null);
18
22
  static repeatTypeIsAlways(options?: RepeatSettingRepeatTypeIsAlwaysOptions | null): RepeatSetting;
19
23
  static repeatTypeIsDaily(beginHour: number, endHour: number, options?: RepeatSettingRepeatTypeIsDailyOptions | null): RepeatSetting;
20
24
  static repeatTypeIsWeekly(beginDayOfWeek: RepeatSettingBeginDayOfWeek, endDayOfWeek: RepeatSettingEndDayOfWeek, beginHour: number, endHour: number, options?: RepeatSettingRepeatTypeIsWeeklyOptions | null): RepeatSetting;
21
25
  static repeatTypeIsMonthly(beginDayOfMonth: number, endDayOfMonth: number, beginHour: number, endHour: number, options?: RepeatSettingRepeatTypeIsMonthlyOptions | null): RepeatSetting;
26
+ static repeatTypeIsCustom(anchorTimestamp: number, activeDays: number, inactiveDays: number, options?: RepeatSettingRepeatTypeIsCustomOptions | null): RepeatSetting;
22
27
  properties(): {
23
28
  [name: string]: any;
24
29
  };
@@ -3,13 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const RepeatSettingRepeatType_1 = require("./enum/RepeatSettingRepeatType");
4
4
  class RepeatSetting {
5
5
  constructor(repeatType, options = null) {
6
- var _a, _b, _c, _d, _e, _f;
6
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
7
7
  this.beginDayOfMonth = null;
8
8
  this.endDayOfMonth = null;
9
9
  this.beginDayOfWeek = null;
10
10
  this.endDayOfWeek = null;
11
11
  this.beginHour = null;
12
12
  this.endHour = null;
13
+ this.anchorTimestamp = null;
14
+ this.activeDays = null;
15
+ this.inactiveDays = null;
13
16
  this.repeatType = repeatType;
14
17
  this.beginDayOfMonth = (_a = options === null || options === void 0 ? void 0 : options.beginDayOfMonth) !== null && _a !== void 0 ? _a : null;
15
18
  this.endDayOfMonth = (_b = options === null || options === void 0 ? void 0 : options.endDayOfMonth) !== null && _b !== void 0 ? _b : null;
@@ -17,6 +20,9 @@ class RepeatSetting {
17
20
  this.endDayOfWeek = (_d = options === null || options === void 0 ? void 0 : options.endDayOfWeek) !== null && _d !== void 0 ? _d : null;
18
21
  this.beginHour = (_e = options === null || options === void 0 ? void 0 : options.beginHour) !== null && _e !== void 0 ? _e : null;
19
22
  this.endHour = (_f = options === null || options === void 0 ? void 0 : options.endHour) !== null && _f !== void 0 ? _f : null;
23
+ this.anchorTimestamp = (_g = options === null || options === void 0 ? void 0 : options.anchorTimestamp) !== null && _g !== void 0 ? _g : null;
24
+ this.activeDays = (_h = options === null || options === void 0 ? void 0 : options.activeDays) !== null && _h !== void 0 ? _h : null;
25
+ this.inactiveDays = (_j = options === null || options === void 0 ? void 0 : options.inactiveDays) !== null && _j !== void 0 ? _j : null;
20
26
  }
21
27
  static repeatTypeIsAlways(options = null) {
22
28
  return new RepeatSetting(RepeatSettingRepeatType_1.RepeatSettingRepeatType.ALWAYS, {});
@@ -43,6 +49,13 @@ class RepeatSetting {
43
49
  endHour: endHour,
44
50
  });
45
51
  }
52
+ static repeatTypeIsCustom(anchorTimestamp, activeDays, inactiveDays, options = null) {
53
+ return new RepeatSetting(RepeatSettingRepeatType_1.RepeatSettingRepeatType.CUSTOM, {
54
+ anchorTimestamp: anchorTimestamp,
55
+ activeDays: activeDays,
56
+ inactiveDays: inactiveDays,
57
+ });
58
+ }
46
59
  properties() {
47
60
  let properties = {};
48
61
  if (this.repeatType != null) {
@@ -66,6 +79,15 @@ class RepeatSetting {
66
79
  if (this.endHour != null) {
67
80
  properties["endHour"] = this.endHour;
68
81
  }
82
+ if (this.anchorTimestamp != null) {
83
+ properties["anchorTimestamp"] = this.anchorTimestamp;
84
+ }
85
+ if (this.activeDays != null) {
86
+ properties["activeDays"] = this.activeDays;
87
+ }
88
+ if (this.inactiveDays != null) {
89
+ properties["inactiveDays"] = this.inactiveDays;
90
+ }
69
91
  return properties;
70
92
  }
71
93
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RepeatSetting.js","sourceRoot":"","sources":["RepeatSetting.ts"],"names":[],"mappings":";;AAoBA,4EAAyE;AAIzE,MAAqB,aAAa;IAS9B,YACI,UAAmC,EACnC,UAAqC,IAAI;;QAT5B,oBAAe,GAAgB,IAAI,CAAC;QACpC,kBAAa,GAAgB,IAAI,CAAC;QAClC,mBAAc,GAAqC,IAAI,CAAC;QACxD,iBAAY,GAAmC,IAAI,CAAC;QACpD,cAAS,GAAgB,IAAI,CAAC;QAC9B,YAAO,GAAgB,IAAI,CAAC;QAMzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,eAAe,GAAG,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;IACtB,CAAC;CACJ;AA7ID,gCA6IC"}
@@ -18,6 +18,7 @@ import { RepeatSettingRepeatTypeIsAlwaysOptions } from "./options/RepeatSettingR
18
18
  import { RepeatSettingRepeatTypeIsDailyOptions } from "./options/RepeatSettingRepeatTypeIsDailyOptions";
19
19
  import { RepeatSettingRepeatTypeIsWeeklyOptions } from "./options/RepeatSettingRepeatTypeIsWeeklyOptions";
20
20
  import { RepeatSettingRepeatTypeIsMonthlyOptions } from "./options/RepeatSettingRepeatTypeIsMonthlyOptions";
21
+ import { RepeatSettingRepeatTypeIsCustomOptions } from "./options/RepeatSettingRepeatTypeIsCustomOptions";
21
22
  import { RepeatSettingRepeatType } from "./enum/RepeatSettingRepeatType";
22
23
  import { RepeatSettingBeginDayOfWeek } from "./enum/RepeatSettingBeginDayOfWeek";
23
24
  import { RepeatSettingEndDayOfWeek } from "./enum/RepeatSettingEndDayOfWeek";
@@ -30,6 +31,9 @@ export default class RepeatSetting {
30
31
  private readonly endDayOfWeek: RepeatSettingEndDayOfWeek|null = null;
31
32
  private readonly beginHour: number|null = null;
32
33
  private readonly endHour: number|null = null;
34
+ private readonly anchorTimestamp: number|null = null;
35
+ private readonly activeDays: number|null = null;
36
+ private readonly inactiveDays: number|null = null;
33
37
 
34
38
  public constructor(
35
39
  repeatType: RepeatSettingRepeatType,
@@ -42,6 +46,9 @@ export default class RepeatSetting {
42
46
  this.endDayOfWeek = options?.endDayOfWeek ?? null;
43
47
  this.beginHour = options?.beginHour ?? null;
44
48
  this.endHour = options?.endHour ?? null;
49
+ this.anchorTimestamp = options?.anchorTimestamp ?? null;
50
+ this.activeDays = options?.activeDays ?? null;
51
+ this.inactiveDays = options?.inactiveDays ?? null;
45
52
  }
46
53
 
47
54
  public static repeatTypeIsAlways(
@@ -104,6 +111,22 @@ export default class RepeatSetting {
104
111
  );
105
112
  }
106
113
 
114
+ public static repeatTypeIsCustom(
115
+ anchorTimestamp: number,
116
+ activeDays: number,
117
+ inactiveDays: number,
118
+ options: RepeatSettingRepeatTypeIsCustomOptions|null = null,
119
+ ): RepeatSetting {
120
+ return new RepeatSetting(
121
+ RepeatSettingRepeatType.CUSTOM,
122
+ {
123
+ anchorTimestamp: anchorTimestamp,
124
+ activeDays: activeDays,
125
+ inactiveDays: inactiveDays,
126
+ },
127
+ );
128
+ }
129
+
107
130
  public properties(
108
131
  ): {[name: string]: any} {
109
132
  let properties: {[name: string]: any} = {};
@@ -129,6 +152,15 @@ export default class RepeatSetting {
129
152
  if (this.endHour != null) {
130
153
  properties["endHour"] = this.endHour;
131
154
  }
155
+ if (this.anchorTimestamp != null) {
156
+ properties["anchorTimestamp"] = this.anchorTimestamp;
157
+ }
158
+ if (this.activeDays != null) {
159
+ properties["activeDays"] = this.activeDays;
160
+ }
161
+ if (this.inactiveDays != null) {
162
+ properties["inactiveDays"] = this.inactiveDays;
163
+ }
132
164
 
133
165
  return properties;
134
166
  }
@@ -3,5 +3,6 @@ export declare const RepeatSettingRepeatType: {
3
3
  readonly DAILY: "daily";
4
4
  readonly WEEKLY: "weekly";
5
5
  readonly MONTHLY: "monthly";
6
+ readonly CUSTOM: "custom";
6
7
  };
7
8
  export type RepeatSettingRepeatType = typeof RepeatSettingRepeatType[keyof typeof RepeatSettingRepeatType];
@@ -21,5 +21,6 @@ exports.RepeatSettingRepeatType = {
21
21
  DAILY: "daily",
22
22
  WEEKLY: "weekly",
23
23
  MONTHLY: "monthly",
24
+ CUSTOM: "custom",
24
25
  };
25
26
  //# sourceMappingURL=RepeatSettingRepeatType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RepeatSettingRepeatType.js","sourceRoot":"","sources":["RepeatSettingRepeatType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,uBAAuB,GAAG;IACnC,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC"}
1
+ {"version":3,"file":"RepeatSettingRepeatType.js","sourceRoot":"","sources":["RepeatSettingRepeatType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,uBAAuB,GAAG;IACnC,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC"}
@@ -21,5 +21,6 @@ export const RepeatSettingRepeatType = {
21
21
  DAILY: "daily",
22
22
  WEEKLY: "weekly",
23
23
  MONTHLY: "monthly",
24
+ CUSTOM: "custom",
24
25
  } as const;
25
26
  export type RepeatSettingRepeatType = typeof RepeatSettingRepeatType[keyof typeof RepeatSettingRepeatType];
@@ -21,7 +21,8 @@ import { RepeatSettingRepeatTypeIsAlwaysOptions } from "./options/RepeatSettingR
21
21
  import { RepeatSettingRepeatTypeIsDailyOptions } from "./options/RepeatSettingRepeatTypeIsDailyOptions";
22
22
  import { RepeatSettingRepeatTypeIsWeeklyOptions } from "./options/RepeatSettingRepeatTypeIsWeeklyOptions";
23
23
  import { RepeatSettingRepeatTypeIsMonthlyOptions } from "./options/RepeatSettingRepeatTypeIsMonthlyOptions";
24
+ import { RepeatSettingRepeatTypeIsCustomOptions } from "./options/RepeatSettingRepeatTypeIsCustomOptions";
24
25
  import RepeatSchedule from "./RepeatSchedule";
25
26
  import { RepeatScheduleOptions } from "./options/RepeatScheduleOptions";
26
27
  import CurrentMasterData from "./CurrentMasterData";
27
- export { Namespace, NamespaceOptions, Event, EventOptions, EventScheduleType, EventRepeatType, EventRepeatBeginDayOfWeek, EventRepeatEndDayOfWeek, EventScheduleTypeIsAbsoluteOptions, EventScheduleTypeIsRelativeOptions, EventRepeatTypeIsAlwaysOptions, EventRepeatTypeIsDailyOptions, EventRepeatTypeIsWeeklyOptions, EventRepeatTypeIsMonthlyOptions, RepeatSetting, RepeatSettingOptions, RepeatSettingRepeatType, RepeatSettingBeginDayOfWeek, RepeatSettingEndDayOfWeek, RepeatSettingRepeatTypeIsAlwaysOptions, RepeatSettingRepeatTypeIsDailyOptions, RepeatSettingRepeatTypeIsWeeklyOptions, RepeatSettingRepeatTypeIsMonthlyOptions, RepeatSchedule, RepeatScheduleOptions, CurrentMasterData, };
28
+ export { Namespace, NamespaceOptions, Event, EventOptions, EventScheduleType, EventRepeatType, EventRepeatBeginDayOfWeek, EventRepeatEndDayOfWeek, EventScheduleTypeIsAbsoluteOptions, EventScheduleTypeIsRelativeOptions, EventRepeatTypeIsAlwaysOptions, EventRepeatTypeIsDailyOptions, EventRepeatTypeIsWeeklyOptions, EventRepeatTypeIsMonthlyOptions, RepeatSetting, RepeatSettingOptions, RepeatSettingRepeatType, RepeatSettingBeginDayOfWeek, RepeatSettingEndDayOfWeek, RepeatSettingRepeatTypeIsAlwaysOptions, RepeatSettingRepeatTypeIsDailyOptions, RepeatSettingRepeatTypeIsWeeklyOptions, RepeatSettingRepeatTypeIsMonthlyOptions, RepeatSettingRepeatTypeIsCustomOptions, RepeatSchedule, RepeatScheduleOptions, CurrentMasterData, };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AA4BhC,oBA5BG,mBAAS,CA4BH;AA1Bb,4DAA4B;AA4BxB,gBA5BG,eAAK,CA4BH;AA1BT,gEAA6D;AA4BzD,kGA5BK,qCAAiB,OA4BL;AA3BrB,4DAAyD;AA4BrD,gGA5BK,iCAAe,OA4BL;AA3BnB,gFAA6E;AA4BzE,0GA5BK,qDAAyB,OA4BL;AA3B7B,4EAAyE;AA4BrE,wGA5BK,iDAAuB,OA4BL;AArB3B,4EAA4C;AA4BxC,wBA5BG,uBAAa,CA4BH;AA1BjB,4EAAyE;AA4BrE,wGA5BK,iDAAuB,OA4BL;AA3B3B,oFAAiF;AA4B7E,4GA5BK,yDAA2B,OA4BL;AA3B/B,gFAA6E;AA4BzE,0GA5BK,qDAAyB,OA4BL;AAvB7B,8EAA8C;AA4B1C,yBA5BG,wBAAc,CA4BH;AA1BlB,oFAAoD;AA4BhD,4BA5BG,2BAAiB,CA4BH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AA6BhC,oBA7BG,mBAAS,CA6BH;AA3Bb,4DAA4B;AA6BxB,gBA7BG,eAAK,CA6BH;AA3BT,gEAA6D;AA6BzD,kGA7BK,qCAAiB,OA6BL;AA5BrB,4DAAyD;AA6BrD,gGA7BK,iCAAe,OA6BL;AA5BnB,gFAA6E;AA6BzE,0GA7BK,qDAAyB,OA6BL;AA5B7B,4EAAyE;AA6BrE,wGA7BK,iDAAuB,OA6BL;AAtB3B,4EAA4C;AA6BxC,wBA7BG,uBAAa,CA6BH;AA3BjB,4EAAyE;AA6BrE,wGA7BK,iDAAuB,OA6BL;AA5B3B,oFAAiF;AA6B7E,4GA7BK,yDAA2B,OA6BL;AA5B/B,gFAA6E;AA6BzE,0GA7BK,qDAAyB,OA6BL;AAvB7B,8EAA8C;AA6B1C,yBA7BG,wBAAc,CA6BH;AA3BlB,oFAAoD;AA6BhD,4BA7BG,2BAAiB,CA6BH"}
@@ -36,6 +36,7 @@ import { RepeatSettingRepeatTypeIsAlwaysOptions } from "./options/RepeatSettingR
36
36
  import { RepeatSettingRepeatTypeIsDailyOptions } from "./options/RepeatSettingRepeatTypeIsDailyOptions"
37
37
  import { RepeatSettingRepeatTypeIsWeeklyOptions } from "./options/RepeatSettingRepeatTypeIsWeeklyOptions"
38
38
  import { RepeatSettingRepeatTypeIsMonthlyOptions } from "./options/RepeatSettingRepeatTypeIsMonthlyOptions"
39
+ import { RepeatSettingRepeatTypeIsCustomOptions } from "./options/RepeatSettingRepeatTypeIsCustomOptions"
39
40
  import RepeatSchedule from "./RepeatSchedule";
40
41
  import { RepeatScheduleOptions } from "./options/RepeatScheduleOptions";
41
42
  import CurrentMasterData from "./CurrentMasterData";
@@ -64,6 +65,7 @@ export {
64
65
  RepeatSettingRepeatTypeIsDailyOptions,
65
66
  RepeatSettingRepeatTypeIsWeeklyOptions,
66
67
  RepeatSettingRepeatTypeIsMonthlyOptions,
68
+ RepeatSettingRepeatTypeIsCustomOptions,
67
69
  RepeatSchedule,
68
70
  RepeatScheduleOptions,
69
71
  CurrentMasterData,
@@ -7,4 +7,7 @@ export interface RepeatSettingOptions {
7
7
  endDayOfWeek?: RepeatSettingEndDayOfWeek | null;
8
8
  beginHour?: number | null;
9
9
  endHour?: number | null;
10
+ anchorTimestamp?: number | null;
11
+ activeDays?: number | null;
12
+ inactiveDays?: number | null;
10
13
  }
@@ -24,5 +24,8 @@ export interface RepeatSettingOptions {
24
24
  endDayOfWeek?: RepeatSettingEndDayOfWeek|null;
25
25
  beginHour?: number|null;
26
26
  endHour?: number|null;
27
+ anchorTimestamp?: number|null;
28
+ activeDays?: number|null;
29
+ inactiveDays?: number|null;
27
30
  }
28
31
 
@@ -0,0 +1,2 @@
1
+ export interface RepeatSettingRepeatTypeIsCustomOptions {
2
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=RepeatSettingRepeatTypeIsCustomOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RepeatSettingRepeatTypeIsCustomOptions.js","sourceRoot":"","sources":["RepeatSettingRepeatTypeIsCustomOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
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
+ import { RepeatSettingRepeatType } from "../enum/RepeatSettingRepeatType";
17
+ import { RepeatSettingBeginDayOfWeek } from "../enum/RepeatSettingBeginDayOfWeek";
18
+ import { RepeatSettingEndDayOfWeek } from "../enum/RepeatSettingEndDayOfWeek";
19
+
20
+ export interface RepeatSettingRepeatTypeIsCustomOptions {
21
+ }