gs2 1.3.243 → 1.3.245
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/mission/model/ConsumeAction.d.ts +17 -0
- package/mission/model/ConsumeAction.js +62 -0
- package/mission/model/ConsumeAction.js.map +1 -0
- package/mission/model/ConsumeAction.ts +60 -0
- package/mission/model/MissionGroupModel.js.map +1 -1
- package/mission/model/MissionGroupModel.ts +2 -0
- package/mission/model/MissionTaskModel.d.ts +35 -12
- package/mission/model/MissionTaskModel.js +88 -28
- package/mission/model/MissionTaskModel.js.map +1 -1
- package/mission/model/MissionTaskModel.ts +89 -28
- package/mission/model/MissionTaskModelMaster.d.ts +35 -12
- package/mission/model/MissionTaskModelMaster.js +88 -28
- package/mission/model/MissionTaskModelMaster.js.map +1 -1
- package/mission/model/MissionTaskModelMaster.ts +89 -28
- package/mission/model/TargetCounterModel.d.ts +21 -0
- package/mission/model/TargetCounterModel.js +76 -0
- package/mission/model/TargetCounterModel.js.map +1 -0
- package/mission/model/TargetCounterModel.ts +74 -0
- package/mission/model/index.d.ts +4 -2
- package/mission/model/index.js +7 -3
- package/mission/model/index.js.map +1 -1
- package/mission/model/index.ts +6 -2
- package/mission/request/CreateMissionTaskModelMasterRequest.d.ts +33 -12
- package/mission/request/CreateMissionTaskModelMasterRequest.js +86 -28
- package/mission/request/CreateMissionTaskModelMasterRequest.js.map +1 -1
- package/mission/request/CreateMissionTaskModelMasterRequest.ts +87 -28
- package/mission/request/UpdateMissionTaskModelMasterRequest.d.ts +33 -12
- package/mission/request/UpdateMissionTaskModelMasterRequest.js +86 -28
- package/mission/request/UpdateMissionTaskModelMasterRequest.js.map +1 -1
- package/mission/request/UpdateMissionTaskModelMasterRequest.ts +87 -28
- package/mission/request/VerifyCounterValueByStampTaskRequest.d.ts +25 -0
- package/mission/request/VerifyCounterValueByStampTaskRequest.js +83 -0
- package/mission/request/VerifyCounterValueByStampTaskRequest.js.map +1 -0
- package/mission/request/VerifyCounterValueByStampTaskRequest.ts +90 -0
- package/mission/request/VerifyCounterValueByUserIdRequest.d.ts +53 -0
- package/mission/request/VerifyCounterValueByUserIdRequest.js +179 -0
- package/mission/request/VerifyCounterValueByUserIdRequest.js.map +1 -0
- package/mission/request/VerifyCounterValueByUserIdRequest.ts +189 -0
- package/mission/request/VerifyCounterValueRequest.d.ts +49 -0
- package/mission/request/VerifyCounterValueRequest.js +165 -0
- package/mission/request/VerifyCounterValueRequest.js.map +1 -0
- package/mission/request/VerifyCounterValueRequest.ts +175 -0
- package/mission/request/index.d.ts +4 -1
- package/mission/request/index.js +8 -2
- package/mission/request/index.js.map +1 -1
- package/mission/request/index.ts +6 -0
- package/mission/rest.d.ts +3 -0
- package/mission/rest.js +122 -14
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +126 -6
- package/mission/result/VerifyCounterValueByStampTaskResult.d.ts +13 -0
- package/mission/result/VerifyCounterValueByStampTaskResult.js +45 -0
- package/mission/result/VerifyCounterValueByStampTaskResult.js.map +1 -0
- package/mission/result/VerifyCounterValueByStampTaskResult.ts +46 -0
- package/mission/result/VerifyCounterValueByUserIdResult.d.ts +9 -0
- package/mission/result/VerifyCounterValueByUserIdResult.js +30 -0
- package/mission/result/VerifyCounterValueByUserIdResult.js.map +1 -0
- package/mission/result/VerifyCounterValueByUserIdResult.ts +29 -0
- package/mission/result/VerifyCounterValueResult.d.ts +9 -0
- package/mission/result/VerifyCounterValueResult.js +30 -0
- package/mission/result/VerifyCounterValueResult.js.map +1 -0
- package/mission/result/VerifyCounterValueResult.ts +29 -0
- package/mission/result/index.d.ts +4 -1
- package/mission/result/index.js +8 -2
- package/mission/result/index.js.map +1 -1
- package/mission/result/index.ts +6 -0
- package/package.json +1 -1
- package/ranking/model/CategoryModel.d.ts +38 -12
- package/ranking/model/CategoryModel.js +79 -42
- package/ranking/model/CategoryModel.js.map +1 -1
- package/ranking/model/CategoryModel.ts +79 -42
- package/ranking/model/CategoryModelMaster.d.ts +38 -12
- package/ranking/model/CategoryModelMaster.js +79 -42
- package/ranking/model/CategoryModelMaster.js.map +1 -1
- package/ranking/model/CategoryModelMaster.ts +79 -42
- package/ranking/model/FixedTiming.d.ts +17 -0
- package/ranking/model/FixedTiming.js +62 -0
- package/ranking/model/FixedTiming.js.map +1 -0
- package/ranking/model/FixedTiming.ts +60 -0
- package/ranking/model/GlobalRankingSetting.d.ts +35 -0
- package/ranking/model/GlobalRankingSetting.js +134 -0
- package/ranking/model/GlobalRankingSetting.js.map +1 -0
- package/ranking/model/GlobalRankingSetting.ts +134 -0
- package/ranking/model/index.d.ts +4 -2
- package/ranking/model/index.js +7 -3
- package/ranking/model/index.js.map +1 -1
- package/ranking/model/index.ts +6 -2
- package/ranking/request/CreateCategoryModelMasterRequest.d.ts +33 -8
- package/ranking/request/CreateCategoryModelMasterRequest.js +64 -28
- package/ranking/request/CreateCategoryModelMasterRequest.js.map +1 -1
- package/ranking/request/CreateCategoryModelMasterRequest.ts +63 -28
- package/ranking/request/UpdateCategoryModelMasterRequest.d.ts +33 -8
- package/ranking/request/UpdateCategoryModelMasterRequest.js +64 -28
- package/ranking/request/UpdateCategoryModelMasterRequest.js.map +1 -1
- package/ranking/request/UpdateCategoryModelMasterRequest.ts +63 -28
- package/ranking/rest.js +24 -22
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +6 -4
|
@@ -15,6 +15,8 @@ permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
|
+
import TargetCounterModel from './TargetCounterModel';
|
|
19
|
+
import ConsumeAction from './ConsumeAction';
|
|
18
20
|
import AcquireAction from './AcquireAction';
|
|
19
21
|
const grnFormat: string = "grn:gs2:{region}:{ownerId}:mission:{namespaceName}:group:{missionGroupName}:missionTaskModelMaster:{missionTaskName}";
|
|
20
22
|
|
|
@@ -23,15 +25,18 @@ export default class MissionTaskModelMaster implements IModel {
|
|
|
23
25
|
private name: string|null = null;
|
|
24
26
|
private metadata: string|null = null;
|
|
25
27
|
private description: string|null = null;
|
|
26
|
-
private
|
|
27
|
-
private
|
|
28
|
-
private
|
|
28
|
+
private verifyCompleteType: string|null = null;
|
|
29
|
+
private targetCounter: TargetCounterModel|null = null;
|
|
30
|
+
private verifyCompleteConsumeActions: ConsumeAction[]|null = null;
|
|
29
31
|
private completeAcquireActions: AcquireAction[]|null = null;
|
|
30
32
|
private challengePeriodEventId: string|null = null;
|
|
31
33
|
private premiseMissionTaskName: string|null = null;
|
|
32
34
|
private createdAt: number|null = null;
|
|
33
35
|
private updatedAt: number|null = null;
|
|
34
36
|
private revision: number|null = null;
|
|
37
|
+
private counterName: string|null = null;
|
|
38
|
+
private targetResetType: string|null = null;
|
|
39
|
+
private targetValue: number|null = null;
|
|
35
40
|
|
|
36
41
|
public static getRegion(grn: string): string|null {
|
|
37
42
|
const match = grn.match(grnFormat
|
|
@@ -180,37 +185,37 @@ export default class MissionTaskModelMaster implements IModel {
|
|
|
180
185
|
this.description = description;
|
|
181
186
|
return this;
|
|
182
187
|
}
|
|
183
|
-
public
|
|
184
|
-
return this.
|
|
188
|
+
public getVerifyCompleteType(): string|null {
|
|
189
|
+
return this.verifyCompleteType;
|
|
185
190
|
}
|
|
186
|
-
public
|
|
187
|
-
this.
|
|
191
|
+
public setVerifyCompleteType(verifyCompleteType: string|null) {
|
|
192
|
+
this.verifyCompleteType = verifyCompleteType;
|
|
188
193
|
return this;
|
|
189
194
|
}
|
|
190
|
-
public
|
|
191
|
-
this.
|
|
195
|
+
public withVerifyCompleteType(verifyCompleteType: string|null): this {
|
|
196
|
+
this.verifyCompleteType = verifyCompleteType;
|
|
192
197
|
return this;
|
|
193
198
|
}
|
|
194
|
-
public
|
|
195
|
-
return this.
|
|
199
|
+
public getTargetCounter(): TargetCounterModel|null {
|
|
200
|
+
return this.targetCounter;
|
|
196
201
|
}
|
|
197
|
-
public
|
|
198
|
-
this.
|
|
202
|
+
public setTargetCounter(targetCounter: TargetCounterModel|null) {
|
|
203
|
+
this.targetCounter = targetCounter;
|
|
199
204
|
return this;
|
|
200
205
|
}
|
|
201
|
-
public
|
|
202
|
-
this.
|
|
206
|
+
public withTargetCounter(targetCounter: TargetCounterModel|null): this {
|
|
207
|
+
this.targetCounter = targetCounter;
|
|
203
208
|
return this;
|
|
204
209
|
}
|
|
205
|
-
public
|
|
206
|
-
return this.
|
|
210
|
+
public getVerifyCompleteConsumeActions(): ConsumeAction[]|null {
|
|
211
|
+
return this.verifyCompleteConsumeActions;
|
|
207
212
|
}
|
|
208
|
-
public
|
|
209
|
-
this.
|
|
213
|
+
public setVerifyCompleteConsumeActions(verifyCompleteConsumeActions: ConsumeAction[]|null) {
|
|
214
|
+
this.verifyCompleteConsumeActions = verifyCompleteConsumeActions;
|
|
210
215
|
return this;
|
|
211
216
|
}
|
|
212
|
-
public
|
|
213
|
-
this.
|
|
217
|
+
public withVerifyCompleteConsumeActions(verifyCompleteConsumeActions: ConsumeAction[]|null): this {
|
|
218
|
+
this.verifyCompleteConsumeActions = verifyCompleteConsumeActions;
|
|
214
219
|
return this;
|
|
215
220
|
}
|
|
216
221
|
public getCompleteAcquireActions(): AcquireAction[]|null {
|
|
@@ -279,6 +284,48 @@ export default class MissionTaskModelMaster implements IModel {
|
|
|
279
284
|
this.revision = revision;
|
|
280
285
|
return this;
|
|
281
286
|
}
|
|
287
|
+
/** @deprecated */
|
|
288
|
+
public getCounterName(): string|null {
|
|
289
|
+
return this.counterName;
|
|
290
|
+
}
|
|
291
|
+
/** @deprecated */
|
|
292
|
+
public setCounterName(counterName: string|null) {
|
|
293
|
+
this.counterName = counterName;
|
|
294
|
+
return this;
|
|
295
|
+
}
|
|
296
|
+
/** @deprecated */
|
|
297
|
+
public withCounterName(counterName: string|null): this {
|
|
298
|
+
this.counterName = counterName;
|
|
299
|
+
return this;
|
|
300
|
+
}
|
|
301
|
+
/** @deprecated */
|
|
302
|
+
public getTargetResetType(): string|null {
|
|
303
|
+
return this.targetResetType;
|
|
304
|
+
}
|
|
305
|
+
/** @deprecated */
|
|
306
|
+
public setTargetResetType(targetResetType: string|null) {
|
|
307
|
+
this.targetResetType = targetResetType;
|
|
308
|
+
return this;
|
|
309
|
+
}
|
|
310
|
+
/** @deprecated */
|
|
311
|
+
public withTargetResetType(targetResetType: string|null): this {
|
|
312
|
+
this.targetResetType = targetResetType;
|
|
313
|
+
return this;
|
|
314
|
+
}
|
|
315
|
+
/** @deprecated */
|
|
316
|
+
public getTargetValue(): number|null {
|
|
317
|
+
return this.targetValue;
|
|
318
|
+
}
|
|
319
|
+
/** @deprecated */
|
|
320
|
+
public setTargetValue(targetValue: number|null) {
|
|
321
|
+
this.targetValue = targetValue;
|
|
322
|
+
return this;
|
|
323
|
+
}
|
|
324
|
+
/** @deprecated */
|
|
325
|
+
public withTargetValue(targetValue: number|null): this {
|
|
326
|
+
this.targetValue = targetValue;
|
|
327
|
+
return this;
|
|
328
|
+
}
|
|
282
329
|
|
|
283
330
|
public static fromDict(data: {[key: string]: any}): MissionTaskModelMaster|null {
|
|
284
331
|
if (data == undefined || data == null) {
|
|
@@ -289,9 +336,13 @@ export default class MissionTaskModelMaster implements IModel {
|
|
|
289
336
|
.withName(data["name"])
|
|
290
337
|
.withMetadata(data["metadata"])
|
|
291
338
|
.withDescription(data["description"])
|
|
292
|
-
.
|
|
293
|
-
.
|
|
294
|
-
.
|
|
339
|
+
.withVerifyCompleteType(data["verifyCompleteType"])
|
|
340
|
+
.withTargetCounter(TargetCounterModel.fromDict(data["targetCounter"]))
|
|
341
|
+
.withVerifyCompleteConsumeActions(data.verifyCompleteConsumeActions ?
|
|
342
|
+
data.verifyCompleteConsumeActions.map((item: {[key: string]: any}) => {
|
|
343
|
+
return ConsumeAction.fromDict(item);
|
|
344
|
+
}
|
|
345
|
+
) : [])
|
|
295
346
|
.withCompleteAcquireActions(data.completeAcquireActions ?
|
|
296
347
|
data.completeAcquireActions.map((item: {[key: string]: any}) => {
|
|
297
348
|
return AcquireAction.fromDict(item);
|
|
@@ -301,7 +352,10 @@ export default class MissionTaskModelMaster implements IModel {
|
|
|
301
352
|
.withPremiseMissionTaskName(data["premiseMissionTaskName"])
|
|
302
353
|
.withCreatedAt(data["createdAt"])
|
|
303
354
|
.withUpdatedAt(data["updatedAt"])
|
|
304
|
-
.withRevision(data["revision"])
|
|
355
|
+
.withRevision(data["revision"])
|
|
356
|
+
.withCounterName(data["counterName"])
|
|
357
|
+
.withTargetResetType(data["targetResetType"])
|
|
358
|
+
.withTargetValue(data["targetValue"]);
|
|
305
359
|
}
|
|
306
360
|
|
|
307
361
|
public toDict(): {[key: string]: any} {
|
|
@@ -310,9 +364,13 @@ export default class MissionTaskModelMaster implements IModel {
|
|
|
310
364
|
"name": this.getName(),
|
|
311
365
|
"metadata": this.getMetadata(),
|
|
312
366
|
"description": this.getDescription(),
|
|
313
|
-
"
|
|
314
|
-
"
|
|
315
|
-
"
|
|
367
|
+
"verifyCompleteType": this.getVerifyCompleteType(),
|
|
368
|
+
"targetCounter": this.getTargetCounter()?.toDict(),
|
|
369
|
+
"verifyCompleteConsumeActions": this.getVerifyCompleteConsumeActions() ?
|
|
370
|
+
this.getVerifyCompleteConsumeActions()!.map((item: ConsumeAction) => {
|
|
371
|
+
return item.toDict();
|
|
372
|
+
}
|
|
373
|
+
) : [],
|
|
316
374
|
"completeAcquireActions": this.getCompleteAcquireActions() ?
|
|
317
375
|
this.getCompleteAcquireActions()!.map((item: AcquireAction) => {
|
|
318
376
|
return item.toDict();
|
|
@@ -323,6 +381,9 @@ export default class MissionTaskModelMaster implements IModel {
|
|
|
323
381
|
"createdAt": this.getCreatedAt(),
|
|
324
382
|
"updatedAt": this.getUpdatedAt(),
|
|
325
383
|
"revision": this.getRevision(),
|
|
384
|
+
"counterName": this.getCounterName(),
|
|
385
|
+
"targetResetType": this.getTargetResetType(),
|
|
386
|
+
"targetValue": this.getTargetValue(),
|
|
326
387
|
};
|
|
327
388
|
}
|
|
328
389
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class TargetCounterModel implements IModel {
|
|
3
|
+
private counterName;
|
|
4
|
+
private resetType;
|
|
5
|
+
private value;
|
|
6
|
+
getCounterName(): string | null;
|
|
7
|
+
setCounterName(counterName: string | null): this;
|
|
8
|
+
withCounterName(counterName: string | null): this;
|
|
9
|
+
getResetType(): string | null;
|
|
10
|
+
setResetType(resetType: string | null): this;
|
|
11
|
+
withResetType(resetType: string | null): this;
|
|
12
|
+
getValue(): number | null;
|
|
13
|
+
setValue(value: number | null): this;
|
|
14
|
+
withValue(value: number | null): this;
|
|
15
|
+
static fromDict(data: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}): TargetCounterModel | null;
|
|
18
|
+
toDict(): {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -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 TargetCounterModel = /** @class */ (function () {
|
|
19
|
+
function TargetCounterModel() {
|
|
20
|
+
this.counterName = null;
|
|
21
|
+
this.resetType = null;
|
|
22
|
+
this.value = null;
|
|
23
|
+
}
|
|
24
|
+
TargetCounterModel.prototype.getCounterName = function () {
|
|
25
|
+
return this.counterName;
|
|
26
|
+
};
|
|
27
|
+
TargetCounterModel.prototype.setCounterName = function (counterName) {
|
|
28
|
+
this.counterName = counterName;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
TargetCounterModel.prototype.withCounterName = function (counterName) {
|
|
32
|
+
this.counterName = counterName;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
TargetCounterModel.prototype.getResetType = function () {
|
|
36
|
+
return this.resetType;
|
|
37
|
+
};
|
|
38
|
+
TargetCounterModel.prototype.setResetType = function (resetType) {
|
|
39
|
+
this.resetType = resetType;
|
|
40
|
+
return this;
|
|
41
|
+
};
|
|
42
|
+
TargetCounterModel.prototype.withResetType = function (resetType) {
|
|
43
|
+
this.resetType = resetType;
|
|
44
|
+
return this;
|
|
45
|
+
};
|
|
46
|
+
TargetCounterModel.prototype.getValue = function () {
|
|
47
|
+
return this.value;
|
|
48
|
+
};
|
|
49
|
+
TargetCounterModel.prototype.setValue = function (value) {
|
|
50
|
+
this.value = value;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
TargetCounterModel.prototype.withValue = function (value) {
|
|
54
|
+
this.value = value;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
TargetCounterModel.fromDict = function (data) {
|
|
58
|
+
if (data == undefined || data == null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return new TargetCounterModel()
|
|
62
|
+
.withCounterName(data["counterName"])
|
|
63
|
+
.withResetType(data["resetType"])
|
|
64
|
+
.withValue(data["value"]);
|
|
65
|
+
};
|
|
66
|
+
TargetCounterModel.prototype.toDict = function () {
|
|
67
|
+
return {
|
|
68
|
+
"counterName": this.getCounterName(),
|
|
69
|
+
"resetType": this.getResetType(),
|
|
70
|
+
"value": this.getValue(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
return TargetCounterModel;
|
|
74
|
+
}());
|
|
75
|
+
exports.default = TargetCounterModel;
|
|
76
|
+
//# sourceMappingURL=TargetCounterModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TargetCounterModel.js","sourceRoot":"","sources":["TargetCounterModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,gBAAW,GAAgB,IAAI,CAAC;QAChC,cAAS,GAAgB,IAAI,CAAC;QAC9B,UAAK,GAAgB,IAAI,CAAC;IAoDtC,CAAC;IAnDU,2CAAc,GAArB;QACI,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IACM,2CAAc,GAArB,UAAsB,WAAwB;QAC1C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,4CAAe,GAAtB,UAAuB,WAAwB;QAC3C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,yCAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IACM,yCAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,0CAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,qCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IACM,qCAAQ,GAAf,UAAgB,KAAkB;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,sCAAS,GAAhB,UAAiB,KAAkB;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,2BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,kBAAkB,EAAE;aAC1B,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACpC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAClC,CAAC;IAEM,mCAAM,GAAb;QACI,OAAO;YACH,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;SAC3B,CAAC;IACN,CAAC;IACL,yBAAC;AAAD,CAAC,AAvDD,IAuDC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
|
|
19
|
+
export default class TargetCounterModel implements IModel {
|
|
20
|
+
private counterName: string|null = null;
|
|
21
|
+
private resetType: string|null = null;
|
|
22
|
+
private value: number|null = null;
|
|
23
|
+
public getCounterName(): string|null {
|
|
24
|
+
return this.counterName;
|
|
25
|
+
}
|
|
26
|
+
public setCounterName(counterName: string|null) {
|
|
27
|
+
this.counterName = counterName;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
public withCounterName(counterName: string|null): this {
|
|
31
|
+
this.counterName = counterName;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
public getResetType(): string|null {
|
|
35
|
+
return this.resetType;
|
|
36
|
+
}
|
|
37
|
+
public setResetType(resetType: string|null) {
|
|
38
|
+
this.resetType = resetType;
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
public withResetType(resetType: string|null): this {
|
|
42
|
+
this.resetType = resetType;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
public getValue(): number|null {
|
|
46
|
+
return this.value;
|
|
47
|
+
}
|
|
48
|
+
public setValue(value: number|null) {
|
|
49
|
+
this.value = value;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
public withValue(value: number|null): this {
|
|
53
|
+
this.value = value;
|
|
54
|
+
return this;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public static fromDict(data: {[key: string]: any}): TargetCounterModel|null {
|
|
58
|
+
if (data == undefined || data == null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return new TargetCounterModel()
|
|
62
|
+
.withCounterName(data["counterName"])
|
|
63
|
+
.withResetType(data["resetType"])
|
|
64
|
+
.withValue(data["value"]);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public toDict(): {[key: string]: any} {
|
|
68
|
+
return {
|
|
69
|
+
"counterName": this.getCounterName(),
|
|
70
|
+
"resetType": this.getResetType(),
|
|
71
|
+
"value": this.getValue(),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
}
|
package/mission/model/index.d.ts
CHANGED
|
@@ -9,12 +9,14 @@ import CurrentMissionMaster from "./CurrentMissionMaster";
|
|
|
9
9
|
import CounterModel from "./CounterModel";
|
|
10
10
|
import MissionGroupModel from "./MissionGroupModel";
|
|
11
11
|
import MissionTaskModel from "./MissionTaskModel";
|
|
12
|
-
import ScopedValue from "./ScopedValue";
|
|
13
12
|
import MissionTaskModelMaster from "./MissionTaskModelMaster";
|
|
13
|
+
import ScopedValue from "./ScopedValue";
|
|
14
|
+
import TargetCounterModel from "./TargetCounterModel";
|
|
14
15
|
import AcquireAction from "./AcquireAction";
|
|
16
|
+
import ConsumeAction from "./ConsumeAction";
|
|
15
17
|
import Config from "./Config";
|
|
16
18
|
import LogSetting from "./LogSetting";
|
|
17
19
|
import GitHubCheckoutSetting from "./GitHubCheckoutSetting";
|
|
18
20
|
import ScriptSetting from "./ScriptSetting";
|
|
19
21
|
import TransactionSetting from "./TransactionSetting";
|
|
20
|
-
export { Complete, NotificationSetting, CounterModelMaster, CounterScopeModel, MissionGroupModelMaster, Namespace, Counter, CurrentMissionMaster, CounterModel, MissionGroupModel, MissionTaskModel, ScopedValue,
|
|
22
|
+
export { Complete, NotificationSetting, CounterModelMaster, CounterScopeModel, MissionGroupModelMaster, Namespace, Counter, CurrentMissionMaster, CounterModel, MissionGroupModel, MissionTaskModel, MissionTaskModelMaster, ScopedValue, TargetCounterModel, AcquireAction, ConsumeAction, Config, LogSetting, GitHubCheckoutSetting, ScriptSetting, TransactionSetting, };
|
package/mission/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionSetting = exports.ScriptSetting = exports.GitHubCheckoutSetting = exports.LogSetting = exports.Config = exports.AcquireAction = exports.
|
|
3
|
+
exports.TransactionSetting = exports.ScriptSetting = exports.GitHubCheckoutSetting = exports.LogSetting = exports.Config = exports.ConsumeAction = exports.AcquireAction = exports.TargetCounterModel = exports.ScopedValue = exports.MissionTaskModelMaster = exports.MissionTaskModel = exports.MissionGroupModel = exports.CounterModel = exports.CurrentMissionMaster = exports.Counter = exports.Namespace = exports.MissionGroupModelMaster = exports.CounterScopeModel = exports.CounterModelMaster = exports.NotificationSetting = exports.Complete = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -39,12 +39,16 @@ var MissionGroupModel_1 = tslib_1.__importDefault(require("./MissionGroupModel")
|
|
|
39
39
|
exports.MissionGroupModel = MissionGroupModel_1.default;
|
|
40
40
|
var MissionTaskModel_1 = tslib_1.__importDefault(require("./MissionTaskModel"));
|
|
41
41
|
exports.MissionTaskModel = MissionTaskModel_1.default;
|
|
42
|
-
var ScopedValue_1 = tslib_1.__importDefault(require("./ScopedValue"));
|
|
43
|
-
exports.ScopedValue = ScopedValue_1.default;
|
|
44
42
|
var MissionTaskModelMaster_1 = tslib_1.__importDefault(require("./MissionTaskModelMaster"));
|
|
45
43
|
exports.MissionTaskModelMaster = MissionTaskModelMaster_1.default;
|
|
44
|
+
var ScopedValue_1 = tslib_1.__importDefault(require("./ScopedValue"));
|
|
45
|
+
exports.ScopedValue = ScopedValue_1.default;
|
|
46
|
+
var TargetCounterModel_1 = tslib_1.__importDefault(require("./TargetCounterModel"));
|
|
47
|
+
exports.TargetCounterModel = TargetCounterModel_1.default;
|
|
46
48
|
var AcquireAction_1 = tslib_1.__importDefault(require("./AcquireAction"));
|
|
47
49
|
exports.AcquireAction = AcquireAction_1.default;
|
|
50
|
+
var ConsumeAction_1 = tslib_1.__importDefault(require("./ConsumeAction"));
|
|
51
|
+
exports.ConsumeAction = ConsumeAction_1.default;
|
|
48
52
|
var Config_1 = tslib_1.__importDefault(require("./Config"));
|
|
49
53
|
exports.Config = Config_1.default;
|
|
50
54
|
var LogSetting_1 = tslib_1.__importDefault(require("./LogSetting"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gEAAiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gEAAiC;AAuB7B,mBAvBG,kBAAQ,CAuBH;AAtBZ,sFAAuD;AAuBnD,8BAvBG,6BAAmB,CAuBH;AAtBvB,oFAAqD;AAuBjD,6BAvBG,4BAAkB,CAuBH;AAtBtB,kFAAmD;AAuB/C,4BAvBG,2BAAiB,CAuBH;AAtBrB,8FAA+D;AAuB3D,kCAvBG,iCAAuB,CAuBH;AAtB3B,kEAAmC;AAuB/B,oBAvBG,mBAAS,CAuBH;AAtBb,8DAA+B;AAuB3B,kBAvBG,iBAAO,CAuBH;AAtBX,wFAAyD;AAuBrD,+BAvBG,8BAAoB,CAuBH;AAtBxB,wEAAyC;AAuBrC,uBAvBG,sBAAY,CAuBH;AAtBhB,kFAAmD;AAuB/C,4BAvBG,2BAAiB,CAuBH;AAtBrB,gFAAiD;AAuB7C,2BAvBG,0BAAgB,CAuBH;AAtBpB,4FAA6D;AAuBzD,iCAvBG,gCAAsB,CAuBH;AAtB1B,sEAAuC;AAuBnC,sBAvBG,qBAAW,CAuBH;AAtBf,oFAAqD;AAuBjD,6BAvBG,4BAAkB,CAuBH;AAtBtB,0EAA2C;AAuBvC,wBAvBG,uBAAa,CAuBH;AAtBjB,0EAA2C;AAuBvC,wBAvBG,uBAAa,CAuBH;AAtBjB,4DAA6B;AAuBzB,iBAvBG,gBAAM,CAuBH;AAtBV,oEAAqC;AAuBjC,qBAvBG,oBAAU,CAuBH;AAtBd,0FAA2D;AAuBvD,gCAvBG,+BAAqB,CAuBH;AAtBzB,0EAA2C;AAuBvC,wBAvBG,uBAAa,CAuBH;AAtBjB,oFAAqD;AAuBjD,6BAvBG,4BAAkB,CAuBH"}
|
package/mission/model/index.ts
CHANGED
|
@@ -24,9 +24,11 @@ import CurrentMissionMaster from "./CurrentMissionMaster"
|
|
|
24
24
|
import CounterModel from "./CounterModel"
|
|
25
25
|
import MissionGroupModel from "./MissionGroupModel"
|
|
26
26
|
import MissionTaskModel from "./MissionTaskModel"
|
|
27
|
-
import ScopedValue from "./ScopedValue"
|
|
28
27
|
import MissionTaskModelMaster from "./MissionTaskModelMaster"
|
|
28
|
+
import ScopedValue from "./ScopedValue"
|
|
29
|
+
import TargetCounterModel from "./TargetCounterModel"
|
|
29
30
|
import AcquireAction from "./AcquireAction"
|
|
31
|
+
import ConsumeAction from "./ConsumeAction"
|
|
30
32
|
import Config from "./Config"
|
|
31
33
|
import LogSetting from "./LogSetting"
|
|
32
34
|
import GitHubCheckoutSetting from "./GitHubCheckoutSetting"
|
|
@@ -45,9 +47,11 @@ export {
|
|
|
45
47
|
CounterModel,
|
|
46
48
|
MissionGroupModel,
|
|
47
49
|
MissionTaskModel,
|
|
48
|
-
ScopedValue,
|
|
49
50
|
MissionTaskModelMaster,
|
|
51
|
+
ScopedValue,
|
|
52
|
+
TargetCounterModel,
|
|
50
53
|
AcquireAction,
|
|
54
|
+
ConsumeAction,
|
|
51
55
|
Config,
|
|
52
56
|
LogSetting,
|
|
53
57
|
GitHubCheckoutSetting,
|
|
@@ -8,12 +8,15 @@ export default class CreateMissionTaskModelMasterRequest implements IRequest {
|
|
|
8
8
|
private name;
|
|
9
9
|
private metadata;
|
|
10
10
|
private description;
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
11
|
+
private verifyCompleteType;
|
|
12
|
+
private targetCounter;
|
|
13
|
+
private verifyCompleteConsumeActions;
|
|
14
14
|
private completeAcquireActions;
|
|
15
15
|
private challengePeriodEventId;
|
|
16
16
|
private premiseMissionTaskName;
|
|
17
|
+
private counterName;
|
|
18
|
+
private targetResetType;
|
|
19
|
+
private targetValue;
|
|
17
20
|
getRequestId(): string | null;
|
|
18
21
|
setRequestId(requestId: string | null): this;
|
|
19
22
|
withRequestId(requestId: string | null): this;
|
|
@@ -35,15 +38,15 @@ export default class CreateMissionTaskModelMasterRequest implements IRequest {
|
|
|
35
38
|
getDescription(): string | null;
|
|
36
39
|
setDescription(description: string | null): this;
|
|
37
40
|
withDescription(description: string | null): this;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
getVerifyCompleteType(): string | null;
|
|
42
|
+
setVerifyCompleteType(verifyCompleteType: string | null): this;
|
|
43
|
+
withVerifyCompleteType(verifyCompleteType: string | null): this;
|
|
44
|
+
getTargetCounter(): Gs2Mission.TargetCounterModel | null;
|
|
45
|
+
setTargetCounter(targetCounter: Gs2Mission.TargetCounterModel | null): this;
|
|
46
|
+
withTargetCounter(targetCounter: Gs2Mission.TargetCounterModel | null): this;
|
|
47
|
+
getVerifyCompleteConsumeActions(): Gs2Mission.ConsumeAction[] | null;
|
|
48
|
+
setVerifyCompleteConsumeActions(verifyCompleteConsumeActions: Gs2Mission.ConsumeAction[] | null): this;
|
|
49
|
+
withVerifyCompleteConsumeActions(verifyCompleteConsumeActions: Gs2Mission.ConsumeAction[] | null): this;
|
|
47
50
|
getCompleteAcquireActions(): Gs2Mission.AcquireAction[] | null;
|
|
48
51
|
setCompleteAcquireActions(completeAcquireActions: Gs2Mission.AcquireAction[] | null): this;
|
|
49
52
|
withCompleteAcquireActions(completeAcquireActions: Gs2Mission.AcquireAction[] | null): this;
|
|
@@ -53,6 +56,24 @@ export default class CreateMissionTaskModelMasterRequest implements IRequest {
|
|
|
53
56
|
getPremiseMissionTaskName(): string | null;
|
|
54
57
|
setPremiseMissionTaskName(premiseMissionTaskName: string | null): this;
|
|
55
58
|
withPremiseMissionTaskName(premiseMissionTaskName: string | null): this;
|
|
59
|
+
/** @deprecated */
|
|
60
|
+
getCounterName(): string | null;
|
|
61
|
+
/** @deprecated */
|
|
62
|
+
setCounterName(counterName: string | null): this;
|
|
63
|
+
/** @deprecated */
|
|
64
|
+
withCounterName(counterName: string | null): this;
|
|
65
|
+
/** @deprecated */
|
|
66
|
+
getTargetResetType(): string | null;
|
|
67
|
+
/** @deprecated */
|
|
68
|
+
setTargetResetType(targetResetType: string | null): this;
|
|
69
|
+
/** @deprecated */
|
|
70
|
+
withTargetResetType(targetResetType: string | null): this;
|
|
71
|
+
/** @deprecated */
|
|
72
|
+
getTargetValue(): number | null;
|
|
73
|
+
/** @deprecated */
|
|
74
|
+
setTargetValue(targetValue: number | null): this;
|
|
75
|
+
/** @deprecated */
|
|
76
|
+
withTargetValue(targetValue: number | null): this;
|
|
56
77
|
static fromDict(data: {
|
|
57
78
|
[key: string]: any;
|
|
58
79
|
}): CreateMissionTaskModelMasterRequest;
|