gs2-cdk 1.0.51 → 1.0.52
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/enhance/model/CurrentMasterData.d.ts +3 -1
- package/enhance/model/CurrentMasterData.js +5 -1
- package/enhance/model/CurrentMasterData.js.map +1 -1
- package/enhance/model/CurrentMasterData.ts +8 -0
- package/enhance/model/Namespace.d.ts +2 -1
- package/enhance/model/Namespace.js +2 -2
- package/enhance/model/Namespace.js.map +1 -1
- package/enhance/model/Namespace.ts +3 -0
- package/enhance/model/UnleashRateEntryModel.d.ts +9 -0
- package/enhance/model/UnleashRateEntryModel.js +20 -0
- package/enhance/model/UnleashRateEntryModel.js.map +1 -0
- package/enhance/model/UnleashRateEntryModel.ts +44 -0
- package/enhance/model/UnleashRateModel.d.ts +14 -0
- package/enhance/model/UnleashRateModel.js +39 -0
- package/enhance/model/UnleashRateModel.js.map +1 -0
- package/enhance/model/UnleashRateModel.ts +68 -0
- package/enhance/model/index.d.ts +5 -1
- package/enhance/model/index.js +5 -1
- package/enhance/model/index.js.map +1 -1
- package/enhance/model/index.ts +8 -0
- package/enhance/model/options/UnleashRateEntryModelOptions.d.ts +2 -0
- package/enhance/model/options/UnleashRateEntryModelOptions.js +18 -0
- package/enhance/model/options/UnleashRateEntryModelOptions.js.map +1 -0
- package/enhance/model/options/UnleashRateEntryModelOptions.ts +19 -0
- package/enhance/model/options/UnleashRateModelOptions.d.ts +4 -0
- package/enhance/model/options/UnleashRateModelOptions.js +3 -0
- package/enhance/model/options/UnleashRateModelOptions.js.map +1 -0
- package/enhance/model/options/UnleashRateModelOptions.ts +22 -0
- package/enhance/ref/NamespaceRef.d.ts +2 -0
- package/enhance/ref/NamespaceRef.js +4 -0
- package/enhance/ref/NamespaceRef.js.map +1 -1
- package/enhance/ref/NamespaceRef.ts +10 -0
- package/enhance/ref/UnleashRateModelRef.d.ts +6 -0
- package/enhance/ref/UnleashRateModelRef.js +38 -0
- package/enhance/ref/UnleashRateModelRef.js.map +1 -0
- package/enhance/ref/UnleashRateModelRef.ts +52 -0
- package/enhance/ref/index.d.ts +2 -1
- package/enhance/ref/index.js +3 -1
- package/enhance/ref/index.js.map +1 -1
- package/enhance/ref/index.ts +2 -0
- package/enhance/stampSheet/UnleashByUserId.d.ts +15 -0
- package/enhance/stampSheet/UnleashByUserId.js +57 -0
- package/enhance/stampSheet/UnleashByUserId.js.map +1 -0
- package/enhance/stampSheet/UnleashByUserId.ts +77 -0
- package/enhance/stampSheet/index.d.ts +2 -1
- package/enhance/stampSheet/index.js +3 -1
- package/enhance/stampSheet/index.js.map +1 -1
- package/enhance/stampSheet/index.ts +2 -0
- package/grade/model/GradeEntryModel.d.ts +2 -2
- package/grade/model/GradeEntryModel.js +3 -4
- package/grade/model/GradeEntryModel.js.map +1 -1
- package/grade/model/GradeEntryModel.ts +3 -2
- package/grade/model/options/GradeEntryModelOptions.d.ts +0 -1
- package/grade/model/options/GradeEntryModelOptions.ts +0 -1
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CdkResource, Stack } from "../../core/model";
|
|
2
2
|
import RateModel from "./RateModel";
|
|
3
|
+
import UnleashRateModel from "./UnleashRateModel";
|
|
3
4
|
export default class CurrentMasterData extends CdkResource {
|
|
4
5
|
private readonly version;
|
|
5
6
|
private readonly namespaceName;
|
|
6
7
|
private readonly rateModels;
|
|
7
|
-
|
|
8
|
+
private readonly unleashRateModels;
|
|
9
|
+
constructor(stack: Stack, namespaceName: string, rateModels: RateModel[], unleashRateModels: UnleashRateModel[]);
|
|
8
10
|
alternateKeys(): string;
|
|
9
11
|
resourceType(): string;
|
|
10
12
|
properties(): {
|
|
@@ -17,11 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
*/
|
|
18
18
|
const model_1 = require("../../core/model");
|
|
19
19
|
class CurrentMasterData extends model_1.CdkResource {
|
|
20
|
-
constructor(stack, namespaceName, rateModels) {
|
|
20
|
+
constructor(stack, namespaceName, rateModels, unleashRateModels) {
|
|
21
21
|
super("Enhance_CurrentRateMaster_" + namespaceName);
|
|
22
22
|
this.version = "2020-08-22";
|
|
23
23
|
this.namespaceName = namespaceName;
|
|
24
24
|
this.rateModels = rateModels;
|
|
25
|
+
this.unleashRateModels = unleashRateModels;
|
|
25
26
|
stack.addResource(this);
|
|
26
27
|
}
|
|
27
28
|
alternateKeys() {
|
|
@@ -37,6 +38,9 @@ class CurrentMasterData extends model_1.CdkResource {
|
|
|
37
38
|
if (this.rateModels != null) {
|
|
38
39
|
settings["rateModels"] = this.rateModels.map(v => v.properties());
|
|
39
40
|
}
|
|
41
|
+
if (this.unleashRateModels != null) {
|
|
42
|
+
settings["unleashRateModels"] = this.unleashRateModels.map(v => v.properties());
|
|
43
|
+
}
|
|
40
44
|
if (this.namespaceName != null) {
|
|
41
45
|
properties["NamespaceName"] = this.namespaceName;
|
|
42
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrentMasterData.js","sourceRoot":"","sources":["CurrentMasterData.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AACH,4CAAoD;
|
|
1
|
+
{"version":3,"file":"CurrentMasterData.js","sourceRoot":"","sources":["CurrentMasterData.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AACH,4CAAoD;AAIpD,MAAqB,iBAAkB,SAAQ,mBAAW;IAMtD,YACI,KAAY,EACZ,aAAqB,EACrB,UAAuB,EACvB,iBAAqC;QAErC,KAAK,CACD,4BAA4B,GAAG,aAAa,CAC/C,CAAC;QAbW,YAAO,GAAU,YAAY,CAAC;QAe3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAEM,aAAa;QAEhB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEM,YAAY;QAEf,OAAO,iCAAiC,CAAC;IAC7C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAC3C,IAAI,QAAQ,GAA0B,EAAE,CAAC;QAEzC,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAA;QAClC,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,QAAQ,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACzD,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,QAAQ,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACvE,CAAC,CAAC;SACV;QAED,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,QAAQ,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC;SACrC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1DD,oCA0DC"}
|
|
@@ -15,16 +15,19 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import {CdkResource, Stack} from "../../core/model";
|
|
17
17
|
import RateModel from "./RateModel";
|
|
18
|
+
import UnleashRateModel from "./UnleashRateModel";
|
|
18
19
|
|
|
19
20
|
export default class CurrentMasterData extends CdkResource {
|
|
20
21
|
private readonly version: string= "2020-08-22";
|
|
21
22
|
private readonly namespaceName: string;
|
|
22
23
|
private readonly rateModels: RateModel[];
|
|
24
|
+
private readonly unleashRateModels: UnleashRateModel[];
|
|
23
25
|
|
|
24
26
|
public constructor(
|
|
25
27
|
stack: Stack,
|
|
26
28
|
namespaceName: string,
|
|
27
29
|
rateModels: RateModel[],
|
|
30
|
+
unleashRateModels: UnleashRateModel[],
|
|
28
31
|
) {
|
|
29
32
|
super(
|
|
30
33
|
"Enhance_CurrentRateMaster_" + namespaceName
|
|
@@ -32,6 +35,7 @@ export default class CurrentMasterData extends CdkResource {
|
|
|
32
35
|
|
|
33
36
|
this.namespaceName = namespaceName;
|
|
34
37
|
this.rateModels = rateModels;
|
|
38
|
+
this.unleashRateModels = unleashRateModels;
|
|
35
39
|
stack.addResource(
|
|
36
40
|
this,
|
|
37
41
|
);
|
|
@@ -57,6 +61,10 @@ export default class CurrentMasterData extends CdkResource {
|
|
|
57
61
|
settings["rateModels"] = this.rateModels.map(v => v.properties(
|
|
58
62
|
));
|
|
59
63
|
}
|
|
64
|
+
if (this.unleashRateModels != null) {
|
|
65
|
+
settings["unleashRateModels"] = this.unleashRateModels.map(v => v.properties(
|
|
66
|
+
));
|
|
67
|
+
}
|
|
60
68
|
|
|
61
69
|
if (this.namespaceName != null) {
|
|
62
70
|
properties["NamespaceName"] = this.namespaceName;
|
|
@@ -2,6 +2,7 @@ import { CdkResource, Stack } from "../../core/model";
|
|
|
2
2
|
import { GetAttr } from "../../core/func";
|
|
3
3
|
import NamespaceRef from "../ref/NamespaceRef";
|
|
4
4
|
import RateModel from "./RateModel";
|
|
5
|
+
import UnleashRateModel from "./UnleashRateModel";
|
|
5
6
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
6
7
|
export default class Namespace extends CdkResource {
|
|
7
8
|
private readonly stack;
|
|
@@ -19,5 +20,5 @@ export default class Namespace extends CdkResource {
|
|
|
19
20
|
};
|
|
20
21
|
ref(): NamespaceRef;
|
|
21
22
|
getAttrNamespaceId(): GetAttr;
|
|
22
|
-
masterData(rateModels: RateModel[]): Namespace;
|
|
23
|
+
masterData(rateModels: RateModel[], unleashRateModels: UnleashRateModel[]): Namespace;
|
|
23
24
|
}
|
|
@@ -73,8 +73,8 @@ class Namespace extends model_1.CdkResource {
|
|
|
73
73
|
getAttrNamespaceId() {
|
|
74
74
|
return new func_1.GetAttr(this, "Item.NamespaceId", null);
|
|
75
75
|
}
|
|
76
|
-
masterData(rateModels) {
|
|
77
|
-
new CurrentMasterData_1.default(this.stack, this.name, rateModels).addDependsOn(this);
|
|
76
|
+
masterData(rateModels, unleashRateModels) {
|
|
77
|
+
new CurrentMasterData_1.default(this.stack, this.name, rateModels, unleashRateModels).addDependsOn(this);
|
|
78
78
|
return this;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;AAMpD,MAAqB,SAAU,SAAQ,mBAAW;IAS9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,oBAAoB,GAAG,IAAI,CAC9B,CAAC;QAbW,gBAAW,GAAgB,IAAI,CAAC;QAChC,wBAAmB,GAAiB,IAAI,CAAC;QACzC,uBAAkB,GAA4B,IAAI,CAAC;QACnD,kBAAa,GAAuB,IAAI,CAAC;QACzC,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,mBAAmB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,mCAAI,IAAI,CAAC;QAChE,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,IAAI,CAAC;QAC9D,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAGM,aAAa;QAEhB,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,YAAY;QAEf,OAAO,yBAAyB,CAAC;IACrC,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,EAAE;YAClC,UAAU,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC;SAChE;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,UAAU,EACrE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,MAAA,IAAI,CAAC,aAAa,0CAAE,UAAU,EAC3D,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,UAAuB,EACvB,iBAAqC;QAErC,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,UAAU,EACV,iBAAiB,CACpB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AApGD,4BAoGC"}
|
|
@@ -23,6 +23,7 @@ import LogSetting from "../../core/model/LogSetting";
|
|
|
23
23
|
import NamespaceRef from "../ref/NamespaceRef";
|
|
24
24
|
import CurrentMasterData from "./CurrentMasterData";
|
|
25
25
|
import RateModel from "./RateModel";
|
|
26
|
+
import UnleashRateModel from "./UnleashRateModel";
|
|
26
27
|
|
|
27
28
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
28
29
|
|
|
@@ -114,11 +115,13 @@ export default class Namespace extends CdkResource {
|
|
|
114
115
|
|
|
115
116
|
public masterData(
|
|
116
117
|
rateModels: RateModel[],
|
|
118
|
+
unleashRateModels: UnleashRateModel[],
|
|
117
119
|
): Namespace {
|
|
118
120
|
new CurrentMasterData(
|
|
119
121
|
this.stack,
|
|
120
122
|
this.name,
|
|
121
123
|
rateModels,
|
|
124
|
+
unleashRateModels,
|
|
122
125
|
).addDependsOn(
|
|
123
126
|
this,
|
|
124
127
|
);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UnleashRateEntryModelOptions } from "./options/UnleashRateEntryModelOptions";
|
|
2
|
+
export default class UnleashRateEntryModel {
|
|
3
|
+
private readonly gradeValue;
|
|
4
|
+
private readonly needCount;
|
|
5
|
+
constructor(gradeValue: number, needCount: number, options?: UnleashRateEntryModelOptions | null);
|
|
6
|
+
properties(): {
|
|
7
|
+
[name: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class UnleashRateEntryModel {
|
|
4
|
+
constructor(gradeValue, needCount, options = null) {
|
|
5
|
+
this.gradeValue = gradeValue;
|
|
6
|
+
this.needCount = needCount;
|
|
7
|
+
}
|
|
8
|
+
properties() {
|
|
9
|
+
let properties = {};
|
|
10
|
+
if (this.gradeValue != null) {
|
|
11
|
+
properties["gradeValue"] = this.gradeValue;
|
|
12
|
+
}
|
|
13
|
+
if (this.needCount != null) {
|
|
14
|
+
properties["needCount"] = this.needCount;
|
|
15
|
+
}
|
|
16
|
+
return properties;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = UnleashRateEntryModel;
|
|
20
|
+
//# sourceMappingURL=UnleashRateEntryModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashRateEntryModel.js","sourceRoot":"","sources":["UnleashRateEntryModel.ts"],"names":[],"mappings":";;AAiBA,MAAqB,qBAAqB;IAItC,YACI,UAAkB,EAClB,SAAiB,EACjB,UAA6C,IAAI;QAEjD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,wCA0BC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import { UnleashRateEntryModelOptions } from "./options/UnleashRateEntryModelOptions";
|
|
17
|
+
|
|
18
|
+
export default class UnleashRateEntryModel {
|
|
19
|
+
private readonly gradeValue: number;
|
|
20
|
+
private readonly needCount: number;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
gradeValue: number,
|
|
24
|
+
needCount: number,
|
|
25
|
+
options: UnleashRateEntryModelOptions|null = null,
|
|
26
|
+
) {
|
|
27
|
+
this.gradeValue = gradeValue;
|
|
28
|
+
this.needCount = needCount;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.gradeValue != null) {
|
|
36
|
+
properties["gradeValue"] = this.gradeValue;
|
|
37
|
+
}
|
|
38
|
+
if (this.needCount != null) {
|
|
39
|
+
properties["needCount"] = this.needCount;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return properties;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import UnleashRateEntryModel from "./UnleashRateEntryModel";
|
|
2
|
+
import { UnleashRateModelOptions } from "./options/UnleashRateModelOptions";
|
|
3
|
+
export default class UnleashRateModel {
|
|
4
|
+
private readonly name;
|
|
5
|
+
private readonly targetInventoryModelId;
|
|
6
|
+
private readonly gradeModelId;
|
|
7
|
+
private readonly gradeEntries;
|
|
8
|
+
private readonly description;
|
|
9
|
+
private readonly metadata;
|
|
10
|
+
constructor(name: string, targetInventoryModelId: string, gradeModelId: string, gradeEntries: UnleashRateEntryModel[], options?: UnleashRateModelOptions | null);
|
|
11
|
+
properties(): {
|
|
12
|
+
[name: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class UnleashRateModel {
|
|
4
|
+
constructor(name, targetInventoryModelId, gradeModelId, gradeEntries, options = null) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
this.description = null;
|
|
7
|
+
this.metadata = null;
|
|
8
|
+
this.name = name;
|
|
9
|
+
this.targetInventoryModelId = targetInventoryModelId;
|
|
10
|
+
this.gradeModelId = gradeModelId;
|
|
11
|
+
this.gradeEntries = gradeEntries;
|
|
12
|
+
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
13
|
+
this.metadata = (_b = options === null || options === void 0 ? void 0 : options.metadata) !== null && _b !== void 0 ? _b : null;
|
|
14
|
+
}
|
|
15
|
+
properties() {
|
|
16
|
+
let properties = {};
|
|
17
|
+
if (this.name != null) {
|
|
18
|
+
properties["name"] = this.name;
|
|
19
|
+
}
|
|
20
|
+
if (this.description != null) {
|
|
21
|
+
properties["description"] = this.description;
|
|
22
|
+
}
|
|
23
|
+
if (this.metadata != null) {
|
|
24
|
+
properties["metadata"] = this.metadata;
|
|
25
|
+
}
|
|
26
|
+
if (this.targetInventoryModelId != null) {
|
|
27
|
+
properties["targetInventoryModelId"] = this.targetInventoryModelId;
|
|
28
|
+
}
|
|
29
|
+
if (this.gradeModelId != null) {
|
|
30
|
+
properties["gradeModelId"] = this.gradeModelId;
|
|
31
|
+
}
|
|
32
|
+
if (this.gradeEntries != null) {
|
|
33
|
+
properties["gradeEntries"] = this.gradeEntries.map(v => v.properties());
|
|
34
|
+
}
|
|
35
|
+
return properties;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.default = UnleashRateModel;
|
|
39
|
+
//# sourceMappingURL=UnleashRateModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashRateModel.js","sourceRoot":"","sources":["UnleashRateModel.ts"],"names":[],"mappings":";;AAkBA,MAAqB,gBAAgB;IAQjC,YACI,IAAY,EACZ,sBAA8B,EAC9B,YAAoB,EACpB,YAAqC,EACrC,UAAwC,IAAI;;QAR/B,gBAAW,GAAgB,IAAI,CAAC;QAChC,aAAQ,GAAgB,IAAI,CAAC;QAS1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,UAAU,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;SACtE;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC;SAClD;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC/D,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAjDD,mCAiDC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
import UnleashRateEntryModel from "./UnleashRateEntryModel";
|
|
17
|
+
import { UnleashRateModelOptions } from "./options/UnleashRateModelOptions";
|
|
18
|
+
|
|
19
|
+
export default class UnleashRateModel {
|
|
20
|
+
private readonly name: string;
|
|
21
|
+
private readonly targetInventoryModelId: string;
|
|
22
|
+
private readonly gradeModelId: string;
|
|
23
|
+
private readonly gradeEntries: UnleashRateEntryModel[];
|
|
24
|
+
private readonly description: string|null = null;
|
|
25
|
+
private readonly metadata: string|null = null;
|
|
26
|
+
|
|
27
|
+
public constructor(
|
|
28
|
+
name: string,
|
|
29
|
+
targetInventoryModelId: string,
|
|
30
|
+
gradeModelId: string,
|
|
31
|
+
gradeEntries: UnleashRateEntryModel[],
|
|
32
|
+
options: UnleashRateModelOptions|null = null,
|
|
33
|
+
) {
|
|
34
|
+
this.name = name;
|
|
35
|
+
this.targetInventoryModelId = targetInventoryModelId;
|
|
36
|
+
this.gradeModelId = gradeModelId;
|
|
37
|
+
this.gradeEntries = gradeEntries;
|
|
38
|
+
this.description = options?.description ?? null;
|
|
39
|
+
this.metadata = options?.metadata ?? null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public properties(
|
|
43
|
+
): {[name: string]: any} {
|
|
44
|
+
let properties: {[name: string]: any} = {};
|
|
45
|
+
|
|
46
|
+
if (this.name != null) {
|
|
47
|
+
properties["name"] = this.name;
|
|
48
|
+
}
|
|
49
|
+
if (this.description != null) {
|
|
50
|
+
properties["description"] = this.description;
|
|
51
|
+
}
|
|
52
|
+
if (this.metadata != null) {
|
|
53
|
+
properties["metadata"] = this.metadata;
|
|
54
|
+
}
|
|
55
|
+
if (this.targetInventoryModelId != null) {
|
|
56
|
+
properties["targetInventoryModelId"] = this.targetInventoryModelId;
|
|
57
|
+
}
|
|
58
|
+
if (this.gradeModelId != null) {
|
|
59
|
+
properties["gradeModelId"] = this.gradeModelId;
|
|
60
|
+
}
|
|
61
|
+
if (this.gradeEntries != null) {
|
|
62
|
+
properties["gradeEntries"] = this.gradeEntries.map(v => v.properties(
|
|
63
|
+
));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return properties;
|
|
67
|
+
}
|
|
68
|
+
}
|
package/enhance/model/index.d.ts
CHANGED
|
@@ -2,9 +2,13 @@ import Namespace from "./Namespace";
|
|
|
2
2
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
3
3
|
import RateModel from "./RateModel";
|
|
4
4
|
import { RateModelOptions } from "./options/RateModelOptions";
|
|
5
|
+
import UnleashRateModel from "./UnleashRateModel";
|
|
6
|
+
import { UnleashRateModelOptions } from "./options/UnleashRateModelOptions";
|
|
5
7
|
import BonusRate from "./BonusRate";
|
|
6
8
|
import { BonusRateOptions } from "./options/BonusRateOptions";
|
|
7
9
|
import Material from "./Material";
|
|
8
10
|
import { MaterialOptions } from "./options/MaterialOptions";
|
|
11
|
+
import UnleashRateEntryModel from "./UnleashRateEntryModel";
|
|
12
|
+
import { UnleashRateEntryModelOptions } from "./options/UnleashRateEntryModelOptions";
|
|
9
13
|
import CurrentMasterData from "./CurrentMasterData";
|
|
10
|
-
export { Namespace, NamespaceOptions, RateModel, RateModelOptions, BonusRate, BonusRateOptions, Material, MaterialOptions, CurrentMasterData, };
|
|
14
|
+
export { Namespace, NamespaceOptions, RateModel, RateModelOptions, UnleashRateModel, UnleashRateModelOptions, BonusRate, BonusRateOptions, Material, MaterialOptions, UnleashRateEntryModel, UnleashRateEntryModelOptions, CurrentMasterData, };
|
package/enhance/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CurrentMasterData = exports.Material = exports.BonusRate = exports.RateModel = exports.Namespace = void 0;
|
|
3
|
+
exports.CurrentMasterData = exports.UnleashRateEntryModel = exports.Material = exports.BonusRate = exports.UnleashRateModel = exports.RateModel = exports.Namespace = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -21,10 +21,14 @@ const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
|
|
|
21
21
|
exports.Namespace = Namespace_1.default;
|
|
22
22
|
const RateModel_1 = tslib_1.__importDefault(require("./RateModel"));
|
|
23
23
|
exports.RateModel = RateModel_1.default;
|
|
24
|
+
const UnleashRateModel_1 = tslib_1.__importDefault(require("./UnleashRateModel"));
|
|
25
|
+
exports.UnleashRateModel = UnleashRateModel_1.default;
|
|
24
26
|
const BonusRate_1 = tslib_1.__importDefault(require("./BonusRate"));
|
|
25
27
|
exports.BonusRate = BonusRate_1.default;
|
|
26
28
|
const Material_1 = tslib_1.__importDefault(require("./Material"));
|
|
27
29
|
exports.Material = Material_1.default;
|
|
30
|
+
const UnleashRateEntryModel_1 = tslib_1.__importDefault(require("./UnleashRateEntryModel"));
|
|
31
|
+
exports.UnleashRateEntryModel = UnleashRateEntryModel_1.default;
|
|
28
32
|
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
29
33
|
exports.CurrentMasterData = CurrentMasterData_1.default;
|
|
30
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAehC,oBAfG,mBAAS,CAeH;AAbb,oEAAoC;AAehC,oBAfG,mBAAS,CAeH;AAbb,kFAAkD;AAe9C,2BAfG,0BAAgB,CAeH;AAbpB,oEAAoC;AAehC,oBAfG,mBAAS,CAeH;AAbb,kEAAkC;AAe9B,mBAfG,kBAAQ,CAeH;AAbZ,4FAA4D;AAexD,gCAfG,+BAAqB,CAeH;AAbzB,oFAAoD;AAehD,4BAfG,2BAAiB,CAeH"}
|
package/enhance/model/index.ts
CHANGED
|
@@ -17,10 +17,14 @@ import Namespace from "./Namespace";
|
|
|
17
17
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
18
18
|
import RateModel from "./RateModel";
|
|
19
19
|
import { RateModelOptions } from "./options/RateModelOptions";
|
|
20
|
+
import UnleashRateModel from "./UnleashRateModel";
|
|
21
|
+
import { UnleashRateModelOptions } from "./options/UnleashRateModelOptions";
|
|
20
22
|
import BonusRate from "./BonusRate";
|
|
21
23
|
import { BonusRateOptions } from "./options/BonusRateOptions";
|
|
22
24
|
import Material from "./Material";
|
|
23
25
|
import { MaterialOptions } from "./options/MaterialOptions";
|
|
26
|
+
import UnleashRateEntryModel from "./UnleashRateEntryModel";
|
|
27
|
+
import { UnleashRateEntryModelOptions } from "./options/UnleashRateEntryModelOptions";
|
|
24
28
|
import CurrentMasterData from "./CurrentMasterData";
|
|
25
29
|
|
|
26
30
|
export {
|
|
@@ -28,9 +32,13 @@ export {
|
|
|
28
32
|
NamespaceOptions,
|
|
29
33
|
RateModel,
|
|
30
34
|
RateModelOptions,
|
|
35
|
+
UnleashRateModel,
|
|
36
|
+
UnleashRateModelOptions,
|
|
31
37
|
BonusRate,
|
|
32
38
|
BonusRateOptions,
|
|
33
39
|
Material,
|
|
34
40
|
MaterialOptions,
|
|
41
|
+
UnleashRateEntryModel,
|
|
42
|
+
UnleashRateEntryModelOptions,
|
|
35
43
|
CurrentMasterData,
|
|
36
44
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=UnleashRateEntryModelOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashRateEntryModelOptions.js","sourceRoot":"","sources":["UnleashRateEntryModelOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export interface UnleashRateEntryModelOptions {
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashRateModelOptions.js","sourceRoot":"","sources":["UnleashRateModelOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
import UnleashRateEntryModel from "../UnleashRateEntryModel";
|
|
17
|
+
|
|
18
|
+
export interface UnleashRateModelOptions {
|
|
19
|
+
description?: string|null;
|
|
20
|
+
metadata?: string|null;
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import UnleashRateModelRef from "./UnleashRateModelRef";
|
|
1
2
|
import RateModelRef from "./RateModelRef";
|
|
2
3
|
import CreateProgressByUserId from "../stampSheet/CreateProgressByUserId";
|
|
3
4
|
import Material from "../model/Material";
|
|
@@ -5,6 +6,7 @@ import DeleteProgressByUserId from "../stampSheet/DeleteProgressByUserId";
|
|
|
5
6
|
export default class NamespaceRef {
|
|
6
7
|
private readonly namespaceName;
|
|
7
8
|
constructor(namespaceName: string);
|
|
9
|
+
unleashRateModel(rateName: string): UnleashRateModelRef;
|
|
8
10
|
rateModel(rateName: string): RateModelRef;
|
|
9
11
|
createProgress(rateName: string, targetItemSetId: string, materials?: Material[] | null, force?: boolean | null, userId?: string): CreateProgressByUserId;
|
|
10
12
|
deleteProgress(userId?: string): DeleteProgressByUserId;
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const tslib_1 = require("tslib");
|
|
19
19
|
const func_1 = require("../../core/func");
|
|
20
|
+
const UnleashRateModelRef_1 = tslib_1.__importDefault(require("./UnleashRateModelRef"));
|
|
20
21
|
const RateModelRef_1 = tslib_1.__importDefault(require("./RateModelRef"));
|
|
21
22
|
const CreateProgressByUserId_1 = tslib_1.__importDefault(require("../stampSheet/CreateProgressByUserId"));
|
|
22
23
|
const DeleteProgressByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DeleteProgressByUserId"));
|
|
@@ -24,6 +25,9 @@ class NamespaceRef {
|
|
|
24
25
|
constructor(namespaceName) {
|
|
25
26
|
this.namespaceName = namespaceName;
|
|
26
27
|
}
|
|
28
|
+
unleashRateModel(rateName) {
|
|
29
|
+
return new UnleashRateModelRef_1.default(this.namespaceName, rateName);
|
|
30
|
+
}
|
|
27
31
|
rateModel(rateName) {
|
|
28
32
|
return new RateModelRef_1.default(this.namespaceName, rateName);
|
|
29
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0EAA0C;AAC1C,0GAA0E;AAE1E,0GAA0E;AAE1E,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,SAAS,CACZ,QAAgB;QAEhB,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,aAAa,EAClB,QAAQ,CACX,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,QAAgB,EAChB,eAAuB,EACvB,YAA6B,IAAI,EACjC,QAAsB,IAAI,EAC1B,SAAiB,WAAW;QAE5B,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,eAAe,EACf,SAAS,EACT,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,SAAiB,WAAW;QAE5B,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,SAAS;YACT,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,wFAAwD;AACxD,0EAA0C;AAC1C,0GAA0E;AAE1E,0GAA0E;AAE1E,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,gBAAgB,CACnB,QAAgB;QAEhB,OAAO,IAAI,6BAAmB,CAC1B,IAAI,CAAC,aAAa,EAClB,QAAQ,CACX,CAAC;IACN,CAAC;IAEM,SAAS,CACZ,QAAgB;QAEhB,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,aAAa,EAClB,QAAQ,CACX,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,QAAgB,EAChB,eAAuB,EACvB,YAA6B,IAAI,EACjC,QAAsB,IAAI,EAC1B,SAAiB,WAAW;QAE5B,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,eAAe,EACf,SAAS,EACT,KAAK,EACL,MAAM,CACT,CAAC;IACN,CAAC;IAEM,cAAc,CACjB,SAAiB,WAAW;QAE5B,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,SAAS;YACT,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAxED,+BAwEC"}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
|
+
import UnleashRateModelRef from "./UnleashRateModelRef";
|
|
18
19
|
import RateModelRef from "./RateModelRef";
|
|
19
20
|
import CreateProgressByUserId from "../stampSheet/CreateProgressByUserId";
|
|
20
21
|
import Material from "../model/Material";
|
|
@@ -29,6 +30,15 @@ export default class NamespaceRef {
|
|
|
29
30
|
this.namespaceName = namespaceName;
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
public unleashRateModel(
|
|
34
|
+
rateName: string,
|
|
35
|
+
): UnleashRateModelRef {
|
|
36
|
+
return new UnleashRateModelRef(
|
|
37
|
+
this.namespaceName,
|
|
38
|
+
rateName,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
32
42
|
public rateModel(
|
|
33
43
|
rateName: string,
|
|
34
44
|
): RateModelRef {
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
const func_1 = require("../../core/func");
|
|
19
|
+
class UnleashRateModelRef {
|
|
20
|
+
constructor(namespaceName, rateName) {
|
|
21
|
+
this.namespaceName = namespaceName;
|
|
22
|
+
this.rateName = rateName;
|
|
23
|
+
}
|
|
24
|
+
grn() {
|
|
25
|
+
return new func_1.Join(":", [
|
|
26
|
+
"grn",
|
|
27
|
+
"gs2",
|
|
28
|
+
func_1.GetAttr.region().str(),
|
|
29
|
+
func_1.GetAttr.ownerId().str(),
|
|
30
|
+
"enhance",
|
|
31
|
+
this.namespaceName,
|
|
32
|
+
"unleashRateModel",
|
|
33
|
+
this.rateName,
|
|
34
|
+
]).str();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = UnleashRateModelRef;
|
|
38
|
+
//# sourceMappingURL=UnleashRateModelRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashRateModelRef.js","sourceRoot":"","sources":["UnleashRateModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,mBAAmB;IAIpC,YACI,aAAqB,EACrB,QAAgB;QAEhB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,SAAS;YACT,IAAI,CAAC,aAAa;YAClB,kBAAkB;YAClB,IAAI,CAAC,QAAQ;SAChB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjCD,sCAiCC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 {GetAttr, Join} from "../../core/func";
|
|
18
|
+
|
|
19
|
+
export default class UnleashRateModelRef {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly rateName: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
namespaceName: string,
|
|
25
|
+
rateName: string,
|
|
26
|
+
) {
|
|
27
|
+
this.namespaceName = namespaceName;
|
|
28
|
+
this.rateName = rateName;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public grn(
|
|
32
|
+
): string {
|
|
33
|
+
return new Join(
|
|
34
|
+
":",
|
|
35
|
+
[
|
|
36
|
+
"grn",
|
|
37
|
+
"gs2",
|
|
38
|
+
GetAttr.region(
|
|
39
|
+
).str(
|
|
40
|
+
),
|
|
41
|
+
GetAttr.ownerId(
|
|
42
|
+
).str(
|
|
43
|
+
),
|
|
44
|
+
"enhance",
|
|
45
|
+
this.namespaceName,
|
|
46
|
+
"unleashRateModel",
|
|
47
|
+
this.rateName,
|
|
48
|
+
],
|
|
49
|
+
).str(
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
package/enhance/ref/index.d.ts
CHANGED
package/enhance/ref/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RateModelRef = exports.NamespaceRef = void 0;
|
|
3
|
+
exports.UnleashRateModelRef = exports.RateModelRef = exports.NamespaceRef = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -21,4 +21,6 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
|
|
|
21
21
|
exports.NamespaceRef = NamespaceRef_1.default;
|
|
22
22
|
const RateModelRef_1 = tslib_1.__importDefault(require("./RateModelRef"));
|
|
23
23
|
exports.RateModelRef = RateModelRef_1.default;
|
|
24
|
+
const UnleashRateModelRef_1 = tslib_1.__importDefault(require("./UnleashRateModelRef"));
|
|
25
|
+
exports.UnleashRateModelRef = UnleashRateModelRef_1.default;
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
package/enhance/ref/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAKtC,uBALG,sBAAY,CAKH;AAJhB,0EAA0C;AAKtC,uBALG,sBAAY,CAKH;AAJhB,wFAAwD;AAKpD,8BALG,6BAAmB,CAKH"}
|
package/enhance/ref/index.ts
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AcquireAction } from "../../core/model";
|
|
2
|
+
import { Config } from "../../core/model";
|
|
3
|
+
export default class UnleashByUserId extends AcquireAction {
|
|
4
|
+
private readonly namespaceName;
|
|
5
|
+
private readonly rateName;
|
|
6
|
+
private readonly userId;
|
|
7
|
+
private readonly targetItemSetId;
|
|
8
|
+
private readonly materials;
|
|
9
|
+
private readonly config;
|
|
10
|
+
constructor(namespaceName: string, rateName: string, targetItemSetId: string, materials: string[], config?: Config[] | null, userId?: string);
|
|
11
|
+
request(): {
|
|
12
|
+
[name: string]: any;
|
|
13
|
+
};
|
|
14
|
+
action(): string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class UnleashByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, rateName, targetItemSetId, materials, config = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.config = null;
|
|
23
|
+
this.namespaceName = namespaceName;
|
|
24
|
+
this.rateName = rateName;
|
|
25
|
+
this.targetItemSetId = targetItemSetId;
|
|
26
|
+
this.materials = materials;
|
|
27
|
+
this.config = config !== null && config !== void 0 ? config : null;
|
|
28
|
+
this.userId = userId;
|
|
29
|
+
}
|
|
30
|
+
request() {
|
|
31
|
+
let properties = {};
|
|
32
|
+
if (this.namespaceName != null) {
|
|
33
|
+
properties["namespaceName"] = this.namespaceName;
|
|
34
|
+
}
|
|
35
|
+
if (this.rateName != null) {
|
|
36
|
+
properties["rateName"] = this.rateName;
|
|
37
|
+
}
|
|
38
|
+
if (this.userId != null) {
|
|
39
|
+
properties["userId"] = this.userId;
|
|
40
|
+
}
|
|
41
|
+
if (this.targetItemSetId != null) {
|
|
42
|
+
properties["targetItemSetId"] = this.targetItemSetId;
|
|
43
|
+
}
|
|
44
|
+
if (this.materials != null) {
|
|
45
|
+
properties["materials"] = this.materials;
|
|
46
|
+
}
|
|
47
|
+
if (this.config != null) {
|
|
48
|
+
properties["config"] = this.config.map(v => v.properties());
|
|
49
|
+
}
|
|
50
|
+
return properties;
|
|
51
|
+
}
|
|
52
|
+
action() {
|
|
53
|
+
return "Gs2Enhance:UnleashByUserId";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.default = UnleashByUserId;
|
|
57
|
+
//# sourceMappingURL=UnleashByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnleashByUserId.js","sourceRoot":"","sources":["UnleashByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,eAAgB,SAAQ,qBAAa;IAStD,YACI,aAAqB,EACrB,QAAgB,EAChB,eAAuB,EACvB,SAAmB,EACnB,SAAwB,IAAI,EAC5B,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAXK,WAAM,GAAkB,IAAI,CAAC;QAa1C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,IAAI,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,OAAO;QAEV,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnD,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,4BAA4B,CAAC;IACxC,CAAC;CACJ;AAzDD,kCAyDC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 {AcquireAction, ConsumeAction} from "../../core/model";
|
|
18
|
+
import { Config } from "../../core/model";
|
|
19
|
+
|
|
20
|
+
export default class UnleashByUserId extends AcquireAction {
|
|
21
|
+
private readonly namespaceName: string;
|
|
22
|
+
private readonly rateName: string;
|
|
23
|
+
private readonly userId: string;
|
|
24
|
+
private readonly targetItemSetId: string;
|
|
25
|
+
private readonly materials: string[];
|
|
26
|
+
private readonly config: Config[]|null = null;
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
public constructor(
|
|
30
|
+
namespaceName: string,
|
|
31
|
+
rateName: string,
|
|
32
|
+
targetItemSetId: string,
|
|
33
|
+
materials: string[],
|
|
34
|
+
config: Config[]|null = null,
|
|
35
|
+
userId: string = "#{userId}",
|
|
36
|
+
) {
|
|
37
|
+
super();
|
|
38
|
+
|
|
39
|
+
this.namespaceName = namespaceName;
|
|
40
|
+
this.rateName = rateName;
|
|
41
|
+
this.targetItemSetId = targetItemSetId;
|
|
42
|
+
this.materials = materials;
|
|
43
|
+
this.config = config ?? null;
|
|
44
|
+
this.userId = userId;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public request(
|
|
48
|
+
): {[name: string]: any} {
|
|
49
|
+
let properties: {[name: string]: any} = {};
|
|
50
|
+
|
|
51
|
+
if (this.namespaceName != null) {
|
|
52
|
+
properties["namespaceName"] = this.namespaceName;
|
|
53
|
+
}
|
|
54
|
+
if (this.rateName != null) {
|
|
55
|
+
properties["rateName"] = this.rateName;
|
|
56
|
+
}
|
|
57
|
+
if (this.userId != null) {
|
|
58
|
+
properties["userId"] = this.userId;
|
|
59
|
+
}
|
|
60
|
+
if (this.targetItemSetId != null) {
|
|
61
|
+
properties["targetItemSetId"] = this.targetItemSetId;
|
|
62
|
+
}
|
|
63
|
+
if (this.materials != null) {
|
|
64
|
+
properties["materials"] = this.materials;
|
|
65
|
+
}
|
|
66
|
+
if (this.config != null) {
|
|
67
|
+
properties["config"] = this.config.map(v => v.properties(
|
|
68
|
+
));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return properties;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public action(): string {
|
|
75
|
+
return "Gs2Enhance:UnleashByUserId";
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import DirectEnhanceByUserId from "./DirectEnhanceByUserId";
|
|
2
|
+
import UnleashByUserId from "./UnleashByUserId";
|
|
2
3
|
import CreateProgressByUserId from "./CreateProgressByUserId";
|
|
3
4
|
import DeleteProgressByUserId from "./DeleteProgressByUserId";
|
|
4
|
-
export { DirectEnhanceByUserId, CreateProgressByUserId, DeleteProgressByUserId, };
|
|
5
|
+
export { DirectEnhanceByUserId, UnleashByUserId, CreateProgressByUserId, DeleteProgressByUserId, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteProgressByUserId = exports.CreateProgressByUserId = exports.DirectEnhanceByUserId = void 0;
|
|
3
|
+
exports.DeleteProgressByUserId = exports.CreateProgressByUserId = exports.UnleashByUserId = exports.DirectEnhanceByUserId = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -19,6 +19,8 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
*/
|
|
20
20
|
const DirectEnhanceByUserId_1 = tslib_1.__importDefault(require("./DirectEnhanceByUserId"));
|
|
21
21
|
exports.DirectEnhanceByUserId = DirectEnhanceByUserId_1.default;
|
|
22
|
+
const UnleashByUserId_1 = tslib_1.__importDefault(require("./UnleashByUserId"));
|
|
23
|
+
exports.UnleashByUserId = UnleashByUserId_1.default;
|
|
22
24
|
const CreateProgressByUserId_1 = tslib_1.__importDefault(require("./CreateProgressByUserId"));
|
|
23
25
|
exports.CreateProgressByUserId = CreateProgressByUserId_1.default;
|
|
24
26
|
const DeleteProgressByUserId_1 = tslib_1.__importDefault(require("./DeleteProgressByUserId"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4FAA4D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4FAA4D;AAMxD,gCANG,+BAAqB,CAMH;AALzB,gFAAgD;AAM5C,0BANG,yBAAe,CAMH;AALnB,8FAA8D;AAM1D,iCANG,gCAAsB,CAMH;AAL1B,8FAA8D;AAM1D,iCANG,gCAAsB,CAMH"}
|
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import DirectEnhanceByUserId from "./DirectEnhanceByUserId";
|
|
17
|
+
import UnleashByUserId from "./UnleashByUserId";
|
|
17
18
|
import CreateProgressByUserId from "./CreateProgressByUserId";
|
|
18
19
|
import DeleteProgressByUserId from "./DeleteProgressByUserId";
|
|
19
20
|
|
|
20
21
|
export {
|
|
21
22
|
DirectEnhanceByUserId,
|
|
23
|
+
UnleashByUserId,
|
|
22
24
|
CreateProgressByUserId,
|
|
23
25
|
DeleteProgressByUserId,
|
|
24
26
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { GradeEntryModelOptions } from "./options/GradeEntryModelOptions";
|
|
2
2
|
export default class GradeEntryModel {
|
|
3
3
|
private readonly rankCapValue;
|
|
4
|
+
private readonly propertyIdRegex;
|
|
4
5
|
private readonly gradeUpPropertyIdRegex;
|
|
5
6
|
private readonly metadata;
|
|
6
|
-
|
|
7
|
-
constructor(rankCapValue: number, gradeUpPropertyIdRegex: string, options?: GradeEntryModelOptions | null);
|
|
7
|
+
constructor(rankCapValue: number, propertyIdRegex: string, gradeUpPropertyIdRegex: string, options?: GradeEntryModelOptions | null);
|
|
8
8
|
properties(): {
|
|
9
9
|
[name: string]: any;
|
|
10
10
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class GradeEntryModel {
|
|
4
|
-
constructor(rankCapValue, gradeUpPropertyIdRegex, options = null) {
|
|
5
|
-
var _a
|
|
4
|
+
constructor(rankCapValue, propertyIdRegex, gradeUpPropertyIdRegex, options = null) {
|
|
5
|
+
var _a;
|
|
6
6
|
this.metadata = null;
|
|
7
|
-
this.propertyIdRegex = null;
|
|
8
7
|
this.rankCapValue = rankCapValue;
|
|
8
|
+
this.propertyIdRegex = propertyIdRegex;
|
|
9
9
|
this.gradeUpPropertyIdRegex = gradeUpPropertyIdRegex;
|
|
10
10
|
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
11
|
-
this.propertyIdRegex = (_b = options === null || options === void 0 ? void 0 : options.propertyIdRegex) !== null && _b !== void 0 ? _b : null;
|
|
12
11
|
}
|
|
13
12
|
properties() {
|
|
14
13
|
let properties = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GradeEntryModel.js","sourceRoot":"","sources":["GradeEntryModel.ts"],"names":[],"mappings":";;AAiBA,MAAqB,eAAe;IAMhC,YACI,YAAoB,EACpB,sBAA8B,EAC9B,UAAuC,IAAI;;QAN9B,aAAQ,GAAgB,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"GradeEntryModel.js","sourceRoot":"","sources":["GradeEntryModel.ts"],"names":[],"mappings":";;AAiBA,MAAqB,eAAe;IAMhC,YACI,YAAoB,EACpB,eAAuB,EACvB,sBAA8B,EAC9B,UAAuC,IAAI;;QAN9B,aAAQ,GAAgB,IAAI,CAAC;QAQ1C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC;SAClD;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,UAAU,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;SACtE;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AArCD,kCAqCC"}
|
|
@@ -17,19 +17,20 @@ import { GradeEntryModelOptions } from "./options/GradeEntryModelOptions";
|
|
|
17
17
|
|
|
18
18
|
export default class GradeEntryModel {
|
|
19
19
|
private readonly rankCapValue: number;
|
|
20
|
+
private readonly propertyIdRegex: string;
|
|
20
21
|
private readonly gradeUpPropertyIdRegex: string;
|
|
21
22
|
private readonly metadata: string|null = null;
|
|
22
|
-
private readonly propertyIdRegex: string|null = null;
|
|
23
23
|
|
|
24
24
|
public constructor(
|
|
25
25
|
rankCapValue: number,
|
|
26
|
+
propertyIdRegex: string,
|
|
26
27
|
gradeUpPropertyIdRegex: string,
|
|
27
28
|
options: GradeEntryModelOptions|null = null,
|
|
28
29
|
) {
|
|
29
30
|
this.rankCapValue = rankCapValue;
|
|
31
|
+
this.propertyIdRegex = propertyIdRegex;
|
|
30
32
|
this.gradeUpPropertyIdRegex = gradeUpPropertyIdRegex;
|
|
31
33
|
this.metadata = options?.metadata ?? null;
|
|
32
|
-
this.propertyIdRegex = options?.propertyIdRegex ?? null;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
public properties(
|