gs2 1.4.10 → 1.4.12
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/CurrentModelMaster.d.ts +22 -0
- package/account/model/CurrentModelMaster.js +111 -0
- package/account/model/CurrentModelMaster.js.map +1 -0
- package/account/model/CurrentModelMaster.ts +121 -0
- package/account/model/GitHubCheckoutSetting.d.ts +37 -0
- package/account/model/GitHubCheckoutSetting.js +132 -0
- package/account/model/GitHubCheckoutSetting.js.map +1 -0
- package/account/model/GitHubCheckoutSetting.ts +130 -0
- package/account/model/OpenIdConnectSetting.d.ts +33 -0
- package/account/model/OpenIdConnectSetting.js +118 -0
- package/account/model/OpenIdConnectSetting.js.map +1 -0
- package/account/model/OpenIdConnectSetting.ts +116 -0
- package/account/model/TakeOverTypeModel.d.ts +32 -0
- package/account/model/TakeOverTypeModel.js +160 -0
- package/account/model/TakeOverTypeModel.js.map +1 -0
- package/account/model/TakeOverTypeModel.ts +171 -0
- package/account/model/TakeOverTypeModelMaster.d.ts +48 -0
- package/account/model/TakeOverTypeModelMaster.js +216 -0
- package/account/model/TakeOverTypeModelMaster.js.map +1 -0
- package/account/model/TakeOverTypeModelMaster.ts +227 -0
- package/account/model/index.d.ts +6 -1
- package/account/model/index.js +11 -1
- package/account/model/index.js.map +1 -1
- package/account/model/index.ts +10 -0
- package/account/request/CreateTakeOverOpenIdConnectAndByUserIdRequest.d.ts +41 -0
- package/account/request/CreateTakeOverOpenIdConnectAndByUserIdRequest.js +137 -0
- package/account/request/CreateTakeOverOpenIdConnectAndByUserIdRequest.js.map +1 -0
- package/account/request/CreateTakeOverOpenIdConnectAndByUserIdRequest.ts +147 -0
- package/account/request/CreateTakeOverOpenIdConnectRequest.d.ts +37 -0
- package/account/request/CreateTakeOverOpenIdConnectRequest.js +123 -0
- package/account/request/CreateTakeOverOpenIdConnectRequest.js.map +1 -0
- package/account/request/CreateTakeOverOpenIdConnectRequest.ts +133 -0
- package/account/request/CreateTakeOverTypeModelMasterRequest.d.ts +38 -0
- package/account/request/CreateTakeOverTypeModelMasterRequest.js +128 -0
- package/account/request/CreateTakeOverTypeModelMasterRequest.js.map +1 -0
- package/account/request/CreateTakeOverTypeModelMasterRequest.ts +132 -0
- package/account/request/DeleteTakeOverTypeModelMasterRequest.d.ts +25 -0
- package/account/request/DeleteTakeOverTypeModelMasterRequest.js +83 -0
- package/account/request/DeleteTakeOverTypeModelMasterRequest.js.map +1 -0
- package/account/request/DeleteTakeOverTypeModelMasterRequest.ts +90 -0
- package/account/request/DescribeTakeOverTypeModelMastersRequest.d.ts +29 -0
- package/account/request/DescribeTakeOverTypeModelMastersRequest.js +97 -0
- package/account/request/DescribeTakeOverTypeModelMastersRequest.js.map +1 -0
- package/account/request/DescribeTakeOverTypeModelMastersRequest.ts +104 -0
- package/account/request/DescribeTakeOverTypeModelsRequest.d.ts +21 -0
- package/account/request/DescribeTakeOverTypeModelsRequest.js +69 -0
- package/account/request/DescribeTakeOverTypeModelsRequest.js.map +1 -0
- package/account/request/DescribeTakeOverTypeModelsRequest.ts +76 -0
- package/account/request/DoTakeOverOpenIdConnectRequest.d.ts +29 -0
- package/account/request/DoTakeOverOpenIdConnectRequest.js +97 -0
- package/account/request/DoTakeOverOpenIdConnectRequest.js.map +1 -0
- package/account/request/DoTakeOverOpenIdConnectRequest.ts +104 -0
- package/account/request/ExportMasterRequest.d.ts +21 -0
- package/account/request/ExportMasterRequest.js +69 -0
- package/account/request/ExportMasterRequest.js.map +1 -0
- package/account/request/ExportMasterRequest.ts +76 -0
- package/account/request/GetAuthorizationUrlRequest.d.ts +29 -0
- package/account/request/GetAuthorizationUrlRequest.js +97 -0
- package/account/request/GetAuthorizationUrlRequest.js.map +1 -0
- package/account/request/GetAuthorizationUrlRequest.ts +104 -0
- package/account/request/GetCurrentModelMasterRequest.d.ts +21 -0
- package/account/request/GetCurrentModelMasterRequest.js +69 -0
- package/account/request/GetCurrentModelMasterRequest.js.map +1 -0
- package/account/request/GetCurrentModelMasterRequest.ts +76 -0
- package/account/request/GetTakeOverTypeModelMasterRequest.d.ts +25 -0
- package/account/request/GetTakeOverTypeModelMasterRequest.js +83 -0
- package/account/request/GetTakeOverTypeModelMasterRequest.js.map +1 -0
- package/account/request/GetTakeOverTypeModelMasterRequest.ts +90 -0
- package/account/request/GetTakeOverTypeModelRequest.d.ts +25 -0
- package/account/request/GetTakeOverTypeModelRequest.js +83 -0
- package/account/request/GetTakeOverTypeModelRequest.js.map +1 -0
- package/account/request/GetTakeOverTypeModelRequest.ts +90 -0
- package/account/request/UpdateCurrentModelMasterFromGitHubRequest.d.ts +26 -0
- package/account/request/UpdateCurrentModelMasterFromGitHubRequest.js +86 -0
- package/account/request/UpdateCurrentModelMasterFromGitHubRequest.js.map +1 -0
- package/account/request/UpdateCurrentModelMasterFromGitHubRequest.ts +90 -0
- package/account/request/UpdateCurrentModelMasterRequest.d.ts +25 -0
- package/account/request/UpdateCurrentModelMasterRequest.js +83 -0
- package/account/request/UpdateCurrentModelMasterRequest.js.map +1 -0
- package/account/request/UpdateCurrentModelMasterRequest.ts +90 -0
- package/account/request/UpdateTakeOverTypeModelMasterRequest.d.ts +38 -0
- package/account/request/UpdateTakeOverTypeModelMasterRequest.js +128 -0
- package/account/request/UpdateTakeOverTypeModelMasterRequest.js.map +1 -0
- package/account/request/UpdateTakeOverTypeModelMasterRequest.ts +132 -0
- package/account/request/index.d.ts +16 -1
- package/account/request/index.js +32 -1
- package/account/request/index.js.map +1 -1
- package/account/request/index.ts +30 -0
- package/account/rest.d.ts +15 -0
- package/account/rest.js +396 -0
- package/account/rest.js.map +1 -1
- package/account/rest.ts +456 -0
- package/account/result/CreateTakeOverOpenIdConnectAndByUserIdResult.d.ts +14 -0
- package/account/result/CreateTakeOverOpenIdConnectAndByUserIdResult.js +48 -0
- package/account/result/CreateTakeOverOpenIdConnectAndByUserIdResult.js.map +1 -0
- package/account/result/CreateTakeOverOpenIdConnectAndByUserIdResult.ts +47 -0
- package/account/result/CreateTakeOverOpenIdConnectResult.d.ts +14 -0
- package/account/result/CreateTakeOverOpenIdConnectResult.js +48 -0
- package/account/result/CreateTakeOverOpenIdConnectResult.js.map +1 -0
- package/account/result/CreateTakeOverOpenIdConnectResult.ts +47 -0
- package/account/result/CreateTakeOverTypeModelMasterResult.d.ts +14 -0
- package/account/result/CreateTakeOverTypeModelMasterResult.js +48 -0
- package/account/result/CreateTakeOverTypeModelMasterResult.js.map +1 -0
- package/account/result/CreateTakeOverTypeModelMasterResult.ts +47 -0
- package/account/result/DeleteTakeOverTypeModelMasterResult.d.ts +14 -0
- package/account/result/DeleteTakeOverTypeModelMasterResult.js +48 -0
- package/account/result/DeleteTakeOverTypeModelMasterResult.js.map +1 -0
- package/account/result/DeleteTakeOverTypeModelMasterResult.ts +47 -0
- package/account/result/DescribeTakeOverTypeModelMastersResult.d.ts +18 -0
- package/account/result/DescribeTakeOverTypeModelMastersResult.js +67 -0
- package/account/result/DescribeTakeOverTypeModelMastersResult.js.map +1 -0
- package/account/result/DescribeTakeOverTypeModelMastersResult.ts +72 -0
- package/account/result/DescribeTakeOverTypeModelsResult.d.ts +14 -0
- package/account/result/DescribeTakeOverTypeModelsResult.js +53 -0
- package/account/result/DescribeTakeOverTypeModelsResult.js.map +1 -0
- package/account/result/DescribeTakeOverTypeModelsResult.ts +55 -0
- package/account/result/DoTakeOverOpenIdConnectResult.d.ts +14 -0
- package/account/result/DoTakeOverOpenIdConnectResult.js +48 -0
- package/account/result/DoTakeOverOpenIdConnectResult.js.map +1 -0
- package/account/result/DoTakeOverOpenIdConnectResult.ts +47 -0
- package/account/result/ExportMasterResult.d.ts +14 -0
- package/account/result/ExportMasterResult.js +48 -0
- package/account/result/ExportMasterResult.js.map +1 -0
- package/account/result/ExportMasterResult.ts +47 -0
- package/account/result/GetAuthorizationUrlResult.d.ts +13 -0
- package/account/result/GetAuthorizationUrlResult.js +45 -0
- package/account/result/GetAuthorizationUrlResult.js.map +1 -0
- package/account/result/GetAuthorizationUrlResult.ts +46 -0
- package/account/result/GetCurrentModelMasterResult.d.ts +14 -0
- package/account/result/GetCurrentModelMasterResult.js +48 -0
- package/account/result/GetCurrentModelMasterResult.js.map +1 -0
- package/account/result/GetCurrentModelMasterResult.ts +47 -0
- package/account/result/GetTakeOverTypeModelMasterResult.d.ts +14 -0
- package/account/result/GetTakeOverTypeModelMasterResult.js +48 -0
- package/account/result/GetTakeOverTypeModelMasterResult.js.map +1 -0
- package/account/result/GetTakeOverTypeModelMasterResult.ts +47 -0
- package/account/result/GetTakeOverTypeModelResult.d.ts +14 -0
- package/account/result/GetTakeOverTypeModelResult.js +48 -0
- package/account/result/GetTakeOverTypeModelResult.js.map +1 -0
- package/account/result/GetTakeOverTypeModelResult.ts +47 -0
- package/account/result/UpdateCurrentModelMasterFromGitHubResult.d.ts +14 -0
- package/account/result/UpdateCurrentModelMasterFromGitHubResult.js +48 -0
- package/account/result/UpdateCurrentModelMasterFromGitHubResult.js.map +1 -0
- package/account/result/UpdateCurrentModelMasterFromGitHubResult.ts +47 -0
- package/account/result/UpdateCurrentModelMasterResult.d.ts +14 -0
- package/account/result/UpdateCurrentModelMasterResult.js +48 -0
- package/account/result/UpdateCurrentModelMasterResult.js.map +1 -0
- package/account/result/UpdateCurrentModelMasterResult.ts +47 -0
- package/account/result/UpdateTakeOverTypeModelMasterResult.d.ts +14 -0
- package/account/result/UpdateTakeOverTypeModelMasterResult.js +48 -0
- package/account/result/UpdateTakeOverTypeModelMasterResult.js.map +1 -0
- package/account/result/UpdateTakeOverTypeModelMasterResult.ts +47 -0
- package/account/result/index.d.ts +16 -1
- package/account/result/index.js +32 -1
- package/account/result/index.js.map +1 -1
- package/account/result/index.ts +30 -0
- package/package.json +1 -1
package/account/rest.ts
CHANGED
|
@@ -878,6 +878,83 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
|
|
|
878
878
|
});
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
+
public createTakeOverOpenIdConnect(request: Request.CreateTakeOverOpenIdConnectRequest): Promise<Result.CreateTakeOverOpenIdConnectResult> {
|
|
882
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/takeover/openIdConnect')
|
|
883
|
+
.replace('{service}', 'account')
|
|
884
|
+
.replace('{region}', this.session.region)
|
|
885
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
886
|
+
|
|
887
|
+
const headers = this.createAuthorizedHeaders();
|
|
888
|
+
if (request.getRequestId()) {
|
|
889
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
890
|
+
}
|
|
891
|
+
if (request.getAccessToken()) {
|
|
892
|
+
headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
|
|
893
|
+
}
|
|
894
|
+
if (request.getDuplicationAvoider()) {
|
|
895
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
896
|
+
}
|
|
897
|
+
const body: {[key: string]: any} = {
|
|
898
|
+
'contextStack': request.getContextStack() ?? null,
|
|
899
|
+
'type': request.getType() ?? null,
|
|
900
|
+
'idToken': request.getIdToken() ?? null,
|
|
901
|
+
};
|
|
902
|
+
return axios.post(
|
|
903
|
+
url,
|
|
904
|
+
body,
|
|
905
|
+
{
|
|
906
|
+
headers,
|
|
907
|
+
},
|
|
908
|
+
).then((response: any) => {
|
|
909
|
+
return Result.CreateTakeOverOpenIdConnectResult.fromDict(response.data);
|
|
910
|
+
}).catch((error: any) => {
|
|
911
|
+
if (error.response) {
|
|
912
|
+
throw JSON.parse(error.response.data.message);
|
|
913
|
+
} else {
|
|
914
|
+
throw [];
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
public createTakeOverOpenIdConnectAndByUserId(request: Request.CreateTakeOverOpenIdConnectAndByUserIdRequest): Promise<Result.CreateTakeOverOpenIdConnectAndByUserIdResult> {
|
|
920
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/{userId}/takeover/openIdConnect')
|
|
921
|
+
.replace('{service}', 'account')
|
|
922
|
+
.replace('{region}', this.session.region)
|
|
923
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
924
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
925
|
+
|
|
926
|
+
const headers = this.createAuthorizedHeaders();
|
|
927
|
+
if (request.getRequestId()) {
|
|
928
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
929
|
+
}
|
|
930
|
+
if (request.getDuplicationAvoider()) {
|
|
931
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
932
|
+
}
|
|
933
|
+
if (request.getTimeOffsetToken()) {
|
|
934
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = request.getTimeOffsetToken() ?? null;
|
|
935
|
+
}
|
|
936
|
+
const body: {[key: string]: any} = {
|
|
937
|
+
'contextStack': request.getContextStack() ?? null,
|
|
938
|
+
'type': request.getType() ?? null,
|
|
939
|
+
'idToken': request.getIdToken() ?? null,
|
|
940
|
+
};
|
|
941
|
+
return axios.post(
|
|
942
|
+
url,
|
|
943
|
+
body,
|
|
944
|
+
{
|
|
945
|
+
headers,
|
|
946
|
+
},
|
|
947
|
+
).then((response: any) => {
|
|
948
|
+
return Result.CreateTakeOverOpenIdConnectAndByUserIdResult.fromDict(response.data);
|
|
949
|
+
}).catch((error: any) => {
|
|
950
|
+
if (error.response) {
|
|
951
|
+
throw JSON.parse(error.response.data.message);
|
|
952
|
+
} else {
|
|
953
|
+
throw [];
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
|
|
881
958
|
public getTakeOver(request: Request.GetTakeOverRequest): Promise<Result.GetTakeOverResult> {
|
|
882
959
|
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/takeover/type/{type}')
|
|
883
960
|
.replace('{service}', 'account')
|
|
@@ -1150,6 +1227,68 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
|
|
|
1150
1227
|
});
|
|
1151
1228
|
}
|
|
1152
1229
|
|
|
1230
|
+
public doTakeOverOpenIdConnect(request: Request.DoTakeOverOpenIdConnectRequest): Promise<Result.DoTakeOverOpenIdConnectResult> {
|
|
1231
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/takeover/type/{type}/openIdConnect')
|
|
1232
|
+
.replace('{service}', 'account')
|
|
1233
|
+
.replace('{region}', this.session.region)
|
|
1234
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
1235
|
+
.replace('{type}', String(request.getType() ?? 'null') === "" ? "null" : String(request.getType() ?? 'null'));
|
|
1236
|
+
|
|
1237
|
+
const headers = this.createAuthorizedHeaders();
|
|
1238
|
+
if (request.getRequestId()) {
|
|
1239
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1240
|
+
}
|
|
1241
|
+
const body: {[key: string]: any} = {
|
|
1242
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1243
|
+
'idToken': request.getIdToken() ?? null,
|
|
1244
|
+
};
|
|
1245
|
+
return axios.post(
|
|
1246
|
+
url,
|
|
1247
|
+
body,
|
|
1248
|
+
{
|
|
1249
|
+
headers,
|
|
1250
|
+
},
|
|
1251
|
+
).then((response: any) => {
|
|
1252
|
+
return Result.DoTakeOverOpenIdConnectResult.fromDict(response.data);
|
|
1253
|
+
}).catch((error: any) => {
|
|
1254
|
+
if (error.response) {
|
|
1255
|
+
throw JSON.parse(error.response.data.message);
|
|
1256
|
+
} else {
|
|
1257
|
+
throw [];
|
|
1258
|
+
}
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
public getAuthorizationUrl(request: Request.GetAuthorizationUrlRequest): Promise<Result.GetAuthorizationUrlResult> {
|
|
1263
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/type/{type}/authorization/url')
|
|
1264
|
+
.replace('{service}', 'account')
|
|
1265
|
+
.replace('{region}', this.session.region)
|
|
1266
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
1267
|
+
.replace('{type}', String(request.getType() ?? 'null') === "" ? "null" : String(request.getType() ?? 'null'));
|
|
1268
|
+
|
|
1269
|
+
const headers = this.createAuthorizedHeaders();
|
|
1270
|
+
if (request.getRequestId()) {
|
|
1271
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1272
|
+
}
|
|
1273
|
+
if (request.getAccessToken()) {
|
|
1274
|
+
headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
|
|
1275
|
+
}
|
|
1276
|
+
const params: {[key: string]: any} = {
|
|
1277
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1278
|
+
};
|
|
1279
|
+
return axios.get(
|
|
1280
|
+
url,
|
|
1281
|
+
{
|
|
1282
|
+
params,
|
|
1283
|
+
headers,
|
|
1284
|
+
},
|
|
1285
|
+
).then((response: any) => {
|
|
1286
|
+
return Result.GetAuthorizationUrlResult.fromDict(response.data);
|
|
1287
|
+
}).catch((error: any) => {
|
|
1288
|
+
throw JSON.parse(error.response.data.message);
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1153
1292
|
public describePlatformIds(request: Request.DescribePlatformIdsRequest): Promise<Result.DescribePlatformIdsResult> {
|
|
1154
1293
|
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/platformId')
|
|
1155
1294
|
.replace('{service}', 'account')
|
|
@@ -1581,4 +1720,321 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
|
|
|
1581
1720
|
throw JSON.parse(error.response.data.message);
|
|
1582
1721
|
});
|
|
1583
1722
|
}
|
|
1723
|
+
|
|
1724
|
+
public describeTakeOverTypeModels(request: Request.DescribeTakeOverTypeModelsRequest): Promise<Result.DescribeTakeOverTypeModelsResult> {
|
|
1725
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
|
|
1726
|
+
.replace('{service}', 'account')
|
|
1727
|
+
.replace('{region}', this.session.region)
|
|
1728
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
1729
|
+
|
|
1730
|
+
const headers = this.createAuthorizedHeaders();
|
|
1731
|
+
if (request.getRequestId()) {
|
|
1732
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1733
|
+
}
|
|
1734
|
+
const params: {[key: string]: any} = {
|
|
1735
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1736
|
+
};
|
|
1737
|
+
return axios.get(
|
|
1738
|
+
url,
|
|
1739
|
+
{
|
|
1740
|
+
params,
|
|
1741
|
+
headers,
|
|
1742
|
+
},
|
|
1743
|
+
).then((response: any) => {
|
|
1744
|
+
return Result.DescribeTakeOverTypeModelsResult.fromDict(response.data);
|
|
1745
|
+
}).catch((error: any) => {
|
|
1746
|
+
throw JSON.parse(error.response.data.message);
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
public getTakeOverTypeModel(request: Request.GetTakeOverTypeModelRequest): Promise<Result.GetTakeOverTypeModelResult> {
|
|
1751
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{type}')
|
|
1752
|
+
.replace('{service}', 'account')
|
|
1753
|
+
.replace('{region}', this.session.region)
|
|
1754
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
1755
|
+
.replace('{type}', String(request.getType() ?? 'null') === "" ? "null" : String(request.getType() ?? 'null'));
|
|
1756
|
+
|
|
1757
|
+
const headers = this.createAuthorizedHeaders();
|
|
1758
|
+
if (request.getRequestId()) {
|
|
1759
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1760
|
+
}
|
|
1761
|
+
const params: {[key: string]: any} = {
|
|
1762
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1763
|
+
};
|
|
1764
|
+
return axios.get(
|
|
1765
|
+
url,
|
|
1766
|
+
{
|
|
1767
|
+
params,
|
|
1768
|
+
headers,
|
|
1769
|
+
},
|
|
1770
|
+
).then((response: any) => {
|
|
1771
|
+
return Result.GetTakeOverTypeModelResult.fromDict(response.data);
|
|
1772
|
+
}).catch((error: any) => {
|
|
1773
|
+
throw JSON.parse(error.response.data.message);
|
|
1774
|
+
});
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
public describeTakeOverTypeModelMasters(request: Request.DescribeTakeOverTypeModelMastersRequest): Promise<Result.DescribeTakeOverTypeModelMastersResult> {
|
|
1778
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
1779
|
+
.replace('{service}', 'account')
|
|
1780
|
+
.replace('{region}', this.session.region)
|
|
1781
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
1782
|
+
|
|
1783
|
+
const headers = this.createAuthorizedHeaders();
|
|
1784
|
+
if (request.getRequestId()) {
|
|
1785
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1786
|
+
}
|
|
1787
|
+
const params: {[key: string]: any} = {
|
|
1788
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1789
|
+
'pageToken': String(request.getPageToken() ?? null),
|
|
1790
|
+
'limit': String(request.getLimit() ?? null),
|
|
1791
|
+
};
|
|
1792
|
+
return axios.get(
|
|
1793
|
+
url,
|
|
1794
|
+
{
|
|
1795
|
+
params,
|
|
1796
|
+
headers,
|
|
1797
|
+
},
|
|
1798
|
+
).then((response: any) => {
|
|
1799
|
+
return Result.DescribeTakeOverTypeModelMastersResult.fromDict(response.data);
|
|
1800
|
+
}).catch((error: any) => {
|
|
1801
|
+
throw JSON.parse(error.response.data.message);
|
|
1802
|
+
});
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
public createTakeOverTypeModelMaster(request: Request.CreateTakeOverTypeModelMasterRequest): Promise<Result.CreateTakeOverTypeModelMasterResult> {
|
|
1806
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
|
|
1807
|
+
.replace('{service}', 'account')
|
|
1808
|
+
.replace('{region}', this.session.region)
|
|
1809
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
1810
|
+
|
|
1811
|
+
const headers = this.createAuthorizedHeaders();
|
|
1812
|
+
if (request.getRequestId()) {
|
|
1813
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1814
|
+
}
|
|
1815
|
+
const body: {[key: string]: any} = {
|
|
1816
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1817
|
+
'type': request.getType() ?? null,
|
|
1818
|
+
'description': request.getDescription() ?? null,
|
|
1819
|
+
'metadata': request.getMetadata() ?? null,
|
|
1820
|
+
'openIdConnectSetting': request.getOpenIdConnectSetting()?.toDict() ?? null,
|
|
1821
|
+
};
|
|
1822
|
+
return axios.post(
|
|
1823
|
+
url,
|
|
1824
|
+
body,
|
|
1825
|
+
{
|
|
1826
|
+
headers,
|
|
1827
|
+
},
|
|
1828
|
+
).then((response: any) => {
|
|
1829
|
+
return Result.CreateTakeOverTypeModelMasterResult.fromDict(response.data);
|
|
1830
|
+
}).catch((error: any) => {
|
|
1831
|
+
if (error.response) {
|
|
1832
|
+
throw JSON.parse(error.response.data.message);
|
|
1833
|
+
} else {
|
|
1834
|
+
throw [];
|
|
1835
|
+
}
|
|
1836
|
+
});
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
public getTakeOverTypeModelMaster(request: Request.GetTakeOverTypeModelMasterRequest): Promise<Result.GetTakeOverTypeModelMasterResult> {
|
|
1840
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{type}')
|
|
1841
|
+
.replace('{service}', 'account')
|
|
1842
|
+
.replace('{region}', this.session.region)
|
|
1843
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
1844
|
+
.replace('{type}', String(request.getType() ?? 'null') === "" ? "null" : String(request.getType() ?? 'null'));
|
|
1845
|
+
|
|
1846
|
+
const headers = this.createAuthorizedHeaders();
|
|
1847
|
+
if (request.getRequestId()) {
|
|
1848
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1849
|
+
}
|
|
1850
|
+
const params: {[key: string]: any} = {
|
|
1851
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1852
|
+
};
|
|
1853
|
+
return axios.get(
|
|
1854
|
+
url,
|
|
1855
|
+
{
|
|
1856
|
+
params,
|
|
1857
|
+
headers,
|
|
1858
|
+
},
|
|
1859
|
+
).then((response: any) => {
|
|
1860
|
+
return Result.GetTakeOverTypeModelMasterResult.fromDict(response.data);
|
|
1861
|
+
}).catch((error: any) => {
|
|
1862
|
+
throw JSON.parse(error.response.data.message);
|
|
1863
|
+
});
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
public updateTakeOverTypeModelMaster(request: Request.UpdateTakeOverTypeModelMasterRequest): Promise<Result.UpdateTakeOverTypeModelMasterResult> {
|
|
1867
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{type}')
|
|
1868
|
+
.replace('{service}', 'account')
|
|
1869
|
+
.replace('{region}', this.session.region)
|
|
1870
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
1871
|
+
.replace('{type}', String(request.getType() ?? 'null') === "" ? "null" : String(request.getType() ?? 'null'));
|
|
1872
|
+
|
|
1873
|
+
const headers = this.createAuthorizedHeaders();
|
|
1874
|
+
if (request.getRequestId()) {
|
|
1875
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1876
|
+
}
|
|
1877
|
+
const body: {[key: string]: any} = {
|
|
1878
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1879
|
+
'description': request.getDescription() ?? null,
|
|
1880
|
+
'metadata': request.getMetadata() ?? null,
|
|
1881
|
+
'openIdConnectSetting': request.getOpenIdConnectSetting()?.toDict() ?? null,
|
|
1882
|
+
};
|
|
1883
|
+
return axios.put(
|
|
1884
|
+
url,
|
|
1885
|
+
body,
|
|
1886
|
+
{
|
|
1887
|
+
headers,
|
|
1888
|
+
},
|
|
1889
|
+
).then((response: any) => {
|
|
1890
|
+
return Result.UpdateTakeOverTypeModelMasterResult.fromDict(response.data);
|
|
1891
|
+
}).catch((error: any) => {
|
|
1892
|
+
if (error.response) {
|
|
1893
|
+
throw JSON.parse(error.response.data.message);
|
|
1894
|
+
} else {
|
|
1895
|
+
throw [];
|
|
1896
|
+
}
|
|
1897
|
+
});
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
public deleteTakeOverTypeModelMaster(request: Request.DeleteTakeOverTypeModelMasterRequest): Promise<Result.DeleteTakeOverTypeModelMasterResult> {
|
|
1901
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{type}')
|
|
1902
|
+
.replace('{service}', 'account')
|
|
1903
|
+
.replace('{region}', this.session.region)
|
|
1904
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
1905
|
+
.replace('{type}', String(request.getType() ?? 'null') === "" ? "null" : String(request.getType() ?? 'null'));
|
|
1906
|
+
|
|
1907
|
+
const headers = this.createAuthorizedHeaders();
|
|
1908
|
+
if (request.getRequestId()) {
|
|
1909
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1910
|
+
}
|
|
1911
|
+
const params: {[key: string]: any} = {
|
|
1912
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1913
|
+
};
|
|
1914
|
+
return axios.delete(
|
|
1915
|
+
url,
|
|
1916
|
+
{
|
|
1917
|
+
params,
|
|
1918
|
+
headers,
|
|
1919
|
+
},
|
|
1920
|
+
).then((response: any) => {
|
|
1921
|
+
return Result.DeleteTakeOverTypeModelMasterResult.fromDict(response.data);
|
|
1922
|
+
}).catch((error: any) => {
|
|
1923
|
+
throw JSON.parse(error.response.data.message);
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
public exportMaster(request: Request.ExportMasterRequest): Promise<Result.ExportMasterResult> {
|
|
1928
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
1929
|
+
.replace('{service}', 'account')
|
|
1930
|
+
.replace('{region}', this.session.region)
|
|
1931
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
1932
|
+
|
|
1933
|
+
const headers = this.createAuthorizedHeaders();
|
|
1934
|
+
if (request.getRequestId()) {
|
|
1935
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1936
|
+
}
|
|
1937
|
+
const params: {[key: string]: any} = {
|
|
1938
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1939
|
+
};
|
|
1940
|
+
return axios.get(
|
|
1941
|
+
url,
|
|
1942
|
+
{
|
|
1943
|
+
params,
|
|
1944
|
+
headers,
|
|
1945
|
+
},
|
|
1946
|
+
).then((response: any) => {
|
|
1947
|
+
return Result.ExportMasterResult.fromDict(response.data);
|
|
1948
|
+
}).catch((error: any) => {
|
|
1949
|
+
throw JSON.parse(error.response.data.message);
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
public getCurrentModelMaster(request: Request.GetCurrentModelMasterRequest): Promise<Result.GetCurrentModelMasterResult> {
|
|
1954
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1955
|
+
.replace('{service}', 'account')
|
|
1956
|
+
.replace('{region}', this.session.region)
|
|
1957
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
1958
|
+
|
|
1959
|
+
const headers = this.createAuthorizedHeaders();
|
|
1960
|
+
if (request.getRequestId()) {
|
|
1961
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1962
|
+
}
|
|
1963
|
+
const params: {[key: string]: any} = {
|
|
1964
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1965
|
+
};
|
|
1966
|
+
return axios.get(
|
|
1967
|
+
url,
|
|
1968
|
+
{
|
|
1969
|
+
params,
|
|
1970
|
+
headers,
|
|
1971
|
+
},
|
|
1972
|
+
).then((response: any) => {
|
|
1973
|
+
return Result.GetCurrentModelMasterResult.fromDict(response.data);
|
|
1974
|
+
}).catch((error: any) => {
|
|
1975
|
+
throw JSON.parse(error.response.data.message);
|
|
1976
|
+
});
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
public updateCurrentModelMaster(request: Request.UpdateCurrentModelMasterRequest): Promise<Result.UpdateCurrentModelMasterResult> {
|
|
1980
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
|
|
1981
|
+
.replace('{service}', 'account')
|
|
1982
|
+
.replace('{region}', this.session.region)
|
|
1983
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
1984
|
+
|
|
1985
|
+
const headers = this.createAuthorizedHeaders();
|
|
1986
|
+
if (request.getRequestId()) {
|
|
1987
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1988
|
+
}
|
|
1989
|
+
const body: {[key: string]: any} = {
|
|
1990
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1991
|
+
'settings': request.getSettings() ?? null,
|
|
1992
|
+
};
|
|
1993
|
+
return axios.put(
|
|
1994
|
+
url,
|
|
1995
|
+
body,
|
|
1996
|
+
{
|
|
1997
|
+
headers,
|
|
1998
|
+
},
|
|
1999
|
+
).then((response: any) => {
|
|
2000
|
+
return Result.UpdateCurrentModelMasterResult.fromDict(response.data);
|
|
2001
|
+
}).catch((error: any) => {
|
|
2002
|
+
if (error.response) {
|
|
2003
|
+
throw JSON.parse(error.response.data.message);
|
|
2004
|
+
} else {
|
|
2005
|
+
throw [];
|
|
2006
|
+
}
|
|
2007
|
+
});
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
public updateCurrentModelMasterFromGitHub(request: Request.UpdateCurrentModelMasterFromGitHubRequest): Promise<Result.UpdateCurrentModelMasterFromGitHubResult> {
|
|
2011
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
|
|
2012
|
+
.replace('{service}', 'account')
|
|
2013
|
+
.replace('{region}', this.session.region)
|
|
2014
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
2015
|
+
|
|
2016
|
+
const headers = this.createAuthorizedHeaders();
|
|
2017
|
+
if (request.getRequestId()) {
|
|
2018
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2019
|
+
}
|
|
2020
|
+
const body: {[key: string]: any} = {
|
|
2021
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2022
|
+
'checkoutSetting': request.getCheckoutSetting()?.toDict() ?? null,
|
|
2023
|
+
};
|
|
2024
|
+
return axios.put(
|
|
2025
|
+
url,
|
|
2026
|
+
body,
|
|
2027
|
+
{
|
|
2028
|
+
headers,
|
|
2029
|
+
},
|
|
2030
|
+
).then((response: any) => {
|
|
2031
|
+
return Result.UpdateCurrentModelMasterFromGitHubResult.fromDict(response.data);
|
|
2032
|
+
}).catch((error: any) => {
|
|
2033
|
+
if (error.response) {
|
|
2034
|
+
throw JSON.parse(error.response.data.message);
|
|
2035
|
+
} else {
|
|
2036
|
+
throw [];
|
|
2037
|
+
}
|
|
2038
|
+
});
|
|
2039
|
+
}
|
|
1584
2040
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Account from '../model';
|
|
3
|
+
export default class CreateTakeOverOpenIdConnectAndByUserIdResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
getItem(): Gs2Account.TakeOver | null;
|
|
6
|
+
setItem(item: Gs2Account.TakeOver | null): this;
|
|
7
|
+
withItem(item: Gs2Account.TakeOver | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): CreateTakeOverOpenIdConnectAndByUserIdResult;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Account = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var CreateTakeOverOpenIdConnectAndByUserIdResult = /** @class */ (function () {
|
|
21
|
+
function CreateTakeOverOpenIdConnectAndByUserIdResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
CreateTakeOverOpenIdConnectAndByUserIdResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
CreateTakeOverOpenIdConnectAndByUserIdResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
CreateTakeOverOpenIdConnectAndByUserIdResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
CreateTakeOverOpenIdConnectAndByUserIdResult.fromDict = function (data) {
|
|
36
|
+
return new CreateTakeOverOpenIdConnectAndByUserIdResult()
|
|
37
|
+
.withItem(Gs2Account.TakeOver.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
CreateTakeOverOpenIdConnectAndByUserIdResult.prototype.toDict = function () {
|
|
40
|
+
var _a;
|
|
41
|
+
return {
|
|
42
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return CreateTakeOverOpenIdConnectAndByUserIdResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = CreateTakeOverOpenIdConnectAndByUserIdResult;
|
|
48
|
+
//# sourceMappingURL=CreateTakeOverOpenIdConnectAndByUserIdResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateTakeOverOpenIdConnectAndByUserIdResult.js","sourceRoot":"","sources":["CreateTakeOverOpenIdConnectAndByUserIdResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,2DAAsC;AAEtC;IAAA;QACY,SAAI,GAA6B,IAAI,CAAC;IA0BlD,CAAC;IAxBU,8DAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,8DAAO,GAAd,UAAe,IAA8B;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,+DAAQ,GAAf,UAAgB,IAA8B;QAC1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,qDAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,4CAA4C,EAAE;aACpD,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC9D,CAAC;IAEM,6DAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,mDAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 IResult from '../../core/interface/IResult';
|
|
18
|
+
import * as Gs2Account from '../model'
|
|
19
|
+
|
|
20
|
+
export default class CreateTakeOverOpenIdConnectAndByUserIdResult implements IResult {
|
|
21
|
+
private item: Gs2Account.TakeOver|null = null;
|
|
22
|
+
|
|
23
|
+
public getItem(): Gs2Account.TakeOver|null {
|
|
24
|
+
return this.item;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public setItem(item: Gs2Account.TakeOver|null) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public withItem(item: Gs2Account.TakeOver|null): this {
|
|
33
|
+
this.item = item;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public static fromDict(data: {[key: string]: any}): CreateTakeOverOpenIdConnectAndByUserIdResult {
|
|
38
|
+
return new CreateTakeOverOpenIdConnectAndByUserIdResult()
|
|
39
|
+
.withItem(Gs2Account.TakeOver.fromDict(data["item"]));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public toDict(): {[key: string]: any} {
|
|
43
|
+
return {
|
|
44
|
+
"item": this.getItem()?.toDict(),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Account from '../model';
|
|
3
|
+
export default class CreateTakeOverOpenIdConnectResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
getItem(): Gs2Account.TakeOver | null;
|
|
6
|
+
setItem(item: Gs2Account.TakeOver | null): this;
|
|
7
|
+
withItem(item: Gs2Account.TakeOver | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): CreateTakeOverOpenIdConnectResult;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Account = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var CreateTakeOverOpenIdConnectResult = /** @class */ (function () {
|
|
21
|
+
function CreateTakeOverOpenIdConnectResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
CreateTakeOverOpenIdConnectResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
CreateTakeOverOpenIdConnectResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
CreateTakeOverOpenIdConnectResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
CreateTakeOverOpenIdConnectResult.fromDict = function (data) {
|
|
36
|
+
return new CreateTakeOverOpenIdConnectResult()
|
|
37
|
+
.withItem(Gs2Account.TakeOver.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
CreateTakeOverOpenIdConnectResult.prototype.toDict = function () {
|
|
40
|
+
var _a;
|
|
41
|
+
return {
|
|
42
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return CreateTakeOverOpenIdConnectResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = CreateTakeOverOpenIdConnectResult;
|
|
48
|
+
//# sourceMappingURL=CreateTakeOverOpenIdConnectResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateTakeOverOpenIdConnectResult.js","sourceRoot":"","sources":["CreateTakeOverOpenIdConnectResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,2DAAsC;AAEtC;IAAA;QACY,SAAI,GAA6B,IAAI,CAAC;IA0BlD,CAAC;IAxBU,mDAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,mDAAO,GAAd,UAAe,IAA8B;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oDAAQ,GAAf,UAAgB,IAA8B;QAC1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,0CAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,iCAAiC,EAAE;aACzC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC9D,CAAC;IAEM,kDAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,wCAAC;AAAD,CAAC,AA3BD,IA2BC"}
|