gs2-cdk 1.0.96 → 1.0.98
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/account/model/OpenIdConnectSetting.d.ts +2 -0
- package/account/model/OpenIdConnectSetting.js +11 -1
- package/account/model/OpenIdConnectSetting.js.map +1 -1
- package/account/model/OpenIdConnectSetting.ts +12 -0
- package/account/model/ScopeValue.d.ts +9 -0
- package/account/model/ScopeValue.js +22 -0
- package/account/model/ScopeValue.js.map +1 -0
- package/account/model/ScopeValue.ts +43 -0
- package/account/model/TakeOverTypeModel.js.map +1 -1
- package/account/model/TakeOverTypeModel.ts +1 -0
- package/account/model/index.d.ts +3 -1
- package/account/model/index.js +3 -1
- package/account/model/index.js.map +1 -1
- package/account/model/index.ts +4 -0
- package/account/model/options/OpenIdConnectSettingOptions.d.ts +3 -0
- package/account/model/options/OpenIdConnectSettingOptions.js +0 -15
- package/account/model/options/OpenIdConnectSettingOptions.js.map +1 -1
- package/account/model/options/OpenIdConnectSettingOptions.ts +3 -0
- package/account/model/options/ScopeValueOptions.d.ts +3 -0
- package/account/model/options/ScopeValueOptions.js +18 -0
- package/account/model/options/ScopeValueOptions.js.map +1 -0
- package/account/model/options/ScopeValueOptions.ts +20 -0
- package/account/model/options/TakeOverTypeModelOptions.ts +1 -0
- package/limit/model/LimitModel.d.ts +4 -0
- package/limit/model/LimitModel.js +18 -1
- package/limit/model/LimitModel.js.map +1 -1
- package/limit/model/LimitModel.ts +28 -0
- package/limit/model/enum/LimitModelResetType.d.ts +1 -0
- package/limit/model/enum/LimitModelResetType.js +1 -0
- package/limit/model/enum/LimitModelResetType.js.map +1 -1
- package/limit/model/enum/LimitModelResetType.ts +1 -0
- package/limit/model/index.d.ts +2 -1
- package/limit/model/index.js.map +1 -1
- package/limit/model/index.ts +2 -0
- package/limit/model/options/LimitModelOptions.d.ts +2 -0
- package/limit/model/options/LimitModelOptions.ts +2 -0
- package/limit/model/options/LimitModelResetTypeIsDaysOptions.d.ts +3 -0
- package/limit/model/options/LimitModelResetTypeIsDaysOptions.js +3 -0
- package/limit/model/options/LimitModelResetTypeIsDaysOptions.js.map +1 -0
- package/limit/model/options/LimitModelResetTypeIsDaysOptions.ts +21 -0
- package/mission/model/CounterScopeModel.d.ts +4 -0
- package/mission/model/CounterScopeModel.js +17 -1
- package/mission/model/CounterScopeModel.js.map +1 -1
- package/mission/model/CounterScopeModel.ts +26 -0
- package/mission/model/MissionGroupModel.d.ts +4 -0
- package/mission/model/MissionGroupModel.js +20 -1
- package/mission/model/MissionGroupModel.js.map +1 -1
- package/mission/model/MissionGroupModel.ts +30 -0
- package/mission/model/enum/CounterScopeModelResetType.d.ts +1 -0
- package/mission/model/enum/CounterScopeModelResetType.js +1 -0
- package/mission/model/enum/CounterScopeModelResetType.js.map +1 -1
- package/mission/model/enum/CounterScopeModelResetType.ts +1 -0
- package/mission/model/enum/MissionGroupModelResetType.d.ts +1 -0
- package/mission/model/enum/MissionGroupModelResetType.js +1 -0
- package/mission/model/enum/MissionGroupModelResetType.js.map +1 -1
- package/mission/model/enum/MissionGroupModelResetType.ts +1 -0
- package/mission/model/enum/MissionTaskModelTargetResetType.d.ts +1 -0
- package/mission/model/enum/MissionTaskModelTargetResetType.js +1 -0
- package/mission/model/enum/MissionTaskModelTargetResetType.js.map +1 -1
- package/mission/model/enum/MissionTaskModelTargetResetType.ts +1 -0
- package/mission/model/enum/ScopedValueResetType.d.ts +1 -0
- package/mission/model/enum/ScopedValueResetType.js +1 -0
- package/mission/model/enum/ScopedValueResetType.js.map +1 -1
- package/mission/model/enum/ScopedValueResetType.ts +1 -0
- package/mission/model/enum/TargetCounterModelResetType.d.ts +1 -0
- package/mission/model/enum/TargetCounterModelResetType.js +1 -0
- package/mission/model/enum/TargetCounterModelResetType.js.map +1 -1
- package/mission/model/enum/TargetCounterModelResetType.ts +1 -0
- package/mission/model/index.d.ts +3 -1
- package/mission/model/index.js.map +1 -1
- package/mission/model/index.ts +4 -0
- package/mission/model/options/CounterScopeModelOptions.d.ts +2 -0
- package/mission/model/options/CounterScopeModelOptions.ts +2 -0
- package/mission/model/options/CounterScopeModelResetTypeIsDaysOptions.d.ts +2 -0
- package/mission/model/options/CounterScopeModelResetTypeIsDaysOptions.js +3 -0
- package/mission/model/options/CounterScopeModelResetTypeIsDaysOptions.js.map +1 -0
- package/mission/model/options/CounterScopeModelResetTypeIsDaysOptions.ts +22 -0
- package/mission/model/options/MissionGroupModelOptions.d.ts +2 -0
- package/mission/model/options/MissionGroupModelOptions.ts +2 -0
- package/mission/model/options/MissionGroupModelResetTypeIsDaysOptions.d.ts +6 -0
- package/mission/model/options/MissionGroupModelResetTypeIsDaysOptions.js +3 -0
- package/mission/model/options/MissionGroupModelResetTypeIsDaysOptions.js.map +1 -0
- package/mission/model/options/MissionGroupModelResetTypeIsDaysOptions.ts +27 -0
- package/mission/ref/CounterModelRef.d.ts +2 -0
- package/mission/ref/CounterModelRef.js +4 -0
- package/mission/ref/CounterModelRef.js.map +1 -1
- package/mission/ref/CounterModelRef.ts +13 -0
- package/mission/ref/NamespaceRef.d.ts +2 -0
- package/mission/ref/NamespaceRef.js +4 -0
- package/mission/ref/NamespaceRef.js.map +1 -1
- package/mission/ref/NamespaceRef.ts +14 -0
- package/mission/stampSheet/ResetCounterByUserId.d.ts +14 -0
- package/mission/stampSheet/ResetCounterByUserId.js +53 -0
- package/mission/stampSheet/ResetCounterByUserId.js.map +1 -0
- package/mission/stampSheet/ResetCounterByUserId.ts +71 -0
- package/mission/stampSheet/enum/CounterResetType.d.ts +1 -0
- package/mission/stampSheet/enum/CounterResetType.js +1 -0
- package/mission/stampSheet/enum/CounterResetType.js.map +1 -1
- package/mission/stampSheet/enum/CounterResetType.ts +1 -0
- package/mission/stampSheet/index.d.ts +2 -1
- package/mission/stampSheet/index.js +3 -1
- package/mission/stampSheet/index.js.map +1 -1
- package/mission/stampSheet/index.ts +2 -0
- package/package.json +1 -1
|
@@ -7,6 +7,8 @@ export default class OpenIdConnectSetting {
|
|
|
7
7
|
private readonly appleKeyId;
|
|
8
8
|
private readonly applePrivateKeyPem;
|
|
9
9
|
private readonly doneEndpointUrl;
|
|
10
|
+
private readonly additionalScopeValues;
|
|
11
|
+
private readonly additionalReturnValues;
|
|
10
12
|
constructor(configurationPath: string, clientId: string, options?: OpenIdConnectSettingOptions | null);
|
|
11
13
|
properties(): {
|
|
12
14
|
[name: string]: any;
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class OpenIdConnectSetting {
|
|
4
4
|
constructor(configurationPath, clientId, options = null) {
|
|
5
|
-
var _a, _b, _c, _d, _e;
|
|
5
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6
6
|
this.clientSecret = null;
|
|
7
7
|
this.appleTeamId = null;
|
|
8
8
|
this.appleKeyId = null;
|
|
9
9
|
this.applePrivateKeyPem = null;
|
|
10
10
|
this.doneEndpointUrl = null;
|
|
11
|
+
this.additionalScopeValues = null;
|
|
12
|
+
this.additionalReturnValues = null;
|
|
11
13
|
this.configurationPath = configurationPath;
|
|
12
14
|
this.clientId = clientId;
|
|
13
15
|
this.clientSecret = (_a = options === null || options === void 0 ? void 0 : options.clientSecret) !== null && _a !== void 0 ? _a : null;
|
|
@@ -15,6 +17,8 @@ class OpenIdConnectSetting {
|
|
|
15
17
|
this.appleKeyId = (_c = options === null || options === void 0 ? void 0 : options.appleKeyId) !== null && _c !== void 0 ? _c : null;
|
|
16
18
|
this.applePrivateKeyPem = (_d = options === null || options === void 0 ? void 0 : options.applePrivateKeyPem) !== null && _d !== void 0 ? _d : null;
|
|
17
19
|
this.doneEndpointUrl = (_e = options === null || options === void 0 ? void 0 : options.doneEndpointUrl) !== null && _e !== void 0 ? _e : null;
|
|
20
|
+
this.additionalScopeValues = (_f = options === null || options === void 0 ? void 0 : options.additionalScopeValues) !== null && _f !== void 0 ? _f : null;
|
|
21
|
+
this.additionalReturnValues = (_g = options === null || options === void 0 ? void 0 : options.additionalReturnValues) !== null && _g !== void 0 ? _g : null;
|
|
18
22
|
}
|
|
19
23
|
properties() {
|
|
20
24
|
let properties = {};
|
|
@@ -39,6 +43,12 @@ class OpenIdConnectSetting {
|
|
|
39
43
|
if (this.doneEndpointUrl != null) {
|
|
40
44
|
properties["doneEndpointUrl"] = this.doneEndpointUrl;
|
|
41
45
|
}
|
|
46
|
+
if (this.additionalScopeValues != null) {
|
|
47
|
+
properties["additionalScopeValues"] = this.additionalScopeValues.map(v => v.properties());
|
|
48
|
+
}
|
|
49
|
+
if (this.additionalReturnValues != null) {
|
|
50
|
+
properties["additionalReturnValues"] = this.additionalReturnValues;
|
|
51
|
+
}
|
|
42
52
|
return properties;
|
|
43
53
|
}
|
|
44
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenIdConnectSetting.js","sourceRoot":"","sources":["OpenIdConnectSetting.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"OpenIdConnectSetting.js","sourceRoot":"","sources":["OpenIdConnectSetting.ts"],"names":[],"mappings":";;AAkBA,MAAqB,oBAAoB;IAWrC,YACI,iBAAyB,EACzB,QAAgB,EAChB,UAA4C,IAAI;;QAXnC,iBAAY,GAAgB,IAAI,CAAC;QACjC,gBAAW,GAAgB,IAAI,CAAC;QAChC,eAAU,GAAgB,IAAI,CAAC;QAC/B,uBAAkB,GAAgB,IAAI,CAAC;QACvC,oBAAe,GAAgB,IAAI,CAAC;QACpC,0BAAqB,GAAsB,IAAI,CAAC;QAChD,2BAAsB,GAAkB,IAAI,CAAC;QAO1D,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,mCAAI,IAAI,CAAC;QAClD,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAA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kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,qBAAqB,IAAI,IAAI,EAAE;YACpC,UAAU,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACjF,CAAC,CAAC;SACV;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;AA9DD,uCA8DC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import ScopeValue from "./ScopeValue";
|
|
16
17
|
import { OpenIdConnectSettingOptions } from "./options/OpenIdConnectSettingOptions";
|
|
17
18
|
|
|
18
19
|
export default class OpenIdConnectSetting {
|
|
@@ -23,6 +24,8 @@ export default class OpenIdConnectSetting {
|
|
|
23
24
|
private readonly appleKeyId: string|null = null;
|
|
24
25
|
private readonly applePrivateKeyPem: string|null = null;
|
|
25
26
|
private readonly doneEndpointUrl: string|null = null;
|
|
27
|
+
private readonly additionalScopeValues: ScopeValue[]|null = null;
|
|
28
|
+
private readonly additionalReturnValues: string[]|null = null;
|
|
26
29
|
|
|
27
30
|
public constructor(
|
|
28
31
|
configurationPath: string,
|
|
@@ -36,6 +39,8 @@ export default class OpenIdConnectSetting {
|
|
|
36
39
|
this.appleKeyId = options?.appleKeyId ?? null;
|
|
37
40
|
this.applePrivateKeyPem = options?.applePrivateKeyPem ?? null;
|
|
38
41
|
this.doneEndpointUrl = options?.doneEndpointUrl ?? null;
|
|
42
|
+
this.additionalScopeValues = options?.additionalScopeValues ?? null;
|
|
43
|
+
this.additionalReturnValues = options?.additionalReturnValues ?? null;
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
public properties(
|
|
@@ -63,6 +68,13 @@ export default class OpenIdConnectSetting {
|
|
|
63
68
|
if (this.doneEndpointUrl != null) {
|
|
64
69
|
properties["doneEndpointUrl"] = this.doneEndpointUrl;
|
|
65
70
|
}
|
|
71
|
+
if (this.additionalScopeValues != null) {
|
|
72
|
+
properties["additionalScopeValues"] = this.additionalScopeValues.map(v => v.properties(
|
|
73
|
+
));
|
|
74
|
+
}
|
|
75
|
+
if (this.additionalReturnValues != null) {
|
|
76
|
+
properties["additionalReturnValues"] = this.additionalReturnValues;
|
|
77
|
+
}
|
|
66
78
|
|
|
67
79
|
return properties;
|
|
68
80
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ScopeValueOptions } from "./options/ScopeValueOptions";
|
|
2
|
+
export default class ScopeValue {
|
|
3
|
+
private readonly key;
|
|
4
|
+
private readonly value;
|
|
5
|
+
constructor(key: string, options?: ScopeValueOptions | null);
|
|
6
|
+
properties(): {
|
|
7
|
+
[name: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class ScopeValue {
|
|
4
|
+
constructor(key, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.value = null;
|
|
7
|
+
this.key = key;
|
|
8
|
+
this.value = (_a = options === null || options === void 0 ? void 0 : options.value) !== null && _a !== void 0 ? _a : null;
|
|
9
|
+
}
|
|
10
|
+
properties() {
|
|
11
|
+
let properties = {};
|
|
12
|
+
if (this.key != null) {
|
|
13
|
+
properties["key"] = this.key;
|
|
14
|
+
}
|
|
15
|
+
if (this.value != null) {
|
|
16
|
+
properties["value"] = this.value;
|
|
17
|
+
}
|
|
18
|
+
return properties;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = ScopeValue;
|
|
22
|
+
//# sourceMappingURL=ScopeValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScopeValue.js","sourceRoot":"","sources":["ScopeValue.ts"],"names":[],"mappings":";;AAiBA,MAAqB,UAAU;IAI3B,YACI,GAAW,EACX,UAAkC,IAAI;;QAJzB,UAAK,GAAgB,IAAI,CAAC;QAMvC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,IAAI,CAAC;IACxC,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;SAChC;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAzBD,6BAyBC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { ScopeValueOptions } from "./options/ScopeValueOptions";
|
|
17
|
+
|
|
18
|
+
export default class ScopeValue {
|
|
19
|
+
private readonly key: string;
|
|
20
|
+
private readonly value: string|null = null;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
key: string,
|
|
24
|
+
options: ScopeValueOptions|null = null,
|
|
25
|
+
) {
|
|
26
|
+
this.key = key;
|
|
27
|
+
this.value = options?.value ?? null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public properties(
|
|
31
|
+
): {[name: string]: any} {
|
|
32
|
+
let properties: {[name: string]: any} = {};
|
|
33
|
+
|
|
34
|
+
if (this.key != null) {
|
|
35
|
+
properties["key"] = this.key;
|
|
36
|
+
}
|
|
37
|
+
if (this.value != null) {
|
|
38
|
+
properties["value"] = this.value;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return properties;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TakeOverTypeModel.js","sourceRoot":"","sources":["TakeOverTypeModel.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"TakeOverTypeModel.js","sourceRoot":"","sources":["TakeOverTypeModel.ts"],"names":[],"mappings":";;AAmBA,MAAqB,iBAAiB;IAKlC,YACI,IAAY,EACZ,oBAA0C,EAC1C,UAAyC,IAAI;;QALhC,aAAQ,GAAgB,IAAI,CAAC;QAO1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,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,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE;YACnC,UAAU,CAAC,sBAAsB,CAAC,GAAG,MAAA,IAAI,CAAC,oBAAoB,0CAAE,UAAU,EACzE,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,oCAgCC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import ScopeValue from "./ScopeValue";
|
|
16
17
|
import OpenIdConnectSetting from "./OpenIdConnectSetting";
|
|
17
18
|
import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
|
|
18
19
|
|
package/account/model/index.d.ts
CHANGED
|
@@ -4,9 +4,11 @@ import TakeOverTypeModel from "./TakeOverTypeModel";
|
|
|
4
4
|
import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
|
|
5
5
|
import OpenIdConnectSetting from "./OpenIdConnectSetting";
|
|
6
6
|
import { OpenIdConnectSettingOptions } from "./options/OpenIdConnectSettingOptions";
|
|
7
|
+
import ScopeValue from "./ScopeValue";
|
|
8
|
+
import { ScopeValueOptions } from "./options/ScopeValueOptions";
|
|
7
9
|
import PlatformUser from "./PlatformUser";
|
|
8
10
|
import { PlatformUserOptions } from "./options/PlatformUserOptions";
|
|
9
11
|
import BanStatus from "./BanStatus";
|
|
10
12
|
import { BanStatusOptions } from "./options/BanStatusOptions";
|
|
11
13
|
import CurrentMasterData from "./CurrentMasterData";
|
|
12
|
-
export { Namespace, NamespaceOptions, TakeOverTypeModel, TakeOverTypeModelOptions, OpenIdConnectSetting, OpenIdConnectSettingOptions, PlatformUser, PlatformUserOptions, BanStatus, BanStatusOptions, CurrentMasterData, };
|
|
14
|
+
export { Namespace, NamespaceOptions, TakeOverTypeModel, TakeOverTypeModelOptions, OpenIdConnectSetting, OpenIdConnectSettingOptions, ScopeValue, ScopeValueOptions, PlatformUser, PlatformUserOptions, BanStatus, BanStatusOptions, CurrentMasterData, };
|
package/account/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CurrentMasterData = exports.BanStatus = exports.PlatformUser = exports.OpenIdConnectSetting = exports.TakeOverTypeModel = exports.Namespace = void 0;
|
|
3
|
+
exports.CurrentMasterData = exports.BanStatus = exports.PlatformUser = exports.ScopeValue = exports.OpenIdConnectSetting = exports.TakeOverTypeModel = 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
|
|
@@ -23,6 +23,8 @@ const TakeOverTypeModel_1 = tslib_1.__importDefault(require("./TakeOverTypeModel
|
|
|
23
23
|
exports.TakeOverTypeModel = TakeOverTypeModel_1.default;
|
|
24
24
|
const OpenIdConnectSetting_1 = tslib_1.__importDefault(require("./OpenIdConnectSetting"));
|
|
25
25
|
exports.OpenIdConnectSetting = OpenIdConnectSetting_1.default;
|
|
26
|
+
const ScopeValue_1 = tslib_1.__importDefault(require("./ScopeValue"));
|
|
27
|
+
exports.ScopeValue = ScopeValue_1.default;
|
|
26
28
|
const PlatformUser_1 = tslib_1.__importDefault(require("./PlatformUser"));
|
|
27
29
|
exports.PlatformUser = PlatformUser_1.default;
|
|
28
30
|
const BanStatus_1 = tslib_1.__importDefault(require("./BanStatus"));
|
|
@@ -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,oFAAoD;AAehD,4BAfG,2BAAiB,CAeH;AAbrB,0FAA0D;AAetD,+BAfG,8BAAoB,CAeH;AAbxB,sEAAsC;AAelC,qBAfG,oBAAU,CAeH;AAbd,0EAA0C;AAetC,uBAfG,sBAAY,CAeH;AAbhB,oEAAoC;AAehC,oBAfG,mBAAS,CAeH;AAbb,oFAAoD;AAehD,4BAfG,2BAAiB,CAeH"}
|
package/account/model/index.ts
CHANGED
|
@@ -19,6 +19,8 @@ import TakeOverTypeModel from "./TakeOverTypeModel";
|
|
|
19
19
|
import { TakeOverTypeModelOptions } from "./options/TakeOverTypeModelOptions";
|
|
20
20
|
import OpenIdConnectSetting from "./OpenIdConnectSetting";
|
|
21
21
|
import { OpenIdConnectSettingOptions } from "./options/OpenIdConnectSettingOptions";
|
|
22
|
+
import ScopeValue from "./ScopeValue";
|
|
23
|
+
import { ScopeValueOptions } from "./options/ScopeValueOptions";
|
|
22
24
|
import PlatformUser from "./PlatformUser";
|
|
23
25
|
import { PlatformUserOptions } from "./options/PlatformUserOptions";
|
|
24
26
|
import BanStatus from "./BanStatus";
|
|
@@ -32,6 +34,8 @@ export {
|
|
|
32
34
|
TakeOverTypeModelOptions,
|
|
33
35
|
OpenIdConnectSetting,
|
|
34
36
|
OpenIdConnectSettingOptions,
|
|
37
|
+
ScopeValue,
|
|
38
|
+
ScopeValueOptions,
|
|
35
39
|
PlatformUser,
|
|
36
40
|
PlatformUserOptions,
|
|
37
41
|
BanStatus,
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import ScopeValue from "../ScopeValue";
|
|
1
2
|
export interface OpenIdConnectSettingOptions {
|
|
2
3
|
clientSecret?: string | null;
|
|
3
4
|
appleTeamId?: string | null;
|
|
4
5
|
appleKeyId?: string | null;
|
|
5
6
|
applePrivateKeyPem?: string | null;
|
|
6
7
|
doneEndpointUrl?: string | null;
|
|
8
|
+
additionalScopeValues?: ScopeValue[] | null;
|
|
9
|
+
additionalReturnValues?: string[] | null;
|
|
7
10
|
}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
//# sourceMappingURL=OpenIdConnectSettingOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenIdConnectSettingOptions.js","sourceRoot":"","sources":["OpenIdConnectSettingOptions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OpenIdConnectSettingOptions.js","sourceRoot":"","sources":["OpenIdConnectSettingOptions.ts"],"names":[],"mappings":""}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import ScopeValue from "../ScopeValue";
|
|
16
17
|
|
|
17
18
|
export interface OpenIdConnectSettingOptions {
|
|
18
19
|
clientSecret?: string|null;
|
|
@@ -20,5 +21,7 @@ export interface OpenIdConnectSettingOptions {
|
|
|
20
21
|
appleKeyId?: string|null;
|
|
21
22
|
applePrivateKeyPem?: string|null;
|
|
22
23
|
doneEndpointUrl?: string|null;
|
|
24
|
+
additionalScopeValues?: ScopeValue[]|null;
|
|
25
|
+
additionalReturnValues?: string[]|null;
|
|
23
26
|
}
|
|
24
27
|
|
|
@@ -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=ScopeValueOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScopeValueOptions.js","sourceRoot":"","sources":["ScopeValueOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 ScopeValueOptions {
|
|
18
|
+
value?: string|null;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import ScopeValue from "../ScopeValue";
|
|
16
17
|
import OpenIdConnectSetting from "../OpenIdConnectSetting";
|
|
17
18
|
|
|
18
19
|
export interface TakeOverTypeModelOptions {
|
|
@@ -3,6 +3,7 @@ import { LimitModelResetTypeIsNotResetOptions } from "./options/LimitModelResetT
|
|
|
3
3
|
import { LimitModelResetTypeIsDailyOptions } from "./options/LimitModelResetTypeIsDailyOptions";
|
|
4
4
|
import { LimitModelResetTypeIsWeeklyOptions } from "./options/LimitModelResetTypeIsWeeklyOptions";
|
|
5
5
|
import { LimitModelResetTypeIsMonthlyOptions } from "./options/LimitModelResetTypeIsMonthlyOptions";
|
|
6
|
+
import { LimitModelResetTypeIsDaysOptions } from "./options/LimitModelResetTypeIsDaysOptions";
|
|
6
7
|
import { LimitModelResetType } from "./enum/LimitModelResetType";
|
|
7
8
|
import { LimitModelResetDayOfWeek } from "./enum/LimitModelResetDayOfWeek";
|
|
8
9
|
export default class LimitModel {
|
|
@@ -12,11 +13,14 @@ export default class LimitModel {
|
|
|
12
13
|
private readonly resetDayOfMonth;
|
|
13
14
|
private readonly resetDayOfWeek;
|
|
14
15
|
private readonly resetHour;
|
|
16
|
+
private readonly anchorTimestamp;
|
|
17
|
+
private readonly days;
|
|
15
18
|
constructor(name: string, resetType: LimitModelResetType, options?: LimitModelOptions | null);
|
|
16
19
|
static resetTypeIsNotReset(name: string, options?: LimitModelResetTypeIsNotResetOptions | null): LimitModel;
|
|
17
20
|
static resetTypeIsDaily(name: string, resetHour: number, options?: LimitModelResetTypeIsDailyOptions | null): LimitModel;
|
|
18
21
|
static resetTypeIsWeekly(name: string, resetDayOfWeek: LimitModelResetDayOfWeek, resetHour: number, options?: LimitModelResetTypeIsWeeklyOptions | null): LimitModel;
|
|
19
22
|
static resetTypeIsMonthly(name: string, resetDayOfMonth: number, resetHour: number, options?: LimitModelResetTypeIsMonthlyOptions | null): LimitModel;
|
|
23
|
+
static resetTypeIsDays(name: string, anchorTimestamp: number, days: number, options?: LimitModelResetTypeIsDaysOptions | null): LimitModel;
|
|
20
24
|
properties(): {
|
|
21
25
|
[name: string]: any;
|
|
22
26
|
};
|
|
@@ -3,17 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const LimitModelResetType_1 = require("./enum/LimitModelResetType");
|
|
4
4
|
class LimitModel {
|
|
5
5
|
constructor(name, resetType, options = null) {
|
|
6
|
-
var _a, _b, _c, _d;
|
|
6
|
+
var _a, _b, _c, _d, _e, _f;
|
|
7
7
|
this.metadata = null;
|
|
8
8
|
this.resetDayOfMonth = null;
|
|
9
9
|
this.resetDayOfWeek = null;
|
|
10
10
|
this.resetHour = null;
|
|
11
|
+
this.anchorTimestamp = null;
|
|
12
|
+
this.days = null;
|
|
11
13
|
this.name = name;
|
|
12
14
|
this.resetType = resetType;
|
|
13
15
|
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
14
16
|
this.resetDayOfMonth = (_b = options === null || options === void 0 ? void 0 : options.resetDayOfMonth) !== null && _b !== void 0 ? _b : null;
|
|
15
17
|
this.resetDayOfWeek = (_c = options === null || options === void 0 ? void 0 : options.resetDayOfWeek) !== null && _c !== void 0 ? _c : null;
|
|
16
18
|
this.resetHour = (_d = options === null || options === void 0 ? void 0 : options.resetHour) !== null && _d !== void 0 ? _d : null;
|
|
19
|
+
this.anchorTimestamp = (_e = options === null || options === void 0 ? void 0 : options.anchorTimestamp) !== null && _e !== void 0 ? _e : null;
|
|
20
|
+
this.days = (_f = options === null || options === void 0 ? void 0 : options.days) !== null && _f !== void 0 ? _f : null;
|
|
17
21
|
}
|
|
18
22
|
static resetTypeIsNotReset(name, options = null) {
|
|
19
23
|
return new LimitModel(name, LimitModelResetType_1.LimitModelResetType.NOT_RESET, {
|
|
@@ -40,6 +44,13 @@ class LimitModel {
|
|
|
40
44
|
metadata: options === null || options === void 0 ? void 0 : options.metadata,
|
|
41
45
|
});
|
|
42
46
|
}
|
|
47
|
+
static resetTypeIsDays(name, anchorTimestamp, days, options = null) {
|
|
48
|
+
return new LimitModel(name, LimitModelResetType_1.LimitModelResetType.DAYS, {
|
|
49
|
+
anchorTimestamp: anchorTimestamp,
|
|
50
|
+
days: days,
|
|
51
|
+
metadata: options === null || options === void 0 ? void 0 : options.metadata,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
43
54
|
properties() {
|
|
44
55
|
let properties = {};
|
|
45
56
|
if (this.name != null) {
|
|
@@ -60,6 +71,12 @@ class LimitModel {
|
|
|
60
71
|
if (this.resetHour != null) {
|
|
61
72
|
properties["resetHour"] = this.resetHour;
|
|
62
73
|
}
|
|
74
|
+
if (this.anchorTimestamp != null) {
|
|
75
|
+
properties["anchorTimestamp"] = this.anchorTimestamp;
|
|
76
|
+
}
|
|
77
|
+
if (this.days != null) {
|
|
78
|
+
properties["days"] = this.days;
|
|
79
|
+
}
|
|
63
80
|
return properties;
|
|
64
81
|
}
|
|
65
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LimitModel.js","sourceRoot":"","sources":["LimitModel.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"LimitModel.js","sourceRoot":"","sources":["LimitModel.ts"],"names":[],"mappings":";;AAqBA,oEAAiE;AAGjE,MAAqB,UAAU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AAC;SAClC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAvID,6BAuIC"}
|
|
@@ -18,6 +18,7 @@ import { LimitModelResetTypeIsNotResetOptions } from "./options/LimitModelResetT
|
|
|
18
18
|
import { LimitModelResetTypeIsDailyOptions } from "./options/LimitModelResetTypeIsDailyOptions";
|
|
19
19
|
import { LimitModelResetTypeIsWeeklyOptions } from "./options/LimitModelResetTypeIsWeeklyOptions";
|
|
20
20
|
import { LimitModelResetTypeIsMonthlyOptions } from "./options/LimitModelResetTypeIsMonthlyOptions";
|
|
21
|
+
import { LimitModelResetTypeIsDaysOptions } from "./options/LimitModelResetTypeIsDaysOptions";
|
|
21
22
|
import { LimitModelResetType } from "./enum/LimitModelResetType";
|
|
22
23
|
import { LimitModelResetDayOfWeek } from "./enum/LimitModelResetDayOfWeek";
|
|
23
24
|
|
|
@@ -28,6 +29,8 @@ export default class LimitModel {
|
|
|
28
29
|
private readonly resetDayOfMonth: number|null = null;
|
|
29
30
|
private readonly resetDayOfWeek: LimitModelResetDayOfWeek|null = null;
|
|
30
31
|
private readonly resetHour: number|null = null;
|
|
32
|
+
private readonly anchorTimestamp: number|null = null;
|
|
33
|
+
private readonly days: number|null = null;
|
|
31
34
|
|
|
32
35
|
public constructor(
|
|
33
36
|
name: string,
|
|
@@ -40,6 +43,8 @@ export default class LimitModel {
|
|
|
40
43
|
this.resetDayOfMonth = options?.resetDayOfMonth ?? null;
|
|
41
44
|
this.resetDayOfWeek = options?.resetDayOfWeek ?? null;
|
|
42
45
|
this.resetHour = options?.resetHour ?? null;
|
|
46
|
+
this.anchorTimestamp = options?.anchorTimestamp ?? null;
|
|
47
|
+
this.days = options?.days ?? null;
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
public static resetTypeIsNotReset(
|
|
@@ -104,6 +109,23 @@ export default class LimitModel {
|
|
|
104
109
|
);
|
|
105
110
|
}
|
|
106
111
|
|
|
112
|
+
public static resetTypeIsDays(
|
|
113
|
+
name: string,
|
|
114
|
+
anchorTimestamp: number,
|
|
115
|
+
days: number,
|
|
116
|
+
options: LimitModelResetTypeIsDaysOptions|null = null,
|
|
117
|
+
): LimitModel {
|
|
118
|
+
return new LimitModel(
|
|
119
|
+
name,
|
|
120
|
+
LimitModelResetType.DAYS,
|
|
121
|
+
{
|
|
122
|
+
anchorTimestamp: anchorTimestamp,
|
|
123
|
+
days: days,
|
|
124
|
+
metadata: options?.metadata,
|
|
125
|
+
},
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
107
129
|
public properties(
|
|
108
130
|
): {[name: string]: any} {
|
|
109
131
|
let properties: {[name: string]: any} = {};
|
|
@@ -126,6 +148,12 @@ export default class LimitModel {
|
|
|
126
148
|
if (this.resetHour != null) {
|
|
127
149
|
properties["resetHour"] = this.resetHour;
|
|
128
150
|
}
|
|
151
|
+
if (this.anchorTimestamp != null) {
|
|
152
|
+
properties["anchorTimestamp"] = this.anchorTimestamp;
|
|
153
|
+
}
|
|
154
|
+
if (this.days != null) {
|
|
155
|
+
properties["days"] = this.days;
|
|
156
|
+
}
|
|
129
157
|
|
|
130
158
|
return properties;
|
|
131
159
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LimitModelResetType.js","sourceRoot":"","sources":["LimitModelResetType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,mBAAmB,GAAG;IAC/B,SAAS,EAAE,UAAU;IACrB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"LimitModelResetType.js","sourceRoot":"","sources":["LimitModelResetType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,mBAAmB,GAAG;IAC/B,SAAS,EAAE,UAAU;IACrB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;CACN,CAAC"}
|
package/limit/model/index.d.ts
CHANGED
|
@@ -8,5 +8,6 @@ import { LimitModelResetTypeIsNotResetOptions } from "./options/LimitModelResetT
|
|
|
8
8
|
import { LimitModelResetTypeIsDailyOptions } from "./options/LimitModelResetTypeIsDailyOptions";
|
|
9
9
|
import { LimitModelResetTypeIsWeeklyOptions } from "./options/LimitModelResetTypeIsWeeklyOptions";
|
|
10
10
|
import { LimitModelResetTypeIsMonthlyOptions } from "./options/LimitModelResetTypeIsMonthlyOptions";
|
|
11
|
+
import { LimitModelResetTypeIsDaysOptions } from "./options/LimitModelResetTypeIsDaysOptions";
|
|
11
12
|
import CurrentMasterData from "./CurrentMasterData";
|
|
12
|
-
export { Namespace, NamespaceOptions, LimitModel, LimitModelOptions, LimitModelResetType, LimitModelResetDayOfWeek, LimitModelResetTypeIsNotResetOptions, LimitModelResetTypeIsDailyOptions, LimitModelResetTypeIsWeeklyOptions, LimitModelResetTypeIsMonthlyOptions, CurrentMasterData, };
|
|
13
|
+
export { Namespace, NamespaceOptions, LimitModel, LimitModelOptions, LimitModelResetType, LimitModelResetDayOfWeek, LimitModelResetTypeIsNotResetOptions, LimitModelResetTypeIsDailyOptions, LimitModelResetTypeIsWeeklyOptions, LimitModelResetTypeIsMonthlyOptions, LimitModelResetTypeIsDaysOptions, CurrentMasterData, };
|
package/limit/model/index.js.map
CHANGED
|
@@ -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;AAchC,oBAdG,mBAAS,CAcH;AAZb,sEAAsC;AAclC,qBAdG,oBAAU,CAcH;AAZd,oEAAiE;AAc7D,oGAdK,yCAAmB,OAcL;AAbvB,8EAA2E;AAcvE,yGAdK,mDAAwB,OAcL;AAR5B,oFAAoD;AAchD,4BAdG,2BAAiB,CAcH"}
|
package/limit/model/index.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { LimitModelResetTypeIsNotResetOptions } from "./options/LimitModelResetT
|
|
|
23
23
|
import { LimitModelResetTypeIsDailyOptions } from "./options/LimitModelResetTypeIsDailyOptions"
|
|
24
24
|
import { LimitModelResetTypeIsWeeklyOptions } from "./options/LimitModelResetTypeIsWeeklyOptions"
|
|
25
25
|
import { LimitModelResetTypeIsMonthlyOptions } from "./options/LimitModelResetTypeIsMonthlyOptions"
|
|
26
|
+
import { LimitModelResetTypeIsDaysOptions } from "./options/LimitModelResetTypeIsDaysOptions"
|
|
26
27
|
import CurrentMasterData from "./CurrentMasterData";
|
|
27
28
|
|
|
28
29
|
export {
|
|
@@ -36,5 +37,6 @@ export {
|
|
|
36
37
|
LimitModelResetTypeIsDailyOptions,
|
|
37
38
|
LimitModelResetTypeIsWeeklyOptions,
|
|
38
39
|
LimitModelResetTypeIsMonthlyOptions,
|
|
40
|
+
LimitModelResetTypeIsDaysOptions,
|
|
39
41
|
CurrentMasterData,
|
|
40
42
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LimitModelResetTypeIsDaysOptions.js","sourceRoot":"","sources":["LimitModelResetTypeIsDaysOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { LimitModelResetType } from "../enum/LimitModelResetType";
|
|
17
|
+
import { LimitModelResetDayOfWeek } from "../enum/LimitModelResetDayOfWeek";
|
|
18
|
+
|
|
19
|
+
export interface LimitModelResetTypeIsDaysOptions {
|
|
20
|
+
metadata?: string|null;
|
|
21
|
+
}
|