gs2 1.0.4 → 1.3.0

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 (525) hide show
  1. package/account/model/Account.js +8 -20
  2. package/account/model/Account.js.map +1 -1
  3. package/account/model/Namespace.js +6 -15
  4. package/account/model/Namespace.js.map +1 -1
  5. package/account/model/TakeOver.js +10 -25
  6. package/account/model/TakeOver.js.map +1 -1
  7. package/chat/model/Message.js +10 -25
  8. package/chat/model/Message.js.map +1 -1
  9. package/chat/model/Namespace.js +6 -15
  10. package/chat/model/Namespace.js.map +1 -1
  11. package/chat/model/Room.js +8 -20
  12. package/chat/model/Room.js.map +1 -1
  13. package/chat/model/Subscribe.js +10 -25
  14. package/chat/model/Subscribe.js.map +1 -1
  15. package/core/AbstractGs2WebSocketClient.d.ts +5 -0
  16. package/core/AbstractGs2WebSocketClient.js +25 -0
  17. package/core/AbstractGs2WebSocketClient.js.map +1 -0
  18. package/core/index.d.ts +2 -1
  19. package/core/index.js +1 -0
  20. package/core/index.js.map +1 -1
  21. package/core/model.d.ts +25 -0
  22. package/core/model.js +152 -1
  23. package/core/model.js.map +1 -1
  24. package/datastore/model/DataObject.js +10 -25
  25. package/datastore/model/DataObject.js.map +1 -1
  26. package/datastore/model/DataObjectHistory.js +12 -30
  27. package/datastore/model/DataObjectHistory.js.map +1 -1
  28. package/datastore/model/Namespace.js +6 -15
  29. package/datastore/model/Namespace.js.map +1 -1
  30. package/deploy/model/Event.js +8 -20
  31. package/deploy/model/Event.js.map +1 -1
  32. package/deploy/model/Output.js +8 -20
  33. package/deploy/model/Output.js.map +1 -1
  34. package/deploy/model/Resource.js +8 -20
  35. package/deploy/model/Resource.js.map +1 -1
  36. package/deploy/model/Stack.js +6 -15
  37. package/deploy/model/Stack.js.map +1 -1
  38. package/dictionary/model/CurrentEntryMaster.js +6 -15
  39. package/dictionary/model/CurrentEntryMaster.js.map +1 -1
  40. package/dictionary/model/Entry.js +10 -25
  41. package/dictionary/model/Entry.js.map +1 -1
  42. package/dictionary/model/EntryModel.js +8 -20
  43. package/dictionary/model/EntryModel.js.map +1 -1
  44. package/dictionary/model/EntryModelMaster.js +8 -20
  45. package/dictionary/model/EntryModelMaster.js.map +1 -1
  46. package/dictionary/model/Namespace.js +6 -15
  47. package/dictionary/model/Namespace.js.map +1 -1
  48. package/distributor/model/CurrentDistributorMaster.js +6 -15
  49. package/distributor/model/CurrentDistributorMaster.js.map +1 -1
  50. package/distributor/model/DistributorModel.js +8 -20
  51. package/distributor/model/DistributorModel.js.map +1 -1
  52. package/distributor/model/DistributorModelMaster.js +8 -20
  53. package/distributor/model/DistributorModelMaster.js.map +1 -1
  54. package/distributor/model/Namespace.js +6 -15
  55. package/distributor/model/Namespace.js.map +1 -1
  56. package/enhance/model/CurrentRateMaster.js +6 -15
  57. package/enhance/model/CurrentRateMaster.js.map +1 -1
  58. package/enhance/model/Namespace.js +6 -15
  59. package/enhance/model/Namespace.js.map +1 -1
  60. package/enhance/model/RateModel.js +8 -20
  61. package/enhance/model/RateModel.js.map +1 -1
  62. package/enhance/model/RateModelMaster.js +8 -20
  63. package/enhance/model/RateModelMaster.js.map +1 -1
  64. package/exchange/model/Await.js +10 -25
  65. package/exchange/model/Await.js.map +1 -1
  66. package/exchange/model/CurrentRateMaster.js +6 -15
  67. package/exchange/model/CurrentRateMaster.js.map +1 -1
  68. package/exchange/model/Namespace.js +6 -15
  69. package/exchange/model/Namespace.js.map +1 -1
  70. package/exchange/model/RateModel.js +8 -20
  71. package/exchange/model/RateModel.js.map +1 -1
  72. package/exchange/model/RateModelMaster.js +8 -20
  73. package/exchange/model/RateModelMaster.js.map +1 -1
  74. package/experience/model/CurrentExperienceMaster.js +6 -15
  75. package/experience/model/CurrentExperienceMaster.js.map +1 -1
  76. package/experience/model/ExperienceModel.js +8 -20
  77. package/experience/model/ExperienceModel.js.map +1 -1
  78. package/experience/model/ExperienceModelMaster.js +8 -20
  79. package/experience/model/ExperienceModelMaster.js.map +1 -1
  80. package/experience/model/Namespace.js +6 -15
  81. package/experience/model/Namespace.js.map +1 -1
  82. package/experience/model/Status.js +12 -30
  83. package/experience/model/Status.js.map +1 -1
  84. package/experience/model/ThresholdMaster.js +8 -20
  85. package/experience/model/ThresholdMaster.js.map +1 -1
  86. package/formation/model/CurrentFormMaster.js +6 -15
  87. package/formation/model/CurrentFormMaster.js.map +1 -1
  88. package/formation/model/Form.js +12 -30
  89. package/formation/model/Form.js.map +1 -1
  90. package/formation/model/FormModel.js +8 -20
  91. package/formation/model/FormModel.js.map +1 -1
  92. package/formation/model/FormModelMaster.js +8 -20
  93. package/formation/model/FormModelMaster.js.map +1 -1
  94. package/formation/model/Mold.js +10 -25
  95. package/formation/model/Mold.js.map +1 -1
  96. package/formation/model/MoldModel.js +8 -20
  97. package/formation/model/MoldModel.js.map +1 -1
  98. package/formation/model/MoldModelMaster.js +8 -20
  99. package/formation/model/MoldModelMaster.js.map +1 -1
  100. package/formation/model/Namespace.js +6 -15
  101. package/formation/model/Namespace.js.map +1 -1
  102. package/friend/model/BlackList.js +8 -20
  103. package/friend/model/BlackList.js.map +1 -1
  104. package/friend/model/Follow.js +8 -20
  105. package/friend/model/Follow.js.map +1 -1
  106. package/friend/model/Friend.js +8 -20
  107. package/friend/model/Friend.js.map +1 -1
  108. package/friend/model/Inbox.js +8 -20
  109. package/friend/model/Inbox.js.map +1 -1
  110. package/friend/model/Namespace.js +6 -15
  111. package/friend/model/Namespace.js.map +1 -1
  112. package/friend/model/Profile.js +8 -20
  113. package/friend/model/Profile.js.map +1 -1
  114. package/friend/model/SendBox.js +8 -20
  115. package/friend/model/SendBox.js.map +1 -1
  116. package/gateway/index.d.ts +2 -1
  117. package/gateway/index.js +3 -1
  118. package/gateway/index.js.map +1 -1
  119. package/gateway/model/FirebaseToken.js +8 -20
  120. package/gateway/model/FirebaseToken.js.map +1 -1
  121. package/gateway/model/Namespace.js +6 -15
  122. package/gateway/model/Namespace.js.map +1 -1
  123. package/gateway/model/WebSocketSession.js +10 -25
  124. package/gateway/model/WebSocketSession.js.map +1 -1
  125. package/gateway/websocket.d.ts +8 -0
  126. package/gateway/websocket.js +48 -0
  127. package/gateway/websocket.js.map +1 -0
  128. package/identifier/model/AttachSecurityPolicy.js +4 -10
  129. package/identifier/model/AttachSecurityPolicy.js.map +1 -1
  130. package/identifier/model/Password.js +4 -10
  131. package/identifier/model/Password.js.map +1 -1
  132. package/identifier/model/SecurityPolicy.js +4 -10
  133. package/identifier/model/SecurityPolicy.js.map +1 -1
  134. package/identifier/model/User.js +4 -10
  135. package/identifier/model/User.js.map +1 -1
  136. package/inbox/model/CurrentMessageMaster.js +6 -15
  137. package/inbox/model/CurrentMessageMaster.js.map +1 -1
  138. package/inbox/model/GlobalMessage.js +8 -20
  139. package/inbox/model/GlobalMessage.js.map +1 -1
  140. package/inbox/model/GlobalMessageMaster.js +8 -20
  141. package/inbox/model/GlobalMessageMaster.js.map +1 -1
  142. package/inbox/model/Message.js +10 -25
  143. package/inbox/model/Message.js.map +1 -1
  144. package/inbox/model/Namespace.js +6 -15
  145. package/inbox/model/Namespace.js.map +1 -1
  146. package/inbox/model/Received.js +8 -20
  147. package/inbox/model/Received.js.map +1 -1
  148. package/inventory/model/CurrentItemModelMaster.js +6 -15
  149. package/inventory/model/CurrentItemModelMaster.js.map +1 -1
  150. package/inventory/model/Inventory.js +10 -25
  151. package/inventory/model/Inventory.js.map +1 -1
  152. package/inventory/model/InventoryModel.js +8 -20
  153. package/inventory/model/InventoryModel.js.map +1 -1
  154. package/inventory/model/InventoryModelMaster.js +8 -20
  155. package/inventory/model/InventoryModelMaster.js.map +1 -1
  156. package/inventory/model/ItemModel.js +10 -25
  157. package/inventory/model/ItemModel.js.map +1 -1
  158. package/inventory/model/ItemModelMaster.js +10 -25
  159. package/inventory/model/ItemModelMaster.js.map +1 -1
  160. package/inventory/model/ItemSet.js +14 -35
  161. package/inventory/model/ItemSet.js.map +1 -1
  162. package/inventory/model/Namespace.js +6 -15
  163. package/inventory/model/Namespace.js.map +1 -1
  164. package/inventory/model/ReferenceOf.js +14 -35
  165. package/inventory/model/ReferenceOf.js.map +1 -1
  166. package/jobQueue/model/DeadLetterJob.js +10 -25
  167. package/jobQueue/model/DeadLetterJob.js.map +1 -1
  168. package/jobQueue/model/Job.js +10 -25
  169. package/jobQueue/model/Job.js.map +1 -1
  170. package/jobQueue/model/JobResult.js +12 -30
  171. package/jobQueue/model/JobResult.js.map +1 -1
  172. package/jobQueue/model/Namespace.js +6 -15
  173. package/jobQueue/model/Namespace.js.map +1 -1
  174. package/key/model/GitHubApiKey.js +8 -20
  175. package/key/model/GitHubApiKey.js.map +1 -1
  176. package/key/model/Key.js +8 -20
  177. package/key/model/Key.js.map +1 -1
  178. package/key/model/Namespace.js +6 -15
  179. package/key/model/Namespace.js.map +1 -1
  180. package/limit/model/Counter.js +12 -30
  181. package/limit/model/Counter.js.map +1 -1
  182. package/limit/model/CurrentLimitMaster.js +6 -15
  183. package/limit/model/CurrentLimitMaster.js.map +1 -1
  184. package/limit/model/LimitModel.js +8 -20
  185. package/limit/model/LimitModel.js.map +1 -1
  186. package/limit/model/LimitModelMaster.js +8 -20
  187. package/limit/model/LimitModelMaster.js.map +1 -1
  188. package/limit/model/Namespace.js +6 -15
  189. package/limit/model/Namespace.js.map +1 -1
  190. package/lock/model/Mutex.js +10 -25
  191. package/lock/model/Mutex.js.map +1 -1
  192. package/lock/model/Namespace.js +6 -15
  193. package/lock/model/Namespace.js.map +1 -1
  194. package/log/model/Namespace.js +6 -15
  195. package/log/model/Namespace.js.map +1 -1
  196. package/lottery/model/Box.js +10 -25
  197. package/lottery/model/Box.js.map +1 -1
  198. package/lottery/model/CurrentLotteryMaster.js +6 -15
  199. package/lottery/model/CurrentLotteryMaster.js.map +1 -1
  200. package/lottery/model/LotteryModel.js +8 -20
  201. package/lottery/model/LotteryModel.js.map +1 -1
  202. package/lottery/model/LotteryModelMaster.js +8 -20
  203. package/lottery/model/LotteryModelMaster.js.map +1 -1
  204. package/lottery/model/Namespace.js +6 -15
  205. package/lottery/model/Namespace.js.map +1 -1
  206. package/lottery/model/PrizeTable.js +8 -20
  207. package/lottery/model/PrizeTable.js.map +1 -1
  208. package/lottery/model/PrizeTableMaster.js +8 -20
  209. package/lottery/model/PrizeTableMaster.js.map +1 -1
  210. package/matchmaking/model/CurrentRatingModelMaster.js +6 -15
  211. package/matchmaking/model/CurrentRatingModelMaster.js.map +1 -1
  212. package/matchmaking/model/Gathering.js +8 -20
  213. package/matchmaking/model/Gathering.js.map +1 -1
  214. package/matchmaking/model/Namespace.js +6 -15
  215. package/matchmaking/model/Namespace.js.map +1 -1
  216. package/matchmaking/model/Rating.js +10 -25
  217. package/matchmaking/model/Rating.js.map +1 -1
  218. package/matchmaking/model/RatingModel.js +8 -20
  219. package/matchmaking/model/RatingModel.js.map +1 -1
  220. package/matchmaking/model/RatingModelMaster.js +8 -20
  221. package/matchmaking/model/RatingModelMaster.js.map +1 -1
  222. package/matchmaking/model/Vote.js +10 -25
  223. package/matchmaking/model/Vote.js.map +1 -1
  224. package/mission/model/Complete.js +10 -25
  225. package/mission/model/Complete.js.map +1 -1
  226. package/mission/model/Counter.js +10 -25
  227. package/mission/model/Counter.js.map +1 -1
  228. package/mission/model/CounterModel.js +8 -20
  229. package/mission/model/CounterModel.js.map +1 -1
  230. package/mission/model/CounterModelMaster.js +8 -20
  231. package/mission/model/CounterModelMaster.js.map +1 -1
  232. package/mission/model/CurrentMissionMaster.js +6 -15
  233. package/mission/model/CurrentMissionMaster.js.map +1 -1
  234. package/mission/model/MissionGroupModel.js +8 -20
  235. package/mission/model/MissionGroupModel.js.map +1 -1
  236. package/mission/model/MissionGroupModelMaster.js +8 -20
  237. package/mission/model/MissionGroupModelMaster.js.map +1 -1
  238. package/mission/model/MissionTaskModel.js +10 -25
  239. package/mission/model/MissionTaskModel.js.map +1 -1
  240. package/mission/model/MissionTaskModelMaster.js +10 -25
  241. package/mission/model/MissionTaskModelMaster.js.map +1 -1
  242. package/mission/model/Namespace.js +6 -15
  243. package/mission/model/Namespace.js.map +1 -1
  244. package/money/model/Namespace.js +6 -15
  245. package/money/model/Namespace.js.map +1 -1
  246. package/money/model/Receipt.js +10 -25
  247. package/money/model/Receipt.js.map +1 -1
  248. package/money/model/Wallet.js +10 -25
  249. package/money/model/Wallet.js.map +1 -1
  250. package/news/model/Namespace.js +6 -15
  251. package/news/model/Namespace.js.map +1 -1
  252. package/package.json +9 -7
  253. package/project/model/Account.js +2 -5
  254. package/project/model/Account.js.map +1 -1
  255. package/project/model/Billing.js +8 -20
  256. package/project/model/Billing.js.map +1 -1
  257. package/project/model/BillingMethod.js +4 -10
  258. package/project/model/BillingMethod.js.map +1 -1
  259. package/project/model/Project.js +4 -10
  260. package/project/model/Project.js.map +1 -1
  261. package/project/model/Receipt.js +4 -10
  262. package/project/model/Receipt.js.map +1 -1
  263. package/quest/model/CompletedQuestList.js +10 -25
  264. package/quest/model/CompletedQuestList.js.map +1 -1
  265. package/quest/model/CurrentQuestMaster.js +6 -15
  266. package/quest/model/CurrentQuestMaster.js.map +1 -1
  267. package/quest/model/Namespace.js +6 -15
  268. package/quest/model/Namespace.js.map +1 -1
  269. package/quest/model/Progress.js +8 -20
  270. package/quest/model/Progress.js.map +1 -1
  271. package/quest/model/QuestGroupModel.js +8 -20
  272. package/quest/model/QuestGroupModel.js.map +1 -1
  273. package/quest/model/QuestGroupModelMaster.js +8 -20
  274. package/quest/model/QuestGroupModelMaster.js.map +1 -1
  275. package/quest/model/QuestModel.js +10 -25
  276. package/quest/model/QuestModel.js.map +1 -1
  277. package/quest/model/QuestModelMaster.js +10 -25
  278. package/quest/model/QuestModelMaster.js.map +1 -1
  279. package/ranking/model/CategoryModel.js +8 -20
  280. package/ranking/model/CategoryModel.js.map +1 -1
  281. package/ranking/model/CategoryModelMaster.js +8 -20
  282. package/ranking/model/CategoryModelMaster.js.map +1 -1
  283. package/ranking/model/CurrentRankingMaster.js +6 -15
  284. package/ranking/model/CurrentRankingMaster.js.map +1 -1
  285. package/ranking/model/Namespace.js +6 -15
  286. package/ranking/model/Namespace.js.map +1 -1
  287. package/ranking/model/Score.js +14 -35
  288. package/ranking/model/Score.js.map +1 -1
  289. package/ranking/model/Subscribe.js +10 -25
  290. package/ranking/model/Subscribe.js.map +1 -1
  291. package/realtime/model/Namespace.js +6 -15
  292. package/realtime/model/Namespace.js.map +1 -1
  293. package/realtime/model/Room.js +8 -20
  294. package/realtime/model/Room.js.map +1 -1
  295. package/schedule/model/CurrentEventMaster.js +6 -15
  296. package/schedule/model/CurrentEventMaster.js.map +1 -1
  297. package/schedule/model/Event.js +8 -20
  298. package/schedule/model/Event.js.map +1 -1
  299. package/schedule/model/EventMaster.js +8 -20
  300. package/schedule/model/EventMaster.js.map +1 -1
  301. package/schedule/model/Namespace.js +6 -15
  302. package/schedule/model/Namespace.js.map +1 -1
  303. package/schedule/model/Trigger.js +10 -25
  304. package/schedule/model/Trigger.js.map +1 -1
  305. package/script/model/Namespace.js +6 -15
  306. package/script/model/Namespace.js.map +1 -1
  307. package/script/model/Script.js +8 -20
  308. package/script/model/Script.js.map +1 -1
  309. package/showcase/model/CurrentShowcaseMaster.js +6 -15
  310. package/showcase/model/CurrentShowcaseMaster.js.map +1 -1
  311. package/showcase/model/Namespace.js +6 -15
  312. package/showcase/model/Namespace.js.map +1 -1
  313. package/showcase/model/SalesItemGroupMaster.js +8 -20
  314. package/showcase/model/SalesItemGroupMaster.js.map +1 -1
  315. package/showcase/model/SalesItemMaster.js +8 -20
  316. package/showcase/model/SalesItemMaster.js.map +1 -1
  317. package/showcase/model/Showcase.js +8 -20
  318. package/showcase/model/Showcase.js.map +1 -1
  319. package/showcase/model/ShowcaseMaster.js +8 -20
  320. package/showcase/model/ShowcaseMaster.js.map +1 -1
  321. package/src/account/model/Account.ts +8 -20
  322. package/src/account/model/Namespace.ts +6 -15
  323. package/src/account/model/TakeOver.ts +10 -25
  324. package/src/chat/model/Message.ts +10 -25
  325. package/src/chat/model/Namespace.ts +6 -15
  326. package/src/chat/model/Room.ts +8 -20
  327. package/src/chat/model/Subscribe.ts +10 -25
  328. package/src/core/AbstractGs2WebSocketClient.ts +26 -0
  329. package/src/core/index.ts +2 -1
  330. package/src/core/model.ts +144 -0
  331. package/src/datastore/model/DataObject.ts +10 -25
  332. package/src/datastore/model/DataObjectHistory.ts +12 -30
  333. package/src/datastore/model/Namespace.ts +6 -15
  334. package/src/deploy/model/Event.ts +8 -20
  335. package/src/deploy/model/Output.ts +8 -20
  336. package/src/deploy/model/Resource.ts +8 -20
  337. package/src/deploy/model/Stack.ts +6 -15
  338. package/src/dictionary/model/CurrentEntryMaster.ts +6 -15
  339. package/src/dictionary/model/Entry.ts +10 -25
  340. package/src/dictionary/model/EntryModel.ts +8 -20
  341. package/src/dictionary/model/EntryModelMaster.ts +8 -20
  342. package/src/dictionary/model/Namespace.ts +6 -15
  343. package/src/distributor/model/CurrentDistributorMaster.ts +6 -15
  344. package/src/distributor/model/DistributorModel.ts +8 -20
  345. package/src/distributor/model/DistributorModelMaster.ts +8 -20
  346. package/src/distributor/model/Namespace.ts +6 -15
  347. package/src/enhance/model/CurrentRateMaster.ts +6 -15
  348. package/src/enhance/model/Namespace.ts +6 -15
  349. package/src/enhance/model/RateModel.ts +8 -20
  350. package/src/enhance/model/RateModelMaster.ts +8 -20
  351. package/src/exchange/model/Await.ts +10 -25
  352. package/src/exchange/model/CurrentRateMaster.ts +6 -15
  353. package/src/exchange/model/Namespace.ts +6 -15
  354. package/src/exchange/model/RateModel.ts +8 -20
  355. package/src/exchange/model/RateModelMaster.ts +8 -20
  356. package/src/experience/model/CurrentExperienceMaster.ts +6 -15
  357. package/src/experience/model/ExperienceModel.ts +8 -20
  358. package/src/experience/model/ExperienceModelMaster.ts +8 -20
  359. package/src/experience/model/Namespace.ts +6 -15
  360. package/src/experience/model/Status.ts +12 -30
  361. package/src/experience/model/ThresholdMaster.ts +8 -20
  362. package/src/formation/model/CurrentFormMaster.ts +6 -15
  363. package/src/formation/model/Form.ts +12 -30
  364. package/src/formation/model/FormModel.ts +8 -20
  365. package/src/formation/model/FormModelMaster.ts +8 -20
  366. package/src/formation/model/Mold.ts +10 -25
  367. package/src/formation/model/MoldModel.ts +8 -20
  368. package/src/formation/model/MoldModelMaster.ts +8 -20
  369. package/src/formation/model/Namespace.ts +6 -15
  370. package/src/friend/model/BlackList.ts +8 -20
  371. package/src/friend/model/Follow.ts +8 -20
  372. package/src/friend/model/Friend.ts +8 -20
  373. package/src/friend/model/Inbox.ts +8 -20
  374. package/src/friend/model/Namespace.ts +6 -15
  375. package/src/friend/model/Profile.ts +8 -20
  376. package/src/friend/model/SendBox.ts +8 -20
  377. package/src/gateway/index.ts +2 -0
  378. package/src/gateway/model/FirebaseToken.ts +8 -20
  379. package/src/gateway/model/Namespace.ts +6 -15
  380. package/src/gateway/model/WebSocketSession.ts +10 -25
  381. package/src/gateway/websocket.ts +44 -0
  382. package/src/identifier/model/AttachSecurityPolicy.ts +4 -10
  383. package/src/identifier/model/Password.ts +4 -10
  384. package/src/identifier/model/SecurityPolicy.ts +4 -10
  385. package/src/identifier/model/User.ts +4 -10
  386. package/src/inbox/model/CurrentMessageMaster.ts +6 -15
  387. package/src/inbox/model/GlobalMessage.ts +8 -20
  388. package/src/inbox/model/GlobalMessageMaster.ts +8 -20
  389. package/src/inbox/model/Message.ts +10 -25
  390. package/src/inbox/model/Namespace.ts +6 -15
  391. package/src/inbox/model/Received.ts +8 -20
  392. package/src/inventory/model/CurrentItemModelMaster.ts +6 -15
  393. package/src/inventory/model/Inventory.ts +10 -25
  394. package/src/inventory/model/InventoryModel.ts +8 -20
  395. package/src/inventory/model/InventoryModelMaster.ts +8 -20
  396. package/src/inventory/model/ItemModel.ts +10 -25
  397. package/src/inventory/model/ItemModelMaster.ts +10 -25
  398. package/src/inventory/model/ItemSet.ts +14 -35
  399. package/src/inventory/model/Namespace.ts +6 -15
  400. package/src/inventory/model/ReferenceOf.ts +14 -35
  401. package/src/jobQueue/model/DeadLetterJob.ts +10 -25
  402. package/src/jobQueue/model/Job.ts +10 -25
  403. package/src/jobQueue/model/JobResult.ts +12 -30
  404. package/src/jobQueue/model/Namespace.ts +6 -15
  405. package/src/key/model/GitHubApiKey.ts +8 -20
  406. package/src/key/model/Key.ts +8 -20
  407. package/src/key/model/Namespace.ts +6 -15
  408. package/src/limit/model/Counter.ts +12 -30
  409. package/src/limit/model/CurrentLimitMaster.ts +6 -15
  410. package/src/limit/model/LimitModel.ts +8 -20
  411. package/src/limit/model/LimitModelMaster.ts +8 -20
  412. package/src/limit/model/Namespace.ts +6 -15
  413. package/src/lock/model/Mutex.ts +10 -25
  414. package/src/lock/model/Namespace.ts +6 -15
  415. package/src/log/model/Namespace.ts +6 -15
  416. package/src/lottery/model/Box.ts +10 -25
  417. package/src/lottery/model/CurrentLotteryMaster.ts +6 -15
  418. package/src/lottery/model/LotteryModel.ts +8 -20
  419. package/src/lottery/model/LotteryModelMaster.ts +8 -20
  420. package/src/lottery/model/Namespace.ts +6 -15
  421. package/src/lottery/model/PrizeTable.ts +8 -20
  422. package/src/lottery/model/PrizeTableMaster.ts +8 -20
  423. package/src/matchmaking/model/CurrentRatingModelMaster.ts +6 -15
  424. package/src/matchmaking/model/Gathering.ts +8 -20
  425. package/src/matchmaking/model/Namespace.ts +6 -15
  426. package/src/matchmaking/model/Rating.ts +10 -25
  427. package/src/matchmaking/model/RatingModel.ts +8 -20
  428. package/src/matchmaking/model/RatingModelMaster.ts +8 -20
  429. package/src/matchmaking/model/Vote.ts +10 -25
  430. package/src/mission/model/Complete.ts +10 -25
  431. package/src/mission/model/Counter.ts +10 -25
  432. package/src/mission/model/CounterModel.ts +8 -20
  433. package/src/mission/model/CounterModelMaster.ts +8 -20
  434. package/src/mission/model/CurrentMissionMaster.ts +6 -15
  435. package/src/mission/model/MissionGroupModel.ts +8 -20
  436. package/src/mission/model/MissionGroupModelMaster.ts +8 -20
  437. package/src/mission/model/MissionTaskModel.ts +10 -25
  438. package/src/mission/model/MissionTaskModelMaster.ts +10 -25
  439. package/src/mission/model/Namespace.ts +6 -15
  440. package/src/money/model/Namespace.ts +6 -15
  441. package/src/money/model/Receipt.ts +10 -25
  442. package/src/money/model/Wallet.ts +10 -25
  443. package/src/news/model/Namespace.ts +6 -15
  444. package/src/project/model/Account.ts +2 -5
  445. package/src/project/model/Billing.ts +8 -20
  446. package/src/project/model/BillingMethod.ts +4 -10
  447. package/src/project/model/Project.ts +4 -10
  448. package/src/project/model/Receipt.ts +4 -10
  449. package/src/quest/model/CompletedQuestList.ts +10 -25
  450. package/src/quest/model/CurrentQuestMaster.ts +6 -15
  451. package/src/quest/model/Namespace.ts +6 -15
  452. package/src/quest/model/Progress.ts +8 -20
  453. package/src/quest/model/QuestGroupModel.ts +8 -20
  454. package/src/quest/model/QuestGroupModelMaster.ts +8 -20
  455. package/src/quest/model/QuestModel.ts +10 -25
  456. package/src/quest/model/QuestModelMaster.ts +10 -25
  457. package/src/ranking/model/CategoryModel.ts +8 -20
  458. package/src/ranking/model/CategoryModelMaster.ts +8 -20
  459. package/src/ranking/model/CurrentRankingMaster.ts +6 -15
  460. package/src/ranking/model/Namespace.ts +6 -15
  461. package/src/ranking/model/Score.ts +14 -35
  462. package/src/ranking/model/Subscribe.ts +10 -25
  463. package/src/realtime/model/Namespace.ts +6 -15
  464. package/src/realtime/model/Room.ts +8 -20
  465. package/src/schedule/model/CurrentEventMaster.ts +6 -15
  466. package/src/schedule/model/Event.ts +8 -20
  467. package/src/schedule/model/EventMaster.ts +8 -20
  468. package/src/schedule/model/Namespace.ts +6 -15
  469. package/src/schedule/model/Trigger.ts +10 -25
  470. package/src/script/model/Namespace.ts +6 -15
  471. package/src/script/model/Script.ts +8 -20
  472. package/src/showcase/model/CurrentShowcaseMaster.ts +6 -15
  473. package/src/showcase/model/Namespace.ts +6 -15
  474. package/src/showcase/model/SalesItemGroupMaster.ts +8 -20
  475. package/src/showcase/model/SalesItemMaster.ts +8 -20
  476. package/src/showcase/model/Showcase.ts +8 -20
  477. package/src/showcase/model/ShowcaseMaster.ts +8 -20
  478. package/src/stamina/model/CurrentStaminaMaster.ts +6 -15
  479. package/src/stamina/model/MaxStaminaTable.ts +8 -20
  480. package/src/stamina/model/MaxStaminaTableMaster.ts +8 -20
  481. package/src/stamina/model/Namespace.ts +6 -15
  482. package/src/stamina/model/RecoverIntervalTable.ts +8 -20
  483. package/src/stamina/model/RecoverIntervalTableMaster.ts +8 -20
  484. package/src/stamina/model/RecoverValueTable.ts +8 -20
  485. package/src/stamina/model/RecoverValueTableMaster.ts +8 -20
  486. package/src/stamina/model/Stamina.ts +10 -25
  487. package/src/stamina/model/StaminaModel.ts +8 -20
  488. package/src/stamina/model/StaminaModelMaster.ts +8 -20
  489. package/src/version/model/AcceptVersion.ts +10 -25
  490. package/src/version/model/CurrentVersionMaster.ts +6 -15
  491. package/src/version/model/Namespace.ts +6 -15
  492. package/src/version/model/VersionModel.ts +8 -20
  493. package/src/version/model/VersionModelMaster.ts +8 -20
  494. package/stamina/model/CurrentStaminaMaster.js +6 -15
  495. package/stamina/model/CurrentStaminaMaster.js.map +1 -1
  496. package/stamina/model/MaxStaminaTable.js +8 -20
  497. package/stamina/model/MaxStaminaTable.js.map +1 -1
  498. package/stamina/model/MaxStaminaTableMaster.js +8 -20
  499. package/stamina/model/MaxStaminaTableMaster.js.map +1 -1
  500. package/stamina/model/Namespace.js +6 -15
  501. package/stamina/model/Namespace.js.map +1 -1
  502. package/stamina/model/RecoverIntervalTable.js +8 -20
  503. package/stamina/model/RecoverIntervalTable.js.map +1 -1
  504. package/stamina/model/RecoverIntervalTableMaster.js +8 -20
  505. package/stamina/model/RecoverIntervalTableMaster.js.map +1 -1
  506. package/stamina/model/RecoverValueTable.js +8 -20
  507. package/stamina/model/RecoverValueTable.js.map +1 -1
  508. package/stamina/model/RecoverValueTableMaster.js +8 -20
  509. package/stamina/model/RecoverValueTableMaster.js.map +1 -1
  510. package/stamina/model/Stamina.js +10 -25
  511. package/stamina/model/Stamina.js.map +1 -1
  512. package/stamina/model/StaminaModel.js +8 -20
  513. package/stamina/model/StaminaModel.js.map +1 -1
  514. package/stamina/model/StaminaModelMaster.js +8 -20
  515. package/stamina/model/StaminaModelMaster.js.map +1 -1
  516. package/version/model/AcceptVersion.js +10 -25
  517. package/version/model/AcceptVersion.js.map +1 -1
  518. package/version/model/CurrentVersionMaster.js +6 -15
  519. package/version/model/CurrentVersionMaster.js.map +1 -1
  520. package/version/model/Namespace.js +6 -15
  521. package/version/model/Namespace.js.map +1 -1
  522. package/version/model/VersionModel.js +8 -20
  523. package/version/model/VersionModel.js.map +1 -1
  524. package/version/model/VersionModelMaster.js +8 -20
  525. package/version/model/VersionModelMaster.js.map +1 -1
@@ -96,19 +96,19 @@ export default class CompletedQuestList implements IModel {
96
96
  }
97
97
 
98
98
  public static isValid(grn: string): boolean {
99
- if (this.getRegion(grn) == null) {
99
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
100
100
  return false;
101
101
  }
102
- if (this.getOwnerId(grn) == null) {
102
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
103
103
  return false;
104
104
  }
105
- if (this.getNamespaceName(grn) == null) {
105
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
106
106
  return false;
107
107
  }
108
- if (this.getUserId(grn) == null) {
108
+ if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
109
109
  return false;
110
110
  }
111
- if (this.getQuestGroupName(grn) == null) {
111
+ if (this.getQuestGroupName(grn) == null || this.getQuestGroupName(grn) === '') {
112
112
  return false;
113
113
  }
114
114
  return true;
@@ -121,27 +121,12 @@ export default class CompletedQuestList implements IModel {
121
121
  userId: string|null,
122
122
  questGroupName: string|null,
123
123
  ): string|null {
124
- if (region == null || region === '') {
125
- return null;
126
- }
127
- if (ownerId == null || ownerId === '') {
128
- return null;
129
- }
130
- if (namespaceName == null || namespaceName === '') {
131
- return null;
132
- }
133
- if (userId == null || userId === '') {
134
- return null;
135
- }
136
- if (questGroupName == null || questGroupName === '') {
137
- return null;
138
- }
139
124
  return grnFormat
140
- .replace('{region}', region!)
141
- .replace('{ownerId}', ownerId!)
142
- .replace('{namespaceName}', namespaceName!)
143
- .replace('{userId}', userId!)
144
- .replace('{questGroupName}', questGroupName!);
125
+ .replace('{region}', region ?? '')
126
+ .replace('{ownerId}', ownerId ?? '')
127
+ .replace('{namespaceName}', namespaceName ?? '')
128
+ .replace('{userId}', userId ?? '')
129
+ .replace('{questGroupName}', questGroupName ?? '');
145
130
  }
146
131
 
147
132
  public getCompletedQuestListId(): string|null {
@@ -58,13 +58,13 @@ export default class CurrentQuestMaster implements IModel {
58
58
  }
59
59
 
60
60
  public static isValid(grn: string): boolean {
61
- if (this.getRegion(grn) == null) {
61
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
62
62
  return false;
63
63
  }
64
- if (this.getOwnerId(grn) == null) {
64
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
65
65
  return false;
66
66
  }
67
- if (this.getNamespaceName(grn) == null) {
67
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
68
68
  return false;
69
69
  }
70
70
  return true;
@@ -75,19 +75,10 @@ export default class CurrentQuestMaster implements IModel {
75
75
  ownerId: string|null,
76
76
  namespaceName: string|null,
77
77
  ): string|null {
78
- if (region == null || region === '') {
79
- return null;
80
- }
81
- if (ownerId == null || ownerId === '') {
82
- return null;
83
- }
84
- if (namespaceName == null || namespaceName === '') {
85
- return null;
86
- }
87
78
  return grnFormat
88
- .replace('{region}', region!)
89
- .replace('{ownerId}', ownerId!)
90
- .replace('{namespaceName}', namespaceName!);
79
+ .replace('{region}', region ?? '')
80
+ .replace('{ownerId}', ownerId ?? '')
81
+ .replace('{namespaceName}', namespaceName ?? '');
91
82
  }
92
83
 
93
84
  public getNamespaceId(): string|null {
@@ -69,13 +69,13 @@ export default class Namespace implements IModel {
69
69
  }
70
70
 
71
71
  public static isValid(grn: string): boolean {
72
- if (this.getRegion(grn) == null) {
72
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
73
73
  return false;
74
74
  }
75
- if (this.getOwnerId(grn) == null) {
75
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
76
76
  return false;
77
77
  }
78
- if (this.getNamespaceName(grn) == null) {
78
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
79
79
  return false;
80
80
  }
81
81
  return true;
@@ -86,19 +86,10 @@ export default class Namespace implements IModel {
86
86
  ownerId: string|null,
87
87
  namespaceName: string|null,
88
88
  ): string|null {
89
- if (region == null || region === '') {
90
- return null;
91
- }
92
- if (ownerId == null || ownerId === '') {
93
- return null;
94
- }
95
- if (namespaceName == null || namespaceName === '') {
96
- return null;
97
- }
98
89
  return grnFormat
99
- .replace('{region}', region!)
100
- .replace('{ownerId}', ownerId!)
101
- .replace('{namespaceName}', namespaceName!);
90
+ .replace('{region}', region ?? '')
91
+ .replace('{ownerId}', ownerId ?? '')
92
+ .replace('{namespaceName}', namespaceName ?? '');
102
93
  }
103
94
 
104
95
  public getNamespaceId(): string|null {
@@ -82,16 +82,16 @@ export default class Progress implements IModel {
82
82
  }
83
83
 
84
84
  public static isValid(grn: string): boolean {
85
- if (this.getRegion(grn) == null) {
85
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
86
86
  return false;
87
87
  }
88
- if (this.getOwnerId(grn) == null) {
88
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
89
89
  return false;
90
90
  }
91
- if (this.getNamespaceName(grn) == null) {
91
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
92
92
  return false;
93
93
  }
94
- if (this.getUserId(grn) == null) {
94
+ if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
95
95
  return false;
96
96
  }
97
97
  return true;
@@ -103,23 +103,11 @@ export default class Progress implements IModel {
103
103
  namespaceName: string|null,
104
104
  userId: string|null,
105
105
  ): string|null {
106
- if (region == null || region === '') {
107
- return null;
108
- }
109
- if (ownerId == null || ownerId === '') {
110
- return null;
111
- }
112
- if (namespaceName == null || namespaceName === '') {
113
- return null;
114
- }
115
- if (userId == null || userId === '') {
116
- return null;
117
- }
118
106
  return grnFormat
119
- .replace('{region}', region!)
120
- .replace('{ownerId}', ownerId!)
121
- .replace('{namespaceName}', namespaceName!)
122
- .replace('{userId}', userId!);
107
+ .replace('{region}', region ?? '')
108
+ .replace('{ownerId}', ownerId ?? '')
109
+ .replace('{namespaceName}', namespaceName ?? '')
110
+ .replace('{userId}', userId ?? '');
123
111
  }
124
112
 
125
113
  public getProgressId(): string|null {
@@ -81,16 +81,16 @@ export default class QuestGroupModel implements IModel {
81
81
  }
82
82
 
83
83
  public static isValid(grn: string): boolean {
84
- if (this.getRegion(grn) == null) {
84
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
85
85
  return false;
86
86
  }
87
- if (this.getOwnerId(grn) == null) {
87
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
88
88
  return false;
89
89
  }
90
- if (this.getNamespaceName(grn) == null) {
90
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
91
91
  return false;
92
92
  }
93
- if (this.getQuestGroupName(grn) == null) {
93
+ if (this.getQuestGroupName(grn) == null || this.getQuestGroupName(grn) === '') {
94
94
  return false;
95
95
  }
96
96
  return true;
@@ -102,23 +102,11 @@ export default class QuestGroupModel implements IModel {
102
102
  namespaceName: string|null,
103
103
  questGroupName: string|null,
104
104
  ): string|null {
105
- if (region == null || region === '') {
106
- return null;
107
- }
108
- if (ownerId == null || ownerId === '') {
109
- return null;
110
- }
111
- if (namespaceName == null || namespaceName === '') {
112
- return null;
113
- }
114
- if (questGroupName == null || questGroupName === '') {
115
- return null;
116
- }
117
105
  return grnFormat
118
- .replace('{region}', region!)
119
- .replace('{ownerId}', ownerId!)
120
- .replace('{namespaceName}', namespaceName!)
121
- .replace('{questGroupName}', questGroupName!);
106
+ .replace('{region}', region ?? '')
107
+ .replace('{ownerId}', ownerId ?? '')
108
+ .replace('{namespaceName}', namespaceName ?? '')
109
+ .replace('{questGroupName}', questGroupName ?? '');
122
110
  }
123
111
 
124
112
  public getQuestGroupModelId(): string|null {
@@ -79,16 +79,16 @@ export default class QuestGroupModelMaster implements IModel {
79
79
  }
80
80
 
81
81
  public static isValid(grn: string): boolean {
82
- if (this.getRegion(grn) == null) {
82
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
83
83
  return false;
84
84
  }
85
- if (this.getOwnerId(grn) == null) {
85
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
86
86
  return false;
87
87
  }
88
- if (this.getNamespaceName(grn) == null) {
88
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
89
89
  return false;
90
90
  }
91
- if (this.getQuestGroupName(grn) == null) {
91
+ if (this.getQuestGroupName(grn) == null || this.getQuestGroupName(grn) === '') {
92
92
  return false;
93
93
  }
94
94
  return true;
@@ -100,23 +100,11 @@ export default class QuestGroupModelMaster implements IModel {
100
100
  namespaceName: string|null,
101
101
  questGroupName: string|null,
102
102
  ): string|null {
103
- if (region == null || region === '') {
104
- return null;
105
- }
106
- if (ownerId == null || ownerId === '') {
107
- return null;
108
- }
109
- if (namespaceName == null || namespaceName === '') {
110
- return null;
111
- }
112
- if (questGroupName == null || questGroupName === '') {
113
- return null;
114
- }
115
103
  return grnFormat
116
- .replace('{region}', region!)
117
- .replace('{ownerId}', ownerId!)
118
- .replace('{namespaceName}', namespaceName!)
119
- .replace('{questGroupName}', questGroupName!);
104
+ .replace('{region}', region ?? '')
105
+ .replace('{ownerId}', ownerId ?? '')
106
+ .replace('{namespaceName}', namespaceName ?? '')
107
+ .replace('{questGroupName}', questGroupName ?? '');
120
108
  }
121
109
 
122
110
  public getQuestGroupModelId(): string|null {
@@ -101,19 +101,19 @@ export default class QuestModel implements IModel {
101
101
  }
102
102
 
103
103
  public static isValid(grn: string): boolean {
104
- if (this.getRegion(grn) == null) {
104
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
105
105
  return false;
106
106
  }
107
- if (this.getOwnerId(grn) == null) {
107
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
108
108
  return false;
109
109
  }
110
- if (this.getNamespaceName(grn) == null) {
110
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
111
111
  return false;
112
112
  }
113
- if (this.getQuestGroupName(grn) == null) {
113
+ if (this.getQuestGroupName(grn) == null || this.getQuestGroupName(grn) === '') {
114
114
  return false;
115
115
  }
116
- if (this.getQuestName(grn) == null) {
116
+ if (this.getQuestName(grn) == null || this.getQuestName(grn) === '') {
117
117
  return false;
118
118
  }
119
119
  return true;
@@ -126,27 +126,12 @@ export default class QuestModel implements IModel {
126
126
  questGroupName: string|null,
127
127
  questName: string|null,
128
128
  ): string|null {
129
- if (region == null || region === '') {
130
- return null;
131
- }
132
- if (ownerId == null || ownerId === '') {
133
- return null;
134
- }
135
- if (namespaceName == null || namespaceName === '') {
136
- return null;
137
- }
138
- if (questGroupName == null || questGroupName === '') {
139
- return null;
140
- }
141
- if (questName == null || questName === '') {
142
- return null;
143
- }
144
129
  return grnFormat
145
- .replace('{region}', region!)
146
- .replace('{ownerId}', ownerId!)
147
- .replace('{namespaceName}', namespaceName!)
148
- .replace('{questGroupName}', questGroupName!)
149
- .replace('{questName}', questName!);
130
+ .replace('{region}', region ?? '')
131
+ .replace('{ownerId}', ownerId ?? '')
132
+ .replace('{namespaceName}', namespaceName ?? '')
133
+ .replace('{questGroupName}', questGroupName ?? '')
134
+ .replace('{questName}', questName ?? '');
150
135
  }
151
136
 
152
137
  public getQuestModelId(): string|null {
@@ -105,19 +105,19 @@ export default class QuestModelMaster implements IModel {
105
105
  }
106
106
 
107
107
  public static isValid(grn: string): boolean {
108
- if (this.getRegion(grn) == null) {
108
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
109
109
  return false;
110
110
  }
111
- if (this.getOwnerId(grn) == null) {
111
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
112
112
  return false;
113
113
  }
114
- if (this.getNamespaceName(grn) == null) {
114
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
115
115
  return false;
116
116
  }
117
- if (this.getQuestGroupName(grn) == null) {
117
+ if (this.getQuestGroupName(grn) == null || this.getQuestGroupName(grn) === '') {
118
118
  return false;
119
119
  }
120
- if (this.getQuestName(grn) == null) {
120
+ if (this.getQuestName(grn) == null || this.getQuestName(grn) === '') {
121
121
  return false;
122
122
  }
123
123
  return true;
@@ -130,27 +130,12 @@ export default class QuestModelMaster implements IModel {
130
130
  questGroupName: string|null,
131
131
  questName: string|null,
132
132
  ): string|null {
133
- if (region == null || region === '') {
134
- return null;
135
- }
136
- if (ownerId == null || ownerId === '') {
137
- return null;
138
- }
139
- if (namespaceName == null || namespaceName === '') {
140
- return null;
141
- }
142
- if (questGroupName == null || questGroupName === '') {
143
- return null;
144
- }
145
- if (questName == null || questName === '') {
146
- return null;
147
- }
148
133
  return grnFormat
149
- .replace('{region}', region!)
150
- .replace('{ownerId}', ownerId!)
151
- .replace('{namespaceName}', namespaceName!)
152
- .replace('{questGroupName}', questGroupName!)
153
- .replace('{questName}', questName!);
134
+ .replace('{region}', region ?? '')
135
+ .replace('{ownerId}', ownerId ?? '')
136
+ .replace('{namespaceName}', namespaceName ?? '')
137
+ .replace('{questGroupName}', questGroupName ?? '')
138
+ .replace('{questName}', questName ?? '');
154
139
  }
155
140
 
156
141
  public getQuestModelId(): string|null {
@@ -86,16 +86,16 @@ export default class CategoryModel implements IModel {
86
86
  }
87
87
 
88
88
  public static isValid(grn: string): boolean {
89
- if (this.getRegion(grn) == null) {
89
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
90
90
  return false;
91
91
  }
92
- if (this.getOwnerId(grn) == null) {
92
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
93
93
  return false;
94
94
  }
95
- if (this.getNamespaceName(grn) == null) {
95
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
96
96
  return false;
97
97
  }
98
- if (this.getCategoryName(grn) == null) {
98
+ if (this.getCategoryName(grn) == null || this.getCategoryName(grn) === '') {
99
99
  return false;
100
100
  }
101
101
  return true;
@@ -107,23 +107,11 @@ export default class CategoryModel implements IModel {
107
107
  namespaceName: string|null,
108
108
  categoryName: string|null,
109
109
  ): string|null {
110
- if (region == null || region === '') {
111
- return null;
112
- }
113
- if (ownerId == null || ownerId === '') {
114
- return null;
115
- }
116
- if (namespaceName == null || namespaceName === '') {
117
- return null;
118
- }
119
- if (categoryName == null || categoryName === '') {
120
- return null;
121
- }
122
110
  return grnFormat
123
- .replace('{region}', region!)
124
- .replace('{ownerId}', ownerId!)
125
- .replace('{namespaceName}', namespaceName!)
126
- .replace('{categoryName}', categoryName!);
111
+ .replace('{region}', region ?? '')
112
+ .replace('{ownerId}', ownerId ?? '')
113
+ .replace('{namespaceName}', namespaceName ?? '')
114
+ .replace('{categoryName}', categoryName ?? '');
127
115
  }
128
116
 
129
117
  public getCategoryModelId(): string|null {
@@ -89,16 +89,16 @@ export default class CategoryModelMaster implements IModel {
89
89
  }
90
90
 
91
91
  public static isValid(grn: string): boolean {
92
- if (this.getRegion(grn) == null) {
92
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
93
93
  return false;
94
94
  }
95
- if (this.getOwnerId(grn) == null) {
95
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
96
96
  return false;
97
97
  }
98
- if (this.getNamespaceName(grn) == null) {
98
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
99
99
  return false;
100
100
  }
101
- if (this.getCategoryName(grn) == null) {
101
+ if (this.getCategoryName(grn) == null || this.getCategoryName(grn) === '') {
102
102
  return false;
103
103
  }
104
104
  return true;
@@ -110,23 +110,11 @@ export default class CategoryModelMaster implements IModel {
110
110
  namespaceName: string|null,
111
111
  categoryName: string|null,
112
112
  ): string|null {
113
- if (region == null || region === '') {
114
- return null;
115
- }
116
- if (ownerId == null || ownerId === '') {
117
- return null;
118
- }
119
- if (namespaceName == null || namespaceName === '') {
120
- return null;
121
- }
122
- if (categoryName == null || categoryName === '') {
123
- return null;
124
- }
125
113
  return grnFormat
126
- .replace('{region}', region!)
127
- .replace('{ownerId}', ownerId!)
128
- .replace('{namespaceName}', namespaceName!)
129
- .replace('{categoryName}', categoryName!);
114
+ .replace('{region}', region ?? '')
115
+ .replace('{ownerId}', ownerId ?? '')
116
+ .replace('{namespaceName}', namespaceName ?? '')
117
+ .replace('{categoryName}', categoryName ?? '');
130
118
  }
131
119
 
132
120
  public getCategoryModelId(): string|null {
@@ -58,13 +58,13 @@ export default class CurrentRankingMaster implements IModel {
58
58
  }
59
59
 
60
60
  public static isValid(grn: string): boolean {
61
- if (this.getRegion(grn) == null) {
61
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
62
62
  return false;
63
63
  }
64
- if (this.getOwnerId(grn) == null) {
64
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
65
65
  return false;
66
66
  }
67
- if (this.getNamespaceName(grn) == null) {
67
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
68
68
  return false;
69
69
  }
70
70
  return true;
@@ -75,19 +75,10 @@ export default class CurrentRankingMaster implements IModel {
75
75
  ownerId: string|null,
76
76
  namespaceName: string|null,
77
77
  ): string|null {
78
- if (region == null || region === '') {
79
- return null;
80
- }
81
- if (ownerId == null || ownerId === '') {
82
- return null;
83
- }
84
- if (namespaceName == null || namespaceName === '') {
85
- return null;
86
- }
87
78
  return grnFormat
88
- .replace('{region}', region!)
89
- .replace('{ownerId}', ownerId!)
90
- .replace('{namespaceName}', namespaceName!);
79
+ .replace('{region}', region ?? '')
80
+ .replace('{ownerId}', ownerId ?? '')
81
+ .replace('{namespaceName}', namespaceName ?? '');
91
82
  }
92
83
 
93
84
  public getNamespaceId(): string|null {
@@ -65,13 +65,13 @@ export default class Namespace implements IModel {
65
65
  }
66
66
 
67
67
  public static isValid(grn: string): boolean {
68
- if (this.getRegion(grn) == null) {
68
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
69
69
  return false;
70
70
  }
71
- if (this.getOwnerId(grn) == null) {
71
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
72
72
  return false;
73
73
  }
74
- if (this.getNamespaceName(grn) == null) {
74
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
75
75
  return false;
76
76
  }
77
77
  return true;
@@ -82,19 +82,10 @@ export default class Namespace implements IModel {
82
82
  ownerId: string|null,
83
83
  namespaceName: string|null,
84
84
  ): string|null {
85
- if (region == null || region === '') {
86
- return null;
87
- }
88
- if (ownerId == null || ownerId === '') {
89
- return null;
90
- }
91
- if (namespaceName == null || namespaceName === '') {
92
- return null;
93
- }
94
85
  return grnFormat
95
- .replace('{region}', region!)
96
- .replace('{ownerId}', ownerId!)
97
- .replace('{namespaceName}', namespaceName!);
86
+ .replace('{region}', region ?? '')
87
+ .replace('{ownerId}', ownerId ?? '')
88
+ .replace('{namespaceName}', namespaceName ?? '');
98
89
  }
99
90
 
100
91
  public getNamespaceId(): string|null {
@@ -140,25 +140,25 @@ export default class Score implements IModel {
140
140
  }
141
141
 
142
142
  public static isValid(grn: string): boolean {
143
- if (this.getRegion(grn) == null) {
143
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
144
144
  return false;
145
145
  }
146
- if (this.getOwnerId(grn) == null) {
146
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
147
147
  return false;
148
148
  }
149
- if (this.getNamespaceName(grn) == null) {
149
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
150
150
  return false;
151
151
  }
152
- if (this.getUserId(grn) == null) {
152
+ if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
153
153
  return false;
154
154
  }
155
- if (this.getCategoryName(grn) == null) {
155
+ if (this.getCategoryName(grn) == null || this.getCategoryName(grn) === '') {
156
156
  return false;
157
157
  }
158
- if (this.getScorerUserId(grn) == null) {
158
+ if (this.getScorerUserId(grn) == null || this.getScorerUserId(grn) === '') {
159
159
  return false;
160
160
  }
161
- if (this.getUniqueId(grn) == null) {
161
+ if (this.getUniqueId(grn) == null || this.getUniqueId(grn) === '') {
162
162
  return false;
163
163
  }
164
164
  return true;
@@ -173,35 +173,14 @@ export default class Score implements IModel {
173
173
  scorerUserId: string|null,
174
174
  uniqueId: string|null,
175
175
  ): string|null {
176
- if (region == null || region === '') {
177
- return null;
178
- }
179
- if (ownerId == null || ownerId === '') {
180
- return null;
181
- }
182
- if (namespaceName == null || namespaceName === '') {
183
- return null;
184
- }
185
- if (userId == null || userId === '') {
186
- return null;
187
- }
188
- if (categoryName == null || categoryName === '') {
189
- return null;
190
- }
191
- if (scorerUserId == null || scorerUserId === '') {
192
- return null;
193
- }
194
- if (uniqueId == null || uniqueId === '') {
195
- return null;
196
- }
197
176
  return grnFormat
198
- .replace('{region}', region!)
199
- .replace('{ownerId}', ownerId!)
200
- .replace('{namespaceName}', namespaceName!)
201
- .replace('{userId}', userId!)
202
- .replace('{categoryName}', categoryName!)
203
- .replace('{scorerUserId}', scorerUserId!)
204
- .replace('{uniqueId}', uniqueId!);
177
+ .replace('{region}', region ?? '')
178
+ .replace('{ownerId}', ownerId ?? '')
179
+ .replace('{namespaceName}', namespaceName ?? '')
180
+ .replace('{userId}', userId ?? '')
181
+ .replace('{categoryName}', categoryName ?? '')
182
+ .replace('{scorerUserId}', scorerUserId ?? '')
183
+ .replace('{uniqueId}', uniqueId ?? '');
205
184
  }
206
185
 
207
186
  public getScoreId(): string|null {