gs2 1.3.119 → 1.3.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/news/model/Content.d.ts +21 -0
- package/news/model/Content.js +76 -0
- package/news/model/Content.js.map +1 -0
- package/news/model/Content.ts +74 -0
- package/news/model/Output.d.ts +32 -0
- package/news/model/Output.js +177 -0
- package/news/model/Output.js.map +1 -0
- package/news/model/Output.ts +193 -0
- package/news/model/Progress.d.ts +39 -0
- package/news/model/Progress.js +185 -0
- package/news/model/Progress.js.map +1 -0
- package/news/model/Progress.ts +198 -0
- package/news/model/View.d.ts +18 -0
- package/news/model/View.js +76 -0
- package/news/model/View.js.map +1 -0
- package/news/model/View.ts +77 -0
- package/news/model/index.d.ts +5 -1
- package/news/model/index.js +9 -1
- package/news/model/index.js.map +1 -1
- package/news/model/index.ts +8 -0
- package/news/request/DescribeOutputsRequest.d.ts +33 -0
- package/news/request/DescribeOutputsRequest.js +111 -0
- package/news/request/DescribeOutputsRequest.js.map +1 -0
- package/news/request/DescribeOutputsRequest.ts +118 -0
- package/news/request/DescribeProgressesRequest.d.ts +29 -0
- package/news/request/DescribeProgressesRequest.js +97 -0
- package/news/request/DescribeProgressesRequest.js.map +1 -0
- package/news/request/DescribeProgressesRequest.ts +104 -0
- package/news/request/GetOutputRequest.d.ts +29 -0
- package/news/request/GetOutputRequest.js +97 -0
- package/news/request/GetOutputRequest.js.map +1 -0
- package/news/request/GetOutputRequest.ts +104 -0
- package/news/request/GetProgressRequest.d.ts +25 -0
- package/news/request/GetProgressRequest.js +83 -0
- package/news/request/GetProgressRequest.js.map +1 -0
- package/news/request/GetProgressRequest.ts +90 -0
- package/news/request/index.d.ts +5 -1
- package/news/request/index.js +9 -1
- package/news/request/index.js.map +1 -1
- package/news/request/index.ts +8 -0
- package/news/rest.d.ts +4 -0
- package/news/rest.js +96 -0
- package/news/rest.js.map +1 -1
- package/news/rest.ts +112 -0
- package/news/result/DescribeOutputsResult.d.ts +18 -0
- package/news/result/DescribeOutputsResult.js +67 -0
- package/news/result/DescribeOutputsResult.js.map +1 -0
- package/news/result/DescribeOutputsResult.ts +73 -0
- package/news/result/DescribeProgressesResult.d.ts +18 -0
- package/news/result/DescribeProgressesResult.js +67 -0
- package/news/result/DescribeProgressesResult.js.map +1 -0
- package/news/result/DescribeProgressesResult.ts +73 -0
- package/news/result/GetOutputResult.d.ts +14 -0
- package/news/result/GetOutputResult.js +48 -0
- package/news/result/GetOutputResult.js.map +1 -0
- package/news/result/GetOutputResult.ts +48 -0
- package/news/result/GetProgressResult.d.ts +14 -0
- package/news/result/GetProgressResult.js +48 -0
- package/news/result/GetProgressResult.js.map +1 -0
- package/news/result/GetProgressResult.ts +48 -0
- package/news/result/index.d.ts +5 -1
- package/news/result/index.js +9 -1
- package/news/result/index.js.map +1 -1
- package/news/result/index.ts +8 -0
- package/package.json +1 -1
- package/ranking/model/CategoryModel.d.ts +4 -0
- package/ranking/model/CategoryModel.js +14 -0
- package/ranking/model/CategoryModel.js.map +1 -1
- package/ranking/model/CategoryModel.ts +14 -0
- package/ranking/model/CategoryModelMaster.d.ts +4 -0
- package/ranking/model/CategoryModelMaster.js +14 -0
- package/ranking/model/CategoryModelMaster.js.map +1 -1
- package/ranking/model/CategoryModelMaster.ts +14 -0
- package/ranking/request/CreateCategoryModelMasterRequest.d.ts +4 -0
- package/ranking/request/CreateCategoryModelMasterRequest.js +14 -0
- package/ranking/request/CreateCategoryModelMasterRequest.js.map +1 -1
- package/ranking/request/CreateCategoryModelMasterRequest.ts +14 -0
- package/ranking/request/UpdateCategoryModelMasterRequest.d.ts +4 -0
- package/ranking/request/UpdateCategoryModelMasterRequest.js +14 -0
- package/ranking/request/UpdateCategoryModelMasterRequest.js.map +1 -1
- package/ranking/request/UpdateCategoryModelMasterRequest.ts +14 -0
- package/ranking/rest.js +16 -14
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +2 -0
|
@@ -0,0 +1,185 @@
|
|
|
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 grnFormat = "grn:gs2:{region}:{ownerId}:news:{namespaceName}:progress:{uploadToken}";
|
|
19
|
+
var Progress = /** @class */ (function () {
|
|
20
|
+
function Progress() {
|
|
21
|
+
this.progressId = null;
|
|
22
|
+
this.uploadToken = null;
|
|
23
|
+
this.generated = null;
|
|
24
|
+
this.patternCount = null;
|
|
25
|
+
this.createdAt = null;
|
|
26
|
+
this.updatedAt = null;
|
|
27
|
+
}
|
|
28
|
+
Progress.getRegion = function (grn) {
|
|
29
|
+
var match = grn.match(grnFormat
|
|
30
|
+
.replace('{region}', '(.*)')
|
|
31
|
+
.replace('{ownerId}', '.*')
|
|
32
|
+
.replace('{namespaceName}', '.*')
|
|
33
|
+
.replace('{uploadToken}', '.*'));
|
|
34
|
+
if (match) {
|
|
35
|
+
return match[1];
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
};
|
|
39
|
+
Progress.getOwnerId = function (grn) {
|
|
40
|
+
var match = grn.match(grnFormat
|
|
41
|
+
.replace('{region}', '.*')
|
|
42
|
+
.replace('{ownerId}', '(.*)')
|
|
43
|
+
.replace('{namespaceName}', '.*')
|
|
44
|
+
.replace('{uploadToken}', '.*'));
|
|
45
|
+
if (match) {
|
|
46
|
+
return match[1];
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
};
|
|
50
|
+
Progress.getNamespaceName = function (grn) {
|
|
51
|
+
var match = grn.match(grnFormat
|
|
52
|
+
.replace('{region}', '.*')
|
|
53
|
+
.replace('{ownerId}', '.*')
|
|
54
|
+
.replace('{namespaceName}', '(.*)')
|
|
55
|
+
.replace('{uploadToken}', '.*'));
|
|
56
|
+
if (match) {
|
|
57
|
+
return match[1];
|
|
58
|
+
}
|
|
59
|
+
return null;
|
|
60
|
+
};
|
|
61
|
+
Progress.getUploadToken = function (grn) {
|
|
62
|
+
var match = grn.match(grnFormat
|
|
63
|
+
.replace('{region}', '.*')
|
|
64
|
+
.replace('{ownerId}', '.*')
|
|
65
|
+
.replace('{namespaceName}', '.*')
|
|
66
|
+
.replace('{uploadToken}', '(.*)'));
|
|
67
|
+
if (match) {
|
|
68
|
+
return match[1];
|
|
69
|
+
}
|
|
70
|
+
return null;
|
|
71
|
+
};
|
|
72
|
+
Progress.isValid = function (grn) {
|
|
73
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
if (this.getUploadToken(grn) == null || this.getUploadToken(grn) === '') {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
return true;
|
|
86
|
+
};
|
|
87
|
+
Progress.createGrn = function (region, ownerId, namespaceName, uploadToken) {
|
|
88
|
+
return grnFormat
|
|
89
|
+
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
90
|
+
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
91
|
+
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
92
|
+
.replace('{uploadToken}', uploadToken !== null && uploadToken !== void 0 ? uploadToken : '');
|
|
93
|
+
};
|
|
94
|
+
Progress.prototype.getProgressId = function () {
|
|
95
|
+
return this.progressId;
|
|
96
|
+
};
|
|
97
|
+
Progress.prototype.setProgressId = function (progressId) {
|
|
98
|
+
this.progressId = progressId;
|
|
99
|
+
return this;
|
|
100
|
+
};
|
|
101
|
+
Progress.prototype.withProgressId = function (progressId) {
|
|
102
|
+
this.progressId = progressId;
|
|
103
|
+
return this;
|
|
104
|
+
};
|
|
105
|
+
Progress.prototype.getUploadToken = function () {
|
|
106
|
+
return this.uploadToken;
|
|
107
|
+
};
|
|
108
|
+
Progress.prototype.setUploadToken = function (uploadToken) {
|
|
109
|
+
this.uploadToken = uploadToken;
|
|
110
|
+
return this;
|
|
111
|
+
};
|
|
112
|
+
Progress.prototype.withUploadToken = function (uploadToken) {
|
|
113
|
+
this.uploadToken = uploadToken;
|
|
114
|
+
return this;
|
|
115
|
+
};
|
|
116
|
+
Progress.prototype.getGenerated = function () {
|
|
117
|
+
return this.generated;
|
|
118
|
+
};
|
|
119
|
+
Progress.prototype.setGenerated = function (generated) {
|
|
120
|
+
this.generated = generated;
|
|
121
|
+
return this;
|
|
122
|
+
};
|
|
123
|
+
Progress.prototype.withGenerated = function (generated) {
|
|
124
|
+
this.generated = generated;
|
|
125
|
+
return this;
|
|
126
|
+
};
|
|
127
|
+
Progress.prototype.getPatternCount = function () {
|
|
128
|
+
return this.patternCount;
|
|
129
|
+
};
|
|
130
|
+
Progress.prototype.setPatternCount = function (patternCount) {
|
|
131
|
+
this.patternCount = patternCount;
|
|
132
|
+
return this;
|
|
133
|
+
};
|
|
134
|
+
Progress.prototype.withPatternCount = function (patternCount) {
|
|
135
|
+
this.patternCount = patternCount;
|
|
136
|
+
return this;
|
|
137
|
+
};
|
|
138
|
+
Progress.prototype.getCreatedAt = function () {
|
|
139
|
+
return this.createdAt;
|
|
140
|
+
};
|
|
141
|
+
Progress.prototype.setCreatedAt = function (createdAt) {
|
|
142
|
+
this.createdAt = createdAt;
|
|
143
|
+
return this;
|
|
144
|
+
};
|
|
145
|
+
Progress.prototype.withCreatedAt = function (createdAt) {
|
|
146
|
+
this.createdAt = createdAt;
|
|
147
|
+
return this;
|
|
148
|
+
};
|
|
149
|
+
Progress.prototype.getUpdatedAt = function () {
|
|
150
|
+
return this.updatedAt;
|
|
151
|
+
};
|
|
152
|
+
Progress.prototype.setUpdatedAt = function (updatedAt) {
|
|
153
|
+
this.updatedAt = updatedAt;
|
|
154
|
+
return this;
|
|
155
|
+
};
|
|
156
|
+
Progress.prototype.withUpdatedAt = function (updatedAt) {
|
|
157
|
+
this.updatedAt = updatedAt;
|
|
158
|
+
return this;
|
|
159
|
+
};
|
|
160
|
+
Progress.fromDict = function (data) {
|
|
161
|
+
if (data == undefined || data == null) {
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
return new Progress()
|
|
165
|
+
.withProgressId(data["progressId"])
|
|
166
|
+
.withUploadToken(data["uploadToken"])
|
|
167
|
+
.withGenerated(data["generated"])
|
|
168
|
+
.withPatternCount(data["patternCount"])
|
|
169
|
+
.withCreatedAt(data["createdAt"])
|
|
170
|
+
.withUpdatedAt(data["updatedAt"]);
|
|
171
|
+
};
|
|
172
|
+
Progress.prototype.toDict = function () {
|
|
173
|
+
return {
|
|
174
|
+
"progressId": this.getProgressId(),
|
|
175
|
+
"uploadToken": this.getUploadToken(),
|
|
176
|
+
"generated": this.getGenerated(),
|
|
177
|
+
"patternCount": this.getPatternCount(),
|
|
178
|
+
"createdAt": this.getCreatedAt(),
|
|
179
|
+
"updatedAt": this.getUpdatedAt(),
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
return Progress;
|
|
183
|
+
}());
|
|
184
|
+
exports.default = Progress;
|
|
185
|
+
//# sourceMappingURL=Progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3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AAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACpC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;aACtC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEM,yBAAM,GAAb;QACI,OAAO;YACH,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,cAAc,EAAE,IAAI,CAAC,eAAe,EAAE;YACtC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;SACnC,CAAC;IACN,CAAC;IACL,eAAC;AAAD,CAAC,AAlLD,IAkLC"}
|
|
@@ -0,0 +1,198 @@
|
|
|
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
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:news:{namespaceName}:progress:{uploadToken}";
|
|
19
|
+
|
|
20
|
+
export default class Progress implements IModel {
|
|
21
|
+
private progressId: string|null = null;
|
|
22
|
+
private uploadToken: string|null = null;
|
|
23
|
+
private generated: number|null = null;
|
|
24
|
+
private patternCount: number|null = null;
|
|
25
|
+
private createdAt: number|null = null;
|
|
26
|
+
private updatedAt: number|null = null;
|
|
27
|
+
|
|
28
|
+
public static getRegion(grn: string): string|null {
|
|
29
|
+
const match = grn.match(grnFormat
|
|
30
|
+
.replace('{region}', '(.*)')
|
|
31
|
+
.replace('{ownerId}', '.*')
|
|
32
|
+
.replace('{namespaceName}', '.*')
|
|
33
|
+
.replace('{uploadToken}', '.*')
|
|
34
|
+
);
|
|
35
|
+
if (match) {
|
|
36
|
+
return match[1];
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public static getOwnerId(grn: string): string|null {
|
|
42
|
+
const match = grn.match(grnFormat
|
|
43
|
+
.replace('{region}', '.*')
|
|
44
|
+
.replace('{ownerId}', '(.*)')
|
|
45
|
+
.replace('{namespaceName}', '.*')
|
|
46
|
+
.replace('{uploadToken}', '.*')
|
|
47
|
+
);
|
|
48
|
+
if (match) {
|
|
49
|
+
return match[1];
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public static getNamespaceName(grn: string): string|null {
|
|
55
|
+
const match = grn.match(grnFormat
|
|
56
|
+
.replace('{region}', '.*')
|
|
57
|
+
.replace('{ownerId}', '.*')
|
|
58
|
+
.replace('{namespaceName}', '(.*)')
|
|
59
|
+
.replace('{uploadToken}', '.*')
|
|
60
|
+
);
|
|
61
|
+
if (match) {
|
|
62
|
+
return match[1];
|
|
63
|
+
}
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public static getUploadToken(grn: string): string|null {
|
|
68
|
+
const match = grn.match(grnFormat
|
|
69
|
+
.replace('{region}', '.*')
|
|
70
|
+
.replace('{ownerId}', '.*')
|
|
71
|
+
.replace('{namespaceName}', '.*')
|
|
72
|
+
.replace('{uploadToken}', '(.*)')
|
|
73
|
+
);
|
|
74
|
+
if (match) {
|
|
75
|
+
return match[1];
|
|
76
|
+
}
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
public static isValid(grn: string): boolean {
|
|
81
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
if (this.getUploadToken(grn) == null || this.getUploadToken(grn) === '') {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
public static createGrn(
|
|
97
|
+
region: string|null,
|
|
98
|
+
ownerId: string|null,
|
|
99
|
+
namespaceName: string|null,
|
|
100
|
+
uploadToken: string|null,
|
|
101
|
+
): string|null {
|
|
102
|
+
return grnFormat
|
|
103
|
+
.replace('{region}', region ?? '')
|
|
104
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
105
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
106
|
+
.replace('{uploadToken}', uploadToken ?? '');
|
|
107
|
+
}
|
|
108
|
+
public getProgressId(): string|null {
|
|
109
|
+
return this.progressId;
|
|
110
|
+
}
|
|
111
|
+
public setProgressId(progressId: string|null) {
|
|
112
|
+
this.progressId = progressId;
|
|
113
|
+
return this;
|
|
114
|
+
}
|
|
115
|
+
public withProgressId(progressId: string|null): this {
|
|
116
|
+
this.progressId = progressId;
|
|
117
|
+
return this;
|
|
118
|
+
}
|
|
119
|
+
public getUploadToken(): string|null {
|
|
120
|
+
return this.uploadToken;
|
|
121
|
+
}
|
|
122
|
+
public setUploadToken(uploadToken: string|null) {
|
|
123
|
+
this.uploadToken = uploadToken;
|
|
124
|
+
return this;
|
|
125
|
+
}
|
|
126
|
+
public withUploadToken(uploadToken: string|null): this {
|
|
127
|
+
this.uploadToken = uploadToken;
|
|
128
|
+
return this;
|
|
129
|
+
}
|
|
130
|
+
public getGenerated(): number|null {
|
|
131
|
+
return this.generated;
|
|
132
|
+
}
|
|
133
|
+
public setGenerated(generated: number|null) {
|
|
134
|
+
this.generated = generated;
|
|
135
|
+
return this;
|
|
136
|
+
}
|
|
137
|
+
public withGenerated(generated: number|null): this {
|
|
138
|
+
this.generated = generated;
|
|
139
|
+
return this;
|
|
140
|
+
}
|
|
141
|
+
public getPatternCount(): number|null {
|
|
142
|
+
return this.patternCount;
|
|
143
|
+
}
|
|
144
|
+
public setPatternCount(patternCount: number|null) {
|
|
145
|
+
this.patternCount = patternCount;
|
|
146
|
+
return this;
|
|
147
|
+
}
|
|
148
|
+
public withPatternCount(patternCount: number|null): this {
|
|
149
|
+
this.patternCount = patternCount;
|
|
150
|
+
return this;
|
|
151
|
+
}
|
|
152
|
+
public getCreatedAt(): number|null {
|
|
153
|
+
return this.createdAt;
|
|
154
|
+
}
|
|
155
|
+
public setCreatedAt(createdAt: number|null) {
|
|
156
|
+
this.createdAt = createdAt;
|
|
157
|
+
return this;
|
|
158
|
+
}
|
|
159
|
+
public withCreatedAt(createdAt: number|null): this {
|
|
160
|
+
this.createdAt = createdAt;
|
|
161
|
+
return this;
|
|
162
|
+
}
|
|
163
|
+
public getUpdatedAt(): number|null {
|
|
164
|
+
return this.updatedAt;
|
|
165
|
+
}
|
|
166
|
+
public setUpdatedAt(updatedAt: number|null) {
|
|
167
|
+
this.updatedAt = updatedAt;
|
|
168
|
+
return this;
|
|
169
|
+
}
|
|
170
|
+
public withUpdatedAt(updatedAt: number|null): this {
|
|
171
|
+
this.updatedAt = updatedAt;
|
|
172
|
+
return this;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
public static fromDict(data: {[key: string]: any}): Progress|null {
|
|
176
|
+
if (data == undefined || data == null) {
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
return new Progress()
|
|
180
|
+
.withProgressId(data["progressId"])
|
|
181
|
+
.withUploadToken(data["uploadToken"])
|
|
182
|
+
.withGenerated(data["generated"])
|
|
183
|
+
.withPatternCount(data["patternCount"])
|
|
184
|
+
.withCreatedAt(data["createdAt"])
|
|
185
|
+
.withUpdatedAt(data["updatedAt"]);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
public toDict(): {[key: string]: any} {
|
|
189
|
+
return {
|
|
190
|
+
"progressId": this.getProgressId(),
|
|
191
|
+
"uploadToken": this.getUploadToken(),
|
|
192
|
+
"generated": this.getGenerated(),
|
|
193
|
+
"patternCount": this.getPatternCount(),
|
|
194
|
+
"createdAt": this.getCreatedAt(),
|
|
195
|
+
"updatedAt": this.getUpdatedAt(),
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import Content from './Content';
|
|
3
|
+
export default class View implements IModel {
|
|
4
|
+
private contents;
|
|
5
|
+
private removeContents;
|
|
6
|
+
getContents(): Content[] | null;
|
|
7
|
+
setContents(contents: Content[] | null): this;
|
|
8
|
+
withContents(contents: Content[] | null): this;
|
|
9
|
+
getRemoveContents(): Content[] | null;
|
|
10
|
+
setRemoveContents(removeContents: Content[] | null): this;
|
|
11
|
+
withRemoveContents(removeContents: Content[] | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): View | null;
|
|
15
|
+
toDict(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 Content_1 = tslib_1.__importDefault(require("./Content"));
|
|
20
|
+
var View = /** @class */ (function () {
|
|
21
|
+
function View() {
|
|
22
|
+
this.contents = null;
|
|
23
|
+
this.removeContents = null;
|
|
24
|
+
}
|
|
25
|
+
View.prototype.getContents = function () {
|
|
26
|
+
return this.contents;
|
|
27
|
+
};
|
|
28
|
+
View.prototype.setContents = function (contents) {
|
|
29
|
+
this.contents = contents;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
View.prototype.withContents = function (contents) {
|
|
33
|
+
this.contents = contents;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
View.prototype.getRemoveContents = function () {
|
|
37
|
+
return this.removeContents;
|
|
38
|
+
};
|
|
39
|
+
View.prototype.setRemoveContents = function (removeContents) {
|
|
40
|
+
this.removeContents = removeContents;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
View.prototype.withRemoveContents = function (removeContents) {
|
|
44
|
+
this.removeContents = removeContents;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
View.fromDict = function (data) {
|
|
48
|
+
if (data == undefined || data == null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return new View()
|
|
52
|
+
.withContents(data.contents ?
|
|
53
|
+
data.contents.map(function (item) {
|
|
54
|
+
return Content_1.default.fromDict(item);
|
|
55
|
+
}) : [])
|
|
56
|
+
.withRemoveContents(data.removeContents ?
|
|
57
|
+
data.removeContents.map(function (item) {
|
|
58
|
+
return Content_1.default.fromDict(item);
|
|
59
|
+
}) : []);
|
|
60
|
+
};
|
|
61
|
+
View.prototype.toDict = function () {
|
|
62
|
+
return {
|
|
63
|
+
"contents": this.getContents() ?
|
|
64
|
+
this.getContents().map(function (item) {
|
|
65
|
+
return item.toDict();
|
|
66
|
+
}) : [],
|
|
67
|
+
"removeContents": this.getRemoveContents() ?
|
|
68
|
+
this.getRemoveContents().map(function (item) {
|
|
69
|
+
return item.toDict();
|
|
70
|
+
}) : [],
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
return View;
|
|
74
|
+
}());
|
|
75
|
+
exports.default = View;
|
|
76
|
+
//# sourceMappingURL=View.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"View.js","sourceRoot":"","sources":["View.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,8DAAgC;AAEhC;IAAA;QACY,aAAQ,GAAmB,IAAI,CAAC;QAChC,mBAAc,GAAmB,IAAI,CAAC;IAuDlD,CAAC;IAtDU,0BAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,0BAAW,GAAlB,UAAmB,QAAwB;QACvC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,2BAAY,GAAnB,UAAoB,QAAwB;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,gCAAiB,GAAxB;QACI,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IACM,gCAAiB,GAAxB,UAAyB,cAA8B;QACnD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,iCAAkB,GAAzB,UAA0B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
|
+
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 Content from './Content';
|
|
19
|
+
|
|
20
|
+
export default class View implements IModel {
|
|
21
|
+
private contents: Content[]|null = null;
|
|
22
|
+
private removeContents: Content[]|null = null;
|
|
23
|
+
public getContents(): Content[]|null {
|
|
24
|
+
return this.contents;
|
|
25
|
+
}
|
|
26
|
+
public setContents(contents: Content[]|null) {
|
|
27
|
+
this.contents = contents;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
public withContents(contents: Content[]|null): this {
|
|
31
|
+
this.contents = contents;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
public getRemoveContents(): Content[]|null {
|
|
35
|
+
return this.removeContents;
|
|
36
|
+
}
|
|
37
|
+
public setRemoveContents(removeContents: Content[]|null) {
|
|
38
|
+
this.removeContents = removeContents;
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
public withRemoveContents(removeContents: Content[]|null): this {
|
|
42
|
+
this.removeContents = removeContents;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public static fromDict(data: {[key: string]: any}): View|null {
|
|
47
|
+
if (data == undefined || data == null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return new View()
|
|
51
|
+
.withContents(data.contents ?
|
|
52
|
+
data.contents.map((item: {[key: string]: any}) => {
|
|
53
|
+
return Content.fromDict(item);
|
|
54
|
+
}
|
|
55
|
+
) : [])
|
|
56
|
+
.withRemoveContents(data.removeContents ?
|
|
57
|
+
data.removeContents.map((item: {[key: string]: any}) => {
|
|
58
|
+
return Content.fromDict(item);
|
|
59
|
+
}
|
|
60
|
+
) : []);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public toDict(): {[key: string]: any} {
|
|
64
|
+
return {
|
|
65
|
+
"contents": this.getContents() ?
|
|
66
|
+
this.getContents()!.map((item: Content) => {
|
|
67
|
+
return item.toDict();
|
|
68
|
+
}
|
|
69
|
+
) : [],
|
|
70
|
+
"removeContents": this.getRemoveContents() ?
|
|
71
|
+
this.getRemoveContents()!.map((item: Content) => {
|
|
72
|
+
return item.toDict();
|
|
73
|
+
}
|
|
74
|
+
) : [],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
package/news/model/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import Namespace from "./Namespace";
|
|
2
|
+
import Progress from "./Progress";
|
|
3
|
+
import Output from "./Output";
|
|
4
|
+
import View from "./View";
|
|
5
|
+
import Content from "./Content";
|
|
2
6
|
import News from "./News";
|
|
3
7
|
import SetCookieRequestEntry from "./SetCookieRequestEntry";
|
|
4
8
|
import LogSetting from "./LogSetting";
|
|
5
9
|
import GitHubCheckoutSetting from "./GitHubCheckoutSetting";
|
|
6
|
-
export { Namespace, News, SetCookieRequestEntry, LogSetting, GitHubCheckoutSetting, };
|
|
10
|
+
export { Namespace, Progress, Output, View, Content, News, SetCookieRequestEntry, LogSetting, GitHubCheckoutSetting, };
|
package/news/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.SetCookieRequestEntry = exports.News = exports.Namespace = void 0;
|
|
3
|
+
exports.GitHubCheckoutSetting = exports.LogSetting = exports.SetCookieRequestEntry = exports.News = exports.Content = exports.View = exports.Output = exports.Progress = 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
|
|
@@ -19,6 +19,14 @@ permissions and limitations under the License.
|
|
|
19
19
|
*/
|
|
20
20
|
var Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
|
|
21
21
|
exports.Namespace = Namespace_1.default;
|
|
22
|
+
var Progress_1 = tslib_1.__importDefault(require("./Progress"));
|
|
23
|
+
exports.Progress = Progress_1.default;
|
|
24
|
+
var Output_1 = tslib_1.__importDefault(require("./Output"));
|
|
25
|
+
exports.Output = Output_1.default;
|
|
26
|
+
var View_1 = tslib_1.__importDefault(require("./View"));
|
|
27
|
+
exports.View = View_1.default;
|
|
28
|
+
var Content_1 = tslib_1.__importDefault(require("./Content"));
|
|
29
|
+
exports.Content = Content_1.default;
|
|
22
30
|
var News_1 = tslib_1.__importDefault(require("./News"));
|
|
23
31
|
exports.News = News_1.default;
|
|
24
32
|
var SetCookieRequestEntry_1 = tslib_1.__importDefault(require("./SetCookieRequestEntry"));
|
package/news/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;AAW/B,oBAXG,mBAAS,CAWH;AAVb,gEAAiC;AAW7B,mBAXG,kBAAQ,CAWH;AAVZ,4DAA6B;AAWzB,iBAXG,gBAAM,CAWH;AAVV,wDAAyB;AAWrB,eAXG,cAAI,CAWH;AAVR,8DAA+B;AAW3B,kBAXG,iBAAO,CAWH;AAVX,wDAAyB;AAWrB,eAXG,cAAI,CAWH;AAVR,0FAA2D;AAWvD,gCAXG,+BAAqB,CAWH;AAVzB,oEAAqC;AAWjC,qBAXG,oBAAU,CAWH;AAVd,0FAA2D;AAWvD,gCAXG,+BAAqB,CAWH"}
|
package/news/model/index.ts
CHANGED
|
@@ -14,6 +14,10 @@ express or implied. See the License for the specific language governing
|
|
|
14
14
|
permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import Namespace from "./Namespace"
|
|
17
|
+
import Progress from "./Progress"
|
|
18
|
+
import Output from "./Output"
|
|
19
|
+
import View from "./View"
|
|
20
|
+
import Content from "./Content"
|
|
17
21
|
import News from "./News"
|
|
18
22
|
import SetCookieRequestEntry from "./SetCookieRequestEntry"
|
|
19
23
|
import LogSetting from "./LogSetting"
|
|
@@ -21,6 +25,10 @@ import GitHubCheckoutSetting from "./GitHubCheckoutSetting"
|
|
|
21
25
|
|
|
22
26
|
export {
|
|
23
27
|
Namespace,
|
|
28
|
+
Progress,
|
|
29
|
+
Output,
|
|
30
|
+
View,
|
|
31
|
+
Content,
|
|
24
32
|
News,
|
|
25
33
|
SetCookieRequestEntry,
|
|
26
34
|
LogSetting,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
export default class DescribeOutputsRequest implements IRequest {
|
|
3
|
+
private requestId;
|
|
4
|
+
private contextStack;
|
|
5
|
+
private namespaceName;
|
|
6
|
+
private uploadToken;
|
|
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
|
+
getUploadToken(): string | null;
|
|
19
|
+
setUploadToken(uploadToken: string | null): this;
|
|
20
|
+
withUploadToken(uploadToken: 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
|
+
}): DescribeOutputsRequest;
|
|
30
|
+
toDict(): {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
}
|