gs2 1.4.9 → 1.4.11

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.
Files changed (195) hide show
  1. package/account/model/CurrentModelMaster.d.ts +22 -0
  2. package/account/model/CurrentModelMaster.js +111 -0
  3. package/account/model/CurrentModelMaster.js.map +1 -0
  4. package/account/model/CurrentModelMaster.ts +121 -0
  5. package/account/model/GitHubCheckoutSetting.d.ts +37 -0
  6. package/account/model/GitHubCheckoutSetting.js +132 -0
  7. package/account/model/GitHubCheckoutSetting.js.map +1 -0
  8. package/account/model/GitHubCheckoutSetting.ts +130 -0
  9. package/account/model/OpenIdConnectSetting.d.ts +17 -0
  10. package/account/model/OpenIdConnectSetting.js +62 -0
  11. package/account/model/OpenIdConnectSetting.js.map +1 -0
  12. package/account/model/OpenIdConnectSetting.ts +60 -0
  13. package/account/model/TakeOverTypeModel.d.ts +32 -0
  14. package/account/model/TakeOverTypeModel.js +160 -0
  15. package/account/model/TakeOverTypeModel.js.map +1 -0
  16. package/account/model/TakeOverTypeModel.ts +171 -0
  17. package/account/model/TakeOverTypeModelMaster.d.ts +48 -0
  18. package/account/model/TakeOverTypeModelMaster.js +216 -0
  19. package/account/model/TakeOverTypeModelMaster.js.map +1 -0
  20. package/account/model/TakeOverTypeModelMaster.ts +227 -0
  21. package/account/model/index.d.ts +6 -1
  22. package/account/model/index.js +11 -1
  23. package/account/model/index.js.map +1 -1
  24. package/account/model/index.ts +10 -0
  25. package/account/request/CreateTakeOverOpenIdConnectAndByUserIdRequest.d.ts +41 -0
  26. package/account/request/CreateTakeOverOpenIdConnectAndByUserIdRequest.js +137 -0
  27. package/account/request/CreateTakeOverOpenIdConnectAndByUserIdRequest.js.map +1 -0
  28. package/account/request/CreateTakeOverOpenIdConnectAndByUserIdRequest.ts +147 -0
  29. package/account/request/CreateTakeOverOpenIdConnectRequest.d.ts +37 -0
  30. package/account/request/CreateTakeOverOpenIdConnectRequest.js +123 -0
  31. package/account/request/CreateTakeOverOpenIdConnectRequest.js.map +1 -0
  32. package/account/request/CreateTakeOverOpenIdConnectRequest.ts +133 -0
  33. package/account/request/CreateTakeOverTypeModelMasterRequest.d.ts +38 -0
  34. package/account/request/CreateTakeOverTypeModelMasterRequest.js +128 -0
  35. package/account/request/CreateTakeOverTypeModelMasterRequest.js.map +1 -0
  36. package/account/request/CreateTakeOverTypeModelMasterRequest.ts +132 -0
  37. package/account/request/DeleteTakeOverTypeModelMasterRequest.d.ts +25 -0
  38. package/account/request/DeleteTakeOverTypeModelMasterRequest.js +83 -0
  39. package/account/request/DeleteTakeOverTypeModelMasterRequest.js.map +1 -0
  40. package/account/request/DeleteTakeOverTypeModelMasterRequest.ts +90 -0
  41. package/account/request/DescribeTakeOverTypeModelMastersRequest.d.ts +29 -0
  42. package/account/request/DescribeTakeOverTypeModelMastersRequest.js +97 -0
  43. package/account/request/DescribeTakeOverTypeModelMastersRequest.js.map +1 -0
  44. package/account/request/DescribeTakeOverTypeModelMastersRequest.ts +104 -0
  45. package/account/request/DescribeTakeOverTypeModelsRequest.d.ts +21 -0
  46. package/account/request/DescribeTakeOverTypeModelsRequest.js +69 -0
  47. package/account/request/DescribeTakeOverTypeModelsRequest.js.map +1 -0
  48. package/account/request/DescribeTakeOverTypeModelsRequest.ts +76 -0
  49. package/account/request/DoTakeOverOpenIdConnectRequest.d.ts +29 -0
  50. package/account/request/DoTakeOverOpenIdConnectRequest.js +97 -0
  51. package/account/request/DoTakeOverOpenIdConnectRequest.js.map +1 -0
  52. package/account/request/DoTakeOverOpenIdConnectRequest.ts +104 -0
  53. package/account/request/ExportMasterRequest.d.ts +21 -0
  54. package/account/request/ExportMasterRequest.js +69 -0
  55. package/account/request/ExportMasterRequest.js.map +1 -0
  56. package/account/request/ExportMasterRequest.ts +76 -0
  57. package/account/request/GetCurrentModelMasterRequest.d.ts +21 -0
  58. package/account/request/GetCurrentModelMasterRequest.js +69 -0
  59. package/account/request/GetCurrentModelMasterRequest.js.map +1 -0
  60. package/account/request/GetCurrentModelMasterRequest.ts +76 -0
  61. package/account/request/GetTakeOverTypeModelMasterRequest.d.ts +25 -0
  62. package/account/request/GetTakeOverTypeModelMasterRequest.js +83 -0
  63. package/account/request/GetTakeOverTypeModelMasterRequest.js.map +1 -0
  64. package/account/request/GetTakeOverTypeModelMasterRequest.ts +90 -0
  65. package/account/request/GetTakeOverTypeModelRequest.d.ts +25 -0
  66. package/account/request/GetTakeOverTypeModelRequest.js +83 -0
  67. package/account/request/GetTakeOverTypeModelRequest.js.map +1 -0
  68. package/account/request/GetTakeOverTypeModelRequest.ts +90 -0
  69. package/account/request/UpdateCurrentModelMasterFromGitHubRequest.d.ts +26 -0
  70. package/account/request/UpdateCurrentModelMasterFromGitHubRequest.js +86 -0
  71. package/account/request/UpdateCurrentModelMasterFromGitHubRequest.js.map +1 -0
  72. package/account/request/UpdateCurrentModelMasterFromGitHubRequest.ts +90 -0
  73. package/account/request/UpdateCurrentModelMasterRequest.d.ts +25 -0
  74. package/account/request/UpdateCurrentModelMasterRequest.js +83 -0
  75. package/account/request/UpdateCurrentModelMasterRequest.js.map +1 -0
  76. package/account/request/UpdateCurrentModelMasterRequest.ts +90 -0
  77. package/account/request/UpdateTakeOverTypeModelMasterRequest.d.ts +38 -0
  78. package/account/request/UpdateTakeOverTypeModelMasterRequest.js +128 -0
  79. package/account/request/UpdateTakeOverTypeModelMasterRequest.js.map +1 -0
  80. package/account/request/UpdateTakeOverTypeModelMasterRequest.ts +132 -0
  81. package/account/request/index.d.ts +15 -1
  82. package/account/request/index.js +30 -1
  83. package/account/request/index.js.map +1 -1
  84. package/account/request/index.ts +28 -0
  85. package/account/rest.d.ts +14 -0
  86. package/account/rest.js +370 -0
  87. package/account/rest.js.map +1 -1
  88. package/account/rest.ts +426 -0
  89. package/account/result/CreateTakeOverOpenIdConnectAndByUserIdResult.d.ts +14 -0
  90. package/account/result/CreateTakeOverOpenIdConnectAndByUserIdResult.js +48 -0
  91. package/account/result/CreateTakeOverOpenIdConnectAndByUserIdResult.js.map +1 -0
  92. package/account/result/CreateTakeOverOpenIdConnectAndByUserIdResult.ts +47 -0
  93. package/account/result/CreateTakeOverOpenIdConnectResult.d.ts +14 -0
  94. package/account/result/CreateTakeOverOpenIdConnectResult.js +48 -0
  95. package/account/result/CreateTakeOverOpenIdConnectResult.js.map +1 -0
  96. package/account/result/CreateTakeOverOpenIdConnectResult.ts +47 -0
  97. package/account/result/CreateTakeOverTypeModelMasterResult.d.ts +14 -0
  98. package/account/result/CreateTakeOverTypeModelMasterResult.js +48 -0
  99. package/account/result/CreateTakeOverTypeModelMasterResult.js.map +1 -0
  100. package/account/result/CreateTakeOverTypeModelMasterResult.ts +47 -0
  101. package/account/result/DeleteTakeOverTypeModelMasterResult.d.ts +14 -0
  102. package/account/result/DeleteTakeOverTypeModelMasterResult.js +48 -0
  103. package/account/result/DeleteTakeOverTypeModelMasterResult.js.map +1 -0
  104. package/account/result/DeleteTakeOverTypeModelMasterResult.ts +47 -0
  105. package/account/result/DescribeTakeOverTypeModelMastersResult.d.ts +18 -0
  106. package/account/result/DescribeTakeOverTypeModelMastersResult.js +67 -0
  107. package/account/result/DescribeTakeOverTypeModelMastersResult.js.map +1 -0
  108. package/account/result/DescribeTakeOverTypeModelMastersResult.ts +72 -0
  109. package/account/result/DescribeTakeOverTypeModelsResult.d.ts +14 -0
  110. package/account/result/DescribeTakeOverTypeModelsResult.js +53 -0
  111. package/account/result/DescribeTakeOverTypeModelsResult.js.map +1 -0
  112. package/account/result/DescribeTakeOverTypeModelsResult.ts +55 -0
  113. package/account/result/DoTakeOverOpenIdConnectResult.d.ts +14 -0
  114. package/account/result/DoTakeOverOpenIdConnectResult.js +48 -0
  115. package/account/result/DoTakeOverOpenIdConnectResult.js.map +1 -0
  116. package/account/result/DoTakeOverOpenIdConnectResult.ts +47 -0
  117. package/account/result/ExportMasterResult.d.ts +14 -0
  118. package/account/result/ExportMasterResult.js +48 -0
  119. package/account/result/ExportMasterResult.js.map +1 -0
  120. package/account/result/ExportMasterResult.ts +47 -0
  121. package/account/result/GetCurrentModelMasterResult.d.ts +14 -0
  122. package/account/result/GetCurrentModelMasterResult.js +48 -0
  123. package/account/result/GetCurrentModelMasterResult.js.map +1 -0
  124. package/account/result/GetCurrentModelMasterResult.ts +47 -0
  125. package/account/result/GetTakeOverTypeModelMasterResult.d.ts +14 -0
  126. package/account/result/GetTakeOverTypeModelMasterResult.js +48 -0
  127. package/account/result/GetTakeOverTypeModelMasterResult.js.map +1 -0
  128. package/account/result/GetTakeOverTypeModelMasterResult.ts +47 -0
  129. package/account/result/GetTakeOverTypeModelResult.d.ts +14 -0
  130. package/account/result/GetTakeOverTypeModelResult.js +48 -0
  131. package/account/result/GetTakeOverTypeModelResult.js.map +1 -0
  132. package/account/result/GetTakeOverTypeModelResult.ts +47 -0
  133. package/account/result/UpdateCurrentModelMasterFromGitHubResult.d.ts +14 -0
  134. package/account/result/UpdateCurrentModelMasterFromGitHubResult.js +48 -0
  135. package/account/result/UpdateCurrentModelMasterFromGitHubResult.js.map +1 -0
  136. package/account/result/UpdateCurrentModelMasterFromGitHubResult.ts +47 -0
  137. package/account/result/UpdateCurrentModelMasterResult.d.ts +14 -0
  138. package/account/result/UpdateCurrentModelMasterResult.js +48 -0
  139. package/account/result/UpdateCurrentModelMasterResult.js.map +1 -0
  140. package/account/result/UpdateCurrentModelMasterResult.ts +47 -0
  141. package/account/result/UpdateTakeOverTypeModelMasterResult.d.ts +14 -0
  142. package/account/result/UpdateTakeOverTypeModelMasterResult.js +48 -0
  143. package/account/result/UpdateTakeOverTypeModelMasterResult.js.map +1 -0
  144. package/account/result/UpdateTakeOverTypeModelMasterResult.ts +47 -0
  145. package/account/result/index.d.ts +15 -1
  146. package/account/result/index.js +30 -1
  147. package/account/result/index.js.map +1 -1
  148. package/account/result/index.ts +28 -0
  149. package/distributor/request/{IfExpressionByUserByStampTaskRequest.d.ts → AndExpressionByStampTaskRequest.d.ts} +2 -2
  150. package/distributor/request/{AndExpressionByUserByStampTaskRequest.js → AndExpressionByStampTaskRequest.js} +20 -20
  151. package/distributor/request/AndExpressionByStampTaskRequest.js.map +1 -0
  152. package/distributor/request/{AndExpressionByUserByStampTaskRequest.ts → AndExpressionByStampTaskRequest.ts} +3 -3
  153. package/distributor/request/{OrExpressionByUserByStampTaskRequest.d.ts → IfExpressionByStampTaskRequest.d.ts} +2 -2
  154. package/distributor/request/{IfExpressionByUserByStampTaskRequest.js → IfExpressionByStampTaskRequest.js} +20 -20
  155. package/distributor/request/IfExpressionByStampTaskRequest.js.map +1 -0
  156. package/distributor/request/{IfExpressionByUserByStampTaskRequest.ts → IfExpressionByStampTaskRequest.ts} +3 -3
  157. package/distributor/request/IfExpressionByUserIdRequest.d.ts +4 -0
  158. package/distributor/request/IfExpressionByUserIdRequest.js +14 -0
  159. package/distributor/request/IfExpressionByUserIdRequest.js.map +1 -1
  160. package/distributor/request/IfExpressionByUserIdRequest.ts +14 -0
  161. package/distributor/request/{AndExpressionByUserByStampTaskRequest.d.ts → OrExpressionByStampTaskRequest.d.ts} +2 -2
  162. package/distributor/request/{OrExpressionByUserByStampTaskRequest.js → OrExpressionByStampTaskRequest.js} +20 -20
  163. package/distributor/request/OrExpressionByStampTaskRequest.js.map +1 -0
  164. package/distributor/request/{OrExpressionByUserByStampTaskRequest.ts → OrExpressionByStampTaskRequest.ts} +3 -3
  165. package/distributor/request/index.d.ts +4 -4
  166. package/distributor/request/index.js +7 -7
  167. package/distributor/request/index.js.map +1 -1
  168. package/distributor/request/index.ts +6 -6
  169. package/distributor/rest.d.ts +3 -3
  170. package/distributor/rest.js +8 -7
  171. package/distributor/rest.js.map +1 -1
  172. package/distributor/rest.ts +7 -6
  173. package/distributor/result/{IfExpressionByUserByStampTaskResult.d.ts → AndExpressionByStampTaskResult.d.ts} +2 -2
  174. package/distributor/result/{IfExpressionByUserByStampTaskResult.js → AndExpressionByStampTaskResult.js} +11 -11
  175. package/distributor/result/AndExpressionByStampTaskResult.js.map +1 -0
  176. package/distributor/result/{AndExpressionByUserByStampTaskResult.ts → AndExpressionByStampTaskResult.ts} +3 -3
  177. package/distributor/result/{OrExpressionByUserByStampTaskResult.d.ts → IfExpressionByStampTaskResult.d.ts} +2 -2
  178. package/distributor/result/{OrExpressionByUserByStampTaskResult.js → IfExpressionByStampTaskResult.js} +11 -11
  179. package/distributor/result/IfExpressionByStampTaskResult.js.map +1 -0
  180. package/distributor/result/{IfExpressionByUserByStampTaskResult.ts → IfExpressionByStampTaskResult.ts} +3 -3
  181. package/distributor/result/{AndExpressionByUserByStampTaskResult.d.ts → OrExpressionByStampTaskResult.d.ts} +2 -2
  182. package/distributor/result/{AndExpressionByUserByStampTaskResult.js → OrExpressionByStampTaskResult.js} +11 -11
  183. package/distributor/result/OrExpressionByStampTaskResult.js.map +1 -0
  184. package/distributor/result/{OrExpressionByUserByStampTaskResult.ts → OrExpressionByStampTaskResult.ts} +3 -3
  185. package/distributor/result/index.d.ts +4 -4
  186. package/distributor/result/index.js +7 -7
  187. package/distributor/result/index.js.map +1 -1
  188. package/distributor/result/index.ts +6 -6
  189. package/package.json +1 -1
  190. package/distributor/request/AndExpressionByUserByStampTaskRequest.js.map +0 -1
  191. package/distributor/request/IfExpressionByUserByStampTaskRequest.js.map +0 -1
  192. package/distributor/request/OrExpressionByUserByStampTaskRequest.js.map +0 -1
  193. package/distributor/result/AndExpressionByUserByStampTaskResult.js.map +0 -1
  194. package/distributor/result/IfExpressionByUserByStampTaskResult.js.map +0 -1
  195. package/distributor/result/OrExpressionByUserByStampTaskResult.js.map +0 -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,38 @@ 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
+
1153
1262
  public describePlatformIds(request: Request.DescribePlatformIdsRequest): Promise<Result.DescribePlatformIdsResult> {
1154
1263
  const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/account/me/platformId')
1155
1264
  .replace('{service}', 'account')
@@ -1581,4 +1690,321 @@ export default class Gs2AccountRestClient extends AbstractGs2RestClient {
1581
1690
  throw JSON.parse(error.response.data.message);
1582
1691
  });
1583
1692
  }
1693
+
1694
+ public describeTakeOverTypeModels(request: Request.DescribeTakeOverTypeModelsRequest): Promise<Result.DescribeTakeOverTypeModelsResult> {
1695
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model')
1696
+ .replace('{service}', 'account')
1697
+ .replace('{region}', this.session.region)
1698
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1699
+
1700
+ const headers = this.createAuthorizedHeaders();
1701
+ if (request.getRequestId()) {
1702
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1703
+ }
1704
+ const params: {[key: string]: any} = {
1705
+ 'contextStack': request.getContextStack() ?? null,
1706
+ };
1707
+ return axios.get(
1708
+ url,
1709
+ {
1710
+ params,
1711
+ headers,
1712
+ },
1713
+ ).then((response: any) => {
1714
+ return Result.DescribeTakeOverTypeModelsResult.fromDict(response.data);
1715
+ }).catch((error: any) => {
1716
+ throw JSON.parse(error.response.data.message);
1717
+ });
1718
+ }
1719
+
1720
+ public getTakeOverTypeModel(request: Request.GetTakeOverTypeModelRequest): Promise<Result.GetTakeOverTypeModelResult> {
1721
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/model/{type}')
1722
+ .replace('{service}', 'account')
1723
+ .replace('{region}', this.session.region)
1724
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1725
+ .replace('{type}', String(request.getType() ?? 'null') === "" ? "null" : String(request.getType() ?? 'null'));
1726
+
1727
+ const headers = this.createAuthorizedHeaders();
1728
+ if (request.getRequestId()) {
1729
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1730
+ }
1731
+ const params: {[key: string]: any} = {
1732
+ 'contextStack': request.getContextStack() ?? null,
1733
+ };
1734
+ return axios.get(
1735
+ url,
1736
+ {
1737
+ params,
1738
+ headers,
1739
+ },
1740
+ ).then((response: any) => {
1741
+ return Result.GetTakeOverTypeModelResult.fromDict(response.data);
1742
+ }).catch((error: any) => {
1743
+ throw JSON.parse(error.response.data.message);
1744
+ });
1745
+ }
1746
+
1747
+ public describeTakeOverTypeModelMasters(request: Request.DescribeTakeOverTypeModelMastersRequest): Promise<Result.DescribeTakeOverTypeModelMastersResult> {
1748
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
1749
+ .replace('{service}', 'account')
1750
+ .replace('{region}', this.session.region)
1751
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1752
+
1753
+ const headers = this.createAuthorizedHeaders();
1754
+ if (request.getRequestId()) {
1755
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1756
+ }
1757
+ const params: {[key: string]: any} = {
1758
+ 'contextStack': request.getContextStack() ?? null,
1759
+ 'pageToken': String(request.getPageToken() ?? null),
1760
+ 'limit': String(request.getLimit() ?? null),
1761
+ };
1762
+ return axios.get(
1763
+ url,
1764
+ {
1765
+ params,
1766
+ headers,
1767
+ },
1768
+ ).then((response: any) => {
1769
+ return Result.DescribeTakeOverTypeModelMastersResult.fromDict(response.data);
1770
+ }).catch((error: any) => {
1771
+ throw JSON.parse(error.response.data.message);
1772
+ });
1773
+ }
1774
+
1775
+ public createTakeOverTypeModelMaster(request: Request.CreateTakeOverTypeModelMasterRequest): Promise<Result.CreateTakeOverTypeModelMasterResult> {
1776
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model')
1777
+ .replace('{service}', 'account')
1778
+ .replace('{region}', this.session.region)
1779
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1780
+
1781
+ const headers = this.createAuthorizedHeaders();
1782
+ if (request.getRequestId()) {
1783
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1784
+ }
1785
+ const body: {[key: string]: any} = {
1786
+ 'contextStack': request.getContextStack() ?? null,
1787
+ 'type': request.getType() ?? null,
1788
+ 'description': request.getDescription() ?? null,
1789
+ 'metadata': request.getMetadata() ?? null,
1790
+ 'openIdConnectSetting': request.getOpenIdConnectSetting()?.toDict() ?? null,
1791
+ };
1792
+ return axios.post(
1793
+ url,
1794
+ body,
1795
+ {
1796
+ headers,
1797
+ },
1798
+ ).then((response: any) => {
1799
+ return Result.CreateTakeOverTypeModelMasterResult.fromDict(response.data);
1800
+ }).catch((error: any) => {
1801
+ if (error.response) {
1802
+ throw JSON.parse(error.response.data.message);
1803
+ } else {
1804
+ throw [];
1805
+ }
1806
+ });
1807
+ }
1808
+
1809
+ public getTakeOverTypeModelMaster(request: Request.GetTakeOverTypeModelMasterRequest): Promise<Result.GetTakeOverTypeModelMasterResult> {
1810
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{type}')
1811
+ .replace('{service}', 'account')
1812
+ .replace('{region}', this.session.region)
1813
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1814
+ .replace('{type}', String(request.getType() ?? 'null') === "" ? "null" : String(request.getType() ?? 'null'));
1815
+
1816
+ const headers = this.createAuthorizedHeaders();
1817
+ if (request.getRequestId()) {
1818
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1819
+ }
1820
+ const params: {[key: string]: any} = {
1821
+ 'contextStack': request.getContextStack() ?? null,
1822
+ };
1823
+ return axios.get(
1824
+ url,
1825
+ {
1826
+ params,
1827
+ headers,
1828
+ },
1829
+ ).then((response: any) => {
1830
+ return Result.GetTakeOverTypeModelMasterResult.fromDict(response.data);
1831
+ }).catch((error: any) => {
1832
+ throw JSON.parse(error.response.data.message);
1833
+ });
1834
+ }
1835
+
1836
+ public updateTakeOverTypeModelMaster(request: Request.UpdateTakeOverTypeModelMasterRequest): Promise<Result.UpdateTakeOverTypeModelMasterResult> {
1837
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{type}')
1838
+ .replace('{service}', 'account')
1839
+ .replace('{region}', this.session.region)
1840
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1841
+ .replace('{type}', String(request.getType() ?? 'null') === "" ? "null" : String(request.getType() ?? 'null'));
1842
+
1843
+ const headers = this.createAuthorizedHeaders();
1844
+ if (request.getRequestId()) {
1845
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1846
+ }
1847
+ const body: {[key: string]: any} = {
1848
+ 'contextStack': request.getContextStack() ?? null,
1849
+ 'description': request.getDescription() ?? null,
1850
+ 'metadata': request.getMetadata() ?? null,
1851
+ 'openIdConnectSetting': request.getOpenIdConnectSetting()?.toDict() ?? null,
1852
+ };
1853
+ return axios.put(
1854
+ url,
1855
+ body,
1856
+ {
1857
+ headers,
1858
+ },
1859
+ ).then((response: any) => {
1860
+ return Result.UpdateTakeOverTypeModelMasterResult.fromDict(response.data);
1861
+ }).catch((error: any) => {
1862
+ if (error.response) {
1863
+ throw JSON.parse(error.response.data.message);
1864
+ } else {
1865
+ throw [];
1866
+ }
1867
+ });
1868
+ }
1869
+
1870
+ public deleteTakeOverTypeModelMaster(request: Request.DeleteTakeOverTypeModelMasterRequest): Promise<Result.DeleteTakeOverTypeModelMasterResult> {
1871
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/model/{type}')
1872
+ .replace('{service}', 'account')
1873
+ .replace('{region}', this.session.region)
1874
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1875
+ .replace('{type}', String(request.getType() ?? 'null') === "" ? "null" : String(request.getType() ?? 'null'));
1876
+
1877
+ const headers = this.createAuthorizedHeaders();
1878
+ if (request.getRequestId()) {
1879
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1880
+ }
1881
+ const params: {[key: string]: any} = {
1882
+ 'contextStack': request.getContextStack() ?? null,
1883
+ };
1884
+ return axios.delete(
1885
+ url,
1886
+ {
1887
+ params,
1888
+ headers,
1889
+ },
1890
+ ).then((response: any) => {
1891
+ return Result.DeleteTakeOverTypeModelMasterResult.fromDict(response.data);
1892
+ }).catch((error: any) => {
1893
+ throw JSON.parse(error.response.data.message);
1894
+ });
1895
+ }
1896
+
1897
+ public exportMaster(request: Request.ExportMasterRequest): Promise<Result.ExportMasterResult> {
1898
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
1899
+ .replace('{service}', 'account')
1900
+ .replace('{region}', this.session.region)
1901
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1902
+
1903
+ const headers = this.createAuthorizedHeaders();
1904
+ if (request.getRequestId()) {
1905
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1906
+ }
1907
+ const params: {[key: string]: any} = {
1908
+ 'contextStack': request.getContextStack() ?? null,
1909
+ };
1910
+ return axios.get(
1911
+ url,
1912
+ {
1913
+ params,
1914
+ headers,
1915
+ },
1916
+ ).then((response: any) => {
1917
+ return Result.ExportMasterResult.fromDict(response.data);
1918
+ }).catch((error: any) => {
1919
+ throw JSON.parse(error.response.data.message);
1920
+ });
1921
+ }
1922
+
1923
+ public getCurrentModelMaster(request: Request.GetCurrentModelMasterRequest): Promise<Result.GetCurrentModelMasterResult> {
1924
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
1925
+ .replace('{service}', 'account')
1926
+ .replace('{region}', this.session.region)
1927
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1928
+
1929
+ const headers = this.createAuthorizedHeaders();
1930
+ if (request.getRequestId()) {
1931
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1932
+ }
1933
+ const params: {[key: string]: any} = {
1934
+ 'contextStack': request.getContextStack() ?? null,
1935
+ };
1936
+ return axios.get(
1937
+ url,
1938
+ {
1939
+ params,
1940
+ headers,
1941
+ },
1942
+ ).then((response: any) => {
1943
+ return Result.GetCurrentModelMasterResult.fromDict(response.data);
1944
+ }).catch((error: any) => {
1945
+ throw JSON.parse(error.response.data.message);
1946
+ });
1947
+ }
1948
+
1949
+ public updateCurrentModelMaster(request: Request.UpdateCurrentModelMasterRequest): Promise<Result.UpdateCurrentModelMasterResult> {
1950
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
1951
+ .replace('{service}', 'account')
1952
+ .replace('{region}', this.session.region)
1953
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1954
+
1955
+ const headers = this.createAuthorizedHeaders();
1956
+ if (request.getRequestId()) {
1957
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1958
+ }
1959
+ const body: {[key: string]: any} = {
1960
+ 'contextStack': request.getContextStack() ?? null,
1961
+ 'settings': request.getSettings() ?? null,
1962
+ };
1963
+ return axios.put(
1964
+ url,
1965
+ body,
1966
+ {
1967
+ headers,
1968
+ },
1969
+ ).then((response: any) => {
1970
+ return Result.UpdateCurrentModelMasterResult.fromDict(response.data);
1971
+ }).catch((error: any) => {
1972
+ if (error.response) {
1973
+ throw JSON.parse(error.response.data.message);
1974
+ } else {
1975
+ throw [];
1976
+ }
1977
+ });
1978
+ }
1979
+
1980
+ public updateCurrentModelMasterFromGitHub(request: Request.UpdateCurrentModelMasterFromGitHubRequest): Promise<Result.UpdateCurrentModelMasterFromGitHubResult> {
1981
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
1982
+ .replace('{service}', 'account')
1983
+ .replace('{region}', this.session.region)
1984
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1985
+
1986
+ const headers = this.createAuthorizedHeaders();
1987
+ if (request.getRequestId()) {
1988
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1989
+ }
1990
+ const body: {[key: string]: any} = {
1991
+ 'contextStack': request.getContextStack() ?? null,
1992
+ 'checkoutSetting': request.getCheckoutSetting()?.toDict() ?? null,
1993
+ };
1994
+ return axios.put(
1995
+ url,
1996
+ body,
1997
+ {
1998
+ headers,
1999
+ },
2000
+ ).then((response: any) => {
2001
+ return Result.UpdateCurrentModelMasterFromGitHubResult.fromDict(response.data);
2002
+ }).catch((error: any) => {
2003
+ if (error.response) {
2004
+ throw JSON.parse(error.response.data.message);
2005
+ } else {
2006
+ throw [];
2007
+ }
2008
+ });
2009
+ }
1584
2010
  }
@@ -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"}
@@ -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 CreateTakeOverOpenIdConnectResult 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}): CreateTakeOverOpenIdConnectResult {
38
+ return new CreateTakeOverOpenIdConnectResult()
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
+ }