gs2 1.4.2 → 1.4.3
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/IgnoreUser.d.ts +24 -0
- package/guild/model/IgnoreUser.js +149 -0
- package/guild/model/IgnoreUser.js.map +1 -0
- package/guild/model/IgnoreUser.ts +165 -0
- package/guild/model/IgnoreUsers.d.ts +41 -0
- package/guild/model/IgnoreUsers.js +213 -0
- package/guild/model/IgnoreUsers.js.map +1 -0
- package/guild/model/IgnoreUsers.ts +230 -0
- package/guild/model/index.d.ts +2 -1
- package/guild/model/index.js +3 -1
- package/guild/model/index.js.map +1 -1
- package/guild/model/index.ts +2 -0
- package/guild/request/AddIgnoreUserByGuildNameRequest.d.ts +41 -0
- package/guild/request/AddIgnoreUserByGuildNameRequest.js +137 -0
- package/guild/request/AddIgnoreUserByGuildNameRequest.js.map +1 -0
- package/guild/request/AddIgnoreUserByGuildNameRequest.ts +147 -0
- package/guild/request/AddIgnoreUserRequest.d.ts +37 -0
- package/guild/request/AddIgnoreUserRequest.js +123 -0
- package/guild/request/AddIgnoreUserRequest.js.map +1 -0
- package/guild/request/AddIgnoreUserRequest.ts +133 -0
- package/guild/request/DeleteIgnoreUserByGuildNameRequest.d.ts +41 -0
- package/guild/request/DeleteIgnoreUserByGuildNameRequest.js +137 -0
- package/guild/request/DeleteIgnoreUserByGuildNameRequest.js.map +1 -0
- package/guild/request/DeleteIgnoreUserByGuildNameRequest.ts +147 -0
- package/guild/request/DeleteIgnoreUserRequest.d.ts +37 -0
- package/guild/request/DeleteIgnoreUserRequest.js +123 -0
- package/guild/request/DeleteIgnoreUserRequest.js.map +1 -0
- package/guild/request/DeleteIgnoreUserRequest.ts +133 -0
- package/guild/request/DescribeIgnoreUsersByGuildNameRequest.d.ts +37 -0
- package/guild/request/DescribeIgnoreUsersByGuildNameRequest.js +125 -0
- package/guild/request/DescribeIgnoreUsersByGuildNameRequest.js.map +1 -0
- package/guild/request/DescribeIgnoreUsersByGuildNameRequest.ts +132 -0
- package/guild/request/DescribeIgnoreUsersRequest.d.ts +37 -0
- package/guild/request/DescribeIgnoreUsersRequest.js +125 -0
- package/guild/request/DescribeIgnoreUsersRequest.js.map +1 -0
- package/guild/request/DescribeIgnoreUsersRequest.ts +132 -0
- package/guild/request/GetIgnoreUserByGuildNameRequest.d.ts +37 -0
- package/guild/request/GetIgnoreUserByGuildNameRequest.js +125 -0
- package/guild/request/GetIgnoreUserByGuildNameRequest.js.map +1 -0
- package/guild/request/GetIgnoreUserByGuildNameRequest.ts +132 -0
- package/guild/request/GetIgnoreUserRequest.d.ts +33 -0
- package/guild/request/GetIgnoreUserRequest.js +111 -0
- package/guild/request/GetIgnoreUserRequest.js.map +1 -0
- package/guild/request/GetIgnoreUserRequest.ts +118 -0
- package/guild/request/index.d.ts +9 -1
- package/guild/request/index.js +17 -1
- package/guild/request/index.js.map +1 -1
- package/guild/request/index.ts +16 -0
- package/guild/rest.d.ts +8 -0
- package/guild/rest.js +239 -0
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +271 -0
- package/guild/result/AddIgnoreUserByGuildNameResult.d.ts +18 -0
- package/guild/result/AddIgnoreUserByGuildNameResult.js +62 -0
- package/guild/result/AddIgnoreUserByGuildNameResult.js.map +1 -0
- package/guild/result/AddIgnoreUserByGuildNameResult.ts +64 -0
- package/guild/result/AddIgnoreUserResult.d.ts +18 -0
- package/guild/result/AddIgnoreUserResult.js +62 -0
- package/guild/result/AddIgnoreUserResult.js.map +1 -0
- package/guild/result/AddIgnoreUserResult.ts +64 -0
- package/guild/result/DeleteIgnoreUserByGuildNameResult.d.ts +14 -0
- package/guild/result/DeleteIgnoreUserByGuildNameResult.js +48 -0
- package/guild/result/DeleteIgnoreUserByGuildNameResult.js.map +1 -0
- package/guild/result/DeleteIgnoreUserByGuildNameResult.ts +47 -0
- package/guild/result/DeleteIgnoreUserResult.d.ts +14 -0
- package/guild/result/DeleteIgnoreUserResult.js +48 -0
- package/guild/result/DeleteIgnoreUserResult.js.map +1 -0
- package/guild/result/DeleteIgnoreUserResult.ts +47 -0
- package/guild/result/DescribeIgnoreUsersByGuildNameResult.d.ts +18 -0
- package/guild/result/DescribeIgnoreUsersByGuildNameResult.js +67 -0
- package/guild/result/DescribeIgnoreUsersByGuildNameResult.js.map +1 -0
- package/guild/result/DescribeIgnoreUsersByGuildNameResult.ts +72 -0
- package/guild/result/DescribeIgnoreUsersResult.d.ts +18 -0
- package/guild/result/DescribeIgnoreUsersResult.js +67 -0
- package/guild/result/DescribeIgnoreUsersResult.js.map +1 -0
- package/guild/result/DescribeIgnoreUsersResult.ts +72 -0
- package/guild/result/GetIgnoreUserByGuildNameResult.d.ts +14 -0
- package/guild/result/GetIgnoreUserByGuildNameResult.js +48 -0
- package/guild/result/GetIgnoreUserByGuildNameResult.js.map +1 -0
- package/guild/result/GetIgnoreUserByGuildNameResult.ts +47 -0
- package/guild/result/GetIgnoreUserResult.d.ts +14 -0
- package/guild/result/GetIgnoreUserResult.js +48 -0
- package/guild/result/GetIgnoreUserResult.js.map +1 -0
- package/guild/result/GetIgnoreUserResult.ts +47 -0
- package/guild/result/index.d.ts +9 -1
- package/guild/result/index.js +17 -1
- package/guild/result/index.js.map +1 -1
- package/guild/result/index.ts +16 -0
- package/package.json +1 -1
- package/ranking/request/PutScoreByUserIdRequest.d.ts +0 -4
- package/ranking/request/PutScoreByUserIdRequest.js +0 -12
- package/ranking/request/PutScoreByUserIdRequest.js.map +1 -1
- package/ranking/request/PutScoreByUserIdRequest.ts +0 -15
- package/ranking/rest.js +5 -8
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +0 -3
|
@@ -0,0 +1,230 @@
|
|
|
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 IModel from '../../core/interface/IModel';
|
|
18
|
+
import IgnoreUser from './IgnoreUser';
|
|
19
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:guild:{namespaceName}:guild:{guildModelName}:{guildName}:ignore:user";
|
|
20
|
+
|
|
21
|
+
export default class IgnoreUsers implements IModel {
|
|
22
|
+
private ignoreUsersId: string|null = null;
|
|
23
|
+
private guildModelName: string|null = null;
|
|
24
|
+
private users: IgnoreUser[]|null = null;
|
|
25
|
+
private createdAt: number|null = null;
|
|
26
|
+
private updatedAt: number|null = null;
|
|
27
|
+
private revision: number|null = null;
|
|
28
|
+
|
|
29
|
+
public static getRegion(grn: string): string|null {
|
|
30
|
+
const match = grn.match(grnFormat
|
|
31
|
+
.replace('{region}', '(.*)')
|
|
32
|
+
.replace('{ownerId}', '.*')
|
|
33
|
+
.replace('{namespaceName}', '.*')
|
|
34
|
+
.replace('{guildModelName}', '.*')
|
|
35
|
+
.replace('{guildName}', '.*')
|
|
36
|
+
);
|
|
37
|
+
if (match) {
|
|
38
|
+
return match[1];
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public static getOwnerId(grn: string): string|null {
|
|
44
|
+
const match = grn.match(grnFormat
|
|
45
|
+
.replace('{region}', '.*')
|
|
46
|
+
.replace('{ownerId}', '(.*)')
|
|
47
|
+
.replace('{namespaceName}', '.*')
|
|
48
|
+
.replace('{guildModelName}', '.*')
|
|
49
|
+
.replace('{guildName}', '.*')
|
|
50
|
+
);
|
|
51
|
+
if (match) {
|
|
52
|
+
return match[1];
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public static getNamespaceName(grn: string): string|null {
|
|
58
|
+
const match = grn.match(grnFormat
|
|
59
|
+
.replace('{region}', '.*')
|
|
60
|
+
.replace('{ownerId}', '.*')
|
|
61
|
+
.replace('{namespaceName}', '(.*)')
|
|
62
|
+
.replace('{guildModelName}', '.*')
|
|
63
|
+
.replace('{guildName}', '.*')
|
|
64
|
+
);
|
|
65
|
+
if (match) {
|
|
66
|
+
return match[1];
|
|
67
|
+
}
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public static getGuildModelName(grn: string): string|null {
|
|
72
|
+
const match = grn.match(grnFormat
|
|
73
|
+
.replace('{region}', '.*')
|
|
74
|
+
.replace('{ownerId}', '.*')
|
|
75
|
+
.replace('{namespaceName}', '.*')
|
|
76
|
+
.replace('{guildModelName}', '(.*)')
|
|
77
|
+
.replace('{guildName}', '.*')
|
|
78
|
+
);
|
|
79
|
+
if (match) {
|
|
80
|
+
return match[1];
|
|
81
|
+
}
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
public static getGuildName(grn: string): string|null {
|
|
86
|
+
const match = grn.match(grnFormat
|
|
87
|
+
.replace('{region}', '.*')
|
|
88
|
+
.replace('{ownerId}', '.*')
|
|
89
|
+
.replace('{namespaceName}', '.*')
|
|
90
|
+
.replace('{guildModelName}', '.*')
|
|
91
|
+
.replace('{guildName}', '(.*)')
|
|
92
|
+
);
|
|
93
|
+
if (match) {
|
|
94
|
+
return match[1];
|
|
95
|
+
}
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
public static isValid(grn: string): boolean {
|
|
100
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
if (this.getGuildModelName(grn) == null || this.getGuildModelName(grn) === '') {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
if (this.getGuildName(grn) == null || this.getGuildName(grn) === '') {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
public static createGrn(
|
|
119
|
+
region: string|null,
|
|
120
|
+
ownerId: string|null,
|
|
121
|
+
namespaceName: string|null,
|
|
122
|
+
guildModelName: string|null,
|
|
123
|
+
guildName: string|null,
|
|
124
|
+
): string|null {
|
|
125
|
+
return grnFormat
|
|
126
|
+
.replace('{region}', region ?? '')
|
|
127
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
128
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
129
|
+
.replace('{guildModelName}', guildModelName ?? '')
|
|
130
|
+
.replace('{guildName}', guildName ?? '');
|
|
131
|
+
}
|
|
132
|
+
public getIgnoreUsersId(): string|null {
|
|
133
|
+
return this.ignoreUsersId;
|
|
134
|
+
}
|
|
135
|
+
public setIgnoreUsersId(ignoreUsersId: string|null) {
|
|
136
|
+
this.ignoreUsersId = ignoreUsersId;
|
|
137
|
+
return this;
|
|
138
|
+
}
|
|
139
|
+
public withIgnoreUsersId(ignoreUsersId: string|null): this {
|
|
140
|
+
this.ignoreUsersId = ignoreUsersId;
|
|
141
|
+
return this;
|
|
142
|
+
}
|
|
143
|
+
public getGuildModelName(): string|null {
|
|
144
|
+
return this.guildModelName;
|
|
145
|
+
}
|
|
146
|
+
public setGuildModelName(guildModelName: string|null) {
|
|
147
|
+
this.guildModelName = guildModelName;
|
|
148
|
+
return this;
|
|
149
|
+
}
|
|
150
|
+
public withGuildModelName(guildModelName: string|null): this {
|
|
151
|
+
this.guildModelName = guildModelName;
|
|
152
|
+
return this;
|
|
153
|
+
}
|
|
154
|
+
public getUsers(): IgnoreUser[]|null {
|
|
155
|
+
return this.users;
|
|
156
|
+
}
|
|
157
|
+
public setUsers(users: IgnoreUser[]|null) {
|
|
158
|
+
this.users = users;
|
|
159
|
+
return this;
|
|
160
|
+
}
|
|
161
|
+
public withUsers(users: IgnoreUser[]|null): this {
|
|
162
|
+
this.users = users;
|
|
163
|
+
return this;
|
|
164
|
+
}
|
|
165
|
+
public getCreatedAt(): number|null {
|
|
166
|
+
return this.createdAt;
|
|
167
|
+
}
|
|
168
|
+
public setCreatedAt(createdAt: number|null) {
|
|
169
|
+
this.createdAt = createdAt;
|
|
170
|
+
return this;
|
|
171
|
+
}
|
|
172
|
+
public withCreatedAt(createdAt: number|null): this {
|
|
173
|
+
this.createdAt = createdAt;
|
|
174
|
+
return this;
|
|
175
|
+
}
|
|
176
|
+
public getUpdatedAt(): number|null {
|
|
177
|
+
return this.updatedAt;
|
|
178
|
+
}
|
|
179
|
+
public setUpdatedAt(updatedAt: number|null) {
|
|
180
|
+
this.updatedAt = updatedAt;
|
|
181
|
+
return this;
|
|
182
|
+
}
|
|
183
|
+
public withUpdatedAt(updatedAt: number|null): this {
|
|
184
|
+
this.updatedAt = updatedAt;
|
|
185
|
+
return this;
|
|
186
|
+
}
|
|
187
|
+
public getRevision(): number|null {
|
|
188
|
+
return this.revision;
|
|
189
|
+
}
|
|
190
|
+
public setRevision(revision: number|null) {
|
|
191
|
+
this.revision = revision;
|
|
192
|
+
return this;
|
|
193
|
+
}
|
|
194
|
+
public withRevision(revision: number|null): this {
|
|
195
|
+
this.revision = revision;
|
|
196
|
+
return this;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
public static fromDict(data: {[key: string]: any}): IgnoreUsers|null {
|
|
200
|
+
if (data == undefined || data == null) {
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
return new IgnoreUsers()
|
|
204
|
+
.withIgnoreUsersId(data["ignoreUsersId"])
|
|
205
|
+
.withGuildModelName(data["guildModelName"])
|
|
206
|
+
.withUsers(data.users ?
|
|
207
|
+
data.users.map((item: {[key: string]: any}) => {
|
|
208
|
+
return IgnoreUser.fromDict(item);
|
|
209
|
+
}
|
|
210
|
+
) : [])
|
|
211
|
+
.withCreatedAt(data["createdAt"])
|
|
212
|
+
.withUpdatedAt(data["updatedAt"])
|
|
213
|
+
.withRevision(data["revision"]);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
public toDict(): {[key: string]: any} {
|
|
217
|
+
return {
|
|
218
|
+
"ignoreUsersId": this.getIgnoreUsersId(),
|
|
219
|
+
"guildModelName": this.getGuildModelName(),
|
|
220
|
+
"users": this.getUsers() ?
|
|
221
|
+
this.getUsers()!.map((item: IgnoreUser) => {
|
|
222
|
+
return item.toDict();
|
|
223
|
+
}
|
|
224
|
+
) : [],
|
|
225
|
+
"createdAt": this.getCreatedAt(),
|
|
226
|
+
"updatedAt": this.getUpdatedAt(),
|
|
227
|
+
"revision": this.getRevision(),
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
}
|
package/guild/model/index.d.ts
CHANGED
|
@@ -10,9 +10,10 @@ import RoleModel from "./RoleModel";
|
|
|
10
10
|
import Member from "./Member";
|
|
11
11
|
import ReceiveMemberRequest from "./ReceiveMemberRequest";
|
|
12
12
|
import SendMemberRequest from "./SendMemberRequest";
|
|
13
|
+
import IgnoreUser from "./IgnoreUser";
|
|
13
14
|
import TransactionSetting from "./TransactionSetting";
|
|
14
15
|
import NotificationSetting from "./NotificationSetting";
|
|
15
16
|
import ScriptSetting from "./ScriptSetting";
|
|
16
17
|
import LogSetting from "./LogSetting";
|
|
17
18
|
import GitHubCheckoutSetting from "./GitHubCheckoutSetting";
|
|
18
|
-
export { Namespace, GuildModelMaster, GuildModel, Inbox, SendBox, Guild, JoinedGuild, CurrentGuildMaster, RoleModel, Member, ReceiveMemberRequest, SendMemberRequest, TransactionSetting, NotificationSetting, ScriptSetting, LogSetting, GitHubCheckoutSetting, };
|
|
19
|
+
export { Namespace, GuildModelMaster, GuildModel, Inbox, SendBox, Guild, JoinedGuild, CurrentGuildMaster, RoleModel, Member, ReceiveMemberRequest, SendMemberRequest, IgnoreUser, TransactionSetting, NotificationSetting, ScriptSetting, LogSetting, GitHubCheckoutSetting, };
|
package/guild/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GitHubCheckoutSetting = exports.LogSetting = exports.ScriptSetting = exports.NotificationSetting = exports.TransactionSetting = exports.SendMemberRequest = exports.ReceiveMemberRequest = exports.Member = exports.RoleModel = exports.CurrentGuildMaster = exports.JoinedGuild = exports.Guild = exports.SendBox = exports.Inbox = exports.GuildModel = exports.GuildModelMaster = exports.Namespace = void 0;
|
|
3
|
+
exports.GitHubCheckoutSetting = exports.LogSetting = exports.ScriptSetting = exports.NotificationSetting = exports.TransactionSetting = exports.IgnoreUser = exports.SendMemberRequest = exports.ReceiveMemberRequest = exports.Member = exports.RoleModel = exports.CurrentGuildMaster = exports.JoinedGuild = exports.Guild = exports.SendBox = exports.Inbox = exports.GuildModel = exports.GuildModelMaster = exports.Namespace = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -41,6 +41,8 @@ var ReceiveMemberRequest_1 = tslib_1.__importDefault(require("./ReceiveMemberReq
|
|
|
41
41
|
exports.ReceiveMemberRequest = ReceiveMemberRequest_1.default;
|
|
42
42
|
var SendMemberRequest_1 = tslib_1.__importDefault(require("./SendMemberRequest"));
|
|
43
43
|
exports.SendMemberRequest = SendMemberRequest_1.default;
|
|
44
|
+
var IgnoreUser_1 = tslib_1.__importDefault(require("./IgnoreUser"));
|
|
45
|
+
exports.IgnoreUser = IgnoreUser_1.default;
|
|
44
46
|
var TransactionSetting_1 = tslib_1.__importDefault(require("./TransactionSetting"));
|
|
45
47
|
exports.TransactionSetting = TransactionSetting_1.default;
|
|
46
48
|
var NotificationSetting_1 = tslib_1.__importDefault(require("./NotificationSetting"));
|
package/guild/model/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;AAoB/B,oBApBG,mBAAS,CAoBH;AAnBb,gFAAiD;AAoB7C,2BApBG,0BAAgB,CAoBH;AAnBpB,oEAAqC;AAoBjC,qBApBG,oBAAU,CAoBH;AAnBd,0DAA2B;AAoBvB,gBApBG,eAAK,CAoBH;AAnBT,8DAA+B;AAoB3B,kBApBG,iBAAO,CAoBH;AAnBX,0DAA2B;AAoBvB,gBApBG,eAAK,CAoBH;AAnBT,sEAAuC;AAoBnC,sBApBG,qBAAW,CAoBH;AAnBf,oFAAqD;AAoBjD,6BApBG,4BAAkB,CAoBH;AAnBtB,kEAAmC;AAoB/B,oBApBG,mBAAS,CAoBH;AAnBb,4DAA6B;AAoBzB,iBApBG,gBAAM,CAoBH;AAnBV,wFAAyD;AAoBrD,+BApBG,8BAAoB,CAoBH;AAnBxB,kFAAmD;AAoB/C,4BApBG,2BAAiB,CAoBH;AAnBrB,oEAAqC;AAoBjC,qBApBG,oBAAU,CAoBH;AAnBd,oFAAqD;AAoBjD,6BApBG,4BAAkB,CAoBH;AAnBtB,sFAAuD;AAoBnD,8BApBG,6BAAmB,CAoBH;AAnBvB,0EAA2C;AAoBvC,wBApBG,uBAAa,CAoBH;AAnBjB,oEAAqC;AAoBjC,qBApBG,oBAAU,CAoBH;AAnBd,0FAA2D;AAoBvD,gCApBG,+BAAqB,CAoBH"}
|
package/guild/model/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ import RoleModel from "./RoleModel"
|
|
|
25
25
|
import Member from "./Member"
|
|
26
26
|
import ReceiveMemberRequest from "./ReceiveMemberRequest"
|
|
27
27
|
import SendMemberRequest from "./SendMemberRequest"
|
|
28
|
+
import IgnoreUser from "./IgnoreUser"
|
|
28
29
|
import TransactionSetting from "./TransactionSetting"
|
|
29
30
|
import NotificationSetting from "./NotificationSetting"
|
|
30
31
|
import ScriptSetting from "./ScriptSetting"
|
|
@@ -44,6 +45,7 @@ export {
|
|
|
44
45
|
Member,
|
|
45
46
|
ReceiveMemberRequest,
|
|
46
47
|
SendMemberRequest,
|
|
48
|
+
IgnoreUser,
|
|
47
49
|
TransactionSetting,
|
|
48
50
|
NotificationSetting,
|
|
49
51
|
ScriptSetting,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
export default class AddIgnoreUserByGuildNameRequest implements IRequest {
|
|
3
|
+
private requestId;
|
|
4
|
+
private contextStack;
|
|
5
|
+
private namespaceName;
|
|
6
|
+
private guildModelName;
|
|
7
|
+
private guildName;
|
|
8
|
+
private userId;
|
|
9
|
+
private timeOffsetToken;
|
|
10
|
+
private duplicationAvoider;
|
|
11
|
+
getRequestId(): string | null;
|
|
12
|
+
setRequestId(requestId: string | null): this;
|
|
13
|
+
withRequestId(requestId: string | null): this;
|
|
14
|
+
getContextStack(): string | null;
|
|
15
|
+
setContextStack(contextStack: string | null): this;
|
|
16
|
+
withContextStack(contextStack: string | null): this;
|
|
17
|
+
getNamespaceName(): string | null;
|
|
18
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
19
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
20
|
+
getGuildModelName(): string | null;
|
|
21
|
+
setGuildModelName(guildModelName: string | null): this;
|
|
22
|
+
withGuildModelName(guildModelName: string | null): this;
|
|
23
|
+
getGuildName(): string | null;
|
|
24
|
+
setGuildName(guildName: string | null): this;
|
|
25
|
+
withGuildName(guildName: string | null): this;
|
|
26
|
+
getUserId(): string | null;
|
|
27
|
+
setUserId(userId: string | null): this;
|
|
28
|
+
withUserId(userId: string | null): this;
|
|
29
|
+
getTimeOffsetToken(): string | null;
|
|
30
|
+
setTimeOffsetToken(timeOffsetToken: string | null): this;
|
|
31
|
+
withTimeOffsetToken(timeOffsetToken: string | null): this;
|
|
32
|
+
getDuplicationAvoider(): string | null;
|
|
33
|
+
setDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
34
|
+
withDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
35
|
+
static fromDict(data: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}): AddIgnoreUserByGuildNameRequest;
|
|
38
|
+
toDict(): {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
var AddIgnoreUserByGuildNameRequest = /** @class */ (function () {
|
|
19
|
+
function AddIgnoreUserByGuildNameRequest() {
|
|
20
|
+
this.requestId = null;
|
|
21
|
+
this.contextStack = null;
|
|
22
|
+
this.namespaceName = null;
|
|
23
|
+
this.guildModelName = null;
|
|
24
|
+
this.guildName = null;
|
|
25
|
+
this.userId = null;
|
|
26
|
+
this.timeOffsetToken = null;
|
|
27
|
+
this.duplicationAvoider = null;
|
|
28
|
+
}
|
|
29
|
+
AddIgnoreUserByGuildNameRequest.prototype.getRequestId = function () {
|
|
30
|
+
return this.requestId;
|
|
31
|
+
};
|
|
32
|
+
AddIgnoreUserByGuildNameRequest.prototype.setRequestId = function (requestId) {
|
|
33
|
+
this.requestId = requestId;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
AddIgnoreUserByGuildNameRequest.prototype.withRequestId = function (requestId) {
|
|
37
|
+
this.requestId = requestId;
|
|
38
|
+
return this;
|
|
39
|
+
};
|
|
40
|
+
AddIgnoreUserByGuildNameRequest.prototype.getContextStack = function () {
|
|
41
|
+
return this.contextStack;
|
|
42
|
+
};
|
|
43
|
+
AddIgnoreUserByGuildNameRequest.prototype.setContextStack = function (contextStack) {
|
|
44
|
+
this.contextStack = contextStack;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
AddIgnoreUserByGuildNameRequest.prototype.withContextStack = function (contextStack) {
|
|
48
|
+
this.contextStack = contextStack;
|
|
49
|
+
return this;
|
|
50
|
+
};
|
|
51
|
+
AddIgnoreUserByGuildNameRequest.prototype.getNamespaceName = function () {
|
|
52
|
+
return this.namespaceName;
|
|
53
|
+
};
|
|
54
|
+
AddIgnoreUserByGuildNameRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
55
|
+
this.namespaceName = namespaceName;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
AddIgnoreUserByGuildNameRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
59
|
+
this.namespaceName = namespaceName;
|
|
60
|
+
return this;
|
|
61
|
+
};
|
|
62
|
+
AddIgnoreUserByGuildNameRequest.prototype.getGuildModelName = function () {
|
|
63
|
+
return this.guildModelName;
|
|
64
|
+
};
|
|
65
|
+
AddIgnoreUserByGuildNameRequest.prototype.setGuildModelName = function (guildModelName) {
|
|
66
|
+
this.guildModelName = guildModelName;
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
69
|
+
AddIgnoreUserByGuildNameRequest.prototype.withGuildModelName = function (guildModelName) {
|
|
70
|
+
this.guildModelName = guildModelName;
|
|
71
|
+
return this;
|
|
72
|
+
};
|
|
73
|
+
AddIgnoreUserByGuildNameRequest.prototype.getGuildName = function () {
|
|
74
|
+
return this.guildName;
|
|
75
|
+
};
|
|
76
|
+
AddIgnoreUserByGuildNameRequest.prototype.setGuildName = function (guildName) {
|
|
77
|
+
this.guildName = guildName;
|
|
78
|
+
return this;
|
|
79
|
+
};
|
|
80
|
+
AddIgnoreUserByGuildNameRequest.prototype.withGuildName = function (guildName) {
|
|
81
|
+
this.guildName = guildName;
|
|
82
|
+
return this;
|
|
83
|
+
};
|
|
84
|
+
AddIgnoreUserByGuildNameRequest.prototype.getUserId = function () {
|
|
85
|
+
return this.userId;
|
|
86
|
+
};
|
|
87
|
+
AddIgnoreUserByGuildNameRequest.prototype.setUserId = function (userId) {
|
|
88
|
+
this.userId = userId;
|
|
89
|
+
return this;
|
|
90
|
+
};
|
|
91
|
+
AddIgnoreUserByGuildNameRequest.prototype.withUserId = function (userId) {
|
|
92
|
+
this.userId = userId;
|
|
93
|
+
return this;
|
|
94
|
+
};
|
|
95
|
+
AddIgnoreUserByGuildNameRequest.prototype.getTimeOffsetToken = function () {
|
|
96
|
+
return this.timeOffsetToken;
|
|
97
|
+
};
|
|
98
|
+
AddIgnoreUserByGuildNameRequest.prototype.setTimeOffsetToken = function (timeOffsetToken) {
|
|
99
|
+
this.timeOffsetToken = timeOffsetToken;
|
|
100
|
+
return this;
|
|
101
|
+
};
|
|
102
|
+
AddIgnoreUserByGuildNameRequest.prototype.withTimeOffsetToken = function (timeOffsetToken) {
|
|
103
|
+
this.timeOffsetToken = timeOffsetToken;
|
|
104
|
+
return this;
|
|
105
|
+
};
|
|
106
|
+
AddIgnoreUserByGuildNameRequest.prototype.getDuplicationAvoider = function () {
|
|
107
|
+
return this.duplicationAvoider;
|
|
108
|
+
};
|
|
109
|
+
AddIgnoreUserByGuildNameRequest.prototype.setDuplicationAvoider = function (duplicationAvoider) {
|
|
110
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
111
|
+
return this;
|
|
112
|
+
};
|
|
113
|
+
AddIgnoreUserByGuildNameRequest.prototype.withDuplicationAvoider = function (duplicationAvoider) {
|
|
114
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
115
|
+
return this;
|
|
116
|
+
};
|
|
117
|
+
AddIgnoreUserByGuildNameRequest.fromDict = function (data) {
|
|
118
|
+
return new AddIgnoreUserByGuildNameRequest()
|
|
119
|
+
.withNamespaceName(data["namespaceName"])
|
|
120
|
+
.withGuildModelName(data["guildModelName"])
|
|
121
|
+
.withGuildName(data["guildName"])
|
|
122
|
+
.withUserId(data["userId"])
|
|
123
|
+
.withTimeOffsetToken(data["timeOffsetToken"]);
|
|
124
|
+
};
|
|
125
|
+
AddIgnoreUserByGuildNameRequest.prototype.toDict = function () {
|
|
126
|
+
return {
|
|
127
|
+
"namespaceName": this.getNamespaceName(),
|
|
128
|
+
"guildModelName": this.getGuildModelName(),
|
|
129
|
+
"guildName": this.getGuildName(),
|
|
130
|
+
"userId": this.getUserId(),
|
|
131
|
+
"timeOffsetToken": this.getTimeOffsetToken(),
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
return AddIgnoreUserByGuildNameRequest;
|
|
135
|
+
}());
|
|
136
|
+
exports.default = AddIgnoreUserByGuildNameRequest;
|
|
137
|
+
//# sourceMappingURL=AddIgnoreUserByGuildNameRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddIgnoreUserByGuildNameRequest.js","sourceRoot":"","sources":["AddIgnoreUserByGuildNameRequest.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,147 @@
|
|
|
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 IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Guild from '../model'
|
|
20
|
+
|
|
21
|
+
export default class AddIgnoreUserByGuildNameRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private guildModelName: string|null = null;
|
|
27
|
+
private guildName: string|null = null;
|
|
28
|
+
private userId: string|null = null;
|
|
29
|
+
private timeOffsetToken: string|null = null;
|
|
30
|
+
private duplicationAvoider: string|null = null;
|
|
31
|
+
|
|
32
|
+
public getRequestId(): string|null {
|
|
33
|
+
return this.requestId;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public setRequestId(requestId: string|null) {
|
|
37
|
+
this.requestId = requestId;
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public withRequestId(requestId: string|null): this {
|
|
42
|
+
this.requestId = requestId;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public getContextStack(): string|null {
|
|
47
|
+
return this.contextStack;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public setContextStack(contextStack: string|null) {
|
|
51
|
+
this.contextStack = contextStack;
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public withContextStack(contextStack: string|null): this {
|
|
56
|
+
this.contextStack = contextStack;
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
public getNamespaceName(): string|null {
|
|
60
|
+
return this.namespaceName;
|
|
61
|
+
}
|
|
62
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
63
|
+
this.namespaceName = namespaceName;
|
|
64
|
+
return this;
|
|
65
|
+
}
|
|
66
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
67
|
+
this.namespaceName = namespaceName;
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
public getGuildModelName(): string|null {
|
|
71
|
+
return this.guildModelName;
|
|
72
|
+
}
|
|
73
|
+
public setGuildModelName(guildModelName: string|null) {
|
|
74
|
+
this.guildModelName = guildModelName;
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
public withGuildModelName(guildModelName: string|null): this {
|
|
78
|
+
this.guildModelName = guildModelName;
|
|
79
|
+
return this;
|
|
80
|
+
}
|
|
81
|
+
public getGuildName(): string|null {
|
|
82
|
+
return this.guildName;
|
|
83
|
+
}
|
|
84
|
+
public setGuildName(guildName: string|null) {
|
|
85
|
+
this.guildName = guildName;
|
|
86
|
+
return this;
|
|
87
|
+
}
|
|
88
|
+
public withGuildName(guildName: string|null): this {
|
|
89
|
+
this.guildName = guildName;
|
|
90
|
+
return this;
|
|
91
|
+
}
|
|
92
|
+
public getUserId(): string|null {
|
|
93
|
+
return this.userId;
|
|
94
|
+
}
|
|
95
|
+
public setUserId(userId: string|null) {
|
|
96
|
+
this.userId = userId;
|
|
97
|
+
return this;
|
|
98
|
+
}
|
|
99
|
+
public withUserId(userId: string|null): this {
|
|
100
|
+
this.userId = userId;
|
|
101
|
+
return this;
|
|
102
|
+
}
|
|
103
|
+
public getTimeOffsetToken(): string|null {
|
|
104
|
+
return this.timeOffsetToken;
|
|
105
|
+
}
|
|
106
|
+
public setTimeOffsetToken(timeOffsetToken: string|null) {
|
|
107
|
+
this.timeOffsetToken = timeOffsetToken;
|
|
108
|
+
return this;
|
|
109
|
+
}
|
|
110
|
+
public withTimeOffsetToken(timeOffsetToken: string|null): this {
|
|
111
|
+
this.timeOffsetToken = timeOffsetToken;
|
|
112
|
+
return this;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
public getDuplicationAvoider(): string|null {
|
|
116
|
+
return this.duplicationAvoider;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
public setDuplicationAvoider(duplicationAvoider: string|null) {
|
|
120
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
public withDuplicationAvoider(duplicationAvoider: string|null): this {
|
|
125
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
126
|
+
return this;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
public static fromDict(data: {[key: string]: any}): AddIgnoreUserByGuildNameRequest {
|
|
130
|
+
return new AddIgnoreUserByGuildNameRequest()
|
|
131
|
+
.withNamespaceName(data["namespaceName"])
|
|
132
|
+
.withGuildModelName(data["guildModelName"])
|
|
133
|
+
.withGuildName(data["guildName"])
|
|
134
|
+
.withUserId(data["userId"])
|
|
135
|
+
.withTimeOffsetToken(data["timeOffsetToken"]);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
public toDict(): {[key: string]: any} {
|
|
139
|
+
return {
|
|
140
|
+
"namespaceName": this.getNamespaceName(),
|
|
141
|
+
"guildModelName": this.getGuildModelName(),
|
|
142
|
+
"guildName": this.getGuildName(),
|
|
143
|
+
"userId": this.getUserId(),
|
|
144
|
+
"timeOffsetToken": this.getTimeOffsetToken(),
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
export default class AddIgnoreUserRequest implements IRequest {
|
|
3
|
+
private requestId;
|
|
4
|
+
private contextStack;
|
|
5
|
+
private namespaceName;
|
|
6
|
+
private guildModelName;
|
|
7
|
+
private accessToken;
|
|
8
|
+
private userId;
|
|
9
|
+
private duplicationAvoider;
|
|
10
|
+
getRequestId(): string | null;
|
|
11
|
+
setRequestId(requestId: string | null): this;
|
|
12
|
+
withRequestId(requestId: string | null): this;
|
|
13
|
+
getContextStack(): string | null;
|
|
14
|
+
setContextStack(contextStack: string | null): this;
|
|
15
|
+
withContextStack(contextStack: string | null): this;
|
|
16
|
+
getNamespaceName(): string | null;
|
|
17
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
18
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
19
|
+
getGuildModelName(): string | null;
|
|
20
|
+
setGuildModelName(guildModelName: string | null): this;
|
|
21
|
+
withGuildModelName(guildModelName: string | null): this;
|
|
22
|
+
getAccessToken(): string | null;
|
|
23
|
+
setAccessToken(accessToken: string | null): this;
|
|
24
|
+
withAccessToken(accessToken: string | null): this;
|
|
25
|
+
getUserId(): string | null;
|
|
26
|
+
setUserId(userId: string | null): this;
|
|
27
|
+
withUserId(userId: string | null): this;
|
|
28
|
+
getDuplicationAvoider(): string | null;
|
|
29
|
+
setDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
30
|
+
withDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
31
|
+
static fromDict(data: {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}): AddIgnoreUserRequest;
|
|
34
|
+
toDict(): {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
};
|
|
37
|
+
}
|