@xmobitea/gn-typescript-client 2.6.13-tsc → 2.6.14

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 (400) hide show
  1. package/AGENTS.md +37 -0
  2. package/README.MD +420 -1
  3. package/dist/gearn.js.client.js +71354 -0
  4. package/dist/gearn.js.client.min.js +2 -0
  5. package/dist/gearn.js.client.min.js.LICENSE.txt +14 -0
  6. package/dist/index.d.ts +30 -0
  7. package/dist/index.js +58386 -339
  8. package/dist/runtime/GNNetwork.d.ts +687 -3
  9. package/dist/runtime/GNNetworkAuthenticateApi.d.ts +327 -0
  10. package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +1026 -0
  11. package/dist/runtime/GNNetworkCloudScriptApi.d.ts +141 -0
  12. package/dist/runtime/GNNetworkContentApi.d.ts +243 -0
  13. package/dist/runtime/GNNetworkDashboardApi.d.ts +221 -0
  14. package/dist/runtime/GNNetworkGamePlayerApi.d.ts +1033 -0
  15. package/dist/runtime/GNNetworkGroupApi.d.ts +783 -0
  16. package/dist/runtime/GNNetworkInventoryApi.d.ts +673 -0
  17. package/dist/runtime/GNNetworkMasterPlayerApi.d.ts +1614 -6
  18. package/dist/runtime/GNNetworkMultiplayerApi.d.ts +234 -0
  19. package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +309 -0
  20. package/dist/runtime/common/Action0.d.ts +30 -0
  21. package/dist/runtime/common/Action1.d.ts +32 -0
  22. package/dist/runtime/common/Action2.d.ts +21 -0
  23. package/dist/runtime/common/Action3.d.ts +16 -0
  24. package/dist/runtime/common/Action4.d.ts +17 -0
  25. package/dist/runtime/common/GNData.d.ts +368 -0
  26. package/dist/runtime/config/GNServerSettings.d.ts +442 -12
  27. package/dist/runtime/constant/Commands.d.ts +80 -0
  28. package/dist/runtime/constant/EventCode.d.ts +48 -0
  29. package/dist/runtime/constant/OperationCode.d.ts +74 -1
  30. package/dist/runtime/constant/ReturnCode.d.ts +72 -0
  31. package/dist/runtime/constant/enumType/ExecuteResponseStatus.d.ts +31 -0
  32. package/dist/runtime/constant/enumType/FriendStatus.d.ts +39 -0
  33. package/dist/runtime/constant/enumType/GoogleLoginType.d.ts +23 -0
  34. package/dist/runtime/constant/enumType/GroupStatus.d.ts +32 -0
  35. package/dist/runtime/constant/enumType/InvalidMemberType.d.ts +75 -0
  36. package/dist/runtime/constant/enumType/ItemType.d.ts +23 -0
  37. package/dist/runtime/constant/enumType/MatchStatus.d.ts +30 -0
  38. package/dist/runtime/constant/enumType/MatchmakingMemberStatus.d.ts +24 -0
  39. package/dist/runtime/constant/enumType/MatchmakingTicketStatus.d.ts +34 -0
  40. package/dist/runtime/constant/enumType/OwnerType.d.ts +40 -0
  41. package/dist/runtime/constant/enumType/PermissionDataItem.d.ts +22 -0
  42. package/dist/runtime/constant/enumType/PushPlatformType.d.ts +18 -0
  43. package/dist/runtime/constant/enumType/RequestRole.d.ts +32 -0
  44. package/dist/runtime/constant/enumType/RequestType.d.ts +70 -0
  45. package/dist/runtime/constant/enumType/StoreItemType.d.ts +21 -0
  46. package/dist/runtime/constant/enumType/StoreReceiveType.d.ts +30 -0
  47. package/dist/runtime/constant/errorCode/ErrorCode.d.ts +190 -8
  48. package/dist/runtime/constant/parameterCode/ParameterCode.d.ts +35 -5
  49. package/dist/runtime/entity/DataMember.d.ts +338 -0
  50. package/dist/runtime/entity/GNMetadata.d.ts +101 -0
  51. package/dist/runtime/entity/InvalidMember.d.ts +28 -0
  52. package/dist/runtime/entity/OperationEvent.d.ts +49 -0
  53. package/dist/runtime/entity/OperationRequest.d.ts +108 -0
  54. package/dist/runtime/entity/OperationResponse.d.ts +110 -0
  55. package/dist/runtime/entity/models/AuthenticateModels.d.ts +115 -0
  56. package/dist/runtime/entity/models/AuthenticateRequestModels.d.ts +131 -0
  57. package/dist/runtime/entity/models/AuthenticateResponseModels.d.ts +131 -0
  58. package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +625 -1
  59. package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +972 -0
  60. package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +332 -0
  61. package/dist/runtime/entity/models/CloudScriptModels.d.ts +109 -0
  62. package/dist/runtime/entity/models/CloudScriptRequestModels.d.ts +107 -0
  63. package/dist/runtime/entity/models/CloudScriptResponseModels.d.ts +46 -0
  64. package/dist/runtime/entity/models/ContentModels.d.ts +124 -0
  65. package/dist/runtime/entity/models/ContentRequestModels.d.ts +152 -0
  66. package/dist/runtime/entity/models/ContentResponseModels.d.ts +58 -0
  67. package/dist/runtime/entity/models/DashboardModels.d.ts +371 -8
  68. package/dist/runtime/entity/models/DashboardRequestModels.d.ts +172 -0
  69. package/dist/runtime/entity/models/DashboardResponseModels.d.ts +170 -0
  70. package/dist/runtime/entity/models/GamePlayerModels.d.ts +644 -1
  71. package/dist/runtime/entity/models/GamePlayerRequestModels.d.ts +959 -0
  72. package/dist/runtime/entity/models/GamePlayerResponseModels.d.ts +333 -1
  73. package/dist/runtime/entity/models/GenericModels.d.ts +94 -0
  74. package/dist/runtime/entity/models/GroupModels.d.ts +484 -2
  75. package/dist/runtime/entity/models/GroupRequestModels.d.ts +737 -0
  76. package/dist/runtime/entity/models/GroupResponseModels.d.ts +254 -0
  77. package/dist/runtime/entity/models/InventoryModels.d.ts +415 -0
  78. package/dist/runtime/entity/models/InventoryRequestModels.d.ts +629 -0
  79. package/dist/runtime/entity/models/InventoryResponseModels.d.ts +218 -0
  80. package/dist/runtime/entity/models/MasterPlayerModels.d.ts +1065 -3
  81. package/dist/runtime/entity/models/MasterPlayerRequestModels.d.ts +1560 -6
  82. package/dist/runtime/entity/models/MasterPlayerResponseModels.d.ts +532 -1
  83. package/dist/runtime/entity/models/MultiplayerModels.d.ts +199 -0
  84. package/dist/runtime/entity/models/MultiplayerRequestModels.d.ts +196 -0
  85. package/dist/runtime/entity/models/MultiplayerResponseModels.d.ts +74 -0
  86. package/dist/runtime/entity/models/StoreInventoryModels.d.ts +262 -0
  87. package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +268 -0
  88. package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +98 -0
  89. package/dist/runtime/entity/request/CustomOperationRequest.d.ts +99 -0
  90. package/dist/runtime/entity/response/CustomOperationResponse.d.ts +118 -0
  91. package/dist/runtime/entity/response/GetAuthInfoResponse.d.ts +53 -0
  92. package/dist/runtime/entity/response/HealthCheckResponse.d.ts +56 -0
  93. package/dist/runtime/entity/response/UploadFileResponse.d.ts +19 -0
  94. package/dist/runtime/helper/CodeHelper.d.ts +122 -0
  95. package/dist/runtime/helper/ConverterService.d.ts +74 -0
  96. package/dist/runtime/helper/EnumUtility.d.ts +63 -0
  97. package/dist/runtime/helper/GNSupport.d.ts +64 -4
  98. package/dist/runtime/helper/GNUtils.d.ts +54 -0
  99. package/dist/runtime/helper/MessagePackConverterService.d.ts +48 -0
  100. package/dist/runtime/helper/OperationHelper.d.ts +51 -0
  101. package/dist/runtime/helper/StorageService.d.ts +48 -8
  102. package/dist/runtime/logger/GNDebug.d.ts +117 -0
  103. package/dist/runtime/networking/AuthenticateStatus.d.ts +64 -0
  104. package/dist/runtime/networking/IPeer.d.ts +83 -0
  105. package/dist/runtime/networking/NetworkingPeer.d.ts +256 -1
  106. package/dist/runtime/networking/OperationPending.d.ts +112 -0
  107. package/dist/runtime/networking/PeerBase.d.ts +231 -0
  108. package/dist/runtime/networking/handler/IServerEventHandler.d.ts +84 -0
  109. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.d.ts +69 -0
  110. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.d.ts +49 -0
  111. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.d.ts +50 -0
  112. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.d.ts +41 -0
  113. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.d.ts +47 -0
  114. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.d.ts +46 -0
  115. package/dist/runtime/networking/http/HttpPeer.d.ts +173 -0
  116. package/dist/runtime/networking/http/NetworkingHttpPeerBase.d.ts +87 -0
  117. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.d.ts +113 -0
  118. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +145 -0
  119. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.d.ts +198 -0
  120. package/dist/runtime/networking/socket/SocketPeer.d.ts +155 -0
  121. package/dist/runtime/typescript/ServiceUpdate.d.ts +46 -0
  122. package/docs/AI_CHEATSHEET.md +211 -0
  123. package/docs/COOKBOOK.md +912 -0
  124. package/docs/RULES.md +307 -0
  125. package/docs/ai-manifest.json +725 -0
  126. package/docs/guides/AUTHENTICATE.md +246 -0
  127. package/docs/guides/CHARACTER_PLAYER.md +439 -0
  128. package/docs/guides/CLOUDSCRIPT.md +335 -0
  129. package/docs/guides/COCOS_CREATOR_INTEGRATION.md +150 -0
  130. package/docs/guides/CONTENT.md +291 -0
  131. package/docs/guides/DASHBOARD.md +262 -0
  132. package/docs/guides/GAME_PLAYER.md +473 -0
  133. package/docs/guides/GROUP.md +412 -0
  134. package/docs/guides/INVENTORY.md +375 -0
  135. package/docs/guides/MASTER_PLAYER.md +458 -0
  136. package/docs/guides/MULTIPLAYER.md +303 -0
  137. package/docs/guides/STORE_INVENTORY.md +313 -0
  138. package/docs/llms-full.txt +43 -0
  139. package/docs/reference/API_AUTHENTICATE.md +75 -0
  140. package/docs/reference/API_CHARACTER_PLAYER.md +226 -0
  141. package/docs/reference/API_CLOUDSCRIPT.md +82 -0
  142. package/docs/reference/API_CONTENT.md +88 -0
  143. package/docs/reference/API_DASHBOARD.md +82 -0
  144. package/docs/reference/API_GAME_PLAYER.md +223 -0
  145. package/docs/reference/API_GROUP.md +187 -0
  146. package/docs/reference/API_INDEX.md +57 -0
  147. package/docs/reference/API_INVENTORY.md +169 -0
  148. package/docs/reference/API_MASTER_PLAYER.md +323 -0
  149. package/docs/reference/API_MULTIPLAYER.md +97 -0
  150. package/docs/reference/API_STORE_INVENTORY.md +109 -0
  151. package/docs/reference/CONFIG.md +107 -0
  152. package/docs/reference/DTO_INDEX.md +2543 -0
  153. package/docs/reference/ENUMS.md +433 -0
  154. package/docs/reference/ERROR_HANDLING.md +159 -0
  155. package/docs/reference/EVENTS.md +188 -0
  156. package/docs/reference/PERMISSION_RULES.md +55 -0
  157. package/docs/reference/dto/AUTHENTICATE.md +619 -0
  158. package/docs/reference/dto/CHARACTER_PLAYER.md +3686 -0
  159. package/docs/reference/dto/CLOUDSCRIPT.md +400 -0
  160. package/docs/reference/dto/CONTENT.md +548 -0
  161. package/docs/reference/dto/DASHBOARD.md +1980 -0
  162. package/docs/reference/dto/GAME_PLAYER.md +3631 -0
  163. package/docs/reference/dto/GENERIC.md +151 -0
  164. package/docs/reference/dto/GROUP.md +2842 -0
  165. package/docs/reference/dto/INVENTORY.md +2385 -0
  166. package/docs/reference/dto/MASTER_PLAYER.md +6024 -0
  167. package/docs/reference/dto/MULTIPLAYER.md +850 -0
  168. package/docs/reference/dto/STORE_INVENTORY.md +1262 -0
  169. package/llms.txt +47 -0
  170. package/package.json +11 -2
  171. package/GNServerSettings.debug.json +0 -21
  172. package/dist/runtime/GNNetwork.js +0 -273
  173. package/dist/runtime/GNNetworkAuthenticateApi.js +0 -122
  174. package/dist/runtime/GNNetworkCharacterPlayerApi.js +0 -968
  175. package/dist/runtime/GNNetworkCloudScriptApi.js +0 -104
  176. package/dist/runtime/GNNetworkContentApi.js +0 -140
  177. package/dist/runtime/GNNetworkDashboardApi.js +0 -170
  178. package/dist/runtime/GNNetworkGamePlayerApi.js +0 -950
  179. package/dist/runtime/GNNetworkGroupApi.js +0 -734
  180. package/dist/runtime/GNNetworkInventoryApi.js +0 -626
  181. package/dist/runtime/GNNetworkMasterPlayerApi.js +0 -1550
  182. package/dist/runtime/GNNetworkMultiplayerApi.js +0 -194
  183. package/dist/runtime/GNNetworkStoreInventoryApi.js +0 -266
  184. package/dist/runtime/common/Action0.js +0 -1
  185. package/dist/runtime/common/Action1.js +0 -1
  186. package/dist/runtime/common/Action2.js +0 -1
  187. package/dist/runtime/common/Action3.js +0 -1
  188. package/dist/runtime/common/Action4.js +0 -1
  189. package/dist/runtime/common/GNData.js +0 -209
  190. package/dist/runtime/config/GNServerSettings.js +0 -156
  191. package/dist/runtime/constant/Commands.js +0 -20
  192. package/dist/runtime/constant/EventCode.js +0 -8
  193. package/dist/runtime/constant/OperationCode.js +0 -221
  194. package/dist/runtime/constant/ReturnCode.js +0 -14
  195. package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +0 -8
  196. package/dist/runtime/constant/enumType/FriendStatus.js +0 -7
  197. package/dist/runtime/constant/enumType/GoogleLoginType.js +0 -5
  198. package/dist/runtime/constant/enumType/GroupStatus.js +0 -7
  199. package/dist/runtime/constant/enumType/InvalidMemberType.js +0 -18
  200. package/dist/runtime/constant/enumType/ItemType.js +0 -5
  201. package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +0 -6
  202. package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +0 -8
  203. package/dist/runtime/constant/enumType/OwnerType.js +0 -9
  204. package/dist/runtime/constant/enumType/PermissionDataItem.js +0 -5
  205. package/dist/runtime/constant/enumType/PushPlatformType.js +0 -5
  206. package/dist/runtime/constant/enumType/RequestRole.js +0 -6
  207. package/dist/runtime/constant/enumType/RequestType.js +0 -15
  208. package/dist/runtime/constant/enumType/StoreItemType.js +0 -5
  209. package/dist/runtime/constant/enumType/StoreReceiveType.js +0 -8
  210. package/dist/runtime/constant/errorCode/ErrorCode.js +0 -52
  211. package/dist/runtime/constant/parameterCode/ParameterCode.js +0 -617
  212. package/dist/runtime/entity/DataMember.js +0 -208
  213. package/dist/runtime/entity/GNMetadata.js +0 -11
  214. package/dist/runtime/entity/InvalidMember.js +0 -1
  215. package/dist/runtime/entity/OperationEvent.js +0 -24
  216. package/dist/runtime/entity/OperationRequest.js +0 -42
  217. package/dist/runtime/entity/OperationResponse.js +0 -73
  218. package/dist/runtime/entity/models/AuthenticateModels.js +0 -426
  219. package/dist/runtime/entity/models/AuthenticateRequestModels.js +0 -188
  220. package/dist/runtime/entity/models/AuthenticateResponseModels.js +0 -131
  221. package/dist/runtime/entity/models/CharacterPlayerModels.js +0 -1433
  222. package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +0 -1386
  223. package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +0 -376
  224. package/dist/runtime/entity/models/CloudScriptModels.js +0 -197
  225. package/dist/runtime/entity/models/CloudScriptRequestModels.js +0 -138
  226. package/dist/runtime/entity/models/CloudScriptResponseModels.js +0 -40
  227. package/dist/runtime/entity/models/ContentModels.js +0 -203
  228. package/dist/runtime/entity/models/ContentRequestModels.js +0 -190
  229. package/dist/runtime/entity/models/ContentResponseModels.js +0 -54
  230. package/dist/runtime/entity/models/DashboardModels.js +0 -3002
  231. package/dist/runtime/entity/models/DashboardRequestModels.js +0 -268
  232. package/dist/runtime/entity/models/DashboardResponseModels.js +0 -187
  233. package/dist/runtime/entity/models/GamePlayerModels.js +0 -1591
  234. package/dist/runtime/entity/models/GamePlayerRequestModels.js +0 -1360
  235. package/dist/runtime/entity/models/GamePlayerResponseModels.js +0 -369
  236. package/dist/runtime/entity/models/GenericModels.js +0 -177
  237. package/dist/runtime/entity/models/GroupModels.js +0 -1135
  238. package/dist/runtime/entity/models/GroupRequestModels.js +0 -1048
  239. package/dist/runtime/entity/models/GroupResponseModels.js +0 -285
  240. package/dist/runtime/entity/models/InventoryModels.js +0 -915
  241. package/dist/runtime/entity/models/InventoryRequestModels.js +0 -892
  242. package/dist/runtime/entity/models/InventoryResponseModels.js +0 -243
  243. package/dist/runtime/entity/models/MasterPlayerModels.js +0 -2573
  244. package/dist/runtime/entity/models/MasterPlayerRequestModels.js +0 -2228
  245. package/dist/runtime/entity/models/MasterPlayerResponseModels.js +0 -607
  246. package/dist/runtime/entity/models/MultiplayerModels.js +0 -404
  247. package/dist/runtime/entity/models/MultiplayerRequestModels.js +0 -268
  248. package/dist/runtime/entity/models/MultiplayerResponseModels.js +0 -75
  249. package/dist/runtime/entity/models/StoreInventoryModels.js +0 -797
  250. package/dist/runtime/entity/models/StoreInventoryRequestModels.js +0 -372
  251. package/dist/runtime/entity/models/StoreInventoryResponseModels.js +0 -103
  252. package/dist/runtime/entity/request/CustomOperationRequest.js +0 -24
  253. package/dist/runtime/entity/response/CustomOperationResponse.js +0 -29
  254. package/dist/runtime/entity/response/GetAuthInfoResponse.js +0 -2
  255. package/dist/runtime/entity/response/HealthCheckResponse.js +0 -2
  256. package/dist/runtime/entity/response/UploadFileResponse.js +0 -2
  257. package/dist/runtime/helper/CodeHelper.js +0 -63
  258. package/dist/runtime/helper/ConverterService.js +0 -275
  259. package/dist/runtime/helper/EnumUtility.js +0 -33
  260. package/dist/runtime/helper/GNSupport.js +0 -47
  261. package/dist/runtime/helper/GNUtils.js +0 -72
  262. package/dist/runtime/helper/MessagePackConverterService.js +0 -9
  263. package/dist/runtime/helper/OperationHelper.js +0 -24
  264. package/dist/runtime/helper/StorageService.js +0 -62
  265. package/dist/runtime/logger/GNDebug.js +0 -29
  266. package/dist/runtime/networking/AuthenticateStatus.js +0 -14
  267. package/dist/runtime/networking/IPeer.js +0 -1
  268. package/dist/runtime/networking/NetworkingPeer.js +0 -210
  269. package/dist/runtime/networking/OperationPending.js +0 -53
  270. package/dist/runtime/networking/PeerBase.js +0 -161
  271. package/dist/runtime/networking/handler/IServerEventHandler.js +0 -13
  272. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +0 -39
  273. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +0 -39
  274. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +0 -39
  275. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +0 -39
  276. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +0 -35
  277. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +0 -43
  278. package/dist/runtime/networking/http/HttpPeer.js +0 -123
  279. package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +0 -9
  280. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +0 -179
  281. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +0 -130
  282. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +0 -165
  283. package/dist/runtime/networking/socket/SocketPeer.js +0 -115
  284. package/dist/runtime/typescript/ServiceUpdate.js +0 -22
  285. package/docs/COCOS_CREATOR_INTEGRATION.md +0 -116
  286. package/examples/cocos-creator/GearNExample.ts.txt +0 -176
  287. package/srcSwift/Package.swift +0 -32
  288. package/srcSwift/Sources/GearN/runtime/GNNetwork.swift +0 -530
  289. package/srcSwift/Sources/GearN/runtime/GNNetworkAuthenticateApi.swift +0 -178
  290. package/srcSwift/Sources/GearN/runtime/GNNetworkCharacterPlayerApi.swift +0 -1162
  291. package/srcSwift/Sources/GearN/runtime/GNNetworkCloudScriptApi.swift +0 -154
  292. package/srcSwift/Sources/GearN/runtime/GNNetworkContentApi.swift +0 -208
  293. package/srcSwift/Sources/GearN/runtime/GNNetworkDashboardApi.swift +0 -240
  294. package/srcSwift/Sources/GearN/runtime/GNNetworkGamePlayerApi.swift +0 -1369
  295. package/srcSwift/Sources/GearN/runtime/GNNetworkGroupApi.swift +0 -1100
  296. package/srcSwift/Sources/GearN/runtime/GNNetworkInventoryApi.swift +0 -937
  297. package/srcSwift/Sources/GearN/runtime/GNNetworkMasterPlayerApi.swift +0 -2323
  298. package/srcSwift/Sources/GearN/runtime/GNNetworkMultiplayerApi.swift +0 -298
  299. package/srcSwift/Sources/GearN/runtime/GNNetworkStoreInventoryApi.swift +0 -397
  300. package/srcSwift/Sources/GearN/runtime/common/Action0.swift +0 -3
  301. package/srcSwift/Sources/GearN/runtime/common/Action1.swift +0 -3
  302. package/srcSwift/Sources/GearN/runtime/common/Action2.swift +0 -3
  303. package/srcSwift/Sources/GearN/runtime/common/Action3.swift +0 -3
  304. package/srcSwift/Sources/GearN/runtime/common/Action4.swift +0 -3
  305. package/srcSwift/Sources/GearN/runtime/common/GNArray.swift +0 -204
  306. package/srcSwift/Sources/GearN/runtime/common/GNData.swift +0 -108
  307. package/srcSwift/Sources/GearN/runtime/common/GNHashtable.swift +0 -200
  308. package/srcSwift/Sources/GearN/runtime/config/GNServerSettings.swift +0 -95
  309. package/srcSwift/Sources/GearN/runtime/constant/Commands.swift +0 -28
  310. package/srcSwift/Sources/GearN/runtime/constant/EventCode.swift +0 -10
  311. package/srcSwift/Sources/GearN/runtime/constant/OperationCode.swift +0 -252
  312. package/srcSwift/Sources/GearN/runtime/constant/ReturnCode.swift +0 -19
  313. package/srcSwift/Sources/GearN/runtime/constant/enumType/ExecuteResponseStatus.swift +0 -9
  314. package/srcSwift/Sources/GearN/runtime/constant/enumType/FriendStatus.swift +0 -8
  315. package/srcSwift/Sources/GearN/runtime/constant/enumType/GoogleLoginType.swift +0 -6
  316. package/srcSwift/Sources/GearN/runtime/constant/enumType/GroupStatus.swift +0 -8
  317. package/srcSwift/Sources/GearN/runtime/constant/enumType/InvalidMemberType.swift +0 -19
  318. package/srcSwift/Sources/GearN/runtime/constant/enumType/ItemType.swift +0 -6
  319. package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingMemberStatus.swift +0 -7
  320. package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingTicketStatus.swift +0 -9
  321. package/srcSwift/Sources/GearN/runtime/constant/enumType/OwnerType.swift +0 -10
  322. package/srcSwift/Sources/GearN/runtime/constant/enumType/PermissionDataItem.swift +0 -6
  323. package/srcSwift/Sources/GearN/runtime/constant/enumType/PushPlatformType.swift +0 -6
  324. package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestRole.swift +0 -7
  325. package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestType.swift +0 -16
  326. package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreItemType.swift +0 -6
  327. package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreReceiveType.swift +0 -9
  328. package/srcSwift/Sources/GearN/runtime/constant/errorCode/ErrorCode.swift +0 -58
  329. package/srcSwift/Sources/GearN/runtime/constant/parameterCode/ParameterCode.swift +0 -672
  330. package/srcSwift/Sources/GearN/runtime/entity/DataMember.swift +0 -196
  331. package/srcSwift/Sources/GearN/runtime/entity/GNMetadata.swift +0 -9
  332. package/srcSwift/Sources/GearN/runtime/entity/InvalidMember.swift +0 -11
  333. package/srcSwift/Sources/GearN/runtime/entity/OperationEvent.swift +0 -38
  334. package/srcSwift/Sources/GearN/runtime/entity/OperationHelper.swift +0 -28
  335. package/srcSwift/Sources/GearN/runtime/entity/OperationRequest.swift +0 -62
  336. package/srcSwift/Sources/GearN/runtime/entity/OperationResponse.swift +0 -98
  337. package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateModels.swift +0 -351
  338. package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateRequestModels.swift +0 -81
  339. package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateResponseModels.swift +0 -108
  340. package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerModels.swift +0 -1045
  341. package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerRequestModels.swift +0 -821
  342. package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerResponseModels.swift +0 -588
  343. package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptModels.swift +0 -187
  344. package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptRequestModels.swift +0 -84
  345. package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptResponseModels.swift +0 -59
  346. package/srcSwift/Sources/GearN/runtime/entity/models/ContentModels.swift +0 -195
  347. package/srcSwift/Sources/GearN/runtime/entity/models/ContentRequestModels.swift +0 -116
  348. package/srcSwift/Sources/GearN/runtime/entity/models/ContentResponseModels.swift +0 -81
  349. package/srcSwift/Sources/GearN/runtime/entity/models/DashboardModels.swift +0 -426
  350. package/srcSwift/Sources/GearN/runtime/entity/models/DashboardRequestModels.swift +0 -160
  351. package/srcSwift/Sources/GearN/runtime/entity/models/DashboardResponseModels.swift +0 -82
  352. package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerModels.swift +0 -1334
  353. package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerRequestModels.swift +0 -643
  354. package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerResponseModels.swift +0 -213
  355. package/srcSwift/Sources/GearN/runtime/entity/models/GenericModels.swift +0 -171
  356. package/srcSwift/Sources/GearN/runtime/entity/models/GroupModels.swift +0 -850
  357. package/srcSwift/Sources/GearN/runtime/entity/models/GroupRequestModels.swift +0 -485
  358. package/srcSwift/Sources/GearN/runtime/entity/models/GroupResponseModels.swift +0 -165
  359. package/srcSwift/Sources/GearN/runtime/entity/models/InventoryModels.swift +0 -679
  360. package/srcSwift/Sources/GearN/runtime/entity/models/InventoryRequestModels.swift +0 -413
  361. package/srcSwift/Sources/GearN/runtime/entity/models/InventoryResponseModels.swift +0 -141
  362. package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerModels.swift +0 -378
  363. package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerRequestModels.swift +0 -147
  364. package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerResponseModels.swift +0 -318
  365. package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerModels.swift +0 -319
  366. package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerRequestModels.swift +0 -125
  367. package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerResponseModels.swift +0 -45
  368. package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryModels.swift +0 -633
  369. package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryRequestModels.swift +0 -173
  370. package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryResponseModels.swift +0 -61
  371. package/srcSwift/Sources/GearN/runtime/entity/request/CustomOperationRequest.swift +0 -42
  372. package/srcSwift/Sources/GearN/runtime/entity/response/CustomOperationResponse.swift +0 -49
  373. package/srcSwift/Sources/GearN/runtime/entity/response/GetAuthInfoResponse.swift +0 -43
  374. package/srcSwift/Sources/GearN/runtime/entity/response/HealthCheckResponse.swift +0 -86
  375. package/srcSwift/Sources/GearN/runtime/entity/response/UploadFileResponse.swift +0 -15
  376. package/srcSwift/Sources/GearN/runtime/helper/CodeHelper.swift +0 -107
  377. package/srcSwift/Sources/GearN/runtime/helper/ConverterService.swift +0 -98
  378. package/srcSwift/Sources/GearN/runtime/helper/EnumUtility.swift +0 -34
  379. package/srcSwift/Sources/GearN/runtime/helper/GNSupport.swift +0 -41
  380. package/srcSwift/Sources/GearN/runtime/helper/GNUtils.swift +0 -66
  381. package/srcSwift/Sources/GearN/runtime/helper/MessagePackConverterService.swift +0 -21
  382. package/srcSwift/Sources/GearN/runtime/helper/StorageService.swift +0 -29
  383. package/srcSwift/Sources/GearN/runtime/logger/GNDebug.swift +0 -33
  384. package/srcSwift/Sources/GearN/runtime/networking/AuthenticateStatus.swift +0 -24
  385. package/srcSwift/Sources/GearN/runtime/networking/IPeer.swift +0 -8
  386. package/srcSwift/Sources/GearN/runtime/networking/NetworkingPeer.swift +0 -368
  387. package/srcSwift/Sources/GearN/runtime/networking/OperationPending.swift +0 -81
  388. package/srcSwift/Sources/GearN/runtime/networking/PeerBase.swift +0 -228
  389. package/srcSwift/Sources/GearN/runtime/networking/handler/IServerEventHandler.swift +0 -20
  390. package/srcSwift/Sources/GearN/runtime/networking/http/HttpPeer.swift +0 -226
  391. package/srcSwift/Sources/GearN/runtime/networking/http/HttpTypes.swift +0 -24
  392. package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingHttpPeerBase.swift +0 -13
  393. package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingPeerUrlSession.swift +0 -125
  394. package/srcSwift/Sources/GearN/runtime/networking/request/NetRequest.swift +0 -19
  395. package/srcSwift/Sources/GearN/runtime/networking/response/NetResponse.swift +0 -13
  396. package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingPeerSocketIOClient.swift +0 -244
  397. package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingSocketPeerBase.swift +0 -59
  398. package/srcSwift/Sources/GearN/runtime/networking/socket/SocketPeer.swift +0 -136
  399. package/tsconfig-build.cocos.json +0 -31
  400. package/webpack.config.cocos.mjs +0 -78
@@ -1,372 +0,0 @@
1
- import { OperationCode } from "./../../constant/OperationCode";
2
- import { RequestRole } from "./../../constant/enumType/RequestRole";
3
- import { RequestType } from "./../../constant/enumType/RequestType";
4
- import { CustomOperationRequestAbstract } from "./../request/CustomOperationRequest";
5
- import { StoreInventoryModels } from "./StoreInventoryModels";
6
- export var StoreInventoryRequestModels;
7
- (function (StoreInventoryRequestModels) {
8
- class BuyStoreItemOperationRequest extends CustomOperationRequestAbstract {
9
- constructor(requestData, timeout) {
10
- super(requestData, timeout);
11
- this.operationCode = OperationCode.BuyStoreItem;
12
- this.requestType = RequestType.StoreInventory;
13
- this.role = RequestRole.Client;
14
- this.requestDataCls = StoreInventoryModels.BuyStoreItemRequestData;
15
- }
16
- }
17
- StoreInventoryRequestModels.BuyStoreItemOperationRequest = BuyStoreItemOperationRequest;
18
- class ServerBuyStoreItemOperationRequest extends BuyStoreItemOperationRequest {
19
- constructor(requestData, timeout) {
20
- super(requestData, timeout);
21
- this.role = RequestRole.Server;
22
- this.requestDataCls = StoreInventoryModels.ServerBuyStoreItemRequestData;
23
- }
24
- }
25
- StoreInventoryRequestModels.ServerBuyStoreItemOperationRequest = ServerBuyStoreItemOperationRequest;
26
- class AdminBuyStoreItemOperationRequest extends BuyStoreItemOperationRequest {
27
- constructor(requestData, timeout) {
28
- super(requestData, timeout);
29
- this.role = RequestRole.Admin;
30
- this.requestDataCls = StoreInventoryModels.AdminBuyStoreItemRequestData;
31
- }
32
- }
33
- StoreInventoryRequestModels.AdminBuyStoreItemOperationRequest = AdminBuyStoreItemOperationRequest;
34
- class GetStoreItemInformationOperationRequest extends CustomOperationRequestAbstract {
35
- constructor(requestData, timeout) {
36
- super(requestData, timeout);
37
- this.operationCode = OperationCode.GetStoreItemInformation;
38
- this.requestType = RequestType.StoreInventory;
39
- this.role = RequestRole.Client;
40
- this.requestDataCls = StoreInventoryModels.GetStoreItemInformationRequestData;
41
- }
42
- }
43
- StoreInventoryRequestModels.GetStoreItemInformationOperationRequest = GetStoreItemInformationOperationRequest;
44
- class ServerGetStoreItemInformationOperationRequest extends GetStoreItemInformationOperationRequest {
45
- constructor(requestData, timeout) {
46
- super(requestData, timeout);
47
- this.role = RequestRole.Server;
48
- this.requestDataCls = StoreInventoryModels.ServerGetStoreItemInformationRequestData;
49
- }
50
- }
51
- StoreInventoryRequestModels.ServerGetStoreItemInformationOperationRequest = ServerGetStoreItemInformationOperationRequest;
52
- class AdminGetStoreItemInformationOperationRequest extends GetStoreItemInformationOperationRequest {
53
- constructor(requestData, timeout) {
54
- super(requestData, timeout);
55
- this.role = RequestRole.Admin;
56
- this.requestDataCls = StoreInventoryModels.AdminGetStoreItemInformationRequestData;
57
- }
58
- }
59
- StoreInventoryRequestModels.AdminGetStoreItemInformationOperationRequest = AdminGetStoreItemInformationOperationRequest;
60
- class GetStoreItemsWithTagOperationRequest extends CustomOperationRequestAbstract {
61
- constructor(requestData, timeout) {
62
- super(requestData, timeout);
63
- this.operationCode = OperationCode.GetStoreItemsWithTag;
64
- this.requestType = RequestType.StoreInventory;
65
- this.role = RequestRole.Client;
66
- this.requestDataCls = StoreInventoryModels.GetStoreItemsWithTagRequestData;
67
- }
68
- }
69
- StoreInventoryRequestModels.GetStoreItemsWithTagOperationRequest = GetStoreItemsWithTagOperationRequest;
70
- class ServerGetStoreItemsWithTagOperationRequest extends GetStoreItemsWithTagOperationRequest {
71
- constructor(requestData, timeout) {
72
- super(requestData, timeout);
73
- this.role = RequestRole.Server;
74
- this.requestDataCls = StoreInventoryModels.ServerGetStoreItemsWithTagRequestData;
75
- }
76
- }
77
- StoreInventoryRequestModels.ServerGetStoreItemsWithTagOperationRequest = ServerGetStoreItemsWithTagOperationRequest;
78
- class AdminGetStoreItemsWithTagOperationRequest extends GetStoreItemsWithTagOperationRequest {
79
- constructor(requestData, timeout) {
80
- super(requestData, timeout);
81
- this.role = RequestRole.Admin;
82
- this.requestDataCls = StoreInventoryModels.AdminGetStoreItemsWithTagRequestData;
83
- }
84
- }
85
- StoreInventoryRequestModels.AdminGetStoreItemsWithTagOperationRequest = AdminGetStoreItemsWithTagOperationRequest;
86
- class CreateStoreItemOperationRequest extends CustomOperationRequestAbstract {
87
- constructor(requestData, timeout) {
88
- super(requestData, timeout);
89
- this.operationCode = OperationCode.CreateStoreItem;
90
- this.requestType = RequestType.StoreInventory;
91
- this.role = RequestRole.Client;
92
- this.requestDataCls = StoreInventoryModels.CreateStoreItemRequestData;
93
- }
94
- }
95
- StoreInventoryRequestModels.CreateStoreItemOperationRequest = CreateStoreItemOperationRequest;
96
- class ServerCreateStoreItemOperationRequest extends CreateStoreItemOperationRequest {
97
- constructor(requestData, timeout) {
98
- super(requestData, timeout);
99
- this.role = RequestRole.Server;
100
- this.requestDataCls = StoreInventoryModels.ServerCreateStoreItemRequestData;
101
- }
102
- }
103
- StoreInventoryRequestModels.ServerCreateStoreItemOperationRequest = ServerCreateStoreItemOperationRequest;
104
- class AdminCreateStoreItemOperationRequest extends CreateStoreItemOperationRequest {
105
- constructor(requestData, timeout) {
106
- super(requestData, timeout);
107
- this.role = RequestRole.Admin;
108
- this.requestDataCls = StoreInventoryModels.AdminCreateStoreItemRequestData;
109
- }
110
- }
111
- StoreInventoryRequestModels.AdminCreateStoreItemOperationRequest = AdminCreateStoreItemOperationRequest;
112
- class SetRemoveStatusOperationRequest extends CustomOperationRequestAbstract {
113
- constructor(requestData, timeout) {
114
- super(requestData, timeout);
115
- this.operationCode = OperationCode.SetRemoveStatus;
116
- this.requestType = RequestType.StoreInventory;
117
- this.role = RequestRole.Client;
118
- this.requestDataCls = StoreInventoryModels.SetRemoveStatusRequestData;
119
- }
120
- }
121
- StoreInventoryRequestModels.SetRemoveStatusOperationRequest = SetRemoveStatusOperationRequest;
122
- class ServerSetRemoveStatusOperationRequest extends SetRemoveStatusOperationRequest {
123
- constructor(requestData, timeout) {
124
- super(requestData, timeout);
125
- this.role = RequestRole.Server;
126
- this.requestDataCls = StoreInventoryModels.ServerSetRemoveStatusRequestData;
127
- }
128
- }
129
- StoreInventoryRequestModels.ServerSetRemoveStatusOperationRequest = ServerSetRemoveStatusOperationRequest;
130
- class AdminSetRemoveStatusOperationRequest extends SetRemoveStatusOperationRequest {
131
- constructor(requestData, timeout) {
132
- super(requestData, timeout);
133
- this.role = RequestRole.Admin;
134
- this.requestDataCls = StoreInventoryModels.AdminSetRemoveStatusRequestData;
135
- }
136
- }
137
- StoreInventoryRequestModels.AdminSetRemoveStatusOperationRequest = AdminSetRemoveStatusOperationRequest;
138
- class SetStoreItemInformationOperationRequest extends CustomOperationRequestAbstract {
139
- constructor(requestData, timeout) {
140
- super(requestData, timeout);
141
- this.operationCode = OperationCode.SetStoreItemInformation;
142
- this.requestType = RequestType.StoreInventory;
143
- this.role = RequestRole.Client;
144
- this.requestDataCls = StoreInventoryModels.SetStoreItemInformationRequestData;
145
- }
146
- }
147
- StoreInventoryRequestModels.SetStoreItemInformationOperationRequest = SetStoreItemInformationOperationRequest;
148
- class ServerSetStoreItemInformationOperationRequest extends SetStoreItemInformationOperationRequest {
149
- constructor(requestData, timeout) {
150
- super(requestData, timeout);
151
- this.role = RequestRole.Server;
152
- this.requestDataCls = StoreInventoryModels.ServerSetStoreItemInformationRequestData;
153
- }
154
- }
155
- StoreInventoryRequestModels.ServerSetStoreItemInformationOperationRequest = ServerSetStoreItemInformationOperationRequest;
156
- class AdminSetStoreItemInformationOperationRequest extends SetStoreItemInformationOperationRequest {
157
- constructor(requestData, timeout) {
158
- super(requestData, timeout);
159
- this.role = RequestRole.Admin;
160
- this.requestDataCls = StoreInventoryModels.AdminSetStoreItemInformationRequestData;
161
- }
162
- }
163
- StoreInventoryRequestModels.AdminSetStoreItemInformationOperationRequest = AdminSetStoreItemInformationOperationRequest;
164
- class ValidateAppleAppStoreReceiptOperationRequest extends CustomOperationRequestAbstract {
165
- constructor(requestData, timeout) {
166
- super(requestData, timeout);
167
- this.operationCode = OperationCode.ValidateAppleAppStoreReceipt;
168
- this.requestType = RequestType.StoreInventory;
169
- this.role = RequestRole.Client;
170
- this.requestDataCls = StoreInventoryModels.ValidateAppleAppStoreReceiptRequestData;
171
- }
172
- }
173
- StoreInventoryRequestModels.ValidateAppleAppStoreReceiptOperationRequest = ValidateAppleAppStoreReceiptOperationRequest;
174
- class ServerValidateAppleAppStoreReceiptOperationRequest extends ValidateAppleAppStoreReceiptOperationRequest {
175
- constructor(requestData, timeout) {
176
- super(requestData, timeout);
177
- this.role = RequestRole.Server;
178
- this.requestDataCls = StoreInventoryModels.ServerValidateAppleAppStoreReceiptRequestData;
179
- }
180
- }
181
- StoreInventoryRequestModels.ServerValidateAppleAppStoreReceiptOperationRequest = ServerValidateAppleAppStoreReceiptOperationRequest;
182
- class AdminValidateAppleAppStoreReceiptOperationRequest extends ValidateAppleAppStoreReceiptOperationRequest {
183
- constructor(requestData, timeout) {
184
- super(requestData, timeout);
185
- this.role = RequestRole.Admin;
186
- this.requestDataCls = StoreInventoryModels.AdminValidateAppleAppStoreReceiptRequestData;
187
- }
188
- }
189
- StoreInventoryRequestModels.AdminValidateAppleAppStoreReceiptOperationRequest = AdminValidateAppleAppStoreReceiptOperationRequest;
190
- class ValidateFacebookStoreReceiptOperationRequest extends CustomOperationRequestAbstract {
191
- constructor(requestData, timeout) {
192
- super(requestData, timeout);
193
- this.operationCode = OperationCode.ValidateFacebookStoreReceipt;
194
- this.requestType = RequestType.StoreInventory;
195
- this.role = RequestRole.Client;
196
- this.requestDataCls = StoreInventoryModels.ValidateFacebookStoreReceiptRequestData;
197
- }
198
- }
199
- StoreInventoryRequestModels.ValidateFacebookStoreReceiptOperationRequest = ValidateFacebookStoreReceiptOperationRequest;
200
- class ServerValidateFacebookStoreReceiptOperationRequest extends ValidateFacebookStoreReceiptOperationRequest {
201
- constructor(requestData, timeout) {
202
- super(requestData, timeout);
203
- this.role = RequestRole.Server;
204
- this.requestDataCls = StoreInventoryModels.ServerValidateFacebookStoreReceiptRequestData;
205
- }
206
- }
207
- StoreInventoryRequestModels.ServerValidateFacebookStoreReceiptOperationRequest = ServerValidateFacebookStoreReceiptOperationRequest;
208
- class AdminValidateFacebookStoreReceiptOperationRequest extends ValidateFacebookStoreReceiptOperationRequest {
209
- constructor(requestData, timeout) {
210
- super(requestData, timeout);
211
- this.role = RequestRole.Admin;
212
- this.requestDataCls = StoreInventoryModels.AdminValidateFacebookStoreReceiptRequestData;
213
- }
214
- }
215
- StoreInventoryRequestModels.AdminValidateFacebookStoreReceiptOperationRequest = AdminValidateFacebookStoreReceiptOperationRequest;
216
- class ValidateGooglePlayStoreReceiptOperationRequest extends CustomOperationRequestAbstract {
217
- constructor(requestData, timeout) {
218
- super(requestData, timeout);
219
- this.operationCode = OperationCode.ValidateGooglePlayStoreReceipt;
220
- this.requestType = RequestType.StoreInventory;
221
- this.role = RequestRole.Client;
222
- this.requestDataCls = StoreInventoryModels.ValidateGooglePlayStoreReceiptRequestData;
223
- }
224
- }
225
- StoreInventoryRequestModels.ValidateGooglePlayStoreReceiptOperationRequest = ValidateGooglePlayStoreReceiptOperationRequest;
226
- class ServerValidateGooglePlayStoreReceiptOperationRequest extends ValidateGooglePlayStoreReceiptOperationRequest {
227
- constructor(requestData, timeout) {
228
- super(requestData, timeout);
229
- this.role = RequestRole.Server;
230
- this.requestDataCls = StoreInventoryModels.ServerValidateGooglePlayStoreReceiptRequestData;
231
- }
232
- }
233
- StoreInventoryRequestModels.ServerValidateGooglePlayStoreReceiptOperationRequest = ServerValidateGooglePlayStoreReceiptOperationRequest;
234
- class AdminValidateGooglePlayStoreReceiptOperationRequest extends ValidateGooglePlayStoreReceiptOperationRequest {
235
- constructor(requestData, timeout) {
236
- super(requestData, timeout);
237
- this.role = RequestRole.Admin;
238
- this.requestDataCls = StoreInventoryModels.AdminValidateGooglePlayStoreReceiptRequestData;
239
- }
240
- }
241
- StoreInventoryRequestModels.AdminValidateGooglePlayStoreReceiptOperationRequest = AdminValidateGooglePlayStoreReceiptOperationRequest;
242
- class GetCreateLeaderboardOperationRequest extends CustomOperationRequestAbstract {
243
- constructor(requestData, timeout) {
244
- super(requestData, timeout);
245
- this.operationCode = OperationCode.GetCreateLeaderboard;
246
- this.requestType = RequestType.StoreInventory;
247
- this.role = RequestRole.Client;
248
- this.requestDataCls = StoreInventoryModels.GetCreateLeaderboardRequestData;
249
- }
250
- }
251
- StoreInventoryRequestModels.GetCreateLeaderboardOperationRequest = GetCreateLeaderboardOperationRequest;
252
- class ServerGetCreateLeaderboardOperationRequest extends GetCreateLeaderboardOperationRequest {
253
- constructor(requestData, timeout) {
254
- super(requestData, timeout);
255
- this.role = RequestRole.Server;
256
- this.requestDataCls = StoreInventoryModels.ServerGetCreateLeaderboardRequestData;
257
- }
258
- }
259
- StoreInventoryRequestModels.ServerGetCreateLeaderboardOperationRequest = ServerGetCreateLeaderboardOperationRequest;
260
- class AdminGetCreateLeaderboardOperationRequest extends GetCreateLeaderboardOperationRequest {
261
- constructor(requestData, timeout) {
262
- super(requestData, timeout);
263
- this.role = RequestRole.Admin;
264
- this.requestDataCls = StoreInventoryModels.AdminGetCreateLeaderboardRequestData;
265
- }
266
- }
267
- StoreInventoryRequestModels.AdminGetCreateLeaderboardOperationRequest = AdminGetCreateLeaderboardOperationRequest;
268
- class PresentStoreItemOperationRequest extends CustomOperationRequestAbstract {
269
- constructor(requestData, timeout) {
270
- super(requestData, timeout);
271
- this.operationCode = OperationCode.PresentStoreItem;
272
- this.requestType = RequestType.StoreInventory;
273
- this.role = RequestRole.Client;
274
- this.requestDataCls = StoreInventoryModels.PresentStoreItemRequestData;
275
- }
276
- }
277
- StoreInventoryRequestModels.PresentStoreItemOperationRequest = PresentStoreItemOperationRequest;
278
- class ServerPresentStoreItemOperationRequest extends PresentStoreItemOperationRequest {
279
- constructor(requestData, timeout) {
280
- super(requestData, timeout);
281
- this.role = RequestRole.Server;
282
- this.requestDataCls = StoreInventoryModels.ServerPresentStoreItemRequestData;
283
- }
284
- }
285
- StoreInventoryRequestModels.ServerPresentStoreItemOperationRequest = ServerPresentStoreItemOperationRequest;
286
- class AdminPresentStoreItemOperationRequest extends PresentStoreItemOperationRequest {
287
- constructor(requestData, timeout) {
288
- super(requestData, timeout);
289
- this.role = RequestRole.Admin;
290
- this.requestDataCls = StoreInventoryModels.AdminPresentStoreItemRequestData;
291
- }
292
- }
293
- StoreInventoryRequestModels.AdminPresentStoreItemOperationRequest = AdminPresentStoreItemOperationRequest;
294
- class GetStoreLogOperationRequest extends CustomOperationRequestAbstract {
295
- constructor(requestData, timeout) {
296
- super(requestData, timeout);
297
- this.operationCode = OperationCode.GetStoreLog;
298
- this.requestType = RequestType.StoreInventory;
299
- this.role = RequestRole.Client;
300
- this.requestDataCls = StoreInventoryModels.GetStoreLogRequestData;
301
- }
302
- }
303
- StoreInventoryRequestModels.GetStoreLogOperationRequest = GetStoreLogOperationRequest;
304
- class ServerGetStoreLogOperationRequest extends GetStoreLogOperationRequest {
305
- constructor(requestData, timeout) {
306
- super(requestData, timeout);
307
- this.role = RequestRole.Server;
308
- this.requestDataCls = StoreInventoryModels.ServerGetStoreLogRequestData;
309
- }
310
- }
311
- StoreInventoryRequestModels.ServerGetStoreLogOperationRequest = ServerGetStoreLogOperationRequest;
312
- class AdminGetStoreLogOperationRequest extends GetStoreLogOperationRequest {
313
- constructor(requestData, timeout) {
314
- super(requestData, timeout);
315
- this.role = RequestRole.Admin;
316
- this.requestDataCls = StoreInventoryModels.AdminGetStoreLogRequestData;
317
- }
318
- }
319
- StoreInventoryRequestModels.AdminGetStoreLogOperationRequest = AdminGetStoreLogOperationRequest;
320
- class GetStoreUsedOperationRequest extends CustomOperationRequestAbstract {
321
- constructor(requestData, timeout) {
322
- super(requestData, timeout);
323
- this.operationCode = OperationCode.GetStoreUsed;
324
- this.requestType = RequestType.StoreInventory;
325
- this.role = RequestRole.Client;
326
- this.requestDataCls = StoreInventoryModels.GetStoreUsedRequestData;
327
- }
328
- }
329
- StoreInventoryRequestModels.GetStoreUsedOperationRequest = GetStoreUsedOperationRequest;
330
- class ServerGetStoreUsedOperationRequest extends GetStoreUsedOperationRequest {
331
- constructor(requestData, timeout) {
332
- super(requestData, timeout);
333
- this.role = RequestRole.Server;
334
- this.requestDataCls = StoreInventoryModels.ServerGetStoreUsedRequestData;
335
- }
336
- }
337
- StoreInventoryRequestModels.ServerGetStoreUsedOperationRequest = ServerGetStoreUsedOperationRequest;
338
- class AdminGetStoreUsedOperationRequest extends GetStoreUsedOperationRequest {
339
- constructor(requestData, timeout) {
340
- super(requestData, timeout);
341
- this.role = RequestRole.Admin;
342
- this.requestDataCls = StoreInventoryModels.AdminGetStoreUsedRequestData;
343
- }
344
- }
345
- StoreInventoryRequestModels.AdminGetStoreUsedOperationRequest = AdminGetStoreUsedOperationRequest;
346
- class RemoveStoreUsedOperationRequest extends CustomOperationRequestAbstract {
347
- constructor(requestData, timeout) {
348
- super(requestData, timeout);
349
- this.operationCode = OperationCode.RemoveStoreUsed;
350
- this.requestType = RequestType.StoreInventory;
351
- this.role = RequestRole.Client;
352
- this.requestDataCls = StoreInventoryModels.RemoveStoreUsedRequestData;
353
- }
354
- }
355
- StoreInventoryRequestModels.RemoveStoreUsedOperationRequest = RemoveStoreUsedOperationRequest;
356
- class ServerRemoveStoreUsedOperationRequest extends RemoveStoreUsedOperationRequest {
357
- constructor(requestData, timeout) {
358
- super(requestData, timeout);
359
- this.role = RequestRole.Server;
360
- this.requestDataCls = StoreInventoryModels.ServerRemoveStoreUsedRequestData;
361
- }
362
- }
363
- StoreInventoryRequestModels.ServerRemoveStoreUsedOperationRequest = ServerRemoveStoreUsedOperationRequest;
364
- class AdminRemoveStoreUsedOperationRequest extends RemoveStoreUsedOperationRequest {
365
- constructor(requestData, timeout) {
366
- super(requestData, timeout);
367
- this.role = RequestRole.Admin;
368
- this.requestDataCls = StoreInventoryModels.AdminRemoveStoreUsedRequestData;
369
- }
370
- }
371
- StoreInventoryRequestModels.AdminRemoveStoreUsedOperationRequest = AdminRemoveStoreUsedOperationRequest;
372
- })(StoreInventoryRequestModels || (StoreInventoryRequestModels = {}));
@@ -1,103 +0,0 @@
1
- import { CustomOperationResponseAbstract } from "./../response/CustomOperationResponse";
2
- import { StoreInventoryModels } from "./StoreInventoryModels";
3
- export var StoreInventoryResponseModels;
4
- (function (StoreInventoryResponseModels) {
5
- class BuyStoreItemOperationResponse extends CustomOperationResponseAbstract {
6
- constructor() {
7
- super();
8
- this.responseDataCls = StoreInventoryModels.BuyStoreInventoryResponseData;
9
- }
10
- }
11
- StoreInventoryResponseModels.BuyStoreItemOperationResponse = BuyStoreItemOperationResponse;
12
- class GetStoreItemInformationOperationResponse extends CustomOperationResponseAbstract {
13
- constructor() {
14
- super();
15
- this.responseDataCls = StoreInventoryModels.StoreInventoryResponseData;
16
- }
17
- }
18
- StoreInventoryResponseModels.GetStoreItemInformationOperationResponse = GetStoreItemInformationOperationResponse;
19
- class GetStoreItemsWithTagOperationResponse extends CustomOperationResponseAbstract {
20
- constructor() {
21
- super();
22
- this.responseDataCls = StoreInventoryModels.StoreInventoriesWithStoreIdResponseData;
23
- }
24
- }
25
- StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse = GetStoreItemsWithTagOperationResponse;
26
- class CreateStoreItemOperationResponse extends CustomOperationResponseAbstract {
27
- constructor() {
28
- super();
29
- this.responseDataCls = StoreInventoryModels.CreateStoreItemResponseData;
30
- }
31
- }
32
- StoreInventoryResponseModels.CreateStoreItemOperationResponse = CreateStoreItemOperationResponse;
33
- class SetRemoveStatusOperationResponse extends CustomOperationResponseAbstract {
34
- constructor() {
35
- super();
36
- this.responseDataCls = StoreInventoryModels.EmptyResponseData;
37
- }
38
- }
39
- StoreInventoryResponseModels.SetRemoveStatusOperationResponse = SetRemoveStatusOperationResponse;
40
- class SetStoreItemInformationOperationResponse extends CustomOperationResponseAbstract {
41
- constructor() {
42
- super();
43
- this.responseDataCls = StoreInventoryModels.StoreInventoryResponseData;
44
- }
45
- }
46
- StoreInventoryResponseModels.SetStoreItemInformationOperationResponse = SetStoreItemInformationOperationResponse;
47
- class ValidateAppleAppStoreReceiptOperationResponse extends CustomOperationResponseAbstract {
48
- constructor() {
49
- super();
50
- this.responseDataCls = StoreInventoryModels.BuyStoreInventoryResponseData;
51
- }
52
- }
53
- StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse = ValidateAppleAppStoreReceiptOperationResponse;
54
- class ValidateFacebookStoreReceiptOperationResponse extends CustomOperationResponseAbstract {
55
- constructor() {
56
- super();
57
- this.responseDataCls = StoreInventoryModels.BuyStoreInventoryResponseData;
58
- }
59
- }
60
- StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse = ValidateFacebookStoreReceiptOperationResponse;
61
- class ValidateGooglePlayStoreReceiptOperationResponse extends CustomOperationResponseAbstract {
62
- constructor() {
63
- super();
64
- this.responseDataCls = StoreInventoryModels.BuyStoreInventoryResponseData;
65
- }
66
- }
67
- StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse = ValidateGooglePlayStoreReceiptOperationResponse;
68
- class GetCreateLeaderboardOperationResponse extends CustomOperationResponseAbstract {
69
- constructor() {
70
- super();
71
- this.responseDataCls = StoreInventoryModels.GetCreateLeaderboardResponseData;
72
- }
73
- }
74
- StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse = GetCreateLeaderboardOperationResponse;
75
- class GetStoreLogOperationResponse extends CustomOperationResponseAbstract {
76
- constructor() {
77
- super();
78
- this.responseDataCls = StoreInventoryModels.GetStoreLogResponseData;
79
- }
80
- }
81
- StoreInventoryResponseModels.GetStoreLogOperationResponse = GetStoreLogOperationResponse;
82
- class PresentStoreItemOperationResponse extends CustomOperationResponseAbstract {
83
- constructor() {
84
- super();
85
- this.responseDataCls = StoreInventoryModels.PresentStoreInventoryResponseData;
86
- }
87
- }
88
- StoreInventoryResponseModels.PresentStoreItemOperationResponse = PresentStoreItemOperationResponse;
89
- class GetStoreUsedOperationResponse extends CustomOperationResponseAbstract {
90
- constructor() {
91
- super();
92
- this.responseDataCls = StoreInventoryModels.GetStoreUsedResponseData;
93
- }
94
- }
95
- StoreInventoryResponseModels.GetStoreUsedOperationResponse = GetStoreUsedOperationResponse;
96
- class RemoveStoreUsedOperationResponse extends CustomOperationResponseAbstract {
97
- constructor() {
98
- super();
99
- this.responseDataCls = StoreInventoryModels.EmptyResponseData;
100
- }
101
- }
102
- StoreInventoryResponseModels.RemoveStoreUsedOperationResponse = RemoveStoreUsedOperationResponse;
103
- })(StoreInventoryResponseModels || (StoreInventoryResponseModels = {}));
@@ -1,24 +0,0 @@
1
- import { ConverterService } from "./../../helper/ConverterService";
2
- import { OperationRequest } from "./../OperationRequest";
3
- export class CustomOperationRequest {
4
- getRequestType() {
5
- return this.requestType;
6
- }
7
- getRole() {
8
- return this.role;
9
- }
10
- constructor(timeout) {
11
- this.operationTimeout = timeout;
12
- }
13
- }
14
- export class CustomOperationRequestAbstract extends CustomOperationRequest {
15
- constructor(requestData, timeout) {
16
- super(timeout);
17
- this.requestData = requestData;
18
- }
19
- build() {
20
- let request = new OperationRequest(this.operationCode, this.operationTimeout);
21
- request.setParameters(ConverterService.serializeObject(this.requestData, this.requestDataCls));
22
- return request;
23
- }
24
- }
@@ -1,29 +0,0 @@
1
- import { ConverterService } from "./../../helper/ConverterService";
2
- import { ParameterCode } from "./../../constant/parameterCode/ParameterCode";
3
- import { ReturnCode } from "./../../constant/ReturnCode";
4
- export class CustomOperationResponse {
5
- hasReturnCodeError() {
6
- return this.returnCode != ReturnCode.Ok;
7
- }
8
- setupOperationResponse(operationResponse) {
9
- this.operationCode = operationResponse.getOperationCode();
10
- this.returnCode = operationResponse.getReturnCode();
11
- this.debugMessage = operationResponse.getDebugMessage();
12
- this.parameters = operationResponse.getParameters();
13
- this.invalidMembers = operationResponse.getInvalidMembers();
14
- if (!this.hasReturnCodeError()) {
15
- this.errorCode = this.parameters.getNumber(ParameterCode.ErrorCode);
16
- }
17
- }
18
- toString() {
19
- return "ReturnCode: " + this.returnCode + " " + (this.parameters != null ? this.parameters.toString() : this.debugMessage);
20
- }
21
- }
22
- export class CustomOperationResponseAbstract extends CustomOperationResponse {
23
- setupOperationResponse(operationResponse) {
24
- super.setupOperationResponse(operationResponse);
25
- if (!this.hasReturnCodeError()) {
26
- this.responseData = ConverterService.deserializeObject(this.parameters, this.responseDataCls);
27
- }
28
- }
29
- }
@@ -1,2 +0,0 @@
1
- export class GetAuthInfoResponse {
2
- }
@@ -1,2 +0,0 @@
1
- export class HealthCheckResponse {
2
- }
@@ -1,2 +0,0 @@
1
- export class UploadFileResponse {
2
- }
@@ -1,63 +0,0 @@
1
- import { RequestRole } from "./../constant/enumType/RequestRole";
2
- import { RequestType } from "./../constant/enumType/RequestType";
3
- import { ReturnCode } from "./../constant/ReturnCode";
4
- class CodeHelperBase {
5
- getCodeName(code) {
6
- return this.codeDict.has(code) ? this.codeDict.get(code) : (CodeHelperBase.unknownCode + " (" + code + ")");
7
- }
8
- constructor(codeDict) {
9
- this.codeDict = codeDict;
10
- }
11
- }
12
- CodeHelperBase.unknownCode = "Unknown";
13
- export class CodeHelper {
14
- static getReturnCodeName(returnCode) {
15
- return CodeHelper.returnCodeHelper.getCodeName(returnCode);
16
- }
17
- static getRequestTypeName(requestType) {
18
- return CodeHelper.requestTypeHelper.getCodeName(requestType);
19
- }
20
- static getRequestRoleName(requestRole) {
21
- return CodeHelper.requestRoleHelper.getCodeName(requestRole);
22
- }
23
- static init() {
24
- this.setReturnCodeDic();
25
- this.setRequestTypeDic();
26
- this.setRequestRoleDic();
27
- }
28
- static setReturnCodeDic() {
29
- this.returnCodeHelper = new CodeHelperBase(new Map());
30
- this.addReturnCodeDic(ReturnCode);
31
- }
32
- static addReturnCodeDic(returnCode) {
33
- let keys = Object.keys(returnCode);
34
- let values = Object.values(returnCode);
35
- for (let i = 0; i < keys.length; i++) {
36
- this.returnCodeHelper.codeDict.set(values[i], keys[i]);
37
- }
38
- }
39
- static setRequestTypeDic() {
40
- this.requestTypeHelper = new CodeHelperBase(new Map());
41
- this.addRequestTypeDic(RequestType);
42
- }
43
- static addRequestTypeDic(requestType) {
44
- let keys = Object.keys(requestType);
45
- let values = Object.values(requestType);
46
- for (let i = 0; i < keys.length; i++) {
47
- let key = keys[i];
48
- this.requestTypeHelper.codeDict.set(values[i], key[0].toLowerCase() + key.slice(1));
49
- }
50
- }
51
- static setRequestRoleDic() {
52
- this.requestRoleHelper = new CodeHelperBase(new Map());
53
- this.addRequestRoleDic(RequestRole);
54
- }
55
- static addRequestRoleDic(requestRole) {
56
- let keys = Object.keys(requestRole);
57
- let values = Object.values(requestRole);
58
- for (let i = 0; i < keys.length; i++) {
59
- let key = keys[i];
60
- this.requestRoleHelper.codeDict.set(values[i], key[0].toLowerCase() + key.slice(1));
61
- }
62
- }
63
- }