gs2 1.3.8 → 1.3.34

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 (194) hide show
  1. package/package.json +1 -1
  2. package/src/account/model/DataOwner.ts +182 -0
  3. package/src/account/model/Namespace.ts +17 -0
  4. package/src/account/model/index.ts +2 -0
  5. package/src/account/request/CreateNamespaceRequest.ts +17 -0
  6. package/src/account/request/CreateTakeOverByUserIdRequest.ts +15 -0
  7. package/src/account/request/DeleteBnlinkRequest.ts +113 -0
  8. package/src/account/request/DeleteDataOwnerByUserIdRequest.ts +96 -0
  9. package/src/account/request/DeleteTakeOverByUserIdentifierRequest.ts +15 -0
  10. package/src/account/request/DescribeBnlinksRequest.ts +181 -0
  11. package/src/account/request/GetBnlinkRequest.ts +113 -0
  12. package/src/account/request/GetDataOwnerByUserIdRequest.ts +96 -0
  13. package/src/account/request/SetBnlinkRequest.ts +113 -0
  14. package/src/account/request/UpdateNamespaceRequest.ts +17 -0
  15. package/src/account/request/UpdateTakeOverByUserIdRequest.ts +15 -0
  16. package/src/account/request/UpdateTimeOffsetRequest.ts +15 -0
  17. package/src/account/request/index.ts +4 -0
  18. package/src/account/rest.ts +68 -0
  19. package/src/account/result/DeleteBnlinkResult.ts +48 -0
  20. package/src/account/result/DeleteDataOwnerByUserIdResult.ts +48 -0
  21. package/src/account/result/DescribeBnlinksResult.ts +73 -0
  22. package/src/account/result/GetBnlinkResult.ts +48 -0
  23. package/src/account/result/GetDataOwnerByUserIdResult.ts +48 -0
  24. package/src/account/result/SetBnlinkResult.ts +48 -0
  25. package/src/account/result/index.ts +4 -0
  26. package/src/auth/model/AccessToken.ts +18 -11
  27. package/src/auth/request/LoginBySignatureRequest.ts +0 -17
  28. package/src/auth/rest.ts +0 -1
  29. package/src/chat/request/PostByUserIdRequest.ts +15 -0
  30. package/src/chat/request/SubscribeByUserIdRequest.ts +15 -0
  31. package/src/chat/request/UnsubscribeByUserIdRequest.ts +15 -0
  32. package/src/chat/request/UpdateNotificationTypeByUserIdRequest.ts +15 -0
  33. package/src/chat/rest.ts +12 -0
  34. package/src/datastore/request/DeleteDataObjectByUserIdRequest.ts +15 -0
  35. package/src/datastore/request/DoneUploadByUserIdRequest.ts +15 -0
  36. package/src/datastore/request/PrepareDownloadByGenerationAndUserIdRequest.ts +15 -0
  37. package/src/datastore/request/PrepareDownloadByUserIdAndDataObjectNameAndGenerationRequest.ts +15 -0
  38. package/src/datastore/request/PrepareDownloadByUserIdAndDataObjectNameRequest.ts +15 -0
  39. package/src/datastore/request/PrepareDownloadByUserIdRequest.ts +15 -0
  40. package/src/datastore/request/PrepareReUploadByUserIdRequest.ts +15 -0
  41. package/src/datastore/request/PrepareUploadByUserIdRequest.ts +15 -0
  42. package/src/datastore/request/UpdateDataObjectByUserIdRequest.ts +15 -0
  43. package/src/datastore/rest.ts +27 -0
  44. package/src/deploy/model/Event.ts +1 -1
  45. package/src/deploy/model/Output.ts +1 -1
  46. package/src/deploy/model/Resource.ts +1 -1
  47. package/src/deploy/model/Stack.ts +1 -1
  48. package/src/dictionary/request/AddEntriesByUserIdRequest.ts +15 -0
  49. package/src/dictionary/request/ResetByUserIdRequest.ts +15 -0
  50. package/src/dictionary/rest.ts +6 -0
  51. package/src/enhance/request/CreateProgressByUserIdRequest.ts +15 -0
  52. package/src/enhance/request/DeleteProgressByUserIdRequest.ts +15 -0
  53. package/src/enhance/request/DirectEnhanceByUserIdRequest.ts +15 -0
  54. package/src/enhance/request/EndByUserIdRequest.ts +15 -0
  55. package/src/enhance/request/StartByUserIdRequest.ts +15 -0
  56. package/src/enhance/rest.ts +15 -0
  57. package/src/exchange/request/AcquireByUserIdRequest.ts +15 -0
  58. package/src/exchange/request/AcquireForceByUserIdRequest.ts +15 -0
  59. package/src/exchange/request/CreateAwaitByUserIdRequest.ts +15 -0
  60. package/src/exchange/request/DeleteAwaitByUserIdRequest.ts +15 -0
  61. package/src/exchange/request/ExchangeByUserIdRequest.ts +15 -0
  62. package/src/exchange/request/SkipByUserIdRequest.ts +15 -0
  63. package/src/exchange/rest.ts +18 -0
  64. package/src/experience/request/AddExperienceByUserIdRequest.ts +15 -0
  65. package/src/experience/request/AddRankCapByUserIdRequest.ts +15 -0
  66. package/src/experience/request/DeleteStatusByUserIdRequest.ts +15 -0
  67. package/src/experience/request/SetExperienceByUserIdRequest.ts +15 -0
  68. package/src/experience/request/SetRankCapByUserIdRequest.ts +15 -0
  69. package/src/experience/rest.ts +15 -0
  70. package/src/formation/request/AcquireActionsToFormPropertiesRequest.ts +15 -0
  71. package/src/formation/request/AddMoldCapacityByUserIdRequest.ts +15 -0
  72. package/src/formation/request/DeleteFormByUserIdRequest.ts +15 -0
  73. package/src/formation/request/DeleteMoldByUserIdRequest.ts +15 -0
  74. package/src/formation/request/SetFormByUserIdRequest.ts +15 -0
  75. package/src/formation/request/SetMoldCapacityByUserIdRequest.ts +15 -0
  76. package/src/formation/rest.ts +18 -0
  77. package/src/friend/request/AcceptRequestByUserIdRequest.ts +15 -0
  78. package/src/friend/request/DeleteFriendByUserIdRequest.ts +15 -0
  79. package/src/friend/request/DeleteProfileByUserIdRequest.ts +15 -0
  80. package/src/friend/request/DeleteRequestByUserIdRequest.ts +15 -0
  81. package/src/friend/request/FollowByUserIdRequest.ts +15 -0
  82. package/src/friend/request/RegisterBlackListByUserIdRequest.ts +15 -0
  83. package/src/friend/request/RejectRequestByUserIdRequest.ts +15 -0
  84. package/src/friend/request/SendRequestByUserIdRequest.ts +15 -0
  85. package/src/friend/request/UnfollowByUserIdRequest.ts +15 -0
  86. package/src/friend/request/UnregisterBlackListByUserIdRequest.ts +15 -0
  87. package/src/friend/request/UpdateProfileByUserIdRequest.ts +15 -0
  88. package/src/friend/rest.ts +33 -0
  89. package/src/friend/result/DeleteProfileByUserIdResult.ts +18 -1
  90. package/src/gateway/request/DeleteFirebaseTokenByUserIdRequest.ts +15 -0
  91. package/src/gateway/request/SendMobileNotificationByUserIdRequest.ts +15 -0
  92. package/src/gateway/request/SendNotificationRequest.ts +15 -0
  93. package/src/gateway/request/SetFirebaseTokenByUserIdRequest.ts +15 -0
  94. package/src/gateway/request/SetUserIdByUserIdRequest.ts +15 -0
  95. package/src/gateway/rest.ts +15 -0
  96. package/src/inbox/request/DeleteMessageByUserIdRequest.ts +15 -0
  97. package/src/inbox/request/DeleteReceivedByUserIdRequest.ts +15 -0
  98. package/src/inbox/request/OpenMessageByUserIdRequest.ts +15 -0
  99. package/src/inbox/request/ReadMessageByUserIdRequest.ts +15 -0
  100. package/src/inbox/request/ReceiveGlobalMessageByUserIdRequest.ts +15 -0
  101. package/src/inbox/request/SendMessageByUserIdRequest.ts +15 -0
  102. package/src/inbox/request/UpdateReceivedByUserIdRequest.ts +15 -0
  103. package/src/inbox/rest.ts +21 -0
  104. package/src/inventory/request/AcquireItemSetByUserIdRequest.ts +15 -0
  105. package/src/inventory/request/AddCapacityByUserIdRequest.ts +15 -0
  106. package/src/inventory/request/AddReferenceOfByUserIdRequest.ts +15 -0
  107. package/src/inventory/request/ConsumeItemSetByUserIdRequest.ts +15 -0
  108. package/src/inventory/request/DeleteInventoryByUserIdRequest.ts +15 -0
  109. package/src/inventory/request/DeleteItemSetByUserIdRequest.ts +15 -0
  110. package/src/inventory/request/DeleteReferenceOfByUserIdRequest.ts +15 -0
  111. package/src/inventory/request/SetCapacityByUserIdRequest.ts +15 -0
  112. package/src/inventory/request/VerifyReferenceOfByUserIdRequest.ts +15 -0
  113. package/src/inventory/rest.ts +27 -0
  114. package/src/jobQueue/request/DeleteDeadLetterJobByUserIdRequest.ts +15 -0
  115. package/src/jobQueue/request/DeleteJobByUserIdRequest.ts +15 -0
  116. package/src/jobQueue/request/PushByUserIdRequest.ts +15 -0
  117. package/src/jobQueue/request/RunByUserIdRequest.ts +15 -0
  118. package/src/jobQueue/rest.ts +12 -0
  119. package/src/limit/request/CountUpByUserIdRequest.ts +15 -0
  120. package/src/limit/request/DeleteCounterByUserIdRequest.ts +15 -0
  121. package/src/limit/rest.ts +6 -0
  122. package/src/lock/request/DeleteMutexByUserIdRequest.ts +15 -0
  123. package/src/lock/request/LockByUserIdRequest.ts +15 -0
  124. package/src/lock/request/UnlockByUserIdRequest.ts +15 -0
  125. package/src/lock/rest.ts +9 -0
  126. package/src/lottery/model/Box.ts +44 -2
  127. package/src/lottery/request/DrawByUserIdRequest.ts +15 -0
  128. package/src/lottery/request/ResetBoxByUserIdRequest.ts +15 -0
  129. package/src/lottery/request/index.ts +0 -2
  130. package/src/lottery/rest.ts +6 -28
  131. package/src/lottery/result/DrawByStampSheetResult.ts +1 -18
  132. package/src/lottery/result/DrawByUserIdResult.ts +1 -18
  133. package/src/lottery/result/index.ts +0 -2
  134. package/src/matchmaking/request/CancelMatchmakingByUserIdRequest.ts +15 -0
  135. package/src/matchmaking/request/CreateGatheringByUserIdRequest.ts +15 -0
  136. package/src/matchmaking/request/DeleteRatingRequest.ts +15 -0
  137. package/src/matchmaking/request/DoMatchmakingByUserIdRequest.ts +15 -0
  138. package/src/matchmaking/request/UpdateGatheringByUserIdRequest.ts +15 -0
  139. package/src/matchmaking/rest.ts +15 -0
  140. package/src/mission/request/CompleteByUserIdRequest.ts +15 -0
  141. package/src/mission/request/DeleteCompleteByUserIdRequest.ts +15 -0
  142. package/src/mission/request/DeleteCounterByUserIdRequest.ts +15 -0
  143. package/src/mission/request/IncreaseCounterByUserIdRequest.ts +15 -0
  144. package/src/mission/request/ReceiveByUserIdRequest.ts +15 -0
  145. package/src/mission/rest.ts +15 -0
  146. package/src/money/request/DepositByUserIdRequest.ts +15 -0
  147. package/src/money/request/RecordReceiptRequest.ts +15 -0
  148. package/src/money/request/WithdrawByUserIdRequest.ts +15 -0
  149. package/src/money/rest.ts +9 -0
  150. package/src/project/result/DeleteAccountResult.ts +18 -1
  151. package/src/project/result/ForgetResult.ts +1 -18
  152. package/src/quest/request/CreateProgressByUserIdRequest.ts +15 -0
  153. package/src/quest/request/DeleteCompletedQuestListByUserIdRequest.ts +15 -0
  154. package/src/quest/request/DeleteProgressByUserIdRequest.ts +15 -0
  155. package/src/quest/request/EndByUserIdRequest.ts +15 -0
  156. package/src/quest/request/StartByUserIdRequest.ts +15 -0
  157. package/src/quest/rest.ts +15 -0
  158. package/src/ranking/request/PutScoreByUserIdRequest.ts +15 -0
  159. package/src/ranking/request/SubscribeByUserIdRequest.ts +15 -0
  160. package/src/ranking/request/UnsubscribeByUserIdRequest.ts +15 -0
  161. package/src/ranking/rest.ts +9 -0
  162. package/src/ranking/result/CalcRankingResult.ts +18 -1
  163. package/src/schedule/request/DeleteTriggerByUserIdRequest.ts +15 -0
  164. package/src/schedule/request/TriggerByUserIdRequest.ts +15 -0
  165. package/src/schedule/rest.ts +6 -0
  166. package/src/stamina/request/ConsumeStaminaByUserIdRequest.ts +15 -0
  167. package/src/stamina/request/DeleteStaminaByUserIdRequest.ts +15 -0
  168. package/src/stamina/request/RaiseMaxValueByUserIdRequest.ts +15 -0
  169. package/src/stamina/request/RecoverStaminaByUserIdRequest.ts +15 -0
  170. package/src/stamina/request/SetMaxValueByUserIdRequest.ts +15 -0
  171. package/src/stamina/request/SetRecoverIntervalByUserIdRequest.ts +15 -0
  172. package/src/stamina/request/SetRecoverValueByUserIdRequest.ts +15 -0
  173. package/src/stamina/request/UpdateStaminaByUserIdRequest.ts +15 -0
  174. package/src/stamina/rest.ts +24 -0
  175. package/src/version/request/AcceptBneAgreementByUserIdRequest.ts +138 -0
  176. package/src/version/request/AcceptBneAgreementRequest.ts +138 -0
  177. package/src/version/request/AcceptByUserIdRequest.ts +15 -0
  178. package/src/version/request/CheckVersionByUserIdRequest.ts +15 -0
  179. package/src/version/request/DeleteAcceptVersionByUserIdRequest.ts +15 -0
  180. package/src/version/request/DescribeBneAgreementTextUrlsByUserIdRequest.ts +130 -0
  181. package/src/version/request/DescribeBneAgreementTextUrlsRequest.ts +130 -0
  182. package/src/version/request/GetBneAgreementByUserIdRequest.ts +113 -0
  183. package/src/version/request/GetBneAgreementRequest.ts +113 -0
  184. package/src/version/request/GetBneAgreementUrlByUserIdRequest.ts +164 -0
  185. package/src/version/request/GetBneAgreementUrlRequest.ts +164 -0
  186. package/src/version/rest.ts +9 -0
  187. package/src/version/result/AcceptBneAgreementByUserIdResult.ts +56 -0
  188. package/src/version/result/AcceptBneAgreementResult.ts +56 -0
  189. package/src/version/result/DescribeBneAgreementTextUrlsByUserIdResult.ts +56 -0
  190. package/src/version/result/DescribeBneAgreementTextUrlsResult.ts +56 -0
  191. package/src/version/result/GetBneAgreementByUserIdResult.ts +56 -0
  192. package/src/version/result/GetBneAgreementResult.ts +56 -0
  193. package/src/version/result/GetBneAgreementUrlByUserIdResult.ts +48 -0
  194. package/src/version/result/GetBneAgreementUrlResult.ts +48 -0
@@ -0,0 +1,113 @@
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 IRequest from '../../core/interface/IRequest';
18
+
19
+ import * as Gs2Version from '../model'
20
+
21
+ export default class GetBneAgreementByUserIdRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private namespaceName: string|null = null;
26
+ private bneAgreementClientId: string|null = null;
27
+ private userId: string|null = null;
28
+
29
+ public getRequestId(): string|null {
30
+ return this.requestId;
31
+ }
32
+
33
+ public setRequestId(requestId: string|null) {
34
+ this.requestId = requestId;
35
+ return this;
36
+ }
37
+
38
+ public withRequestId(requestId: string|null): this {
39
+ this.requestId = requestId;
40
+ return this;
41
+ }
42
+
43
+ public getContextStack(): string|null {
44
+ return this.contextStack;
45
+ }
46
+
47
+ public setContextStack(contextStack: string|null) {
48
+ this.contextStack = contextStack;
49
+ return this;
50
+ }
51
+
52
+ public withContextStack(contextStack: string|null): this {
53
+ this.contextStack = contextStack;
54
+ return this;
55
+ }
56
+
57
+ public getNamespaceName(): string|null {
58
+ return this.namespaceName;
59
+ }
60
+
61
+ public setNamespaceName(namespaceName: string|null) {
62
+ this.namespaceName = namespaceName;
63
+ return this;
64
+ }
65
+
66
+ public withNamespaceName(namespaceName: string|null): this {
67
+ this.namespaceName = namespaceName;
68
+ return this;
69
+ }
70
+
71
+ public getBneAgreementClientId(): string|null {
72
+ return this.bneAgreementClientId;
73
+ }
74
+
75
+ public setBneAgreementClientId(bneAgreementClientId: string|null) {
76
+ this.bneAgreementClientId = bneAgreementClientId;
77
+ return this;
78
+ }
79
+
80
+ public withBneAgreementClientId(bneAgreementClientId: string|null): this {
81
+ this.bneAgreementClientId = bneAgreementClientId;
82
+ return this;
83
+ }
84
+
85
+ public getUserId(): string|null {
86
+ return this.userId;
87
+ }
88
+
89
+ public setUserId(userId: string|null) {
90
+ this.userId = userId;
91
+ return this;
92
+ }
93
+
94
+ public withUserId(userId: string|null): this {
95
+ this.userId = userId;
96
+ return this;
97
+ }
98
+
99
+ public static fromDict(data: {[key: string]: any}): GetBneAgreementByUserIdRequest {
100
+ return new GetBneAgreementByUserIdRequest()
101
+ .withNamespaceName(data["namespaceName"])
102
+ .withBneAgreementClientId(data["bneAgreementClientId"])
103
+ .withUserId(data["userId"]);
104
+ }
105
+
106
+ public toDict(): {[key: string]: any} {
107
+ return {
108
+ "namespaceName": this.getNamespaceName(),
109
+ "bneAgreementClientId": this.getBneAgreementClientId(),
110
+ "userId": this.getUserId(),
111
+ };
112
+ }
113
+ }
@@ -0,0 +1,113 @@
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 IRequest from '../../core/interface/IRequest';
18
+
19
+ import * as Gs2Version from '../model'
20
+
21
+ export default class GetBneAgreementRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private namespaceName: string|null = null;
26
+ private bneAgreementClientId: string|null = null;
27
+ private accessToken: string|null = null;
28
+
29
+ public getRequestId(): string|null {
30
+ return this.requestId;
31
+ }
32
+
33
+ public setRequestId(requestId: string|null) {
34
+ this.requestId = requestId;
35
+ return this;
36
+ }
37
+
38
+ public withRequestId(requestId: string|null): this {
39
+ this.requestId = requestId;
40
+ return this;
41
+ }
42
+
43
+ public getContextStack(): string|null {
44
+ return this.contextStack;
45
+ }
46
+
47
+ public setContextStack(contextStack: string|null) {
48
+ this.contextStack = contextStack;
49
+ return this;
50
+ }
51
+
52
+ public withContextStack(contextStack: string|null): this {
53
+ this.contextStack = contextStack;
54
+ return this;
55
+ }
56
+
57
+ public getNamespaceName(): string|null {
58
+ return this.namespaceName;
59
+ }
60
+
61
+ public setNamespaceName(namespaceName: string|null) {
62
+ this.namespaceName = namespaceName;
63
+ return this;
64
+ }
65
+
66
+ public withNamespaceName(namespaceName: string|null): this {
67
+ this.namespaceName = namespaceName;
68
+ return this;
69
+ }
70
+
71
+ public getBneAgreementClientId(): string|null {
72
+ return this.bneAgreementClientId;
73
+ }
74
+
75
+ public setBneAgreementClientId(bneAgreementClientId: string|null) {
76
+ this.bneAgreementClientId = bneAgreementClientId;
77
+ return this;
78
+ }
79
+
80
+ public withBneAgreementClientId(bneAgreementClientId: string|null): this {
81
+ this.bneAgreementClientId = bneAgreementClientId;
82
+ return this;
83
+ }
84
+
85
+ public getAccessToken(): string|null {
86
+ return this.accessToken;
87
+ }
88
+
89
+ public setAccessToken(accessToken: string|null) {
90
+ this.accessToken = accessToken;
91
+ return this;
92
+ }
93
+
94
+ public withAccessToken(accessToken: string|null): this {
95
+ this.accessToken = accessToken;
96
+ return this;
97
+ }
98
+
99
+ public static fromDict(data: {[key: string]: any}): GetBneAgreementRequest {
100
+ return new GetBneAgreementRequest()
101
+ .withNamespaceName(data["namespaceName"])
102
+ .withBneAgreementClientId(data["bneAgreementClientId"])
103
+ .withAccessToken(data["accessToken"]);
104
+ }
105
+
106
+ public toDict(): {[key: string]: any} {
107
+ return {
108
+ "namespaceName": this.getNamespaceName(),
109
+ "bneAgreementClientId": this.getBneAgreementClientId(),
110
+ "accessToken": this.getAccessToken(),
111
+ };
112
+ }
113
+ }
@@ -0,0 +1,164 @@
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 IRequest from '../../core/interface/IRequest';
18
+
19
+ import * as Gs2Version from '../model'
20
+
21
+ export default class GetBneAgreementUrlByUserIdRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private namespaceName: string|null = null;
26
+ private bneAgreementClientId: string|null = null;
27
+ private userId: string|null = null;
28
+ private lang: string|null = null;
29
+ private callbackUrl: string|null = null;
30
+ private visibleBrandLogo: boolean|null = null;
31
+
32
+ public getRequestId(): string|null {
33
+ return this.requestId;
34
+ }
35
+
36
+ public setRequestId(requestId: string|null) {
37
+ this.requestId = requestId;
38
+ return this;
39
+ }
40
+
41
+ public withRequestId(requestId: string|null): this {
42
+ this.requestId = requestId;
43
+ return this;
44
+ }
45
+
46
+ public getContextStack(): string|null {
47
+ return this.contextStack;
48
+ }
49
+
50
+ public setContextStack(contextStack: string|null) {
51
+ this.contextStack = contextStack;
52
+ return this;
53
+ }
54
+
55
+ public withContextStack(contextStack: string|null): this {
56
+ this.contextStack = contextStack;
57
+ return this;
58
+ }
59
+
60
+ public getNamespaceName(): string|null {
61
+ return this.namespaceName;
62
+ }
63
+
64
+ public setNamespaceName(namespaceName: string|null) {
65
+ this.namespaceName = namespaceName;
66
+ return this;
67
+ }
68
+
69
+ public withNamespaceName(namespaceName: string|null): this {
70
+ this.namespaceName = namespaceName;
71
+ return this;
72
+ }
73
+
74
+ public getBneAgreementClientId(): string|null {
75
+ return this.bneAgreementClientId;
76
+ }
77
+
78
+ public setBneAgreementClientId(bneAgreementClientId: string|null) {
79
+ this.bneAgreementClientId = bneAgreementClientId;
80
+ return this;
81
+ }
82
+
83
+ public withBneAgreementClientId(bneAgreementClientId: string|null): this {
84
+ this.bneAgreementClientId = bneAgreementClientId;
85
+ return this;
86
+ }
87
+
88
+ public getUserId(): string|null {
89
+ return this.userId;
90
+ }
91
+
92
+ public setUserId(userId: string|null) {
93
+ this.userId = userId;
94
+ return this;
95
+ }
96
+
97
+ public withUserId(userId: string|null): this {
98
+ this.userId = userId;
99
+ return this;
100
+ }
101
+
102
+ public getLang(): string|null {
103
+ return this.lang;
104
+ }
105
+
106
+ public setLang(lang: string|null) {
107
+ this.lang = lang;
108
+ return this;
109
+ }
110
+
111
+ public withLang(lang: string|null): this {
112
+ this.lang = lang;
113
+ return this;
114
+ }
115
+
116
+ public getCallbackUrl(): string|null {
117
+ return this.callbackUrl;
118
+ }
119
+
120
+ public setCallbackUrl(callbackUrl: string|null) {
121
+ this.callbackUrl = callbackUrl;
122
+ return this;
123
+ }
124
+
125
+ public withCallbackUrl(callbackUrl: string|null): this {
126
+ this.callbackUrl = callbackUrl;
127
+ return this;
128
+ }
129
+
130
+ public getVisibleBrandLogo(): boolean|null {
131
+ return this.visibleBrandLogo;
132
+ }
133
+
134
+ public setVisibleBrandLogo(visibleBrandLogo: boolean|null) {
135
+ this.visibleBrandLogo = visibleBrandLogo;
136
+ return this;
137
+ }
138
+
139
+ public withVisibleBrandLogo(visibleBrandLogo: boolean|null): this {
140
+ this.visibleBrandLogo = visibleBrandLogo;
141
+ return this;
142
+ }
143
+
144
+ public static fromDict(data: {[key: string]: any}): GetBneAgreementUrlByUserIdRequest {
145
+ return new GetBneAgreementUrlByUserIdRequest()
146
+ .withNamespaceName(data["namespaceName"])
147
+ .withBneAgreementClientId(data["bneAgreementClientId"])
148
+ .withUserId(data["userId"])
149
+ .withLang(data["lang"])
150
+ .withCallbackUrl(data["callbackUrl"])
151
+ .withVisibleBrandLogo(data["visibleBrandLogo"]);
152
+ }
153
+
154
+ public toDict(): {[key: string]: any} {
155
+ return {
156
+ "namespaceName": this.getNamespaceName(),
157
+ "bneAgreementClientId": this.getBneAgreementClientId(),
158
+ "userId": this.getUserId(),
159
+ "lang": this.getLang(),
160
+ "callbackUrl": this.getCallbackUrl(),
161
+ "visibleBrandLogo": this.getVisibleBrandLogo(),
162
+ };
163
+ }
164
+ }
@@ -0,0 +1,164 @@
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 IRequest from '../../core/interface/IRequest';
18
+
19
+ import * as Gs2Version from '../model'
20
+
21
+ export default class GetBneAgreementUrlRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private namespaceName: string|null = null;
26
+ private bneAgreementClientId: string|null = null;
27
+ private accessToken: string|null = null;
28
+ private lang: string|null = null;
29
+ private callbackUrl: string|null = null;
30
+ private visibleBrandLogo: boolean|null = null;
31
+
32
+ public getRequestId(): string|null {
33
+ return this.requestId;
34
+ }
35
+
36
+ public setRequestId(requestId: string|null) {
37
+ this.requestId = requestId;
38
+ return this;
39
+ }
40
+
41
+ public withRequestId(requestId: string|null): this {
42
+ this.requestId = requestId;
43
+ return this;
44
+ }
45
+
46
+ public getContextStack(): string|null {
47
+ return this.contextStack;
48
+ }
49
+
50
+ public setContextStack(contextStack: string|null) {
51
+ this.contextStack = contextStack;
52
+ return this;
53
+ }
54
+
55
+ public withContextStack(contextStack: string|null): this {
56
+ this.contextStack = contextStack;
57
+ return this;
58
+ }
59
+
60
+ public getNamespaceName(): string|null {
61
+ return this.namespaceName;
62
+ }
63
+
64
+ public setNamespaceName(namespaceName: string|null) {
65
+ this.namespaceName = namespaceName;
66
+ return this;
67
+ }
68
+
69
+ public withNamespaceName(namespaceName: string|null): this {
70
+ this.namespaceName = namespaceName;
71
+ return this;
72
+ }
73
+
74
+ public getBneAgreementClientId(): string|null {
75
+ return this.bneAgreementClientId;
76
+ }
77
+
78
+ public setBneAgreementClientId(bneAgreementClientId: string|null) {
79
+ this.bneAgreementClientId = bneAgreementClientId;
80
+ return this;
81
+ }
82
+
83
+ public withBneAgreementClientId(bneAgreementClientId: string|null): this {
84
+ this.bneAgreementClientId = bneAgreementClientId;
85
+ return this;
86
+ }
87
+
88
+ public getAccessToken(): string|null {
89
+ return this.accessToken;
90
+ }
91
+
92
+ public setAccessToken(accessToken: string|null) {
93
+ this.accessToken = accessToken;
94
+ return this;
95
+ }
96
+
97
+ public withAccessToken(accessToken: string|null): this {
98
+ this.accessToken = accessToken;
99
+ return this;
100
+ }
101
+
102
+ public getLang(): string|null {
103
+ return this.lang;
104
+ }
105
+
106
+ public setLang(lang: string|null) {
107
+ this.lang = lang;
108
+ return this;
109
+ }
110
+
111
+ public withLang(lang: string|null): this {
112
+ this.lang = lang;
113
+ return this;
114
+ }
115
+
116
+ public getCallbackUrl(): string|null {
117
+ return this.callbackUrl;
118
+ }
119
+
120
+ public setCallbackUrl(callbackUrl: string|null) {
121
+ this.callbackUrl = callbackUrl;
122
+ return this;
123
+ }
124
+
125
+ public withCallbackUrl(callbackUrl: string|null): this {
126
+ this.callbackUrl = callbackUrl;
127
+ return this;
128
+ }
129
+
130
+ public getVisibleBrandLogo(): boolean|null {
131
+ return this.visibleBrandLogo;
132
+ }
133
+
134
+ public setVisibleBrandLogo(visibleBrandLogo: boolean|null) {
135
+ this.visibleBrandLogo = visibleBrandLogo;
136
+ return this;
137
+ }
138
+
139
+ public withVisibleBrandLogo(visibleBrandLogo: boolean|null): this {
140
+ this.visibleBrandLogo = visibleBrandLogo;
141
+ return this;
142
+ }
143
+
144
+ public static fromDict(data: {[key: string]: any}): GetBneAgreementUrlRequest {
145
+ return new GetBneAgreementUrlRequest()
146
+ .withNamespaceName(data["namespaceName"])
147
+ .withBneAgreementClientId(data["bneAgreementClientId"])
148
+ .withAccessToken(data["accessToken"])
149
+ .withLang(data["lang"])
150
+ .withCallbackUrl(data["callbackUrl"])
151
+ .withVisibleBrandLogo(data["visibleBrandLogo"]);
152
+ }
153
+
154
+ public toDict(): {[key: string]: any} {
155
+ return {
156
+ "namespaceName": this.getNamespaceName(),
157
+ "bneAgreementClientId": this.getBneAgreementClientId(),
158
+ "accessToken": this.getAccessToken(),
159
+ "lang": this.getLang(),
160
+ "callbackUrl": this.getCallbackUrl(),
161
+ "visibleBrandLogo": this.getVisibleBrandLogo(),
162
+ };
163
+ }
164
+ }
@@ -520,6 +520,9 @@ export default class Gs2VersionRestClient extends AbstractGs2RestClient {
520
520
  if (request.getRequestId()) {
521
521
  headers['X-GS2-REQUEST-ID'] = request.getRequestId();
522
522
  }
523
+ if (request.getDuplicationAvoider()) {
524
+ headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
525
+ }
523
526
  const body: {[key: string]: any} = {
524
527
  'contextStack': request.getContextStack() ?? null,
525
528
  'versionName': request.getVersionName() ?? null,
@@ -641,6 +644,9 @@ export default class Gs2VersionRestClient extends AbstractGs2RestClient {
641
644
  if (request.getRequestId()) {
642
645
  headers['X-GS2-REQUEST-ID'] = request.getRequestId();
643
646
  }
647
+ if (request.getDuplicationAvoider()) {
648
+ headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
649
+ }
644
650
  const params: {[key: string]: any} = {
645
651
  'contextStack': request.getContextStack() ?? null,
646
652
  };
@@ -702,6 +708,9 @@ export default class Gs2VersionRestClient extends AbstractGs2RestClient {
702
708
  if (request.getRequestId()) {
703
709
  headers['X-GS2-REQUEST-ID'] = request.getRequestId();
704
710
  }
711
+ if (request.getDuplicationAvoider()) {
712
+ headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
713
+ }
705
714
  const body: {[key: string]: any} = {
706
715
  'contextStack': request.getContextStack() ?? null,
707
716
  'targetVersions': request.getTargetVersions()?.map((item) => item.toDict()) ?? null,
@@ -0,0 +1,56 @@
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
+
19
+ import * as Gs2Version from '../model'
20
+
21
+ export default class AcceptBneAgreementByUserIdResult implements IResult {
22
+ private items: Gs2Version.BandaiNamcoConsentStatus[]|null = null;
23
+
24
+ public getItems(): Gs2Version.BandaiNamcoConsentStatus[]|null {
25
+ return this.items;
26
+ }
27
+
28
+ public setItems(items: Gs2Version.BandaiNamcoConsentStatus[]|null) {
29
+ this.items = items;
30
+ return this;
31
+ }
32
+
33
+ public withItems(items: Gs2Version.BandaiNamcoConsentStatus[]|null): this {
34
+ this.items = items;
35
+ return this;
36
+ }
37
+
38
+ public static fromDict(data: {[key: string]: any}): AcceptBneAgreementByUserIdResult {
39
+ return new AcceptBneAgreementByUserIdResult()
40
+ .withItems(data.items ?
41
+ data.items.map((item: {[key: string]: any}) => {
42
+ return Gs2Version.BandaiNamcoConsentStatus.fromDict(item);
43
+ }
44
+ ) : []);
45
+ }
46
+
47
+ public toDict(): {[key: string]: any} {
48
+ return {
49
+ "items": this.getItems() ?
50
+ this.getItems()!.map((item: Gs2Version.BandaiNamcoConsentStatus) => {
51
+ return item.toDict();
52
+ }
53
+ ) : [],
54
+ };
55
+ }
56
+ }
@@ -0,0 +1,56 @@
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
+
19
+ import * as Gs2Version from '../model'
20
+
21
+ export default class AcceptBneAgreementResult implements IResult {
22
+ private items: Gs2Version.BandaiNamcoConsentStatus[]|null = null;
23
+
24
+ public getItems(): Gs2Version.BandaiNamcoConsentStatus[]|null {
25
+ return this.items;
26
+ }
27
+
28
+ public setItems(items: Gs2Version.BandaiNamcoConsentStatus[]|null) {
29
+ this.items = items;
30
+ return this;
31
+ }
32
+
33
+ public withItems(items: Gs2Version.BandaiNamcoConsentStatus[]|null): this {
34
+ this.items = items;
35
+ return this;
36
+ }
37
+
38
+ public static fromDict(data: {[key: string]: any}): AcceptBneAgreementResult {
39
+ return new AcceptBneAgreementResult()
40
+ .withItems(data.items ?
41
+ data.items.map((item: {[key: string]: any}) => {
42
+ return Gs2Version.BandaiNamcoConsentStatus.fromDict(item);
43
+ }
44
+ ) : []);
45
+ }
46
+
47
+ public toDict(): {[key: string]: any} {
48
+ return {
49
+ "items": this.getItems() ?
50
+ this.getItems()!.map((item: Gs2Version.BandaiNamcoConsentStatus) => {
51
+ return item.toDict();
52
+ }
53
+ ) : [],
54
+ };
55
+ }
56
+ }