gs2-cdk 1.0.95 → 1.0.97
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/distributor/model/BatchRequestPayload.d.ts +12 -0
- package/distributor/model/BatchRequestPayload.js +28 -0
- package/distributor/model/BatchRequestPayload.js.map +1 -0
- package/distributor/model/BatchRequestPayload.ts +57 -0
- package/distributor/model/BatchResultPayload.d.ts +10 -0
- package/distributor/model/BatchResultPayload.js +24 -0
- package/distributor/model/BatchResultPayload.js.map +1 -0
- package/distributor/model/BatchResultPayload.ts +50 -0
- package/distributor/model/enum/BatchRequestPayloadService.d.ts +52 -0
- package/distributor/model/enum/BatchRequestPayloadService.js +70 -0
- package/distributor/model/enum/BatchRequestPayloadService.js.map +1 -0
- package/distributor/model/enum/BatchRequestPayloadService.ts +70 -0
- package/distributor/model/index.d.ts +6 -1
- package/distributor/model/index.js +7 -1
- package/distributor/model/index.js.map +1 -1
- package/distributor/model/index.ts +10 -0
- package/distributor/model/options/BatchRequestPayloadOptions.d.ts +2 -0
- package/distributor/model/options/BatchRequestPayloadOptions.js +3 -0
- package/distributor/model/options/BatchRequestPayloadOptions.js.map +1 -0
- package/distributor/model/options/BatchRequestPayloadOptions.ts +20 -0
- package/distributor/model/options/BatchResultPayloadOptions.d.ts +2 -0
- package/distributor/model/options/BatchResultPayloadOptions.js +18 -0
- package/distributor/model/options/BatchResultPayloadOptions.js.map +1 -0
- package/distributor/model/options/BatchResultPayloadOptions.ts +19 -0
- package/guild/model/Inbox.d.ts +1 -0
- package/guild/model/Inbox.js +7 -2
- package/guild/model/Inbox.js.map +1 -1
- package/guild/model/Inbox.ts +7 -0
- package/guild/model/Member.d.ts +1 -0
- package/guild/model/Member.js +6 -0
- package/guild/model/Member.js.map +1 -1
- package/guild/model/Member.ts +5 -0
- package/guild/model/ReceiveMemberRequest.d.ts +1 -0
- package/guild/model/ReceiveMemberRequest.js +6 -0
- package/guild/model/ReceiveMemberRequest.js.map +1 -1
- package/guild/model/ReceiveMemberRequest.ts +5 -0
- package/guild/model/options/GuildOptions.d.ts +2 -0
- package/guild/model/options/GuildOptions.ts +2 -0
- package/guild/model/options/InboxOptions.d.ts +2 -0
- package/guild/model/options/InboxOptions.js +0 -15
- package/guild/model/options/InboxOptions.js.map +1 -1
- package/guild/model/options/InboxOptions.ts +2 -0
- package/guild/model/options/MemberOptions.d.ts +1 -0
- package/guild/model/options/MemberOptions.ts +1 -0
- package/guild/model/options/ReceiveMemberRequestOptions.d.ts +1 -0
- package/guild/model/options/ReceiveMemberRequestOptions.ts +1 -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/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/package.json +1 -1
- package/ranking2/model/ClusterRankingModel.d.ts +3 -1
- package/ranking2/model/ClusterRankingModel.js +5 -1
- package/ranking2/model/ClusterRankingModel.js.map +1 -1
- package/ranking2/model/ClusterRankingModel.ts +7 -0
- package/ranking2/model/GlobalRankingModel.d.ts +3 -1
- package/ranking2/model/GlobalRankingModel.js +5 -1
- package/ranking2/model/GlobalRankingModel.js.map +1 -1
- package/ranking2/model/GlobalRankingModel.ts +7 -0
- package/ranking2/model/enum/ClusterRankingModelRewardCalculationIndex.d.ts +5 -0
- package/ranking2/model/enum/ClusterRankingModelRewardCalculationIndex.js +23 -0
- package/ranking2/model/enum/ClusterRankingModelRewardCalculationIndex.js.map +1 -0
- package/ranking2/model/enum/ClusterRankingModelRewardCalculationIndex.ts +23 -0
- package/ranking2/model/enum/GlobalRankingModelRewardCalculationIndex.d.ts +5 -0
- package/ranking2/model/enum/GlobalRankingModelRewardCalculationIndex.js +23 -0
- package/ranking2/model/enum/GlobalRankingModelRewardCalculationIndex.js.map +1 -0
- package/ranking2/model/enum/GlobalRankingModelRewardCalculationIndex.ts +23 -0
- package/ranking2/model/index.d.ts +3 -1
- package/ranking2/model/index.js +5 -1
- package/ranking2/model/index.js.map +1 -1
- package/ranking2/model/index.ts +4 -0
- package/ranking2/model/options/ClusterRankingModelOptions.ts +1 -0
- package/ranking2/model/options/GlobalRankingModelOptions.ts +1 -0
|
@@ -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,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,IAAI,CAAC;QAC9D,IAAI,CAAC,eAAe,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,mCAAI,IAAI,CAAC;QACxD,IAAI,CAAC,qBAAqB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,qBAAqB,mCAAI,IAAI,CAAC;QACpE,IAAI,CAAC,sBAAsB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,sBAAsB,mCAAI,IAAI,CAAC;IAC1E,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QACD,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,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,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 {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BatchRequestPayloadOptions } from "./options/BatchRequestPayloadOptions";
|
|
2
|
+
import { BatchRequestPayloadService } from "./enum/BatchRequestPayloadService";
|
|
3
|
+
export default class BatchRequestPayload {
|
|
4
|
+
private readonly requestId;
|
|
5
|
+
private readonly service;
|
|
6
|
+
private readonly methodName;
|
|
7
|
+
private readonly parameter;
|
|
8
|
+
constructor(requestId: string, service: BatchRequestPayloadService, methodName: string, parameter: string, options?: BatchRequestPayloadOptions | null);
|
|
9
|
+
properties(): {
|
|
10
|
+
[name: string]: any;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class BatchRequestPayload {
|
|
4
|
+
constructor(requestId, service, methodName, parameter, options = null) {
|
|
5
|
+
this.requestId = requestId;
|
|
6
|
+
this.service = service;
|
|
7
|
+
this.methodName = methodName;
|
|
8
|
+
this.parameter = parameter;
|
|
9
|
+
}
|
|
10
|
+
properties() {
|
|
11
|
+
let properties = {};
|
|
12
|
+
if (this.requestId != null) {
|
|
13
|
+
properties["requestId"] = this.requestId;
|
|
14
|
+
}
|
|
15
|
+
if (this.service != null) {
|
|
16
|
+
properties["service"] = this.service;
|
|
17
|
+
}
|
|
18
|
+
if (this.methodName != null) {
|
|
19
|
+
properties["methodName"] = this.methodName;
|
|
20
|
+
}
|
|
21
|
+
if (this.parameter != null) {
|
|
22
|
+
properties["parameter"] = this.parameter;
|
|
23
|
+
}
|
|
24
|
+
return properties;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.default = BatchRequestPayload;
|
|
28
|
+
//# sourceMappingURL=BatchRequestPayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BatchRequestPayload.js","sourceRoot":"","sources":["BatchRequestPayload.ts"],"names":[],"mappings":";;AAkBA,MAAqB,mBAAmB;IAMpC,YACI,SAAiB,EACjB,OAAmC,EACnC,UAAkB,EAClB,SAAiB,EACjB,UAA2C,IAAI;QAE/C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,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,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QACD,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;AAtCD,sCAsCC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { BatchRequestPayloadOptions } from "./options/BatchRequestPayloadOptions";
|
|
17
|
+
import { BatchRequestPayloadService } from "./enum/BatchRequestPayloadService";
|
|
18
|
+
|
|
19
|
+
export default class BatchRequestPayload {
|
|
20
|
+
private readonly requestId: string;
|
|
21
|
+
private readonly service: BatchRequestPayloadService;
|
|
22
|
+
private readonly methodName: string;
|
|
23
|
+
private readonly parameter: string;
|
|
24
|
+
|
|
25
|
+
public constructor(
|
|
26
|
+
requestId: string,
|
|
27
|
+
service: BatchRequestPayloadService,
|
|
28
|
+
methodName: string,
|
|
29
|
+
parameter: string,
|
|
30
|
+
options: BatchRequestPayloadOptions|null = null,
|
|
31
|
+
) {
|
|
32
|
+
this.requestId = requestId;
|
|
33
|
+
this.service = service;
|
|
34
|
+
this.methodName = methodName;
|
|
35
|
+
this.parameter = parameter;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public properties(
|
|
39
|
+
): {[name: string]: any} {
|
|
40
|
+
let properties: {[name: string]: any} = {};
|
|
41
|
+
|
|
42
|
+
if (this.requestId != null) {
|
|
43
|
+
properties["requestId"] = this.requestId;
|
|
44
|
+
}
|
|
45
|
+
if (this.service != null) {
|
|
46
|
+
properties["service"] = this.service;
|
|
47
|
+
}
|
|
48
|
+
if (this.methodName != null) {
|
|
49
|
+
properties["methodName"] = this.methodName;
|
|
50
|
+
}
|
|
51
|
+
if (this.parameter != null) {
|
|
52
|
+
properties["parameter"] = this.parameter;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return properties;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BatchResultPayloadOptions } from "./options/BatchResultPayloadOptions";
|
|
2
|
+
export default class BatchResultPayload {
|
|
3
|
+
private readonly requestId;
|
|
4
|
+
private readonly statusCode;
|
|
5
|
+
private readonly resultPayload;
|
|
6
|
+
constructor(requestId: string, statusCode: number, resultPayload: string, options?: BatchResultPayloadOptions | null);
|
|
7
|
+
properties(): {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class BatchResultPayload {
|
|
4
|
+
constructor(requestId, statusCode, resultPayload, options = null) {
|
|
5
|
+
this.requestId = requestId;
|
|
6
|
+
this.statusCode = statusCode;
|
|
7
|
+
this.resultPayload = resultPayload;
|
|
8
|
+
}
|
|
9
|
+
properties() {
|
|
10
|
+
let properties = {};
|
|
11
|
+
if (this.requestId != null) {
|
|
12
|
+
properties["requestId"] = this.requestId;
|
|
13
|
+
}
|
|
14
|
+
if (this.statusCode != null) {
|
|
15
|
+
properties["statusCode"] = this.statusCode;
|
|
16
|
+
}
|
|
17
|
+
if (this.resultPayload != null) {
|
|
18
|
+
properties["resultPayload"] = this.resultPayload;
|
|
19
|
+
}
|
|
20
|
+
return properties;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = BatchResultPayload;
|
|
24
|
+
//# sourceMappingURL=BatchResultPayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BatchResultPayload.js","sourceRoot":"","sources":["BatchResultPayload.ts"],"names":[],"mappings":";;AAiBA,MAAqB,kBAAkB;IAKnC,YACI,SAAiB,EACjB,UAAkB,EAClB,aAAqB,EACrB,UAA0C,IAAI;QAE9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,qCAgCC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { BatchResultPayloadOptions } from "./options/BatchResultPayloadOptions";
|
|
17
|
+
|
|
18
|
+
export default class BatchResultPayload {
|
|
19
|
+
private readonly requestId: string;
|
|
20
|
+
private readonly statusCode: number;
|
|
21
|
+
private readonly resultPayload: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
requestId: string,
|
|
25
|
+
statusCode: number,
|
|
26
|
+
resultPayload: string,
|
|
27
|
+
options: BatchResultPayloadOptions|null = null,
|
|
28
|
+
) {
|
|
29
|
+
this.requestId = requestId;
|
|
30
|
+
this.statusCode = statusCode;
|
|
31
|
+
this.resultPayload = resultPayload;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public properties(
|
|
35
|
+
): {[name: string]: any} {
|
|
36
|
+
let properties: {[name: string]: any} = {};
|
|
37
|
+
|
|
38
|
+
if (this.requestId != null) {
|
|
39
|
+
properties["requestId"] = this.requestId;
|
|
40
|
+
}
|
|
41
|
+
if (this.statusCode != null) {
|
|
42
|
+
properties["statusCode"] = this.statusCode;
|
|
43
|
+
}
|
|
44
|
+
if (this.resultPayload != null) {
|
|
45
|
+
properties["resultPayload"] = this.resultPayload;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return properties;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const BatchRequestPayloadService: {
|
|
2
|
+
readonly ACCOUNT: "account";
|
|
3
|
+
readonly AD_REWARD: "adReward";
|
|
4
|
+
readonly AUTH: "auth";
|
|
5
|
+
readonly BUFF: "buff";
|
|
6
|
+
readonly CHAT: "chat";
|
|
7
|
+
readonly DATASTORE: "datastore";
|
|
8
|
+
readonly DEPLOY: "deploy";
|
|
9
|
+
readonly DICTIONARY: "dictionary";
|
|
10
|
+
readonly DISTRIBUTOR: "distributor";
|
|
11
|
+
readonly ENCHANT: "enchant";
|
|
12
|
+
readonly ENHANCE: "enhance";
|
|
13
|
+
readonly EXCHANGE: "exchange";
|
|
14
|
+
readonly EXPERIENCE: "experience";
|
|
15
|
+
readonly FORMATION: "formation";
|
|
16
|
+
readonly FRIEND: "friend";
|
|
17
|
+
readonly GATEWAY: "gateway";
|
|
18
|
+
readonly GRADE: "grade";
|
|
19
|
+
readonly GUARD: "guard";
|
|
20
|
+
readonly GUILD: "guild";
|
|
21
|
+
readonly IDENTIFIER: "identifier";
|
|
22
|
+
readonly IDLE: "idle";
|
|
23
|
+
readonly INBOX: "inbox";
|
|
24
|
+
readonly INVENTORY: "inventory";
|
|
25
|
+
readonly JOB_QUEUE: "jobQueue";
|
|
26
|
+
readonly KEY: "key";
|
|
27
|
+
readonly LIMIT: "limit";
|
|
28
|
+
readonly LOCK: "lock";
|
|
29
|
+
readonly LOG: "log";
|
|
30
|
+
readonly LOGIN_REWARD: "loginReward";
|
|
31
|
+
readonly LOTTERY: "lottery";
|
|
32
|
+
readonly MATCHMAKING: "matchmaking";
|
|
33
|
+
readonly MEGA_FIELD: "megaField";
|
|
34
|
+
readonly MISSION: "mission";
|
|
35
|
+
readonly MONEY: "money";
|
|
36
|
+
readonly MONEY2: "money2";
|
|
37
|
+
readonly NEWS: "news";
|
|
38
|
+
readonly QUEST: "quest";
|
|
39
|
+
readonly RANKING: "ranking";
|
|
40
|
+
readonly RANKING2: "ranking2";
|
|
41
|
+
readonly REALTIME: "realtime";
|
|
42
|
+
readonly SCHEDULE: "schedule";
|
|
43
|
+
readonly SCRIPT: "script";
|
|
44
|
+
readonly SEASON_RATING: "seasonRating";
|
|
45
|
+
readonly SERIAL_KEY: "serialKey";
|
|
46
|
+
readonly SHOWCASE: "showcase";
|
|
47
|
+
readonly SKILL_TREE: "skillTree";
|
|
48
|
+
readonly STAMINA: "stamina";
|
|
49
|
+
readonly STATE_MACHINE: "stateMachine";
|
|
50
|
+
readonly VERSION: "version";
|
|
51
|
+
};
|
|
52
|
+
export type BatchRequestPayloadService = typeof BatchRequestPayloadService[keyof typeof BatchRequestPayloadService];
|