gs2-cdk 1.0.92 → 1.0.93
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/guild/model/GuildModel.d.ts +2 -0
- package/guild/model/GuildModel.js +11 -1
- package/guild/model/GuildModel.js.map +1 -1
- package/guild/model/GuildModel.ts +10 -0
- package/guild/model/options/GuildModelOptions.d.ts +2 -0
- package/guild/model/options/GuildModelOptions.ts +2 -0
- package/package.json +1 -1
|
@@ -10,6 +10,8 @@ export default class GuildModel {
|
|
|
10
10
|
private readonly guildMemberDefaultRole;
|
|
11
11
|
private readonly rejoinCoolTimeMinutes;
|
|
12
12
|
private readonly metadata;
|
|
13
|
+
private readonly maxConcurrentJoinGuilds;
|
|
14
|
+
private readonly maxConcurrentGuildMasterCount;
|
|
13
15
|
constructor(name: string, defaultMaximumMemberCount: number, maximumMemberCount: number, inactivityPeriodDays: number, roles: RoleModel[], guildMasterRole: string, guildMemberDefaultRole: string, rejoinCoolTimeMinutes: number, options?: GuildModelOptions | null);
|
|
14
16
|
properties(): {
|
|
15
17
|
[name: string]: any;
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class GuildModel {
|
|
4
4
|
constructor(name, defaultMaximumMemberCount, maximumMemberCount, inactivityPeriodDays, roles, guildMasterRole, guildMemberDefaultRole, rejoinCoolTimeMinutes, options = null) {
|
|
5
|
-
var _a;
|
|
5
|
+
var _a, _b, _c;
|
|
6
6
|
this.metadata = null;
|
|
7
|
+
this.maxConcurrentJoinGuilds = null;
|
|
8
|
+
this.maxConcurrentGuildMasterCount = null;
|
|
7
9
|
this.name = name;
|
|
8
10
|
this.defaultMaximumMemberCount = defaultMaximumMemberCount;
|
|
9
11
|
this.maximumMemberCount = maximumMemberCount;
|
|
@@ -13,6 +15,8 @@ class GuildModel {
|
|
|
13
15
|
this.guildMemberDefaultRole = guildMemberDefaultRole;
|
|
14
16
|
this.rejoinCoolTimeMinutes = rejoinCoolTimeMinutes;
|
|
15
17
|
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
18
|
+
this.maxConcurrentJoinGuilds = (_b = options === null || options === void 0 ? void 0 : options.maxConcurrentJoinGuilds) !== null && _b !== void 0 ? _b : null;
|
|
19
|
+
this.maxConcurrentGuildMasterCount = (_c = options === null || options === void 0 ? void 0 : options.maxConcurrentGuildMasterCount) !== null && _c !== void 0 ? _c : null;
|
|
16
20
|
}
|
|
17
21
|
properties() {
|
|
18
22
|
let properties = {};
|
|
@@ -43,6 +47,12 @@ class GuildModel {
|
|
|
43
47
|
if (this.rejoinCoolTimeMinutes != null) {
|
|
44
48
|
properties["rejoinCoolTimeMinutes"] = this.rejoinCoolTimeMinutes;
|
|
45
49
|
}
|
|
50
|
+
if (this.maxConcurrentJoinGuilds != null) {
|
|
51
|
+
properties["maxConcurrentJoinGuilds"] = this.maxConcurrentJoinGuilds;
|
|
52
|
+
}
|
|
53
|
+
if (this.maxConcurrentGuildMasterCount != null) {
|
|
54
|
+
properties["maxConcurrentGuildMasterCount"] = this.maxConcurrentGuildMasterCount;
|
|
55
|
+
}
|
|
46
56
|
return properties;
|
|
47
57
|
}
|
|
48
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GuildModel.js","sourceRoot":"","sources":["GuildModel.ts"],"names":[],"mappings":";;AAkBA,MAAqB,UAAU;
|
|
1
|
+
{"version":3,"file":"GuildModel.js","sourceRoot":"","sources":["GuildModel.ts"],"names":[],"mappings":";;AAkBA,MAAqB,UAAU;IAa3B,YACI,IAAY,EACZ,yBAAiC,EACjC,kBAA0B,EAC1B,oBAA4B,EAC5B,KAAkB,EAClB,eAAuB,EACvB,sBAA8B,EAC9B,qBAA6B,EAC7B,UAAkC,IAAI;;QAbzB,aAAQ,GAAgB,IAAI,CAAC;QAC7B,4BAAuB,GAAgB,IAAI,CAAC;QAC5C,kCAA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;QACD,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE;YACnC,UAAU,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC;SAClE;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACjD,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,UAAU,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;SACtE;QACD,IAAI,IAAI,CAAC,qBAAqB,IAAI,IAAI,EAAE;YACpC,UAAU,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC;SACpE;QACD,IAAI,IAAI,CAAC,uBAAuB,IAAI,IAAI,EAAE;YACtC,UAAU,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC,uBAAuB,CAAC;SACxE;QACD,IAAI,IAAI,CAAC,6BAA6B,IAAI,IAAI,EAAE;YAC5C,UAAU,CAAC,+BAA+B,CAAC,GAAG,IAAI,CAAC,6BAA6B,CAAC;SACpF;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA9ED,6BA8EC"}
|
|
@@ -26,6 +26,8 @@ export default class GuildModel {
|
|
|
26
26
|
private readonly guildMemberDefaultRole: string;
|
|
27
27
|
private readonly rejoinCoolTimeMinutes: number;
|
|
28
28
|
private readonly metadata: string|null = null;
|
|
29
|
+
private readonly maxConcurrentJoinGuilds: number|null = null;
|
|
30
|
+
private readonly maxConcurrentGuildMasterCount: number|null = null;
|
|
29
31
|
|
|
30
32
|
public constructor(
|
|
31
33
|
name: string,
|
|
@@ -47,6 +49,8 @@ export default class GuildModel {
|
|
|
47
49
|
this.guildMemberDefaultRole = guildMemberDefaultRole;
|
|
48
50
|
this.rejoinCoolTimeMinutes = rejoinCoolTimeMinutes;
|
|
49
51
|
this.metadata = options?.metadata ?? null;
|
|
52
|
+
this.maxConcurrentJoinGuilds = options?.maxConcurrentJoinGuilds ?? null;
|
|
53
|
+
this.maxConcurrentGuildMasterCount = options?.maxConcurrentGuildMasterCount ?? null;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
public properties(
|
|
@@ -81,6 +85,12 @@ export default class GuildModel {
|
|
|
81
85
|
if (this.rejoinCoolTimeMinutes != null) {
|
|
82
86
|
properties["rejoinCoolTimeMinutes"] = this.rejoinCoolTimeMinutes;
|
|
83
87
|
}
|
|
88
|
+
if (this.maxConcurrentJoinGuilds != null) {
|
|
89
|
+
properties["maxConcurrentJoinGuilds"] = this.maxConcurrentJoinGuilds;
|
|
90
|
+
}
|
|
91
|
+
if (this.maxConcurrentGuildMasterCount != null) {
|
|
92
|
+
properties["maxConcurrentGuildMasterCount"] = this.maxConcurrentGuildMasterCount;
|
|
93
|
+
}
|
|
84
94
|
|
|
85
95
|
return properties;
|
|
86
96
|
}
|