gs2 1.3.199 → 1.3.200

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 (109) hide show
  1. package/enhance/model/UnleashRateEntryModel.d.ts +17 -0
  2. package/enhance/model/UnleashRateEntryModel.js +62 -0
  3. package/enhance/model/UnleashRateEntryModel.js.map +1 -0
  4. package/enhance/model/UnleashRateEntryModel.ts +60 -0
  5. package/enhance/model/UnleashRateModel.d.ts +44 -0
  6. package/enhance/model/UnleashRateModel.js +207 -0
  7. package/enhance/model/UnleashRateModel.js.map +1 -0
  8. package/enhance/model/UnleashRateModel.ts +221 -0
  9. package/enhance/model/UnleashRateModelMaster.d.ts +56 -0
  10. package/enhance/model/UnleashRateModelMaster.js +249 -0
  11. package/enhance/model/UnleashRateModelMaster.js.map +1 -0
  12. package/enhance/model/UnleashRateModelMaster.ts +263 -0
  13. package/enhance/model/index.d.ts +4 -1
  14. package/enhance/model/index.js +7 -1
  15. package/enhance/model/index.js.map +1 -1
  16. package/enhance/model/index.ts +6 -0
  17. package/enhance/request/CreateUnleashRateModelMasterRequest.d.ts +46 -0
  18. package/enhance/request/CreateUnleashRateModelMasterRequest.js +161 -0
  19. package/enhance/request/CreateUnleashRateModelMasterRequest.js.map +1 -0
  20. package/enhance/request/CreateUnleashRateModelMasterRequest.ts +168 -0
  21. package/enhance/request/DeleteUnleashRateModelMasterRequest.d.ts +25 -0
  22. package/enhance/request/DeleteUnleashRateModelMasterRequest.js +83 -0
  23. package/enhance/request/DeleteUnleashRateModelMasterRequest.js.map +1 -0
  24. package/enhance/request/DeleteUnleashRateModelMasterRequest.ts +90 -0
  25. package/enhance/request/DescribeUnleashRateModelMastersRequest.d.ts +29 -0
  26. package/enhance/request/DescribeUnleashRateModelMastersRequest.js +97 -0
  27. package/enhance/request/DescribeUnleashRateModelMastersRequest.js.map +1 -0
  28. package/enhance/request/DescribeUnleashRateModelMastersRequest.ts +104 -0
  29. package/enhance/request/DescribeUnleashRateModelsRequest.d.ts +21 -0
  30. package/enhance/request/DescribeUnleashRateModelsRequest.js +69 -0
  31. package/enhance/request/DescribeUnleashRateModelsRequest.js.map +1 -0
  32. package/enhance/request/DescribeUnleashRateModelsRequest.ts +76 -0
  33. package/enhance/request/GetUnleashRateModelMasterRequest.d.ts +25 -0
  34. package/enhance/request/GetUnleashRateModelMasterRequest.js +83 -0
  35. package/enhance/request/GetUnleashRateModelMasterRequest.js.map +1 -0
  36. package/enhance/request/GetUnleashRateModelMasterRequest.ts +90 -0
  37. package/enhance/request/GetUnleashRateModelRequest.d.ts +25 -0
  38. package/enhance/request/GetUnleashRateModelRequest.js +83 -0
  39. package/enhance/request/GetUnleashRateModelRequest.js.map +1 -0
  40. package/enhance/request/GetUnleashRateModelRequest.ts +90 -0
  41. package/enhance/request/UnleashByStampSheetRequest.d.ts +25 -0
  42. package/enhance/request/UnleashByStampSheetRequest.js +83 -0
  43. package/enhance/request/UnleashByStampSheetRequest.js.map +1 -0
  44. package/enhance/request/UnleashByStampSheetRequest.ts +90 -0
  45. package/enhance/request/UnleashByUserIdRequest.d.ts +46 -0
  46. package/enhance/request/UnleashByUserIdRequest.js +165 -0
  47. package/enhance/request/UnleashByUserIdRequest.js.map +1 -0
  48. package/enhance/request/UnleashByUserIdRequest.ts +177 -0
  49. package/enhance/request/UnleashRequest.d.ts +46 -0
  50. package/enhance/request/UnleashRequest.js +165 -0
  51. package/enhance/request/UnleashRequest.js.map +1 -0
  52. package/enhance/request/UnleashRequest.ts +177 -0
  53. package/enhance/request/UpdateUnleashRateModelMasterRequest.d.ts +46 -0
  54. package/enhance/request/UpdateUnleashRateModelMasterRequest.js +161 -0
  55. package/enhance/request/UpdateUnleashRateModelMasterRequest.js.map +1 -0
  56. package/enhance/request/UpdateUnleashRateModelMasterRequest.ts +168 -0
  57. package/enhance/request/index.d.ts +11 -1
  58. package/enhance/request/index.js +21 -1
  59. package/enhance/request/index.js.map +1 -1
  60. package/enhance/request/index.ts +20 -0
  61. package/enhance/rest.d.ts +10 -0
  62. package/enhance/rest.js +276 -0
  63. package/enhance/rest.js.map +1 -1
  64. package/enhance/rest.ts +316 -0
  65. package/enhance/result/CreateUnleashRateModelMasterResult.d.ts +14 -0
  66. package/enhance/result/CreateUnleashRateModelMasterResult.js +48 -0
  67. package/enhance/result/CreateUnleashRateModelMasterResult.js.map +1 -0
  68. package/enhance/result/CreateUnleashRateModelMasterResult.ts +48 -0
  69. package/enhance/result/DeleteUnleashRateModelMasterResult.d.ts +14 -0
  70. package/enhance/result/DeleteUnleashRateModelMasterResult.js +48 -0
  71. package/enhance/result/DeleteUnleashRateModelMasterResult.js.map +1 -0
  72. package/enhance/result/DeleteUnleashRateModelMasterResult.ts +48 -0
  73. package/enhance/result/DescribeUnleashRateModelMastersResult.d.ts +18 -0
  74. package/enhance/result/DescribeUnleashRateModelMastersResult.js +67 -0
  75. package/enhance/result/DescribeUnleashRateModelMastersResult.js.map +1 -0
  76. package/enhance/result/DescribeUnleashRateModelMastersResult.ts +73 -0
  77. package/enhance/result/DescribeUnleashRateModelsResult.d.ts +14 -0
  78. package/enhance/result/DescribeUnleashRateModelsResult.js +53 -0
  79. package/enhance/result/DescribeUnleashRateModelsResult.js.map +1 -0
  80. package/enhance/result/DescribeUnleashRateModelsResult.ts +56 -0
  81. package/enhance/result/GetUnleashRateModelMasterResult.d.ts +14 -0
  82. package/enhance/result/GetUnleashRateModelMasterResult.js +48 -0
  83. package/enhance/result/GetUnleashRateModelMasterResult.js.map +1 -0
  84. package/enhance/result/GetUnleashRateModelMasterResult.ts +48 -0
  85. package/enhance/result/GetUnleashRateModelResult.d.ts +14 -0
  86. package/enhance/result/GetUnleashRateModelResult.js +48 -0
  87. package/enhance/result/GetUnleashRateModelResult.js.map +1 -0
  88. package/enhance/result/GetUnleashRateModelResult.ts +48 -0
  89. package/enhance/result/UnleashByStampSheetResult.d.ts +30 -0
  90. package/enhance/result/UnleashByStampSheetResult.js +104 -0
  91. package/enhance/result/UnleashByStampSheetResult.js.map +1 -0
  92. package/enhance/result/UnleashByStampSheetResult.ts +116 -0
  93. package/enhance/result/UnleashByUserIdResult.d.ts +30 -0
  94. package/enhance/result/UnleashByUserIdResult.js +104 -0
  95. package/enhance/result/UnleashByUserIdResult.js.map +1 -0
  96. package/enhance/result/UnleashByUserIdResult.ts +116 -0
  97. package/enhance/result/UnleashResult.d.ts +30 -0
  98. package/enhance/result/UnleashResult.js +104 -0
  99. package/enhance/result/UnleashResult.js.map +1 -0
  100. package/enhance/result/UnleashResult.ts +116 -0
  101. package/enhance/result/UpdateUnleashRateModelMasterResult.d.ts +14 -0
  102. package/enhance/result/UpdateUnleashRateModelMasterResult.js +48 -0
  103. package/enhance/result/UpdateUnleashRateModelMasterResult.js.map +1 -0
  104. package/enhance/result/UpdateUnleashRateModelMasterResult.ts +48 -0
  105. package/enhance/result/index.d.ts +11 -1
  106. package/enhance/result/index.js +21 -1
  107. package/enhance/result/index.js.map +1 -1
  108. package/enhance/result/index.ts +20 -0
  109. package/package.json +1 -1
@@ -0,0 +1,249 @@
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 UnleashRateEntryModel_1 = tslib_1.__importDefault(require("./UnleashRateEntryModel"));
20
+ var grnFormat = "grn:gs2:{region}:{ownerId}:enhance:{namespaceName}:unleashRateModelMaster:{rateName}";
21
+ var UnleashRateModelMaster = /** @class */ (function () {
22
+ function UnleashRateModelMaster() {
23
+ this.unleashRateModelId = null;
24
+ this.name = null;
25
+ this.description = null;
26
+ this.metadata = null;
27
+ this.targetInventoryModelId = null;
28
+ this.gradeModelId = null;
29
+ this.gradeEntries = null;
30
+ this.createdAt = null;
31
+ this.updatedAt = null;
32
+ this.revision = null;
33
+ }
34
+ UnleashRateModelMaster.getRegion = function (grn) {
35
+ var match = grn.match(grnFormat
36
+ .replace('{region}', '(.*)')
37
+ .replace('{ownerId}', '.*')
38
+ .replace('{namespaceName}', '.*')
39
+ .replace('{rateName}', '.*'));
40
+ if (match) {
41
+ return match[1];
42
+ }
43
+ return null;
44
+ };
45
+ UnleashRateModelMaster.getOwnerId = function (grn) {
46
+ var match = grn.match(grnFormat
47
+ .replace('{region}', '.*')
48
+ .replace('{ownerId}', '(.*)')
49
+ .replace('{namespaceName}', '.*')
50
+ .replace('{rateName}', '.*'));
51
+ if (match) {
52
+ return match[1];
53
+ }
54
+ return null;
55
+ };
56
+ UnleashRateModelMaster.getNamespaceName = function (grn) {
57
+ var match = grn.match(grnFormat
58
+ .replace('{region}', '.*')
59
+ .replace('{ownerId}', '.*')
60
+ .replace('{namespaceName}', '(.*)')
61
+ .replace('{rateName}', '.*'));
62
+ if (match) {
63
+ return match[1];
64
+ }
65
+ return null;
66
+ };
67
+ UnleashRateModelMaster.getRateName = function (grn) {
68
+ var match = grn.match(grnFormat
69
+ .replace('{region}', '.*')
70
+ .replace('{ownerId}', '.*')
71
+ .replace('{namespaceName}', '.*')
72
+ .replace('{rateName}', '(.*)'));
73
+ if (match) {
74
+ return match[1];
75
+ }
76
+ return null;
77
+ };
78
+ UnleashRateModelMaster.isValid = function (grn) {
79
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
80
+ return false;
81
+ }
82
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
83
+ return false;
84
+ }
85
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
86
+ return false;
87
+ }
88
+ if (this.getRateName(grn) == null || this.getRateName(grn) === '') {
89
+ return false;
90
+ }
91
+ return true;
92
+ };
93
+ UnleashRateModelMaster.createGrn = function (region, ownerId, namespaceName, rateName) {
94
+ return grnFormat
95
+ .replace('{region}', region !== null && region !== void 0 ? region : '')
96
+ .replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
97
+ .replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
98
+ .replace('{rateName}', rateName !== null && rateName !== void 0 ? rateName : '');
99
+ };
100
+ UnleashRateModelMaster.prototype.getUnleashRateModelId = function () {
101
+ return this.unleashRateModelId;
102
+ };
103
+ UnleashRateModelMaster.prototype.setUnleashRateModelId = function (unleashRateModelId) {
104
+ this.unleashRateModelId = unleashRateModelId;
105
+ return this;
106
+ };
107
+ UnleashRateModelMaster.prototype.withUnleashRateModelId = function (unleashRateModelId) {
108
+ this.unleashRateModelId = unleashRateModelId;
109
+ return this;
110
+ };
111
+ UnleashRateModelMaster.prototype.getName = function () {
112
+ return this.name;
113
+ };
114
+ UnleashRateModelMaster.prototype.setName = function (name) {
115
+ this.name = name;
116
+ return this;
117
+ };
118
+ UnleashRateModelMaster.prototype.withName = function (name) {
119
+ this.name = name;
120
+ return this;
121
+ };
122
+ UnleashRateModelMaster.prototype.getDescription = function () {
123
+ return this.description;
124
+ };
125
+ UnleashRateModelMaster.prototype.setDescription = function (description) {
126
+ this.description = description;
127
+ return this;
128
+ };
129
+ UnleashRateModelMaster.prototype.withDescription = function (description) {
130
+ this.description = description;
131
+ return this;
132
+ };
133
+ UnleashRateModelMaster.prototype.getMetadata = function () {
134
+ return this.metadata;
135
+ };
136
+ UnleashRateModelMaster.prototype.setMetadata = function (metadata) {
137
+ this.metadata = metadata;
138
+ return this;
139
+ };
140
+ UnleashRateModelMaster.prototype.withMetadata = function (metadata) {
141
+ this.metadata = metadata;
142
+ return this;
143
+ };
144
+ UnleashRateModelMaster.prototype.getTargetInventoryModelId = function () {
145
+ return this.targetInventoryModelId;
146
+ };
147
+ UnleashRateModelMaster.prototype.setTargetInventoryModelId = function (targetInventoryModelId) {
148
+ this.targetInventoryModelId = targetInventoryModelId;
149
+ return this;
150
+ };
151
+ UnleashRateModelMaster.prototype.withTargetInventoryModelId = function (targetInventoryModelId) {
152
+ this.targetInventoryModelId = targetInventoryModelId;
153
+ return this;
154
+ };
155
+ UnleashRateModelMaster.prototype.getGradeModelId = function () {
156
+ return this.gradeModelId;
157
+ };
158
+ UnleashRateModelMaster.prototype.setGradeModelId = function (gradeModelId) {
159
+ this.gradeModelId = gradeModelId;
160
+ return this;
161
+ };
162
+ UnleashRateModelMaster.prototype.withGradeModelId = function (gradeModelId) {
163
+ this.gradeModelId = gradeModelId;
164
+ return this;
165
+ };
166
+ UnleashRateModelMaster.prototype.getGradeEntries = function () {
167
+ return this.gradeEntries;
168
+ };
169
+ UnleashRateModelMaster.prototype.setGradeEntries = function (gradeEntries) {
170
+ this.gradeEntries = gradeEntries;
171
+ return this;
172
+ };
173
+ UnleashRateModelMaster.prototype.withGradeEntries = function (gradeEntries) {
174
+ this.gradeEntries = gradeEntries;
175
+ return this;
176
+ };
177
+ UnleashRateModelMaster.prototype.getCreatedAt = function () {
178
+ return this.createdAt;
179
+ };
180
+ UnleashRateModelMaster.prototype.setCreatedAt = function (createdAt) {
181
+ this.createdAt = createdAt;
182
+ return this;
183
+ };
184
+ UnleashRateModelMaster.prototype.withCreatedAt = function (createdAt) {
185
+ this.createdAt = createdAt;
186
+ return this;
187
+ };
188
+ UnleashRateModelMaster.prototype.getUpdatedAt = function () {
189
+ return this.updatedAt;
190
+ };
191
+ UnleashRateModelMaster.prototype.setUpdatedAt = function (updatedAt) {
192
+ this.updatedAt = updatedAt;
193
+ return this;
194
+ };
195
+ UnleashRateModelMaster.prototype.withUpdatedAt = function (updatedAt) {
196
+ this.updatedAt = updatedAt;
197
+ return this;
198
+ };
199
+ UnleashRateModelMaster.prototype.getRevision = function () {
200
+ return this.revision;
201
+ };
202
+ UnleashRateModelMaster.prototype.setRevision = function (revision) {
203
+ this.revision = revision;
204
+ return this;
205
+ };
206
+ UnleashRateModelMaster.prototype.withRevision = function (revision) {
207
+ this.revision = revision;
208
+ return this;
209
+ };
210
+ UnleashRateModelMaster.fromDict = function (data) {
211
+ if (data == undefined || data == null) {
212
+ return null;
213
+ }
214
+ return new UnleashRateModelMaster()
215
+ .withUnleashRateModelId(data["unleashRateModelId"])
216
+ .withName(data["name"])
217
+ .withDescription(data["description"])
218
+ .withMetadata(data["metadata"])
219
+ .withTargetInventoryModelId(data["targetInventoryModelId"])
220
+ .withGradeModelId(data["gradeModelId"])
221
+ .withGradeEntries(data.gradeEntries ?
222
+ data.gradeEntries.map(function (item) {
223
+ return UnleashRateEntryModel_1.default.fromDict(item);
224
+ }) : [])
225
+ .withCreatedAt(data["createdAt"])
226
+ .withUpdatedAt(data["updatedAt"])
227
+ .withRevision(data["revision"]);
228
+ };
229
+ UnleashRateModelMaster.prototype.toDict = function () {
230
+ return {
231
+ "unleashRateModelId": this.getUnleashRateModelId(),
232
+ "name": this.getName(),
233
+ "description": this.getDescription(),
234
+ "metadata": this.getMetadata(),
235
+ "targetInventoryModelId": this.getTargetInventoryModelId(),
236
+ "gradeModelId": this.getGradeModelId(),
237
+ "gradeEntries": this.getGradeEntries() ?
238
+ this.getGradeEntries().map(function (item) {
239
+ return item.toDict();
240
+ }) : [],
241
+ "createdAt": this.getCreatedAt(),
242
+ "updatedAt": this.getUpdatedAt(),
243
+ "revision": this.getRevision(),
244
+ };
245
+ };
246
+ return UnleashRateModelMaster;
247
+ }());
248
+ exports.default = UnleashRateModelMaster;
249
+ //# sourceMappingURL=UnleashRateModelMaster.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnleashRateModelMaster.js","sourceRoot":"","sources":["UnleashRateModelMaster.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,0FAA4D;AAC5D,IAAM,SAAS,GAAW,sFAAsF,CAAC;AAEjH;IAAA;Q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;SACjC,CAAC;IACN,CAAC;IACL,6BAAC;AAAD,CAAC,AAlPD,IAkPC"}
@@ -0,0 +1,263 @@
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 UnleashRateEntryModel from './UnleashRateEntryModel';
19
+ const grnFormat: string = "grn:gs2:{region}:{ownerId}:enhance:{namespaceName}:unleashRateModelMaster:{rateName}";
20
+
21
+ export default class UnleashRateModelMaster implements IModel {
22
+ private unleashRateModelId: string|null = null;
23
+ private name: string|null = null;
24
+ private description: string|null = null;
25
+ private metadata: string|null = null;
26
+ private targetInventoryModelId: string|null = null;
27
+ private gradeModelId: string|null = null;
28
+ private gradeEntries: UnleashRateEntryModel[]|null = null;
29
+ private createdAt: number|null = null;
30
+ private updatedAt: number|null = null;
31
+ private revision: number|null = null;
32
+
33
+ public static getRegion(grn: string): string|null {
34
+ const match = grn.match(grnFormat
35
+ .replace('{region}', '(.*)')
36
+ .replace('{ownerId}', '.*')
37
+ .replace('{namespaceName}', '.*')
38
+ .replace('{rateName}', '.*')
39
+ );
40
+ if (match) {
41
+ return match[1];
42
+ }
43
+ return null;
44
+ }
45
+
46
+ public static getOwnerId(grn: string): string|null {
47
+ const match = grn.match(grnFormat
48
+ .replace('{region}', '.*')
49
+ .replace('{ownerId}', '(.*)')
50
+ .replace('{namespaceName}', '.*')
51
+ .replace('{rateName}', '.*')
52
+ );
53
+ if (match) {
54
+ return match[1];
55
+ }
56
+ return null;
57
+ }
58
+
59
+ public static getNamespaceName(grn: string): string|null {
60
+ const match = grn.match(grnFormat
61
+ .replace('{region}', '.*')
62
+ .replace('{ownerId}', '.*')
63
+ .replace('{namespaceName}', '(.*)')
64
+ .replace('{rateName}', '.*')
65
+ );
66
+ if (match) {
67
+ return match[1];
68
+ }
69
+ return null;
70
+ }
71
+
72
+ public static getRateName(grn: string): string|null {
73
+ const match = grn.match(grnFormat
74
+ .replace('{region}', '.*')
75
+ .replace('{ownerId}', '.*')
76
+ .replace('{namespaceName}', '.*')
77
+ .replace('{rateName}', '(.*)')
78
+ );
79
+ if (match) {
80
+ return match[1];
81
+ }
82
+ return null;
83
+ }
84
+
85
+ public static isValid(grn: string): boolean {
86
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
87
+ return false;
88
+ }
89
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
90
+ return false;
91
+ }
92
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
93
+ return false;
94
+ }
95
+ if (this.getRateName(grn) == null || this.getRateName(grn) === '') {
96
+ return false;
97
+ }
98
+ return true;
99
+ }
100
+
101
+ public static createGrn(
102
+ region: string|null,
103
+ ownerId: string|null,
104
+ namespaceName: string|null,
105
+ rateName: string|null,
106
+ ): string|null {
107
+ return grnFormat
108
+ .replace('{region}', region ?? '')
109
+ .replace('{ownerId}', ownerId ?? '')
110
+ .replace('{namespaceName}', namespaceName ?? '')
111
+ .replace('{rateName}', rateName ?? '');
112
+ }
113
+ public getUnleashRateModelId(): string|null {
114
+ return this.unleashRateModelId;
115
+ }
116
+ public setUnleashRateModelId(unleashRateModelId: string|null) {
117
+ this.unleashRateModelId = unleashRateModelId;
118
+ return this;
119
+ }
120
+ public withUnleashRateModelId(unleashRateModelId: string|null): this {
121
+ this.unleashRateModelId = unleashRateModelId;
122
+ return this;
123
+ }
124
+ public getName(): string|null {
125
+ return this.name;
126
+ }
127
+ public setName(name: string|null) {
128
+ this.name = name;
129
+ return this;
130
+ }
131
+ public withName(name: string|null): this {
132
+ this.name = name;
133
+ return this;
134
+ }
135
+ public getDescription(): string|null {
136
+ return this.description;
137
+ }
138
+ public setDescription(description: string|null) {
139
+ this.description = description;
140
+ return this;
141
+ }
142
+ public withDescription(description: string|null): this {
143
+ this.description = description;
144
+ return this;
145
+ }
146
+ public getMetadata(): string|null {
147
+ return this.metadata;
148
+ }
149
+ public setMetadata(metadata: string|null) {
150
+ this.metadata = metadata;
151
+ return this;
152
+ }
153
+ public withMetadata(metadata: string|null): this {
154
+ this.metadata = metadata;
155
+ return this;
156
+ }
157
+ public getTargetInventoryModelId(): string|null {
158
+ return this.targetInventoryModelId;
159
+ }
160
+ public setTargetInventoryModelId(targetInventoryModelId: string|null) {
161
+ this.targetInventoryModelId = targetInventoryModelId;
162
+ return this;
163
+ }
164
+ public withTargetInventoryModelId(targetInventoryModelId: string|null): this {
165
+ this.targetInventoryModelId = targetInventoryModelId;
166
+ return this;
167
+ }
168
+ public getGradeModelId(): string|null {
169
+ return this.gradeModelId;
170
+ }
171
+ public setGradeModelId(gradeModelId: string|null) {
172
+ this.gradeModelId = gradeModelId;
173
+ return this;
174
+ }
175
+ public withGradeModelId(gradeModelId: string|null): this {
176
+ this.gradeModelId = gradeModelId;
177
+ return this;
178
+ }
179
+ public getGradeEntries(): UnleashRateEntryModel[]|null {
180
+ return this.gradeEntries;
181
+ }
182
+ public setGradeEntries(gradeEntries: UnleashRateEntryModel[]|null) {
183
+ this.gradeEntries = gradeEntries;
184
+ return this;
185
+ }
186
+ public withGradeEntries(gradeEntries: UnleashRateEntryModel[]|null): this {
187
+ this.gradeEntries = gradeEntries;
188
+ return this;
189
+ }
190
+ public getCreatedAt(): number|null {
191
+ return this.createdAt;
192
+ }
193
+ public setCreatedAt(createdAt: number|null) {
194
+ this.createdAt = createdAt;
195
+ return this;
196
+ }
197
+ public withCreatedAt(createdAt: number|null): this {
198
+ this.createdAt = createdAt;
199
+ return this;
200
+ }
201
+ public getUpdatedAt(): number|null {
202
+ return this.updatedAt;
203
+ }
204
+ public setUpdatedAt(updatedAt: number|null) {
205
+ this.updatedAt = updatedAt;
206
+ return this;
207
+ }
208
+ public withUpdatedAt(updatedAt: number|null): this {
209
+ this.updatedAt = updatedAt;
210
+ return this;
211
+ }
212
+ public getRevision(): number|null {
213
+ return this.revision;
214
+ }
215
+ public setRevision(revision: number|null) {
216
+ this.revision = revision;
217
+ return this;
218
+ }
219
+ public withRevision(revision: number|null): this {
220
+ this.revision = revision;
221
+ return this;
222
+ }
223
+
224
+ public static fromDict(data: {[key: string]: any}): UnleashRateModelMaster|null {
225
+ if (data == undefined || data == null) {
226
+ return null;
227
+ }
228
+ return new UnleashRateModelMaster()
229
+ .withUnleashRateModelId(data["unleashRateModelId"])
230
+ .withName(data["name"])
231
+ .withDescription(data["description"])
232
+ .withMetadata(data["metadata"])
233
+ .withTargetInventoryModelId(data["targetInventoryModelId"])
234
+ .withGradeModelId(data["gradeModelId"])
235
+ .withGradeEntries(data.gradeEntries ?
236
+ data.gradeEntries.map((item: {[key: string]: any}) => {
237
+ return UnleashRateEntryModel.fromDict(item);
238
+ }
239
+ ) : [])
240
+ .withCreatedAt(data["createdAt"])
241
+ .withUpdatedAt(data["updatedAt"])
242
+ .withRevision(data["revision"]);
243
+ }
244
+
245
+ public toDict(): {[key: string]: any} {
246
+ return {
247
+ "unleashRateModelId": this.getUnleashRateModelId(),
248
+ "name": this.getName(),
249
+ "description": this.getDescription(),
250
+ "metadata": this.getMetadata(),
251
+ "targetInventoryModelId": this.getTargetInventoryModelId(),
252
+ "gradeModelId": this.getGradeModelId(),
253
+ "gradeEntries": this.getGradeEntries() ?
254
+ this.getGradeEntries()!.map((item: UnleashRateEntryModel) => {
255
+ return item.toDict();
256
+ }
257
+ ) : [],
258
+ "createdAt": this.getCreatedAt(),
259
+ "updatedAt": this.getUpdatedAt(),
260
+ "revision": this.getRevision(),
261
+ };
262
+ }
263
+ }
@@ -1,13 +1,16 @@
1
1
  import Namespace from "./Namespace";
2
2
  import RateModel from "./RateModel";
3
3
  import RateModelMaster from "./RateModelMaster";
4
+ import UnleashRateModel from "./UnleashRateModel";
5
+ import UnleashRateModelMaster from "./UnleashRateModelMaster";
4
6
  import Progress from "./Progress";
5
7
  import CurrentRateMaster from "./CurrentRateMaster";
6
8
  import BonusRate from "./BonusRate";
7
9
  import Material from "./Material";
10
+ import UnleashRateEntryModel from "./UnleashRateEntryModel";
8
11
  import Config from "./Config";
9
12
  import GitHubCheckoutSetting from "./GitHubCheckoutSetting";
10
13
  import ScriptSetting from "./ScriptSetting";
11
14
  import LogSetting from "./LogSetting";
12
15
  import TransactionSetting from "./TransactionSetting";
13
- export { Namespace, RateModel, RateModelMaster, Progress, CurrentRateMaster, BonusRate, Material, Config, GitHubCheckoutSetting, ScriptSetting, LogSetting, TransactionSetting, };
16
+ export { Namespace, RateModel, RateModelMaster, UnleashRateModel, UnleashRateModelMaster, Progress, CurrentRateMaster, BonusRate, Material, UnleashRateEntryModel, Config, GitHubCheckoutSetting, ScriptSetting, LogSetting, TransactionSetting, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionSetting = exports.LogSetting = exports.ScriptSetting = exports.GitHubCheckoutSetting = exports.Config = exports.Material = exports.BonusRate = exports.CurrentRateMaster = exports.Progress = exports.RateModelMaster = exports.RateModel = exports.Namespace = void 0;
3
+ exports.TransactionSetting = exports.LogSetting = exports.ScriptSetting = exports.GitHubCheckoutSetting = exports.Config = exports.UnleashRateEntryModel = exports.Material = exports.BonusRate = exports.CurrentRateMaster = exports.Progress = exports.UnleashRateModelMaster = exports.UnleashRateModel = exports.RateModelMaster = exports.RateModel = 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
@@ -23,6 +23,10 @@ var RateModel_1 = tslib_1.__importDefault(require("./RateModel"));
23
23
  exports.RateModel = RateModel_1.default;
24
24
  var RateModelMaster_1 = tslib_1.__importDefault(require("./RateModelMaster"));
25
25
  exports.RateModelMaster = RateModelMaster_1.default;
26
+ var UnleashRateModel_1 = tslib_1.__importDefault(require("./UnleashRateModel"));
27
+ exports.UnleashRateModel = UnleashRateModel_1.default;
28
+ var UnleashRateModelMaster_1 = tslib_1.__importDefault(require("./UnleashRateModelMaster"));
29
+ exports.UnleashRateModelMaster = UnleashRateModelMaster_1.default;
26
30
  var Progress_1 = tslib_1.__importDefault(require("./Progress"));
27
31
  exports.Progress = Progress_1.default;
28
32
  var CurrentRateMaster_1 = tslib_1.__importDefault(require("./CurrentRateMaster"));
@@ -31,6 +35,8 @@ var BonusRate_1 = tslib_1.__importDefault(require("./BonusRate"));
31
35
  exports.BonusRate = BonusRate_1.default;
32
36
  var Material_1 = tslib_1.__importDefault(require("./Material"));
33
37
  exports.Material = Material_1.default;
38
+ var UnleashRateEntryModel_1 = tslib_1.__importDefault(require("./UnleashRateEntryModel"));
39
+ exports.UnleashRateEntryModel = UnleashRateEntryModel_1.default;
34
40
  var Config_1 = tslib_1.__importDefault(require("./Config"));
35
41
  exports.Config = Config_1.default;
36
42
  var GitHubCheckoutSetting_1 = tslib_1.__importDefault(require("./GitHubCheckoutSetting"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;AAc/B,oBAdG,mBAAS,CAcH;AAbb,kEAAmC;AAc/B,oBAdG,mBAAS,CAcH;AAbb,8EAA+C;AAc3C,0BAdG,yBAAe,CAcH;AAbnB,gEAAiC;AAc7B,mBAdG,kBAAQ,CAcH;AAbZ,kFAAmD;AAc/C,4BAdG,2BAAiB,CAcH;AAbrB,kEAAmC;AAc/B,oBAdG,mBAAS,CAcH;AAbb,gEAAiC;AAc7B,mBAdG,kBAAQ,CAcH;AAbZ,4DAA6B;AAczB,iBAdG,gBAAM,CAcH;AAbV,0FAA2D;AAcvD,gCAdG,+BAAqB,CAcH;AAbzB,0EAA2C;AAcvC,wBAdG,uBAAa,CAcH;AAbjB,oEAAqC;AAcjC,qBAdG,oBAAU,CAcH;AAbd,oFAAqD;AAcjD,6BAdG,4BAAkB,CAcH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;AAiB/B,oBAjBG,mBAAS,CAiBH;AAhBb,kEAAmC;AAiB/B,oBAjBG,mBAAS,CAiBH;AAhBb,8EAA+C;AAiB3C,0BAjBG,yBAAe,CAiBH;AAhBnB,gFAAiD;AAiB7C,2BAjBG,0BAAgB,CAiBH;AAhBpB,4FAA6D;AAiBzD,iCAjBG,gCAAsB,CAiBH;AAhB1B,gEAAiC;AAiB7B,mBAjBG,kBAAQ,CAiBH;AAhBZ,kFAAmD;AAiB/C,4BAjBG,2BAAiB,CAiBH;AAhBrB,kEAAmC;AAiB/B,oBAjBG,mBAAS,CAiBH;AAhBb,gEAAiC;AAiB7B,mBAjBG,kBAAQ,CAiBH;AAhBZ,0FAA2D;AAiBvD,gCAjBG,+BAAqB,CAiBH;AAhBzB,4DAA6B;AAiBzB,iBAjBG,gBAAM,CAiBH;AAhBV,0FAA2D;AAiBvD,gCAjBG,+BAAqB,CAiBH;AAhBzB,0EAA2C;AAiBvC,wBAjBG,uBAAa,CAiBH;AAhBjB,oEAAqC;AAiBjC,qBAjBG,oBAAU,CAiBH;AAhBd,oFAAqD;AAiBjD,6BAjBG,4BAAkB,CAiBH"}
@@ -16,10 +16,13 @@ permissions and limitations under the License.
16
16
  import Namespace from "./Namespace"
17
17
  import RateModel from "./RateModel"
18
18
  import RateModelMaster from "./RateModelMaster"
19
+ import UnleashRateModel from "./UnleashRateModel"
20
+ import UnleashRateModelMaster from "./UnleashRateModelMaster"
19
21
  import Progress from "./Progress"
20
22
  import CurrentRateMaster from "./CurrentRateMaster"
21
23
  import BonusRate from "./BonusRate"
22
24
  import Material from "./Material"
25
+ import UnleashRateEntryModel from "./UnleashRateEntryModel"
23
26
  import Config from "./Config"
24
27
  import GitHubCheckoutSetting from "./GitHubCheckoutSetting"
25
28
  import ScriptSetting from "./ScriptSetting"
@@ -30,10 +33,13 @@ export {
30
33
  Namespace,
31
34
  RateModel,
32
35
  RateModelMaster,
36
+ UnleashRateModel,
37
+ UnleashRateModelMaster,
33
38
  Progress,
34
39
  CurrentRateMaster,
35
40
  BonusRate,
36
41
  Material,
42
+ UnleashRateEntryModel,
37
43
  Config,
38
44
  GitHubCheckoutSetting,
39
45
  ScriptSetting,
@@ -0,0 +1,46 @@
1
+ import IRequest from '../../core/interface/IRequest';
2
+ import * as Gs2Enhance from '../model';
3
+ export default class CreateUnleashRateModelMasterRequest implements IRequest {
4
+ private requestId;
5
+ private contextStack;
6
+ private namespaceName;
7
+ private name;
8
+ private description;
9
+ private metadata;
10
+ private targetInventoryModelId;
11
+ private gradeModelId;
12
+ private gradeEntries;
13
+ getRequestId(): string | null;
14
+ setRequestId(requestId: string | null): this;
15
+ withRequestId(requestId: string | null): this;
16
+ getContextStack(): string | null;
17
+ setContextStack(contextStack: string | null): this;
18
+ withContextStack(contextStack: string | null): this;
19
+ getNamespaceName(): string | null;
20
+ setNamespaceName(namespaceName: string | null): this;
21
+ withNamespaceName(namespaceName: string | null): this;
22
+ getName(): string | null;
23
+ setName(name: string | null): this;
24
+ withName(name: string | null): this;
25
+ getDescription(): string | null;
26
+ setDescription(description: string | null): this;
27
+ withDescription(description: string | null): this;
28
+ getMetadata(): string | null;
29
+ setMetadata(metadata: string | null): this;
30
+ withMetadata(metadata: string | null): this;
31
+ getTargetInventoryModelId(): string | null;
32
+ setTargetInventoryModelId(targetInventoryModelId: string | null): this;
33
+ withTargetInventoryModelId(targetInventoryModelId: string | null): this;
34
+ getGradeModelId(): string | null;
35
+ setGradeModelId(gradeModelId: string | null): this;
36
+ withGradeModelId(gradeModelId: string | null): this;
37
+ getGradeEntries(): Gs2Enhance.UnleashRateEntryModel[] | null;
38
+ setGradeEntries(gradeEntries: Gs2Enhance.UnleashRateEntryModel[] | null): this;
39
+ withGradeEntries(gradeEntries: Gs2Enhance.UnleashRateEntryModel[] | null): this;
40
+ static fromDict(data: {
41
+ [key: string]: any;
42
+ }): CreateUnleashRateModelMasterRequest;
43
+ toDict(): {
44
+ [key: string]: any;
45
+ };
46
+ }