gs2 1.0.3 → 1.0.4
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.d.ts +6 -0
- package/account/model/Account.js +79 -0
- package/account/model/Account.js.map +1 -1
- package/account/model/Namespace.d.ts +5 -0
- package/account/model/Namespace.js +58 -0
- package/account/model/Namespace.js.map +1 -1
- package/account/model/TakeOver.d.ts +7 -0
- package/account/model/TakeOver.js +102 -0
- package/account/model/TakeOver.js.map +1 -1
- package/auth/index.d.ts +5 -4
- package/auth/index.js +9 -6
- package/auth/index.js.map +1 -1
- package/auth/model/AccessToken.d.ts +4 -2
- package/auth/model/AccessToken.js +8 -2
- package/auth/model/AccessToken.js.map +1 -1
- package/auth/model/index.d.ts +2 -1
- package/auth/model/index.js +3 -2
- package/auth/model/index.js.map +1 -1
- package/auth/request/LoginBySignatureRequest.d.ts +2 -2
- package/auth/request/LoginBySignatureRequest.js +1 -2
- package/auth/request/LoginBySignatureRequest.js.map +1 -1
- package/auth/request/LoginRequest.d.ts +2 -2
- package/auth/request/LoginRequest.js +1 -2
- package/auth/request/LoginRequest.js.map +1 -1
- package/auth/request/index.d.ts +3 -2
- package/auth/request/index.js +5 -4
- package/auth/request/index.js.map +1 -1
- package/auth/rest.d.ts +1 -1
- package/auth/rest.js +1 -2
- package/auth/rest.js.map +1 -1
- package/auth/result/LoginBySignatureResult.d.ts +2 -2
- package/auth/result/LoginBySignatureResult.js +1 -2
- package/auth/result/LoginBySignatureResult.js.map +1 -1
- package/auth/result/LoginResult.d.ts +2 -2
- package/auth/result/LoginResult.js +1 -2
- package/auth/result/LoginResult.js.map +1 -1
- package/auth/result/index.d.ts +3 -2
- package/auth/result/index.js +5 -4
- package/auth/result/index.js.map +1 -1
- package/chat/model/Message.d.ts +7 -0
- package/chat/model/Message.js +102 -0
- package/chat/model/Message.js.map +1 -1
- package/chat/model/Namespace.d.ts +5 -0
- package/chat/model/Namespace.js +58 -0
- package/chat/model/Namespace.js.map +1 -1
- package/chat/model/Room.d.ts +6 -0
- package/chat/model/Room.js +79 -0
- package/chat/model/Room.js.map +1 -1
- package/chat/model/Subscribe.d.ts +7 -0
- package/chat/model/Subscribe.js +102 -0
- package/chat/model/Subscribe.js.map +1 -1
- package/datastore/model/DataObject.d.ts +7 -0
- package/datastore/model/DataObject.js +102 -0
- package/datastore/model/DataObject.js.map +1 -1
- package/datastore/model/DataObjectHistory.d.ts +8 -0
- package/datastore/model/DataObjectHistory.js +127 -0
- package/datastore/model/DataObjectHistory.js.map +1 -1
- package/datastore/model/Namespace.d.ts +5 -0
- package/datastore/model/Namespace.js +58 -0
- package/datastore/model/Namespace.js.map +1 -1
- package/deploy/model/Event.d.ts +6 -0
- package/deploy/model/Event.js +79 -0
- package/deploy/model/Event.js.map +1 -1
- package/deploy/model/Output.d.ts +6 -0
- package/deploy/model/Output.js +79 -0
- package/deploy/model/Output.js.map +1 -1
- package/deploy/model/Resource.d.ts +6 -0
- package/deploy/model/Resource.js +79 -0
- package/deploy/model/Resource.js.map +1 -1
- package/deploy/model/Stack.d.ts +5 -0
- package/deploy/model/Stack.js +58 -0
- package/deploy/model/Stack.js.map +1 -1
- package/dictionary/model/CurrentEntryMaster.d.ts +5 -0
- package/dictionary/model/CurrentEntryMaster.js +58 -0
- package/dictionary/model/CurrentEntryMaster.js.map +1 -1
- package/dictionary/model/Entry.d.ts +7 -0
- package/dictionary/model/Entry.js +102 -0
- package/dictionary/model/Entry.js.map +1 -1
- package/dictionary/model/EntryModel.d.ts +6 -0
- package/dictionary/model/EntryModel.js +79 -0
- package/dictionary/model/EntryModel.js.map +1 -1
- package/dictionary/model/EntryModelMaster.d.ts +6 -0
- package/dictionary/model/EntryModelMaster.js +79 -0
- package/dictionary/model/EntryModelMaster.js.map +1 -1
- package/dictionary/model/Namespace.d.ts +5 -0
- package/dictionary/model/Namespace.js +58 -0
- package/dictionary/model/Namespace.js.map +1 -1
- package/distributor/model/CurrentDistributorMaster.d.ts +5 -0
- package/distributor/model/CurrentDistributorMaster.js +58 -0
- package/distributor/model/CurrentDistributorMaster.js.map +1 -1
- package/distributor/model/DistributorModel.d.ts +6 -0
- package/distributor/model/DistributorModel.js +79 -0
- package/distributor/model/DistributorModel.js.map +1 -1
- package/distributor/model/DistributorModelMaster.d.ts +6 -0
- package/distributor/model/DistributorModelMaster.js +79 -0
- package/distributor/model/DistributorModelMaster.js.map +1 -1
- package/distributor/model/Namespace.d.ts +5 -0
- package/distributor/model/Namespace.js +58 -0
- package/distributor/model/Namespace.js.map +1 -1
- package/enhance/model/CurrentRateMaster.d.ts +5 -0
- package/enhance/model/CurrentRateMaster.js +58 -0
- package/enhance/model/CurrentRateMaster.js.map +1 -1
- package/enhance/model/Namespace.d.ts +5 -0
- package/enhance/model/Namespace.js +58 -0
- package/enhance/model/Namespace.js.map +1 -1
- package/enhance/model/Progress.d.ts +2 -0
- package/enhance/model/Progress.js +7 -0
- package/enhance/model/Progress.js.map +1 -1
- package/enhance/model/RateModel.d.ts +6 -0
- package/enhance/model/RateModel.js +79 -0
- package/enhance/model/RateModel.js.map +1 -1
- package/enhance/model/RateModelMaster.d.ts +6 -0
- package/enhance/model/RateModelMaster.js +79 -0
- package/enhance/model/RateModelMaster.js.map +1 -1
- package/exchange/model/Await.d.ts +7 -0
- package/exchange/model/Await.js +102 -0
- package/exchange/model/Await.js.map +1 -1
- package/exchange/model/CurrentRateMaster.d.ts +5 -0
- package/exchange/model/CurrentRateMaster.js +58 -0
- package/exchange/model/CurrentRateMaster.js.map +1 -1
- package/exchange/model/Namespace.d.ts +5 -0
- package/exchange/model/Namespace.js +58 -0
- package/exchange/model/Namespace.js.map +1 -1
- package/exchange/model/RateModel.d.ts +6 -0
- package/exchange/model/RateModel.js +79 -0
- package/exchange/model/RateModel.js.map +1 -1
- package/exchange/model/RateModelMaster.d.ts +6 -0
- package/exchange/model/RateModelMaster.js +79 -0
- package/exchange/model/RateModelMaster.js.map +1 -1
- package/experience/model/CurrentExperienceMaster.d.ts +5 -0
- package/experience/model/CurrentExperienceMaster.js +58 -0
- package/experience/model/CurrentExperienceMaster.js.map +1 -1
- package/experience/model/ExperienceModel.d.ts +6 -0
- package/experience/model/ExperienceModel.js +79 -0
- package/experience/model/ExperienceModel.js.map +1 -1
- package/experience/model/ExperienceModelMaster.d.ts +6 -0
- package/experience/model/ExperienceModelMaster.js +79 -0
- package/experience/model/ExperienceModelMaster.js.map +1 -1
- package/experience/model/Namespace.d.ts +5 -0
- package/experience/model/Namespace.js +58 -0
- package/experience/model/Namespace.js.map +1 -1
- package/experience/model/Status.d.ts +8 -0
- package/experience/model/Status.js +127 -0
- package/experience/model/Status.js.map +1 -1
- package/experience/model/ThresholdMaster.d.ts +6 -0
- package/experience/model/ThresholdMaster.js +79 -0
- package/experience/model/ThresholdMaster.js.map +1 -1
- package/formation/model/CurrentFormMaster.d.ts +5 -0
- package/formation/model/CurrentFormMaster.js +58 -0
- package/formation/model/CurrentFormMaster.js.map +1 -1
- package/formation/model/Form.d.ts +8 -0
- package/formation/model/Form.js +127 -0
- package/formation/model/Form.js.map +1 -1
- package/formation/model/FormModel.d.ts +6 -0
- package/formation/model/FormModel.js +79 -0
- package/formation/model/FormModel.js.map +1 -1
- package/formation/model/FormModelMaster.d.ts +6 -0
- package/formation/model/FormModelMaster.js +79 -0
- package/formation/model/FormModelMaster.js.map +1 -1
- package/formation/model/Mold.d.ts +7 -0
- package/formation/model/Mold.js +102 -0
- package/formation/model/Mold.js.map +1 -1
- package/formation/model/MoldModel.d.ts +6 -0
- package/formation/model/MoldModel.js +79 -0
- package/formation/model/MoldModel.js.map +1 -1
- package/formation/model/MoldModelMaster.d.ts +6 -0
- package/formation/model/MoldModelMaster.js +79 -0
- package/formation/model/MoldModelMaster.js.map +1 -1
- package/formation/model/Namespace.d.ts +5 -0
- package/formation/model/Namespace.js +58 -0
- package/formation/model/Namespace.js.map +1 -1
- package/friend/model/BlackList.d.ts +6 -0
- package/friend/model/BlackList.js +79 -0
- package/friend/model/BlackList.js.map +1 -1
- package/friend/model/Follow.d.ts +6 -0
- package/friend/model/Follow.js +79 -0
- package/friend/model/Follow.js.map +1 -1
- package/friend/model/FollowUser.d.ts +2 -0
- package/friend/model/FollowUser.js +7 -0
- package/friend/model/FollowUser.js.map +1 -1
- package/friend/model/Friend.d.ts +6 -0
- package/friend/model/Friend.js +79 -0
- package/friend/model/Friend.js.map +1 -1
- package/friend/model/FriendRequest.d.ts +2 -0
- package/friend/model/FriendRequest.js +7 -0
- package/friend/model/FriendRequest.js.map +1 -1
- package/friend/model/FriendUser.d.ts +2 -0
- package/friend/model/FriendUser.js +7 -0
- package/friend/model/FriendUser.js.map +1 -1
- package/friend/model/Inbox.d.ts +6 -0
- package/friend/model/Inbox.js +79 -0
- package/friend/model/Inbox.js.map +1 -1
- package/friend/model/Namespace.d.ts +5 -0
- package/friend/model/Namespace.js +58 -0
- package/friend/model/Namespace.js.map +1 -1
- package/friend/model/Profile.d.ts +6 -0
- package/friend/model/Profile.js +79 -0
- package/friend/model/Profile.js.map +1 -1
- package/friend/model/PublicProfile.d.ts +2 -0
- package/friend/model/PublicProfile.js +7 -0
- package/friend/model/PublicProfile.js.map +1 -1
- package/friend/model/ReceiveFriendRequest.d.ts +2 -0
- package/friend/model/ReceiveFriendRequest.js +7 -0
- package/friend/model/ReceiveFriendRequest.js.map +1 -1
- package/friend/model/SendBox.d.ts +6 -0
- package/friend/model/SendBox.js +79 -0
- package/friend/model/SendBox.js.map +1 -1
- package/friend/model/SendFriendRequest.d.ts +2 -0
- package/friend/model/SendFriendRequest.js +7 -0
- package/friend/model/SendFriendRequest.js.map +1 -1
- package/gateway/model/FirebaseToken.d.ts +6 -0
- package/gateway/model/FirebaseToken.js +79 -0
- package/gateway/model/FirebaseToken.js.map +1 -1
- package/gateway/model/Namespace.d.ts +5 -0
- package/gateway/model/Namespace.js +58 -0
- package/gateway/model/Namespace.js.map +1 -1
- package/gateway/model/WebSocketSession.d.ts +7 -0
- package/gateway/model/WebSocketSession.js +102 -0
- package/gateway/model/WebSocketSession.js.map +1 -1
- package/identifier/model/AttachSecurityPolicy.d.ts +4 -0
- package/identifier/model/AttachSecurityPolicy.js +39 -0
- package/identifier/model/AttachSecurityPolicy.js.map +1 -1
- package/identifier/model/Identifier.d.ts +2 -0
- package/identifier/model/Identifier.js +7 -0
- package/identifier/model/Identifier.js.map +1 -1
- package/identifier/model/Password.d.ts +4 -0
- package/identifier/model/Password.js +39 -0
- package/identifier/model/Password.js.map +1 -1
- package/identifier/model/SecurityPolicy.d.ts +4 -0
- package/identifier/model/SecurityPolicy.js +39 -0
- package/identifier/model/SecurityPolicy.js.map +1 -1
- package/identifier/model/User.d.ts +4 -0
- package/identifier/model/User.js +39 -0
- package/identifier/model/User.js.map +1 -1
- package/inbox/model/CurrentMessageMaster.d.ts +5 -0
- package/inbox/model/CurrentMessageMaster.js +58 -0
- package/inbox/model/CurrentMessageMaster.js.map +1 -1
- package/inbox/model/GlobalMessage.d.ts +6 -0
- package/inbox/model/GlobalMessage.js +79 -0
- package/inbox/model/GlobalMessage.js.map +1 -1
- package/inbox/model/GlobalMessageMaster.d.ts +6 -0
- package/inbox/model/GlobalMessageMaster.js +79 -0
- package/inbox/model/GlobalMessageMaster.js.map +1 -1
- package/inbox/model/Message.d.ts +7 -0
- package/inbox/model/Message.js +102 -0
- package/inbox/model/Message.js.map +1 -1
- package/inbox/model/Namespace.d.ts +5 -0
- package/inbox/model/Namespace.js +58 -0
- package/inbox/model/Namespace.js.map +1 -1
- package/inbox/model/Received.d.ts +6 -0
- package/inbox/model/Received.js +79 -0
- package/inbox/model/Received.js.map +1 -1
- package/inventory/model/CurrentItemModelMaster.d.ts +5 -0
- package/inventory/model/CurrentItemModelMaster.js +58 -0
- package/inventory/model/CurrentItemModelMaster.js.map +1 -1
- package/inventory/model/Inventory.d.ts +7 -0
- package/inventory/model/Inventory.js +102 -0
- package/inventory/model/Inventory.js.map +1 -1
- package/inventory/model/InventoryModel.d.ts +6 -0
- package/inventory/model/InventoryModel.js +79 -0
- package/inventory/model/InventoryModel.js.map +1 -1
- package/inventory/model/InventoryModelMaster.d.ts +6 -0
- package/inventory/model/InventoryModelMaster.js +79 -0
- package/inventory/model/InventoryModelMaster.js.map +1 -1
- package/inventory/model/ItemModel.d.ts +7 -0
- package/inventory/model/ItemModel.js +102 -0
- package/inventory/model/ItemModel.js.map +1 -1
- package/inventory/model/ItemModelMaster.d.ts +7 -0
- package/inventory/model/ItemModelMaster.js +102 -0
- package/inventory/model/ItemModelMaster.js.map +1 -1
- package/inventory/model/ItemSet.d.ts +9 -0
- package/inventory/model/ItemSet.js +154 -0
- package/inventory/model/ItemSet.js.map +1 -1
- package/inventory/model/Namespace.d.ts +5 -0
- package/inventory/model/Namespace.js +58 -0
- package/inventory/model/Namespace.js.map +1 -1
- package/inventory/model/ReferenceOf.d.ts +9 -0
- package/inventory/model/ReferenceOf.js +154 -0
- package/inventory/model/ReferenceOf.js.map +1 -1
- package/jest.config.cjs +0 -1
- package/jobQueue/model/DeadLetterJob.d.ts +7 -0
- package/jobQueue/model/DeadLetterJob.js +102 -0
- package/jobQueue/model/DeadLetterJob.js.map +1 -1
- package/jobQueue/model/Job.d.ts +7 -0
- package/jobQueue/model/Job.js +102 -0
- package/jobQueue/model/Job.js.map +1 -1
- package/jobQueue/model/JobResult.d.ts +8 -0
- package/jobQueue/model/JobResult.js +127 -0
- package/jobQueue/model/JobResult.js.map +1 -1
- package/jobQueue/model/Namespace.d.ts +5 -0
- package/jobQueue/model/Namespace.js +58 -0
- package/jobQueue/model/Namespace.js.map +1 -1
- package/key/model/GitHubApiKey.d.ts +6 -0
- package/key/model/GitHubApiKey.js +79 -0
- package/key/model/GitHubApiKey.js.map +1 -1
- package/key/model/Key.d.ts +6 -0
- package/key/model/Key.js +79 -0
- package/key/model/Key.js.map +1 -1
- package/key/model/Namespace.d.ts +5 -0
- package/key/model/Namespace.js +58 -0
- package/key/model/Namespace.js.map +1 -1
- package/limit/model/Counter.d.ts +8 -0
- package/limit/model/Counter.js +127 -0
- package/limit/model/Counter.js.map +1 -1
- package/limit/model/CurrentLimitMaster.d.ts +5 -0
- package/limit/model/CurrentLimitMaster.js +58 -0
- package/limit/model/CurrentLimitMaster.js.map +1 -1
- package/limit/model/LimitModel.d.ts +6 -0
- package/limit/model/LimitModel.js +79 -0
- package/limit/model/LimitModel.js.map +1 -1
- package/limit/model/LimitModelMaster.d.ts +6 -0
- package/limit/model/LimitModelMaster.js +79 -0
- package/limit/model/LimitModelMaster.js.map +1 -1
- package/limit/model/Namespace.d.ts +5 -0
- package/limit/model/Namespace.js +58 -0
- package/limit/model/Namespace.js.map +1 -1
- package/lock/model/Mutex.d.ts +7 -0
- package/lock/model/Mutex.js +102 -0
- package/lock/model/Mutex.js.map +1 -1
- package/lock/model/Namespace.d.ts +5 -0
- package/lock/model/Namespace.js +58 -0
- package/lock/model/Namespace.js.map +1 -1
- package/log/model/Namespace.d.ts +5 -0
- package/log/model/Namespace.js +58 -0
- package/log/model/Namespace.js.map +1 -1
- package/lottery/model/Box.d.ts +7 -0
- package/lottery/model/Box.js +102 -0
- package/lottery/model/Box.js.map +1 -1
- package/lottery/model/CurrentLotteryMaster.d.ts +5 -0
- package/lottery/model/CurrentLotteryMaster.js +58 -0
- package/lottery/model/CurrentLotteryMaster.js.map +1 -1
- package/lottery/model/LotteryModel.d.ts +6 -0
- package/lottery/model/LotteryModel.js +79 -0
- package/lottery/model/LotteryModel.js.map +1 -1
- package/lottery/model/LotteryModelMaster.d.ts +6 -0
- package/lottery/model/LotteryModelMaster.js +79 -0
- package/lottery/model/LotteryModelMaster.js.map +1 -1
- package/lottery/model/Namespace.d.ts +5 -0
- package/lottery/model/Namespace.js +58 -0
- package/lottery/model/Namespace.js.map +1 -1
- package/lottery/model/PrizeTable.d.ts +6 -0
- package/lottery/model/PrizeTable.js +79 -0
- package/lottery/model/PrizeTable.js.map +1 -1
- package/lottery/model/PrizeTableMaster.d.ts +6 -0
- package/lottery/model/PrizeTableMaster.js +79 -0
- package/lottery/model/PrizeTableMaster.js.map +1 -1
- package/matchmaking/model/CurrentRatingModelMaster.d.ts +5 -0
- package/matchmaking/model/CurrentRatingModelMaster.js +58 -0
- package/matchmaking/model/CurrentRatingModelMaster.js.map +1 -1
- package/matchmaking/model/Gathering.d.ts +6 -0
- package/matchmaking/model/Gathering.js +79 -0
- package/matchmaking/model/Gathering.js.map +1 -1
- package/matchmaking/model/Namespace.d.ts +5 -0
- package/matchmaking/model/Namespace.js +58 -0
- package/matchmaking/model/Namespace.js.map +1 -1
- package/matchmaking/model/Rating.d.ts +7 -0
- package/matchmaking/model/Rating.js +102 -0
- package/matchmaking/model/Rating.js.map +1 -1
- package/matchmaking/model/RatingModel.d.ts +6 -0
- package/matchmaking/model/RatingModel.js +79 -0
- package/matchmaking/model/RatingModel.js.map +1 -1
- package/matchmaking/model/RatingModelMaster.d.ts +6 -0
- package/matchmaking/model/RatingModelMaster.js +79 -0
- package/matchmaking/model/RatingModelMaster.js.map +1 -1
- package/matchmaking/model/Vote.d.ts +7 -0
- package/matchmaking/model/Vote.js +102 -0
- package/matchmaking/model/Vote.js.map +1 -1
- package/mission/model/Complete.d.ts +7 -0
- package/mission/model/Complete.js +102 -0
- package/mission/model/Complete.js.map +1 -1
- package/mission/model/Counter.d.ts +7 -0
- package/mission/model/Counter.js +102 -0
- package/mission/model/Counter.js.map +1 -1
- package/mission/model/CounterModel.d.ts +6 -0
- package/mission/model/CounterModel.js +79 -0
- package/mission/model/CounterModel.js.map +1 -1
- package/mission/model/CounterModelMaster.d.ts +6 -0
- package/mission/model/CounterModelMaster.js +79 -0
- package/mission/model/CounterModelMaster.js.map +1 -1
- package/mission/model/CurrentMissionMaster.d.ts +5 -0
- package/mission/model/CurrentMissionMaster.js +58 -0
- package/mission/model/CurrentMissionMaster.js.map +1 -1
- package/mission/model/MissionGroupModel.d.ts +6 -0
- package/mission/model/MissionGroupModel.js +79 -0
- package/mission/model/MissionGroupModel.js.map +1 -1
- package/mission/model/MissionGroupModelMaster.d.ts +6 -0
- package/mission/model/MissionGroupModelMaster.js +79 -0
- package/mission/model/MissionGroupModelMaster.js.map +1 -1
- package/mission/model/MissionTaskModel.d.ts +7 -0
- package/mission/model/MissionTaskModel.js +102 -0
- package/mission/model/MissionTaskModel.js.map +1 -1
- package/mission/model/MissionTaskModelMaster.d.ts +7 -0
- package/mission/model/MissionTaskModelMaster.js +102 -0
- package/mission/model/MissionTaskModelMaster.js.map +1 -1
- package/mission/model/Namespace.d.ts +5 -0
- package/mission/model/Namespace.js +58 -0
- package/mission/model/Namespace.js.map +1 -1
- package/money/model/Namespace.d.ts +5 -0
- package/money/model/Namespace.js +58 -0
- package/money/model/Namespace.js.map +1 -1
- package/money/model/Receipt.d.ts +7 -0
- package/money/model/Receipt.js +102 -0
- package/money/model/Receipt.js.map +1 -1
- package/money/model/Wallet.d.ts +7 -0
- package/money/model/Wallet.js +102 -0
- package/money/model/Wallet.js.map +1 -1
- package/news/model/Namespace.d.ts +5 -0
- package/news/model/Namespace.js +58 -0
- package/news/model/Namespace.js.map +1 -1
- package/package.json +1 -3
- package/project/model/Account.d.ts +3 -0
- package/project/model/Account.js +22 -0
- package/project/model/Account.js.map +1 -1
- package/project/model/Billing.d.ts +6 -0
- package/project/model/Billing.js +79 -0
- package/project/model/Billing.js.map +1 -1
- package/project/model/BillingMethod.d.ts +4 -0
- package/project/model/BillingMethod.js +39 -0
- package/project/model/BillingMethod.js.map +1 -1
- package/project/model/Project.d.ts +4 -0
- package/project/model/Project.js +39 -0
- package/project/model/Project.js.map +1 -1
- package/project/model/Receipt.d.ts +4 -0
- package/project/model/Receipt.js +39 -0
- package/project/model/Receipt.js.map +1 -1
- package/quest/model/CompletedQuestList.d.ts +7 -0
- package/quest/model/CompletedQuestList.js +102 -0
- package/quest/model/CompletedQuestList.js.map +1 -1
- package/quest/model/CurrentQuestMaster.d.ts +5 -0
- package/quest/model/CurrentQuestMaster.js +58 -0
- package/quest/model/CurrentQuestMaster.js.map +1 -1
- package/quest/model/Namespace.d.ts +5 -0
- package/quest/model/Namespace.js +58 -0
- package/quest/model/Namespace.js.map +1 -1
- package/quest/model/Progress.d.ts +6 -0
- package/quest/model/Progress.js +79 -0
- package/quest/model/Progress.js.map +1 -1
- package/quest/model/QuestGroupModel.d.ts +6 -0
- package/quest/model/QuestGroupModel.js +79 -0
- package/quest/model/QuestGroupModel.js.map +1 -1
- package/quest/model/QuestGroupModelMaster.d.ts +6 -0
- package/quest/model/QuestGroupModelMaster.js +79 -0
- package/quest/model/QuestGroupModelMaster.js.map +1 -1
- package/quest/model/QuestModel.d.ts +7 -0
- package/quest/model/QuestModel.js +102 -0
- package/quest/model/QuestModel.js.map +1 -1
- package/quest/model/QuestModelMaster.d.ts +7 -0
- package/quest/model/QuestModelMaster.js +102 -0
- package/quest/model/QuestModelMaster.js.map +1 -1
- package/ranking/model/CategoryModel.d.ts +6 -0
- package/ranking/model/CategoryModel.js +79 -0
- package/ranking/model/CategoryModel.js.map +1 -1
- package/ranking/model/CategoryModelMaster.d.ts +6 -0
- package/ranking/model/CategoryModelMaster.js +79 -0
- package/ranking/model/CategoryModelMaster.js.map +1 -1
- package/ranking/model/CurrentRankingMaster.d.ts +5 -0
- package/ranking/model/CurrentRankingMaster.js +58 -0
- package/ranking/model/CurrentRankingMaster.js.map +1 -1
- package/ranking/model/Namespace.d.ts +5 -0
- package/ranking/model/Namespace.js +58 -0
- package/ranking/model/Namespace.js.map +1 -1
- package/ranking/model/Score.d.ts +9 -0
- package/ranking/model/Score.js +154 -0
- package/ranking/model/Score.js.map +1 -1
- package/ranking/model/Subscribe.d.ts +7 -0
- package/ranking/model/Subscribe.js +102 -0
- package/ranking/model/Subscribe.js.map +1 -1
- package/realtime/model/Namespace.d.ts +5 -0
- package/realtime/model/Namespace.js +58 -0
- package/realtime/model/Namespace.js.map +1 -1
- package/realtime/model/Room.d.ts +6 -0
- package/realtime/model/Room.js +79 -0
- package/realtime/model/Room.js.map +1 -1
- package/schedule/model/CurrentEventMaster.d.ts +5 -0
- package/schedule/model/CurrentEventMaster.js +58 -0
- package/schedule/model/CurrentEventMaster.js.map +1 -1
- package/schedule/model/Event.d.ts +6 -0
- package/schedule/model/Event.js +79 -0
- package/schedule/model/Event.js.map +1 -1
- package/schedule/model/EventMaster.d.ts +6 -0
- package/schedule/model/EventMaster.js +79 -0
- package/schedule/model/EventMaster.js.map +1 -1
- package/schedule/model/Namespace.d.ts +5 -0
- package/schedule/model/Namespace.js +58 -0
- package/schedule/model/Namespace.js.map +1 -1
- package/schedule/model/Trigger.d.ts +7 -0
- package/schedule/model/Trigger.js +102 -0
- package/schedule/model/Trigger.js.map +1 -1
- package/script/model/Namespace.d.ts +5 -0
- package/script/model/Namespace.js +58 -0
- package/script/model/Namespace.js.map +1 -1
- package/script/model/Script.d.ts +6 -0
- package/script/model/Script.js +79 -0
- package/script/model/Script.js.map +1 -1
- package/showcase/model/CurrentShowcaseMaster.d.ts +5 -0
- package/showcase/model/CurrentShowcaseMaster.js +58 -0
- package/showcase/model/CurrentShowcaseMaster.js.map +1 -1
- package/showcase/model/Namespace.d.ts +5 -0
- package/showcase/model/Namespace.js +58 -0
- package/showcase/model/Namespace.js.map +1 -1
- package/showcase/model/SalesItemGroupMaster.d.ts +6 -0
- package/showcase/model/SalesItemGroupMaster.js +79 -0
- package/showcase/model/SalesItemGroupMaster.js.map +1 -1
- package/showcase/model/SalesItemMaster.d.ts +6 -0
- package/showcase/model/SalesItemMaster.js +79 -0
- package/showcase/model/SalesItemMaster.js.map +1 -1
- package/showcase/model/Showcase.d.ts +6 -0
- package/showcase/model/Showcase.js +79 -0
- package/showcase/model/Showcase.js.map +1 -1
- package/showcase/model/ShowcaseMaster.d.ts +6 -0
- package/showcase/model/ShowcaseMaster.js +79 -0
- package/showcase/model/ShowcaseMaster.js.map +1 -1
- package/src/account/model/Account.ts +94 -0
- package/src/account/model/Namespace.ts +70 -0
- package/src/account/model/TakeOver.ts +120 -0
- package/src/auth/index.ts +11 -4
- package/src/auth/model/AccessToken.ts +12 -2
- package/src/auth/model/index.ts +5 -1
- package/src/auth/request/LoginBySignatureRequest.ts +2 -2
- package/src/auth/request/LoginRequest.ts +2 -2
- package/src/auth/request/index.ts +7 -2
- package/src/auth/rest.ts +1 -1
- package/src/auth/result/LoginBySignatureResult.ts +2 -2
- package/src/auth/result/LoginResult.ts +2 -2
- package/src/auth/result/index.ts +7 -2
- package/src/chat/model/Message.ts +120 -0
- package/src/chat/model/Namespace.ts +70 -0
- package/src/chat/model/Room.ts +94 -0
- package/src/chat/model/Subscribe.ts +120 -0
- package/src/datastore/model/DataObject.ts +120 -0
- package/src/datastore/model/DataObjectHistory.ts +148 -0
- package/src/datastore/model/Namespace.ts +70 -0
- package/src/deploy/model/Event.ts +94 -0
- package/src/deploy/model/Output.ts +94 -0
- package/src/deploy/model/Resource.ts +94 -0
- package/src/deploy/model/Stack.ts +70 -0
- package/src/dictionary/model/CurrentEntryMaster.ts +70 -0
- package/src/dictionary/model/Entry.ts +120 -0
- package/src/dictionary/model/EntryModel.ts +94 -0
- package/src/dictionary/model/EntryModelMaster.ts +94 -0
- package/src/dictionary/model/Namespace.ts +70 -0
- package/src/distributor/model/CurrentDistributorMaster.ts +70 -0
- package/src/distributor/model/DistributorModel.ts +94 -0
- package/src/distributor/model/DistributorModelMaster.ts +94 -0
- package/src/distributor/model/Namespace.ts +70 -0
- package/src/enhance/model/CurrentRateMaster.ts +70 -0
- package/src/enhance/model/Namespace.ts +70 -0
- package/src/enhance/model/Progress.ts +10 -0
- package/src/enhance/model/RateModel.ts +94 -0
- package/src/enhance/model/RateModelMaster.ts +94 -0
- package/src/exchange/model/Await.ts +120 -0
- package/src/exchange/model/CurrentRateMaster.ts +70 -0
- package/src/exchange/model/Namespace.ts +70 -0
- package/src/exchange/model/RateModel.ts +94 -0
- package/src/exchange/model/RateModelMaster.ts +94 -0
- package/src/experience/model/CurrentExperienceMaster.ts +70 -0
- package/src/experience/model/ExperienceModel.ts +94 -0
- package/src/experience/model/ExperienceModelMaster.ts +94 -0
- package/src/experience/model/Namespace.ts +70 -0
- package/src/experience/model/Status.ts +148 -0
- package/src/experience/model/ThresholdMaster.ts +94 -0
- package/src/formation/model/CurrentFormMaster.ts +70 -0
- package/src/formation/model/Form.ts +148 -0
- package/src/formation/model/FormModel.ts +94 -0
- package/src/formation/model/FormModelMaster.ts +94 -0
- package/src/formation/model/Mold.ts +120 -0
- package/src/formation/model/MoldModel.ts +94 -0
- package/src/formation/model/MoldModelMaster.ts +94 -0
- package/src/formation/model/Namespace.ts +70 -0
- package/src/friend/model/BlackList.ts +94 -0
- package/src/friend/model/Follow.ts +94 -0
- package/src/friend/model/FollowUser.ts +10 -0
- package/src/friend/model/Friend.ts +94 -0
- package/src/friend/model/FriendRequest.ts +10 -0
- package/src/friend/model/FriendUser.ts +10 -0
- package/src/friend/model/Inbox.ts +94 -0
- package/src/friend/model/Namespace.ts +70 -0
- package/src/friend/model/Profile.ts +94 -0
- package/src/friend/model/PublicProfile.ts +10 -0
- package/src/friend/model/ReceiveFriendRequest.ts +10 -0
- package/src/friend/model/SendBox.ts +94 -0
- package/src/friend/model/SendFriendRequest.ts +10 -0
- package/src/gateway/model/FirebaseToken.ts +94 -0
- package/src/gateway/model/Namespace.ts +70 -0
- package/src/gateway/model/WebSocketSession.ts +120 -0
- package/src/identifier/model/AttachSecurityPolicy.ts +48 -0
- package/src/identifier/model/Identifier.ts +10 -0
- package/src/identifier/model/Password.ts +48 -0
- package/src/identifier/model/SecurityPolicy.ts +48 -0
- package/src/identifier/model/User.ts +48 -0
- package/src/inbox/model/CurrentMessageMaster.ts +70 -0
- package/src/inbox/model/GlobalMessage.ts +94 -0
- package/src/inbox/model/GlobalMessageMaster.ts +94 -0
- package/src/inbox/model/Message.ts +120 -0
- package/src/inbox/model/Namespace.ts +70 -0
- package/src/inbox/model/Received.ts +94 -0
- package/src/inventory/model/CurrentItemModelMaster.ts +70 -0
- package/src/inventory/model/Inventory.ts +120 -0
- package/src/inventory/model/InventoryModel.ts +94 -0
- package/src/inventory/model/InventoryModelMaster.ts +94 -0
- package/src/inventory/model/ItemModel.ts +120 -0
- package/src/inventory/model/ItemModelMaster.ts +120 -0
- package/src/inventory/model/ItemSet.ts +178 -0
- package/src/inventory/model/Namespace.ts +70 -0
- package/src/inventory/model/ReferenceOf.ts +178 -0
- package/src/jobQueue/model/DeadLetterJob.ts +120 -0
- package/src/jobQueue/model/Job.ts +120 -0
- package/src/jobQueue/model/JobResult.ts +148 -0
- package/src/jobQueue/model/Namespace.ts +70 -0
- package/src/key/model/GitHubApiKey.ts +94 -0
- package/src/key/model/Key.ts +94 -0
- package/src/key/model/Namespace.ts +70 -0
- package/src/limit/model/Counter.ts +148 -0
- package/src/limit/model/CurrentLimitMaster.ts +70 -0
- package/src/limit/model/LimitModel.ts +94 -0
- package/src/limit/model/LimitModelMaster.ts +94 -0
- package/src/limit/model/Namespace.ts +70 -0
- package/src/lock/model/Mutex.ts +120 -0
- package/src/lock/model/Namespace.ts +70 -0
- package/src/log/model/Namespace.ts +70 -0
- package/src/lottery/model/Box.ts +120 -0
- package/src/lottery/model/CurrentLotteryMaster.ts +70 -0
- package/src/lottery/model/LotteryModel.ts +94 -0
- package/src/lottery/model/LotteryModelMaster.ts +94 -0
- package/src/lottery/model/Namespace.ts +70 -0
- package/src/lottery/model/PrizeTable.ts +94 -0
- package/src/lottery/model/PrizeTableMaster.ts +94 -0
- package/src/matchmaking/model/CurrentRatingModelMaster.ts +70 -0
- package/src/matchmaking/model/Gathering.ts +94 -0
- package/src/matchmaking/model/Namespace.ts +70 -0
- package/src/matchmaking/model/Rating.ts +120 -0
- package/src/matchmaking/model/RatingModel.ts +94 -0
- package/src/matchmaking/model/RatingModelMaster.ts +94 -0
- package/src/matchmaking/model/Vote.ts +120 -0
- package/src/mission/model/Complete.ts +120 -0
- package/src/mission/model/Counter.ts +120 -0
- package/src/mission/model/CounterModel.ts +94 -0
- package/src/mission/model/CounterModelMaster.ts +94 -0
- package/src/mission/model/CurrentMissionMaster.ts +70 -0
- package/src/mission/model/MissionGroupModel.ts +94 -0
- package/src/mission/model/MissionGroupModelMaster.ts +94 -0
- package/src/mission/model/MissionTaskModel.ts +120 -0
- package/src/mission/model/MissionTaskModelMaster.ts +120 -0
- package/src/mission/model/Namespace.ts +70 -0
- package/src/money/model/Namespace.ts +70 -0
- package/src/money/model/Receipt.ts +120 -0
- package/src/money/model/Wallet.ts +120 -0
- package/src/news/model/Namespace.ts +70 -0
- package/src/project/model/Account.ts +28 -0
- package/src/project/model/Billing.ts +94 -0
- package/src/project/model/BillingMethod.ts +48 -0
- package/src/project/model/Project.ts +48 -0
- package/src/project/model/Receipt.ts +48 -0
- package/src/quest/model/CompletedQuestList.ts +120 -0
- package/src/quest/model/CurrentQuestMaster.ts +70 -0
- package/src/quest/model/Namespace.ts +70 -0
- package/src/quest/model/Progress.ts +94 -0
- package/src/quest/model/QuestGroupModel.ts +94 -0
- package/src/quest/model/QuestGroupModelMaster.ts +94 -0
- package/src/quest/model/QuestModel.ts +120 -0
- package/src/quest/model/QuestModelMaster.ts +120 -0
- package/src/ranking/model/CategoryModel.ts +94 -0
- package/src/ranking/model/CategoryModelMaster.ts +94 -0
- package/src/ranking/model/CurrentRankingMaster.ts +70 -0
- package/src/ranking/model/Namespace.ts +70 -0
- package/src/ranking/model/Score.ts +178 -0
- package/src/ranking/model/Subscribe.ts +120 -0
- package/src/realtime/model/Namespace.ts +70 -0
- package/src/realtime/model/Room.ts +94 -0
- package/src/schedule/model/CurrentEventMaster.ts +70 -0
- package/src/schedule/model/Event.ts +94 -0
- package/src/schedule/model/EventMaster.ts +94 -0
- package/src/schedule/model/Namespace.ts +70 -0
- package/src/schedule/model/Trigger.ts +120 -0
- package/src/script/model/Namespace.ts +70 -0
- package/src/script/model/Script.ts +94 -0
- package/src/showcase/model/CurrentShowcaseMaster.ts +70 -0
- package/src/showcase/model/Namespace.ts +70 -0
- package/src/showcase/model/SalesItemGroupMaster.ts +94 -0
- package/src/showcase/model/SalesItemMaster.ts +94 -0
- package/src/showcase/model/Showcase.ts +94 -0
- package/src/showcase/model/ShowcaseMaster.ts +94 -0
- package/src/stamina/model/CurrentStaminaMaster.ts +70 -0
- package/src/stamina/model/MaxStaminaTable.ts +94 -0
- package/src/stamina/model/MaxStaminaTableMaster.ts +94 -0
- package/src/stamina/model/Namespace.ts +70 -0
- package/src/stamina/model/RecoverIntervalTable.ts +94 -0
- package/src/stamina/model/RecoverIntervalTableMaster.ts +94 -0
- package/src/stamina/model/RecoverValueTable.ts +94 -0
- package/src/stamina/model/RecoverValueTableMaster.ts +94 -0
- package/src/stamina/model/Stamina.ts +120 -0
- package/src/stamina/model/StaminaModel.ts +94 -0
- package/src/stamina/model/StaminaModelMaster.ts +94 -0
- package/src/version/model/AcceptVersion.ts +120 -0
- package/src/version/model/CurrentVersionMaster.ts +70 -0
- package/src/version/model/Namespace.ts +70 -0
- package/src/version/model/VersionModel.ts +94 -0
- package/src/version/model/VersionModelMaster.ts +94 -0
- package/stamina/model/CurrentStaminaMaster.d.ts +5 -0
- package/stamina/model/CurrentStaminaMaster.js +58 -0
- package/stamina/model/CurrentStaminaMaster.js.map +1 -1
- package/stamina/model/MaxStaminaTable.d.ts +6 -0
- package/stamina/model/MaxStaminaTable.js +79 -0
- package/stamina/model/MaxStaminaTable.js.map +1 -1
- package/stamina/model/MaxStaminaTableMaster.d.ts +6 -0
- package/stamina/model/MaxStaminaTableMaster.js +79 -0
- package/stamina/model/MaxStaminaTableMaster.js.map +1 -1
- package/stamina/model/Namespace.d.ts +5 -0
- package/stamina/model/Namespace.js +58 -0
- package/stamina/model/Namespace.js.map +1 -1
- package/stamina/model/RecoverIntervalTable.d.ts +6 -0
- package/stamina/model/RecoverIntervalTable.js +79 -0
- package/stamina/model/RecoverIntervalTable.js.map +1 -1
- package/stamina/model/RecoverIntervalTableMaster.d.ts +6 -0
- package/stamina/model/RecoverIntervalTableMaster.js +79 -0
- package/stamina/model/RecoverIntervalTableMaster.js.map +1 -1
- package/stamina/model/RecoverValueTable.d.ts +6 -0
- package/stamina/model/RecoverValueTable.js +79 -0
- package/stamina/model/RecoverValueTable.js.map +1 -1
- package/stamina/model/RecoverValueTableMaster.d.ts +6 -0
- package/stamina/model/RecoverValueTableMaster.js +79 -0
- package/stamina/model/RecoverValueTableMaster.js.map +1 -1
- package/stamina/model/Stamina.d.ts +7 -0
- package/stamina/model/Stamina.js +102 -0
- package/stamina/model/Stamina.js.map +1 -1
- package/stamina/model/StaminaModel.d.ts +6 -0
- package/stamina/model/StaminaModel.js +79 -0
- package/stamina/model/StaminaModel.js.map +1 -1
- package/stamina/model/StaminaModelMaster.d.ts +6 -0
- package/stamina/model/StaminaModelMaster.js +79 -0
- package/stamina/model/StaminaModelMaster.js.map +1 -1
- package/tsconfig.json +0 -6
- package/version/model/AcceptVersion.d.ts +7 -0
- package/version/model/AcceptVersion.js +102 -0
- package/version/model/AcceptVersion.js.map +1 -1
- package/version/model/CurrentVersionMaster.d.ts +5 -0
- package/version/model/CurrentVersionMaster.js +58 -0
- package/version/model/CurrentVersionMaster.js.map +1 -1
- package/version/model/Namespace.d.ts +5 -0
- package/version/model/Namespace.js +58 -0
- package/version/model/Namespace.js.map +1 -1
- package/version/model/VersionModel.d.ts +6 -0
- package/version/model/VersionModel.js +79 -0
- package/version/model/VersionModel.js.map +1 -1
- package/version/model/VersionModelMaster.d.ts +6 -0
- package/version/model/VersionModelMaster.js +79 -0
- package/version/model/VersionModelMaster.js.map +1 -1
- package/friend/request/DescribeProfilesRequest.d.ts +0 -29
- package/friend/request/DescribeProfilesRequest.js +0 -98
- package/friend/request/DescribeProfilesRequest.js.map +0 -1
- package/friend/result/DescribeProfilesResult.d.ts +0 -18
- package/friend/result/DescribeProfilesResult.js +0 -68
- package/friend/result/DescribeProfilesResult.js.map +0 -1
- package/src/friend/request/DescribeProfilesRequest.ts +0 -113
- package/src/friend/result/DescribeProfilesResult.ts +0 -73
|
@@ -14,11 +14,11 @@ express or implied. See the License for the specific language governing
|
|
|
14
14
|
permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import IRequest from '
|
|
17
|
+
import IRequest from '../../core/interface/IRequest';
|
|
18
18
|
|
|
19
19
|
import * as Gs2Auth from '../model'
|
|
20
20
|
|
|
21
|
-
export class LoginBySignatureRequest implements IRequest {
|
|
21
|
+
export default class LoginBySignatureRequest implements IRequest {
|
|
22
22
|
|
|
23
23
|
private requestId: string|null = null;
|
|
24
24
|
private contextStack: string|null = null;
|
|
@@ -14,11 +14,11 @@ express or implied. See the License for the specific language governing
|
|
|
14
14
|
permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import IRequest from '
|
|
17
|
+
import IRequest from '../../core/interface/IRequest';
|
|
18
18
|
|
|
19
19
|
import * as Gs2Auth from '../model'
|
|
20
20
|
|
|
21
|
-
export class LoginRequest implements IRequest {
|
|
21
|
+
export default class LoginRequest implements IRequest {
|
|
22
22
|
|
|
23
23
|
private requestId: string|null = null;
|
|
24
24
|
private contextStack: string|null = null;
|
|
@@ -13,5 +13,10 @@ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
|
13
13
|
express or implied. See the License for the specific language governing
|
|
14
14
|
permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
import LoginRequest from "./LoginRequest"
|
|
17
|
+
import LoginBySignatureRequest from "./LoginBySignatureRequest"
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
LoginRequest,
|
|
21
|
+
LoginBySignatureRequest,
|
|
22
|
+
};
|
package/src/auth/rest.ts
CHANGED
|
@@ -21,7 +21,7 @@ import * as Result from './result';
|
|
|
21
21
|
|
|
22
22
|
import axios from 'axios';
|
|
23
23
|
|
|
24
|
-
export class Gs2AuthRestClient extends AbstractGs2RestClient {
|
|
24
|
+
export default class Gs2AuthRestClient extends AbstractGs2RestClient {
|
|
25
25
|
|
|
26
26
|
constructor(session: Gs2RestSession) {
|
|
27
27
|
super(session);
|
|
@@ -14,11 +14,11 @@ express or implied. See the License for the specific language governing
|
|
|
14
14
|
permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import IResult from '
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
18
|
|
|
19
19
|
import * as Gs2Auth from '../model'
|
|
20
20
|
|
|
21
|
-
export class LoginBySignatureResult implements IResult {
|
|
21
|
+
export default class LoginBySignatureResult implements IResult {
|
|
22
22
|
private token: string|null = null;
|
|
23
23
|
private userId: string|null = null;
|
|
24
24
|
private expire: number|null = null;
|
|
@@ -14,11 +14,11 @@ express or implied. See the License for the specific language governing
|
|
|
14
14
|
permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import IResult from '
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
18
|
|
|
19
19
|
import * as Gs2Auth from '../model'
|
|
20
20
|
|
|
21
|
-
export class LoginResult implements IResult {
|
|
21
|
+
export default class LoginResult implements IResult {
|
|
22
22
|
private token: string|null = null;
|
|
23
23
|
private userId: string|null = null;
|
|
24
24
|
private expire: number|null = null;
|
package/src/auth/result/index.ts
CHANGED
|
@@ -13,5 +13,10 @@ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
|
13
13
|
express or implied. See the License for the specific language governing
|
|
14
14
|
permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
import LoginResult from "./LoginResult"
|
|
17
|
+
import LoginBySignatureResult from "./LoginBySignatureResult"
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
LoginResult,
|
|
21
|
+
LoginBySignatureResult,
|
|
22
|
+
};
|
|
@@ -15,6 +15,7 @@ permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:chat:{namespaceName}:room:{roomName}:message:{messageName}";
|
|
18
19
|
|
|
19
20
|
export default class Message implements IModel {
|
|
20
21
|
private messageId: string|null = null;
|
|
@@ -25,6 +26,125 @@ export default class Message implements IModel {
|
|
|
25
26
|
private metadata: string|null = null;
|
|
26
27
|
private createdAt: number|null = null;
|
|
27
28
|
|
|
29
|
+
public static getRegion(grn: string): string|null {
|
|
30
|
+
const match = grn.match(grnFormat
|
|
31
|
+
.replace('{region}', '(.*)')
|
|
32
|
+
.replace('{ownerId}', '.*')
|
|
33
|
+
.replace('{namespaceName}', '.*')
|
|
34
|
+
.replace('{roomName}', '.*')
|
|
35
|
+
.replace('{messageName}', '.*')
|
|
36
|
+
);
|
|
37
|
+
if (match) {
|
|
38
|
+
return match[1];
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public static getOwnerId(grn: string): string|null {
|
|
44
|
+
const match = grn.match(grnFormat
|
|
45
|
+
.replace('{region}', '.*')
|
|
46
|
+
.replace('{ownerId}', '(.*)')
|
|
47
|
+
.replace('{namespaceName}', '.*')
|
|
48
|
+
.replace('{roomName}', '.*')
|
|
49
|
+
.replace('{messageName}', '.*')
|
|
50
|
+
);
|
|
51
|
+
if (match) {
|
|
52
|
+
return match[1];
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public static getNamespaceName(grn: string): string|null {
|
|
58
|
+
const match = grn.match(grnFormat
|
|
59
|
+
.replace('{region}', '.*')
|
|
60
|
+
.replace('{ownerId}', '.*')
|
|
61
|
+
.replace('{namespaceName}', '(.*)')
|
|
62
|
+
.replace('{roomName}', '.*')
|
|
63
|
+
.replace('{messageName}', '.*')
|
|
64
|
+
);
|
|
65
|
+
if (match) {
|
|
66
|
+
return match[1];
|
|
67
|
+
}
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public static getRoomName(grn: string): string|null {
|
|
72
|
+
const match = grn.match(grnFormat
|
|
73
|
+
.replace('{region}', '.*')
|
|
74
|
+
.replace('{ownerId}', '.*')
|
|
75
|
+
.replace('{namespaceName}', '.*')
|
|
76
|
+
.replace('{roomName}', '(.*)')
|
|
77
|
+
.replace('{messageName}', '.*')
|
|
78
|
+
);
|
|
79
|
+
if (match) {
|
|
80
|
+
return match[1];
|
|
81
|
+
}
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
public static getMessageName(grn: string): string|null {
|
|
86
|
+
const match = grn.match(grnFormat
|
|
87
|
+
.replace('{region}', '.*')
|
|
88
|
+
.replace('{ownerId}', '.*')
|
|
89
|
+
.replace('{namespaceName}', '.*')
|
|
90
|
+
.replace('{roomName}', '.*')
|
|
91
|
+
.replace('{messageName}', '(.*)')
|
|
92
|
+
);
|
|
93
|
+
if (match) {
|
|
94
|
+
return match[1];
|
|
95
|
+
}
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
public static isValid(grn: string): boolean {
|
|
100
|
+
if (this.getRegion(grn) == null) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
if (this.getOwnerId(grn) == null) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
if (this.getNamespaceName(grn) == null) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
if (this.getRoomName(grn) == null) {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
if (this.getMessageName(grn) == null) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
public static createGrn(
|
|
119
|
+
region: string|null,
|
|
120
|
+
ownerId: string|null,
|
|
121
|
+
namespaceName: string|null,
|
|
122
|
+
roomName: string|null,
|
|
123
|
+
messageName: string|null,
|
|
124
|
+
): string|null {
|
|
125
|
+
if (region == null || region === '') {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
if (ownerId == null || ownerId === '') {
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
if (namespaceName == null || namespaceName === '') {
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
if (roomName == null || roomName === '') {
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
if (messageName == null || messageName === '') {
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
return grnFormat
|
|
141
|
+
.replace('{region}', region!)
|
|
142
|
+
.replace('{ownerId}', ownerId!)
|
|
143
|
+
.replace('{namespaceName}', namespaceName!)
|
|
144
|
+
.replace('{roomName}', roomName!)
|
|
145
|
+
.replace('{messageName}', messageName!);
|
|
146
|
+
}
|
|
147
|
+
|
|
28
148
|
public getMessageId(): string|null {
|
|
29
149
|
return this.messageId;
|
|
30
150
|
}
|
|
@@ -18,6 +18,7 @@ import IModel from '../../core/interface/IModel';
|
|
|
18
18
|
import ScriptSetting from './ScriptSetting';
|
|
19
19
|
import NotificationSetting from './NotificationSetting';
|
|
20
20
|
import LogSetting from './LogSetting';
|
|
21
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:chat:{namespaceName}";
|
|
21
22
|
|
|
22
23
|
export default class Namespace implements IModel {
|
|
23
24
|
private namespaceId: string|null = null;
|
|
@@ -34,6 +35,75 @@ export default class Namespace implements IModel {
|
|
|
34
35
|
private createdAt: number|null = null;
|
|
35
36
|
private updatedAt: number|null = null;
|
|
36
37
|
|
|
38
|
+
public static getRegion(grn: string): string|null {
|
|
39
|
+
const match = grn.match(grnFormat
|
|
40
|
+
.replace('{region}', '(.*)')
|
|
41
|
+
.replace('{ownerId}', '.*')
|
|
42
|
+
.replace('{namespaceName}', '.*')
|
|
43
|
+
);
|
|
44
|
+
if (match) {
|
|
45
|
+
return match[1];
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public static getOwnerId(grn: string): string|null {
|
|
51
|
+
const match = grn.match(grnFormat
|
|
52
|
+
.replace('{region}', '.*')
|
|
53
|
+
.replace('{ownerId}', '(.*)')
|
|
54
|
+
.replace('{namespaceName}', '.*')
|
|
55
|
+
);
|
|
56
|
+
if (match) {
|
|
57
|
+
return match[1];
|
|
58
|
+
}
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
public static getNamespaceName(grn: string): string|null {
|
|
63
|
+
const match = grn.match(grnFormat
|
|
64
|
+
.replace('{region}', '.*')
|
|
65
|
+
.replace('{ownerId}', '.*')
|
|
66
|
+
.replace('{namespaceName}', '(.*)')
|
|
67
|
+
);
|
|
68
|
+
if (match) {
|
|
69
|
+
return match[1];
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public static isValid(grn: string): boolean {
|
|
75
|
+
if (this.getRegion(grn) == null) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
if (this.getOwnerId(grn) == null) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
if (this.getNamespaceName(grn) == null) {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public static createGrn(
|
|
88
|
+
region: string|null,
|
|
89
|
+
ownerId: string|null,
|
|
90
|
+
namespaceName: string|null,
|
|
91
|
+
): string|null {
|
|
92
|
+
if (region == null || region === '') {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
if (ownerId == null || ownerId === '') {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
if (namespaceName == null || namespaceName === '') {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
return grnFormat
|
|
102
|
+
.replace('{region}', region!)
|
|
103
|
+
.replace('{ownerId}', ownerId!)
|
|
104
|
+
.replace('{namespaceName}', namespaceName!);
|
|
105
|
+
}
|
|
106
|
+
|
|
37
107
|
public getNamespaceId(): string|null {
|
|
38
108
|
return this.namespaceId;
|
|
39
109
|
}
|
package/src/chat/model/Room.ts
CHANGED
|
@@ -15,6 +15,7 @@ permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:chat:{namespaceName}:room:{roomName}";
|
|
18
19
|
|
|
19
20
|
export default class Room implements IModel {
|
|
20
21
|
private roomId: string|null = null;
|
|
@@ -26,6 +27,99 @@ export default class Room implements IModel {
|
|
|
26
27
|
private createdAt: number|null = null;
|
|
27
28
|
private updatedAt: number|null = null;
|
|
28
29
|
|
|
30
|
+
public static getRegion(grn: string): string|null {
|
|
31
|
+
const match = grn.match(grnFormat
|
|
32
|
+
.replace('{region}', '(.*)')
|
|
33
|
+
.replace('{ownerId}', '.*')
|
|
34
|
+
.replace('{namespaceName}', '.*')
|
|
35
|
+
.replace('{roomName}', '.*')
|
|
36
|
+
);
|
|
37
|
+
if (match) {
|
|
38
|
+
return match[1];
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public static getOwnerId(grn: string): string|null {
|
|
44
|
+
const match = grn.match(grnFormat
|
|
45
|
+
.replace('{region}', '.*')
|
|
46
|
+
.replace('{ownerId}', '(.*)')
|
|
47
|
+
.replace('{namespaceName}', '.*')
|
|
48
|
+
.replace('{roomName}', '.*')
|
|
49
|
+
);
|
|
50
|
+
if (match) {
|
|
51
|
+
return match[1];
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public static getNamespaceName(grn: string): string|null {
|
|
57
|
+
const match = grn.match(grnFormat
|
|
58
|
+
.replace('{region}', '.*')
|
|
59
|
+
.replace('{ownerId}', '.*')
|
|
60
|
+
.replace('{namespaceName}', '(.*)')
|
|
61
|
+
.replace('{roomName}', '.*')
|
|
62
|
+
);
|
|
63
|
+
if (match) {
|
|
64
|
+
return match[1];
|
|
65
|
+
}
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
public static getRoomName(grn: string): string|null {
|
|
70
|
+
const match = grn.match(grnFormat
|
|
71
|
+
.replace('{region}', '.*')
|
|
72
|
+
.replace('{ownerId}', '.*')
|
|
73
|
+
.replace('{namespaceName}', '.*')
|
|
74
|
+
.replace('{roomName}', '(.*)')
|
|
75
|
+
);
|
|
76
|
+
if (match) {
|
|
77
|
+
return match[1];
|
|
78
|
+
}
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
public static isValid(grn: string): boolean {
|
|
83
|
+
if (this.getRegion(grn) == null) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
if (this.getOwnerId(grn) == null) {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
if (this.getNamespaceName(grn) == null) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
if (this.getRoomName(grn) == null) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
public static createGrn(
|
|
99
|
+
region: string|null,
|
|
100
|
+
ownerId: string|null,
|
|
101
|
+
namespaceName: string|null,
|
|
102
|
+
roomName: string|null,
|
|
103
|
+
): string|null {
|
|
104
|
+
if (region == null || region === '') {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
if (ownerId == null || ownerId === '') {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
if (namespaceName == null || namespaceName === '') {
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
if (roomName == null || roomName === '') {
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
return grnFormat
|
|
117
|
+
.replace('{region}', region!)
|
|
118
|
+
.replace('{ownerId}', ownerId!)
|
|
119
|
+
.replace('{namespaceName}', namespaceName!)
|
|
120
|
+
.replace('{roomName}', roomName!);
|
|
121
|
+
}
|
|
122
|
+
|
|
29
123
|
public getRoomId(): string|null {
|
|
30
124
|
return this.roomId;
|
|
31
125
|
}
|
|
@@ -16,6 +16,7 @@ permissions and limitations under the License.
|
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
18
|
import NotificationType from './NotificationType';
|
|
19
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:chat:{namespaceName}:user:{userId}:subscribe:{roomName}";
|
|
19
20
|
|
|
20
21
|
export default class Subscribe implements IModel {
|
|
21
22
|
private subscribeId: string|null = null;
|
|
@@ -24,6 +25,125 @@ export default class Subscribe implements IModel {
|
|
|
24
25
|
private notificationTypes: NotificationType[]|null = null;
|
|
25
26
|
private createdAt: number|null = null;
|
|
26
27
|
|
|
28
|
+
public static getRegion(grn: string): string|null {
|
|
29
|
+
const match = grn.match(grnFormat
|
|
30
|
+
.replace('{region}', '(.*)')
|
|
31
|
+
.replace('{ownerId}', '.*')
|
|
32
|
+
.replace('{namespaceName}', '.*')
|
|
33
|
+
.replace('{userId}', '.*')
|
|
34
|
+
.replace('{roomName}', '.*')
|
|
35
|
+
);
|
|
36
|
+
if (match) {
|
|
37
|
+
return match[1];
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public static getOwnerId(grn: string): string|null {
|
|
43
|
+
const match = grn.match(grnFormat
|
|
44
|
+
.replace('{region}', '.*')
|
|
45
|
+
.replace('{ownerId}', '(.*)')
|
|
46
|
+
.replace('{namespaceName}', '.*')
|
|
47
|
+
.replace('{userId}', '.*')
|
|
48
|
+
.replace('{roomName}', '.*')
|
|
49
|
+
);
|
|
50
|
+
if (match) {
|
|
51
|
+
return match[1];
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public static getNamespaceName(grn: string): string|null {
|
|
57
|
+
const match = grn.match(grnFormat
|
|
58
|
+
.replace('{region}', '.*')
|
|
59
|
+
.replace('{ownerId}', '.*')
|
|
60
|
+
.replace('{namespaceName}', '(.*)')
|
|
61
|
+
.replace('{userId}', '.*')
|
|
62
|
+
.replace('{roomName}', '.*')
|
|
63
|
+
);
|
|
64
|
+
if (match) {
|
|
65
|
+
return match[1];
|
|
66
|
+
}
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
public static getUserId(grn: string): string|null {
|
|
71
|
+
const match = grn.match(grnFormat
|
|
72
|
+
.replace('{region}', '.*')
|
|
73
|
+
.replace('{ownerId}', '.*')
|
|
74
|
+
.replace('{namespaceName}', '.*')
|
|
75
|
+
.replace('{userId}', '(.*)')
|
|
76
|
+
.replace('{roomName}', '.*')
|
|
77
|
+
);
|
|
78
|
+
if (match) {
|
|
79
|
+
return match[1];
|
|
80
|
+
}
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
public static getRoomName(grn: string): string|null {
|
|
85
|
+
const match = grn.match(grnFormat
|
|
86
|
+
.replace('{region}', '.*')
|
|
87
|
+
.replace('{ownerId}', '.*')
|
|
88
|
+
.replace('{namespaceName}', '.*')
|
|
89
|
+
.replace('{userId}', '.*')
|
|
90
|
+
.replace('{roomName}', '(.*)')
|
|
91
|
+
);
|
|
92
|
+
if (match) {
|
|
93
|
+
return match[1];
|
|
94
|
+
}
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
public static isValid(grn: string): boolean {
|
|
99
|
+
if (this.getRegion(grn) == null) {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
if (this.getOwnerId(grn) == null) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
if (this.getNamespaceName(grn) == null) {
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
if (this.getUserId(grn) == null) {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
if (this.getRoomName(grn) == null) {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
public static createGrn(
|
|
118
|
+
region: string|null,
|
|
119
|
+
ownerId: string|null,
|
|
120
|
+
namespaceName: string|null,
|
|
121
|
+
userId: string|null,
|
|
122
|
+
roomName: string|null,
|
|
123
|
+
): string|null {
|
|
124
|
+
if (region == null || region === '') {
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
if (ownerId == null || ownerId === '') {
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
if (namespaceName == null || namespaceName === '') {
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
if (userId == null || userId === '') {
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
if (roomName == null || roomName === '') {
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
return grnFormat
|
|
140
|
+
.replace('{region}', region!)
|
|
141
|
+
.replace('{ownerId}', ownerId!)
|
|
142
|
+
.replace('{namespaceName}', namespaceName!)
|
|
143
|
+
.replace('{userId}', userId!)
|
|
144
|
+
.replace('{roomName}', roomName!);
|
|
145
|
+
}
|
|
146
|
+
|
|
27
147
|
public getSubscribeId(): string|null {
|
|
28
148
|
return this.subscribeId;
|
|
29
149
|
}
|
|
@@ -15,6 +15,7 @@ permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:datastore:{namespaceName}:user:{userId}:data:{dataObjectName}";
|
|
18
19
|
|
|
19
20
|
export default class DataObject implements IModel {
|
|
20
21
|
private dataObjectId: string|null = null;
|
|
@@ -28,6 +29,125 @@ export default class DataObject implements IModel {
|
|
|
28
29
|
private createdAt: number|null = null;
|
|
29
30
|
private updatedAt: number|null = null;
|
|
30
31
|
|
|
32
|
+
public static getRegion(grn: string): string|null {
|
|
33
|
+
const match = grn.match(grnFormat
|
|
34
|
+
.replace('{region}', '(.*)')
|
|
35
|
+
.replace('{ownerId}', '.*')
|
|
36
|
+
.replace('{namespaceName}', '.*')
|
|
37
|
+
.replace('{userId}', '.*')
|
|
38
|
+
.replace('{dataObjectName}', '.*')
|
|
39
|
+
);
|
|
40
|
+
if (match) {
|
|
41
|
+
return match[1];
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public static getOwnerId(grn: string): string|null {
|
|
47
|
+
const match = grn.match(grnFormat
|
|
48
|
+
.replace('{region}', '.*')
|
|
49
|
+
.replace('{ownerId}', '(.*)')
|
|
50
|
+
.replace('{namespaceName}', '.*')
|
|
51
|
+
.replace('{userId}', '.*')
|
|
52
|
+
.replace('{dataObjectName}', '.*')
|
|
53
|
+
);
|
|
54
|
+
if (match) {
|
|
55
|
+
return match[1];
|
|
56
|
+
}
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
public static getNamespaceName(grn: string): string|null {
|
|
61
|
+
const match = grn.match(grnFormat
|
|
62
|
+
.replace('{region}', '.*')
|
|
63
|
+
.replace('{ownerId}', '.*')
|
|
64
|
+
.replace('{namespaceName}', '(.*)')
|
|
65
|
+
.replace('{userId}', '.*')
|
|
66
|
+
.replace('{dataObjectName}', '.*')
|
|
67
|
+
);
|
|
68
|
+
if (match) {
|
|
69
|
+
return match[1];
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public static getUserId(grn: string): string|null {
|
|
75
|
+
const match = grn.match(grnFormat
|
|
76
|
+
.replace('{region}', '.*')
|
|
77
|
+
.replace('{ownerId}', '.*')
|
|
78
|
+
.replace('{namespaceName}', '.*')
|
|
79
|
+
.replace('{userId}', '(.*)')
|
|
80
|
+
.replace('{dataObjectName}', '.*')
|
|
81
|
+
);
|
|
82
|
+
if (match) {
|
|
83
|
+
return match[1];
|
|
84
|
+
}
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
public static getDataObjectName(grn: string): string|null {
|
|
89
|
+
const match = grn.match(grnFormat
|
|
90
|
+
.replace('{region}', '.*')
|
|
91
|
+
.replace('{ownerId}', '.*')
|
|
92
|
+
.replace('{namespaceName}', '.*')
|
|
93
|
+
.replace('{userId}', '.*')
|
|
94
|
+
.replace('{dataObjectName}', '(.*)')
|
|
95
|
+
);
|
|
96
|
+
if (match) {
|
|
97
|
+
return match[1];
|
|
98
|
+
}
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
public static isValid(grn: string): boolean {
|
|
103
|
+
if (this.getRegion(grn) == null) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
if (this.getOwnerId(grn) == null) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
if (this.getNamespaceName(grn) == null) {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
if (this.getUserId(grn) == null) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
if (this.getDataObjectName(grn) == null) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
public static createGrn(
|
|
122
|
+
region: string|null,
|
|
123
|
+
ownerId: string|null,
|
|
124
|
+
namespaceName: string|null,
|
|
125
|
+
userId: string|null,
|
|
126
|
+
dataObjectName: string|null,
|
|
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 (userId == null || userId === '') {
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
if (dataObjectName == null || dataObjectName === '') {
|
|
141
|
+
return null;
|
|
142
|
+
}
|
|
143
|
+
return grnFormat
|
|
144
|
+
.replace('{region}', region!)
|
|
145
|
+
.replace('{ownerId}', ownerId!)
|
|
146
|
+
.replace('{namespaceName}', namespaceName!)
|
|
147
|
+
.replace('{userId}', userId!)
|
|
148
|
+
.replace('{dataObjectName}', dataObjectName!);
|
|
149
|
+
}
|
|
150
|
+
|
|
31
151
|
public getDataObjectId(): string|null {
|
|
32
152
|
return this.dataObjectId;
|
|
33
153
|
}
|