gs2 1.3.119 → 1.3.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/news/model/Content.d.ts +21 -0
  2. package/news/model/Content.js +76 -0
  3. package/news/model/Content.js.map +1 -0
  4. package/news/model/Content.ts +74 -0
  5. package/news/model/Output.d.ts +32 -0
  6. package/news/model/Output.js +177 -0
  7. package/news/model/Output.js.map +1 -0
  8. package/news/model/Output.ts +193 -0
  9. package/news/model/Progress.d.ts +39 -0
  10. package/news/model/Progress.js +185 -0
  11. package/news/model/Progress.js.map +1 -0
  12. package/news/model/Progress.ts +198 -0
  13. package/news/model/View.d.ts +18 -0
  14. package/news/model/View.js +76 -0
  15. package/news/model/View.js.map +1 -0
  16. package/news/model/View.ts +77 -0
  17. package/news/model/index.d.ts +5 -1
  18. package/news/model/index.js +9 -1
  19. package/news/model/index.js.map +1 -1
  20. package/news/model/index.ts +8 -0
  21. package/news/request/DescribeOutputsRequest.d.ts +33 -0
  22. package/news/request/DescribeOutputsRequest.js +111 -0
  23. package/news/request/DescribeOutputsRequest.js.map +1 -0
  24. package/news/request/DescribeOutputsRequest.ts +118 -0
  25. package/news/request/DescribeProgressesRequest.d.ts +29 -0
  26. package/news/request/DescribeProgressesRequest.js +97 -0
  27. package/news/request/DescribeProgressesRequest.js.map +1 -0
  28. package/news/request/DescribeProgressesRequest.ts +104 -0
  29. package/news/request/GetOutputRequest.d.ts +29 -0
  30. package/news/request/GetOutputRequest.js +97 -0
  31. package/news/request/GetOutputRequest.js.map +1 -0
  32. package/news/request/GetOutputRequest.ts +104 -0
  33. package/news/request/GetProgressRequest.d.ts +25 -0
  34. package/news/request/GetProgressRequest.js +83 -0
  35. package/news/request/GetProgressRequest.js.map +1 -0
  36. package/news/request/GetProgressRequest.ts +90 -0
  37. package/news/request/index.d.ts +5 -1
  38. package/news/request/index.js +9 -1
  39. package/news/request/index.js.map +1 -1
  40. package/news/request/index.ts +8 -0
  41. package/news/rest.d.ts +4 -0
  42. package/news/rest.js +96 -0
  43. package/news/rest.js.map +1 -1
  44. package/news/rest.ts +112 -0
  45. package/news/result/DescribeOutputsResult.d.ts +18 -0
  46. package/news/result/DescribeOutputsResult.js +67 -0
  47. package/news/result/DescribeOutputsResult.js.map +1 -0
  48. package/news/result/DescribeOutputsResult.ts +73 -0
  49. package/news/result/DescribeProgressesResult.d.ts +18 -0
  50. package/news/result/DescribeProgressesResult.js +67 -0
  51. package/news/result/DescribeProgressesResult.js.map +1 -0
  52. package/news/result/DescribeProgressesResult.ts +73 -0
  53. package/news/result/GetOutputResult.d.ts +14 -0
  54. package/news/result/GetOutputResult.js +48 -0
  55. package/news/result/GetOutputResult.js.map +1 -0
  56. package/news/result/GetOutputResult.ts +48 -0
  57. package/news/result/GetProgressResult.d.ts +14 -0
  58. package/news/result/GetProgressResult.js +48 -0
  59. package/news/result/GetProgressResult.js.map +1 -0
  60. package/news/result/GetProgressResult.ts +48 -0
  61. package/news/result/index.d.ts +5 -1
  62. package/news/result/index.js +9 -1
  63. package/news/result/index.js.map +1 -1
  64. package/news/result/index.ts +8 -0
  65. package/package.json +1 -1
package/news/rest.ts CHANGED
@@ -196,6 +196,118 @@ export default class Gs2NewsRestClient extends AbstractGs2RestClient {
196
196
  });
197
197
  }
198
198
 
199
+ public describeProgresses(request: Request.DescribeProgressesRequest): Promise<Result.DescribeProgressesResult> {
200
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/progress')
201
+ .replace('{service}', 'news')
202
+ .replace('{region}', this.session.region)
203
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
204
+
205
+ const headers = this.createAuthorizedHeaders();
206
+ if (request.getRequestId()) {
207
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
208
+ }
209
+ const params: {[key: string]: any} = {
210
+ 'contextStack': request.getContextStack() ?? null,
211
+ 'pageToken': String(request.getPageToken() ?? null),
212
+ 'limit': String(request.getLimit() ?? null),
213
+ };
214
+ return axios.get(
215
+ url,
216
+ {
217
+ params,
218
+ headers,
219
+ },
220
+ ).then((response: any) => {
221
+ return Result.DescribeProgressesResult.fromDict(response.data);
222
+ }).catch((error: any) => {
223
+ throw JSON.parse(error.response.data.message);
224
+ });
225
+ }
226
+
227
+ public getProgress(request: Request.GetProgressRequest): Promise<Result.GetProgressResult> {
228
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/progress/{uploadToken}')
229
+ .replace('{service}', 'news')
230
+ .replace('{region}', this.session.region)
231
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
232
+ .replace('{uploadToken}', String(request.getUploadToken() ?? 'null') === "" ? "null" : String(request.getUploadToken() ?? 'null'));
233
+
234
+ const headers = this.createAuthorizedHeaders();
235
+ if (request.getRequestId()) {
236
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
237
+ }
238
+ const params: {[key: string]: any} = {
239
+ 'contextStack': request.getContextStack() ?? null,
240
+ };
241
+ return axios.get(
242
+ url,
243
+ {
244
+ params,
245
+ headers,
246
+ },
247
+ ).then((response: any) => {
248
+ return Result.GetProgressResult.fromDict(response.data);
249
+ }).catch((error: any) => {
250
+ throw JSON.parse(error.response.data.message);
251
+ });
252
+ }
253
+
254
+ public describeOutputs(request: Request.DescribeOutputsRequest): Promise<Result.DescribeOutputsResult> {
255
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/progress/{uploadToken}/output')
256
+ .replace('{service}', 'news')
257
+ .replace('{region}', this.session.region)
258
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
259
+ .replace('{uploadToken}', String(request.getUploadToken() ?? 'null') === "" ? "null" : String(request.getUploadToken() ?? 'null'));
260
+
261
+ const headers = this.createAuthorizedHeaders();
262
+ if (request.getRequestId()) {
263
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
264
+ }
265
+ const params: {[key: string]: any} = {
266
+ 'contextStack': request.getContextStack() ?? null,
267
+ 'pageToken': String(request.getPageToken() ?? null),
268
+ 'limit': String(request.getLimit() ?? null),
269
+ };
270
+ return axios.get(
271
+ url,
272
+ {
273
+ params,
274
+ headers,
275
+ },
276
+ ).then((response: any) => {
277
+ return Result.DescribeOutputsResult.fromDict(response.data);
278
+ }).catch((error: any) => {
279
+ throw JSON.parse(error.response.data.message);
280
+ });
281
+ }
282
+
283
+ public getOutput(request: Request.GetOutputRequest): Promise<Result.GetOutputResult> {
284
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/progress/{uploadToken}/output/{outputName}')
285
+ .replace('{service}', 'news')
286
+ .replace('{region}', this.session.region)
287
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
288
+ .replace('{uploadToken}', String(request.getUploadToken() ?? 'null') === "" ? "null" : String(request.getUploadToken() ?? 'null'))
289
+ .replace('{outputName}', String(request.getOutputName() ?? 'null') === "" ? "null" : String(request.getOutputName() ?? 'null'));
290
+
291
+ const headers = this.createAuthorizedHeaders();
292
+ if (request.getRequestId()) {
293
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
294
+ }
295
+ const params: {[key: string]: any} = {
296
+ 'contextStack': request.getContextStack() ?? null,
297
+ };
298
+ return axios.get(
299
+ url,
300
+ {
301
+ params,
302
+ headers,
303
+ },
304
+ ).then((response: any) => {
305
+ return Result.GetOutputResult.fromDict(response.data);
306
+ }).catch((error: any) => {
307
+ throw JSON.parse(error.response.data.message);
308
+ });
309
+ }
310
+
199
311
  public prepareUpdateCurrentNewsMaster(request: Request.PrepareUpdateCurrentNewsMasterRequest): Promise<Result.PrepareUpdateCurrentNewsMasterResult> {
200
312
  const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/prepare')
201
313
  .replace('{service}', 'news')
@@ -0,0 +1,18 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2News from '../model';
3
+ export default class DescribeOutputsResult implements IResult {
4
+ private items;
5
+ private nextPageToken;
6
+ getItems(): Gs2News.Output[] | null;
7
+ setItems(items: Gs2News.Output[] | null): this;
8
+ withItems(items: Gs2News.Output[] | null): this;
9
+ getNextPageToken(): string | null;
10
+ setNextPageToken(nextPageToken: string | null): this;
11
+ withNextPageToken(nextPageToken: string | null): this;
12
+ static fromDict(data: {
13
+ [key: string]: any;
14
+ }): DescribeOutputsResult;
15
+ toDict(): {
16
+ [key: string]: any;
17
+ };
18
+ }
@@ -0,0 +1,67 @@
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 tslib_1 = require("tslib");
19
+ var Gs2News = tslib_1.__importStar(require("../model"));
20
+ var DescribeOutputsResult = /** @class */ (function () {
21
+ function DescribeOutputsResult() {
22
+ this.items = null;
23
+ this.nextPageToken = null;
24
+ }
25
+ DescribeOutputsResult.prototype.getItems = function () {
26
+ return this.items;
27
+ };
28
+ DescribeOutputsResult.prototype.setItems = function (items) {
29
+ this.items = items;
30
+ return this;
31
+ };
32
+ DescribeOutputsResult.prototype.withItems = function (items) {
33
+ this.items = items;
34
+ return this;
35
+ };
36
+ DescribeOutputsResult.prototype.getNextPageToken = function () {
37
+ return this.nextPageToken;
38
+ };
39
+ DescribeOutputsResult.prototype.setNextPageToken = function (nextPageToken) {
40
+ this.nextPageToken = nextPageToken;
41
+ return this;
42
+ };
43
+ DescribeOutputsResult.prototype.withNextPageToken = function (nextPageToken) {
44
+ this.nextPageToken = nextPageToken;
45
+ return this;
46
+ };
47
+ DescribeOutputsResult.fromDict = function (data) {
48
+ return new DescribeOutputsResult()
49
+ .withItems(data.items ?
50
+ data.items.map(function (item) {
51
+ return Gs2News.Output.fromDict(item);
52
+ }) : [])
53
+ .withNextPageToken(data["nextPageToken"]);
54
+ };
55
+ DescribeOutputsResult.prototype.toDict = function () {
56
+ return {
57
+ "items": this.getItems() ?
58
+ this.getItems().map(function (item) {
59
+ return item.toDict();
60
+ }) : [],
61
+ "nextPageToken": this.getNextPageToken(),
62
+ };
63
+ };
64
+ return DescribeOutputsResult;
65
+ }());
66
+ exports.default = DescribeOutputsResult;
67
+ //# sourceMappingURL=DescribeOutputsResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescribeOutputsResult.js","sourceRoot":"","sources":["DescribeOutputsResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,wDAAmC;AAEnC;IAAA;QACY,UAAK,GAA0B,IAAI,CAAC;QACpC,kBAAa,GAAgB,IAAI,CAAC;IAkD9C,CAAC;IAhDU,wCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,wCAAQ,GAAf,UAAgB,KAA4B;QACxC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yCAAS,GAAhB,UAAiB,KAA4B;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,gDAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEM,gDAAgB,GAAvB,UAAwB,aAA0B;QAC9C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,iDAAiB,GAAxB,UAAyB,aAA0B;QAC/C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,8BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,qBAAqB,EAAE;aAC7B,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACzC,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC;aACN,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;IAClD,CAAC;IAEM,sCAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAAoB;oBACtC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;SAC3C,CAAC;IACN,CAAC;IACL,4BAAC;AAAD,CAAC,AApDD,IAoDC"}
@@ -0,0 +1,73 @@
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 IResult from '../../core/interface/IResult';
18
+
19
+ import * as Gs2News from '../model'
20
+
21
+ export default class DescribeOutputsResult implements IResult {
22
+ private items: Gs2News.Output[]|null = null;
23
+ private nextPageToken: string|null = null;
24
+
25
+ public getItems(): Gs2News.Output[]|null {
26
+ return this.items;
27
+ }
28
+
29
+ public setItems(items: Gs2News.Output[]|null) {
30
+ this.items = items;
31
+ return this;
32
+ }
33
+
34
+ public withItems(items: Gs2News.Output[]|null): this {
35
+ this.items = items;
36
+ return this;
37
+ }
38
+
39
+ public getNextPageToken(): string|null {
40
+ return this.nextPageToken;
41
+ }
42
+
43
+ public setNextPageToken(nextPageToken: string|null) {
44
+ this.nextPageToken = nextPageToken;
45
+ return this;
46
+ }
47
+
48
+ public withNextPageToken(nextPageToken: string|null): this {
49
+ this.nextPageToken = nextPageToken;
50
+ return this;
51
+ }
52
+
53
+ public static fromDict(data: {[key: string]: any}): DescribeOutputsResult {
54
+ return new DescribeOutputsResult()
55
+ .withItems(data.items ?
56
+ data.items.map((item: {[key: string]: any}) => {
57
+ return Gs2News.Output.fromDict(item);
58
+ }
59
+ ) : [])
60
+ .withNextPageToken(data["nextPageToken"]);
61
+ }
62
+
63
+ public toDict(): {[key: string]: any} {
64
+ return {
65
+ "items": this.getItems() ?
66
+ this.getItems()!.map((item: Gs2News.Output) => {
67
+ return item.toDict();
68
+ }
69
+ ) : [],
70
+ "nextPageToken": this.getNextPageToken(),
71
+ };
72
+ }
73
+ }
@@ -0,0 +1,18 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2News from '../model';
3
+ export default class DescribeProgressesResult implements IResult {
4
+ private items;
5
+ private nextPageToken;
6
+ getItems(): Gs2News.Progress[] | null;
7
+ setItems(items: Gs2News.Progress[] | null): this;
8
+ withItems(items: Gs2News.Progress[] | null): this;
9
+ getNextPageToken(): string | null;
10
+ setNextPageToken(nextPageToken: string | null): this;
11
+ withNextPageToken(nextPageToken: string | null): this;
12
+ static fromDict(data: {
13
+ [key: string]: any;
14
+ }): DescribeProgressesResult;
15
+ toDict(): {
16
+ [key: string]: any;
17
+ };
18
+ }
@@ -0,0 +1,67 @@
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 tslib_1 = require("tslib");
19
+ var Gs2News = tslib_1.__importStar(require("../model"));
20
+ var DescribeProgressesResult = /** @class */ (function () {
21
+ function DescribeProgressesResult() {
22
+ this.items = null;
23
+ this.nextPageToken = null;
24
+ }
25
+ DescribeProgressesResult.prototype.getItems = function () {
26
+ return this.items;
27
+ };
28
+ DescribeProgressesResult.prototype.setItems = function (items) {
29
+ this.items = items;
30
+ return this;
31
+ };
32
+ DescribeProgressesResult.prototype.withItems = function (items) {
33
+ this.items = items;
34
+ return this;
35
+ };
36
+ DescribeProgressesResult.prototype.getNextPageToken = function () {
37
+ return this.nextPageToken;
38
+ };
39
+ DescribeProgressesResult.prototype.setNextPageToken = function (nextPageToken) {
40
+ this.nextPageToken = nextPageToken;
41
+ return this;
42
+ };
43
+ DescribeProgressesResult.prototype.withNextPageToken = function (nextPageToken) {
44
+ this.nextPageToken = nextPageToken;
45
+ return this;
46
+ };
47
+ DescribeProgressesResult.fromDict = function (data) {
48
+ return new DescribeProgressesResult()
49
+ .withItems(data.items ?
50
+ data.items.map(function (item) {
51
+ return Gs2News.Progress.fromDict(item);
52
+ }) : [])
53
+ .withNextPageToken(data["nextPageToken"]);
54
+ };
55
+ DescribeProgressesResult.prototype.toDict = function () {
56
+ return {
57
+ "items": this.getItems() ?
58
+ this.getItems().map(function (item) {
59
+ return item.toDict();
60
+ }) : [],
61
+ "nextPageToken": this.getNextPageToken(),
62
+ };
63
+ };
64
+ return DescribeProgressesResult;
65
+ }());
66
+ exports.default = DescribeProgressesResult;
67
+ //# sourceMappingURL=DescribeProgressesResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescribeProgressesResult.js","sourceRoot":"","sources":["DescribeProgressesResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,wDAAmC;AAEnC;IAAA;QACY,UAAK,GAA4B,IAAI,CAAC;QACtC,kBAAa,GAAgB,IAAI,CAAC;IAkD9C,CAAC;IAhDU,2CAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,2CAAQ,GAAf,UAAgB,KAA8B;QAC1C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,4CAAS,GAAhB,UAAiB,KAA8B;QAC3C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,mDAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEM,mDAAgB,GAAvB,UAAwB,aAA0B;QAC9C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oDAAiB,GAAxB,UAAyB,aAA0B;QAC/C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,iCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,wBAAwB,EAAE;aAChC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC3C,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC;aACN,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;IAClD,CAAC;IAEM,yCAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAAsB;oBACxC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;SAC3C,CAAC;IACN,CAAC;IACL,+BAAC;AAAD,CAAC,AApDD,IAoDC"}
@@ -0,0 +1,73 @@
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 IResult from '../../core/interface/IResult';
18
+
19
+ import * as Gs2News from '../model'
20
+
21
+ export default class DescribeProgressesResult implements IResult {
22
+ private items: Gs2News.Progress[]|null = null;
23
+ private nextPageToken: string|null = null;
24
+
25
+ public getItems(): Gs2News.Progress[]|null {
26
+ return this.items;
27
+ }
28
+
29
+ public setItems(items: Gs2News.Progress[]|null) {
30
+ this.items = items;
31
+ return this;
32
+ }
33
+
34
+ public withItems(items: Gs2News.Progress[]|null): this {
35
+ this.items = items;
36
+ return this;
37
+ }
38
+
39
+ public getNextPageToken(): string|null {
40
+ return this.nextPageToken;
41
+ }
42
+
43
+ public setNextPageToken(nextPageToken: string|null) {
44
+ this.nextPageToken = nextPageToken;
45
+ return this;
46
+ }
47
+
48
+ public withNextPageToken(nextPageToken: string|null): this {
49
+ this.nextPageToken = nextPageToken;
50
+ return this;
51
+ }
52
+
53
+ public static fromDict(data: {[key: string]: any}): DescribeProgressesResult {
54
+ return new DescribeProgressesResult()
55
+ .withItems(data.items ?
56
+ data.items.map((item: {[key: string]: any}) => {
57
+ return Gs2News.Progress.fromDict(item);
58
+ }
59
+ ) : [])
60
+ .withNextPageToken(data["nextPageToken"]);
61
+ }
62
+
63
+ public toDict(): {[key: string]: any} {
64
+ return {
65
+ "items": this.getItems() ?
66
+ this.getItems()!.map((item: Gs2News.Progress) => {
67
+ return item.toDict();
68
+ }
69
+ ) : [],
70
+ "nextPageToken": this.getNextPageToken(),
71
+ };
72
+ }
73
+ }
@@ -0,0 +1,14 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2News from '../model';
3
+ export default class GetOutputResult implements IResult {
4
+ private item;
5
+ getItem(): Gs2News.Output | null;
6
+ setItem(item: Gs2News.Output | null): this;
7
+ withItem(item: Gs2News.Output | null): this;
8
+ static fromDict(data: {
9
+ [key: string]: any;
10
+ }): GetOutputResult;
11
+ toDict(): {
12
+ [key: string]: any;
13
+ };
14
+ }
@@ -0,0 +1,48 @@
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 tslib_1 = require("tslib");
19
+ var Gs2News = tslib_1.__importStar(require("../model"));
20
+ var GetOutputResult = /** @class */ (function () {
21
+ function GetOutputResult() {
22
+ this.item = null;
23
+ }
24
+ GetOutputResult.prototype.getItem = function () {
25
+ return this.item;
26
+ };
27
+ GetOutputResult.prototype.setItem = function (item) {
28
+ this.item = item;
29
+ return this;
30
+ };
31
+ GetOutputResult.prototype.withItem = function (item) {
32
+ this.item = item;
33
+ return this;
34
+ };
35
+ GetOutputResult.fromDict = function (data) {
36
+ return new GetOutputResult()
37
+ .withItem(Gs2News.Output.fromDict(data["item"]));
38
+ };
39
+ GetOutputResult.prototype.toDict = function () {
40
+ var _a;
41
+ return {
42
+ "item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
43
+ };
44
+ };
45
+ return GetOutputResult;
46
+ }());
47
+ exports.default = GetOutputResult;
48
+ //# sourceMappingURL=GetOutputResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetOutputResult.js","sourceRoot":"","sources":["GetOutputResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,wDAAmC;AAEnC;IAAA;QACY,SAAI,GAAwB,IAAI,CAAC;IA0B7C,CAAC;IAxBU,iCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,iCAAO,GAAd,UAAe,IAAyB;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,kCAAQ,GAAf,UAAgB,IAAyB;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,wBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,eAAe,EAAE;aACvB,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACzD,CAAC;IAEM,gCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,sBAAC;AAAD,CAAC,AA3BD,IA2BC"}
@@ -0,0 +1,48 @@
1
+ /*
2
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ Reserved.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may not use this file except in compliance with the License.
7
+ A copy of the License is located at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ or in the "license" file accompanying this file. This file is distributed
12
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ express or implied. See the License for the specific language governing
14
+ permissions and limitations under the License.
15
+ */
16
+
17
+ import IResult from '../../core/interface/IResult';
18
+
19
+ import * as Gs2News from '../model'
20
+
21
+ export default class GetOutputResult implements IResult {
22
+ private item: Gs2News.Output|null = null;
23
+
24
+ public getItem(): Gs2News.Output|null {
25
+ return this.item;
26
+ }
27
+
28
+ public setItem(item: Gs2News.Output|null) {
29
+ this.item = item;
30
+ return this;
31
+ }
32
+
33
+ public withItem(item: Gs2News.Output|null): this {
34
+ this.item = item;
35
+ return this;
36
+ }
37
+
38
+ public static fromDict(data: {[key: string]: any}): GetOutputResult {
39
+ return new GetOutputResult()
40
+ .withItem(Gs2News.Output.fromDict(data["item"]));
41
+ }
42
+
43
+ public toDict(): {[key: string]: any} {
44
+ return {
45
+ "item": this.getItem()?.toDict(),
46
+ };
47
+ }
48
+ }
@@ -0,0 +1,14 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2News from '../model';
3
+ export default class GetProgressResult implements IResult {
4
+ private item;
5
+ getItem(): Gs2News.Progress | null;
6
+ setItem(item: Gs2News.Progress | null): this;
7
+ withItem(item: Gs2News.Progress | null): this;
8
+ static fromDict(data: {
9
+ [key: string]: any;
10
+ }): GetProgressResult;
11
+ toDict(): {
12
+ [key: string]: any;
13
+ };
14
+ }
@@ -0,0 +1,48 @@
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 tslib_1 = require("tslib");
19
+ var Gs2News = tslib_1.__importStar(require("../model"));
20
+ var GetProgressResult = /** @class */ (function () {
21
+ function GetProgressResult() {
22
+ this.item = null;
23
+ }
24
+ GetProgressResult.prototype.getItem = function () {
25
+ return this.item;
26
+ };
27
+ GetProgressResult.prototype.setItem = function (item) {
28
+ this.item = item;
29
+ return this;
30
+ };
31
+ GetProgressResult.prototype.withItem = function (item) {
32
+ this.item = item;
33
+ return this;
34
+ };
35
+ GetProgressResult.fromDict = function (data) {
36
+ return new GetProgressResult()
37
+ .withItem(Gs2News.Progress.fromDict(data["item"]));
38
+ };
39
+ GetProgressResult.prototype.toDict = function () {
40
+ var _a;
41
+ return {
42
+ "item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
43
+ };
44
+ };
45
+ return GetProgressResult;
46
+ }());
47
+ exports.default = GetProgressResult;
48
+ //# sourceMappingURL=GetProgressResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetProgressResult.js","sourceRoot":"","sources":["GetProgressResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,wDAAmC;AAEnC;IAAA;QACY,SAAI,GAA0B,IAAI,CAAC;IA0B/C,CAAC;IAxBU,mCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,mCAAO,GAAd,UAAe,IAA2B;QACtC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oCAAQ,GAAf,UAAgB,IAA2B;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,0BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,iBAAiB,EAAE;aACzB,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IAEM,kCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,wBAAC;AAAD,CAAC,AA3BD,IA2BC"}