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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2",
3
- "version": "1.3.8",
3
+ "version": "1.3.34",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -0,0 +1,182 @@
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 IModel from '../../core/interface/IModel';
18
+ const grnFormat: string = "grn:gs2:{region}:{ownerId}:account:{namespaceName}:account:{userId}:dataOwner:{dataOwnerName}";
19
+
20
+ export default class DataOwner implements IModel {
21
+ private dataOwnerId: string|null = null;
22
+ private userId: string|null = null;
23
+ private name: string|null = null;
24
+ private createdAt: number|null = null;
25
+
26
+ public static getRegion(grn: string): string|null {
27
+ const match = grn.match(grnFormat
28
+ .replace('{region}', '(.*)')
29
+ .replace('{ownerId}', '.*')
30
+ .replace('{namespaceName}', '.*')
31
+ .replace('{userId}', '.*')
32
+ );
33
+ if (match) {
34
+ return match[1];
35
+ }
36
+ return null;
37
+ }
38
+
39
+ public static getOwnerId(grn: string): string|null {
40
+ const match = grn.match(grnFormat
41
+ .replace('{region}', '.*')
42
+ .replace('{ownerId}', '(.*)')
43
+ .replace('{namespaceName}', '.*')
44
+ .replace('{userId}', '.*')
45
+ );
46
+ if (match) {
47
+ return match[1];
48
+ }
49
+ return null;
50
+ }
51
+
52
+ public static getNamespaceName(grn: string): string|null {
53
+ const match = grn.match(grnFormat
54
+ .replace('{region}', '.*')
55
+ .replace('{ownerId}', '.*')
56
+ .replace('{namespaceName}', '(.*)')
57
+ .replace('{userId}', '.*')
58
+ );
59
+ if (match) {
60
+ return match[1];
61
+ }
62
+ return null;
63
+ }
64
+
65
+ public static getUserId(grn: string): string|null {
66
+ const match = grn.match(grnFormat
67
+ .replace('{region}', '.*')
68
+ .replace('{ownerId}', '.*')
69
+ .replace('{namespaceName}', '.*')
70
+ .replace('{userId}', '(.*)')
71
+ );
72
+ if (match) {
73
+ return match[1];
74
+ }
75
+ return null;
76
+ }
77
+
78
+ public static isValid(grn: string): boolean {
79
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
80
+ return false;
81
+ }
82
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
83
+ return false;
84
+ }
85
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
86
+ return false;
87
+ }
88
+ if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
89
+ return false;
90
+ }
91
+ return true;
92
+ }
93
+
94
+ public static createGrn(
95
+ region: string|null,
96
+ ownerId: string|null,
97
+ namespaceName: string|null,
98
+ userId: string|null,
99
+ ): string|null {
100
+ return grnFormat
101
+ .replace('{region}', region ?? '')
102
+ .replace('{ownerId}', ownerId ?? '')
103
+ .replace('{namespaceName}', namespaceName ?? '')
104
+ .replace('{userId}', userId ?? '');
105
+ }
106
+
107
+ public getDataOwnerId(): string|null {
108
+ return this.dataOwnerId;
109
+ }
110
+
111
+ public setDataOwnerId(dataOwnerId: string|null) {
112
+ this.dataOwnerId = dataOwnerId;
113
+ return this;
114
+ }
115
+
116
+ public withDataOwnerId(dataOwnerId: string|null): this {
117
+ this.dataOwnerId = dataOwnerId;
118
+ return this;
119
+ }
120
+
121
+ public getUserId(): string|null {
122
+ return this.userId;
123
+ }
124
+
125
+ public setUserId(userId: string|null) {
126
+ this.userId = userId;
127
+ return this;
128
+ }
129
+
130
+ public withUserId(userId: string|null): this {
131
+ this.userId = userId;
132
+ return this;
133
+ }
134
+
135
+ public getName(): string|null {
136
+ return this.name;
137
+ }
138
+
139
+ public setName(name: string|null) {
140
+ this.name = name;
141
+ return this;
142
+ }
143
+
144
+ public withName(name: string|null): this {
145
+ this.name = name;
146
+ return this;
147
+ }
148
+
149
+ public getCreatedAt(): number|null {
150
+ return this.createdAt;
151
+ }
152
+
153
+ public setCreatedAt(createdAt: number|null) {
154
+ this.createdAt = createdAt;
155
+ return this;
156
+ }
157
+
158
+ public withCreatedAt(createdAt: number|null): this {
159
+ this.createdAt = createdAt;
160
+ return this;
161
+ }
162
+
163
+ public static fromDict(data: {[key: string]: any}): DataOwner|null {
164
+ if (data == undefined || data == null) {
165
+ return null;
166
+ }
167
+ return new DataOwner()
168
+ .withDataOwnerId(data["dataOwnerId"])
169
+ .withUserId(data["userId"])
170
+ .withName(data["name"])
171
+ .withCreatedAt(data["createdAt"]);
172
+ }
173
+
174
+ public toDict(): {[key: string]: any} {
175
+ return {
176
+ "dataOwnerId": this.getDataOwnerId(),
177
+ "userId": this.getUserId(),
178
+ "name": this.getName(),
179
+ "createdAt": this.getCreatedAt(),
180
+ };
181
+ }
182
+ }
@@ -24,6 +24,7 @@ export default class Namespace implements IModel {
24
24
  private name: string|null = null;
25
25
  private description: string|null = null;
26
26
  private changePasswordIfTakeOver: boolean|null = null;
27
+ private differentUserIdForLoginAndDataRetention: boolean|null = null;
27
28
  private createAccountScript: ScriptSetting|null = null;
28
29
  private authenticationScript: ScriptSetting|null = null;
29
30
  private createTakeOverScript: ScriptSetting|null = null;
@@ -148,6 +149,20 @@ export default class Namespace implements IModel {
148
149
  return this;
149
150
  }
150
151
 
152
+ public getDifferentUserIdForLoginAndDataRetention(): boolean|null {
153
+ return this.differentUserIdForLoginAndDataRetention;
154
+ }
155
+
156
+ public setDifferentUserIdForLoginAndDataRetention(differentUserIdForLoginAndDataRetention: boolean|null) {
157
+ this.differentUserIdForLoginAndDataRetention = differentUserIdForLoginAndDataRetention;
158
+ return this;
159
+ }
160
+
161
+ public withDifferentUserIdForLoginAndDataRetention(differentUserIdForLoginAndDataRetention: boolean|null): this {
162
+ this.differentUserIdForLoginAndDataRetention = differentUserIdForLoginAndDataRetention;
163
+ return this;
164
+ }
165
+
151
166
  public getCreateAccountScript(): ScriptSetting|null {
152
167
  return this.createAccountScript;
153
168
  }
@@ -255,6 +270,7 @@ export default class Namespace implements IModel {
255
270
  .withName(data["name"])
256
271
  .withDescription(data["description"])
257
272
  .withChangePasswordIfTakeOver(data["changePasswordIfTakeOver"])
273
+ .withDifferentUserIdForLoginAndDataRetention(data["differentUserIdForLoginAndDataRetention"])
258
274
  .withCreateAccountScript(ScriptSetting.fromDict(data["createAccountScript"]))
259
275
  .withAuthenticationScript(ScriptSetting.fromDict(data["authenticationScript"]))
260
276
  .withCreateTakeOverScript(ScriptSetting.fromDict(data["createTakeOverScript"]))
@@ -270,6 +286,7 @@ export default class Namespace implements IModel {
270
286
  "name": this.getName(),
271
287
  "description": this.getDescription(),
272
288
  "changePasswordIfTakeOver": this.getChangePasswordIfTakeOver(),
289
+ "differentUserIdForLoginAndDataRetention": this.getDifferentUserIdForLoginAndDataRetention(),
273
290
  "createAccountScript": this.getCreateAccountScript()?.toDict(),
274
291
  "authenticationScript": this.getAuthenticationScript()?.toDict(),
275
292
  "createTakeOverScript": this.getCreateTakeOverScript()?.toDict(),
@@ -16,6 +16,7 @@ permissions and limitations under the License.
16
16
  import Namespace from "./Namespace"
17
17
  import Account from "./Account"
18
18
  import TakeOver from "./TakeOver"
19
+ import DataOwner from "./DataOwner"
19
20
  import ScriptSetting from "./ScriptSetting"
20
21
  import LogSetting from "./LogSetting"
21
22
 
@@ -23,6 +24,7 @@ export {
23
24
  Namespace,
24
25
  Account,
25
26
  TakeOver,
27
+ DataOwner,
26
28
  ScriptSetting,
27
29
  LogSetting,
28
30
  };
@@ -25,6 +25,7 @@ export default class CreateNamespaceRequest implements IRequest {
25
25
  private name: string|null = null;
26
26
  private description: string|null = null;
27
27
  private changePasswordIfTakeOver: boolean|null = null;
28
+ private differentUserIdForLoginAndDataRetention: boolean|null = null;
28
29
  private createAccountScript: Gs2Account.ScriptSetting|null = null;
29
30
  private authenticationScript: Gs2Account.ScriptSetting|null = null;
30
31
  private createTakeOverScript: Gs2Account.ScriptSetting|null = null;
@@ -101,6 +102,20 @@ export default class CreateNamespaceRequest implements IRequest {
101
102
  return this;
102
103
  }
103
104
 
105
+ public getDifferentUserIdForLoginAndDataRetention(): boolean|null {
106
+ return this.differentUserIdForLoginAndDataRetention;
107
+ }
108
+
109
+ public setDifferentUserIdForLoginAndDataRetention(differentUserIdForLoginAndDataRetention: boolean|null) {
110
+ this.differentUserIdForLoginAndDataRetention = differentUserIdForLoginAndDataRetention;
111
+ return this;
112
+ }
113
+
114
+ public withDifferentUserIdForLoginAndDataRetention(differentUserIdForLoginAndDataRetention: boolean|null): this {
115
+ this.differentUserIdForLoginAndDataRetention = differentUserIdForLoginAndDataRetention;
116
+ return this;
117
+ }
118
+
104
119
  public getCreateAccountScript(): Gs2Account.ScriptSetting|null {
105
120
  return this.createAccountScript;
106
121
  }
@@ -176,6 +191,7 @@ export default class CreateNamespaceRequest implements IRequest {
176
191
  .withName(data["name"])
177
192
  .withDescription(data["description"])
178
193
  .withChangePasswordIfTakeOver(data["changePasswordIfTakeOver"])
194
+ .withDifferentUserIdForLoginAndDataRetention(data["differentUserIdForLoginAndDataRetention"])
179
195
  .withCreateAccountScript(Gs2Account.ScriptSetting.fromDict(data["createAccountScript"]))
180
196
  .withAuthenticationScript(Gs2Account.ScriptSetting.fromDict(data["authenticationScript"]))
181
197
  .withCreateTakeOverScript(Gs2Account.ScriptSetting.fromDict(data["createTakeOverScript"]))
@@ -188,6 +204,7 @@ export default class CreateNamespaceRequest implements IRequest {
188
204
  "name": this.getName(),
189
205
  "description": this.getDescription(),
190
206
  "changePasswordIfTakeOver": this.getChangePasswordIfTakeOver(),
207
+ "differentUserIdForLoginAndDataRetention": this.getDifferentUserIdForLoginAndDataRetention(),
191
208
  "createAccountScript": this.getCreateAccountScript()?.toDict(),
192
209
  "authenticationScript": this.getAuthenticationScript()?.toDict(),
193
210
  "createTakeOverScript": this.getCreateTakeOverScript()?.toDict(),
@@ -27,6 +27,7 @@ export default class CreateTakeOverByUserIdRequest implements IRequest {
27
27
  private type: number|null = null;
28
28
  private userIdentifier: string|null = null;
29
29
  private password: string|null = null;
30
+ private duplicationAvoider: string|null = null;
30
31
 
31
32
  public getRequestId(): string|null {
32
33
  return this.requestId;
@@ -126,6 +127,20 @@ export default class CreateTakeOverByUserIdRequest implements IRequest {
126
127
  return this;
127
128
  }
128
129
 
130
+ public getDuplicationAvoider(): string|null {
131
+ return this.duplicationAvoider;
132
+ }
133
+
134
+ public setDuplicationAvoider(duplicationAvoider: string|null) {
135
+ this.duplicationAvoider = duplicationAvoider;
136
+ return this;
137
+ }
138
+
139
+ public withDuplicationAvoider(duplicationAvoider: string|null): this {
140
+ this.duplicationAvoider = duplicationAvoider;
141
+ return this;
142
+ }
143
+
129
144
  public static fromDict(data: {[key: string]: any}): CreateTakeOverByUserIdRequest {
130
145
  return new CreateTakeOverByUserIdRequest()
131
146
  .withNamespaceName(data["namespaceName"])
@@ -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 Gs2Account from '../model'
20
+
21
+ export default class DeleteBnlinkRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private namespaceName: string|null = null;
26
+ private bnidClientId: 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 getBnidClientId(): string|null {
72
+ return this.bnidClientId;
73
+ }
74
+
75
+ public setBnidClientId(bnidClientId: string|null) {
76
+ this.bnidClientId = bnidClientId;
77
+ return this;
78
+ }
79
+
80
+ public withBnidClientId(bnidClientId: string|null): this {
81
+ this.bnidClientId = bnidClientId;
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}): DeleteBnlinkRequest {
100
+ return new DeleteBnlinkRequest()
101
+ .withNamespaceName(data["namespaceName"])
102
+ .withBnidClientId(data["bnidClientId"])
103
+ .withAccessToken(data["accessToken"]);
104
+ }
105
+
106
+ public toDict(): {[key: string]: any} {
107
+ return {
108
+ "namespaceName": this.getNamespaceName(),
109
+ "bnidClientId": this.getBnidClientId(),
110
+ "accessToken": this.getAccessToken(),
111
+ };
112
+ }
113
+ }
@@ -0,0 +1,96 @@
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 Gs2Account from '../model'
20
+
21
+ export default class DeleteDataOwnerByUserIdRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private namespaceName: string|null = null;
26
+ private userId: string|null = null;
27
+
28
+ public getRequestId(): string|null {
29
+ return this.requestId;
30
+ }
31
+
32
+ public setRequestId(requestId: string|null) {
33
+ this.requestId = requestId;
34
+ return this;
35
+ }
36
+
37
+ public withRequestId(requestId: string|null): this {
38
+ this.requestId = requestId;
39
+ return this;
40
+ }
41
+
42
+ public getContextStack(): string|null {
43
+ return this.contextStack;
44
+ }
45
+
46
+ public setContextStack(contextStack: string|null) {
47
+ this.contextStack = contextStack;
48
+ return this;
49
+ }
50
+
51
+ public withContextStack(contextStack: string|null): this {
52
+ this.contextStack = contextStack;
53
+ return this;
54
+ }
55
+
56
+ public getNamespaceName(): string|null {
57
+ return this.namespaceName;
58
+ }
59
+
60
+ public setNamespaceName(namespaceName: string|null) {
61
+ this.namespaceName = namespaceName;
62
+ return this;
63
+ }
64
+
65
+ public withNamespaceName(namespaceName: string|null): this {
66
+ this.namespaceName = namespaceName;
67
+ return this;
68
+ }
69
+
70
+ public getUserId(): string|null {
71
+ return this.userId;
72
+ }
73
+
74
+ public setUserId(userId: string|null) {
75
+ this.userId = userId;
76
+ return this;
77
+ }
78
+
79
+ public withUserId(userId: string|null): this {
80
+ this.userId = userId;
81
+ return this;
82
+ }
83
+
84
+ public static fromDict(data: {[key: string]: any}): DeleteDataOwnerByUserIdRequest {
85
+ return new DeleteDataOwnerByUserIdRequest()
86
+ .withNamespaceName(data["namespaceName"])
87
+ .withUserId(data["userId"]);
88
+ }
89
+
90
+ public toDict(): {[key: string]: any} {
91
+ return {
92
+ "namespaceName": this.getNamespaceName(),
93
+ "userId": this.getUserId(),
94
+ };
95
+ }
96
+ }
@@ -25,6 +25,7 @@ export default class DeleteTakeOverByUserIdentifierRequest implements IRequest {
25
25
  private namespaceName: string|null = null;
26
26
  private type: number|null = null;
27
27
  private userIdentifier: string|null = null;
28
+ private duplicationAvoider: string|null = null;
28
29
 
29
30
  public getRequestId(): string|null {
30
31
  return this.requestId;
@@ -96,6 +97,20 @@ export default class DeleteTakeOverByUserIdentifierRequest implements IRequest {
96
97
  return this;
97
98
  }
98
99
 
100
+ public getDuplicationAvoider(): string|null {
101
+ return this.duplicationAvoider;
102
+ }
103
+
104
+ public setDuplicationAvoider(duplicationAvoider: string|null) {
105
+ this.duplicationAvoider = duplicationAvoider;
106
+ return this;
107
+ }
108
+
109
+ public withDuplicationAvoider(duplicationAvoider: string|null): this {
110
+ this.duplicationAvoider = duplicationAvoider;
111
+ return this;
112
+ }
113
+
99
114
  public static fromDict(data: {[key: string]: any}): DeleteTakeOverByUserIdentifierRequest {
100
115
  return new DeleteTakeOverByUserIdentifierRequest()
101
116
  .withNamespaceName(data["namespaceName"])