gs2-cdk 1.0.86 → 1.0.88

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 (391) hide show
  1. package/account/ref/MasterDataVersionRef.d.ts +2 -1
  2. package/account/ref/MasterDataVersionRef.js +2 -1
  3. package/account/ref/MasterDataVersionRef.js.map +1 -1
  4. package/account/ref/MasterDataVersionRef.ts +3 -0
  5. package/account/ref/NamespaceRef.js.map +1 -1
  6. package/account/ref/NamespaceRef.ts +0 -1
  7. package/buff/ref/MasterDataVersionRef.d.ts +6 -0
  8. package/buff/ref/MasterDataVersionRef.js +26 -0
  9. package/buff/ref/MasterDataVersionRef.js.map +1 -0
  10. package/buff/ref/MasterDataVersionRef.ts +33 -0
  11. package/buff/ref/index.d.ts +2 -1
  12. package/buff/ref/index.js +3 -1
  13. package/buff/ref/index.js.map +1 -1
  14. package/buff/ref/index.ts +2 -0
  15. package/dictionary/ref/MasterDataVersionRef.d.ts +6 -0
  16. package/dictionary/ref/MasterDataVersionRef.js +26 -0
  17. package/dictionary/ref/MasterDataVersionRef.js.map +1 -0
  18. package/dictionary/ref/MasterDataVersionRef.ts +33 -0
  19. package/dictionary/ref/index.d.ts +2 -1
  20. package/dictionary/ref/index.js +3 -1
  21. package/dictionary/ref/index.js.map +1 -1
  22. package/dictionary/ref/index.ts +2 -0
  23. package/distributor/ref/MasterDataVersionRef.d.ts +6 -0
  24. package/distributor/ref/MasterDataVersionRef.js +26 -0
  25. package/distributor/ref/MasterDataVersionRef.js.map +1 -0
  26. package/distributor/ref/MasterDataVersionRef.ts +33 -0
  27. package/distributor/ref/index.d.ts +2 -1
  28. package/distributor/ref/index.js +3 -1
  29. package/distributor/ref/index.js.map +1 -1
  30. package/distributor/ref/index.ts +2 -0
  31. package/enchant/ref/MasterDataVersionRef.d.ts +6 -0
  32. package/enchant/ref/MasterDataVersionRef.js +26 -0
  33. package/enchant/ref/MasterDataVersionRef.js.map +1 -0
  34. package/enchant/ref/MasterDataVersionRef.ts +33 -0
  35. package/enchant/ref/index.d.ts +2 -1
  36. package/enchant/ref/index.js +3 -1
  37. package/enchant/ref/index.js.map +1 -1
  38. package/enchant/ref/index.ts +2 -0
  39. package/enhance/ref/MasterDataVersionRef.d.ts +6 -0
  40. package/enhance/ref/MasterDataVersionRef.js +26 -0
  41. package/enhance/ref/MasterDataVersionRef.js.map +1 -0
  42. package/enhance/ref/MasterDataVersionRef.ts +33 -0
  43. package/enhance/ref/index.d.ts +2 -1
  44. package/enhance/ref/index.js +3 -1
  45. package/enhance/ref/index.js.map +1 -1
  46. package/enhance/ref/index.ts +2 -0
  47. package/exchange/ref/MasterDataVersionRef.d.ts +6 -0
  48. package/exchange/ref/MasterDataVersionRef.js +26 -0
  49. package/exchange/ref/MasterDataVersionRef.js.map +1 -0
  50. package/exchange/ref/MasterDataVersionRef.ts +33 -0
  51. package/exchange/ref/index.d.ts +2 -1
  52. package/exchange/ref/index.js +3 -1
  53. package/exchange/ref/index.js.map +1 -1
  54. package/exchange/ref/index.ts +2 -0
  55. package/experience/ref/MasterDataVersionRef.d.ts +6 -0
  56. package/experience/ref/MasterDataVersionRef.js +26 -0
  57. package/experience/ref/MasterDataVersionRef.js.map +1 -0
  58. package/experience/ref/MasterDataVersionRef.ts +33 -0
  59. package/experience/ref/index.d.ts +2 -1
  60. package/experience/ref/index.js +3 -1
  61. package/experience/ref/index.js.map +1 -1
  62. package/experience/ref/index.ts +2 -0
  63. package/formation/ref/MasterDataVersionRef.d.ts +6 -0
  64. package/formation/ref/MasterDataVersionRef.js +26 -0
  65. package/formation/ref/MasterDataVersionRef.js.map +1 -0
  66. package/formation/ref/MasterDataVersionRef.ts +33 -0
  67. package/formation/ref/index.d.ts +2 -1
  68. package/formation/ref/index.js +3 -1
  69. package/formation/ref/index.js.map +1 -1
  70. package/formation/ref/index.ts +2 -0
  71. package/grade/ref/MasterDataVersionRef.d.ts +6 -0
  72. package/grade/ref/MasterDataVersionRef.js +26 -0
  73. package/grade/ref/MasterDataVersionRef.js.map +1 -0
  74. package/grade/ref/MasterDataVersionRef.ts +33 -0
  75. package/grade/ref/index.d.ts +2 -1
  76. package/grade/ref/index.js +3 -1
  77. package/grade/ref/index.js.map +1 -1
  78. package/grade/ref/index.ts +2 -0
  79. package/guard/index.d.ts +12 -0
  80. package/guard/index.js +32 -0
  81. package/guard/index.js.map +1 -0
  82. package/guard/index.ts +36 -0
  83. package/guard/model/BlockingPolicyModel.d.ts +52 -0
  84. package/guard/model/BlockingPolicyModel.js +137 -0
  85. package/guard/model/BlockingPolicyModel.js.map +1 -0
  86. package/guard/model/BlockingPolicyModel.ts +372 -0
  87. package/guard/model/Namespace.d.ts +19 -0
  88. package/guard/model/Namespace.js +61 -0
  89. package/guard/model/Namespace.js.map +1 -0
  90. package/guard/model/Namespace.ts +95 -0
  91. package/guard/model/enum/BlockingPolicyModelAnonymousIpDetection.d.ts +5 -0
  92. package/guard/model/enum/BlockingPolicyModelAnonymousIpDetection.js +23 -0
  93. package/guard/model/enum/BlockingPolicyModelAnonymousIpDetection.js.map +1 -0
  94. package/guard/model/enum/BlockingPolicyModelAnonymousIpDetection.ts +23 -0
  95. package/guard/model/enum/BlockingPolicyModelAnonymousIpRestriction.d.ts +4 -0
  96. package/guard/model/enum/BlockingPolicyModelAnonymousIpRestriction.js +22 -0
  97. package/guard/model/enum/BlockingPolicyModelAnonymousIpRestriction.js.map +1 -0
  98. package/guard/model/enum/BlockingPolicyModelAnonymousIpRestriction.ts +22 -0
  99. package/guard/model/enum/BlockingPolicyModelDefaultRestriction.d.ts +5 -0
  100. package/guard/model/enum/BlockingPolicyModelDefaultRestriction.js +23 -0
  101. package/guard/model/enum/BlockingPolicyModelDefaultRestriction.js.map +1 -0
  102. package/guard/model/enum/BlockingPolicyModelDefaultRestriction.ts +23 -0
  103. package/guard/model/enum/BlockingPolicyModelHostingProviderIpDetection.d.ts +5 -0
  104. package/guard/model/enum/BlockingPolicyModelHostingProviderIpDetection.js +23 -0
  105. package/guard/model/enum/BlockingPolicyModelHostingProviderIpDetection.js.map +1 -0
  106. package/guard/model/enum/BlockingPolicyModelHostingProviderIpDetection.ts +23 -0
  107. package/guard/model/enum/BlockingPolicyModelHostingProviderIpRestriction.d.ts +4 -0
  108. package/guard/model/enum/BlockingPolicyModelHostingProviderIpRestriction.js +22 -0
  109. package/guard/model/enum/BlockingPolicyModelHostingProviderIpRestriction.js.map +1 -0
  110. package/guard/model/enum/BlockingPolicyModelHostingProviderIpRestriction.ts +22 -0
  111. package/guard/model/enum/BlockingPolicyModelIpAddressRestriction.d.ts +5 -0
  112. package/guard/model/enum/BlockingPolicyModelIpAddressRestriction.js +23 -0
  113. package/guard/model/enum/BlockingPolicyModelIpAddressRestriction.js.map +1 -0
  114. package/guard/model/enum/BlockingPolicyModelIpAddressRestriction.ts +23 -0
  115. package/guard/model/enum/BlockingPolicyModelIpAddressesDetection.d.ts +5 -0
  116. package/guard/model/enum/BlockingPolicyModelIpAddressesDetection.js +23 -0
  117. package/guard/model/enum/BlockingPolicyModelIpAddressesDetection.js.map +1 -0
  118. package/guard/model/enum/BlockingPolicyModelIpAddressesDetection.ts +23 -0
  119. package/guard/model/enum/BlockingPolicyModelLocationDetection.d.ts +5 -0
  120. package/guard/model/enum/BlockingPolicyModelLocationDetection.js +23 -0
  121. package/guard/model/enum/BlockingPolicyModelLocationDetection.js.map +1 -0
  122. package/guard/model/enum/BlockingPolicyModelLocationDetection.ts +23 -0
  123. package/guard/model/enum/BlockingPolicyModelLocationRestriction.d.ts +5 -0
  124. package/guard/model/enum/BlockingPolicyModelLocationRestriction.js +23 -0
  125. package/guard/model/enum/BlockingPolicyModelLocationRestriction.js.map +1 -0
  126. package/guard/model/enum/BlockingPolicyModelLocationRestriction.ts +23 -0
  127. package/guard/model/enum/BlockingPolicyModelReputationIpDetection.d.ts +5 -0
  128. package/guard/model/enum/BlockingPolicyModelReputationIpDetection.js +23 -0
  129. package/guard/model/enum/BlockingPolicyModelReputationIpDetection.js.map +1 -0
  130. package/guard/model/enum/BlockingPolicyModelReputationIpDetection.ts +23 -0
  131. package/guard/model/enum/BlockingPolicyModelReputationIpRestriction.d.ts +4 -0
  132. package/guard/model/enum/BlockingPolicyModelReputationIpRestriction.js +22 -0
  133. package/guard/model/enum/BlockingPolicyModelReputationIpRestriction.js.map +1 -0
  134. package/guard/model/enum/BlockingPolicyModelReputationIpRestriction.ts +22 -0
  135. package/guard/model/enum/NamespaceStatus.d.ts +6 -0
  136. package/guard/model/enum/NamespaceStatus.js +24 -0
  137. package/guard/model/enum/NamespaceStatus.js.map +1 -0
  138. package/guard/model/enum/NamespaceStatus.ts +24 -0
  139. package/guard/model/index.d.ts +27 -0
  140. package/guard/model/index.js +48 -0
  141. package/guard/model/index.js.map +1 -0
  142. package/guard/model/index.ts +70 -0
  143. package/guard/model/options/BlockingPolicyModelAnonymousIpDetectionIsDisableOptions.d.ts +3 -0
  144. package/guard/model/options/BlockingPolicyModelAnonymousIpDetectionIsDisableOptions.js +3 -0
  145. package/guard/model/options/BlockingPolicyModelAnonymousIpDetectionIsDisableOptions.js.map +1 -0
  146. package/guard/model/options/BlockingPolicyModelAnonymousIpDetectionIsDisableOptions.ts +30 -0
  147. package/guard/model/options/BlockingPolicyModelAnonymousIpDetectionIsEnableOptions.d.ts +3 -0
  148. package/guard/model/options/BlockingPolicyModelAnonymousIpDetectionIsEnableOptions.js +3 -0
  149. package/guard/model/options/BlockingPolicyModelAnonymousIpDetectionIsEnableOptions.js.map +1 -0
  150. package/guard/model/options/BlockingPolicyModelAnonymousIpDetectionIsEnableOptions.ts +30 -0
  151. package/guard/model/options/BlockingPolicyModelHostingProviderIpDetectionIsDisableOptions.d.ts +3 -0
  152. package/guard/model/options/BlockingPolicyModelHostingProviderIpDetectionIsDisableOptions.js +3 -0
  153. package/guard/model/options/BlockingPolicyModelHostingProviderIpDetectionIsDisableOptions.js.map +1 -0
  154. package/guard/model/options/BlockingPolicyModelHostingProviderIpDetectionIsDisableOptions.ts +30 -0
  155. package/guard/model/options/BlockingPolicyModelHostingProviderIpDetectionIsEnableOptions.d.ts +3 -0
  156. package/guard/model/options/BlockingPolicyModelHostingProviderIpDetectionIsEnableOptions.js +3 -0
  157. package/guard/model/options/BlockingPolicyModelHostingProviderIpDetectionIsEnableOptions.js.map +1 -0
  158. package/guard/model/options/BlockingPolicyModelHostingProviderIpDetectionIsEnableOptions.ts +30 -0
  159. package/guard/model/options/BlockingPolicyModelIpAddressesDetectionIsDisableOptions.d.ts +3 -0
  160. package/guard/model/options/BlockingPolicyModelIpAddressesDetectionIsDisableOptions.js +3 -0
  161. package/guard/model/options/BlockingPolicyModelIpAddressesDetectionIsDisableOptions.js.map +1 -0
  162. package/guard/model/options/BlockingPolicyModelIpAddressesDetectionIsDisableOptions.ts +30 -0
  163. package/guard/model/options/BlockingPolicyModelIpAddressesDetectionIsEnableOptions.d.ts +3 -0
  164. package/guard/model/options/BlockingPolicyModelIpAddressesDetectionIsEnableOptions.js +3 -0
  165. package/guard/model/options/BlockingPolicyModelIpAddressesDetectionIsEnableOptions.js.map +1 -0
  166. package/guard/model/options/BlockingPolicyModelIpAddressesDetectionIsEnableOptions.ts +30 -0
  167. package/guard/model/options/BlockingPolicyModelLocationDetectionIsDisableOptions.d.ts +3 -0
  168. package/guard/model/options/BlockingPolicyModelLocationDetectionIsDisableOptions.js +3 -0
  169. package/guard/model/options/BlockingPolicyModelLocationDetectionIsDisableOptions.js.map +1 -0
  170. package/guard/model/options/BlockingPolicyModelLocationDetectionIsDisableOptions.ts +30 -0
  171. package/guard/model/options/BlockingPolicyModelLocationDetectionIsEnableOptions.d.ts +3 -0
  172. package/guard/model/options/BlockingPolicyModelLocationDetectionIsEnableOptions.js +3 -0
  173. package/guard/model/options/BlockingPolicyModelLocationDetectionIsEnableOptions.js.map +1 -0
  174. package/guard/model/options/BlockingPolicyModelLocationDetectionIsEnableOptions.ts +30 -0
  175. package/guard/model/options/BlockingPolicyModelOptions.d.ts +14 -0
  176. package/guard/model/options/BlockingPolicyModelOptions.js +3 -0
  177. package/guard/model/options/BlockingPolicyModelOptions.js.map +1 -0
  178. package/guard/model/options/BlockingPolicyModelOptions.ts +37 -0
  179. package/guard/model/options/BlockingPolicyModelReputationIpDetectionIsDisableOptions.d.ts +3 -0
  180. package/guard/model/options/BlockingPolicyModelReputationIpDetectionIsDisableOptions.js +3 -0
  181. package/guard/model/options/BlockingPolicyModelReputationIpDetectionIsDisableOptions.js.map +1 -0
  182. package/guard/model/options/BlockingPolicyModelReputationIpDetectionIsDisableOptions.ts +30 -0
  183. package/guard/model/options/BlockingPolicyModelReputationIpDetectionIsEnableOptions.d.ts +3 -0
  184. package/guard/model/options/BlockingPolicyModelReputationIpDetectionIsEnableOptions.js +3 -0
  185. package/guard/model/options/BlockingPolicyModelReputationIpDetectionIsEnableOptions.js.map +1 -0
  186. package/guard/model/options/BlockingPolicyModelReputationIpDetectionIsEnableOptions.ts +30 -0
  187. package/guard/model/options/NamespaceOptions.d.ts +3 -0
  188. package/guard/model/options/NamespaceOptions.js +3 -0
  189. package/guard/model/options/NamespaceOptions.js.map +1 -0
  190. package/guard/model/options/NamespaceOptions.ts +21 -0
  191. package/guard/ref/NamespaceRef.d.ts +5 -0
  192. package/guard/ref/NamespaceRef.js +35 -0
  193. package/guard/ref/NamespaceRef.js.map +1 -0
  194. package/guard/ref/NamespaceRef.ts +47 -0
  195. package/guard/ref/index.d.ts +2 -0
  196. package/guard/ref/index.js +22 -0
  197. package/guard/ref/index.js.map +1 -0
  198. package/guard/ref/index.ts +20 -0
  199. package/guard/stampSheet/index.d.ts +1 -0
  200. package/guard/stampSheet/index.js +18 -0
  201. package/guard/stampSheet/index.js.map +1 -0
  202. package/guard/stampSheet/index.ts +18 -0
  203. package/guild/model/Namespace.d.ts +2 -0
  204. package/guild/model/Namespace.js +32 -22
  205. package/guild/model/Namespace.js.map +1 -1
  206. package/guild/model/Namespace.ts +12 -0
  207. package/guild/model/options/NamespaceOptions.d.ts +2 -0
  208. package/guild/model/options/NamespaceOptions.ts +2 -0
  209. package/guild/ref/MasterDataVersionRef.d.ts +6 -0
  210. package/guild/ref/MasterDataVersionRef.js +26 -0
  211. package/guild/ref/MasterDataVersionRef.js.map +1 -0
  212. package/guild/ref/MasterDataVersionRef.ts +33 -0
  213. package/guild/ref/index.d.ts +2 -1
  214. package/guild/ref/index.js +3 -1
  215. package/guild/ref/index.js.map +1 -1
  216. package/guild/ref/index.ts +2 -0
  217. package/identifier/model/AttachGuard.d.ts +14 -0
  218. package/identifier/model/AttachGuard.js +48 -0
  219. package/identifier/model/AttachGuard.js.map +1 -0
  220. package/identifier/model/AttachGuard.ts +66 -0
  221. package/identifier/model/Identifier.d.ts +3 -0
  222. package/identifier/model/Identifier.js +11 -0
  223. package/identifier/model/Identifier.js.map +1 -1
  224. package/identifier/model/Identifier.ts +39 -0
  225. package/idle/ref/MasterDataVersionRef.d.ts +6 -0
  226. package/idle/ref/MasterDataVersionRef.js +26 -0
  227. package/idle/ref/MasterDataVersionRef.js.map +1 -0
  228. package/idle/ref/MasterDataVersionRef.ts +33 -0
  229. package/idle/ref/index.d.ts +2 -1
  230. package/idle/ref/index.js +3 -1
  231. package/idle/ref/index.js.map +1 -1
  232. package/idle/ref/index.ts +2 -0
  233. package/inbox/ref/MasterDataVersionRef.d.ts +6 -0
  234. package/inbox/ref/MasterDataVersionRef.js +26 -0
  235. package/inbox/ref/MasterDataVersionRef.js.map +1 -0
  236. package/inbox/ref/MasterDataVersionRef.ts +33 -0
  237. package/inbox/ref/index.d.ts +2 -1
  238. package/inbox/ref/index.js +3 -1
  239. package/inbox/ref/index.js.map +1 -1
  240. package/inbox/ref/index.ts +2 -0
  241. package/inventory/ref/MasterDataVersionRef.d.ts +6 -0
  242. package/inventory/ref/MasterDataVersionRef.js +26 -0
  243. package/inventory/ref/MasterDataVersionRef.js.map +1 -0
  244. package/inventory/ref/MasterDataVersionRef.ts +33 -0
  245. package/inventory/ref/index.d.ts +2 -1
  246. package/inventory/ref/index.js +3 -1
  247. package/inventory/ref/index.js.map +1 -1
  248. package/inventory/ref/index.ts +2 -0
  249. package/limit/ref/MasterDataVersionRef.d.ts +6 -0
  250. package/limit/ref/MasterDataVersionRef.js +26 -0
  251. package/limit/ref/MasterDataVersionRef.js.map +1 -0
  252. package/limit/ref/MasterDataVersionRef.ts +33 -0
  253. package/limit/ref/index.d.ts +2 -1
  254. package/limit/ref/index.js +3 -1
  255. package/limit/ref/index.js.map +1 -1
  256. package/limit/ref/index.ts +2 -0
  257. package/loginReward/ref/MasterDataVersionRef.d.ts +6 -0
  258. package/loginReward/ref/MasterDataVersionRef.js +26 -0
  259. package/loginReward/ref/MasterDataVersionRef.js.map +1 -0
  260. package/loginReward/ref/MasterDataVersionRef.ts +33 -0
  261. package/loginReward/ref/index.d.ts +2 -1
  262. package/loginReward/ref/index.js +3 -1
  263. package/loginReward/ref/index.js.map +1 -1
  264. package/loginReward/ref/index.ts +2 -0
  265. package/lottery/ref/MasterDataVersionRef.d.ts +6 -0
  266. package/lottery/ref/MasterDataVersionRef.js +26 -0
  267. package/lottery/ref/MasterDataVersionRef.js.map +1 -0
  268. package/lottery/ref/MasterDataVersionRef.ts +33 -0
  269. package/lottery/ref/index.d.ts +2 -1
  270. package/lottery/ref/index.js +3 -1
  271. package/lottery/ref/index.js.map +1 -1
  272. package/lottery/ref/index.ts +2 -0
  273. package/matchmaking/ref/MasterDataVersionRef.d.ts +6 -0
  274. package/matchmaking/ref/MasterDataVersionRef.js +26 -0
  275. package/matchmaking/ref/MasterDataVersionRef.js.map +1 -0
  276. package/matchmaking/ref/MasterDataVersionRef.ts +33 -0
  277. package/matchmaking/ref/index.d.ts +2 -1
  278. package/matchmaking/ref/index.js +3 -1
  279. package/matchmaking/ref/index.js.map +1 -1
  280. package/matchmaking/ref/index.ts +2 -0
  281. package/megaField/ref/MasterDataVersionRef.d.ts +6 -0
  282. package/megaField/ref/MasterDataVersionRef.js +26 -0
  283. package/megaField/ref/MasterDataVersionRef.js.map +1 -0
  284. package/megaField/ref/MasterDataVersionRef.ts +33 -0
  285. package/megaField/ref/NamespaceRef.js.map +1 -1
  286. package/megaField/ref/NamespaceRef.ts +0 -1
  287. package/megaField/ref/index.d.ts +2 -1
  288. package/megaField/ref/index.js +3 -1
  289. package/megaField/ref/index.js.map +1 -1
  290. package/megaField/ref/index.ts +2 -0
  291. package/mission/ref/MasterDataVersionRef.d.ts +6 -0
  292. package/mission/ref/MasterDataVersionRef.js +26 -0
  293. package/mission/ref/MasterDataVersionRef.js.map +1 -0
  294. package/mission/ref/MasterDataVersionRef.ts +33 -0
  295. package/mission/ref/index.d.ts +2 -1
  296. package/mission/ref/index.js +3 -1
  297. package/mission/ref/index.js.map +1 -1
  298. package/mission/ref/index.ts +2 -0
  299. package/money2/ref/MasterDataVersionRef.d.ts +6 -0
  300. package/money2/ref/MasterDataVersionRef.js +26 -0
  301. package/money2/ref/MasterDataVersionRef.js.map +1 -0
  302. package/money2/ref/MasterDataVersionRef.ts +33 -0
  303. package/money2/ref/index.d.ts +2 -1
  304. package/money2/ref/index.js +3 -1
  305. package/money2/ref/index.js.map +1 -1
  306. package/money2/ref/index.ts +2 -0
  307. package/package.json +1 -1
  308. package/quest/ref/MasterDataVersionRef.d.ts +6 -0
  309. package/quest/ref/MasterDataVersionRef.js +26 -0
  310. package/quest/ref/MasterDataVersionRef.js.map +1 -0
  311. package/quest/ref/MasterDataVersionRef.ts +33 -0
  312. package/quest/ref/index.d.ts +2 -1
  313. package/quest/ref/index.js +3 -1
  314. package/quest/ref/index.js.map +1 -1
  315. package/quest/ref/index.ts +2 -0
  316. package/ranking/ref/MasterDataVersionRef.d.ts +6 -0
  317. package/ranking/ref/MasterDataVersionRef.js +26 -0
  318. package/ranking/ref/MasterDataVersionRef.js.map +1 -0
  319. package/ranking/ref/MasterDataVersionRef.ts +33 -0
  320. package/ranking/ref/index.d.ts +2 -1
  321. package/ranking/ref/index.js +3 -1
  322. package/ranking/ref/index.js.map +1 -1
  323. package/ranking/ref/index.ts +2 -0
  324. package/ranking2/ref/ClusterRankingModelRef.js.map +1 -1
  325. package/ranking2/ref/ClusterRankingModelRef.ts +0 -1
  326. package/ranking2/ref/GlobalRankingModelRef.js.map +1 -1
  327. package/ranking2/ref/GlobalRankingModelRef.ts +0 -1
  328. package/ranking2/ref/MasterDataVersionRef.d.ts +6 -0
  329. package/ranking2/ref/MasterDataVersionRef.js +26 -0
  330. package/ranking2/ref/MasterDataVersionRef.js.map +1 -0
  331. package/ranking2/ref/MasterDataVersionRef.ts +33 -0
  332. package/ranking2/ref/index.d.ts +2 -1
  333. package/ranking2/ref/index.js +3 -1
  334. package/ranking2/ref/index.js.map +1 -1
  335. package/ranking2/ref/index.ts +2 -0
  336. package/schedule/ref/MasterDataVersionRef.d.ts +6 -0
  337. package/schedule/ref/MasterDataVersionRef.js +26 -0
  338. package/schedule/ref/MasterDataVersionRef.js.map +1 -0
  339. package/schedule/ref/MasterDataVersionRef.ts +33 -0
  340. package/schedule/ref/index.d.ts +2 -1
  341. package/schedule/ref/index.js +3 -1
  342. package/schedule/ref/index.js.map +1 -1
  343. package/schedule/ref/index.ts +2 -0
  344. package/seasonRating/ref/MasterDataVersionRef.d.ts +6 -0
  345. package/seasonRating/ref/MasterDataVersionRef.js +26 -0
  346. package/seasonRating/ref/MasterDataVersionRef.js.map +1 -0
  347. package/seasonRating/ref/MasterDataVersionRef.ts +33 -0
  348. package/seasonRating/ref/index.d.ts +2 -1
  349. package/seasonRating/ref/index.js +3 -1
  350. package/seasonRating/ref/index.js.map +1 -1
  351. package/seasonRating/ref/index.ts +2 -0
  352. package/serialKey/ref/MasterDataVersionRef.d.ts +6 -0
  353. package/serialKey/ref/MasterDataVersionRef.js +26 -0
  354. package/serialKey/ref/MasterDataVersionRef.js.map +1 -0
  355. package/serialKey/ref/MasterDataVersionRef.ts +33 -0
  356. package/serialKey/ref/index.d.ts +2 -1
  357. package/serialKey/ref/index.js +3 -1
  358. package/serialKey/ref/index.js.map +1 -1
  359. package/serialKey/ref/index.ts +2 -0
  360. package/showcase/ref/MasterDataVersionRef.d.ts +6 -0
  361. package/showcase/ref/MasterDataVersionRef.js +26 -0
  362. package/showcase/ref/MasterDataVersionRef.js.map +1 -0
  363. package/showcase/ref/MasterDataVersionRef.ts +33 -0
  364. package/showcase/ref/index.d.ts +2 -1
  365. package/showcase/ref/index.js +3 -1
  366. package/showcase/ref/index.js.map +1 -1
  367. package/showcase/ref/index.ts +2 -0
  368. package/skillTree/ref/MasterDataVersionRef.d.ts +6 -0
  369. package/skillTree/ref/MasterDataVersionRef.js +26 -0
  370. package/skillTree/ref/MasterDataVersionRef.js.map +1 -0
  371. package/skillTree/ref/MasterDataVersionRef.ts +33 -0
  372. package/skillTree/ref/index.d.ts +2 -1
  373. package/skillTree/ref/index.js +3 -1
  374. package/skillTree/ref/index.js.map +1 -1
  375. package/skillTree/ref/index.ts +2 -0
  376. package/stamina/ref/MasterDataVersionRef.d.ts +6 -0
  377. package/stamina/ref/MasterDataVersionRef.js +26 -0
  378. package/stamina/ref/MasterDataVersionRef.js.map +1 -0
  379. package/stamina/ref/MasterDataVersionRef.ts +33 -0
  380. package/stamina/ref/index.d.ts +2 -1
  381. package/stamina/ref/index.js +3 -1
  382. package/stamina/ref/index.js.map +1 -1
  383. package/stamina/ref/index.ts +2 -0
  384. package/version/ref/MasterDataVersionRef.d.ts +6 -0
  385. package/version/ref/MasterDataVersionRef.js +26 -0
  386. package/version/ref/MasterDataVersionRef.js.map +1 -0
  387. package/version/ref/MasterDataVersionRef.ts +33 -0
  388. package/version/ref/index.d.ts +2 -1
  389. package/version/ref/index.js +3 -1
  390. package/version/ref/index.js.map +1 -1
  391. package/version/ref/index.ts +2 -0
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const BlockingPolicyModelLocationDetection_1 = require("./enum/BlockingPolicyModelLocationDetection");
4
+ const BlockingPolicyModelAnonymousIpDetection_1 = require("./enum/BlockingPolicyModelAnonymousIpDetection");
5
+ const BlockingPolicyModelHostingProviderIpDetection_1 = require("./enum/BlockingPolicyModelHostingProviderIpDetection");
6
+ const BlockingPolicyModelReputationIpDetection_1 = require("./enum/BlockingPolicyModelReputationIpDetection");
7
+ const BlockingPolicyModelIpAddressesDetection_1 = require("./enum/BlockingPolicyModelIpAddressesDetection");
8
+ class BlockingPolicyModel {
9
+ constructor(passServices, defaultRestriction, locationDetection, anonymousIpDetection, hostingProviderIpDetection, reputationIpDetection, ipAddressesDetection, options = null) {
10
+ var _a, _b, _c, _d, _e, _f, _g;
11
+ this.locations = null;
12
+ this.locationRestriction = null;
13
+ this.anonymousIpRestriction = null;
14
+ this.hostingProviderIpRestriction = null;
15
+ this.reputationIpRestriction = null;
16
+ this.ipAddresses = null;
17
+ this.ipAddressRestriction = null;
18
+ this.passServices = passServices;
19
+ this.defaultRestriction = defaultRestriction;
20
+ this.locationDetection = locationDetection;
21
+ this.anonymousIpDetection = anonymousIpDetection;
22
+ this.hostingProviderIpDetection = hostingProviderIpDetection;
23
+ this.reputationIpDetection = reputationIpDetection;
24
+ this.ipAddressesDetection = ipAddressesDetection;
25
+ this.locations = (_a = options === null || options === void 0 ? void 0 : options.locations) !== null && _a !== void 0 ? _a : null;
26
+ this.locationRestriction = (_b = options === null || options === void 0 ? void 0 : options.locationRestriction) !== null && _b !== void 0 ? _b : null;
27
+ this.anonymousIpRestriction = (_c = options === null || options === void 0 ? void 0 : options.anonymousIpRestriction) !== null && _c !== void 0 ? _c : null;
28
+ this.hostingProviderIpRestriction = (_d = options === null || options === void 0 ? void 0 : options.hostingProviderIpRestriction) !== null && _d !== void 0 ? _d : null;
29
+ this.reputationIpRestriction = (_e = options === null || options === void 0 ? void 0 : options.reputationIpRestriction) !== null && _e !== void 0 ? _e : null;
30
+ this.ipAddresses = (_f = options === null || options === void 0 ? void 0 : options.ipAddresses) !== null && _f !== void 0 ? _f : null;
31
+ this.ipAddressRestriction = (_g = options === null || options === void 0 ? void 0 : options.ipAddressRestriction) !== null && _g !== void 0 ? _g : null;
32
+ }
33
+ static locationDetectionIsEnable(passServices, defaultRestriction, anonymousIpDetection, hostingProviderIpDetection, reputationIpDetection, ipAddressesDetection, locations, locationRestriction, options = null) {
34
+ return new BlockingPolicyModel(passServices, defaultRestriction, BlockingPolicyModelLocationDetection_1.BlockingPolicyModelLocationDetection.ENABLE, anonymousIpDetection, hostingProviderIpDetection, reputationIpDetection, ipAddressesDetection, {
35
+ locations: locations,
36
+ locationRestriction: locationRestriction,
37
+ ipAddresses: options === null || options === void 0 ? void 0 : options.ipAddresses,
38
+ });
39
+ }
40
+ static locationDetectionIsDisable(passServices, defaultRestriction, anonymousIpDetection, hostingProviderIpDetection, reputationIpDetection, ipAddressesDetection, options = null) {
41
+ return new BlockingPolicyModel(passServices, defaultRestriction, BlockingPolicyModelLocationDetection_1.BlockingPolicyModelLocationDetection.DISABLE, anonymousIpDetection, hostingProviderIpDetection, reputationIpDetection, ipAddressesDetection, {
42
+ ipAddresses: options === null || options === void 0 ? void 0 : options.ipAddresses,
43
+ });
44
+ }
45
+ static anonymousIpDetectionIsEnable(passServices, defaultRestriction, locationDetection, hostingProviderIpDetection, reputationIpDetection, ipAddressesDetection, anonymousIpRestriction, options = null) {
46
+ return new BlockingPolicyModel(passServices, defaultRestriction, locationDetection, BlockingPolicyModelAnonymousIpDetection_1.BlockingPolicyModelAnonymousIpDetection.ENABLE, hostingProviderIpDetection, reputationIpDetection, ipAddressesDetection, {
47
+ anonymousIpRestriction: anonymousIpRestriction,
48
+ ipAddresses: options === null || options === void 0 ? void 0 : options.ipAddresses,
49
+ });
50
+ }
51
+ static anonymousIpDetectionIsDisable(passServices, defaultRestriction, locationDetection, hostingProviderIpDetection, reputationIpDetection, ipAddressesDetection, options = null) {
52
+ return new BlockingPolicyModel(passServices, defaultRestriction, locationDetection, BlockingPolicyModelAnonymousIpDetection_1.BlockingPolicyModelAnonymousIpDetection.DISABLE, hostingProviderIpDetection, reputationIpDetection, ipAddressesDetection, {
53
+ ipAddresses: options === null || options === void 0 ? void 0 : options.ipAddresses,
54
+ });
55
+ }
56
+ static hostingProviderIpDetectionIsEnable(passServices, defaultRestriction, locationDetection, anonymousIpDetection, reputationIpDetection, ipAddressesDetection, hostingProviderIpRestriction, options = null) {
57
+ return new BlockingPolicyModel(passServices, defaultRestriction, locationDetection, anonymousIpDetection, BlockingPolicyModelHostingProviderIpDetection_1.BlockingPolicyModelHostingProviderIpDetection.ENABLE, reputationIpDetection, ipAddressesDetection, {
58
+ hostingProviderIpRestriction: hostingProviderIpRestriction,
59
+ ipAddresses: options === null || options === void 0 ? void 0 : options.ipAddresses,
60
+ });
61
+ }
62
+ static hostingProviderIpDetectionIsDisable(passServices, defaultRestriction, locationDetection, anonymousIpDetection, reputationIpDetection, ipAddressesDetection, options = null) {
63
+ return new BlockingPolicyModel(passServices, defaultRestriction, locationDetection, anonymousIpDetection, BlockingPolicyModelHostingProviderIpDetection_1.BlockingPolicyModelHostingProviderIpDetection.DISABLE, reputationIpDetection, ipAddressesDetection, {
64
+ ipAddresses: options === null || options === void 0 ? void 0 : options.ipAddresses,
65
+ });
66
+ }
67
+ static reputationIpDetectionIsEnable(passServices, defaultRestriction, locationDetection, anonymousIpDetection, hostingProviderIpDetection, ipAddressesDetection, reputationIpRestriction, options = null) {
68
+ return new BlockingPolicyModel(passServices, defaultRestriction, locationDetection, anonymousIpDetection, hostingProviderIpDetection, BlockingPolicyModelReputationIpDetection_1.BlockingPolicyModelReputationIpDetection.ENABLE, ipAddressesDetection, {
69
+ reputationIpRestriction: reputationIpRestriction,
70
+ ipAddresses: options === null || options === void 0 ? void 0 : options.ipAddresses,
71
+ });
72
+ }
73
+ static reputationIpDetectionIsDisable(passServices, defaultRestriction, locationDetection, anonymousIpDetection, hostingProviderIpDetection, ipAddressesDetection, options = null) {
74
+ return new BlockingPolicyModel(passServices, defaultRestriction, locationDetection, anonymousIpDetection, hostingProviderIpDetection, BlockingPolicyModelReputationIpDetection_1.BlockingPolicyModelReputationIpDetection.DISABLE, ipAddressesDetection, {
75
+ ipAddresses: options === null || options === void 0 ? void 0 : options.ipAddresses,
76
+ });
77
+ }
78
+ static ipAddressesDetectionIsEnable(passServices, defaultRestriction, locationDetection, anonymousIpDetection, hostingProviderIpDetection, reputationIpDetection, ipAddressRestriction, options = null) {
79
+ return new BlockingPolicyModel(passServices, defaultRestriction, locationDetection, anonymousIpDetection, hostingProviderIpDetection, reputationIpDetection, BlockingPolicyModelIpAddressesDetection_1.BlockingPolicyModelIpAddressesDetection.ENABLE, {
80
+ ipAddressRestriction: ipAddressRestriction,
81
+ ipAddresses: options === null || options === void 0 ? void 0 : options.ipAddresses,
82
+ });
83
+ }
84
+ static ipAddressesDetectionIsDisable(passServices, defaultRestriction, locationDetection, anonymousIpDetection, hostingProviderIpDetection, reputationIpDetection, options = null) {
85
+ return new BlockingPolicyModel(passServices, defaultRestriction, locationDetection, anonymousIpDetection, hostingProviderIpDetection, reputationIpDetection, BlockingPolicyModelIpAddressesDetection_1.BlockingPolicyModelIpAddressesDetection.DISABLE, {
86
+ ipAddresses: options === null || options === void 0 ? void 0 : options.ipAddresses,
87
+ });
88
+ }
89
+ properties() {
90
+ let properties = {};
91
+ if (this.passServices != null) {
92
+ properties["passServices"] = this.passServices;
93
+ }
94
+ if (this.defaultRestriction != null) {
95
+ properties["defaultRestriction"] = this.defaultRestriction;
96
+ }
97
+ if (this.locationDetection != null) {
98
+ properties["locationDetection"] = this.locationDetection;
99
+ }
100
+ if (this.locations != null) {
101
+ properties["locations"] = this.locations;
102
+ }
103
+ if (this.locationRestriction != null) {
104
+ properties["locationRestriction"] = this.locationRestriction;
105
+ }
106
+ if (this.anonymousIpDetection != null) {
107
+ properties["anonymousIpDetection"] = this.anonymousIpDetection;
108
+ }
109
+ if (this.anonymousIpRestriction != null) {
110
+ properties["anonymousIpRestriction"] = this.anonymousIpRestriction;
111
+ }
112
+ if (this.hostingProviderIpDetection != null) {
113
+ properties["hostingProviderIpDetection"] = this.hostingProviderIpDetection;
114
+ }
115
+ if (this.hostingProviderIpRestriction != null) {
116
+ properties["hostingProviderIpRestriction"] = this.hostingProviderIpRestriction;
117
+ }
118
+ if (this.reputationIpDetection != null) {
119
+ properties["reputationIpDetection"] = this.reputationIpDetection;
120
+ }
121
+ if (this.reputationIpRestriction != null) {
122
+ properties["reputationIpRestriction"] = this.reputationIpRestriction;
123
+ }
124
+ if (this.ipAddressesDetection != null) {
125
+ properties["ipAddressesDetection"] = this.ipAddressesDetection;
126
+ }
127
+ if (this.ipAddresses != null) {
128
+ properties["ipAddresses"] = this.ipAddresses;
129
+ }
130
+ if (this.ipAddressRestriction != null) {
131
+ properties["ipAddressRestriction"] = this.ipAddressRestriction;
132
+ }
133
+ return properties;
134
+ }
135
+ }
136
+ exports.default = BlockingPolicyModel;
137
+ //# sourceMappingURL=BlockingPolicyModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockingPolicyModel.js","sourceRoot":"","sources":["BlockingPolicyModel.ts"],"names":[],"mappings":";;AA2BA,sGAAmG;AAEnG,4GAAyG;AAEzG,wHAAqH;AAErH,8GAA2G;AAE3G,4GAAyG;AAGzG,MAAqB,mBAAmB;IAgBpC,YACI,YAAsB,EACtB,kBAAyD,EACzD,iBAAuD,EACvD,oBAA6D,EAC7D,0BAAyE,EACzE,qBAA+D,EAC/D,oBAA6D,EAC7D,UAA2C,IAAI;;QAhBlC,cAAS,GAAkB,IAAI,CAAC;QAChC,wBAAmB,GAAgD,IAAI,CAAC;QACxE,2BAAsB,GAAmD,IAAI,CAAC;QAC9E,iCAA4B,GAAyD,IAAI,CAAC;QAC1F,4BAAuB,GAAoD,IAAI,CAAC;QAChF,gBAAW,GAAkB,IAAI,CAAC;QAClC,yBAAoB,GAAiD,IAAI,CAAC;QAYvF,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CA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AAuB,IAAI,IAAI,EAAE;YACtC,UAAU,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC,uBAAuB,CAAC;SACxE;QACD,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE;YACnC,UAAU,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC;SAClE;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE;YACnC,UAAU,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC;SAClE;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA7UD,sCA6UC"}
@@ -0,0 +1,372 @@
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
+ import { BlockingPolicyModelOptions } from "./options/BlockingPolicyModelOptions";
17
+ import { BlockingPolicyModelLocationDetectionIsEnableOptions } from "./options/BlockingPolicyModelLocationDetectionIsEnableOptions";
18
+ import { BlockingPolicyModelLocationDetectionIsDisableOptions } from "./options/BlockingPolicyModelLocationDetectionIsDisableOptions";
19
+ import { BlockingPolicyModelAnonymousIpDetectionIsEnableOptions } from "./options/BlockingPolicyModelAnonymousIpDetectionIsEnableOptions";
20
+ import { BlockingPolicyModelAnonymousIpDetectionIsDisableOptions } from "./options/BlockingPolicyModelAnonymousIpDetectionIsDisableOptions";
21
+ import { BlockingPolicyModelHostingProviderIpDetectionIsEnableOptions } from "./options/BlockingPolicyModelHostingProviderIpDetectionIsEnableOptions";
22
+ import { BlockingPolicyModelHostingProviderIpDetectionIsDisableOptions } from "./options/BlockingPolicyModelHostingProviderIpDetectionIsDisableOptions";
23
+ import { BlockingPolicyModelReputationIpDetectionIsEnableOptions } from "./options/BlockingPolicyModelReputationIpDetectionIsEnableOptions";
24
+ import { BlockingPolicyModelReputationIpDetectionIsDisableOptions } from "./options/BlockingPolicyModelReputationIpDetectionIsDisableOptions";
25
+ import { BlockingPolicyModelIpAddressesDetectionIsEnableOptions } from "./options/BlockingPolicyModelIpAddressesDetectionIsEnableOptions";
26
+ import { BlockingPolicyModelIpAddressesDetectionIsDisableOptions } from "./options/BlockingPolicyModelIpAddressesDetectionIsDisableOptions";
27
+ import { BlockingPolicyModelDefaultRestriction } from "./enum/BlockingPolicyModelDefaultRestriction";
28
+ import { BlockingPolicyModelLocationDetection } from "./enum/BlockingPolicyModelLocationDetection";
29
+ import { BlockingPolicyModelLocationRestriction } from "./enum/BlockingPolicyModelLocationRestriction";
30
+ import { BlockingPolicyModelAnonymousIpDetection } from "./enum/BlockingPolicyModelAnonymousIpDetection";
31
+ import { BlockingPolicyModelAnonymousIpRestriction } from "./enum/BlockingPolicyModelAnonymousIpRestriction";
32
+ import { BlockingPolicyModelHostingProviderIpDetection } from "./enum/BlockingPolicyModelHostingProviderIpDetection";
33
+ import { BlockingPolicyModelHostingProviderIpRestriction } from "./enum/BlockingPolicyModelHostingProviderIpRestriction";
34
+ import { BlockingPolicyModelReputationIpDetection } from "./enum/BlockingPolicyModelReputationIpDetection";
35
+ import { BlockingPolicyModelReputationIpRestriction } from "./enum/BlockingPolicyModelReputationIpRestriction";
36
+ import { BlockingPolicyModelIpAddressesDetection } from "./enum/BlockingPolicyModelIpAddressesDetection";
37
+ import { BlockingPolicyModelIpAddressRestriction } from "./enum/BlockingPolicyModelIpAddressRestriction";
38
+
39
+ export default class BlockingPolicyModel {
40
+ private readonly passServices: string[];
41
+ private readonly defaultRestriction: BlockingPolicyModelDefaultRestriction;
42
+ private readonly locationDetection: BlockingPolicyModelLocationDetection;
43
+ private readonly anonymousIpDetection: BlockingPolicyModelAnonymousIpDetection;
44
+ private readonly hostingProviderIpDetection: BlockingPolicyModelHostingProviderIpDetection;
45
+ private readonly reputationIpDetection: BlockingPolicyModelReputationIpDetection;
46
+ private readonly ipAddressesDetection: BlockingPolicyModelIpAddressesDetection;
47
+ private readonly locations: string[]|null = null;
48
+ private readonly locationRestriction: BlockingPolicyModelLocationRestriction|null = null;
49
+ private readonly anonymousIpRestriction: BlockingPolicyModelAnonymousIpRestriction|null = null;
50
+ private readonly hostingProviderIpRestriction: BlockingPolicyModelHostingProviderIpRestriction|null = null;
51
+ private readonly reputationIpRestriction: BlockingPolicyModelReputationIpRestriction|null = null;
52
+ private readonly ipAddresses: string[]|null = null;
53
+ private readonly ipAddressRestriction: BlockingPolicyModelIpAddressRestriction|null = null;
54
+
55
+ public constructor(
56
+ passServices: string[],
57
+ defaultRestriction: BlockingPolicyModelDefaultRestriction,
58
+ locationDetection: BlockingPolicyModelLocationDetection,
59
+ anonymousIpDetection: BlockingPolicyModelAnonymousIpDetection,
60
+ hostingProviderIpDetection: BlockingPolicyModelHostingProviderIpDetection,
61
+ reputationIpDetection: BlockingPolicyModelReputationIpDetection,
62
+ ipAddressesDetection: BlockingPolicyModelIpAddressesDetection,
63
+ options: BlockingPolicyModelOptions|null = null,
64
+ ) {
65
+ this.passServices = passServices;
66
+ this.defaultRestriction = defaultRestriction;
67
+ this.locationDetection = locationDetection;
68
+ this.anonymousIpDetection = anonymousIpDetection;
69
+ this.hostingProviderIpDetection = hostingProviderIpDetection;
70
+ this.reputationIpDetection = reputationIpDetection;
71
+ this.ipAddressesDetection = ipAddressesDetection;
72
+ this.locations = options?.locations ?? null;
73
+ this.locationRestriction = options?.locationRestriction ?? null;
74
+ this.anonymousIpRestriction = options?.anonymousIpRestriction ?? null;
75
+ this.hostingProviderIpRestriction = options?.hostingProviderIpRestriction ?? null;
76
+ this.reputationIpRestriction = options?.reputationIpRestriction ?? null;
77
+ this.ipAddresses = options?.ipAddresses ?? null;
78
+ this.ipAddressRestriction = options?.ipAddressRestriction ?? null;
79
+ }
80
+
81
+ public static locationDetectionIsEnable(
82
+ passServices: string[],
83
+ defaultRestriction: BlockingPolicyModelDefaultRestriction,
84
+ anonymousIpDetection: BlockingPolicyModelAnonymousIpDetection,
85
+ hostingProviderIpDetection: BlockingPolicyModelHostingProviderIpDetection,
86
+ reputationIpDetection: BlockingPolicyModelReputationIpDetection,
87
+ ipAddressesDetection: BlockingPolicyModelIpAddressesDetection,
88
+ locations: string[],
89
+ locationRestriction: BlockingPolicyModelLocationRestriction,
90
+ options: BlockingPolicyModelLocationDetectionIsEnableOptions|null = null,
91
+ ): BlockingPolicyModel {
92
+ return new BlockingPolicyModel(
93
+ passServices,
94
+ defaultRestriction,
95
+ BlockingPolicyModelLocationDetection.ENABLE,
96
+ anonymousIpDetection,
97
+ hostingProviderIpDetection,
98
+ reputationIpDetection,
99
+ ipAddressesDetection,
100
+ {
101
+ locations: locations,
102
+ locationRestriction: locationRestriction,
103
+ ipAddresses: options?.ipAddresses,
104
+ },
105
+ );
106
+ }
107
+
108
+ public static locationDetectionIsDisable(
109
+ passServices: string[],
110
+ defaultRestriction: BlockingPolicyModelDefaultRestriction,
111
+ anonymousIpDetection: BlockingPolicyModelAnonymousIpDetection,
112
+ hostingProviderIpDetection: BlockingPolicyModelHostingProviderIpDetection,
113
+ reputationIpDetection: BlockingPolicyModelReputationIpDetection,
114
+ ipAddressesDetection: BlockingPolicyModelIpAddressesDetection,
115
+ options: BlockingPolicyModelLocationDetectionIsDisableOptions|null = null,
116
+ ): BlockingPolicyModel {
117
+ return new BlockingPolicyModel(
118
+ passServices,
119
+ defaultRestriction,
120
+ BlockingPolicyModelLocationDetection.DISABLE,
121
+ anonymousIpDetection,
122
+ hostingProviderIpDetection,
123
+ reputationIpDetection,
124
+ ipAddressesDetection,
125
+ {
126
+ ipAddresses: options?.ipAddresses,
127
+ },
128
+ );
129
+ }
130
+
131
+ public static anonymousIpDetectionIsEnable(
132
+ passServices: string[],
133
+ defaultRestriction: BlockingPolicyModelDefaultRestriction,
134
+ locationDetection: BlockingPolicyModelLocationDetection,
135
+ hostingProviderIpDetection: BlockingPolicyModelHostingProviderIpDetection,
136
+ reputationIpDetection: BlockingPolicyModelReputationIpDetection,
137
+ ipAddressesDetection: BlockingPolicyModelIpAddressesDetection,
138
+ anonymousIpRestriction: BlockingPolicyModelAnonymousIpRestriction,
139
+ options: BlockingPolicyModelAnonymousIpDetectionIsEnableOptions|null = null,
140
+ ): BlockingPolicyModel {
141
+ return new BlockingPolicyModel(
142
+ passServices,
143
+ defaultRestriction,
144
+ locationDetection,
145
+ BlockingPolicyModelAnonymousIpDetection.ENABLE,
146
+ hostingProviderIpDetection,
147
+ reputationIpDetection,
148
+ ipAddressesDetection,
149
+ {
150
+ anonymousIpRestriction: anonymousIpRestriction,
151
+ ipAddresses: options?.ipAddresses,
152
+ },
153
+ );
154
+ }
155
+
156
+ public static anonymousIpDetectionIsDisable(
157
+ passServices: string[],
158
+ defaultRestriction: BlockingPolicyModelDefaultRestriction,
159
+ locationDetection: BlockingPolicyModelLocationDetection,
160
+ hostingProviderIpDetection: BlockingPolicyModelHostingProviderIpDetection,
161
+ reputationIpDetection: BlockingPolicyModelReputationIpDetection,
162
+ ipAddressesDetection: BlockingPolicyModelIpAddressesDetection,
163
+ options: BlockingPolicyModelAnonymousIpDetectionIsDisableOptions|null = null,
164
+ ): BlockingPolicyModel {
165
+ return new BlockingPolicyModel(
166
+ passServices,
167
+ defaultRestriction,
168
+ locationDetection,
169
+ BlockingPolicyModelAnonymousIpDetection.DISABLE,
170
+ hostingProviderIpDetection,
171
+ reputationIpDetection,
172
+ ipAddressesDetection,
173
+ {
174
+ ipAddresses: options?.ipAddresses,
175
+ },
176
+ );
177
+ }
178
+
179
+ public static hostingProviderIpDetectionIsEnable(
180
+ passServices: string[],
181
+ defaultRestriction: BlockingPolicyModelDefaultRestriction,
182
+ locationDetection: BlockingPolicyModelLocationDetection,
183
+ anonymousIpDetection: BlockingPolicyModelAnonymousIpDetection,
184
+ reputationIpDetection: BlockingPolicyModelReputationIpDetection,
185
+ ipAddressesDetection: BlockingPolicyModelIpAddressesDetection,
186
+ hostingProviderIpRestriction: BlockingPolicyModelHostingProviderIpRestriction,
187
+ options: BlockingPolicyModelHostingProviderIpDetectionIsEnableOptions|null = null,
188
+ ): BlockingPolicyModel {
189
+ return new BlockingPolicyModel(
190
+ passServices,
191
+ defaultRestriction,
192
+ locationDetection,
193
+ anonymousIpDetection,
194
+ BlockingPolicyModelHostingProviderIpDetection.ENABLE,
195
+ reputationIpDetection,
196
+ ipAddressesDetection,
197
+ {
198
+ hostingProviderIpRestriction: hostingProviderIpRestriction,
199
+ ipAddresses: options?.ipAddresses,
200
+ },
201
+ );
202
+ }
203
+
204
+ public static hostingProviderIpDetectionIsDisable(
205
+ passServices: string[],
206
+ defaultRestriction: BlockingPolicyModelDefaultRestriction,
207
+ locationDetection: BlockingPolicyModelLocationDetection,
208
+ anonymousIpDetection: BlockingPolicyModelAnonymousIpDetection,
209
+ reputationIpDetection: BlockingPolicyModelReputationIpDetection,
210
+ ipAddressesDetection: BlockingPolicyModelIpAddressesDetection,
211
+ options: BlockingPolicyModelHostingProviderIpDetectionIsDisableOptions|null = null,
212
+ ): BlockingPolicyModel {
213
+ return new BlockingPolicyModel(
214
+ passServices,
215
+ defaultRestriction,
216
+ locationDetection,
217
+ anonymousIpDetection,
218
+ BlockingPolicyModelHostingProviderIpDetection.DISABLE,
219
+ reputationIpDetection,
220
+ ipAddressesDetection,
221
+ {
222
+ ipAddresses: options?.ipAddresses,
223
+ },
224
+ );
225
+ }
226
+
227
+ public static reputationIpDetectionIsEnable(
228
+ passServices: string[],
229
+ defaultRestriction: BlockingPolicyModelDefaultRestriction,
230
+ locationDetection: BlockingPolicyModelLocationDetection,
231
+ anonymousIpDetection: BlockingPolicyModelAnonymousIpDetection,
232
+ hostingProviderIpDetection: BlockingPolicyModelHostingProviderIpDetection,
233
+ ipAddressesDetection: BlockingPolicyModelIpAddressesDetection,
234
+ reputationIpRestriction: BlockingPolicyModelReputationIpRestriction,
235
+ options: BlockingPolicyModelReputationIpDetectionIsEnableOptions|null = null,
236
+ ): BlockingPolicyModel {
237
+ return new BlockingPolicyModel(
238
+ passServices,
239
+ defaultRestriction,
240
+ locationDetection,
241
+ anonymousIpDetection,
242
+ hostingProviderIpDetection,
243
+ BlockingPolicyModelReputationIpDetection.ENABLE,
244
+ ipAddressesDetection,
245
+ {
246
+ reputationIpRestriction: reputationIpRestriction,
247
+ ipAddresses: options?.ipAddresses,
248
+ },
249
+ );
250
+ }
251
+
252
+ public static reputationIpDetectionIsDisable(
253
+ passServices: string[],
254
+ defaultRestriction: BlockingPolicyModelDefaultRestriction,
255
+ locationDetection: BlockingPolicyModelLocationDetection,
256
+ anonymousIpDetection: BlockingPolicyModelAnonymousIpDetection,
257
+ hostingProviderIpDetection: BlockingPolicyModelHostingProviderIpDetection,
258
+ ipAddressesDetection: BlockingPolicyModelIpAddressesDetection,
259
+ options: BlockingPolicyModelReputationIpDetectionIsDisableOptions|null = null,
260
+ ): BlockingPolicyModel {
261
+ return new BlockingPolicyModel(
262
+ passServices,
263
+ defaultRestriction,
264
+ locationDetection,
265
+ anonymousIpDetection,
266
+ hostingProviderIpDetection,
267
+ BlockingPolicyModelReputationIpDetection.DISABLE,
268
+ ipAddressesDetection,
269
+ {
270
+ ipAddresses: options?.ipAddresses,
271
+ },
272
+ );
273
+ }
274
+
275
+ public static ipAddressesDetectionIsEnable(
276
+ passServices: string[],
277
+ defaultRestriction: BlockingPolicyModelDefaultRestriction,
278
+ locationDetection: BlockingPolicyModelLocationDetection,
279
+ anonymousIpDetection: BlockingPolicyModelAnonymousIpDetection,
280
+ hostingProviderIpDetection: BlockingPolicyModelHostingProviderIpDetection,
281
+ reputationIpDetection: BlockingPolicyModelReputationIpDetection,
282
+ ipAddressRestriction: BlockingPolicyModelIpAddressRestriction,
283
+ options: BlockingPolicyModelIpAddressesDetectionIsEnableOptions|null = null,
284
+ ): BlockingPolicyModel {
285
+ return new BlockingPolicyModel(
286
+ passServices,
287
+ defaultRestriction,
288
+ locationDetection,
289
+ anonymousIpDetection,
290
+ hostingProviderIpDetection,
291
+ reputationIpDetection,
292
+ BlockingPolicyModelIpAddressesDetection.ENABLE,
293
+ {
294
+ ipAddressRestriction: ipAddressRestriction,
295
+ ipAddresses: options?.ipAddresses,
296
+ },
297
+ );
298
+ }
299
+
300
+ public static ipAddressesDetectionIsDisable(
301
+ passServices: string[],
302
+ defaultRestriction: BlockingPolicyModelDefaultRestriction,
303
+ locationDetection: BlockingPolicyModelLocationDetection,
304
+ anonymousIpDetection: BlockingPolicyModelAnonymousIpDetection,
305
+ hostingProviderIpDetection: BlockingPolicyModelHostingProviderIpDetection,
306
+ reputationIpDetection: BlockingPolicyModelReputationIpDetection,
307
+ options: BlockingPolicyModelIpAddressesDetectionIsDisableOptions|null = null,
308
+ ): BlockingPolicyModel {
309
+ return new BlockingPolicyModel(
310
+ passServices,
311
+ defaultRestriction,
312
+ locationDetection,
313
+ anonymousIpDetection,
314
+ hostingProviderIpDetection,
315
+ reputationIpDetection,
316
+ BlockingPolicyModelIpAddressesDetection.DISABLE,
317
+ {
318
+ ipAddresses: options?.ipAddresses,
319
+ },
320
+ );
321
+ }
322
+
323
+ public properties(
324
+ ): {[name: string]: any} {
325
+ let properties: {[name: string]: any} = {};
326
+
327
+ if (this.passServices != null) {
328
+ properties["passServices"] = this.passServices;
329
+ }
330
+ if (this.defaultRestriction != null) {
331
+ properties["defaultRestriction"] = this.defaultRestriction;
332
+ }
333
+ if (this.locationDetection != null) {
334
+ properties["locationDetection"] = this.locationDetection;
335
+ }
336
+ if (this.locations != null) {
337
+ properties["locations"] = this.locations;
338
+ }
339
+ if (this.locationRestriction != null) {
340
+ properties["locationRestriction"] = this.locationRestriction;
341
+ }
342
+ if (this.anonymousIpDetection != null) {
343
+ properties["anonymousIpDetection"] = this.anonymousIpDetection;
344
+ }
345
+ if (this.anonymousIpRestriction != null) {
346
+ properties["anonymousIpRestriction"] = this.anonymousIpRestriction;
347
+ }
348
+ if (this.hostingProviderIpDetection != null) {
349
+ properties["hostingProviderIpDetection"] = this.hostingProviderIpDetection;
350
+ }
351
+ if (this.hostingProviderIpRestriction != null) {
352
+ properties["hostingProviderIpRestriction"] = this.hostingProviderIpRestriction;
353
+ }
354
+ if (this.reputationIpDetection != null) {
355
+ properties["reputationIpDetection"] = this.reputationIpDetection;
356
+ }
357
+ if (this.reputationIpRestriction != null) {
358
+ properties["reputationIpRestriction"] = this.reputationIpRestriction;
359
+ }
360
+ if (this.ipAddressesDetection != null) {
361
+ properties["ipAddressesDetection"] = this.ipAddressesDetection;
362
+ }
363
+ if (this.ipAddresses != null) {
364
+ properties["ipAddresses"] = this.ipAddresses;
365
+ }
366
+ if (this.ipAddressRestriction != null) {
367
+ properties["ipAddressRestriction"] = this.ipAddressRestriction;
368
+ }
369
+
370
+ return properties;
371
+ }
372
+ }
@@ -0,0 +1,19 @@
1
+ import { CdkResource, Stack } from "../../core/model";
2
+ import { GetAttr } from "../../core/func";
3
+ import BlockingPolicyModel from "./BlockingPolicyModel";
4
+ import NamespaceRef from "../ref/NamespaceRef";
5
+ import { NamespaceOptions } from "./options/NamespaceOptions";
6
+ export default class Namespace extends CdkResource {
7
+ private readonly stack;
8
+ private readonly name;
9
+ private readonly blockingPolicy;
10
+ private readonly description;
11
+ constructor(stack: Stack, name: string, blockingPolicy: BlockingPolicyModel, options?: NamespaceOptions | null);
12
+ alternateKeys(): string;
13
+ resourceType(): string;
14
+ properties(): {
15
+ [name: string]: any;
16
+ };
17
+ ref(): NamespaceRef;
18
+ getAttrNamespaceId(): GetAttr;
19
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const tslib_1 = require("tslib");
19
+ const model_1 = require("../../core/model");
20
+ const func_1 = require("../../core/func");
21
+ const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
22
+ class Namespace extends model_1.CdkResource {
23
+ constructor(stack, name, blockingPolicy, options = null) {
24
+ var _a;
25
+ super("Guard_Namespace_" + name);
26
+ this.description = null;
27
+ this.stack = stack;
28
+ this.name = name;
29
+ this.blockingPolicy = blockingPolicy;
30
+ this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
31
+ stack.addResource(this);
32
+ }
33
+ alternateKeys() {
34
+ return "name";
35
+ }
36
+ resourceType() {
37
+ return "GS2::Guard::Namespace";
38
+ }
39
+ properties() {
40
+ var _a;
41
+ let properties = {};
42
+ if (this.name != null) {
43
+ properties["Name"] = this.name;
44
+ }
45
+ if (this.description != null) {
46
+ properties["Description"] = this.description;
47
+ }
48
+ if (this.blockingPolicy != null) {
49
+ properties["BlockingPolicy"] = (_a = this.blockingPolicy) === null || _a === void 0 ? void 0 : _a.properties();
50
+ }
51
+ return properties;
52
+ }
53
+ ref() {
54
+ return new NamespaceRef_1.default(this.name);
55
+ }
56
+ getAttrNamespaceId() {
57
+ return new func_1.GetAttr(this, "Item.NamespaceId", null);
58
+ }
59
+ }
60
+ exports.default = Namespace;
61
+ //# sourceMappingURL=Namespace.js.map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