gs2 1.3.216 → 1.3.217
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/package.json +1 -1
- package/skillTree/model/Status.d.ts +6 -1
- package/skillTree/model/Status.js +41 -7
- package/skillTree/model/Status.js.map +1 -1
- package/skillTree/model/Status.ts +39 -2
- package/skillTree/request/DescribeStatusesByUserIdRequest.d.ts +33 -0
- package/skillTree/request/DescribeStatusesByUserIdRequest.js +111 -0
- package/skillTree/request/DescribeStatusesByUserIdRequest.js.map +1 -0
- package/skillTree/request/DescribeStatusesByUserIdRequest.ts +118 -0
- package/skillTree/request/DescribeStatusesRequest.d.ts +33 -0
- package/skillTree/request/DescribeStatusesRequest.js +111 -0
- package/skillTree/request/DescribeStatusesRequest.js.map +1 -0
- package/skillTree/request/DescribeStatusesRequest.ts +118 -0
- package/skillTree/request/GetStatusByUserIdRequest.d.ts +4 -0
- package/skillTree/request/GetStatusByUserIdRequest.js +15 -1
- package/skillTree/request/GetStatusByUserIdRequest.js.map +1 -1
- package/skillTree/request/GetStatusByUserIdRequest.ts +15 -1
- package/skillTree/request/GetStatusRequest.d.ts +4 -0
- package/skillTree/request/GetStatusRequest.js +15 -1
- package/skillTree/request/GetStatusRequest.js.map +1 -1
- package/skillTree/request/GetStatusRequest.ts +15 -1
- package/skillTree/request/MarkReleaseByUserIdRequest.d.ts +4 -0
- package/skillTree/request/MarkReleaseByUserIdRequest.js +14 -0
- package/skillTree/request/MarkReleaseByUserIdRequest.js.map +1 -1
- package/skillTree/request/MarkReleaseByUserIdRequest.ts +14 -0
- package/skillTree/request/MarkRestrainByUserIdRequest.d.ts +4 -0
- package/skillTree/request/MarkRestrainByUserIdRequest.js +14 -0
- package/skillTree/request/MarkRestrainByUserIdRequest.js.map +1 -1
- package/skillTree/request/MarkRestrainByUserIdRequest.ts +14 -0
- package/skillTree/request/ReleaseByUserIdRequest.d.ts +4 -0
- package/skillTree/request/ReleaseByUserIdRequest.js +14 -0
- package/skillTree/request/ReleaseByUserIdRequest.js.map +1 -1
- package/skillTree/request/ReleaseByUserIdRequest.ts +14 -0
- package/skillTree/request/ReleaseRequest.d.ts +4 -0
- package/skillTree/request/ReleaseRequest.js +14 -0
- package/skillTree/request/ReleaseRequest.js.map +1 -1
- package/skillTree/request/ReleaseRequest.ts +14 -0
- package/skillTree/request/ResetByUserIdRequest.d.ts +4 -0
- package/skillTree/request/ResetByUserIdRequest.js +14 -0
- package/skillTree/request/ResetByUserIdRequest.js.map +1 -1
- package/skillTree/request/ResetByUserIdRequest.ts +14 -0
- package/skillTree/request/ResetRequest.d.ts +4 -0
- package/skillTree/request/ResetRequest.js +14 -0
- package/skillTree/request/ResetRequest.js.map +1 -1
- package/skillTree/request/ResetRequest.ts +14 -0
- package/skillTree/request/RestrainByUserIdRequest.d.ts +4 -0
- package/skillTree/request/RestrainByUserIdRequest.js +14 -0
- package/skillTree/request/RestrainByUserIdRequest.js.map +1 -1
- package/skillTree/request/RestrainByUserIdRequest.ts +14 -0
- package/skillTree/request/RestrainRequest.d.ts +4 -0
- package/skillTree/request/RestrainRequest.js +14 -0
- package/skillTree/request/RestrainRequest.js.map +1 -1
- package/skillTree/request/RestrainRequest.ts +14 -0
- package/skillTree/request/index.d.ts +3 -1
- package/skillTree/request/index.js +5 -1
- package/skillTree/request/index.js.map +1 -1
- package/skillTree/request/index.ts +4 -0
- package/skillTree/rest.d.ts +2 -0
- package/skillTree/rest.js +122 -60
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +89 -19
- package/skillTree/result/DescribeStatusesByUserIdResult.d.ts +18 -0
- package/skillTree/result/DescribeStatusesByUserIdResult.js +67 -0
- package/skillTree/result/DescribeStatusesByUserIdResult.js.map +1 -0
- package/skillTree/result/DescribeStatusesByUserIdResult.ts +72 -0
- package/skillTree/result/DescribeStatusesResult.d.ts +18 -0
- package/skillTree/result/DescribeStatusesResult.js +67 -0
- package/skillTree/result/DescribeStatusesResult.js.map +1 -0
- package/skillTree/result/DescribeStatusesResult.ts +72 -0
- package/skillTree/result/index.d.ts +3 -1
- package/skillTree/result/index.js +5 -1
- package/skillTree/result/index.js.map +1 -1
- package/skillTree/result/index.ts +4 -0
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import IModel from '../../core/interface/IModel';
|
|
|
2
2
|
export default class Status implements IModel {
|
|
3
3
|
private statusId;
|
|
4
4
|
private userId;
|
|
5
|
+
private propertyId;
|
|
5
6
|
private releasedNodeNames;
|
|
6
7
|
private createdAt;
|
|
7
8
|
private updatedAt;
|
|
@@ -10,14 +11,18 @@ export default class Status implements IModel {
|
|
|
10
11
|
static getOwnerId(grn: string): string | null;
|
|
11
12
|
static getNamespaceName(grn: string): string | null;
|
|
12
13
|
static getUserId(grn: string): string | null;
|
|
14
|
+
static getPropertyId(grn: string): string | null;
|
|
13
15
|
static isValid(grn: string): boolean;
|
|
14
|
-
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, userId: string | null): string | null;
|
|
16
|
+
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, userId: string | null, propertyId: string | null): string | null;
|
|
15
17
|
getStatusId(): string | null;
|
|
16
18
|
setStatusId(statusId: string | null): this;
|
|
17
19
|
withStatusId(statusId: string | null): this;
|
|
18
20
|
getUserId(): string | null;
|
|
19
21
|
setUserId(userId: string | null): this;
|
|
20
22
|
withUserId(userId: string | null): this;
|
|
23
|
+
getPropertyId(): string | null;
|
|
24
|
+
setPropertyId(propertyId: string | null): this;
|
|
25
|
+
withPropertyId(propertyId: string | null): this;
|
|
21
26
|
getReleasedNodeNames(): string[] | null;
|
|
22
27
|
setReleasedNodeNames(releasedNodeNames: string[] | null): this;
|
|
23
28
|
withReleasedNodeNames(releasedNodeNames: string[] | null): this;
|
|
@@ -15,11 +15,12 @@ express or implied. See the License for the specific language governing
|
|
|
15
15
|
permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
var grnFormat = "grn:gs2:{region}:{ownerId}:skillTree:{namespaceName}:user:{userId}:status";
|
|
18
|
+
var grnFormat = "grn:gs2:{region}:{ownerId}:skillTree:{namespaceName}:user:{userId}:status:{propertyId}";
|
|
19
19
|
var Status = /** @class */ (function () {
|
|
20
20
|
function Status() {
|
|
21
21
|
this.statusId = null;
|
|
22
22
|
this.userId = null;
|
|
23
|
+
this.propertyId = null;
|
|
23
24
|
this.releasedNodeNames = null;
|
|
24
25
|
this.createdAt = null;
|
|
25
26
|
this.updatedAt = null;
|
|
@@ -30,7 +31,8 @@ var Status = /** @class */ (function () {
|
|
|
30
31
|
.replace('{region}', '(.*)')
|
|
31
32
|
.replace('{ownerId}', '.*')
|
|
32
33
|
.replace('{namespaceName}', '.*')
|
|
33
|
-
.replace('{userId}', '.*')
|
|
34
|
+
.replace('{userId}', '.*')
|
|
35
|
+
.replace('{propertyId}', '.*'));
|
|
34
36
|
if (match) {
|
|
35
37
|
return match[1];
|
|
36
38
|
}
|
|
@@ -41,7 +43,8 @@ var Status = /** @class */ (function () {
|
|
|
41
43
|
.replace('{region}', '.*')
|
|
42
44
|
.replace('{ownerId}', '(.*)')
|
|
43
45
|
.replace('{namespaceName}', '.*')
|
|
44
|
-
.replace('{userId}', '.*')
|
|
46
|
+
.replace('{userId}', '.*')
|
|
47
|
+
.replace('{propertyId}', '.*'));
|
|
45
48
|
if (match) {
|
|
46
49
|
return match[1];
|
|
47
50
|
}
|
|
@@ -52,7 +55,8 @@ var Status = /** @class */ (function () {
|
|
|
52
55
|
.replace('{region}', '.*')
|
|
53
56
|
.replace('{ownerId}', '.*')
|
|
54
57
|
.replace('{namespaceName}', '(.*)')
|
|
55
|
-
.replace('{userId}', '.*')
|
|
58
|
+
.replace('{userId}', '.*')
|
|
59
|
+
.replace('{propertyId}', '.*'));
|
|
56
60
|
if (match) {
|
|
57
61
|
return match[1];
|
|
58
62
|
}
|
|
@@ -63,7 +67,20 @@ var Status = /** @class */ (function () {
|
|
|
63
67
|
.replace('{region}', '.*')
|
|
64
68
|
.replace('{ownerId}', '.*')
|
|
65
69
|
.replace('{namespaceName}', '.*')
|
|
66
|
-
.replace('{userId}', '(.*)')
|
|
70
|
+
.replace('{userId}', '(.*)')
|
|
71
|
+
.replace('{propertyId}', '.*'));
|
|
72
|
+
if (match) {
|
|
73
|
+
return match[1];
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
};
|
|
77
|
+
Status.getPropertyId = function (grn) {
|
|
78
|
+
var match = grn.match(grnFormat
|
|
79
|
+
.replace('{region}', '.*')
|
|
80
|
+
.replace('{ownerId}', '.*')
|
|
81
|
+
.replace('{namespaceName}', '.*')
|
|
82
|
+
.replace('{userId}', '.*')
|
|
83
|
+
.replace('{propertyId}', '(.*)'));
|
|
67
84
|
if (match) {
|
|
68
85
|
return match[1];
|
|
69
86
|
}
|
|
@@ -82,14 +99,18 @@ var Status = /** @class */ (function () {
|
|
|
82
99
|
if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
|
|
83
100
|
return false;
|
|
84
101
|
}
|
|
102
|
+
if (this.getPropertyId(grn) == null || this.getPropertyId(grn) === '') {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
85
105
|
return true;
|
|
86
106
|
};
|
|
87
|
-
Status.createGrn = function (region, ownerId, namespaceName, userId) {
|
|
107
|
+
Status.createGrn = function (region, ownerId, namespaceName, userId, propertyId) {
|
|
88
108
|
return grnFormat
|
|
89
109
|
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
90
110
|
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
91
111
|
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
92
|
-
.replace('{userId}', userId !== null && userId !== void 0 ? userId : '')
|
|
112
|
+
.replace('{userId}', userId !== null && userId !== void 0 ? userId : '')
|
|
113
|
+
.replace('{propertyId}', propertyId !== null && propertyId !== void 0 ? propertyId : '');
|
|
93
114
|
};
|
|
94
115
|
Status.prototype.getStatusId = function () {
|
|
95
116
|
return this.statusId;
|
|
@@ -113,6 +134,17 @@ var Status = /** @class */ (function () {
|
|
|
113
134
|
this.userId = userId;
|
|
114
135
|
return this;
|
|
115
136
|
};
|
|
137
|
+
Status.prototype.getPropertyId = function () {
|
|
138
|
+
return this.propertyId;
|
|
139
|
+
};
|
|
140
|
+
Status.prototype.setPropertyId = function (propertyId) {
|
|
141
|
+
this.propertyId = propertyId;
|
|
142
|
+
return this;
|
|
143
|
+
};
|
|
144
|
+
Status.prototype.withPropertyId = function (propertyId) {
|
|
145
|
+
this.propertyId = propertyId;
|
|
146
|
+
return this;
|
|
147
|
+
};
|
|
116
148
|
Status.prototype.getReleasedNodeNames = function () {
|
|
117
149
|
return this.releasedNodeNames;
|
|
118
150
|
};
|
|
@@ -164,6 +196,7 @@ var Status = /** @class */ (function () {
|
|
|
164
196
|
return new Status()
|
|
165
197
|
.withStatusId(data["statusId"])
|
|
166
198
|
.withUserId(data["userId"])
|
|
199
|
+
.withPropertyId(data["propertyId"])
|
|
167
200
|
.withReleasedNodeNames(data.releasedNodeNames ?
|
|
168
201
|
data.releasedNodeNames.map(function (item) {
|
|
169
202
|
return item;
|
|
@@ -176,6 +209,7 @@ var Status = /** @class */ (function () {
|
|
|
176
209
|
return {
|
|
177
210
|
"statusId": this.getStatusId(),
|
|
178
211
|
"userId": this.getUserId(),
|
|
212
|
+
"propertyId": this.getPropertyId(),
|
|
179
213
|
"releasedNodeNames": this.getReleasedNodeNames() ?
|
|
180
214
|
this.getReleasedNodeNames().map(function (item) {
|
|
181
215
|
return item;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Status.js","sourceRoot":"","sources":["Status.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAGH,IAAM,SAAS,GAAW,
|
|
1
|
+
{"version":3,"file":"Status.js","sourceRoot":"","sources":["Status.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;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AAC;YAC3C,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,UAAC,IAA0B;gBAClD,OAAO,IAAI,CAAC;YAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC;aACN,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACxC,CAAC;IAEM,uBAAM,GAAb;QACI,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,mBAAmB,EAAE,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC;gBAC9C,IAAI,CAAC,oBAAoB,EAAG,CAAC,GAAG,CAAC,UAAC,IAAY;oBAC1C,OAAO,IAAI,CAAC;gBAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;SACjC,CAAC;IACN,CAAC;IACL,aAAC;AAAD,CAAC,AA/ND,IA+NC"}
|
|
@@ -15,11 +15,12 @@ permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
|
-
const grnFormat: string = "grn:gs2:{region}:{ownerId}:skillTree:{namespaceName}:user:{userId}:status";
|
|
18
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:skillTree:{namespaceName}:user:{userId}:status:{propertyId}";
|
|
19
19
|
|
|
20
20
|
export default class Status implements IModel {
|
|
21
21
|
private statusId: string|null = null;
|
|
22
22
|
private userId: string|null = null;
|
|
23
|
+
private propertyId: string|null = null;
|
|
23
24
|
private releasedNodeNames: string[]|null = null;
|
|
24
25
|
private createdAt: number|null = null;
|
|
25
26
|
private updatedAt: number|null = null;
|
|
@@ -31,6 +32,7 @@ export default class Status implements IModel {
|
|
|
31
32
|
.replace('{ownerId}', '.*')
|
|
32
33
|
.replace('{namespaceName}', '.*')
|
|
33
34
|
.replace('{userId}', '.*')
|
|
35
|
+
.replace('{propertyId}', '.*')
|
|
34
36
|
);
|
|
35
37
|
if (match) {
|
|
36
38
|
return match[1];
|
|
@@ -44,6 +46,7 @@ export default class Status implements IModel {
|
|
|
44
46
|
.replace('{ownerId}', '(.*)')
|
|
45
47
|
.replace('{namespaceName}', '.*')
|
|
46
48
|
.replace('{userId}', '.*')
|
|
49
|
+
.replace('{propertyId}', '.*')
|
|
47
50
|
);
|
|
48
51
|
if (match) {
|
|
49
52
|
return match[1];
|
|
@@ -57,6 +60,7 @@ export default class Status implements IModel {
|
|
|
57
60
|
.replace('{ownerId}', '.*')
|
|
58
61
|
.replace('{namespaceName}', '(.*)')
|
|
59
62
|
.replace('{userId}', '.*')
|
|
63
|
+
.replace('{propertyId}', '.*')
|
|
60
64
|
);
|
|
61
65
|
if (match) {
|
|
62
66
|
return match[1];
|
|
@@ -70,6 +74,21 @@ export default class Status implements IModel {
|
|
|
70
74
|
.replace('{ownerId}', '.*')
|
|
71
75
|
.replace('{namespaceName}', '.*')
|
|
72
76
|
.replace('{userId}', '(.*)')
|
|
77
|
+
.replace('{propertyId}', '.*')
|
|
78
|
+
);
|
|
79
|
+
if (match) {
|
|
80
|
+
return match[1];
|
|
81
|
+
}
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
public static getPropertyId(grn: string): string|null {
|
|
86
|
+
const match = grn.match(grnFormat
|
|
87
|
+
.replace('{region}', '.*')
|
|
88
|
+
.replace('{ownerId}', '.*')
|
|
89
|
+
.replace('{namespaceName}', '.*')
|
|
90
|
+
.replace('{userId}', '.*')
|
|
91
|
+
.replace('{propertyId}', '(.*)')
|
|
73
92
|
);
|
|
74
93
|
if (match) {
|
|
75
94
|
return match[1];
|
|
@@ -90,6 +109,9 @@ export default class Status implements IModel {
|
|
|
90
109
|
if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
|
|
91
110
|
return false;
|
|
92
111
|
}
|
|
112
|
+
if (this.getPropertyId(grn) == null || this.getPropertyId(grn) === '') {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
93
115
|
return true;
|
|
94
116
|
}
|
|
95
117
|
|
|
@@ -98,12 +120,14 @@ export default class Status implements IModel {
|
|
|
98
120
|
ownerId: string|null,
|
|
99
121
|
namespaceName: string|null,
|
|
100
122
|
userId: string|null,
|
|
123
|
+
propertyId: string|null,
|
|
101
124
|
): string|null {
|
|
102
125
|
return grnFormat
|
|
103
126
|
.replace('{region}', region ?? '')
|
|
104
127
|
.replace('{ownerId}', ownerId ?? '')
|
|
105
128
|
.replace('{namespaceName}', namespaceName ?? '')
|
|
106
|
-
.replace('{userId}', userId ?? '')
|
|
129
|
+
.replace('{userId}', userId ?? '')
|
|
130
|
+
.replace('{propertyId}', propertyId ?? '');
|
|
107
131
|
}
|
|
108
132
|
public getStatusId(): string|null {
|
|
109
133
|
return this.statusId;
|
|
@@ -127,6 +151,17 @@ export default class Status implements IModel {
|
|
|
127
151
|
this.userId = userId;
|
|
128
152
|
return this;
|
|
129
153
|
}
|
|
154
|
+
public getPropertyId(): string|null {
|
|
155
|
+
return this.propertyId;
|
|
156
|
+
}
|
|
157
|
+
public setPropertyId(propertyId: string|null) {
|
|
158
|
+
this.propertyId = propertyId;
|
|
159
|
+
return this;
|
|
160
|
+
}
|
|
161
|
+
public withPropertyId(propertyId: string|null): this {
|
|
162
|
+
this.propertyId = propertyId;
|
|
163
|
+
return this;
|
|
164
|
+
}
|
|
130
165
|
public getReleasedNodeNames(): string[]|null {
|
|
131
166
|
return this.releasedNodeNames;
|
|
132
167
|
}
|
|
@@ -179,6 +214,7 @@ export default class Status implements IModel {
|
|
|
179
214
|
return new Status()
|
|
180
215
|
.withStatusId(data["statusId"])
|
|
181
216
|
.withUserId(data["userId"])
|
|
217
|
+
.withPropertyId(data["propertyId"])
|
|
182
218
|
.withReleasedNodeNames(data.releasedNodeNames ?
|
|
183
219
|
data.releasedNodeNames.map((item: {[key: string]: any}) => {
|
|
184
220
|
return item;
|
|
@@ -193,6 +229,7 @@ export default class Status implements IModel {
|
|
|
193
229
|
return {
|
|
194
230
|
"statusId": this.getStatusId(),
|
|
195
231
|
"userId": this.getUserId(),
|
|
232
|
+
"propertyId": this.getPropertyId(),
|
|
196
233
|
"releasedNodeNames": this.getReleasedNodeNames() ?
|
|
197
234
|
this.getReleasedNodeNames()!.map((item: string) => {
|
|
198
235
|
return item;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
export default class DescribeStatusesByUserIdRequest implements IRequest {
|
|
3
|
+
private requestId;
|
|
4
|
+
private contextStack;
|
|
5
|
+
private namespaceName;
|
|
6
|
+
private userId;
|
|
7
|
+
private pageToken;
|
|
8
|
+
private limit;
|
|
9
|
+
getRequestId(): string | null;
|
|
10
|
+
setRequestId(requestId: string | null): this;
|
|
11
|
+
withRequestId(requestId: string | null): this;
|
|
12
|
+
getContextStack(): string | null;
|
|
13
|
+
setContextStack(contextStack: string | null): this;
|
|
14
|
+
withContextStack(contextStack: string | null): this;
|
|
15
|
+
getNamespaceName(): string | null;
|
|
16
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
17
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
18
|
+
getUserId(): string | null;
|
|
19
|
+
setUserId(userId: string | null): this;
|
|
20
|
+
withUserId(userId: string | null): this;
|
|
21
|
+
getPageToken(): string | null;
|
|
22
|
+
setPageToken(pageToken: string | null): this;
|
|
23
|
+
withPageToken(pageToken: string | null): this;
|
|
24
|
+
getLimit(): number | null;
|
|
25
|
+
setLimit(limit: number | null): this;
|
|
26
|
+
withLimit(limit: number | null): this;
|
|
27
|
+
static fromDict(data: {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}): DescribeStatusesByUserIdRequest;
|
|
30
|
+
toDict(): {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
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 DescribeStatusesByUserIdRequest = /** @class */ (function () {
|
|
19
|
+
function DescribeStatusesByUserIdRequest() {
|
|
20
|
+
this.requestId = null;
|
|
21
|
+
this.contextStack = null;
|
|
22
|
+
this.namespaceName = null;
|
|
23
|
+
this.userId = null;
|
|
24
|
+
this.pageToken = null;
|
|
25
|
+
this.limit = null;
|
|
26
|
+
}
|
|
27
|
+
DescribeStatusesByUserIdRequest.prototype.getRequestId = function () {
|
|
28
|
+
return this.requestId;
|
|
29
|
+
};
|
|
30
|
+
DescribeStatusesByUserIdRequest.prototype.setRequestId = function (requestId) {
|
|
31
|
+
this.requestId = requestId;
|
|
32
|
+
return this;
|
|
33
|
+
};
|
|
34
|
+
DescribeStatusesByUserIdRequest.prototype.withRequestId = function (requestId) {
|
|
35
|
+
this.requestId = requestId;
|
|
36
|
+
return this;
|
|
37
|
+
};
|
|
38
|
+
DescribeStatusesByUserIdRequest.prototype.getContextStack = function () {
|
|
39
|
+
return this.contextStack;
|
|
40
|
+
};
|
|
41
|
+
DescribeStatusesByUserIdRequest.prototype.setContextStack = function (contextStack) {
|
|
42
|
+
this.contextStack = contextStack;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
DescribeStatusesByUserIdRequest.prototype.withContextStack = function (contextStack) {
|
|
46
|
+
this.contextStack = contextStack;
|
|
47
|
+
return this;
|
|
48
|
+
};
|
|
49
|
+
DescribeStatusesByUserIdRequest.prototype.getNamespaceName = function () {
|
|
50
|
+
return this.namespaceName;
|
|
51
|
+
};
|
|
52
|
+
DescribeStatusesByUserIdRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
53
|
+
this.namespaceName = namespaceName;
|
|
54
|
+
return this;
|
|
55
|
+
};
|
|
56
|
+
DescribeStatusesByUserIdRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
57
|
+
this.namespaceName = namespaceName;
|
|
58
|
+
return this;
|
|
59
|
+
};
|
|
60
|
+
DescribeStatusesByUserIdRequest.prototype.getUserId = function () {
|
|
61
|
+
return this.userId;
|
|
62
|
+
};
|
|
63
|
+
DescribeStatusesByUserIdRequest.prototype.setUserId = function (userId) {
|
|
64
|
+
this.userId = userId;
|
|
65
|
+
return this;
|
|
66
|
+
};
|
|
67
|
+
DescribeStatusesByUserIdRequest.prototype.withUserId = function (userId) {
|
|
68
|
+
this.userId = userId;
|
|
69
|
+
return this;
|
|
70
|
+
};
|
|
71
|
+
DescribeStatusesByUserIdRequest.prototype.getPageToken = function () {
|
|
72
|
+
return this.pageToken;
|
|
73
|
+
};
|
|
74
|
+
DescribeStatusesByUserIdRequest.prototype.setPageToken = function (pageToken) {
|
|
75
|
+
this.pageToken = pageToken;
|
|
76
|
+
return this;
|
|
77
|
+
};
|
|
78
|
+
DescribeStatusesByUserIdRequest.prototype.withPageToken = function (pageToken) {
|
|
79
|
+
this.pageToken = pageToken;
|
|
80
|
+
return this;
|
|
81
|
+
};
|
|
82
|
+
DescribeStatusesByUserIdRequest.prototype.getLimit = function () {
|
|
83
|
+
return this.limit;
|
|
84
|
+
};
|
|
85
|
+
DescribeStatusesByUserIdRequest.prototype.setLimit = function (limit) {
|
|
86
|
+
this.limit = limit;
|
|
87
|
+
return this;
|
|
88
|
+
};
|
|
89
|
+
DescribeStatusesByUserIdRequest.prototype.withLimit = function (limit) {
|
|
90
|
+
this.limit = limit;
|
|
91
|
+
return this;
|
|
92
|
+
};
|
|
93
|
+
DescribeStatusesByUserIdRequest.fromDict = function (data) {
|
|
94
|
+
return new DescribeStatusesByUserIdRequest()
|
|
95
|
+
.withNamespaceName(data["namespaceName"])
|
|
96
|
+
.withUserId(data["userId"])
|
|
97
|
+
.withPageToken(data["pageToken"])
|
|
98
|
+
.withLimit(data["limit"]);
|
|
99
|
+
};
|
|
100
|
+
DescribeStatusesByUserIdRequest.prototype.toDict = function () {
|
|
101
|
+
return {
|
|
102
|
+
"namespaceName": this.getNamespaceName(),
|
|
103
|
+
"userId": this.getUserId(),
|
|
104
|
+
"pageToken": this.getPageToken(),
|
|
105
|
+
"limit": this.getLimit(),
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
return DescribeStatusesByUserIdRequest;
|
|
109
|
+
}());
|
|
110
|
+
exports.default = DescribeStatusesByUserIdRequest;
|
|
111
|
+
//# sourceMappingURL=DescribeStatusesByUserIdRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescribeStatusesByUserIdRequest.js","sourceRoot":"","sources":["DescribeStatusesByUserIdRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,WAAM,GAAgB,IAAI,CAAC;QAC3B,cAAS,GAAgB,IAAI,CAAC;QAC9B,UAAK,GAAgB,IAAI,CAAC;IA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
+
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 Gs2SkillTree from '../model'
|
|
20
|
+
|
|
21
|
+
export default class DescribeStatusesByUserIdRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private userId: string|null = null;
|
|
27
|
+
private pageToken: string|null = null;
|
|
28
|
+
private limit: number|null = null;
|
|
29
|
+
|
|
30
|
+
public getRequestId(): string|null {
|
|
31
|
+
return this.requestId;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public setRequestId(requestId: string|null) {
|
|
35
|
+
this.requestId = requestId;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public withRequestId(requestId: string|null): this {
|
|
40
|
+
this.requestId = requestId;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public getContextStack(): string|null {
|
|
45
|
+
return this.contextStack;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public setContextStack(contextStack: string|null) {
|
|
49
|
+
this.contextStack = contextStack;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public withContextStack(contextStack: string|null): this {
|
|
54
|
+
this.contextStack = contextStack;
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
public getNamespaceName(): string|null {
|
|
58
|
+
return this.namespaceName;
|
|
59
|
+
}
|
|
60
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
61
|
+
this.namespaceName = namespaceName;
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
65
|
+
this.namespaceName = namespaceName;
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
public getUserId(): string|null {
|
|
69
|
+
return this.userId;
|
|
70
|
+
}
|
|
71
|
+
public setUserId(userId: string|null) {
|
|
72
|
+
this.userId = userId;
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
public withUserId(userId: string|null): this {
|
|
76
|
+
this.userId = userId;
|
|
77
|
+
return this;
|
|
78
|
+
}
|
|
79
|
+
public getPageToken(): string|null {
|
|
80
|
+
return this.pageToken;
|
|
81
|
+
}
|
|
82
|
+
public setPageToken(pageToken: string|null) {
|
|
83
|
+
this.pageToken = pageToken;
|
|
84
|
+
return this;
|
|
85
|
+
}
|
|
86
|
+
public withPageToken(pageToken: string|null): this {
|
|
87
|
+
this.pageToken = pageToken;
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
public getLimit(): number|null {
|
|
91
|
+
return this.limit;
|
|
92
|
+
}
|
|
93
|
+
public setLimit(limit: number|null) {
|
|
94
|
+
this.limit = limit;
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
public withLimit(limit: number|null): this {
|
|
98
|
+
this.limit = limit;
|
|
99
|
+
return this;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
public static fromDict(data: {[key: string]: any}): DescribeStatusesByUserIdRequest {
|
|
103
|
+
return new DescribeStatusesByUserIdRequest()
|
|
104
|
+
.withNamespaceName(data["namespaceName"])
|
|
105
|
+
.withUserId(data["userId"])
|
|
106
|
+
.withPageToken(data["pageToken"])
|
|
107
|
+
.withLimit(data["limit"]);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
public toDict(): {[key: string]: any} {
|
|
111
|
+
return {
|
|
112
|
+
"namespaceName": this.getNamespaceName(),
|
|
113
|
+
"userId": this.getUserId(),
|
|
114
|
+
"pageToken": this.getPageToken(),
|
|
115
|
+
"limit": this.getLimit(),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
export default class DescribeStatusesRequest implements IRequest {
|
|
3
|
+
private requestId;
|
|
4
|
+
private contextStack;
|
|
5
|
+
private namespaceName;
|
|
6
|
+
private accessToken;
|
|
7
|
+
private pageToken;
|
|
8
|
+
private limit;
|
|
9
|
+
getRequestId(): string | null;
|
|
10
|
+
setRequestId(requestId: string | null): this;
|
|
11
|
+
withRequestId(requestId: string | null): this;
|
|
12
|
+
getContextStack(): string | null;
|
|
13
|
+
setContextStack(contextStack: string | null): this;
|
|
14
|
+
withContextStack(contextStack: string | null): this;
|
|
15
|
+
getNamespaceName(): string | null;
|
|
16
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
17
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
18
|
+
getAccessToken(): string | null;
|
|
19
|
+
setAccessToken(accessToken: string | null): this;
|
|
20
|
+
withAccessToken(accessToken: string | null): this;
|
|
21
|
+
getPageToken(): string | null;
|
|
22
|
+
setPageToken(pageToken: string | null): this;
|
|
23
|
+
withPageToken(pageToken: string | null): this;
|
|
24
|
+
getLimit(): number | null;
|
|
25
|
+
setLimit(limit: number | null): this;
|
|
26
|
+
withLimit(limit: number | null): this;
|
|
27
|
+
static fromDict(data: {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}): DescribeStatusesRequest;
|
|
30
|
+
toDict(): {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
}
|