gs2 1.0.5 → 1.3.1
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.
- package/account/model/Account.js +4 -4
- package/account/model/Account.js.map +1 -1
- package/account/model/Namespace.js +3 -3
- package/account/model/Namespace.js.map +1 -1
- package/account/model/TakeOver.js +5 -5
- package/account/model/TakeOver.js.map +1 -1
- package/chat/model/Message.js +5 -5
- package/chat/model/Message.js.map +1 -1
- package/chat/model/Namespace.js +3 -3
- package/chat/model/Namespace.js.map +1 -1
- package/chat/model/Room.js +4 -4
- package/chat/model/Room.js.map +1 -1
- package/chat/model/Subscribe.js +5 -5
- package/chat/model/Subscribe.js.map +1 -1
- package/core/AbstractGs2WebSocketClient.d.ts +5 -0
- package/core/AbstractGs2WebSocketClient.js +25 -0
- package/core/AbstractGs2WebSocketClient.js.map +1 -0
- package/core/index.d.ts +2 -1
- package/core/index.js +1 -0
- package/core/index.js.map +1 -1
- package/core/model.d.ts +25 -0
- package/core/model.js +152 -1
- package/core/model.js.map +1 -1
- package/datastore/model/DataObject.js +5 -5
- package/datastore/model/DataObject.js.map +1 -1
- package/datastore/model/DataObjectHistory.js +6 -6
- package/datastore/model/DataObjectHistory.js.map +1 -1
- package/datastore/model/Namespace.js +3 -3
- package/datastore/model/Namespace.js.map +1 -1
- package/deploy/model/Event.js +4 -4
- package/deploy/model/Event.js.map +1 -1
- package/deploy/model/Output.js +4 -4
- package/deploy/model/Output.js.map +1 -1
- package/deploy/model/Resource.js +4 -4
- package/deploy/model/Resource.js.map +1 -1
- package/deploy/model/Stack.js +3 -3
- package/deploy/model/Stack.js.map +1 -1
- package/dictionary/model/CurrentEntryMaster.js +3 -3
- package/dictionary/model/CurrentEntryMaster.js.map +1 -1
- package/dictionary/model/Entry.js +5 -5
- package/dictionary/model/Entry.js.map +1 -1
- package/dictionary/model/EntryModel.js +4 -4
- package/dictionary/model/EntryModel.js.map +1 -1
- package/dictionary/model/EntryModelMaster.js +4 -4
- package/dictionary/model/EntryModelMaster.js.map +1 -1
- package/dictionary/model/Namespace.js +3 -3
- package/dictionary/model/Namespace.js.map +1 -1
- package/distributor/model/CurrentDistributorMaster.js +3 -3
- package/distributor/model/CurrentDistributorMaster.js.map +1 -1
- package/distributor/model/DistributorModel.js +4 -4
- package/distributor/model/DistributorModel.js.map +1 -1
- package/distributor/model/DistributorModelMaster.js +4 -4
- package/distributor/model/DistributorModelMaster.js.map +1 -1
- package/distributor/model/Namespace.js +3 -3
- package/distributor/model/Namespace.js.map +1 -1
- package/enhance/model/CurrentRateMaster.js +3 -3
- package/enhance/model/CurrentRateMaster.js.map +1 -1
- package/enhance/model/Namespace.js +3 -3
- package/enhance/model/Namespace.js.map +1 -1
- package/enhance/model/RateModel.js +4 -4
- package/enhance/model/RateModel.js.map +1 -1
- package/enhance/model/RateModelMaster.js +4 -4
- package/enhance/model/RateModelMaster.js.map +1 -1
- package/exchange/model/Await.js +5 -5
- package/exchange/model/Await.js.map +1 -1
- package/exchange/model/CurrentRateMaster.js +3 -3
- package/exchange/model/CurrentRateMaster.js.map +1 -1
- package/exchange/model/Namespace.js +3 -3
- package/exchange/model/Namespace.js.map +1 -1
- package/exchange/model/RateModel.js +4 -4
- package/exchange/model/RateModel.js.map +1 -1
- package/exchange/model/RateModelMaster.js +4 -4
- package/exchange/model/RateModelMaster.js.map +1 -1
- package/experience/model/CurrentExperienceMaster.js +3 -3
- package/experience/model/CurrentExperienceMaster.js.map +1 -1
- package/experience/model/ExperienceModel.js +4 -4
- package/experience/model/ExperienceModel.js.map +1 -1
- package/experience/model/ExperienceModelMaster.js +4 -4
- package/experience/model/ExperienceModelMaster.js.map +1 -1
- package/experience/model/Namespace.js +3 -3
- package/experience/model/Namespace.js.map +1 -1
- package/experience/model/Status.js +6 -6
- package/experience/model/Status.js.map +1 -1
- package/experience/model/ThresholdMaster.js +4 -4
- package/experience/model/ThresholdMaster.js.map +1 -1
- package/formation/model/CurrentFormMaster.js +3 -3
- package/formation/model/CurrentFormMaster.js.map +1 -1
- package/formation/model/Form.js +6 -6
- package/formation/model/Form.js.map +1 -1
- package/formation/model/FormModel.js +4 -4
- package/formation/model/FormModel.js.map +1 -1
- package/formation/model/FormModelMaster.js +4 -4
- package/formation/model/FormModelMaster.js.map +1 -1
- package/formation/model/Mold.js +5 -5
- package/formation/model/Mold.js.map +1 -1
- package/formation/model/MoldModel.js +4 -4
- package/formation/model/MoldModel.js.map +1 -1
- package/formation/model/MoldModelMaster.js +4 -4
- package/formation/model/MoldModelMaster.js.map +1 -1
- package/formation/model/Namespace.js +3 -3
- package/formation/model/Namespace.js.map +1 -1
- package/friend/model/BlackList.js +4 -4
- package/friend/model/BlackList.js.map +1 -1
- package/friend/model/Follow.js +4 -4
- package/friend/model/Follow.js.map +1 -1
- package/friend/model/Friend.js +4 -4
- package/friend/model/Friend.js.map +1 -1
- package/friend/model/Inbox.js +4 -4
- package/friend/model/Inbox.js.map +1 -1
- package/friend/model/Namespace.js +3 -3
- package/friend/model/Namespace.js.map +1 -1
- package/friend/model/Profile.js +4 -4
- package/friend/model/Profile.js.map +1 -1
- package/friend/model/SendBox.js +4 -4
- package/friend/model/SendBox.js.map +1 -1
- package/gateway/index.d.ts +2 -1
- package/gateway/index.js +3 -1
- package/gateway/index.js.map +1 -1
- package/gateway/model/FirebaseToken.js +4 -4
- package/gateway/model/FirebaseToken.js.map +1 -1
- package/gateway/model/Namespace.js +3 -3
- package/gateway/model/Namespace.js.map +1 -1
- package/gateway/model/WebSocketSession.js +5 -5
- package/gateway/model/WebSocketSession.js.map +1 -1
- package/gateway/websocket.d.ts +8 -0
- package/gateway/websocket.js +48 -0
- package/gateway/websocket.js.map +1 -0
- package/identifier/model/AttachSecurityPolicy.js +2 -2
- package/identifier/model/AttachSecurityPolicy.js.map +1 -1
- package/identifier/model/Password.js +2 -2
- package/identifier/model/Password.js.map +1 -1
- package/identifier/model/SecurityPolicy.js +2 -2
- package/identifier/model/SecurityPolicy.js.map +1 -1
- package/identifier/model/User.js +2 -2
- package/identifier/model/User.js.map +1 -1
- package/inbox/model/CurrentMessageMaster.js +3 -3
- package/inbox/model/CurrentMessageMaster.js.map +1 -1
- package/inbox/model/GlobalMessage.js +4 -4
- package/inbox/model/GlobalMessage.js.map +1 -1
- package/inbox/model/GlobalMessageMaster.js +4 -4
- package/inbox/model/GlobalMessageMaster.js.map +1 -1
- package/inbox/model/Message.js +5 -5
- package/inbox/model/Message.js.map +1 -1
- package/inbox/model/Namespace.js +3 -3
- package/inbox/model/Namespace.js.map +1 -1
- package/inbox/model/Received.js +4 -4
- package/inbox/model/Received.js.map +1 -1
- package/inventory/model/CurrentItemModelMaster.js +3 -3
- package/inventory/model/CurrentItemModelMaster.js.map +1 -1
- package/inventory/model/Inventory.js +5 -5
- package/inventory/model/Inventory.js.map +1 -1
- package/inventory/model/InventoryModel.js +4 -4
- package/inventory/model/InventoryModel.js.map +1 -1
- package/inventory/model/InventoryModelMaster.js +4 -4
- package/inventory/model/InventoryModelMaster.js.map +1 -1
- package/inventory/model/ItemModel.js +5 -5
- package/inventory/model/ItemModel.js.map +1 -1
- package/inventory/model/ItemModelMaster.js +5 -5
- package/inventory/model/ItemModelMaster.js.map +1 -1
- package/inventory/model/ItemSet.js +7 -7
- package/inventory/model/ItemSet.js.map +1 -1
- package/inventory/model/Namespace.js +3 -3
- package/inventory/model/Namespace.js.map +1 -1
- package/inventory/model/ReferenceOf.js +7 -7
- package/inventory/model/ReferenceOf.js.map +1 -1
- package/jobQueue/model/DeadLetterJob.js +5 -5
- package/jobQueue/model/DeadLetterJob.js.map +1 -1
- package/jobQueue/model/Job.js +5 -5
- package/jobQueue/model/Job.js.map +1 -1
- package/jobQueue/model/JobResult.js +6 -6
- package/jobQueue/model/JobResult.js.map +1 -1
- package/jobQueue/model/Namespace.js +3 -3
- package/jobQueue/model/Namespace.js.map +1 -1
- package/key/model/GitHubApiKey.js +4 -4
- package/key/model/GitHubApiKey.js.map +1 -1
- package/key/model/Key.js +4 -4
- package/key/model/Key.js.map +1 -1
- package/key/model/Namespace.js +3 -3
- package/key/model/Namespace.js.map +1 -1
- package/limit/model/Counter.js +6 -6
- package/limit/model/Counter.js.map +1 -1
- package/limit/model/CurrentLimitMaster.js +3 -3
- package/limit/model/CurrentLimitMaster.js.map +1 -1
- package/limit/model/LimitModel.js +4 -4
- package/limit/model/LimitModel.js.map +1 -1
- package/limit/model/LimitModelMaster.js +4 -4
- package/limit/model/LimitModelMaster.js.map +1 -1
- package/limit/model/Namespace.js +3 -3
- package/limit/model/Namespace.js.map +1 -1
- package/lock/model/Mutex.js +5 -5
- package/lock/model/Mutex.js.map +1 -1
- package/lock/model/Namespace.js +3 -3
- package/lock/model/Namespace.js.map +1 -1
- package/log/model/Namespace.js +3 -3
- package/log/model/Namespace.js.map +1 -1
- package/lottery/model/Box.js +5 -5
- package/lottery/model/Box.js.map +1 -1
- package/lottery/model/CurrentLotteryMaster.js +3 -3
- package/lottery/model/CurrentLotteryMaster.js.map +1 -1
- package/lottery/model/LotteryModel.js +4 -4
- package/lottery/model/LotteryModel.js.map +1 -1
- package/lottery/model/LotteryModelMaster.js +4 -4
- package/lottery/model/LotteryModelMaster.js.map +1 -1
- package/lottery/model/Namespace.js +3 -3
- package/lottery/model/Namespace.js.map +1 -1
- package/lottery/model/PrizeTable.js +4 -4
- package/lottery/model/PrizeTable.js.map +1 -1
- package/lottery/model/PrizeTableMaster.js +4 -4
- package/lottery/model/PrizeTableMaster.js.map +1 -1
- package/matchmaking/model/CurrentRatingModelMaster.js +3 -3
- package/matchmaking/model/CurrentRatingModelMaster.js.map +1 -1
- package/matchmaking/model/Gathering.js +4 -4
- package/matchmaking/model/Gathering.js.map +1 -1
- package/matchmaking/model/Namespace.js +3 -3
- package/matchmaking/model/Namespace.js.map +1 -1
- package/matchmaking/model/Rating.js +5 -5
- package/matchmaking/model/Rating.js.map +1 -1
- package/matchmaking/model/RatingModel.js +4 -4
- package/matchmaking/model/RatingModel.js.map +1 -1
- package/matchmaking/model/RatingModelMaster.js +4 -4
- package/matchmaking/model/RatingModelMaster.js.map +1 -1
- package/matchmaking/model/Vote.js +5 -5
- package/matchmaking/model/Vote.js.map +1 -1
- package/mission/model/Complete.js +5 -5
- package/mission/model/Complete.js.map +1 -1
- package/mission/model/Counter.js +5 -5
- package/mission/model/Counter.js.map +1 -1
- package/mission/model/CounterModel.js +4 -4
- package/mission/model/CounterModel.js.map +1 -1
- package/mission/model/CounterModelMaster.js +4 -4
- package/mission/model/CounterModelMaster.js.map +1 -1
- package/mission/model/CurrentMissionMaster.js +3 -3
- package/mission/model/CurrentMissionMaster.js.map +1 -1
- package/mission/model/MissionGroupModel.js +4 -4
- package/mission/model/MissionGroupModel.js.map +1 -1
- package/mission/model/MissionGroupModelMaster.js +4 -4
- package/mission/model/MissionGroupModelMaster.js.map +1 -1
- package/mission/model/MissionTaskModel.js +5 -5
- package/mission/model/MissionTaskModel.js.map +1 -1
- package/mission/model/MissionTaskModelMaster.js +5 -5
- package/mission/model/MissionTaskModelMaster.js.map +1 -1
- package/mission/model/Namespace.js +3 -3
- package/mission/model/Namespace.js.map +1 -1
- package/money/model/Namespace.js +3 -3
- package/money/model/Namespace.js.map +1 -1
- package/money/model/Receipt.js +5 -5
- package/money/model/Receipt.js.map +1 -1
- package/money/model/Wallet.js +5 -5
- package/money/model/Wallet.js.map +1 -1
- package/news/model/Namespace.js +3 -3
- package/news/model/Namespace.js.map +1 -1
- package/package.json +11 -7
- package/project/model/Account.js +1 -1
- package/project/model/Account.js.map +1 -1
- package/project/model/Billing.js +4 -4
- package/project/model/Billing.js.map +1 -1
- package/project/model/BillingMethod.js +2 -2
- package/project/model/BillingMethod.js.map +1 -1
- package/project/model/Project.js +2 -2
- package/project/model/Project.js.map +1 -1
- package/project/model/Receipt.js +2 -2
- package/project/model/Receipt.js.map +1 -1
- package/quest/model/CompletedQuestList.js +5 -5
- package/quest/model/CompletedQuestList.js.map +1 -1
- package/quest/model/CurrentQuestMaster.js +3 -3
- package/quest/model/CurrentQuestMaster.js.map +1 -1
- package/quest/model/Namespace.js +3 -3
- package/quest/model/Namespace.js.map +1 -1
- package/quest/model/Progress.js +4 -4
- package/quest/model/Progress.js.map +1 -1
- package/quest/model/QuestGroupModel.js +4 -4
- package/quest/model/QuestGroupModel.js.map +1 -1
- package/quest/model/QuestGroupModelMaster.js +4 -4
- package/quest/model/QuestGroupModelMaster.js.map +1 -1
- package/quest/model/QuestModel.js +5 -5
- package/quest/model/QuestModel.js.map +1 -1
- package/quest/model/QuestModelMaster.js +5 -5
- package/quest/model/QuestModelMaster.js.map +1 -1
- package/ranking/model/CategoryModel.js +4 -4
- package/ranking/model/CategoryModel.js.map +1 -1
- package/ranking/model/CategoryModelMaster.js +4 -4
- package/ranking/model/CategoryModelMaster.js.map +1 -1
- package/ranking/model/CurrentRankingMaster.js +3 -3
- package/ranking/model/CurrentRankingMaster.js.map +1 -1
- package/ranking/model/Namespace.js +3 -3
- package/ranking/model/Namespace.js.map +1 -1
- package/ranking/model/Score.js +7 -7
- package/ranking/model/Score.js.map +1 -1
- package/ranking/model/Subscribe.js +5 -5
- package/ranking/model/Subscribe.js.map +1 -1
- package/realtime/model/Namespace.js +3 -3
- package/realtime/model/Namespace.js.map +1 -1
- package/realtime/model/Room.js +4 -4
- package/realtime/model/Room.js.map +1 -1
- package/schedule/model/CurrentEventMaster.js +3 -3
- package/schedule/model/CurrentEventMaster.js.map +1 -1
- package/schedule/model/Event.js +4 -4
- package/schedule/model/Event.js.map +1 -1
- package/schedule/model/EventMaster.js +4 -4
- package/schedule/model/EventMaster.js.map +1 -1
- package/schedule/model/Namespace.js +3 -3
- package/schedule/model/Namespace.js.map +1 -1
- package/schedule/model/Trigger.js +5 -5
- package/schedule/model/Trigger.js.map +1 -1
- package/script/model/Namespace.js +3 -3
- package/script/model/Namespace.js.map +1 -1
- package/script/model/Script.js +4 -4
- package/script/model/Script.js.map +1 -1
- package/showcase/model/CurrentShowcaseMaster.js +3 -3
- package/showcase/model/CurrentShowcaseMaster.js.map +1 -1
- package/showcase/model/Namespace.js +3 -3
- package/showcase/model/Namespace.js.map +1 -1
- package/showcase/model/SalesItemGroupMaster.js +4 -4
- package/showcase/model/SalesItemGroupMaster.js.map +1 -1
- package/showcase/model/SalesItemMaster.js +4 -4
- package/showcase/model/SalesItemMaster.js.map +1 -1
- package/showcase/model/Showcase.js +4 -4
- package/showcase/model/Showcase.js.map +1 -1
- package/showcase/model/ShowcaseMaster.js +4 -4
- package/showcase/model/ShowcaseMaster.js.map +1 -1
- package/src/account/model/Account.ts +4 -4
- package/src/account/model/Namespace.ts +3 -3
- package/src/account/model/TakeOver.ts +5 -5
- package/src/chat/model/Message.ts +5 -5
- package/src/chat/model/Namespace.ts +3 -3
- package/src/chat/model/Room.ts +4 -4
- package/src/chat/model/Subscribe.ts +5 -5
- package/src/core/AbstractGs2WebSocketClient.ts +26 -0
- package/src/core/index.ts +2 -1
- package/src/core/model.ts +144 -0
- package/src/datastore/model/DataObject.ts +5 -5
- package/src/datastore/model/DataObjectHistory.ts +6 -6
- package/src/datastore/model/Namespace.ts +3 -3
- package/src/deploy/model/Event.ts +4 -4
- package/src/deploy/model/Output.ts +4 -4
- package/src/deploy/model/Resource.ts +4 -4
- package/src/deploy/model/Stack.ts +3 -3
- package/src/dictionary/model/CurrentEntryMaster.ts +3 -3
- package/src/dictionary/model/Entry.ts +5 -5
- package/src/dictionary/model/EntryModel.ts +4 -4
- package/src/dictionary/model/EntryModelMaster.ts +4 -4
- package/src/dictionary/model/Namespace.ts +3 -3
- package/src/distributor/model/CurrentDistributorMaster.ts +3 -3
- package/src/distributor/model/DistributorModel.ts +4 -4
- package/src/distributor/model/DistributorModelMaster.ts +4 -4
- package/src/distributor/model/Namespace.ts +3 -3
- package/src/enhance/model/CurrentRateMaster.ts +3 -3
- package/src/enhance/model/Namespace.ts +3 -3
- package/src/enhance/model/RateModel.ts +4 -4
- package/src/enhance/model/RateModelMaster.ts +4 -4
- package/src/exchange/model/Await.ts +5 -5
- package/src/exchange/model/CurrentRateMaster.ts +3 -3
- package/src/exchange/model/Namespace.ts +3 -3
- package/src/exchange/model/RateModel.ts +4 -4
- package/src/exchange/model/RateModelMaster.ts +4 -4
- package/src/experience/model/CurrentExperienceMaster.ts +3 -3
- package/src/experience/model/ExperienceModel.ts +4 -4
- package/src/experience/model/ExperienceModelMaster.ts +4 -4
- package/src/experience/model/Namespace.ts +3 -3
- package/src/experience/model/Status.ts +6 -6
- package/src/experience/model/ThresholdMaster.ts +4 -4
- package/src/formation/model/CurrentFormMaster.ts +3 -3
- package/src/formation/model/Form.ts +6 -6
- package/src/formation/model/FormModel.ts +4 -4
- package/src/formation/model/FormModelMaster.ts +4 -4
- package/src/formation/model/Mold.ts +5 -5
- package/src/formation/model/MoldModel.ts +4 -4
- package/src/formation/model/MoldModelMaster.ts +4 -4
- package/src/formation/model/Namespace.ts +3 -3
- package/src/friend/model/BlackList.ts +4 -4
- package/src/friend/model/Follow.ts +4 -4
- package/src/friend/model/Friend.ts +4 -4
- package/src/friend/model/Inbox.ts +4 -4
- package/src/friend/model/Namespace.ts +3 -3
- package/src/friend/model/Profile.ts +4 -4
- package/src/friend/model/SendBox.ts +4 -4
- package/src/gateway/index.ts +2 -0
- package/src/gateway/model/FirebaseToken.ts +4 -4
- package/src/gateway/model/Namespace.ts +3 -3
- package/src/gateway/model/WebSocketSession.ts +5 -5
- package/src/gateway/websocket.ts +44 -0
- package/src/identifier/model/AttachSecurityPolicy.ts +2 -2
- package/src/identifier/model/Password.ts +2 -2
- package/src/identifier/model/SecurityPolicy.ts +2 -2
- package/src/identifier/model/User.ts +2 -2
- package/src/inbox/model/CurrentMessageMaster.ts +3 -3
- package/src/inbox/model/GlobalMessage.ts +4 -4
- package/src/inbox/model/GlobalMessageMaster.ts +4 -4
- package/src/inbox/model/Message.ts +5 -5
- package/src/inbox/model/Namespace.ts +3 -3
- package/src/inbox/model/Received.ts +4 -4
- package/src/inventory/model/CurrentItemModelMaster.ts +3 -3
- package/src/inventory/model/Inventory.ts +5 -5
- package/src/inventory/model/InventoryModel.ts +4 -4
- package/src/inventory/model/InventoryModelMaster.ts +4 -4
- package/src/inventory/model/ItemModel.ts +5 -5
- package/src/inventory/model/ItemModelMaster.ts +5 -5
- package/src/inventory/model/ItemSet.ts +7 -7
- package/src/inventory/model/Namespace.ts +3 -3
- package/src/inventory/model/ReferenceOf.ts +7 -7
- package/src/jobQueue/model/DeadLetterJob.ts +5 -5
- package/src/jobQueue/model/Job.ts +5 -5
- package/src/jobQueue/model/JobResult.ts +6 -6
- package/src/jobQueue/model/Namespace.ts +3 -3
- package/src/key/model/GitHubApiKey.ts +4 -4
- package/src/key/model/Key.ts +4 -4
- package/src/key/model/Namespace.ts +3 -3
- package/src/limit/model/Counter.ts +6 -6
- package/src/limit/model/CurrentLimitMaster.ts +3 -3
- package/src/limit/model/LimitModel.ts +4 -4
- package/src/limit/model/LimitModelMaster.ts +4 -4
- package/src/limit/model/Namespace.ts +3 -3
- package/src/lock/model/Mutex.ts +5 -5
- package/src/lock/model/Namespace.ts +3 -3
- package/src/log/model/Namespace.ts +3 -3
- package/src/lottery/model/Box.ts +5 -5
- package/src/lottery/model/CurrentLotteryMaster.ts +3 -3
- package/src/lottery/model/LotteryModel.ts +4 -4
- package/src/lottery/model/LotteryModelMaster.ts +4 -4
- package/src/lottery/model/Namespace.ts +3 -3
- package/src/lottery/model/PrizeTable.ts +4 -4
- package/src/lottery/model/PrizeTableMaster.ts +4 -4
- package/src/matchmaking/model/CurrentRatingModelMaster.ts +3 -3
- package/src/matchmaking/model/Gathering.ts +4 -4
- package/src/matchmaking/model/Namespace.ts +3 -3
- package/src/matchmaking/model/Rating.ts +5 -5
- package/src/matchmaking/model/RatingModel.ts +4 -4
- package/src/matchmaking/model/RatingModelMaster.ts +4 -4
- package/src/matchmaking/model/Vote.ts +5 -5
- package/src/mission/model/Complete.ts +5 -5
- package/src/mission/model/Counter.ts +5 -5
- package/src/mission/model/CounterModel.ts +4 -4
- package/src/mission/model/CounterModelMaster.ts +4 -4
- package/src/mission/model/CurrentMissionMaster.ts +3 -3
- package/src/mission/model/MissionGroupModel.ts +4 -4
- package/src/mission/model/MissionGroupModelMaster.ts +4 -4
- package/src/mission/model/MissionTaskModel.ts +5 -5
- package/src/mission/model/MissionTaskModelMaster.ts +5 -5
- package/src/mission/model/Namespace.ts +3 -3
- package/src/money/model/Namespace.ts +3 -3
- package/src/money/model/Receipt.ts +5 -5
- package/src/money/model/Wallet.ts +5 -5
- package/src/news/model/Namespace.ts +3 -3
- package/src/project/model/Account.ts +1 -1
- package/src/project/model/Billing.ts +4 -4
- package/src/project/model/BillingMethod.ts +2 -2
- package/src/project/model/Project.ts +2 -2
- package/src/project/model/Receipt.ts +2 -2
- package/src/quest/model/CompletedQuestList.ts +5 -5
- package/src/quest/model/CurrentQuestMaster.ts +3 -3
- package/src/quest/model/Namespace.ts +3 -3
- package/src/quest/model/Progress.ts +4 -4
- package/src/quest/model/QuestGroupModel.ts +4 -4
- package/src/quest/model/QuestGroupModelMaster.ts +4 -4
- package/src/quest/model/QuestModel.ts +5 -5
- package/src/quest/model/QuestModelMaster.ts +5 -5
- package/src/ranking/model/CategoryModel.ts +4 -4
- package/src/ranking/model/CategoryModelMaster.ts +4 -4
- package/src/ranking/model/CurrentRankingMaster.ts +3 -3
- package/src/ranking/model/Namespace.ts +3 -3
- package/src/ranking/model/Score.ts +7 -7
- package/src/ranking/model/Subscribe.ts +5 -5
- package/src/realtime/model/Namespace.ts +3 -3
- package/src/realtime/model/Room.ts +4 -4
- package/src/schedule/model/CurrentEventMaster.ts +3 -3
- package/src/schedule/model/Event.ts +4 -4
- package/src/schedule/model/EventMaster.ts +4 -4
- package/src/schedule/model/Namespace.ts +3 -3
- package/src/schedule/model/Trigger.ts +5 -5
- package/src/script/model/Namespace.ts +3 -3
- package/src/script/model/Script.ts +4 -4
- package/src/showcase/model/CurrentShowcaseMaster.ts +3 -3
- package/src/showcase/model/Namespace.ts +3 -3
- package/src/showcase/model/SalesItemGroupMaster.ts +4 -4
- package/src/showcase/model/SalesItemMaster.ts +4 -4
- package/src/showcase/model/Showcase.ts +4 -4
- package/src/showcase/model/ShowcaseMaster.ts +4 -4
- package/src/stamina/model/CurrentStaminaMaster.ts +3 -3
- package/src/stamina/model/MaxStaminaTable.ts +4 -4
- package/src/stamina/model/MaxStaminaTableMaster.ts +4 -4
- package/src/stamina/model/Namespace.ts +3 -3
- package/src/stamina/model/RecoverIntervalTable.ts +4 -4
- package/src/stamina/model/RecoverIntervalTableMaster.ts +4 -4
- package/src/stamina/model/RecoverValueTable.ts +4 -4
- package/src/stamina/model/RecoverValueTableMaster.ts +4 -4
- package/src/stamina/model/Stamina.ts +5 -5
- package/src/stamina/model/StaminaModel.ts +4 -4
- package/src/stamina/model/StaminaModelMaster.ts +4 -4
- package/src/version/model/AcceptVersion.ts +5 -5
- package/src/version/model/CurrentVersionMaster.ts +3 -3
- package/src/version/model/Namespace.ts +3 -3
- package/src/version/model/VersionModel.ts +4 -4
- package/src/version/model/VersionModelMaster.ts +4 -4
- package/stamina/model/CurrentStaminaMaster.js +3 -3
- package/stamina/model/CurrentStaminaMaster.js.map +1 -1
- package/stamina/model/MaxStaminaTable.js +4 -4
- package/stamina/model/MaxStaminaTable.js.map +1 -1
- package/stamina/model/MaxStaminaTableMaster.js +4 -4
- package/stamina/model/MaxStaminaTableMaster.js.map +1 -1
- package/stamina/model/Namespace.js +3 -3
- package/stamina/model/Namespace.js.map +1 -1
- package/stamina/model/RecoverIntervalTable.js +4 -4
- package/stamina/model/RecoverIntervalTable.js.map +1 -1
- package/stamina/model/RecoverIntervalTableMaster.js +4 -4
- package/stamina/model/RecoverIntervalTableMaster.js.map +1 -1
- package/stamina/model/RecoverValueTable.js +4 -4
- package/stamina/model/RecoverValueTable.js.map +1 -1
- package/stamina/model/RecoverValueTableMaster.js +4 -4
- package/stamina/model/RecoverValueTableMaster.js.map +1 -1
- package/stamina/model/Stamina.js +5 -5
- package/stamina/model/Stamina.js.map +1 -1
- package/stamina/model/StaminaModel.js +4 -4
- package/stamina/model/StaminaModel.js.map +1 -1
- package/stamina/model/StaminaModelMaster.js +4 -4
- package/stamina/model/StaminaModelMaster.js.map +1 -1
- package/version/model/AcceptVersion.js +5 -5
- package/version/model/AcceptVersion.js.map +1 -1
- package/version/model/CurrentVersionMaster.js +3 -3
- package/version/model/CurrentVersionMaster.js.map +1 -1
- package/version/model/Namespace.js +3 -3
- package/version/model/Namespace.js.map +1 -1
- package/version/model/VersionModel.js +4 -4
- package/version/model/VersionModel.js.map +1 -1
- package/version/model/VersionModelMaster.js +4 -4
- package/version/model/VersionModelMaster.js.map +1 -1
|
@@ -96,19 +96,19 @@ export default class Subscribe implements IModel {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
public static isValid(grn: string): boolean {
|
|
99
|
-
if (this.getRegion(grn) == null) {
|
|
99
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
100
100
|
return false;
|
|
101
101
|
}
|
|
102
|
-
if (this.getOwnerId(grn) == null) {
|
|
102
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
103
103
|
return false;
|
|
104
104
|
}
|
|
105
|
-
if (this.getNamespaceName(grn) == null) {
|
|
105
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
106
106
|
return false;
|
|
107
107
|
}
|
|
108
|
-
if (this.getUserId(grn) == null) {
|
|
108
|
+
if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
|
|
109
109
|
return false;
|
|
110
110
|
}
|
|
111
|
-
if (this.getRoomName(grn) == null) {
|
|
111
|
+
if (this.getRoomName(grn) == null || this.getRoomName(grn) === '') {
|
|
112
112
|
return false;
|
|
113
113
|
}
|
|
114
114
|
return true;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { Gs2WebSocketSession } from './model';
|
|
18
|
+
|
|
19
|
+
export default class {
|
|
20
|
+
|
|
21
|
+
public session: Gs2WebSocketSession;
|
|
22
|
+
|
|
23
|
+
constructor(session: Gs2WebSocketSession) {
|
|
24
|
+
this.session = session;
|
|
25
|
+
}
|
|
26
|
+
}
|
package/src/core/index.ts
CHANGED
|
@@ -15,11 +15,12 @@ permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import AbstractGs2Client from './AbstractGs2RestClient';
|
|
18
|
-
import { Gs2RestSession, BasicGs2Credential, ProjectTokenGs2Credential, Region } from './model';
|
|
18
|
+
import { Gs2RestSession, Gs2WebSocketSession, BasicGs2Credential, ProjectTokenGs2Credential, Region } from './model';
|
|
19
19
|
|
|
20
20
|
export default {
|
|
21
21
|
AbstractGs2Client,
|
|
22
22
|
Gs2RestSession,
|
|
23
|
+
Gs2WebSocketSession,
|
|
23
24
|
BasicGs2Credential,
|
|
24
25
|
ProjectTokenGs2Credential,
|
|
25
26
|
Region,
|
package/src/core/model.ts
CHANGED
|
@@ -17,6 +17,9 @@ permissions and limitations under the License.
|
|
|
17
17
|
import IGs2Credential from './interface/IGs2Credential';
|
|
18
18
|
import IModel from './interface/IModel';
|
|
19
19
|
import axios from 'axios';
|
|
20
|
+
import waitUntil from "async-wait-until";
|
|
21
|
+
import { v4 as uuid } from 'uuid';
|
|
22
|
+
const WebSocket = require('ws');
|
|
20
23
|
|
|
21
24
|
export class BasicGs2Credential implements IGs2Credential {
|
|
22
25
|
|
|
@@ -83,6 +86,146 @@ export class Gs2RestSession {
|
|
|
83
86
|
}
|
|
84
87
|
}
|
|
85
88
|
|
|
89
|
+
|
|
90
|
+
export class Gs2WebSocketSession {
|
|
91
|
+
|
|
92
|
+
public credential: IGs2Credential;
|
|
93
|
+
private client: WebSocket | null = null;
|
|
94
|
+
public region: string;
|
|
95
|
+
public projectToken: string | null;
|
|
96
|
+
public expiresAt: number | null;
|
|
97
|
+
|
|
98
|
+
private inflightRequest: any = {};
|
|
99
|
+
|
|
100
|
+
private onOpenHandlers: Function[] = [];
|
|
101
|
+
private onErrorHandlers: Function[] = [];
|
|
102
|
+
private onCloseHandlers: Function[] = [];
|
|
103
|
+
|
|
104
|
+
private onNotificationHandlers: Function[] = [];
|
|
105
|
+
|
|
106
|
+
constructor(credential: IGs2Credential, region: string) {
|
|
107
|
+
this.credential = credential;
|
|
108
|
+
this.region = region;
|
|
109
|
+
this.projectToken = null;
|
|
110
|
+
this.expiresAt = null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
public async connect(): Promise<any> {
|
|
114
|
+
|
|
115
|
+
const service = 'identifier';
|
|
116
|
+
const url = Gs2Constant.ENDPOINT_HOST
|
|
117
|
+
.replace('{service}', service)
|
|
118
|
+
.replace('{region}', this.region)
|
|
119
|
+
+ '/projectToken/login';
|
|
120
|
+
|
|
121
|
+
if (this.credential instanceof BasicGs2Credential) {
|
|
122
|
+
const data = {
|
|
123
|
+
client_id: (this.credential as BasicGs2Credential).clientId,
|
|
124
|
+
client_secret: (this.credential as BasicGs2Credential).clientSecret,
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const response = await axios.post(
|
|
128
|
+
url,
|
|
129
|
+
data,
|
|
130
|
+
)
|
|
131
|
+
const result = new LoginResult(response.data);
|
|
132
|
+
this.projectToken = result.accessToken;
|
|
133
|
+
this.expiresAt = new Date().getTime() + result.expiresIn * 1000;
|
|
134
|
+
} else if (this.credential instanceof ProjectTokenGs2Credential) {
|
|
135
|
+
this.projectToken = (this.credential as ProjectTokenGs2Credential).projectToken;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
this.client = new WebSocket(Gs2Constant.WS_ENDPOINT_HOST.replace('{region}', this.region));
|
|
139
|
+
this.client!.onopen = (event: Event): any => {
|
|
140
|
+
for (let i=0; i<this.onOpenHandlers.length; i++) {
|
|
141
|
+
this.onOpenHandlers[i]();
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
this.client!.onmessage = (message: MessageEvent) => {
|
|
145
|
+
const payload = JSON.parse(message.data);
|
|
146
|
+
if (payload.type == 'notification') {
|
|
147
|
+
for (let i=0; i<this.onNotificationHandlers.length; i++) {
|
|
148
|
+
this.onNotificationHandlers[i](payload.body);
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
this.inflightRequest[payload.requestId] = payload;
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
this.client!.onerror = (error: Event) => {
|
|
155
|
+
for (let i = 0; i < this.onErrorHandlers.length; i++) {
|
|
156
|
+
this.onErrorHandlers[i](error);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
this.client!.onclose = () => {
|
|
160
|
+
for (let i=0; i<this.onCloseHandlers.length; i++) {
|
|
161
|
+
this.onCloseHandlers[i]();
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
await waitUntil(() => this.client == null || this.client.readyState == WebSocket.CLOSED || this.client.readyState == WebSocket.OPEN);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
public async send(
|
|
168
|
+
service: string,
|
|
169
|
+
component: string,
|
|
170
|
+
func: string,
|
|
171
|
+
payload: any,
|
|
172
|
+
): Promise<any> {
|
|
173
|
+
|
|
174
|
+
const requestId = uuid();
|
|
175
|
+
|
|
176
|
+
this.inflightRequest[requestId] = null;
|
|
177
|
+
this.client?.send(JSON.stringify(Object.assign({}, payload, {
|
|
178
|
+
xGs2ClientId: this.credential.clientId,
|
|
179
|
+
xGs2ProjectToken: this.projectToken,
|
|
180
|
+
x_gs2: {
|
|
181
|
+
service: service,
|
|
182
|
+
component: component,
|
|
183
|
+
function: func,
|
|
184
|
+
contentType: "application/json",
|
|
185
|
+
requestId : requestId,
|
|
186
|
+
},
|
|
187
|
+
})));
|
|
188
|
+
|
|
189
|
+
await waitUntil(() => this.inflightRequest[requestId] != null);
|
|
190
|
+
|
|
191
|
+
const result = this.inflightRequest[requestId];
|
|
192
|
+
delete this.inflightRequest[requestId];
|
|
193
|
+
if (result.status != 200) {
|
|
194
|
+
throw result.body;
|
|
195
|
+
}
|
|
196
|
+
return result.body;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
public onOpen(func: (ev: Event) => any) {
|
|
200
|
+
this.onOpenHandlers.push(func);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
public onError(func: (ev: Event) => any) {
|
|
204
|
+
this.onErrorHandlers.push(func);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
public onClose(func: (ev: CloseEvent) => any) {
|
|
208
|
+
this.onCloseHandlers.push(func);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
public onNotification(func: (message: {
|
|
212
|
+
subject: string,
|
|
213
|
+
issuer: string,
|
|
214
|
+
payload: any,
|
|
215
|
+
}) => any) {
|
|
216
|
+
this.onNotificationHandlers.push(func);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
public async disconnect(): Promise<any> {
|
|
220
|
+
if (this.client != null) {
|
|
221
|
+
this.client.close();
|
|
222
|
+
await waitUntil(() => this.client == null || this.client.readyState == WebSocket.CLOSED);
|
|
223
|
+
this.client = null;
|
|
224
|
+
}
|
|
225
|
+
this.projectToken = null;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
86
229
|
class LoginResult {
|
|
87
230
|
|
|
88
231
|
public accessToken!: string;
|
|
@@ -129,6 +272,7 @@ export class ProjectTokenGs2Credential implements IGs2Credential {
|
|
|
129
272
|
|
|
130
273
|
export const Gs2Constant = {
|
|
131
274
|
ENDPOINT_HOST: 'https://{service}.{region}.gen2.gs2io.com',
|
|
275
|
+
WS_ENDPOINT_HOST: 'wss://gateway-ws.{region}.gen2.gs2io.com',
|
|
132
276
|
};
|
|
133
277
|
|
|
134
278
|
export const Region = {
|
|
@@ -100,19 +100,19 @@ export default class DataObject implements IModel {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
public static isValid(grn: string): boolean {
|
|
103
|
-
if (this.getRegion(grn) == null) {
|
|
103
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
104
104
|
return false;
|
|
105
105
|
}
|
|
106
|
-
if (this.getOwnerId(grn) == null) {
|
|
106
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
107
107
|
return false;
|
|
108
108
|
}
|
|
109
|
-
if (this.getNamespaceName(grn) == null) {
|
|
109
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
110
110
|
return false;
|
|
111
111
|
}
|
|
112
|
-
if (this.getUserId(grn) == null) {
|
|
112
|
+
if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
|
|
113
113
|
return false;
|
|
114
114
|
}
|
|
115
|
-
if (this.getDataObjectName(grn) == null) {
|
|
115
|
+
if (this.getDataObjectName(grn) == null || this.getDataObjectName(grn) === '') {
|
|
116
116
|
return false;
|
|
117
117
|
}
|
|
118
118
|
return true;
|
|
@@ -115,22 +115,22 @@ export default class DataObjectHistory implements IModel {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
public static isValid(grn: string): boolean {
|
|
118
|
-
if (this.getRegion(grn) == null) {
|
|
118
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
119
119
|
return false;
|
|
120
120
|
}
|
|
121
|
-
if (this.getOwnerId(grn) == null) {
|
|
121
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
122
122
|
return false;
|
|
123
123
|
}
|
|
124
|
-
if (this.getNamespaceName(grn) == null) {
|
|
124
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
125
125
|
return false;
|
|
126
126
|
}
|
|
127
|
-
if (this.getUserId(grn) == null) {
|
|
127
|
+
if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
|
|
128
128
|
return false;
|
|
129
129
|
}
|
|
130
|
-
if (this.getDataObjectName(grn) == null) {
|
|
130
|
+
if (this.getDataObjectName(grn) == null || this.getDataObjectName(grn) === '') {
|
|
131
131
|
return false;
|
|
132
132
|
}
|
|
133
|
-
if (this.getGeneration(grn) == null) {
|
|
133
|
+
if (this.getGeneration(grn) == null || this.getGeneration(grn) === '') {
|
|
134
134
|
return false;
|
|
135
135
|
}
|
|
136
136
|
return true;
|
|
@@ -65,13 +65,13 @@ export default class Namespace implements IModel {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
public static isValid(grn: string): boolean {
|
|
68
|
-
if (this.getRegion(grn) == null) {
|
|
68
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
|
-
if (this.getOwnerId(grn) == null) {
|
|
71
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
72
72
|
return false;
|
|
73
73
|
}
|
|
74
|
-
if (this.getNamespaceName(grn) == null) {
|
|
74
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
75
75
|
return false;
|
|
76
76
|
}
|
|
77
77
|
return true;
|
|
@@ -78,16 +78,16 @@ export default class Event implements IModel {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
public static isValid(grn: string): boolean {
|
|
81
|
-
if (this.getRegion(grn) == null) {
|
|
81
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
82
82
|
return false;
|
|
83
83
|
}
|
|
84
|
-
if (this.getOwnerId(grn) == null) {
|
|
84
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
85
85
|
return false;
|
|
86
86
|
}
|
|
87
|
-
if (this.getStackName(grn) == null) {
|
|
87
|
+
if (this.getStackName(grn) == null || this.getStackName(grn) === '') {
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
|
-
if (this.getEventName(grn) == null) {
|
|
90
|
+
if (this.getEventName(grn) == null || this.getEventName(grn) === '') {
|
|
91
91
|
return false;
|
|
92
92
|
}
|
|
93
93
|
return true;
|
|
@@ -76,16 +76,16 @@ export default class Output implements IModel {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
public static isValid(grn: string): boolean {
|
|
79
|
-
if (this.getRegion(grn) == null) {
|
|
79
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
80
80
|
return false;
|
|
81
81
|
}
|
|
82
|
-
if (this.getOwnerId(grn) == null) {
|
|
82
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
83
83
|
return false;
|
|
84
84
|
}
|
|
85
|
-
if (this.getStackName(grn) == null) {
|
|
85
|
+
if (this.getStackName(grn) == null || this.getStackName(grn) === '') {
|
|
86
86
|
return false;
|
|
87
87
|
}
|
|
88
|
-
if (this.getOutputName(grn) == null) {
|
|
88
|
+
if (this.getOutputName(grn) == null || this.getOutputName(grn) === '') {
|
|
89
89
|
return false;
|
|
90
90
|
}
|
|
91
91
|
return true;
|
|
@@ -84,16 +84,16 @@ export default class Resource implements IModel {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
public static isValid(grn: string): boolean {
|
|
87
|
-
if (this.getRegion(grn) == null) {
|
|
87
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
|
-
if (this.getOwnerId(grn) == null) {
|
|
90
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
91
91
|
return false;
|
|
92
92
|
}
|
|
93
|
-
if (this.getStackName(grn) == null) {
|
|
93
|
+
if (this.getStackName(grn) == null || this.getStackName(grn) === '') {
|
|
94
94
|
return false;
|
|
95
95
|
}
|
|
96
|
-
if (this.getResourceName(grn) == null) {
|
|
96
|
+
if (this.getResourceName(grn) == null || this.getResourceName(grn) === '') {
|
|
97
97
|
return false;
|
|
98
98
|
}
|
|
99
99
|
return true;
|
|
@@ -63,13 +63,13 @@ export default class Stack implements IModel {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
public static isValid(grn: string): boolean {
|
|
66
|
-
if (this.getRegion(grn) == null) {
|
|
66
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
67
67
|
return false;
|
|
68
68
|
}
|
|
69
|
-
if (this.getOwnerId(grn) == null) {
|
|
69
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
70
70
|
return false;
|
|
71
71
|
}
|
|
72
|
-
if (this.getStackName(grn) == null) {
|
|
72
|
+
if (this.getStackName(grn) == null || this.getStackName(grn) === '') {
|
|
73
73
|
return false;
|
|
74
74
|
}
|
|
75
75
|
return true;
|
|
@@ -58,13 +58,13 @@ export default class CurrentEntryMaster implements IModel {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
public static isValid(grn: string): boolean {
|
|
61
|
-
if (this.getRegion(grn) == null) {
|
|
61
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
62
62
|
return false;
|
|
63
63
|
}
|
|
64
|
-
if (this.getOwnerId(grn) == null) {
|
|
64
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
65
65
|
return false;
|
|
66
66
|
}
|
|
67
|
-
if (this.getNamespaceName(grn) == null) {
|
|
67
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
68
68
|
return false;
|
|
69
69
|
}
|
|
70
70
|
return true;
|
|
@@ -94,19 +94,19 @@ export default class Entry implements IModel {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
public static isValid(grn: string): boolean {
|
|
97
|
-
if (this.getRegion(grn) == null) {
|
|
97
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
98
98
|
return false;
|
|
99
99
|
}
|
|
100
|
-
if (this.getOwnerId(grn) == null) {
|
|
100
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
101
101
|
return false;
|
|
102
102
|
}
|
|
103
|
-
if (this.getNamespaceName(grn) == null) {
|
|
103
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
104
104
|
return false;
|
|
105
105
|
}
|
|
106
|
-
if (this.getUserId(grn) == null) {
|
|
106
|
+
if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
|
|
107
107
|
return false;
|
|
108
108
|
}
|
|
109
|
-
if (this.getEntryModelName(grn) == null) {
|
|
109
|
+
if (this.getEntryModelName(grn) == null || this.getEntryModelName(grn) === '') {
|
|
110
110
|
return false;
|
|
111
111
|
}
|
|
112
112
|
return true;
|
|
@@ -75,16 +75,16 @@ export default class EntryModel implements IModel {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
public static isValid(grn: string): boolean {
|
|
78
|
-
if (this.getRegion(grn) == null) {
|
|
78
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
79
79
|
return false;
|
|
80
80
|
}
|
|
81
|
-
if (this.getOwnerId(grn) == null) {
|
|
81
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
82
82
|
return false;
|
|
83
83
|
}
|
|
84
|
-
if (this.getNamespaceName(grn) == null) {
|
|
84
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
85
85
|
return false;
|
|
86
86
|
}
|
|
87
|
-
if (this.getEntryName(grn) == null) {
|
|
87
|
+
if (this.getEntryName(grn) == null || this.getEntryName(grn) === '') {
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
90
|
return true;
|
|
@@ -78,16 +78,16 @@ export default class EntryModelMaster implements IModel {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
public static isValid(grn: string): boolean {
|
|
81
|
-
if (this.getRegion(grn) == null) {
|
|
81
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
82
82
|
return false;
|
|
83
83
|
}
|
|
84
|
-
if (this.getOwnerId(grn) == null) {
|
|
84
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
85
85
|
return false;
|
|
86
86
|
}
|
|
87
|
-
if (this.getNamespaceName(grn) == null) {
|
|
87
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
|
-
if (this.getEntryName(grn) == null) {
|
|
90
|
+
if (this.getEntryName(grn) == null || this.getEntryName(grn) === '') {
|
|
91
91
|
return false;
|
|
92
92
|
}
|
|
93
93
|
return true;
|
|
@@ -66,13 +66,13 @@ export default class Namespace implements IModel {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
public static isValid(grn: string): boolean {
|
|
69
|
-
if (this.getRegion(grn) == null) {
|
|
69
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
70
70
|
return false;
|
|
71
71
|
}
|
|
72
|
-
if (this.getOwnerId(grn) == null) {
|
|
72
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
73
73
|
return false;
|
|
74
74
|
}
|
|
75
|
-
if (this.getNamespaceName(grn) == null) {
|
|
75
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
76
76
|
return false;
|
|
77
77
|
}
|
|
78
78
|
return true;
|
|
@@ -58,13 +58,13 @@ export default class CurrentDistributorMaster implements IModel {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
public static isValid(grn: string): boolean {
|
|
61
|
-
if (this.getRegion(grn) == null) {
|
|
61
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
62
62
|
return false;
|
|
63
63
|
}
|
|
64
|
-
if (this.getOwnerId(grn) == null) {
|
|
64
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
65
65
|
return false;
|
|
66
66
|
}
|
|
67
|
-
if (this.getNamespaceName(grn) == null) {
|
|
67
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
68
68
|
return false;
|
|
69
69
|
}
|
|
70
70
|
return true;
|
|
@@ -77,16 +77,16 @@ export default class DistributorModel implements IModel {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
public static isValid(grn: string): boolean {
|
|
80
|
-
if (this.getRegion(grn) == null) {
|
|
80
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
81
81
|
return false;
|
|
82
82
|
}
|
|
83
|
-
if (this.getOwnerId(grn) == null) {
|
|
83
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
84
84
|
return false;
|
|
85
85
|
}
|
|
86
|
-
if (this.getNamespaceName(grn) == null) {
|
|
86
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
87
87
|
return false;
|
|
88
88
|
}
|
|
89
|
-
if (this.getDistributorName(grn) == null) {
|
|
89
|
+
if (this.getDistributorName(grn) == null || this.getDistributorName(grn) === '') {
|
|
90
90
|
return false;
|
|
91
91
|
}
|
|
92
92
|
return true;
|
|
@@ -80,16 +80,16 @@ export default class DistributorModelMaster implements IModel {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
public static isValid(grn: string): boolean {
|
|
83
|
-
if (this.getRegion(grn) == null) {
|
|
83
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
84
84
|
return false;
|
|
85
85
|
}
|
|
86
|
-
if (this.getOwnerId(grn) == null) {
|
|
86
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
87
87
|
return false;
|
|
88
88
|
}
|
|
89
|
-
if (this.getNamespaceName(grn) == null) {
|
|
89
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
90
90
|
return false;
|
|
91
91
|
}
|
|
92
|
-
if (this.getDistributorName(grn) == null) {
|
|
92
|
+
if (this.getDistributorName(grn) == null || this.getDistributorName(grn) === '') {
|
|
93
93
|
return false;
|
|
94
94
|
}
|
|
95
95
|
return true;
|
|
@@ -64,13 +64,13 @@ export default class Namespace implements IModel {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
public static isValid(grn: string): boolean {
|
|
67
|
-
if (this.getRegion(grn) == null) {
|
|
67
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
68
68
|
return false;
|
|
69
69
|
}
|
|
70
|
-
if (this.getOwnerId(grn) == null) {
|
|
70
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
71
71
|
return false;
|
|
72
72
|
}
|
|
73
|
-
if (this.getNamespaceName(grn) == null) {
|
|
73
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
74
74
|
return false;
|
|
75
75
|
}
|
|
76
76
|
return true;
|
|
@@ -58,13 +58,13 @@ export default class CurrentRateMaster implements IModel {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
public static isValid(grn: string): boolean {
|
|
61
|
-
if (this.getRegion(grn) == null) {
|
|
61
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
62
62
|
return false;
|
|
63
63
|
}
|
|
64
|
-
if (this.getOwnerId(grn) == null) {
|
|
64
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
65
65
|
return false;
|
|
66
66
|
}
|
|
67
|
-
if (this.getNamespaceName(grn) == null) {
|
|
67
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
68
68
|
return false;
|
|
69
69
|
}
|
|
70
70
|
return true;
|
|
@@ -68,13 +68,13 @@ export default class Namespace implements IModel {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
public static isValid(grn: string): boolean {
|
|
71
|
-
if (this.getRegion(grn) == null) {
|
|
71
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
72
72
|
return false;
|
|
73
73
|
}
|
|
74
|
-
if (this.getOwnerId(grn) == null) {
|
|
74
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
75
75
|
return false;
|
|
76
76
|
}
|
|
77
|
-
if (this.getNamespaceName(grn) == null) {
|
|
77
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
78
78
|
return false;
|
|
79
79
|
}
|
|
80
80
|
return true;
|
|
@@ -83,16 +83,16 @@ export default class RateModel implements IModel {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
public static isValid(grn: string): boolean {
|
|
86
|
-
if (this.getRegion(grn) == null) {
|
|
86
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
87
87
|
return false;
|
|
88
88
|
}
|
|
89
|
-
if (this.getOwnerId(grn) == null) {
|
|
89
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
90
90
|
return false;
|
|
91
91
|
}
|
|
92
|
-
if (this.getNamespaceName(grn) == null) {
|
|
92
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
93
93
|
return false;
|
|
94
94
|
}
|
|
95
|
-
if (this.getRateName(grn) == null) {
|
|
95
|
+
if (this.getRateName(grn) == null || this.getRateName(grn) === '') {
|
|
96
96
|
return false;
|
|
97
97
|
}
|
|
98
98
|
return true;
|
|
@@ -85,16 +85,16 @@ export default class RateModelMaster implements IModel {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
public static isValid(grn: string): boolean {
|
|
88
|
-
if (this.getRegion(grn) == null) {
|
|
88
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
89
89
|
return false;
|
|
90
90
|
}
|
|
91
|
-
if (this.getOwnerId(grn) == null) {
|
|
91
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
92
92
|
return false;
|
|
93
93
|
}
|
|
94
|
-
if (this.getNamespaceName(grn) == null) {
|
|
94
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
95
95
|
return false;
|
|
96
96
|
}
|
|
97
|
-
if (this.getRateName(grn) == null) {
|
|
97
|
+
if (this.getRateName(grn) == null || this.getRateName(grn) === '') {
|
|
98
98
|
return false;
|
|
99
99
|
}
|
|
100
100
|
return true;
|