gs2 1.0.4 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/model/Account.js +8 -20
- package/account/model/Account.js.map +1 -1
- package/account/model/Namespace.js +6 -15
- package/account/model/Namespace.js.map +1 -1
- package/account/model/TakeOver.js +10 -25
- package/account/model/TakeOver.js.map +1 -1
- package/chat/model/Message.js +10 -25
- package/chat/model/Message.js.map +1 -1
- package/chat/model/Namespace.js +6 -15
- package/chat/model/Namespace.js.map +1 -1
- package/chat/model/Room.js +8 -20
- package/chat/model/Room.js.map +1 -1
- package/chat/model/Subscribe.js +10 -25
- 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 +10 -25
- package/datastore/model/DataObject.js.map +1 -1
- package/datastore/model/DataObjectHistory.js +12 -30
- package/datastore/model/DataObjectHistory.js.map +1 -1
- package/datastore/model/Namespace.js +6 -15
- package/datastore/model/Namespace.js.map +1 -1
- package/deploy/model/Event.js +8 -20
- package/deploy/model/Event.js.map +1 -1
- package/deploy/model/Output.js +8 -20
- package/deploy/model/Output.js.map +1 -1
- package/deploy/model/Resource.js +8 -20
- package/deploy/model/Resource.js.map +1 -1
- package/deploy/model/Stack.js +6 -15
- package/deploy/model/Stack.js.map +1 -1
- package/dictionary/model/CurrentEntryMaster.js +6 -15
- package/dictionary/model/CurrentEntryMaster.js.map +1 -1
- package/dictionary/model/Entry.js +10 -25
- package/dictionary/model/Entry.js.map +1 -1
- package/dictionary/model/EntryModel.js +8 -20
- package/dictionary/model/EntryModel.js.map +1 -1
- package/dictionary/model/EntryModelMaster.js +8 -20
- package/dictionary/model/EntryModelMaster.js.map +1 -1
- package/dictionary/model/Namespace.js +6 -15
- package/dictionary/model/Namespace.js.map +1 -1
- package/distributor/model/CurrentDistributorMaster.js +6 -15
- package/distributor/model/CurrentDistributorMaster.js.map +1 -1
- package/distributor/model/DistributorModel.js +8 -20
- package/distributor/model/DistributorModel.js.map +1 -1
- package/distributor/model/DistributorModelMaster.js +8 -20
- package/distributor/model/DistributorModelMaster.js.map +1 -1
- package/distributor/model/Namespace.js +6 -15
- package/distributor/model/Namespace.js.map +1 -1
- package/enhance/model/CurrentRateMaster.js +6 -15
- package/enhance/model/CurrentRateMaster.js.map +1 -1
- package/enhance/model/Namespace.js +6 -15
- package/enhance/model/Namespace.js.map +1 -1
- package/enhance/model/RateModel.js +8 -20
- package/enhance/model/RateModel.js.map +1 -1
- package/enhance/model/RateModelMaster.js +8 -20
- package/enhance/model/RateModelMaster.js.map +1 -1
- package/exchange/model/Await.js +10 -25
- package/exchange/model/Await.js.map +1 -1
- package/exchange/model/CurrentRateMaster.js +6 -15
- package/exchange/model/CurrentRateMaster.js.map +1 -1
- package/exchange/model/Namespace.js +6 -15
- package/exchange/model/Namespace.js.map +1 -1
- package/exchange/model/RateModel.js +8 -20
- package/exchange/model/RateModel.js.map +1 -1
- package/exchange/model/RateModelMaster.js +8 -20
- package/exchange/model/RateModelMaster.js.map +1 -1
- package/experience/model/CurrentExperienceMaster.js +6 -15
- package/experience/model/CurrentExperienceMaster.js.map +1 -1
- package/experience/model/ExperienceModel.js +8 -20
- package/experience/model/ExperienceModel.js.map +1 -1
- package/experience/model/ExperienceModelMaster.js +8 -20
- package/experience/model/ExperienceModelMaster.js.map +1 -1
- package/experience/model/Namespace.js +6 -15
- package/experience/model/Namespace.js.map +1 -1
- package/experience/model/Status.js +12 -30
- package/experience/model/Status.js.map +1 -1
- package/experience/model/ThresholdMaster.js +8 -20
- package/experience/model/ThresholdMaster.js.map +1 -1
- package/formation/model/CurrentFormMaster.js +6 -15
- package/formation/model/CurrentFormMaster.js.map +1 -1
- package/formation/model/Form.js +12 -30
- package/formation/model/Form.js.map +1 -1
- package/formation/model/FormModel.js +8 -20
- package/formation/model/FormModel.js.map +1 -1
- package/formation/model/FormModelMaster.js +8 -20
- package/formation/model/FormModelMaster.js.map +1 -1
- package/formation/model/Mold.js +10 -25
- package/formation/model/Mold.js.map +1 -1
- package/formation/model/MoldModel.js +8 -20
- package/formation/model/MoldModel.js.map +1 -1
- package/formation/model/MoldModelMaster.js +8 -20
- package/formation/model/MoldModelMaster.js.map +1 -1
- package/formation/model/Namespace.js +6 -15
- package/formation/model/Namespace.js.map +1 -1
- package/friend/model/BlackList.js +8 -20
- package/friend/model/BlackList.js.map +1 -1
- package/friend/model/Follow.js +8 -20
- package/friend/model/Follow.js.map +1 -1
- package/friend/model/Friend.js +8 -20
- package/friend/model/Friend.js.map +1 -1
- package/friend/model/Inbox.js +8 -20
- package/friend/model/Inbox.js.map +1 -1
- package/friend/model/Namespace.js +6 -15
- package/friend/model/Namespace.js.map +1 -1
- package/friend/model/Profile.js +8 -20
- package/friend/model/Profile.js.map +1 -1
- package/friend/model/SendBox.js +8 -20
- 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 +8 -20
- package/gateway/model/FirebaseToken.js.map +1 -1
- package/gateway/model/Namespace.js +6 -15
- package/gateway/model/Namespace.js.map +1 -1
- package/gateway/model/WebSocketSession.js +10 -25
- 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 +4 -10
- package/identifier/model/AttachSecurityPolicy.js.map +1 -1
- package/identifier/model/Password.js +4 -10
- package/identifier/model/Password.js.map +1 -1
- package/identifier/model/SecurityPolicy.js +4 -10
- package/identifier/model/SecurityPolicy.js.map +1 -1
- package/identifier/model/User.js +4 -10
- package/identifier/model/User.js.map +1 -1
- package/inbox/model/CurrentMessageMaster.js +6 -15
- package/inbox/model/CurrentMessageMaster.js.map +1 -1
- package/inbox/model/GlobalMessage.js +8 -20
- package/inbox/model/GlobalMessage.js.map +1 -1
- package/inbox/model/GlobalMessageMaster.js +8 -20
- package/inbox/model/GlobalMessageMaster.js.map +1 -1
- package/inbox/model/Message.js +10 -25
- package/inbox/model/Message.js.map +1 -1
- package/inbox/model/Namespace.js +6 -15
- package/inbox/model/Namespace.js.map +1 -1
- package/inbox/model/Received.js +8 -20
- package/inbox/model/Received.js.map +1 -1
- package/inventory/model/CurrentItemModelMaster.js +6 -15
- package/inventory/model/CurrentItemModelMaster.js.map +1 -1
- package/inventory/model/Inventory.js +10 -25
- package/inventory/model/Inventory.js.map +1 -1
- package/inventory/model/InventoryModel.js +8 -20
- package/inventory/model/InventoryModel.js.map +1 -1
- package/inventory/model/InventoryModelMaster.js +8 -20
- package/inventory/model/InventoryModelMaster.js.map +1 -1
- package/inventory/model/ItemModel.js +10 -25
- package/inventory/model/ItemModel.js.map +1 -1
- package/inventory/model/ItemModelMaster.js +10 -25
- package/inventory/model/ItemModelMaster.js.map +1 -1
- package/inventory/model/ItemSet.js +14 -35
- package/inventory/model/ItemSet.js.map +1 -1
- package/inventory/model/Namespace.js +6 -15
- package/inventory/model/Namespace.js.map +1 -1
- package/inventory/model/ReferenceOf.js +14 -35
- package/inventory/model/ReferenceOf.js.map +1 -1
- package/jobQueue/model/DeadLetterJob.js +10 -25
- package/jobQueue/model/DeadLetterJob.js.map +1 -1
- package/jobQueue/model/Job.js +10 -25
- package/jobQueue/model/Job.js.map +1 -1
- package/jobQueue/model/JobResult.js +12 -30
- package/jobQueue/model/JobResult.js.map +1 -1
- package/jobQueue/model/Namespace.js +6 -15
- package/jobQueue/model/Namespace.js.map +1 -1
- package/key/model/GitHubApiKey.js +8 -20
- package/key/model/GitHubApiKey.js.map +1 -1
- package/key/model/Key.js +8 -20
- package/key/model/Key.js.map +1 -1
- package/key/model/Namespace.js +6 -15
- package/key/model/Namespace.js.map +1 -1
- package/limit/model/Counter.js +12 -30
- package/limit/model/Counter.js.map +1 -1
- package/limit/model/CurrentLimitMaster.js +6 -15
- package/limit/model/CurrentLimitMaster.js.map +1 -1
- package/limit/model/LimitModel.js +8 -20
- package/limit/model/LimitModel.js.map +1 -1
- package/limit/model/LimitModelMaster.js +8 -20
- package/limit/model/LimitModelMaster.js.map +1 -1
- package/limit/model/Namespace.js +6 -15
- package/limit/model/Namespace.js.map +1 -1
- package/lock/model/Mutex.js +10 -25
- package/lock/model/Mutex.js.map +1 -1
- package/lock/model/Namespace.js +6 -15
- package/lock/model/Namespace.js.map +1 -1
- package/log/model/Namespace.js +6 -15
- package/log/model/Namespace.js.map +1 -1
- package/lottery/model/Box.js +10 -25
- package/lottery/model/Box.js.map +1 -1
- package/lottery/model/CurrentLotteryMaster.js +6 -15
- package/lottery/model/CurrentLotteryMaster.js.map +1 -1
- package/lottery/model/LotteryModel.js +8 -20
- package/lottery/model/LotteryModel.js.map +1 -1
- package/lottery/model/LotteryModelMaster.js +8 -20
- package/lottery/model/LotteryModelMaster.js.map +1 -1
- package/lottery/model/Namespace.js +6 -15
- package/lottery/model/Namespace.js.map +1 -1
- package/lottery/model/PrizeTable.js +8 -20
- package/lottery/model/PrizeTable.js.map +1 -1
- package/lottery/model/PrizeTableMaster.js +8 -20
- package/lottery/model/PrizeTableMaster.js.map +1 -1
- package/matchmaking/model/CurrentRatingModelMaster.js +6 -15
- package/matchmaking/model/CurrentRatingModelMaster.js.map +1 -1
- package/matchmaking/model/Gathering.js +8 -20
- package/matchmaking/model/Gathering.js.map +1 -1
- package/matchmaking/model/Namespace.js +6 -15
- package/matchmaking/model/Namespace.js.map +1 -1
- package/matchmaking/model/Rating.js +10 -25
- package/matchmaking/model/Rating.js.map +1 -1
- package/matchmaking/model/RatingModel.js +8 -20
- package/matchmaking/model/RatingModel.js.map +1 -1
- package/matchmaking/model/RatingModelMaster.js +8 -20
- package/matchmaking/model/RatingModelMaster.js.map +1 -1
- package/matchmaking/model/Vote.js +10 -25
- package/matchmaking/model/Vote.js.map +1 -1
- package/mission/model/Complete.js +10 -25
- package/mission/model/Complete.js.map +1 -1
- package/mission/model/Counter.js +10 -25
- package/mission/model/Counter.js.map +1 -1
- package/mission/model/CounterModel.js +8 -20
- package/mission/model/CounterModel.js.map +1 -1
- package/mission/model/CounterModelMaster.js +8 -20
- package/mission/model/CounterModelMaster.js.map +1 -1
- package/mission/model/CurrentMissionMaster.js +6 -15
- package/mission/model/CurrentMissionMaster.js.map +1 -1
- package/mission/model/MissionGroupModel.js +8 -20
- package/mission/model/MissionGroupModel.js.map +1 -1
- package/mission/model/MissionGroupModelMaster.js +8 -20
- package/mission/model/MissionGroupModelMaster.js.map +1 -1
- package/mission/model/MissionTaskModel.js +10 -25
- package/mission/model/MissionTaskModel.js.map +1 -1
- package/mission/model/MissionTaskModelMaster.js +10 -25
- package/mission/model/MissionTaskModelMaster.js.map +1 -1
- package/mission/model/Namespace.js +6 -15
- package/mission/model/Namespace.js.map +1 -1
- package/money/model/Namespace.js +6 -15
- package/money/model/Namespace.js.map +1 -1
- package/money/model/Receipt.js +10 -25
- package/money/model/Receipt.js.map +1 -1
- package/money/model/Wallet.js +10 -25
- package/money/model/Wallet.js.map +1 -1
- package/news/model/Namespace.js +6 -15
- package/news/model/Namespace.js.map +1 -1
- package/package.json +9 -7
- package/project/model/Account.js +2 -5
- package/project/model/Account.js.map +1 -1
- package/project/model/Billing.js +8 -20
- package/project/model/Billing.js.map +1 -1
- package/project/model/BillingMethod.js +4 -10
- package/project/model/BillingMethod.js.map +1 -1
- package/project/model/Project.js +4 -10
- package/project/model/Project.js.map +1 -1
- package/project/model/Receipt.js +4 -10
- package/project/model/Receipt.js.map +1 -1
- package/quest/model/CompletedQuestList.js +10 -25
- package/quest/model/CompletedQuestList.js.map +1 -1
- package/quest/model/CurrentQuestMaster.js +6 -15
- package/quest/model/CurrentQuestMaster.js.map +1 -1
- package/quest/model/Namespace.js +6 -15
- package/quest/model/Namespace.js.map +1 -1
- package/quest/model/Progress.js +8 -20
- package/quest/model/Progress.js.map +1 -1
- package/quest/model/QuestGroupModel.js +8 -20
- package/quest/model/QuestGroupModel.js.map +1 -1
- package/quest/model/QuestGroupModelMaster.js +8 -20
- package/quest/model/QuestGroupModelMaster.js.map +1 -1
- package/quest/model/QuestModel.js +10 -25
- package/quest/model/QuestModel.js.map +1 -1
- package/quest/model/QuestModelMaster.js +10 -25
- package/quest/model/QuestModelMaster.js.map +1 -1
- package/ranking/model/CategoryModel.js +8 -20
- package/ranking/model/CategoryModel.js.map +1 -1
- package/ranking/model/CategoryModelMaster.js +8 -20
- package/ranking/model/CategoryModelMaster.js.map +1 -1
- package/ranking/model/CurrentRankingMaster.js +6 -15
- package/ranking/model/CurrentRankingMaster.js.map +1 -1
- package/ranking/model/Namespace.js +6 -15
- package/ranking/model/Namespace.js.map +1 -1
- package/ranking/model/Score.js +14 -35
- package/ranking/model/Score.js.map +1 -1
- package/ranking/model/Subscribe.js +10 -25
- package/ranking/model/Subscribe.js.map +1 -1
- package/realtime/model/Namespace.js +6 -15
- package/realtime/model/Namespace.js.map +1 -1
- package/realtime/model/Room.js +8 -20
- package/realtime/model/Room.js.map +1 -1
- package/schedule/model/CurrentEventMaster.js +6 -15
- package/schedule/model/CurrentEventMaster.js.map +1 -1
- package/schedule/model/Event.js +8 -20
- package/schedule/model/Event.js.map +1 -1
- package/schedule/model/EventMaster.js +8 -20
- package/schedule/model/EventMaster.js.map +1 -1
- package/schedule/model/Namespace.js +6 -15
- package/schedule/model/Namespace.js.map +1 -1
- package/schedule/model/Trigger.js +10 -25
- package/schedule/model/Trigger.js.map +1 -1
- package/script/model/Namespace.js +6 -15
- package/script/model/Namespace.js.map +1 -1
- package/script/model/Script.js +8 -20
- package/script/model/Script.js.map +1 -1
- package/showcase/model/CurrentShowcaseMaster.js +6 -15
- package/showcase/model/CurrentShowcaseMaster.js.map +1 -1
- package/showcase/model/Namespace.js +6 -15
- package/showcase/model/Namespace.js.map +1 -1
- package/showcase/model/SalesItemGroupMaster.js +8 -20
- package/showcase/model/SalesItemGroupMaster.js.map +1 -1
- package/showcase/model/SalesItemMaster.js +8 -20
- package/showcase/model/SalesItemMaster.js.map +1 -1
- package/showcase/model/Showcase.js +8 -20
- package/showcase/model/Showcase.js.map +1 -1
- package/showcase/model/ShowcaseMaster.js +8 -20
- package/showcase/model/ShowcaseMaster.js.map +1 -1
- package/src/account/model/Account.ts +8 -20
- package/src/account/model/Namespace.ts +6 -15
- package/src/account/model/TakeOver.ts +10 -25
- package/src/chat/model/Message.ts +10 -25
- package/src/chat/model/Namespace.ts +6 -15
- package/src/chat/model/Room.ts +8 -20
- package/src/chat/model/Subscribe.ts +10 -25
- 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 +10 -25
- package/src/datastore/model/DataObjectHistory.ts +12 -30
- package/src/datastore/model/Namespace.ts +6 -15
- package/src/deploy/model/Event.ts +8 -20
- package/src/deploy/model/Output.ts +8 -20
- package/src/deploy/model/Resource.ts +8 -20
- package/src/deploy/model/Stack.ts +6 -15
- package/src/dictionary/model/CurrentEntryMaster.ts +6 -15
- package/src/dictionary/model/Entry.ts +10 -25
- package/src/dictionary/model/EntryModel.ts +8 -20
- package/src/dictionary/model/EntryModelMaster.ts +8 -20
- package/src/dictionary/model/Namespace.ts +6 -15
- package/src/distributor/model/CurrentDistributorMaster.ts +6 -15
- package/src/distributor/model/DistributorModel.ts +8 -20
- package/src/distributor/model/DistributorModelMaster.ts +8 -20
- package/src/distributor/model/Namespace.ts +6 -15
- package/src/enhance/model/CurrentRateMaster.ts +6 -15
- package/src/enhance/model/Namespace.ts +6 -15
- package/src/enhance/model/RateModel.ts +8 -20
- package/src/enhance/model/RateModelMaster.ts +8 -20
- package/src/exchange/model/Await.ts +10 -25
- package/src/exchange/model/CurrentRateMaster.ts +6 -15
- package/src/exchange/model/Namespace.ts +6 -15
- package/src/exchange/model/RateModel.ts +8 -20
- package/src/exchange/model/RateModelMaster.ts +8 -20
- package/src/experience/model/CurrentExperienceMaster.ts +6 -15
- package/src/experience/model/ExperienceModel.ts +8 -20
- package/src/experience/model/ExperienceModelMaster.ts +8 -20
- package/src/experience/model/Namespace.ts +6 -15
- package/src/experience/model/Status.ts +12 -30
- package/src/experience/model/ThresholdMaster.ts +8 -20
- package/src/formation/model/CurrentFormMaster.ts +6 -15
- package/src/formation/model/Form.ts +12 -30
- package/src/formation/model/FormModel.ts +8 -20
- package/src/formation/model/FormModelMaster.ts +8 -20
- package/src/formation/model/Mold.ts +10 -25
- package/src/formation/model/MoldModel.ts +8 -20
- package/src/formation/model/MoldModelMaster.ts +8 -20
- package/src/formation/model/Namespace.ts +6 -15
- package/src/friend/model/BlackList.ts +8 -20
- package/src/friend/model/Follow.ts +8 -20
- package/src/friend/model/Friend.ts +8 -20
- package/src/friend/model/Inbox.ts +8 -20
- package/src/friend/model/Namespace.ts +6 -15
- package/src/friend/model/Profile.ts +8 -20
- package/src/friend/model/SendBox.ts +8 -20
- package/src/gateway/index.ts +2 -0
- package/src/gateway/model/FirebaseToken.ts +8 -20
- package/src/gateway/model/Namespace.ts +6 -15
- package/src/gateway/model/WebSocketSession.ts +10 -25
- package/src/gateway/websocket.ts +44 -0
- package/src/identifier/model/AttachSecurityPolicy.ts +4 -10
- package/src/identifier/model/Password.ts +4 -10
- package/src/identifier/model/SecurityPolicy.ts +4 -10
- package/src/identifier/model/User.ts +4 -10
- package/src/inbox/model/CurrentMessageMaster.ts +6 -15
- package/src/inbox/model/GlobalMessage.ts +8 -20
- package/src/inbox/model/GlobalMessageMaster.ts +8 -20
- package/src/inbox/model/Message.ts +10 -25
- package/src/inbox/model/Namespace.ts +6 -15
- package/src/inbox/model/Received.ts +8 -20
- package/src/inventory/model/CurrentItemModelMaster.ts +6 -15
- package/src/inventory/model/Inventory.ts +10 -25
- package/src/inventory/model/InventoryModel.ts +8 -20
- package/src/inventory/model/InventoryModelMaster.ts +8 -20
- package/src/inventory/model/ItemModel.ts +10 -25
- package/src/inventory/model/ItemModelMaster.ts +10 -25
- package/src/inventory/model/ItemSet.ts +14 -35
- package/src/inventory/model/Namespace.ts +6 -15
- package/src/inventory/model/ReferenceOf.ts +14 -35
- package/src/jobQueue/model/DeadLetterJob.ts +10 -25
- package/src/jobQueue/model/Job.ts +10 -25
- package/src/jobQueue/model/JobResult.ts +12 -30
- package/src/jobQueue/model/Namespace.ts +6 -15
- package/src/key/model/GitHubApiKey.ts +8 -20
- package/src/key/model/Key.ts +8 -20
- package/src/key/model/Namespace.ts +6 -15
- package/src/limit/model/Counter.ts +12 -30
- package/src/limit/model/CurrentLimitMaster.ts +6 -15
- package/src/limit/model/LimitModel.ts +8 -20
- package/src/limit/model/LimitModelMaster.ts +8 -20
- package/src/limit/model/Namespace.ts +6 -15
- package/src/lock/model/Mutex.ts +10 -25
- package/src/lock/model/Namespace.ts +6 -15
- package/src/log/model/Namespace.ts +6 -15
- package/src/lottery/model/Box.ts +10 -25
- package/src/lottery/model/CurrentLotteryMaster.ts +6 -15
- package/src/lottery/model/LotteryModel.ts +8 -20
- package/src/lottery/model/LotteryModelMaster.ts +8 -20
- package/src/lottery/model/Namespace.ts +6 -15
- package/src/lottery/model/PrizeTable.ts +8 -20
- package/src/lottery/model/PrizeTableMaster.ts +8 -20
- package/src/matchmaking/model/CurrentRatingModelMaster.ts +6 -15
- package/src/matchmaking/model/Gathering.ts +8 -20
- package/src/matchmaking/model/Namespace.ts +6 -15
- package/src/matchmaking/model/Rating.ts +10 -25
- package/src/matchmaking/model/RatingModel.ts +8 -20
- package/src/matchmaking/model/RatingModelMaster.ts +8 -20
- package/src/matchmaking/model/Vote.ts +10 -25
- package/src/mission/model/Complete.ts +10 -25
- package/src/mission/model/Counter.ts +10 -25
- package/src/mission/model/CounterModel.ts +8 -20
- package/src/mission/model/CounterModelMaster.ts +8 -20
- package/src/mission/model/CurrentMissionMaster.ts +6 -15
- package/src/mission/model/MissionGroupModel.ts +8 -20
- package/src/mission/model/MissionGroupModelMaster.ts +8 -20
- package/src/mission/model/MissionTaskModel.ts +10 -25
- package/src/mission/model/MissionTaskModelMaster.ts +10 -25
- package/src/mission/model/Namespace.ts +6 -15
- package/src/money/model/Namespace.ts +6 -15
- package/src/money/model/Receipt.ts +10 -25
- package/src/money/model/Wallet.ts +10 -25
- package/src/news/model/Namespace.ts +6 -15
- package/src/project/model/Account.ts +2 -5
- package/src/project/model/Billing.ts +8 -20
- package/src/project/model/BillingMethod.ts +4 -10
- package/src/project/model/Project.ts +4 -10
- package/src/project/model/Receipt.ts +4 -10
- package/src/quest/model/CompletedQuestList.ts +10 -25
- package/src/quest/model/CurrentQuestMaster.ts +6 -15
- package/src/quest/model/Namespace.ts +6 -15
- package/src/quest/model/Progress.ts +8 -20
- package/src/quest/model/QuestGroupModel.ts +8 -20
- package/src/quest/model/QuestGroupModelMaster.ts +8 -20
- package/src/quest/model/QuestModel.ts +10 -25
- package/src/quest/model/QuestModelMaster.ts +10 -25
- package/src/ranking/model/CategoryModel.ts +8 -20
- package/src/ranking/model/CategoryModelMaster.ts +8 -20
- package/src/ranking/model/CurrentRankingMaster.ts +6 -15
- package/src/ranking/model/Namespace.ts +6 -15
- package/src/ranking/model/Score.ts +14 -35
- package/src/ranking/model/Subscribe.ts +10 -25
- package/src/realtime/model/Namespace.ts +6 -15
- package/src/realtime/model/Room.ts +8 -20
- package/src/schedule/model/CurrentEventMaster.ts +6 -15
- package/src/schedule/model/Event.ts +8 -20
- package/src/schedule/model/EventMaster.ts +8 -20
- package/src/schedule/model/Namespace.ts +6 -15
- package/src/schedule/model/Trigger.ts +10 -25
- package/src/script/model/Namespace.ts +6 -15
- package/src/script/model/Script.ts +8 -20
- package/src/showcase/model/CurrentShowcaseMaster.ts +6 -15
- package/src/showcase/model/Namespace.ts +6 -15
- package/src/showcase/model/SalesItemGroupMaster.ts +8 -20
- package/src/showcase/model/SalesItemMaster.ts +8 -20
- package/src/showcase/model/Showcase.ts +8 -20
- package/src/showcase/model/ShowcaseMaster.ts +8 -20
- package/src/stamina/model/CurrentStaminaMaster.ts +6 -15
- package/src/stamina/model/MaxStaminaTable.ts +8 -20
- package/src/stamina/model/MaxStaminaTableMaster.ts +8 -20
- package/src/stamina/model/Namespace.ts +6 -15
- package/src/stamina/model/RecoverIntervalTable.ts +8 -20
- package/src/stamina/model/RecoverIntervalTableMaster.ts +8 -20
- package/src/stamina/model/RecoverValueTable.ts +8 -20
- package/src/stamina/model/RecoverValueTableMaster.ts +8 -20
- package/src/stamina/model/Stamina.ts +10 -25
- package/src/stamina/model/StaminaModel.ts +8 -20
- package/src/stamina/model/StaminaModelMaster.ts +8 -20
- package/src/version/model/AcceptVersion.ts +10 -25
- package/src/version/model/CurrentVersionMaster.ts +6 -15
- package/src/version/model/Namespace.ts +6 -15
- package/src/version/model/VersionModel.ts +8 -20
- package/src/version/model/VersionModelMaster.ts +8 -20
- package/stamina/model/CurrentStaminaMaster.js +6 -15
- package/stamina/model/CurrentStaminaMaster.js.map +1 -1
- package/stamina/model/MaxStaminaTable.js +8 -20
- package/stamina/model/MaxStaminaTable.js.map +1 -1
- package/stamina/model/MaxStaminaTableMaster.js +8 -20
- package/stamina/model/MaxStaminaTableMaster.js.map +1 -1
- package/stamina/model/Namespace.js +6 -15
- package/stamina/model/Namespace.js.map +1 -1
- package/stamina/model/RecoverIntervalTable.js +8 -20
- package/stamina/model/RecoverIntervalTable.js.map +1 -1
- package/stamina/model/RecoverIntervalTableMaster.js +8 -20
- package/stamina/model/RecoverIntervalTableMaster.js.map +1 -1
- package/stamina/model/RecoverValueTable.js +8 -20
- package/stamina/model/RecoverValueTable.js.map +1 -1
- package/stamina/model/RecoverValueTableMaster.js +8 -20
- package/stamina/model/RecoverValueTableMaster.js.map +1 -1
- package/stamina/model/Stamina.js +10 -25
- package/stamina/model/Stamina.js.map +1 -1
- package/stamina/model/StaminaModel.js +8 -20
- package/stamina/model/StaminaModel.js.map +1 -1
- package/stamina/model/StaminaModelMaster.js +8 -20
- package/stamina/model/StaminaModelMaster.js.map +1 -1
- package/version/model/AcceptVersion.js +10 -25
- package/version/model/AcceptVersion.js.map +1 -1
- package/version/model/CurrentVersionMaster.js +6 -15
- package/version/model/CurrentVersionMaster.js.map +1 -1
- package/version/model/Namespace.js +6 -15
- package/version/model/Namespace.js.map +1 -1
- package/version/model/VersionModel.js +8 -20
- package/version/model/VersionModel.js.map +1 -1
- package/version/model/VersionModelMaster.js +8 -20
- package/version/model/VersionModelMaster.js.map +1 -1
|
@@ -100,19 +100,19 @@ export default class ItemModelMaster 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.getInventoryName(grn) == null) {
|
|
112
|
+
if (this.getInventoryName(grn) == null || this.getInventoryName(grn) === '') {
|
|
113
113
|
return false;
|
|
114
114
|
}
|
|
115
|
-
if (this.getItemName(grn) == null) {
|
|
115
|
+
if (this.getItemName(grn) == null || this.getItemName(grn) === '') {
|
|
116
116
|
return false;
|
|
117
117
|
}
|
|
118
118
|
return true;
|
|
@@ -125,27 +125,12 @@ export default class ItemModelMaster implements IModel {
|
|
|
125
125
|
inventoryName: string|null,
|
|
126
126
|
itemName: string|null,
|
|
127
127
|
): string|null {
|
|
128
|
-
if (region == null || region === '') {
|
|
129
|
-
return null;
|
|
130
|
-
}
|
|
131
|
-
if (ownerId == null || ownerId === '') {
|
|
132
|
-
return null;
|
|
133
|
-
}
|
|
134
|
-
if (namespaceName == null || namespaceName === '') {
|
|
135
|
-
return null;
|
|
136
|
-
}
|
|
137
|
-
if (inventoryName == null || inventoryName === '') {
|
|
138
|
-
return null;
|
|
139
|
-
}
|
|
140
|
-
if (itemName == null || itemName === '') {
|
|
141
|
-
return null;
|
|
142
|
-
}
|
|
143
128
|
return grnFormat
|
|
144
|
-
.replace('{region}', region
|
|
145
|
-
.replace('{ownerId}', ownerId
|
|
146
|
-
.replace('{namespaceName}', namespaceName
|
|
147
|
-
.replace('{inventoryName}', inventoryName
|
|
148
|
-
.replace('{itemName}', itemName
|
|
129
|
+
.replace('{region}', region ?? '')
|
|
130
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
131
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
132
|
+
.replace('{inventoryName}', inventoryName ?? '')
|
|
133
|
+
.replace('{itemName}', itemName ?? '');
|
|
149
134
|
}
|
|
150
135
|
|
|
151
136
|
public getItemModelId(): string|null {
|
|
@@ -143,25 +143,25 @@ export default class ItemSet implements IModel {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
public static isValid(grn: string): boolean {
|
|
146
|
-
if (this.getRegion(grn) == null) {
|
|
146
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
147
147
|
return false;
|
|
148
148
|
}
|
|
149
|
-
if (this.getOwnerId(grn) == null) {
|
|
149
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
150
150
|
return false;
|
|
151
151
|
}
|
|
152
|
-
if (this.getNamespaceName(grn) == null) {
|
|
152
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
153
153
|
return false;
|
|
154
154
|
}
|
|
155
|
-
if (this.getUserId(grn) == null) {
|
|
155
|
+
if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
|
|
156
156
|
return false;
|
|
157
157
|
}
|
|
158
|
-
if (this.getInventoryName(grn) == null) {
|
|
158
|
+
if (this.getInventoryName(grn) == null || this.getInventoryName(grn) === '') {
|
|
159
159
|
return false;
|
|
160
160
|
}
|
|
161
|
-
if (this.getItemName(grn) == null) {
|
|
161
|
+
if (this.getItemName(grn) == null || this.getItemName(grn) === '') {
|
|
162
162
|
return false;
|
|
163
163
|
}
|
|
164
|
-
if (this.getItemSetName(grn) == null) {
|
|
164
|
+
if (this.getItemSetName(grn) == null || this.getItemSetName(grn) === '') {
|
|
165
165
|
return false;
|
|
166
166
|
}
|
|
167
167
|
return true;
|
|
@@ -176,35 +176,14 @@ export default class ItemSet implements IModel {
|
|
|
176
176
|
itemName: string|null,
|
|
177
177
|
itemSetName: string|null,
|
|
178
178
|
): string|null {
|
|
179
|
-
if (region == null || region === '') {
|
|
180
|
-
return null;
|
|
181
|
-
}
|
|
182
|
-
if (ownerId == null || ownerId === '') {
|
|
183
|
-
return null;
|
|
184
|
-
}
|
|
185
|
-
if (namespaceName == null || namespaceName === '') {
|
|
186
|
-
return null;
|
|
187
|
-
}
|
|
188
|
-
if (userId == null || userId === '') {
|
|
189
|
-
return null;
|
|
190
|
-
}
|
|
191
|
-
if (inventoryName == null || inventoryName === '') {
|
|
192
|
-
return null;
|
|
193
|
-
}
|
|
194
|
-
if (itemName == null || itemName === '') {
|
|
195
|
-
return null;
|
|
196
|
-
}
|
|
197
|
-
if (itemSetName == null || itemSetName === '') {
|
|
198
|
-
return null;
|
|
199
|
-
}
|
|
200
179
|
return grnFormat
|
|
201
|
-
.replace('{region}', region
|
|
202
|
-
.replace('{ownerId}', ownerId
|
|
203
|
-
.replace('{namespaceName}', namespaceName
|
|
204
|
-
.replace('{userId}', userId
|
|
205
|
-
.replace('{inventoryName}', inventoryName
|
|
206
|
-
.replace('{itemName}', itemName
|
|
207
|
-
.replace('{itemSetName}', itemSetName
|
|
180
|
+
.replace('{region}', region ?? '')
|
|
181
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
182
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
183
|
+
.replace('{userId}', userId ?? '')
|
|
184
|
+
.replace('{inventoryName}', inventoryName ?? '')
|
|
185
|
+
.replace('{itemName}', itemName ?? '')
|
|
186
|
+
.replace('{itemSetName}', itemSetName ?? '');
|
|
208
187
|
}
|
|
209
188
|
|
|
210
189
|
public getItemSetId(): string|null {
|
|
@@ -67,13 +67,13 @@ export default class Namespace implements IModel {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
public static isValid(grn: string): boolean {
|
|
70
|
-
if (this.getRegion(grn) == null) {
|
|
70
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
71
71
|
return false;
|
|
72
72
|
}
|
|
73
|
-
if (this.getOwnerId(grn) == null) {
|
|
73
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
74
74
|
return false;
|
|
75
75
|
}
|
|
76
|
-
if (this.getNamespaceName(grn) == null) {
|
|
76
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
77
77
|
return false;
|
|
78
78
|
}
|
|
79
79
|
return true;
|
|
@@ -84,19 +84,10 @@ export default class Namespace implements IModel {
|
|
|
84
84
|
ownerId: string|null,
|
|
85
85
|
namespaceName: string|null,
|
|
86
86
|
): string|null {
|
|
87
|
-
if (region == null || region === '') {
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
if (ownerId == null || ownerId === '') {
|
|
91
|
-
return null;
|
|
92
|
-
}
|
|
93
|
-
if (namespaceName == null || namespaceName === '') {
|
|
94
|
-
return null;
|
|
95
|
-
}
|
|
96
87
|
return grnFormat
|
|
97
|
-
.replace('{region}', region
|
|
98
|
-
.replace('{ownerId}', ownerId
|
|
99
|
-
.replace('{namespaceName}', namespaceName
|
|
88
|
+
.replace('{region}', region ?? '')
|
|
89
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
90
|
+
.replace('{namespaceName}', namespaceName ?? '');
|
|
100
91
|
}
|
|
101
92
|
|
|
102
93
|
public getNamespaceId(): string|null {
|
|
@@ -134,25 +134,25 @@ export default class ReferenceOf implements IModel {
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
public static isValid(grn: string): boolean {
|
|
137
|
-
if (this.getRegion(grn) == null) {
|
|
137
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
138
138
|
return false;
|
|
139
139
|
}
|
|
140
|
-
if (this.getOwnerId(grn) == null) {
|
|
140
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
141
141
|
return false;
|
|
142
142
|
}
|
|
143
|
-
if (this.getNamespaceName(grn) == null) {
|
|
143
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
144
144
|
return false;
|
|
145
145
|
}
|
|
146
|
-
if (this.getUserId(grn) == null) {
|
|
146
|
+
if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
|
|
147
147
|
return false;
|
|
148
148
|
}
|
|
149
|
-
if (this.getInventoryName(grn) == null) {
|
|
149
|
+
if (this.getInventoryName(grn) == null || this.getInventoryName(grn) === '') {
|
|
150
150
|
return false;
|
|
151
151
|
}
|
|
152
|
-
if (this.getItemName(grn) == null) {
|
|
152
|
+
if (this.getItemName(grn) == null || this.getItemName(grn) === '') {
|
|
153
153
|
return false;
|
|
154
154
|
}
|
|
155
|
-
if (this.getItemSetName(grn) == null) {
|
|
155
|
+
if (this.getItemSetName(grn) == null || this.getItemSetName(grn) === '') {
|
|
156
156
|
return false;
|
|
157
157
|
}
|
|
158
158
|
return true;
|
|
@@ -167,35 +167,14 @@ export default class ReferenceOf implements IModel {
|
|
|
167
167
|
itemName: string|null,
|
|
168
168
|
itemSetName: string|null,
|
|
169
169
|
): string|null {
|
|
170
|
-
if (region == null || region === '') {
|
|
171
|
-
return null;
|
|
172
|
-
}
|
|
173
|
-
if (ownerId == null || ownerId === '') {
|
|
174
|
-
return null;
|
|
175
|
-
}
|
|
176
|
-
if (namespaceName == null || namespaceName === '') {
|
|
177
|
-
return null;
|
|
178
|
-
}
|
|
179
|
-
if (userId == null || userId === '') {
|
|
180
|
-
return null;
|
|
181
|
-
}
|
|
182
|
-
if (inventoryName == null || inventoryName === '') {
|
|
183
|
-
return null;
|
|
184
|
-
}
|
|
185
|
-
if (itemName == null || itemName === '') {
|
|
186
|
-
return null;
|
|
187
|
-
}
|
|
188
|
-
if (itemSetName == null || itemSetName === '') {
|
|
189
|
-
return null;
|
|
190
|
-
}
|
|
191
170
|
return grnFormat
|
|
192
|
-
.replace('{region}', region
|
|
193
|
-
.replace('{ownerId}', ownerId
|
|
194
|
-
.replace('{namespaceName}', namespaceName
|
|
195
|
-
.replace('{userId}', userId
|
|
196
|
-
.replace('{inventoryName}', inventoryName
|
|
197
|
-
.replace('{itemName}', itemName
|
|
198
|
-
.replace('{itemSetName}', itemSetName
|
|
171
|
+
.replace('{region}', region ?? '')
|
|
172
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
173
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
174
|
+
.replace('{userId}', userId ?? '')
|
|
175
|
+
.replace('{inventoryName}', inventoryName ?? '')
|
|
176
|
+
.replace('{itemName}', itemName ?? '')
|
|
177
|
+
.replace('{itemSetName}', itemSetName ?? '');
|
|
199
178
|
}
|
|
200
179
|
|
|
201
180
|
public getReferenceOfId(): string|null {
|
|
@@ -99,19 +99,19 @@ export default class DeadLetterJob implements IModel {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
public static isValid(grn: string): boolean {
|
|
102
|
-
if (this.getRegion(grn) == null) {
|
|
102
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
103
103
|
return false;
|
|
104
104
|
}
|
|
105
|
-
if (this.getOwnerId(grn) == null) {
|
|
105
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
106
106
|
return false;
|
|
107
107
|
}
|
|
108
|
-
if (this.getNamespaceName(grn) == null) {
|
|
108
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
109
109
|
return false;
|
|
110
110
|
}
|
|
111
|
-
if (this.getUserId(grn) == null) {
|
|
111
|
+
if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
|
|
112
112
|
return false;
|
|
113
113
|
}
|
|
114
|
-
if (this.getDeadLetterJobName(grn) == null) {
|
|
114
|
+
if (this.getDeadLetterJobName(grn) == null || this.getDeadLetterJobName(grn) === '') {
|
|
115
115
|
return false;
|
|
116
116
|
}
|
|
117
117
|
return true;
|
|
@@ -124,27 +124,12 @@ export default class DeadLetterJob implements IModel {
|
|
|
124
124
|
userId: string|null,
|
|
125
125
|
deadLetterJobName: string|null,
|
|
126
126
|
): string|null {
|
|
127
|
-
if (region == null || region === '') {
|
|
128
|
-
return null;
|
|
129
|
-
}
|
|
130
|
-
if (ownerId == null || ownerId === '') {
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
if (namespaceName == null || namespaceName === '') {
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
if (userId == null || userId === '') {
|
|
137
|
-
return null;
|
|
138
|
-
}
|
|
139
|
-
if (deadLetterJobName == null || deadLetterJobName === '') {
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
127
|
return grnFormat
|
|
143
|
-
.replace('{region}', region
|
|
144
|
-
.replace('{ownerId}', ownerId
|
|
145
|
-
.replace('{namespaceName}', namespaceName
|
|
146
|
-
.replace('{userId}', userId
|
|
147
|
-
.replace('{deadLetterJobName}', deadLetterJobName
|
|
128
|
+
.replace('{region}', region ?? '')
|
|
129
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
130
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
131
|
+
.replace('{userId}', userId ?? '')
|
|
132
|
+
.replace('{deadLetterJobName}', deadLetterJobName ?? '');
|
|
148
133
|
}
|
|
149
134
|
|
|
150
135
|
public getDeadLetterJobId(): string|null {
|
|
@@ -99,19 +99,19 @@ export default class Job implements IModel {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
public static isValid(grn: string): boolean {
|
|
102
|
-
if (this.getRegion(grn) == null) {
|
|
102
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
103
103
|
return false;
|
|
104
104
|
}
|
|
105
|
-
if (this.getOwnerId(grn) == null) {
|
|
105
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
106
106
|
return false;
|
|
107
107
|
}
|
|
108
|
-
if (this.getNamespaceName(grn) == null) {
|
|
108
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
109
109
|
return false;
|
|
110
110
|
}
|
|
111
|
-
if (this.getUserId(grn) == null) {
|
|
111
|
+
if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
|
|
112
112
|
return false;
|
|
113
113
|
}
|
|
114
|
-
if (this.getJobName(grn) == null) {
|
|
114
|
+
if (this.getJobName(grn) == null || this.getJobName(grn) === '') {
|
|
115
115
|
return false;
|
|
116
116
|
}
|
|
117
117
|
return true;
|
|
@@ -124,27 +124,12 @@ export default class Job implements IModel {
|
|
|
124
124
|
userId: string|null,
|
|
125
125
|
jobName: string|null,
|
|
126
126
|
): string|null {
|
|
127
|
-
if (region == null || region === '') {
|
|
128
|
-
return null;
|
|
129
|
-
}
|
|
130
|
-
if (ownerId == null || ownerId === '') {
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
if (namespaceName == null || namespaceName === '') {
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
if (userId == null || userId === '') {
|
|
137
|
-
return null;
|
|
138
|
-
}
|
|
139
|
-
if (jobName == null || jobName === '') {
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
127
|
return grnFormat
|
|
143
|
-
.replace('{region}', region
|
|
144
|
-
.replace('{ownerId}', ownerId
|
|
145
|
-
.replace('{namespaceName}', namespaceName
|
|
146
|
-
.replace('{userId}', userId
|
|
147
|
-
.replace('{jobName}', jobName
|
|
128
|
+
.replace('{region}', region ?? '')
|
|
129
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
130
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
131
|
+
.replace('{userId}', userId ?? '')
|
|
132
|
+
.replace('{jobName}', jobName ?? '');
|
|
148
133
|
}
|
|
149
134
|
|
|
150
135
|
public getJobId(): string|null {
|
|
@@ -116,22 +116,22 @@ export default class JobResult implements IModel {
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
public static isValid(grn: string): boolean {
|
|
119
|
-
if (this.getRegion(grn) == null) {
|
|
119
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
120
120
|
return false;
|
|
121
121
|
}
|
|
122
|
-
if (this.getOwnerId(grn) == null) {
|
|
122
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
123
123
|
return false;
|
|
124
124
|
}
|
|
125
|
-
if (this.getNamespaceName(grn) == null) {
|
|
125
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
126
126
|
return false;
|
|
127
127
|
}
|
|
128
|
-
if (this.getUserId(grn) == null) {
|
|
128
|
+
if (this.getUserId(grn) == null || this.getUserId(grn) === '') {
|
|
129
129
|
return false;
|
|
130
130
|
}
|
|
131
|
-
if (this.getJobName(grn) == null) {
|
|
131
|
+
if (this.getJobName(grn) == null || this.getJobName(grn) === '') {
|
|
132
132
|
return false;
|
|
133
133
|
}
|
|
134
|
-
if (this.getTryNumber(grn) == null) {
|
|
134
|
+
if (this.getTryNumber(grn) == null || this.getTryNumber(grn) === '') {
|
|
135
135
|
return false;
|
|
136
136
|
}
|
|
137
137
|
return true;
|
|
@@ -145,31 +145,13 @@ export default class JobResult implements IModel {
|
|
|
145
145
|
jobName: string|null,
|
|
146
146
|
tryNumber: string|null,
|
|
147
147
|
): string|null {
|
|
148
|
-
if (region == null || region === '') {
|
|
149
|
-
return null;
|
|
150
|
-
}
|
|
151
|
-
if (ownerId == null || ownerId === '') {
|
|
152
|
-
return null;
|
|
153
|
-
}
|
|
154
|
-
if (namespaceName == null || namespaceName === '') {
|
|
155
|
-
return null;
|
|
156
|
-
}
|
|
157
|
-
if (userId == null || userId === '') {
|
|
158
|
-
return null;
|
|
159
|
-
}
|
|
160
|
-
if (jobName == null || jobName === '') {
|
|
161
|
-
return null;
|
|
162
|
-
}
|
|
163
|
-
if (tryNumber == null || tryNumber === '') {
|
|
164
|
-
return null;
|
|
165
|
-
}
|
|
166
148
|
return grnFormat
|
|
167
|
-
.replace('{region}', region
|
|
168
|
-
.replace('{ownerId}', ownerId
|
|
169
|
-
.replace('{namespaceName}', namespaceName
|
|
170
|
-
.replace('{userId}', userId
|
|
171
|
-
.replace('{jobName}', jobName
|
|
172
|
-
.replace('{tryNumber}', tryNumber
|
|
149
|
+
.replace('{region}', region ?? '')
|
|
150
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
151
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
152
|
+
.replace('{userId}', userId ?? '')
|
|
153
|
+
.replace('{jobName}', jobName ?? '')
|
|
154
|
+
.replace('{tryNumber}', tryNumber ?? '');
|
|
173
155
|
}
|
|
174
156
|
|
|
175
157
|
public getJobResultId(): string|null {
|
|
@@ -65,13 +65,13 @@ export default class Namespace implements IModel {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
public static isValid(grn: string): boolean {
|
|
68
|
-
if (this.getRegion(grn) == null) {
|
|
68
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
|
-
if (this.getOwnerId(grn) == null) {
|
|
71
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
72
72
|
return false;
|
|
73
73
|
}
|
|
74
|
-
if (this.getNamespaceName(grn) == null) {
|
|
74
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
75
75
|
return false;
|
|
76
76
|
}
|
|
77
77
|
return true;
|
|
@@ -82,19 +82,10 @@ export default class Namespace implements IModel {
|
|
|
82
82
|
ownerId: string|null,
|
|
83
83
|
namespaceName: string|null,
|
|
84
84
|
): string|null {
|
|
85
|
-
if (region == null || region === '') {
|
|
86
|
-
return null;
|
|
87
|
-
}
|
|
88
|
-
if (ownerId == null || ownerId === '') {
|
|
89
|
-
return null;
|
|
90
|
-
}
|
|
91
|
-
if (namespaceName == null || namespaceName === '') {
|
|
92
|
-
return null;
|
|
93
|
-
}
|
|
94
85
|
return grnFormat
|
|
95
|
-
.replace('{region}', region
|
|
96
|
-
.replace('{ownerId}', ownerId
|
|
97
|
-
.replace('{namespaceName}', namespaceName
|
|
86
|
+
.replace('{region}', region ?? '')
|
|
87
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
88
|
+
.replace('{namespaceName}', namespaceName ?? '');
|
|
98
89
|
}
|
|
99
90
|
|
|
100
91
|
public getNamespaceId(): string|null {
|
|
@@ -78,16 +78,16 @@ export default class GitHubApiKey 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.getApiKeyName(grn) == null) {
|
|
90
|
+
if (this.getApiKeyName(grn) == null || this.getApiKeyName(grn) === '') {
|
|
91
91
|
return false;
|
|
92
92
|
}
|
|
93
93
|
return true;
|
|
@@ -99,23 +99,11 @@ export default class GitHubApiKey implements IModel {
|
|
|
99
99
|
namespaceName: string|null,
|
|
100
100
|
apiKeyName: string|null,
|
|
101
101
|
): string|null {
|
|
102
|
-
if (region == null || region === '') {
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
if (ownerId == null || ownerId === '') {
|
|
106
|
-
return null;
|
|
107
|
-
}
|
|
108
|
-
if (namespaceName == null || namespaceName === '') {
|
|
109
|
-
return null;
|
|
110
|
-
}
|
|
111
|
-
if (apiKeyName == null || apiKeyName === '') {
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
114
102
|
return grnFormat
|
|
115
|
-
.replace('{region}', region
|
|
116
|
-
.replace('{ownerId}', ownerId
|
|
117
|
-
.replace('{namespaceName}', namespaceName
|
|
118
|
-
.replace('{apiKeyName}', apiKeyName
|
|
103
|
+
.replace('{region}', region ?? '')
|
|
104
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
105
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
106
|
+
.replace('{apiKeyName}', apiKeyName ?? '');
|
|
119
107
|
}
|
|
120
108
|
|
|
121
109
|
public getApiKeyId(): string|null {
|
package/src/key/model/Key.ts
CHANGED
|
@@ -77,16 +77,16 @@ export default class Key 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.getKeyName(grn) == null) {
|
|
89
|
+
if (this.getKeyName(grn) == null || this.getKeyName(grn) === '') {
|
|
90
90
|
return false;
|
|
91
91
|
}
|
|
92
92
|
return true;
|
|
@@ -98,23 +98,11 @@ export default class Key implements IModel {
|
|
|
98
98
|
namespaceName: string|null,
|
|
99
99
|
keyName: string|null,
|
|
100
100
|
): string|null {
|
|
101
|
-
if (region == null || region === '') {
|
|
102
|
-
return null;
|
|
103
|
-
}
|
|
104
|
-
if (ownerId == null || ownerId === '') {
|
|
105
|
-
return null;
|
|
106
|
-
}
|
|
107
|
-
if (namespaceName == null || namespaceName === '') {
|
|
108
|
-
return null;
|
|
109
|
-
}
|
|
110
|
-
if (keyName == null || keyName === '') {
|
|
111
|
-
return null;
|
|
112
|
-
}
|
|
113
101
|
return grnFormat
|
|
114
|
-
.replace('{region}', region
|
|
115
|
-
.replace('{ownerId}', ownerId
|
|
116
|
-
.replace('{namespaceName}', namespaceName
|
|
117
|
-
.replace('{keyName}', keyName
|
|
102
|
+
.replace('{region}', region ?? '')
|
|
103
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
104
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
105
|
+
.replace('{keyName}', keyName ?? '');
|
|
118
106
|
}
|
|
119
107
|
|
|
120
108
|
public getKeyId(): string|null {
|
|
@@ -63,13 +63,13 @@ export default class Namespace 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.getNamespaceName(grn) == null) {
|
|
72
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
73
73
|
return false;
|
|
74
74
|
}
|
|
75
75
|
return true;
|
|
@@ -80,19 +80,10 @@ export default class Namespace implements IModel {
|
|
|
80
80
|
ownerId: string|null,
|
|
81
81
|
namespaceName: string|null,
|
|
82
82
|
): string|null {
|
|
83
|
-
if (region == null || region === '') {
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
if (ownerId == null || ownerId === '') {
|
|
87
|
-
return null;
|
|
88
|
-
}
|
|
89
|
-
if (namespaceName == null || namespaceName === '') {
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
83
|
return grnFormat
|
|
93
|
-
.replace('{region}', region
|
|
94
|
-
.replace('{ownerId}', ownerId
|
|
95
|
-
.replace('{namespaceName}', namespaceName
|
|
84
|
+
.replace('{region}', region ?? '')
|
|
85
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
86
|
+
.replace('{namespaceName}', namespaceName ?? '');
|
|
96
87
|
}
|
|
97
88
|
|
|
98
89
|
public getNamespaceId(): string|null {
|