gs2-cdk 1.0.112 → 1.0.116

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 (79) hide show
  1. package/freeze/index.d.ts +12 -0
  2. package/freeze/index.js +32 -0
  3. package/freeze/index.js.map +1 -0
  4. package/freeze/index.ts +36 -0
  5. package/freeze/model/Microservice.d.ts +9 -0
  6. package/freeze/model/Microservice.js +20 -0
  7. package/freeze/model/Microservice.js.map +1 -0
  8. package/freeze/model/Microservice.ts +44 -0
  9. package/freeze/model/Output.d.ts +9 -0
  10. package/freeze/model/Output.js +19 -0
  11. package/freeze/model/Output.js.map +1 -0
  12. package/freeze/model/Output.ts +40 -0
  13. package/freeze/model/Stage.d.ts +19 -0
  14. package/freeze/model/Stage.js +64 -0
  15. package/freeze/model/Stage.js.map +1 -0
  16. package/freeze/model/Stage.ts +99 -0
  17. package/freeze/model/enums/StageStatus.d.ts +6 -0
  18. package/freeze/model/enums/StageStatus.js +24 -0
  19. package/freeze/model/enums/StageStatus.js.map +1 -0
  20. package/freeze/model/enums/StageStatus.ts +24 -0
  21. package/freeze/model/index.d.ts +8 -0
  22. package/freeze/model/index.js +28 -0
  23. package/freeze/model/index.js.map +1 -0
  24. package/freeze/model/index.ts +32 -0
  25. package/freeze/model/options/MicroserviceOptions.d.ts +2 -0
  26. package/freeze/model/options/MicroserviceOptions.js +18 -0
  27. package/freeze/model/options/MicroserviceOptions.js.map +1 -0
  28. package/freeze/model/options/MicroserviceOptions.ts +19 -0
  29. package/freeze/model/options/OutputOptions.d.ts +3 -0
  30. package/freeze/model/options/OutputOptions.js +18 -0
  31. package/freeze/model/options/OutputOptions.js.map +1 -0
  32. package/freeze/model/options/OutputOptions.ts +20 -0
  33. package/freeze/model/options/StageOptions.d.ts +3 -0
  34. package/freeze/model/options/StageOptions.js +18 -0
  35. package/freeze/model/options/StageOptions.js.map +1 -0
  36. package/freeze/model/options/StageOptions.ts +20 -0
  37. package/freeze/ref/OutputRef.d.ts +6 -0
  38. package/freeze/ref/OutputRef.js +38 -0
  39. package/freeze/ref/OutputRef.js.map +1 -0
  40. package/freeze/ref/OutputRef.ts +52 -0
  41. package/freeze/ref/StageRef.d.ts +5 -0
  42. package/freeze/ref/StageRef.js +35 -0
  43. package/freeze/ref/StageRef.js.map +1 -0
  44. package/freeze/ref/StageRef.ts +48 -0
  45. package/freeze/ref/index.d.ts +3 -0
  46. package/freeze/ref/index.js +24 -0
  47. package/freeze/ref/index.js.map +1 -0
  48. package/freeze/ref/index.ts +22 -0
  49. package/freeze/stampSheet/index.d.ts +1 -0
  50. package/freeze/stampSheet/index.js +18 -0
  51. package/freeze/stampSheet/index.js.map +1 -0
  52. package/freeze/stampSheet/index.ts +18 -0
  53. package/guild/model/Namespace.d.ts +1 -0
  54. package/guild/model/Namespace.js +9 -4
  55. package/guild/model/Namespace.js.map +1 -1
  56. package/guild/model/Namespace.ts +6 -0
  57. package/guild/model/options/NamespaceOptions.d.ts +1 -0
  58. package/guild/model/options/NamespaceOptions.ts +1 -0
  59. package/package.json +1 -1
  60. package/schedule/ref/NamespaceRef.d.ts +2 -0
  61. package/schedule/ref/NamespaceRef.js +4 -0
  62. package/schedule/ref/NamespaceRef.js.map +1 -1
  63. package/schedule/ref/NamespaceRef.ts +14 -0
  64. package/schedule/stampSheet/ExtendTriggerByUserId.d.ts +13 -0
  65. package/schedule/stampSheet/ExtendTriggerByUserId.js +53 -0
  66. package/schedule/stampSheet/ExtendTriggerByUserId.js.map +1 -0
  67. package/schedule/stampSheet/ExtendTriggerByUserId.ts +69 -0
  68. package/schedule/stampSheet/index.d.ts +2 -1
  69. package/schedule/stampSheet/index.js +3 -1
  70. package/schedule/stampSheet/index.js.map +1 -1
  71. package/schedule/stampSheet/index.ts +2 -0
  72. package/script/ref/ScriptPayloadVersionRef.d.ts +6 -0
  73. package/script/ref/ScriptPayloadVersionRef.js +26 -0
  74. package/script/ref/ScriptPayloadVersionRef.js.map +1 -0
  75. package/script/ref/ScriptPayloadVersionRef.ts +33 -0
  76. package/script/ref/index.d.ts +2 -1
  77. package/script/ref/index.js +3 -1
  78. package/script/ref/index.js.map +1 -1
  79. package/script/ref/index.ts +2 -0
@@ -0,0 +1,20 @@
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 OutputOptions {
18
+ revision?: number|null;
19
+ }
20
+
@@ -0,0 +1,3 @@
1
+ export interface StageOptions {
2
+ sourceStageName?: string | null;
3
+ }
@@ -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=StageOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StageOptions.js","sourceRoot":"","sources":["StageOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,20 @@
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 StageOptions {
18
+ sourceStageName?: string|null;
19
+ }
20
+
@@ -0,0 +1,6 @@
1
+ export default class OutputRef {
2
+ private readonly stageName;
3
+ private readonly outputName;
4
+ constructor(stageName: string, outputName: string);
5
+ grn(): string;
6
+ }
@@ -0,0 +1,38 @@
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 func_1 = require("../../core/func");
19
+ class OutputRef {
20
+ constructor(stageName, outputName) {
21
+ this.stageName = stageName;
22
+ this.outputName = outputName;
23
+ }
24
+ grn() {
25
+ return new func_1.Join(":", [
26
+ "grn",
27
+ "gs2",
28
+ func_1.GetAttr.region().str(),
29
+ func_1.GetAttr.ownerId().str(),
30
+ "freeze",
31
+ this.stageName,
32
+ "output",
33
+ this.outputName,
34
+ ]).str();
35
+ }
36
+ }
37
+ exports.default = OutputRef;
38
+ //# sourceMappingURL=OutputRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OutputRef.js","sourceRoot":"","sources":["OutputRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,SAAS;IAI1B,YACI,SAAiB,EACjB,UAAkB;QAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,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,SAAS;YACd,QAAQ;YACR,IAAI,CAAC,UAAU;SAClB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjCD,4BAiCC"}
@@ -0,0 +1,52 @@
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 {GetAttr, Join} from "../../core/func";
18
+
19
+ export default class OutputRef {
20
+ private readonly stageName: string;
21
+ private readonly outputName: string;
22
+
23
+ public constructor(
24
+ stageName: string,
25
+ outputName: string,
26
+ ) {
27
+ this.stageName = stageName;
28
+ this.outputName = outputName;
29
+ }
30
+
31
+ public grn(
32
+ ): string {
33
+ return new Join(
34
+ ":",
35
+ [
36
+ "grn",
37
+ "gs2",
38
+ GetAttr.region(
39
+ ).str(
40
+ ),
41
+ GetAttr.ownerId(
42
+ ).str(
43
+ ),
44
+ "freeze",
45
+ this.stageName,
46
+ "output",
47
+ this.outputName,
48
+ ],
49
+ ).str(
50
+ );
51
+ }
52
+ }
@@ -0,0 +1,5 @@
1
+ export default class StageRef {
2
+ private readonly stageName;
3
+ constructor(stageName: string);
4
+ grn(): string;
5
+ }
@@ -0,0 +1,35 @@
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 func_1 = require("../../core/func");
19
+ class StageRef {
20
+ constructor(stageName) {
21
+ this.stageName = stageName;
22
+ }
23
+ grn() {
24
+ return new func_1.Join(":", [
25
+ "grn",
26
+ "gs2",
27
+ func_1.GetAttr.region().str(),
28
+ func_1.GetAttr.ownerId().str(),
29
+ "freeze",
30
+ this.stageName,
31
+ ]).str();
32
+ }
33
+ }
34
+ exports.default = StageRef;
35
+ //# sourceMappingURL=StageRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StageRef.js","sourceRoot":"","sources":["StageRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAG9C,MAAqB,QAAQ;IAGzB,YACI,SAAiB;QAEjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,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,SAAS;SACjB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA5BD,2BA4BC"}
@@ -0,0 +1,48 @@
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 {GetAttr, Join} from "../../core/func";
18
+ import OutputRef from "./OutputRef";
19
+
20
+ export default class StageRef {
21
+ private readonly stageName: string;
22
+
23
+ public constructor(
24
+ stageName: string,
25
+ ) {
26
+ this.stageName = stageName;
27
+ }
28
+
29
+ public grn(
30
+ ): string {
31
+ return new Join(
32
+ ":",
33
+ [
34
+ "grn",
35
+ "gs2",
36
+ GetAttr.region(
37
+ ).str(
38
+ ),
39
+ GetAttr.ownerId(
40
+ ).str(
41
+ ),
42
+ "freeze",
43
+ this.stageName,
44
+ ],
45
+ ).str(
46
+ );
47
+ }
48
+ }
@@ -0,0 +1,3 @@
1
+ import StageRef from "./StageRef";
2
+ import OutputRef from "./OutputRef";
3
+ export { StageRef, OutputRef, };
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OutputRef = exports.StageRef = void 0;
4
+ const tslib_1 = require("tslib");
5
+ /*
6
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
7
+ * Reserved.
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License").
10
+ * You may not use this file except in compliance with the License.
11
+ * A copy of the License is located at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * or in the "license" file accompanying this file. This file is distributed
16
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
17
+ * express or implied. See the License for the specific language governing
18
+ * permissions and limitations under the License.
19
+ */
20
+ const StageRef_1 = tslib_1.__importDefault(require("./StageRef"));
21
+ exports.StageRef = StageRef_1.default;
22
+ const OutputRef_1 = tslib_1.__importDefault(require("./OutputRef"));
23
+ exports.OutputRef = OutputRef_1.default;
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAkC;AAI9B,mBAJG,kBAAQ,CAIH;AAHZ,oEAAoC;AAIhC,oBAJG,mBAAS,CAIH"}
@@ -0,0 +1,22 @@
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 StageRef from "./StageRef";
17
+ import OutputRef from "./OutputRef";
18
+
19
+ export {
20
+ StageRef,
21
+ OutputRef,
22
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -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=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,18 @@
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 {
18
+ }
@@ -18,6 +18,7 @@ export default class Namespace extends CdkResource {
18
18
  private readonly joinGuildScript;
19
19
  private readonly leaveGuildScript;
20
20
  private readonly changeRoleScript;
21
+ private readonly deleteGuildScript;
21
22
  private readonly logSetting;
22
23
  constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
23
24
  alternateKeys(): string;
@@ -22,7 +22,7 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
22
22
  const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
23
23
  class Namespace extends model_1.CdkResource {
24
24
  constructor(stack, name, options = null) {
25
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
26
26
  super("Guild_Namespace_" + name);
27
27
  this.description = null;
28
28
  this.changeNotification = null;
@@ -36,6 +36,7 @@ class Namespace extends model_1.CdkResource {
36
36
  this.joinGuildScript = null;
37
37
  this.leaveGuildScript = null;
38
38
  this.changeRoleScript = null;
39
+ this.deleteGuildScript = null;
39
40
  this.logSetting = null;
40
41
  this.stack = stack;
41
42
  this.name = name;
@@ -51,7 +52,8 @@ class Namespace extends model_1.CdkResource {
51
52
  this.joinGuildScript = (_k = options === null || options === void 0 ? void 0 : options.joinGuildScript) !== null && _k !== void 0 ? _k : null;
52
53
  this.leaveGuildScript = (_l = options === null || options === void 0 ? void 0 : options.leaveGuildScript) !== null && _l !== void 0 ? _l : null;
53
54
  this.changeRoleScript = (_m = options === null || options === void 0 ? void 0 : options.changeRoleScript) !== null && _m !== void 0 ? _m : null;
54
- this.logSetting = (_o = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _o !== void 0 ? _o : null;
55
+ this.deleteGuildScript = (_o = options === null || options === void 0 ? void 0 : options.deleteGuildScript) !== null && _o !== void 0 ? _o : null;
56
+ this.logSetting = (_p = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _p !== void 0 ? _p : null;
55
57
  stack.addResource(this);
56
58
  }
57
59
  alternateKeys() {
@@ -61,7 +63,7 @@ class Namespace extends model_1.CdkResource {
61
63
  return "GS2::Guild::Namespace";
62
64
  }
63
65
  properties() {
64
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
66
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
65
67
  let properties = {};
66
68
  if (this.name != null) {
67
69
  properties["Name"] = this.name;
@@ -102,8 +104,11 @@ class Namespace extends model_1.CdkResource {
102
104
  if (this.changeRoleScript != null) {
103
105
  properties["ChangeRoleScript"] = (_l = this.changeRoleScript) === null || _l === void 0 ? void 0 : _l.properties();
104
106
  }
107
+ if (this.deleteGuildScript != null) {
108
+ properties["DeleteGuildScript"] = (_m = this.deleteGuildScript) === null || _m === void 0 ? void 0 : _m.properties();
109
+ }
105
110
  if (this.logSetting != null) {
106
- properties["LogSetting"] = (_m = this.logSetting) === null || _m === void 0 ? void 0 : _m.properties();
111
+ properties["LogSetting"] = (_o = this.logSetting) === null || _o === void 0 ? void 0 : _o.properties();
107
112
  }
108
113
  return properties;
109
114
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;IAiB9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,kBAAkB,GAAG,IAAI,CAC5B,CAAC;QArBW,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAA6B,IAAI,CAAC;QACpD,qBAAgB,GAA6B,IAAI,CAAC;QAClD,sBAAiB,GAA6B,IAAI,CAAC;QACnD,6BAAwB,GAA6B,IAAI,CAAC;QAC1D,+BAA0B,GAA6B,IAAI,CAAC;QAC5D,8BAAyB,GAA6B,IAAI,CAAC;QAC3D,sBAAiB,GAAuB,IAAI,CAAC;QAC7C,sBAAiB,GAAuB,IAAI,CAAC;QAC7C,oBAAe,GAAuB,IAAI,CAAC;QAC3C,qBAAgB,GAAuB,IAAI,CAAC;QAC5C,qBAAgB,GAAuB,IAAI,CAAC;QAC5C,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,m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,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,WAAW,CACd,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAzJD,4BAyJC"}
@@ -41,6 +41,7 @@ export default class Namespace extends CdkResource {
41
41
  private readonly joinGuildScript: ScriptSetting|null = null;
42
42
  private readonly leaveGuildScript: ScriptSetting|null = null;
43
43
  private readonly changeRoleScript: ScriptSetting|null = null;
44
+ private readonly deleteGuildScript: ScriptSetting|null = null;
44
45
  private readonly logSetting: LogSetting|null = null;
45
46
 
46
47
  public constructor(
@@ -66,6 +67,7 @@ export default class Namespace extends CdkResource {
66
67
  this.joinGuildScript = options?.joinGuildScript ?? null;
67
68
  this.leaveGuildScript = options?.leaveGuildScript ?? null;
68
69
  this.changeRoleScript = options?.changeRoleScript ?? null;
70
+ this.deleteGuildScript = options?.deleteGuildScript ?? null;
69
71
  this.logSetting = options?.logSetting ?? null;
70
72
  stack.addResource(
71
73
  this,
@@ -137,6 +139,10 @@ export default class Namespace extends CdkResource {
137
139
  properties["ChangeRoleScript"] = this.changeRoleScript?.properties(
138
140
  );
139
141
  }
142
+ if (this.deleteGuildScript != null) {
143
+ properties["DeleteGuildScript"] = this.deleteGuildScript?.properties(
144
+ );
145
+ }
140
146
  if (this.logSetting != null) {
141
147
  properties["LogSetting"] = this.logSetting?.properties(
142
148
  );
@@ -14,5 +14,6 @@ export interface NamespaceOptions {
14
14
  joinGuildScript?: ScriptSetting | null;
15
15
  leaveGuildScript?: ScriptSetting | null;
16
16
  changeRoleScript?: ScriptSetting | null;
17
+ deleteGuildScript?: ScriptSetting | null;
17
18
  logSetting?: LogSetting | null;
18
19
  }
@@ -30,6 +30,7 @@ export interface NamespaceOptions {
30
30
  joinGuildScript?: ScriptSetting|null;
31
31
  leaveGuildScript?: ScriptSetting|null;
32
32
  changeRoleScript?: ScriptSetting|null;
33
+ deleteGuildScript?: ScriptSetting|null;
33
34
  logSetting?: LogSetting|null;
34
35
  }
35
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.112",
3
+ "version": "1.0.116",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -1,5 +1,6 @@
1
1
  import TriggerByUserId from "../stampSheet/TriggerByUserId";
2
2
  import { TriggerTriggerStrategy } from "../stampSheet/enums/TriggerTriggerStrategy";
3
+ import ExtendTriggerByUserId from "../stampSheet/ExtendTriggerByUserId";
3
4
  import DeleteTriggerByUserId from "../stampSheet/DeleteTriggerByUserId";
4
5
  import VerifyTriggerByUserId from "../stampSheet/VerifyTriggerByUserId";
5
6
  import { TriggerVerifyType } from "../stampSheet/enums/TriggerVerifyType";
@@ -9,6 +10,7 @@ export default class NamespaceRef {
9
10
  private readonly namespaceName;
10
11
  constructor(namespaceName: string);
11
12
  trigger(triggerName: string, triggerStrategy: TriggerTriggerStrategy, ttl?: number | null, eventId?: string | null, userId?: string): TriggerByUserId;
13
+ extendTrigger(triggerName: string, extendSeconds: number, userId?: string): ExtendTriggerByUserId;
12
14
  deleteTrigger(triggerName: string, userId?: string): DeleteTriggerByUserId;
13
15
  verifyTrigger(triggerName: string, verifyType: TriggerVerifyType, elapsedMinutes?: number | null, userId?: string): VerifyTriggerByUserId;
14
16
  verifyEvent(eventName: string, verifyType: EventVerifyType, userId?: string): VerifyEventByUserId;
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const tslib_1 = require("tslib");
19
19
  const func_1 = require("../../core/func");
20
20
  const TriggerByUserId_1 = tslib_1.__importDefault(require("../stampSheet/TriggerByUserId"));
21
+ const ExtendTriggerByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ExtendTriggerByUserId"));
21
22
  const DeleteTriggerByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DeleteTriggerByUserId"));
22
23
  const VerifyTriggerByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyTriggerByUserId"));
23
24
  const VerifyEventByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyEventByUserId"));
@@ -28,6 +29,9 @@ class NamespaceRef {
28
29
  trigger(triggerName, triggerStrategy, ttl = null, eventId = null, userId = "#{userId}") {
29
30
  return new TriggerByUserId_1.default(this.namespaceName, triggerName, triggerStrategy, ttl, eventId, userId);
30
31
  }
32
+ extendTrigger(triggerName, extendSeconds, userId = "#{userId}") {
33
+ return new ExtendTriggerByUserId_1.default(this.namespaceName, triggerName, extendSeconds, userId);
34
+ }
31
35
  deleteTrigger(triggerName, userId = "#{userId}") {
32
36
  return new DeleteTriggerByUserId_1.default(this.namespaceName, triggerName, userId);
33
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4FAA4D;AAE5D,wGAAwE;AACxE,wGAAwE;AAExE,oGAAoE;AAGpE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,OAAO,CACV,WAAmB,EACnB,eAAuC,EACvC,MAAmB,IAAI,EACvB,UAAuB,IAAI,EAC3B,SAAiB,WAAW;QAE5B,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,eAAe,EACf,GAAG,EACH,OAAO,EACP,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,WAAmB,EACnB,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,WAAmB,EACnB,UAA6B,EAC7B,iBAA8B,IAAI,EAClC,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,UAAU,EACV,cAAc,EACd,MAAM,CACT,CAAC;IACN,CAAC;IAEM,WAAW,CACd,SAAiB,EACjB,UAA2B,EAC3B,SAAiB,WAAW;QAE5B,OAAO,IAAI,6BAAmB,CAC1B,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,UAAU,EACV,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,UAAU;YACV,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AApFD,+BAoFC"}
1
+ {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4FAA4D;AAE5D,wGAAwE;AACxE,wGAAwE;AACxE,wGAAwE;AAExE,oGAAoE;AAGpE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,OAAO,CACV,WAAmB,EACnB,eAAuC,EACvC,MAAmB,IAAI,EACvB,UAAuB,IAAI,EAC3B,SAAiB,WAAW;QAE5B,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,eAAe,EACf,GAAG,EACH,OAAO,EACP,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,WAAmB,EACnB,aAAqB,EACrB,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,aAAa,EACb,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,WAAmB,EACnB,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,WAAmB,EACnB,UAA6B,EAC7B,iBAA8B,IAAI,EAClC,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,UAAU,EACV,cAAc,EACd,MAAM,CACT,CAAC;IACN,CAAC;IAEM,WAAW,CACd,SAAiB,EACjB,UAA2B,EAC3B,SAAiB,WAAW;QAE5B,OAAO,IAAI,6BAAmB,CAC1B,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,UAAU,EACV,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,UAAU;YACV,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjGD,+BAiGC"}
@@ -17,6 +17,7 @@
17
17
  import {GetAttr, Join} from "../../core/func";
18
18
  import TriggerByUserId from "../stampSheet/TriggerByUserId";
19
19
  import { TriggerTriggerStrategy } from "../stampSheet/enums/TriggerTriggerStrategy";
20
+ import ExtendTriggerByUserId from "../stampSheet/ExtendTriggerByUserId";
20
21
  import DeleteTriggerByUserId from "../stampSheet/DeleteTriggerByUserId";
21
22
  import VerifyTriggerByUserId from "../stampSheet/VerifyTriggerByUserId";
22
23
  import { TriggerVerifyType } from "../stampSheet/enums/TriggerVerifyType";
@@ -49,6 +50,19 @@ export default class NamespaceRef {
49
50
  );
50
51
  }
51
52
 
53
+ public extendTrigger(
54
+ triggerName: string,
55
+ extendSeconds: number,
56
+ userId: string = "#{userId}",
57
+ ): ExtendTriggerByUserId {
58
+ return new ExtendTriggerByUserId(
59
+ this.namespaceName,
60
+ triggerName,
61
+ extendSeconds,
62
+ userId,
63
+ );
64
+ }
65
+
52
66
  public deleteTrigger(
53
67
  triggerName: string,
54
68
  userId: string = "#{userId}",
@@ -0,0 +1,13 @@
1
+ import { AcquireAction } from "../../core/model";
2
+ export default class ExtendTriggerByUserId extends AcquireAction {
3
+ private readonly namespaceName;
4
+ private readonly triggerName;
5
+ private readonly userId;
6
+ private readonly extendSeconds;
7
+ private readonly timeOffsetToken;
8
+ constructor(namespaceName: string, triggerName: string, extendSeconds: number, 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 ExtendTriggerByUserId extends model_1.AcquireAction {
20
+ constructor(namespaceName, triggerName, extendSeconds, timeOffsetToken = null, userId = "#{userId}") {
21
+ super();
22
+ this.timeOffsetToken = null;
23
+ this.namespaceName = namespaceName;
24
+ this.triggerName = triggerName;
25
+ this.extendSeconds = extendSeconds;
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.triggerName != null) {
35
+ properties["triggerName"] = this.triggerName;
36
+ }
37
+ if (this.userId != null) {
38
+ properties["userId"] = this.userId;
39
+ }
40
+ if (this.extendSeconds != null) {
41
+ properties["extendSeconds"] = this.extendSeconds;
42
+ }
43
+ if (this.timeOffsetToken != null) {
44
+ properties["timeOffsetToken"] = this.timeOffsetToken;
45
+ }
46
+ return properties;
47
+ }
48
+ action() {
49
+ return "Gs2Schedule:ExtendTriggerByUserId";
50
+ }
51
+ }
52
+ exports.default = ExtendTriggerByUserId;
53
+ //# sourceMappingURL=ExtendTriggerByUserId.js.map