gs2-cdk 1.0.119 → 1.0.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/model/Namespace.d.ts +1 -0
- package/account/model/Namespace.js +23 -18
- package/account/model/Namespace.js.map +1 -1
- package/account/model/Namespace.ts +7 -0
- package/account/model/options/NamespaceOptions.d.ts +2 -0
- package/account/model/options/NamespaceOptions.ts +2 -0
- package/adReward/model/Namespace.d.ts +2 -1
- package/adReward/model/Namespace.js +25 -20
- package/adReward/model/Namespace.js.map +1 -1
- package/adReward/model/Namespace.ts +12 -5
- package/adReward/model/options/NamespaceOptions.d.ts +3 -1
- package/adReward/model/options/NamespaceOptions.ts +3 -1
- package/buff/model/Namespace.d.ts +1 -0
- package/buff/model/Namespace.js +11 -6
- package/buff/model/Namespace.js.map +1 -1
- package/buff/model/Namespace.ts +7 -0
- package/buff/model/options/NamespaceOptions.d.ts +2 -0
- package/buff/model/options/NamespaceOptions.ts +2 -0
- package/chat/model/Namespace.d.ts +1 -0
- package/chat/model/Namespace.js +23 -18
- package/chat/model/Namespace.js.map +1 -1
- package/chat/model/Namespace.ts +7 -0
- package/chat/model/options/NamespaceOptions.d.ts +2 -0
- package/chat/model/options/NamespaceOptions.ts +2 -0
- package/datastore/model/Namespace.d.ts +1 -0
- package/datastore/model/Namespace.js +11 -6
- package/datastore/model/Namespace.js.map +1 -1
- package/datastore/model/Namespace.ts +7 -0
- package/datastore/model/options/NamespaceOptions.d.ts +2 -0
- package/datastore/model/options/NamespaceOptions.ts +2 -0
- package/dictionary/model/Namespace.d.ts +1 -0
- package/dictionary/model/Namespace.js +12 -7
- package/dictionary/model/Namespace.js.map +1 -1
- package/dictionary/model/Namespace.ts +7 -0
- package/dictionary/model/options/NamespaceOptions.d.ts +2 -0
- package/dictionary/model/options/NamespaceOptions.ts +2 -0
- package/distributor/model/Namespace.d.ts +1 -0
- package/distributor/model/Namespace.js +14 -9
- package/distributor/model/Namespace.js.map +1 -1
- package/distributor/model/Namespace.ts +7 -0
- package/distributor/model/options/NamespaceOptions.d.ts +2 -0
- package/distributor/model/options/NamespaceOptions.ts +2 -0
- package/friend/model/Namespace.d.ts +1 -0
- package/friend/model/Namespace.js +37 -32
- package/friend/model/Namespace.js.map +1 -1
- package/friend/model/Namespace.ts +7 -0
- package/friend/model/options/NamespaceOptions.d.ts +2 -0
- package/friend/model/options/NamespaceOptions.ts +2 -0
- package/gateway/model/Namespace.d.ts +1 -0
- package/gateway/model/Namespace.js +10 -5
- package/gateway/model/Namespace.js.map +1 -1
- package/gateway/model/Namespace.ts +7 -0
- package/gateway/model/options/NamespaceOptions.d.ts +2 -0
- package/gateway/model/options/NamespaceOptions.ts +2 -0
- package/guild/model/Namespace.d.ts +1 -0
- package/guild/model/Namespace.js +35 -30
- package/guild/model/Namespace.js.map +1 -1
- package/guild/model/Namespace.ts +7 -0
- package/guild/model/options/NamespaceOptions.d.ts +2 -0
- package/guild/model/options/NamespaceOptions.ts +2 -0
- package/inventory/model/Namespace.d.ts +1 -0
- package/inventory/model/Namespace.js +23 -18
- package/inventory/model/Namespace.js.map +1 -1
- package/inventory/model/Namespace.ts +7 -0
- package/inventory/model/options/NamespaceOptions.d.ts +2 -0
- package/inventory/model/options/NamespaceOptions.ts +2 -0
- package/jobQueue/model/Namespace.d.ts +1 -0
- package/jobQueue/model/Namespace.js +13 -8
- package/jobQueue/model/Namespace.js.map +1 -1
- package/jobQueue/model/Namespace.ts +7 -0
- package/jobQueue/model/options/NamespaceOptions.d.ts +2 -0
- package/jobQueue/model/options/NamespaceOptions.ts +2 -0
- package/limit/model/Namespace.d.ts +1 -0
- package/limit/model/Namespace.js +9 -4
- package/limit/model/Namespace.js.map +1 -1
- package/limit/model/Namespace.ts +7 -0
- package/limit/model/options/NamespaceOptions.d.ts +2 -0
- package/limit/model/options/NamespaceOptions.ts +2 -0
- package/matchmaking/model/Namespace.d.ts +1 -0
- package/matchmaking/model/Namespace.js +29 -24
- package/matchmaking/model/Namespace.js.map +1 -1
- package/matchmaking/model/Namespace.ts +7 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2RealtimeOptions.d.ts +2 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2RealtimeOptions.ts +2 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2ScriptOptions.d.ts +2 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2ScriptOptions.ts +2 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsNoneOptions.d.ts +2 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsNoneOptions.ts +2 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2RealtimeOptions.d.ts +2 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2RealtimeOptions.ts +2 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2ScriptOptions.d.ts +2 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2ScriptOptions.ts +2 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsNoneOptions.d.ts +2 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsNoneOptions.ts +2 -0
- package/matchmaking/model/options/NamespaceEnableCollaborateSeasonRatingIsDisableOptions.d.ts +2 -0
- package/matchmaking/model/options/NamespaceEnableCollaborateSeasonRatingIsDisableOptions.ts +2 -0
- package/matchmaking/model/options/NamespaceEnableCollaborateSeasonRatingIsEnableOptions.d.ts +2 -0
- package/matchmaking/model/options/NamespaceEnableCollaborateSeasonRatingIsEnableOptions.ts +2 -0
- package/matchmaking/model/options/NamespaceEnableDisconnectDetectionIsDisableOptions.d.ts +2 -0
- package/matchmaking/model/options/NamespaceEnableDisconnectDetectionIsDisableOptions.ts +2 -0
- package/matchmaking/model/options/NamespaceEnableDisconnectDetectionIsEnableOptions.d.ts +2 -0
- package/matchmaking/model/options/NamespaceEnableDisconnectDetectionIsEnableOptions.ts +2 -0
- package/matchmaking/model/options/NamespaceOptions.d.ts +2 -0
- package/matchmaking/model/options/NamespaceOptions.ts +2 -0
- package/money/model/Namespace.d.ts +1 -0
- package/money/model/Namespace.js +18 -13
- package/money/model/Namespace.js.map +1 -1
- package/money/model/Namespace.ts +7 -0
- package/money/model/options/NamespaceOptions.d.ts +2 -0
- package/money/model/options/NamespaceOptions.ts +2 -0
- package/money2/model/Namespace.d.ts +2 -0
- package/money2/model/Namespace.js +26 -16
- package/money2/model/Namespace.js.map +1 -1
- package/money2/model/Namespace.ts +13 -0
- package/money2/model/options/NamespaceOptions.d.ts +3 -0
- package/money2/model/options/NamespaceOptions.ts +3 -0
- package/package.json +1 -1
- package/ranking/model/Namespace.d.ts +1 -0
- package/ranking/model/Namespace.js +9 -4
- package/ranking/model/Namespace.js.map +1 -1
- package/ranking/model/Namespace.ts +7 -0
- package/ranking/model/options/NamespaceOptions.d.ts +2 -0
- package/ranking/model/options/NamespaceOptions.ts +2 -0
- package/realtime/model/Namespace.d.ts +1 -0
- package/realtime/model/Namespace.js +11 -6
- package/realtime/model/Namespace.js.map +1 -1
- package/realtime/model/Namespace.ts +7 -0
- package/realtime/model/options/NamespaceOptions.d.ts +2 -0
- package/realtime/model/options/NamespaceOptions.ts +2 -0
- package/schedule/model/Namespace.d.ts +1 -0
- package/schedule/model/Namespace.js +9 -4
- package/schedule/model/Namespace.js.map +1 -1
- package/schedule/model/Namespace.ts +7 -0
- package/schedule/model/options/NamespaceOptions.d.ts +2 -0
- package/schedule/model/options/NamespaceOptions.ts +2 -0
- package/serialKey/model/Namespace.d.ts +1 -0
- package/serialKey/model/Namespace.js +9 -4
- package/serialKey/model/Namespace.js.map +1 -1
- package/serialKey/model/Namespace.ts +7 -0
- package/serialKey/model/options/NamespaceOptions.d.ts +2 -0
- package/serialKey/model/options/NamespaceOptions.ts +2 -0
- package/stamina/model/Namespace.d.ts +1 -0
- package/stamina/model/Namespace.js +10 -5
- package/stamina/model/Namespace.js.map +1 -1
- package/stamina/model/Namespace.ts +7 -0
- package/stamina/model/options/NamespaceOptions.d.ts +2 -0
- package/stamina/model/options/NamespaceOptions.ts +2 -0
- package/version/model/Namespace.d.ts +1 -0
- package/version/model/Namespace.js +12 -7
- package/version/model/Namespace.js.map +1 -1
- package/version/model/Namespace.ts +7 -0
- package/version/model/options/NamespaceOptions.d.ts +2 -0
- package/version/model/options/NamespaceOptions.ts +2 -0
|
@@ -22,9 +22,10 @@ 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;
|
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
26
26
|
super("Inventory_Namespace_" + name);
|
|
27
27
|
this.description = null;
|
|
28
|
+
this.transactionSetting = null;
|
|
28
29
|
this.acquireScript = null;
|
|
29
30
|
this.overflowScript = null;
|
|
30
31
|
this.consumeScript = null;
|
|
@@ -36,14 +37,15 @@ class Namespace extends model_1.CdkResource {
|
|
|
36
37
|
this.stack = stack;
|
|
37
38
|
this.name = name;
|
|
38
39
|
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
40
|
+
this.transactionSetting = (_b = options === null || options === void 0 ? void 0 : options.transactionSetting) !== null && _b !== void 0 ? _b : null;
|
|
41
|
+
this.acquireScript = (_c = options === null || options === void 0 ? void 0 : options.acquireScript) !== null && _c !== void 0 ? _c : null;
|
|
42
|
+
this.overflowScript = (_d = options === null || options === void 0 ? void 0 : options.overflowScript) !== null && _d !== void 0 ? _d : null;
|
|
43
|
+
this.consumeScript = (_e = options === null || options === void 0 ? void 0 : options.consumeScript) !== null && _e !== void 0 ? _e : null;
|
|
44
|
+
this.simpleItemAcquireScript = (_f = options === null || options === void 0 ? void 0 : options.simpleItemAcquireScript) !== null && _f !== void 0 ? _f : null;
|
|
45
|
+
this.simpleItemConsumeScript = (_g = options === null || options === void 0 ? void 0 : options.simpleItemConsumeScript) !== null && _g !== void 0 ? _g : null;
|
|
46
|
+
this.bigItemAcquireScript = (_h = options === null || options === void 0 ? void 0 : options.bigItemAcquireScript) !== null && _h !== void 0 ? _h : null;
|
|
47
|
+
this.bigItemConsumeScript = (_j = options === null || options === void 0 ? void 0 : options.bigItemConsumeScript) !== null && _j !== void 0 ? _j : null;
|
|
48
|
+
this.logSetting = (_k = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _k !== void 0 ? _k : null;
|
|
47
49
|
stack.addResource(this);
|
|
48
50
|
}
|
|
49
51
|
alternateKeys() {
|
|
@@ -53,7 +55,7 @@ class Namespace extends model_1.CdkResource {
|
|
|
53
55
|
return "GS2::Inventory::Namespace";
|
|
54
56
|
}
|
|
55
57
|
properties() {
|
|
56
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
58
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
57
59
|
let properties = {};
|
|
58
60
|
if (this.name != null) {
|
|
59
61
|
properties["Name"] = this.name;
|
|
@@ -61,29 +63,32 @@ class Namespace extends model_1.CdkResource {
|
|
|
61
63
|
if (this.description != null) {
|
|
62
64
|
properties["Description"] = this.description;
|
|
63
65
|
}
|
|
66
|
+
if (this.transactionSetting != null) {
|
|
67
|
+
properties["TransactionSetting"] = (_a = this.transactionSetting) === null || _a === void 0 ? void 0 : _a.properties();
|
|
68
|
+
}
|
|
64
69
|
if (this.acquireScript != null) {
|
|
65
|
-
properties["AcquireScript"] = (
|
|
70
|
+
properties["AcquireScript"] = (_b = this.acquireScript) === null || _b === void 0 ? void 0 : _b.properties();
|
|
66
71
|
}
|
|
67
72
|
if (this.overflowScript != null) {
|
|
68
|
-
properties["OverflowScript"] = (
|
|
73
|
+
properties["OverflowScript"] = (_c = this.overflowScript) === null || _c === void 0 ? void 0 : _c.properties();
|
|
69
74
|
}
|
|
70
75
|
if (this.consumeScript != null) {
|
|
71
|
-
properties["ConsumeScript"] = (
|
|
76
|
+
properties["ConsumeScript"] = (_d = this.consumeScript) === null || _d === void 0 ? void 0 : _d.properties();
|
|
72
77
|
}
|
|
73
78
|
if (this.simpleItemAcquireScript != null) {
|
|
74
|
-
properties["SimpleItemAcquireScript"] = (
|
|
79
|
+
properties["SimpleItemAcquireScript"] = (_e = this.simpleItemAcquireScript) === null || _e === void 0 ? void 0 : _e.properties();
|
|
75
80
|
}
|
|
76
81
|
if (this.simpleItemConsumeScript != null) {
|
|
77
|
-
properties["SimpleItemConsumeScript"] = (
|
|
82
|
+
properties["SimpleItemConsumeScript"] = (_f = this.simpleItemConsumeScript) === null || _f === void 0 ? void 0 : _f.properties();
|
|
78
83
|
}
|
|
79
84
|
if (this.bigItemAcquireScript != null) {
|
|
80
|
-
properties["BigItemAcquireScript"] = (
|
|
85
|
+
properties["BigItemAcquireScript"] = (_g = this.bigItemAcquireScript) === null || _g === void 0 ? void 0 : _g.properties();
|
|
81
86
|
}
|
|
82
87
|
if (this.bigItemConsumeScript != null) {
|
|
83
|
-
properties["BigItemConsumeScript"] = (
|
|
88
|
+
properties["BigItemConsumeScript"] = (_h = this.bigItemConsumeScript) === null || _h === void 0 ? void 0 : _h.properties();
|
|
84
89
|
}
|
|
85
90
|
if (this.logSetting != null) {
|
|
86
|
-
properties["LogSetting"] = (
|
|
91
|
+
properties["LogSetting"] = (_j = this.logSetting) === null || _j === void 0 ? void 0 : _j.properties();
|
|
87
92
|
}
|
|
88
93
|
return properties;
|
|
89
94
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;AAOpD,MAAqB,SAAU,SAAQ,mBAAW;IAc9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,sBAAsB,GAAG,IAAI,CAChC,CAAC;QAlBW,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAA4B,IAAI,CAAC;QACnD,kBAAa,GAAuB,IAAI,CAAC;QACzC,mBAAc,GAAuB,IAAI,CAAC;QAC1C,kBAAa,GAAuB,IAAI,CAAC;QACzC,4BAAuB,GAAuB,IAAI,CAAC;QACnD,4BAAuB,GAAuB,IAAI,CAAC;QACnD,yBAAoB,GAAuB,IAAI,CAAC;QAChD,yBAAoB,GAAuB,IAAI,CAAC;QAChD,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,mCAAI,IAAI,CAAC;QAC9D,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;QACpD,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cA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N,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,eAAiC,EACjC,qBAA6C,EAC7C,kBAAuC;QAEvC,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,eAAe,EACf,qBAAqB,EACrB,kBAAkB,CACrB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AArID,4BAqIC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import {CdkResource, Stack} from "../../core/model";
|
|
18
18
|
import {GetAttr} from "../../core/func";
|
|
19
|
+
import TransactionSetting from "../../core/model/TransactionSetting";
|
|
19
20
|
import ScriptSetting from "../../core/model/ScriptSetting";
|
|
20
21
|
import LogSetting from "../../core/model/LogSetting";
|
|
21
22
|
|
|
@@ -31,6 +32,7 @@ export default class Namespace extends CdkResource {
|
|
|
31
32
|
private readonly stack: Stack;
|
|
32
33
|
private readonly name: string;
|
|
33
34
|
private readonly description: string|null = null;
|
|
35
|
+
private readonly transactionSetting: TransactionSetting|null = null;
|
|
34
36
|
private readonly acquireScript: ScriptSetting|null = null;
|
|
35
37
|
private readonly overflowScript: ScriptSetting|null = null;
|
|
36
38
|
private readonly consumeScript: ScriptSetting|null = null;
|
|
@@ -52,6 +54,7 @@ export default class Namespace extends CdkResource {
|
|
|
52
54
|
this.stack = stack;
|
|
53
55
|
this.name = name;
|
|
54
56
|
this.description = options?.description ?? null;
|
|
57
|
+
this.transactionSetting = options?.transactionSetting ?? null;
|
|
55
58
|
this.acquireScript = options?.acquireScript ?? null;
|
|
56
59
|
this.overflowScript = options?.overflowScript ?? null;
|
|
57
60
|
this.consumeScript = options?.consumeScript ?? null;
|
|
@@ -86,6 +89,10 @@ export default class Namespace extends CdkResource {
|
|
|
86
89
|
if (this.description != null) {
|
|
87
90
|
properties["Description"] = this.description;
|
|
88
91
|
}
|
|
92
|
+
if (this.transactionSetting != null) {
|
|
93
|
+
properties["TransactionSetting"] = this.transactionSetting?.properties(
|
|
94
|
+
);
|
|
95
|
+
}
|
|
89
96
|
if (this.acquireScript != null) {
|
|
90
97
|
properties["AcquireScript"] = this.acquireScript?.properties(
|
|
91
98
|
);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import TransactionSetting from "../../../core/model/TransactionSetting";
|
|
1
2
|
import ScriptSetting from "../../../core/model/ScriptSetting";
|
|
2
3
|
import LogSetting from "../../../core/model/LogSetting";
|
|
3
4
|
export interface NamespaceOptions {
|
|
4
5
|
description?: string | null;
|
|
6
|
+
transactionSetting?: TransactionSetting | null;
|
|
5
7
|
acquireScript?: ScriptSetting | null;
|
|
6
8
|
overflowScript?: ScriptSetting | null;
|
|
7
9
|
consumeScript?: ScriptSetting | null;
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import TransactionSetting from "../../../core/model/TransactionSetting";
|
|
16
17
|
import ScriptSetting from "../../../core/model/ScriptSetting";
|
|
17
18
|
import LogSetting from "../../../core/model/LogSetting";
|
|
18
19
|
|
|
19
20
|
export interface NamespaceOptions {
|
|
20
21
|
description?: string|null;
|
|
22
|
+
transactionSetting?: TransactionSetting|null;
|
|
21
23
|
acquireScript?: ScriptSetting|null;
|
|
22
24
|
overflowScript?: ScriptSetting|null;
|
|
23
25
|
consumeScript?: ScriptSetting|null;
|
|
@@ -6,6 +6,7 @@ export default class Namespace extends CdkResource {
|
|
|
6
6
|
private readonly stack;
|
|
7
7
|
private readonly name;
|
|
8
8
|
private readonly description;
|
|
9
|
+
private readonly transactionSetting;
|
|
9
10
|
private readonly pushNotification;
|
|
10
11
|
private readonly runNotification;
|
|
11
12
|
private readonly logSetting;
|
|
@@ -21,18 +21,20 @@ 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;
|
|
24
|
+
var _a, _b, _c, _d, _e;
|
|
25
25
|
super("JobQueue_Namespace_" + name);
|
|
26
26
|
this.description = null;
|
|
27
|
+
this.transactionSetting = null;
|
|
27
28
|
this.pushNotification = null;
|
|
28
29
|
this.runNotification = null;
|
|
29
30
|
this.logSetting = null;
|
|
30
31
|
this.stack = stack;
|
|
31
32
|
this.name = name;
|
|
32
33
|
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
34
|
+
this.transactionSetting = (_b = options === null || options === void 0 ? void 0 : options.transactionSetting) !== null && _b !== void 0 ? _b : null;
|
|
35
|
+
this.pushNotification = (_c = options === null || options === void 0 ? void 0 : options.pushNotification) !== null && _c !== void 0 ? _c : null;
|
|
36
|
+
this.runNotification = (_d = options === null || options === void 0 ? void 0 : options.runNotification) !== null && _d !== void 0 ? _d : null;
|
|
37
|
+
this.logSetting = (_e = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _e !== void 0 ? _e : null;
|
|
36
38
|
stack.addResource(this);
|
|
37
39
|
}
|
|
38
40
|
alternateKeys() {
|
|
@@ -42,7 +44,7 @@ class Namespace extends model_1.CdkResource {
|
|
|
42
44
|
return "GS2::JobQueue::Namespace";
|
|
43
45
|
}
|
|
44
46
|
properties() {
|
|
45
|
-
var _a, _b, _c;
|
|
47
|
+
var _a, _b, _c, _d;
|
|
46
48
|
let properties = {};
|
|
47
49
|
if (this.name != null) {
|
|
48
50
|
properties["Name"] = this.name;
|
|
@@ -50,15 +52,18 @@ class Namespace extends model_1.CdkResource {
|
|
|
50
52
|
if (this.description != null) {
|
|
51
53
|
properties["Description"] = this.description;
|
|
52
54
|
}
|
|
55
|
+
if (this.transactionSetting != null) {
|
|
56
|
+
properties["TransactionSetting"] = (_a = this.transactionSetting) === null || _a === void 0 ? void 0 : _a.properties();
|
|
57
|
+
}
|
|
53
58
|
properties["EnableAutoRun"] = true;
|
|
54
59
|
if (this.pushNotification != null) {
|
|
55
|
-
properties["PushNotification"] = (
|
|
60
|
+
properties["PushNotification"] = (_b = this.pushNotification) === null || _b === void 0 ? void 0 : _b.properties();
|
|
56
61
|
}
|
|
57
62
|
if (this.runNotification != null) {
|
|
58
|
-
properties["RunNotification"] = (
|
|
63
|
+
properties["RunNotification"] = (_c = this.runNotification) === null || _c === void 0 ? void 0 : _c.properties();
|
|
59
64
|
}
|
|
60
65
|
if (this.logSetting != null) {
|
|
61
|
-
properties["LogSetting"] = (
|
|
66
|
+
properties["LogSetting"] = (_d = this.logSetting) === null || _d === void 0 ? void 0 : _d.properties();
|
|
62
67
|
}
|
|
63
68
|
return properties;
|
|
64
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAI/C,MAAqB,SAAU,SAAQ,mBAAW;IAS9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,qBAAqB,GAAG,IAAI,CAC/B,CAAC;QAbW,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAA4B,IAAI,CAAC;QACnD,qBAAgB,GAA6B,IAAI,CAAC;QAClD,oBAAe,GAA6B,IAAI,CAAC;QACjD,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC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B,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EACjE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,MAAA,IAAI,CAAC,eAAe,0CAAE,UAAU,EAC/D,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;AAvFD,4BAuFC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import {CdkResource, Stack} from "../../core/model";
|
|
18
18
|
import {GetAttr} from "../../core/func";
|
|
19
|
+
import TransactionSetting from "../../core/model/TransactionSetting";
|
|
19
20
|
import NotificationSetting from "../../core/model/NotificationSetting";
|
|
20
21
|
import LogSetting from "../../core/model/LogSetting";
|
|
21
22
|
|
|
@@ -27,6 +28,7 @@ export default class Namespace extends CdkResource {
|
|
|
27
28
|
private readonly stack: Stack;
|
|
28
29
|
private readonly name: string;
|
|
29
30
|
private readonly description: string|null = null;
|
|
31
|
+
private readonly transactionSetting: TransactionSetting|null = null;
|
|
30
32
|
private readonly pushNotification: NotificationSetting|null = null;
|
|
31
33
|
private readonly runNotification: NotificationSetting|null = null;
|
|
32
34
|
private readonly logSetting: LogSetting|null = null;
|
|
@@ -43,6 +45,7 @@ export default class Namespace extends CdkResource {
|
|
|
43
45
|
this.stack = stack;
|
|
44
46
|
this.name = name;
|
|
45
47
|
this.description = options?.description ?? null;
|
|
48
|
+
this.transactionSetting = options?.transactionSetting ?? null;
|
|
46
49
|
this.pushNotification = options?.pushNotification ?? null;
|
|
47
50
|
this.runNotification = options?.runNotification ?? null;
|
|
48
51
|
this.logSetting = options?.logSetting ?? null;
|
|
@@ -72,6 +75,10 @@ export default class Namespace extends CdkResource {
|
|
|
72
75
|
if (this.description != null) {
|
|
73
76
|
properties["Description"] = this.description;
|
|
74
77
|
}
|
|
78
|
+
if (this.transactionSetting != null) {
|
|
79
|
+
properties["TransactionSetting"] = this.transactionSetting?.properties(
|
|
80
|
+
);
|
|
81
|
+
}
|
|
75
82
|
properties["EnableAutoRun"] = true
|
|
76
83
|
if (this.pushNotification != null) {
|
|
77
84
|
properties["PushNotification"] = this.pushNotification?.properties(
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import TransactionSetting from "../../../core/model/TransactionSetting";
|
|
1
2
|
import NotificationSetting from "../../../core/model/NotificationSetting";
|
|
2
3
|
import LogSetting from "../../../core/model/LogSetting";
|
|
3
4
|
export interface NamespaceOptions {
|
|
4
5
|
description?: string | null;
|
|
6
|
+
transactionSetting?: TransactionSetting | null;
|
|
5
7
|
enableAutoRun?: boolean | null;
|
|
6
8
|
pushNotification?: NotificationSetting | null;
|
|
7
9
|
runNotification?: NotificationSetting | null;
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import TransactionSetting from "../../../core/model/TransactionSetting";
|
|
16
17
|
import NotificationSetting from "../../../core/model/NotificationSetting";
|
|
17
18
|
import LogSetting from "../../../core/model/LogSetting";
|
|
18
19
|
|
|
19
20
|
export interface NamespaceOptions {
|
|
20
21
|
description?: string|null;
|
|
22
|
+
transactionSetting?: TransactionSetting|null;
|
|
21
23
|
enableAutoRun?: boolean|null;
|
|
22
24
|
pushNotification?: NotificationSetting|null;
|
|
23
25
|
runNotification?: NotificationSetting|null;
|
|
@@ -7,6 +7,7 @@ export default class Namespace extends CdkResource {
|
|
|
7
7
|
private readonly stack;
|
|
8
8
|
private readonly name;
|
|
9
9
|
private readonly description;
|
|
10
|
+
private readonly transactionSetting;
|
|
10
11
|
private readonly logSetting;
|
|
11
12
|
constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
|
|
12
13
|
alternateKeys(): string;
|
package/limit/model/Namespace.js
CHANGED
|
@@ -22,14 +22,16 @@ 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;
|
|
25
|
+
var _a, _b, _c;
|
|
26
26
|
super("Limit_Namespace_" + name);
|
|
27
27
|
this.description = null;
|
|
28
|
+
this.transactionSetting = null;
|
|
28
29
|
this.logSetting = null;
|
|
29
30
|
this.stack = stack;
|
|
30
31
|
this.name = name;
|
|
31
32
|
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
32
|
-
this.
|
|
33
|
+
this.transactionSetting = (_b = options === null || options === void 0 ? void 0 : options.transactionSetting) !== null && _b !== void 0 ? _b : null;
|
|
34
|
+
this.logSetting = (_c = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _c !== void 0 ? _c : null;
|
|
33
35
|
stack.addResource(this);
|
|
34
36
|
}
|
|
35
37
|
alternateKeys() {
|
|
@@ -39,7 +41,7 @@ class Namespace extends model_1.CdkResource {
|
|
|
39
41
|
return "GS2::Limit::Namespace";
|
|
40
42
|
}
|
|
41
43
|
properties() {
|
|
42
|
-
var _a;
|
|
44
|
+
var _a, _b;
|
|
43
45
|
let properties = {};
|
|
44
46
|
if (this.name != null) {
|
|
45
47
|
properties["Name"] = this.name;
|
|
@@ -47,8 +49,11 @@ class Namespace extends model_1.CdkResource {
|
|
|
47
49
|
if (this.description != null) {
|
|
48
50
|
properties["Description"] = this.description;
|
|
49
51
|
}
|
|
52
|
+
if (this.transactionSetting != null) {
|
|
53
|
+
properties["TransactionSetting"] = (_a = this.transactionSetting) === null || _a === void 0 ? void 0 : _a.properties();
|
|
54
|
+
}
|
|
50
55
|
if (this.logSetting != null) {
|
|
51
|
-
properties["LogSetting"] = (
|
|
56
|
+
properties["LogSetting"] = (_b = this.logSetting) === null || _b === void 0 ? void 0 : _b.properties();
|
|
52
57
|
}
|
|
53
58
|
return properties;
|
|
54
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAIxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;IAO9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,kBAAkB,GAAG,IAAI,CAC5B,CAAC;QAXW,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAA4B,IAAI,CAAC;QACnD,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,mCAAI,IAAI,CAAC;QAC9D,IAAI,CA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namespace.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import {CdkResource, Stack} from "../../core/model";
|
|
18
18
|
import {GetAttr} from "../../core/func";
|
|
19
|
+
import TransactionSetting from "../../core/model/TransactionSetting";
|
|
19
20
|
import LogSetting from "../../core/model/LogSetting";
|
|
20
21
|
|
|
21
22
|
import NamespaceRef from "../ref/NamespaceRef";
|
|
@@ -28,6 +29,7 @@ export default class Namespace extends CdkResource {
|
|
|
28
29
|
private readonly stack: Stack;
|
|
29
30
|
private readonly name: string;
|
|
30
31
|
private readonly description: string|null = null;
|
|
32
|
+
private readonly transactionSetting: TransactionSetting|null = null;
|
|
31
33
|
private readonly logSetting: LogSetting|null = null;
|
|
32
34
|
|
|
33
35
|
public constructor(
|
|
@@ -42,6 +44,7 @@ export default class Namespace extends CdkResource {
|
|
|
42
44
|
this.stack = stack;
|
|
43
45
|
this.name = name;
|
|
44
46
|
this.description = options?.description ?? null;
|
|
47
|
+
this.transactionSetting = options?.transactionSetting ?? null;
|
|
45
48
|
this.logSetting = options?.logSetting ?? null;
|
|
46
49
|
stack.addResource(
|
|
47
50
|
this,
|
|
@@ -69,6 +72,10 @@ export default class Namespace extends CdkResource {
|
|
|
69
72
|
if (this.description != null) {
|
|
70
73
|
properties["Description"] = this.description;
|
|
71
74
|
}
|
|
75
|
+
if (this.transactionSetting != null) {
|
|
76
|
+
properties["TransactionSetting"] = this.transactionSetting?.properties(
|
|
77
|
+
);
|
|
78
|
+
}
|
|
72
79
|
if (this.logSetting != null) {
|
|
73
80
|
properties["LogSetting"] = this.logSetting?.properties(
|
|
74
81
|
);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import TransactionSetting from "../../../core/model/TransactionSetting";
|
|
1
2
|
import LogSetting from "../../../core/model/LogSetting";
|
|
2
3
|
export interface NamespaceOptions {
|
|
3
4
|
description?: string | null;
|
|
5
|
+
transactionSetting?: TransactionSetting | null;
|
|
4
6
|
logSetting?: LogSetting | null;
|
|
5
7
|
}
|
|
@@ -13,10 +13,12 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import TransactionSetting from "../../../core/model/TransactionSetting";
|
|
16
17
|
import LogSetting from "../../../core/model/LogSetting";
|
|
17
18
|
|
|
18
19
|
export interface NamespaceOptions {
|
|
19
20
|
description?: string|null;
|
|
21
|
+
transactionSetting?: TransactionSetting|null;
|
|
20
22
|
logSetting?: LogSetting|null;
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -12,6 +12,7 @@ export default class Namespace extends CdkResource {
|
|
|
12
12
|
private readonly createGatheringTriggerType;
|
|
13
13
|
private readonly completeMatchmakingTriggerType;
|
|
14
14
|
private readonly description;
|
|
15
|
+
private readonly transactionSetting;
|
|
15
16
|
private readonly enableRating;
|
|
16
17
|
private readonly enableDisconnectDetection;
|
|
17
18
|
private readonly disconnectDetectionTimeoutSeconds;
|
|
@@ -22,9 +22,10 @@ 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, createGatheringTriggerType, completeMatchmakingTriggerType, options = null) {
|
|
25
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
26
26
|
super("Matchmaking_Namespace_" + name);
|
|
27
27
|
this.description = null;
|
|
28
|
+
this.transactionSetting = null;
|
|
28
29
|
this.enableRating = null;
|
|
29
30
|
this.enableDisconnectDetection = null;
|
|
30
31
|
this.disconnectDetectionTimeoutSeconds = null;
|
|
@@ -46,22 +47,23 @@ class Namespace extends model_1.CdkResource {
|
|
|
46
47
|
this.createGatheringTriggerType = createGatheringTriggerType;
|
|
47
48
|
this.completeMatchmakingTriggerType = completeMatchmakingTriggerType;
|
|
48
49
|
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
49
|
-
this.
|
|
50
|
-
this.
|
|
51
|
-
this.
|
|
52
|
-
this.
|
|
53
|
-
this.
|
|
54
|
-
this.
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
50
|
+
this.transactionSetting = (_b = options === null || options === void 0 ? void 0 : options.transactionSetting) !== null && _b !== void 0 ? _b : null;
|
|
51
|
+
this.enableRating = (_c = options === null || options === void 0 ? void 0 : options.enableRating) !== null && _c !== void 0 ? _c : null;
|
|
52
|
+
this.enableDisconnectDetection = (_d = options === null || options === void 0 ? void 0 : options.enableDisconnectDetection) !== null && _d !== void 0 ? _d : null;
|
|
53
|
+
this.disconnectDetectionTimeoutSeconds = (_e = options === null || options === void 0 ? void 0 : options.disconnectDetectionTimeoutSeconds) !== null && _e !== void 0 ? _e : null;
|
|
54
|
+
this.createGatheringTriggerRealtimeNamespaceId = (_f = options === null || options === void 0 ? void 0 : options.createGatheringTriggerRealtimeNamespaceId) !== null && _f !== void 0 ? _f : null;
|
|
55
|
+
this.createGatheringTriggerScriptId = (_g = options === null || options === void 0 ? void 0 : options.createGatheringTriggerScriptId) !== null && _g !== void 0 ? _g : null;
|
|
56
|
+
this.completeMatchmakingTriggerRealtimeNamespaceId = (_h = options === null || options === void 0 ? void 0 : options.completeMatchmakingTriggerRealtimeNamespaceId) !== null && _h !== void 0 ? _h : null;
|
|
57
|
+
this.completeMatchmakingTriggerScriptId = (_j = options === null || options === void 0 ? void 0 : options.completeMatchmakingTriggerScriptId) !== null && _j !== void 0 ? _j : null;
|
|
58
|
+
this.enableCollaborateSeasonRating = (_k = options === null || options === void 0 ? void 0 : options.enableCollaborateSeasonRating) !== null && _k !== void 0 ? _k : null;
|
|
59
|
+
this.collaborateSeasonRatingNamespaceId = (_l = options === null || options === void 0 ? void 0 : options.collaborateSeasonRatingNamespaceId) !== null && _l !== void 0 ? _l : null;
|
|
60
|
+
this.collaborateSeasonRatingTtl = (_m = options === null || options === void 0 ? void 0 : options.collaborateSeasonRatingTtl) !== null && _m !== void 0 ? _m : null;
|
|
61
|
+
this.changeRatingScript = (_o = options === null || options === void 0 ? void 0 : options.changeRatingScript) !== null && _o !== void 0 ? _o : null;
|
|
62
|
+
this.joinNotification = (_p = options === null || options === void 0 ? void 0 : options.joinNotification) !== null && _p !== void 0 ? _p : null;
|
|
63
|
+
this.leaveNotification = (_q = options === null || options === void 0 ? void 0 : options.leaveNotification) !== null && _q !== void 0 ? _q : null;
|
|
64
|
+
this.completeNotification = (_r = options === null || options === void 0 ? void 0 : options.completeNotification) !== null && _r !== void 0 ? _r : null;
|
|
65
|
+
this.changeRatingNotification = (_s = options === null || options === void 0 ? void 0 : options.changeRatingNotification) !== null && _s !== void 0 ? _s : null;
|
|
66
|
+
this.logSetting = (_t = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _t !== void 0 ? _t : null;
|
|
65
67
|
stack.addResource(this);
|
|
66
68
|
}
|
|
67
69
|
alternateKeys() {
|
|
@@ -71,7 +73,7 @@ class Namespace extends model_1.CdkResource {
|
|
|
71
73
|
return "GS2::Matchmaking::Namespace";
|
|
72
74
|
}
|
|
73
75
|
properties() {
|
|
74
|
-
var _a, _b, _c, _d, _e, _f;
|
|
76
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
75
77
|
let properties = {};
|
|
76
78
|
if (this.name != null) {
|
|
77
79
|
properties["Name"] = this.name;
|
|
@@ -79,6 +81,9 @@ class Namespace extends model_1.CdkResource {
|
|
|
79
81
|
if (this.description != null) {
|
|
80
82
|
properties["Description"] = this.description;
|
|
81
83
|
}
|
|
84
|
+
if (this.transactionSetting != null) {
|
|
85
|
+
properties["TransactionSetting"] = (_a = this.transactionSetting) === null || _a === void 0 ? void 0 : _a.properties();
|
|
86
|
+
}
|
|
82
87
|
if (this.enableRating != null) {
|
|
83
88
|
properties["EnableRating"] = this.enableRating;
|
|
84
89
|
}
|
|
@@ -116,22 +121,22 @@ class Namespace extends model_1.CdkResource {
|
|
|
116
121
|
properties["CollaborateSeasonRatingTtl"] = this.collaborateSeasonRatingTtl;
|
|
117
122
|
}
|
|
118
123
|
if (this.changeRatingScript != null) {
|
|
119
|
-
properties["ChangeRatingScript"] = (
|
|
124
|
+
properties["ChangeRatingScript"] = (_b = this.changeRatingScript) === null || _b === void 0 ? void 0 : _b.properties();
|
|
120
125
|
}
|
|
121
126
|
if (this.joinNotification != null) {
|
|
122
|
-
properties["JoinNotification"] = (
|
|
127
|
+
properties["JoinNotification"] = (_c = this.joinNotification) === null || _c === void 0 ? void 0 : _c.properties();
|
|
123
128
|
}
|
|
124
129
|
if (this.leaveNotification != null) {
|
|
125
|
-
properties["LeaveNotification"] = (
|
|
130
|
+
properties["LeaveNotification"] = (_d = this.leaveNotification) === null || _d === void 0 ? void 0 : _d.properties();
|
|
126
131
|
}
|
|
127
132
|
if (this.completeNotification != null) {
|
|
128
|
-
properties["CompleteNotification"] = (
|
|
133
|
+
properties["CompleteNotification"] = (_e = this.completeNotification) === null || _e === void 0 ? void 0 : _e.properties();
|
|
129
134
|
}
|
|
130
135
|
if (this.changeRatingNotification != null) {
|
|
131
|
-
properties["ChangeRatingNotification"] = (
|
|
136
|
+
properties["ChangeRatingNotification"] = (_f = this.changeRatingNotification) === null || _f === void 0 ? void 0 : _f.properties();
|
|
132
137
|
}
|
|
133
138
|
if (this.logSetting != null) {
|
|
134
|
-
properties["LogSetting"] = (
|
|
139
|
+
properties["LogSetting"] = (_g = this.logSetting) === null || _g === void 0 ? void 0 : _g.properties();
|
|
135
140
|
}
|
|
136
141
|
return properties;
|
|
137
142
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAMxC,+EAA+C;AAC/C,oFAAoD;AAUpD,MAAqB,SAAU,SAAQ,mBAAW;IAwB9C,YACI,KAAY,EACZ,IAAY,EACZ,0BAA+D,EAC/D,8BAAuE,EACvE,UAAiC,IAAI;;QAErC,KAAK,CACD,wBAAwB,GAAG,IAAI,CAClC,CAAC;QA5BW,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAA4B,IAAI,CAAC;QACnD,iBAAY,GAAiB,IAAI,CAAC;QAClC,8BAAyB,GAA4C,IAAI,CAAC;QAC1E,sCAAiC,GAAgB,IAAI,CAAC;QACtD,8CAAyC,GAAgB,IAAI,CAAC;QAC9D,mCAA8B,GAAgB,IAAI,CAAC;QACnD,kDAA6C,GAAgB,IAAI,CAAC;QAClE,uCAAkC,GAAgB,IAAI,CAAC;QACvD,kCAA6B,GAAgD,IAAI,CAAC;QAClF,uCAAkC,GAAgB,IAAI,CAAC;QACvD,+BAA0B,GAAgB,IAAI,CAAC;QAC/C,uBAAkB,GAAuB,IAAI,CAAC;QAC9C,qBAAgB,GAA6B,IAAI,CAAC;QAClD,sBAAiB,GAA6B,IAAI,CAAC;QACnD,yBAAoB,GAA6B,IAAI,CAAC;QACtD,6BAAwB,GAA6B,IAAI,CAAC;QAC1D,eAAU,GAAoB,IAAI,CAAC;QAahD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,0BAA0B,GAAG,0BAA0B,CAAC;QAC7D,IAAI,CAAC,8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AAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,YAA2B,EAC3B,YAA2B;QAE3B,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,YAAY,EACZ,YAAY,CACf,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AArLD,4BAqLC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import {CdkResource, Stack} from "../../core/model";
|
|
18
18
|
import {GetAttr} from "../../core/func";
|
|
19
|
+
import TransactionSetting from "../../core/model/TransactionSetting";
|
|
19
20
|
import ScriptSetting from "../../core/model/ScriptSetting";
|
|
20
21
|
import NotificationSetting from "../../core/model/NotificationSetting";
|
|
21
22
|
import LogSetting from "../../core/model/LogSetting";
|
|
@@ -37,6 +38,7 @@ export default class Namespace extends CdkResource {
|
|
|
37
38
|
private readonly createGatheringTriggerType: NamespaceCreateGatheringTriggerType;
|
|
38
39
|
private readonly completeMatchmakingTriggerType: NamespaceCompleteMatchmakingTriggerType;
|
|
39
40
|
private readonly description: string|null = null;
|
|
41
|
+
private readonly transactionSetting: TransactionSetting|null = null;
|
|
40
42
|
private readonly enableRating: boolean|null = null;
|
|
41
43
|
private readonly enableDisconnectDetection: NamespaceEnableDisconnectDetection|null = null;
|
|
42
44
|
private readonly disconnectDetectionTimeoutSeconds: number|null = null;
|
|
@@ -70,6 +72,7 @@ export default class Namespace extends CdkResource {
|
|
|
70
72
|
this.createGatheringTriggerType = createGatheringTriggerType;
|
|
71
73
|
this.completeMatchmakingTriggerType = completeMatchmakingTriggerType;
|
|
72
74
|
this.description = options?.description ?? null;
|
|
75
|
+
this.transactionSetting = options?.transactionSetting ?? null;
|
|
73
76
|
this.enableRating = options?.enableRating ?? null;
|
|
74
77
|
this.enableDisconnectDetection = options?.enableDisconnectDetection ?? null;
|
|
75
78
|
this.disconnectDetectionTimeoutSeconds = options?.disconnectDetectionTimeoutSeconds ?? null;
|
|
@@ -112,6 +115,10 @@ export default class Namespace extends CdkResource {
|
|
|
112
115
|
if (this.description != null) {
|
|
113
116
|
properties["Description"] = this.description;
|
|
114
117
|
}
|
|
118
|
+
if (this.transactionSetting != null) {
|
|
119
|
+
properties["TransactionSetting"] = this.transactionSetting?.properties(
|
|
120
|
+
);
|
|
121
|
+
}
|
|
115
122
|
if (this.enableRating != null) {
|
|
116
123
|
properties["EnableRating"] = this.enableRating;
|
|
117
124
|
}
|
package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2RealtimeOptions.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { TransactionSetting } from "../../../core/model";
|
|
1
2
|
import { ScriptSetting } from "../../../core/model";
|
|
2
3
|
import { NotificationSetting } from "../../../core/model";
|
|
3
4
|
import { LogSetting } from "../../../core/model";
|
|
4
5
|
export interface NamespaceCompleteMatchmakingTriggerTypeIsGs2RealtimeOptions {
|
|
5
6
|
description?: string | null;
|
|
7
|
+
transactionSetting?: TransactionSetting | null;
|
|
6
8
|
changeRatingScript?: ScriptSetting | null;
|
|
7
9
|
joinNotification?: NotificationSetting | null;
|
|
8
10
|
leaveNotification?: NotificationSetting | null;
|