gs2 1.3.230 → 1.3.233
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/buff/index.d.ts +5 -0
- package/buff/index.js +28 -0
- package/buff/index.js.map +1 -0
- package/buff/index.ts +27 -0
- package/buff/model/BuffEntryModel.d.ts +53 -0
- package/buff/model/BuffEntryModel.js +231 -0
- package/buff/model/BuffEntryModel.js.map +1 -0
- package/buff/model/BuffEntryModel.ts +243 -0
- package/buff/model/BuffEntryModelMaster.d.ts +69 -0
- package/buff/model/BuffEntryModelMaster.js +287 -0
- package/buff/model/BuffEntryModelMaster.js.map +1 -0
- package/buff/model/BuffEntryModelMaster.ts +299 -0
- package/buff/model/BuffTargetAction.d.ts +26 -0
- package/buff/model/BuffTargetAction.js +98 -0
- package/buff/model/BuffTargetAction.js.map +1 -0
- package/buff/model/BuffTargetAction.ts +97 -0
- package/buff/model/BuffTargetGrn.d.ts +17 -0
- package/buff/model/BuffTargetGrn.js +62 -0
- package/buff/model/BuffTargetGrn.js.map +1 -0
- package/buff/model/BuffTargetGrn.ts +60 -0
- package/buff/model/BuffTargetModel.d.ts +26 -0
- package/buff/model/BuffTargetModel.js +98 -0
- package/buff/model/BuffTargetModel.js.map +1 -0
- package/buff/model/BuffTargetModel.ts +97 -0
- package/buff/model/CurrentBuffMaster.d.ts +22 -0
- package/buff/model/CurrentBuffMaster.js +111 -0
- package/buff/model/CurrentBuffMaster.js.map +1 -0
- package/buff/model/CurrentBuffMaster.ts +121 -0
- package/buff/model/GitHubCheckoutSetting.d.ts +37 -0
- package/buff/model/GitHubCheckoutSetting.js +132 -0
- package/buff/model/GitHubCheckoutSetting.js.map +1 -0
- package/buff/model/GitHubCheckoutSetting.ts +130 -0
- package/buff/model/LogSetting.d.ts +13 -0
- package/buff/model/LogSetting.js +48 -0
- package/buff/model/LogSetting.js.map +1 -0
- package/buff/model/LogSetting.ts +46 -0
- package/buff/model/Namespace.d.ts +43 -0
- package/buff/model/Namespace.js +184 -0
- package/buff/model/Namespace.js.map +1 -0
- package/buff/model/Namespace.ts +192 -0
- package/buff/model/index.d.ts +10 -0
- package/buff/model/index.js +38 -0
- package/buff/model/index.js.map +1 -0
- package/buff/model/index.ts +36 -0
- package/buff/request/ApplyBuffByUserIdRequest.d.ts +33 -0
- package/buff/request/ApplyBuffByUserIdRequest.js +109 -0
- package/buff/request/ApplyBuffByUserIdRequest.js.map +1 -0
- package/buff/request/ApplyBuffByUserIdRequest.ts +119 -0
- package/buff/request/ApplyBuffRequest.d.ts +29 -0
- package/buff/request/ApplyBuffRequest.js +95 -0
- package/buff/request/ApplyBuffRequest.js.map +1 -0
- package/buff/request/ApplyBuffRequest.ts +105 -0
- package/buff/request/CheckCleanUserDataByUserIdRequest.d.ts +29 -0
- package/buff/request/CheckCleanUserDataByUserIdRequest.js +95 -0
- package/buff/request/CheckCleanUserDataByUserIdRequest.js.map +1 -0
- package/buff/request/CheckCleanUserDataByUserIdRequest.ts +105 -0
- package/buff/request/CheckDumpUserDataByUserIdRequest.d.ts +29 -0
- package/buff/request/CheckDumpUserDataByUserIdRequest.js +95 -0
- package/buff/request/CheckDumpUserDataByUserIdRequest.js.map +1 -0
- package/buff/request/CheckDumpUserDataByUserIdRequest.ts +105 -0
- package/buff/request/CheckImportUserDataByUserIdRequest.d.ts +33 -0
- package/buff/request/CheckImportUserDataByUserIdRequest.js +109 -0
- package/buff/request/CheckImportUserDataByUserIdRequest.js.map +1 -0
- package/buff/request/CheckImportUserDataByUserIdRequest.ts +119 -0
- package/buff/request/CleanUserDataByUserIdRequest.d.ts +29 -0
- package/buff/request/CleanUserDataByUserIdRequest.js +95 -0
- package/buff/request/CleanUserDataByUserIdRequest.js.map +1 -0
- package/buff/request/CleanUserDataByUserIdRequest.ts +105 -0
- package/buff/request/CreateBuffEntryModelMasterRequest.d.ts +58 -0
- package/buff/request/CreateBuffEntryModelMasterRequest.js +198 -0
- package/buff/request/CreateBuffEntryModelMasterRequest.js.map +1 -0
- package/buff/request/CreateBuffEntryModelMasterRequest.ts +202 -0
- package/buff/request/CreateNamespaceRequest.d.ts +30 -0
- package/buff/request/CreateNamespaceRequest.js +100 -0
- package/buff/request/CreateNamespaceRequest.js.map +1 -0
- package/buff/request/CreateNamespaceRequest.ts +104 -0
- package/buff/request/DeleteBuffEntryModelMasterRequest.d.ts +25 -0
- package/buff/request/DeleteBuffEntryModelMasterRequest.js +83 -0
- package/buff/request/DeleteBuffEntryModelMasterRequest.js.map +1 -0
- package/buff/request/DeleteBuffEntryModelMasterRequest.ts +90 -0
- package/buff/request/DeleteNamespaceRequest.d.ts +21 -0
- package/buff/request/DeleteNamespaceRequest.js +69 -0
- package/buff/request/DeleteNamespaceRequest.js.map +1 -0
- package/buff/request/DeleteNamespaceRequest.ts +76 -0
- package/buff/request/DescribeBuffEntryModelMastersRequest.d.ts +29 -0
- package/buff/request/DescribeBuffEntryModelMastersRequest.js +97 -0
- package/buff/request/DescribeBuffEntryModelMastersRequest.js.map +1 -0
- package/buff/request/DescribeBuffEntryModelMastersRequest.ts +104 -0
- package/buff/request/DescribeBuffEntryModelsRequest.d.ts +21 -0
- package/buff/request/DescribeBuffEntryModelsRequest.js +69 -0
- package/buff/request/DescribeBuffEntryModelsRequest.js.map +1 -0
- package/buff/request/DescribeBuffEntryModelsRequest.ts +76 -0
- package/buff/request/DescribeNamespacesRequest.d.ts +25 -0
- package/buff/request/DescribeNamespacesRequest.js +83 -0
- package/buff/request/DescribeNamespacesRequest.js.map +1 -0
- package/buff/request/DescribeNamespacesRequest.ts +90 -0
- package/buff/request/DumpUserDataByUserIdRequest.d.ts +29 -0
- package/buff/request/DumpUserDataByUserIdRequest.js +95 -0
- package/buff/request/DumpUserDataByUserIdRequest.js.map +1 -0
- package/buff/request/DumpUserDataByUserIdRequest.ts +105 -0
- package/buff/request/ExportMasterRequest.d.ts +21 -0
- package/buff/request/ExportMasterRequest.js +69 -0
- package/buff/request/ExportMasterRequest.js.map +1 -0
- package/buff/request/ExportMasterRequest.ts +76 -0
- package/buff/request/GetBuffEntryModelMasterRequest.d.ts +25 -0
- package/buff/request/GetBuffEntryModelMasterRequest.js +83 -0
- package/buff/request/GetBuffEntryModelMasterRequest.js.map +1 -0
- package/buff/request/GetBuffEntryModelMasterRequest.ts +90 -0
- package/buff/request/GetBuffEntryModelRequest.d.ts +25 -0
- package/buff/request/GetBuffEntryModelRequest.js +83 -0
- package/buff/request/GetBuffEntryModelRequest.js.map +1 -0
- package/buff/request/GetBuffEntryModelRequest.ts +90 -0
- package/buff/request/GetCurrentBuffMasterRequest.d.ts +21 -0
- package/buff/request/GetCurrentBuffMasterRequest.js +69 -0
- package/buff/request/GetCurrentBuffMasterRequest.js.map +1 -0
- package/buff/request/GetCurrentBuffMasterRequest.ts +76 -0
- package/buff/request/GetNamespaceRequest.d.ts +21 -0
- package/buff/request/GetNamespaceRequest.js +69 -0
- package/buff/request/GetNamespaceRequest.js.map +1 -0
- package/buff/request/GetNamespaceRequest.ts +76 -0
- package/buff/request/GetNamespaceStatusRequest.d.ts +21 -0
- package/buff/request/GetNamespaceStatusRequest.js +69 -0
- package/buff/request/GetNamespaceStatusRequest.js.map +1 -0
- package/buff/request/GetNamespaceStatusRequest.ts +76 -0
- package/buff/request/ImportUserDataByUserIdRequest.d.ts +33 -0
- package/buff/request/ImportUserDataByUserIdRequest.js +109 -0
- package/buff/request/ImportUserDataByUserIdRequest.js.map +1 -0
- package/buff/request/ImportUserDataByUserIdRequest.ts +119 -0
- package/buff/request/PrepareImportUserDataByUserIdRequest.d.ts +29 -0
- package/buff/request/PrepareImportUserDataByUserIdRequest.js +95 -0
- package/buff/request/PrepareImportUserDataByUserIdRequest.js.map +1 -0
- package/buff/request/PrepareImportUserDataByUserIdRequest.ts +105 -0
- package/buff/request/UpdateBuffEntryModelMasterRequest.d.ts +58 -0
- package/buff/request/UpdateBuffEntryModelMasterRequest.js +198 -0
- package/buff/request/UpdateBuffEntryModelMasterRequest.js.map +1 -0
- package/buff/request/UpdateBuffEntryModelMasterRequest.ts +202 -0
- package/buff/request/UpdateCurrentBuffMasterFromGitHubRequest.d.ts +26 -0
- package/buff/request/UpdateCurrentBuffMasterFromGitHubRequest.js +86 -0
- package/buff/request/UpdateCurrentBuffMasterFromGitHubRequest.js.map +1 -0
- package/buff/request/UpdateCurrentBuffMasterFromGitHubRequest.ts +90 -0
- package/buff/request/UpdateCurrentBuffMasterRequest.d.ts +25 -0
- package/buff/request/UpdateCurrentBuffMasterRequest.js +83 -0
- package/buff/request/UpdateCurrentBuffMasterRequest.js.map +1 -0
- package/buff/request/UpdateCurrentBuffMasterRequest.ts +90 -0
- package/buff/request/UpdateNamespaceRequest.d.ts +30 -0
- package/buff/request/UpdateNamespaceRequest.js +100 -0
- package/buff/request/UpdateNamespaceRequest.js.map +1 -0
- package/buff/request/UpdateNamespaceRequest.ts +104 -0
- package/buff/request/index.d.ts +27 -0
- package/buff/request/index.js +72 -0
- package/buff/request/index.js.map +1 -0
- package/buff/request/index.ts +70 -0
- package/buff/rest.d.ts +33 -0
- package/buff/rest.js +738 -0
- package/buff/rest.js.map +1 -0
- package/buff/rest.ts +840 -0
- package/buff/result/ApplyBuffByUserIdResult.d.ts +18 -0
- package/buff/result/ApplyBuffByUserIdResult.js +67 -0
- package/buff/result/ApplyBuffByUserIdResult.js.map +1 -0
- package/buff/result/ApplyBuffByUserIdResult.ts +72 -0
- package/buff/result/ApplyBuffResult.d.ts +18 -0
- package/buff/result/ApplyBuffResult.js +67 -0
- package/buff/result/ApplyBuffResult.js.map +1 -0
- package/buff/result/ApplyBuffResult.ts +72 -0
- package/buff/result/CheckCleanUserDataByUserIdResult.d.ts +9 -0
- package/buff/result/CheckCleanUserDataByUserIdResult.js +30 -0
- package/buff/result/CheckCleanUserDataByUserIdResult.js.map +1 -0
- package/buff/result/CheckCleanUserDataByUserIdResult.ts +29 -0
- package/buff/result/CheckDumpUserDataByUserIdResult.d.ts +13 -0
- package/buff/result/CheckDumpUserDataByUserIdResult.js +45 -0
- package/buff/result/CheckDumpUserDataByUserIdResult.js.map +1 -0
- package/buff/result/CheckDumpUserDataByUserIdResult.ts +46 -0
- package/buff/result/CheckImportUserDataByUserIdResult.d.ts +13 -0
- package/buff/result/CheckImportUserDataByUserIdResult.js +45 -0
- package/buff/result/CheckImportUserDataByUserIdResult.js.map +1 -0
- package/buff/result/CheckImportUserDataByUserIdResult.ts +46 -0
- package/buff/result/CleanUserDataByUserIdResult.d.ts +9 -0
- package/buff/result/CleanUserDataByUserIdResult.js +30 -0
- package/buff/result/CleanUserDataByUserIdResult.js.map +1 -0
- package/buff/result/CleanUserDataByUserIdResult.ts +29 -0
- package/buff/result/CreateBuffEntryModelMasterResult.d.ts +14 -0
- package/buff/result/CreateBuffEntryModelMasterResult.js +48 -0
- package/buff/result/CreateBuffEntryModelMasterResult.js.map +1 -0
- package/buff/result/CreateBuffEntryModelMasterResult.ts +47 -0
- package/buff/result/CreateNamespaceResult.d.ts +14 -0
- package/buff/result/CreateNamespaceResult.js +48 -0
- package/buff/result/CreateNamespaceResult.js.map +1 -0
- package/buff/result/CreateNamespaceResult.ts +47 -0
- package/buff/result/DeleteBuffEntryModelMasterResult.d.ts +14 -0
- package/buff/result/DeleteBuffEntryModelMasterResult.js +48 -0
- package/buff/result/DeleteBuffEntryModelMasterResult.js.map +1 -0
- package/buff/result/DeleteBuffEntryModelMasterResult.ts +47 -0
- package/buff/result/DeleteNamespaceResult.d.ts +14 -0
- package/buff/result/DeleteNamespaceResult.js +48 -0
- package/buff/result/DeleteNamespaceResult.js.map +1 -0
- package/buff/result/DeleteNamespaceResult.ts +47 -0
- package/buff/result/DescribeBuffEntryModelMastersResult.d.ts +18 -0
- package/buff/result/DescribeBuffEntryModelMastersResult.js +67 -0
- package/buff/result/DescribeBuffEntryModelMastersResult.js.map +1 -0
- package/buff/result/DescribeBuffEntryModelMastersResult.ts +72 -0
- package/buff/result/DescribeBuffEntryModelsResult.d.ts +14 -0
- package/buff/result/DescribeBuffEntryModelsResult.js +53 -0
- package/buff/result/DescribeBuffEntryModelsResult.js.map +1 -0
- package/buff/result/DescribeBuffEntryModelsResult.ts +55 -0
- package/buff/result/DescribeNamespacesResult.d.ts +18 -0
- package/buff/result/DescribeNamespacesResult.js +67 -0
- package/buff/result/DescribeNamespacesResult.js.map +1 -0
- package/buff/result/DescribeNamespacesResult.ts +72 -0
- package/buff/result/DumpUserDataByUserIdResult.d.ts +9 -0
- package/buff/result/DumpUserDataByUserIdResult.js +30 -0
- package/buff/result/DumpUserDataByUserIdResult.js.map +1 -0
- package/buff/result/DumpUserDataByUserIdResult.ts +29 -0
- package/buff/result/ExportMasterResult.d.ts +14 -0
- package/buff/result/ExportMasterResult.js +48 -0
- package/buff/result/ExportMasterResult.js.map +1 -0
- package/buff/result/ExportMasterResult.ts +47 -0
- package/buff/result/GetBuffEntryModelMasterResult.d.ts +14 -0
- package/buff/result/GetBuffEntryModelMasterResult.js +48 -0
- package/buff/result/GetBuffEntryModelMasterResult.js.map +1 -0
- package/buff/result/GetBuffEntryModelMasterResult.ts +47 -0
- package/buff/result/GetBuffEntryModelResult.d.ts +14 -0
- package/buff/result/GetBuffEntryModelResult.js +48 -0
- package/buff/result/GetBuffEntryModelResult.js.map +1 -0
- package/buff/result/GetBuffEntryModelResult.ts +47 -0
- package/buff/result/GetCurrentBuffMasterResult.d.ts +14 -0
- package/buff/result/GetCurrentBuffMasterResult.js +48 -0
- package/buff/result/GetCurrentBuffMasterResult.js.map +1 -0
- package/buff/result/GetCurrentBuffMasterResult.ts +47 -0
- package/buff/result/GetNamespaceResult.d.ts +14 -0
- package/buff/result/GetNamespaceResult.js +48 -0
- package/buff/result/GetNamespaceResult.js.map +1 -0
- package/buff/result/GetNamespaceResult.ts +47 -0
- package/buff/result/GetNamespaceStatusResult.d.ts +13 -0
- package/buff/result/GetNamespaceStatusResult.js +45 -0
- package/buff/result/GetNamespaceStatusResult.js.map +1 -0
- package/buff/result/GetNamespaceStatusResult.ts +46 -0
- package/buff/result/ImportUserDataByUserIdResult.d.ts +9 -0
- package/buff/result/ImportUserDataByUserIdResult.js +30 -0
- package/buff/result/ImportUserDataByUserIdResult.js.map +1 -0
- package/buff/result/ImportUserDataByUserIdResult.ts +29 -0
- package/buff/result/PrepareImportUserDataByUserIdResult.d.ts +17 -0
- package/buff/result/PrepareImportUserDataByUserIdResult.js +59 -0
- package/buff/result/PrepareImportUserDataByUserIdResult.js.map +1 -0
- package/buff/result/PrepareImportUserDataByUserIdResult.ts +63 -0
- package/buff/result/UpdateBuffEntryModelMasterResult.d.ts +14 -0
- package/buff/result/UpdateBuffEntryModelMasterResult.js +48 -0
- package/buff/result/UpdateBuffEntryModelMasterResult.js.map +1 -0
- package/buff/result/UpdateBuffEntryModelMasterResult.ts +47 -0
- package/buff/result/UpdateCurrentBuffMasterFromGitHubResult.d.ts +14 -0
- package/buff/result/UpdateCurrentBuffMasterFromGitHubResult.js +48 -0
- package/buff/result/UpdateCurrentBuffMasterFromGitHubResult.js.map +1 -0
- package/buff/result/UpdateCurrentBuffMasterFromGitHubResult.ts +47 -0
- package/buff/result/UpdateCurrentBuffMasterResult.d.ts +14 -0
- package/buff/result/UpdateCurrentBuffMasterResult.js +48 -0
- package/buff/result/UpdateCurrentBuffMasterResult.js.map +1 -0
- package/buff/result/UpdateCurrentBuffMasterResult.ts +47 -0
- package/buff/result/UpdateNamespaceResult.d.ts +14 -0
- package/buff/result/UpdateNamespaceResult.js +48 -0
- package/buff/result/UpdateNamespaceResult.js.map +1 -0
- package/buff/result/UpdateNamespaceResult.ts +47 -0
- package/buff/result/index.d.ts +27 -0
- package/buff/result/index.js +72 -0
- package/buff/result/index.js.map +1 -0
- package/buff/result/index.ts +70 -0
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.ts +2 -0
- package/inventory/result/AddReferenceOfByUserIdResult.d.ts +3 -3
- package/inventory/result/AddReferenceOfByUserIdResult.js +2 -8
- package/inventory/result/AddReferenceOfByUserIdResult.js.map +1 -1
- package/inventory/result/AddReferenceOfByUserIdResult.ts +6 -14
- package/inventory/result/AddReferenceOfItemSetByStampSheetResult.d.ts +3 -3
- package/inventory/result/AddReferenceOfItemSetByStampSheetResult.js +2 -8
- package/inventory/result/AddReferenceOfItemSetByStampSheetResult.js.map +1 -1
- package/inventory/result/AddReferenceOfItemSetByStampSheetResult.ts +6 -14
- package/inventory/result/AddReferenceOfResult.d.ts +3 -3
- package/inventory/result/AddReferenceOfResult.js +2 -8
- package/inventory/result/AddReferenceOfResult.js.map +1 -1
- package/inventory/result/AddReferenceOfResult.ts +6 -14
- package/inventory/result/DeleteReferenceOfByUserIdResult.d.ts +3 -3
- package/inventory/result/DeleteReferenceOfByUserIdResult.js +2 -8
- package/inventory/result/DeleteReferenceOfByUserIdResult.js.map +1 -1
- package/inventory/result/DeleteReferenceOfByUserIdResult.ts +6 -14
- package/inventory/result/DeleteReferenceOfItemSetByStampSheetResult.d.ts +3 -3
- package/inventory/result/DeleteReferenceOfItemSetByStampSheetResult.js +2 -8
- package/inventory/result/DeleteReferenceOfItemSetByStampSheetResult.js.map +1 -1
- package/inventory/result/DeleteReferenceOfItemSetByStampSheetResult.ts +6 -14
- package/inventory/result/DeleteReferenceOfResult.d.ts +3 -3
- package/inventory/result/DeleteReferenceOfResult.js +2 -8
- package/inventory/result/DeleteReferenceOfResult.js.map +1 -1
- package/inventory/result/DeleteReferenceOfResult.ts +6 -14
- package/inventory/result/GetReferenceOfByUserIdResult.d.ts +3 -3
- package/inventory/result/GetReferenceOfByUserIdResult.js +2 -8
- package/inventory/result/GetReferenceOfByUserIdResult.js.map +1 -1
- package/inventory/result/GetReferenceOfByUserIdResult.ts +6 -14
- package/inventory/result/GetReferenceOfResult.d.ts +3 -3
- package/inventory/result/GetReferenceOfResult.js +2 -8
- package/inventory/result/GetReferenceOfResult.js.map +1 -1
- package/inventory/result/GetReferenceOfResult.ts +6 -14
- package/inventory/result/VerifyReferenceOfByStampTaskResult.d.ts +3 -3
- package/inventory/result/VerifyReferenceOfByStampTaskResult.js +2 -8
- package/inventory/result/VerifyReferenceOfByStampTaskResult.js.map +1 -1
- package/inventory/result/VerifyReferenceOfByStampTaskResult.ts +6 -14
- package/inventory/result/VerifyReferenceOfByUserIdResult.d.ts +3 -3
- package/inventory/result/VerifyReferenceOfByUserIdResult.js +2 -8
- package/inventory/result/VerifyReferenceOfByUserIdResult.js.map +1 -1
- package/inventory/result/VerifyReferenceOfByUserIdResult.ts +6 -14
- package/inventory/result/VerifyReferenceOfResult.d.ts +3 -3
- package/inventory/result/VerifyReferenceOfResult.js +2 -8
- package/inventory/result/VerifyReferenceOfResult.js.map +1 -1
- package/inventory/result/VerifyReferenceOfResult.ts +6 -14
- package/package.json +1 -1
- package/script/request/InvokeScriptRequest.d.ts +4 -0
- package/script/request/InvokeScriptRequest.js +12 -0
- package/script/request/InvokeScriptRequest.js.map +1 -1
- package/script/request/InvokeScriptRequest.ts +15 -0
- package/script/rest.js +10 -7
- package/script/rest.js.map +1 -1
- package/script/rest.ts +3 -0
- package/serialKey/model/CampaignModel.js +1 -1
- package/serialKey/model/CampaignModel.js.map +1 -1
- package/serialKey/model/CampaignModel.ts +1 -1
- package/serialKey/model/IssueJob.js +1 -1
- package/serialKey/model/IssueJob.js.map +1 -1
- package/serialKey/model/IssueJob.ts +1 -1
- package/watch/model/DictionaryEntryModel.d.ts +26 -0
- package/watch/model/DictionaryEntryModel.js +195 -0
- package/watch/model/DictionaryEntryModel.js.map +1 -0
- package/watch/model/DictionaryEntryModel.ts +217 -0
- package/watch/model/FormationForm.d.ts +3 -3
- package/watch/model/FormationForm.ts +4 -4
- package/watch/model/KeyKey.d.ts +26 -0
- package/watch/model/KeyKey.js +195 -0
- package/watch/model/KeyKey.js.map +1 -0
- package/watch/model/KeyKey.ts +217 -0
- package/watch/model/LotteryLotteryModel.d.ts +26 -0
- package/watch/model/LotteryLotteryModel.js +195 -0
- package/watch/model/LotteryLotteryModel.js.map +1 -0
- package/watch/model/LotteryLotteryModel.ts +217 -0
- package/watch/model/MissionMissionTaskModel.d.ts +27 -0
- package/watch/model/MissionMissionTaskModel.js +221 -0
- package/watch/model/MissionMissionTaskModel.js.map +1 -0
- package/watch/model/MissionMissionTaskModel.ts +246 -0
- package/watch/model/MoneyWallet.d.ts +3 -3
- package/watch/model/MoneyWallet.ts +4 -4
- package/watch/model/index.d.ts +5 -1
- package/watch/model/index.js +16 -7
- package/watch/model/index.js.map +1 -1
- package/watch/model/index.ts +8 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:watch:metrics:{year}:{month}:{day}:key:namespace:{namespaceName}:key:{keyName}";
|
|
19
|
+
|
|
20
|
+
export default class KeyKey implements IModel {
|
|
21
|
+
private keyId: string|null = null;
|
|
22
|
+
private keyName: string|null = null;
|
|
23
|
+
|
|
24
|
+
public static getRegion(grn: string): string|null {
|
|
25
|
+
const match = grn.match(grnFormat
|
|
26
|
+
.replace('{region}', '(.*)')
|
|
27
|
+
.replace('{ownerId}', '.*')
|
|
28
|
+
.replace('{year}', '.*')
|
|
29
|
+
.replace('{month}', '.*')
|
|
30
|
+
.replace('{day}', '.*')
|
|
31
|
+
.replace('{namespaceName}', '.*')
|
|
32
|
+
.replace('{keyName}', '.*')
|
|
33
|
+
);
|
|
34
|
+
if (match) {
|
|
35
|
+
return match[1];
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public static getOwnerId(grn: string): string|null {
|
|
41
|
+
const match = grn.match(grnFormat
|
|
42
|
+
.replace('{region}', '.*')
|
|
43
|
+
.replace('{ownerId}', '(.*)')
|
|
44
|
+
.replace('{year}', '.*')
|
|
45
|
+
.replace('{month}', '.*')
|
|
46
|
+
.replace('{day}', '.*')
|
|
47
|
+
.replace('{namespaceName}', '.*')
|
|
48
|
+
.replace('{keyName}', '.*')
|
|
49
|
+
);
|
|
50
|
+
if (match) {
|
|
51
|
+
return match[1];
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public static getYear(grn: string): string|null {
|
|
57
|
+
const match = grn.match(grnFormat
|
|
58
|
+
.replace('{region}', '.*')
|
|
59
|
+
.replace('{ownerId}', '.*')
|
|
60
|
+
.replace('{year}', '(.*)')
|
|
61
|
+
.replace('{month}', '.*')
|
|
62
|
+
.replace('{day}', '.*')
|
|
63
|
+
.replace('{namespaceName}', '.*')
|
|
64
|
+
.replace('{keyName}', '.*')
|
|
65
|
+
);
|
|
66
|
+
if (match) {
|
|
67
|
+
return match[1];
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public static getMonth(grn: string): string|null {
|
|
73
|
+
const match = grn.match(grnFormat
|
|
74
|
+
.replace('{region}', '.*')
|
|
75
|
+
.replace('{ownerId}', '.*')
|
|
76
|
+
.replace('{year}', '.*')
|
|
77
|
+
.replace('{month}', '(.*)')
|
|
78
|
+
.replace('{day}', '.*')
|
|
79
|
+
.replace('{namespaceName}', '.*')
|
|
80
|
+
.replace('{keyName}', '.*')
|
|
81
|
+
);
|
|
82
|
+
if (match) {
|
|
83
|
+
return match[1];
|
|
84
|
+
}
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
public static getDay(grn: string): string|null {
|
|
89
|
+
const match = grn.match(grnFormat
|
|
90
|
+
.replace('{region}', '.*')
|
|
91
|
+
.replace('{ownerId}', '.*')
|
|
92
|
+
.replace('{year}', '.*')
|
|
93
|
+
.replace('{month}', '.*')
|
|
94
|
+
.replace('{day}', '(.*)')
|
|
95
|
+
.replace('{namespaceName}', '.*')
|
|
96
|
+
.replace('{keyName}', '.*')
|
|
97
|
+
);
|
|
98
|
+
if (match) {
|
|
99
|
+
return match[1];
|
|
100
|
+
}
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
public static getNamespaceName(grn: string): string|null {
|
|
105
|
+
const match = grn.match(grnFormat
|
|
106
|
+
.replace('{region}', '.*')
|
|
107
|
+
.replace('{ownerId}', '.*')
|
|
108
|
+
.replace('{year}', '.*')
|
|
109
|
+
.replace('{month}', '.*')
|
|
110
|
+
.replace('{day}', '.*')
|
|
111
|
+
.replace('{namespaceName}', '(.*)')
|
|
112
|
+
.replace('{keyName}', '.*')
|
|
113
|
+
);
|
|
114
|
+
if (match) {
|
|
115
|
+
return match[1];
|
|
116
|
+
}
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
public static getKeyName(grn: string): string|null {
|
|
121
|
+
const match = grn.match(grnFormat
|
|
122
|
+
.replace('{region}', '.*')
|
|
123
|
+
.replace('{ownerId}', '.*')
|
|
124
|
+
.replace('{year}', '.*')
|
|
125
|
+
.replace('{month}', '.*')
|
|
126
|
+
.replace('{day}', '.*')
|
|
127
|
+
.replace('{namespaceName}', '.*')
|
|
128
|
+
.replace('{keyName}', '(.*)')
|
|
129
|
+
);
|
|
130
|
+
if (match) {
|
|
131
|
+
return match[1];
|
|
132
|
+
}
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
public static isValid(grn: string): boolean {
|
|
137
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
if (this.getYear(grn) == null || this.getYear(grn) === '') {
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
if (this.getMonth(grn) == null || this.getMonth(grn) === '') {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
if (this.getDay(grn) == null || this.getDay(grn) === '') {
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
if (this.getKeyName(grn) == null || this.getKeyName(grn) === '') {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
return true;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
public static createGrn(
|
|
162
|
+
region: string|null,
|
|
163
|
+
ownerId: string|null,
|
|
164
|
+
year: string|null,
|
|
165
|
+
month: string|null,
|
|
166
|
+
day: string|null,
|
|
167
|
+
namespaceName: string|null,
|
|
168
|
+
keyName: string|null,
|
|
169
|
+
): string|null {
|
|
170
|
+
return grnFormat
|
|
171
|
+
.replace('{region}', region ?? '')
|
|
172
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
173
|
+
.replace('{year}', year ?? '')
|
|
174
|
+
.replace('{month}', month ?? '')
|
|
175
|
+
.replace('{day}', day ?? '')
|
|
176
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
177
|
+
.replace('{keyName}', keyName ?? '');
|
|
178
|
+
}
|
|
179
|
+
public getKeyId(): string|null {
|
|
180
|
+
return this.keyId;
|
|
181
|
+
}
|
|
182
|
+
public setKeyId(keyId: string|null) {
|
|
183
|
+
this.keyId = keyId;
|
|
184
|
+
return this;
|
|
185
|
+
}
|
|
186
|
+
public withKeyId(keyId: string|null): this {
|
|
187
|
+
this.keyId = keyId;
|
|
188
|
+
return this;
|
|
189
|
+
}
|
|
190
|
+
public getKeyName(): string|null {
|
|
191
|
+
return this.keyName;
|
|
192
|
+
}
|
|
193
|
+
public setKeyName(keyName: string|null) {
|
|
194
|
+
this.keyName = keyName;
|
|
195
|
+
return this;
|
|
196
|
+
}
|
|
197
|
+
public withKeyName(keyName: string|null): this {
|
|
198
|
+
this.keyName = keyName;
|
|
199
|
+
return this;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
public static fromDict(data: {[key: string]: any}): KeyKey|null {
|
|
203
|
+
if (data == undefined || data == null) {
|
|
204
|
+
return null;
|
|
205
|
+
}
|
|
206
|
+
return new KeyKey()
|
|
207
|
+
.withKeyId(data["keyId"])
|
|
208
|
+
.withKeyName(data["keyName"]);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
public toDict(): {[key: string]: any} {
|
|
212
|
+
return {
|
|
213
|
+
"keyId": this.getKeyId(),
|
|
214
|
+
"keyName": this.getKeyName(),
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class LotteryLotteryModel implements IModel {
|
|
3
|
+
private lotteryModelId;
|
|
4
|
+
private lotteryName;
|
|
5
|
+
static getRegion(grn: string): string | null;
|
|
6
|
+
static getOwnerId(grn: string): string | null;
|
|
7
|
+
static getYear(grn: string): string | null;
|
|
8
|
+
static getMonth(grn: string): string | null;
|
|
9
|
+
static getDay(grn: string): string | null;
|
|
10
|
+
static getNamespaceName(grn: string): string | null;
|
|
11
|
+
static getLotteryName(grn: string): string | null;
|
|
12
|
+
static isValid(grn: string): boolean;
|
|
13
|
+
static createGrn(region: string | null, ownerId: string | null, year: string | null, month: string | null, day: string | null, namespaceName: string | null, lotteryName: string | null): string | null;
|
|
14
|
+
getLotteryModelId(): string | null;
|
|
15
|
+
setLotteryModelId(lotteryModelId: string | null): this;
|
|
16
|
+
withLotteryModelId(lotteryModelId: string | null): this;
|
|
17
|
+
getLotteryName(): string | null;
|
|
18
|
+
setLotteryName(lotteryName: string | null): this;
|
|
19
|
+
withLotteryName(lotteryName: string | null): this;
|
|
20
|
+
static fromDict(data: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}): LotteryLotteryModel | null;
|
|
23
|
+
toDict(): {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var grnFormat = "grn:gs2:{region}:{ownerId}:watch:metrics:{year}:{month}:{day}:lottery:namespace:{namespaceName}:lotteryModel:{lotteryName}";
|
|
19
|
+
var LotteryLotteryModel = /** @class */ (function () {
|
|
20
|
+
function LotteryLotteryModel() {
|
|
21
|
+
this.lotteryModelId = null;
|
|
22
|
+
this.lotteryName = null;
|
|
23
|
+
}
|
|
24
|
+
LotteryLotteryModel.getRegion = function (grn) {
|
|
25
|
+
var match = grn.match(grnFormat
|
|
26
|
+
.replace('{region}', '(.*)')
|
|
27
|
+
.replace('{ownerId}', '.*')
|
|
28
|
+
.replace('{year}', '.*')
|
|
29
|
+
.replace('{month}', '.*')
|
|
30
|
+
.replace('{day}', '.*')
|
|
31
|
+
.replace('{namespaceName}', '.*')
|
|
32
|
+
.replace('{lotteryName}', '.*'));
|
|
33
|
+
if (match) {
|
|
34
|
+
return match[1];
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
};
|
|
38
|
+
LotteryLotteryModel.getOwnerId = function (grn) {
|
|
39
|
+
var match = grn.match(grnFormat
|
|
40
|
+
.replace('{region}', '.*')
|
|
41
|
+
.replace('{ownerId}', '(.*)')
|
|
42
|
+
.replace('{year}', '.*')
|
|
43
|
+
.replace('{month}', '.*')
|
|
44
|
+
.replace('{day}', '.*')
|
|
45
|
+
.replace('{namespaceName}', '.*')
|
|
46
|
+
.replace('{lotteryName}', '.*'));
|
|
47
|
+
if (match) {
|
|
48
|
+
return match[1];
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
};
|
|
52
|
+
LotteryLotteryModel.getYear = function (grn) {
|
|
53
|
+
var match = grn.match(grnFormat
|
|
54
|
+
.replace('{region}', '.*')
|
|
55
|
+
.replace('{ownerId}', '.*')
|
|
56
|
+
.replace('{year}', '(.*)')
|
|
57
|
+
.replace('{month}', '.*')
|
|
58
|
+
.replace('{day}', '.*')
|
|
59
|
+
.replace('{namespaceName}', '.*')
|
|
60
|
+
.replace('{lotteryName}', '.*'));
|
|
61
|
+
if (match) {
|
|
62
|
+
return match[1];
|
|
63
|
+
}
|
|
64
|
+
return null;
|
|
65
|
+
};
|
|
66
|
+
LotteryLotteryModel.getMonth = function (grn) {
|
|
67
|
+
var match = grn.match(grnFormat
|
|
68
|
+
.replace('{region}', '.*')
|
|
69
|
+
.replace('{ownerId}', '.*')
|
|
70
|
+
.replace('{year}', '.*')
|
|
71
|
+
.replace('{month}', '(.*)')
|
|
72
|
+
.replace('{day}', '.*')
|
|
73
|
+
.replace('{namespaceName}', '.*')
|
|
74
|
+
.replace('{lotteryName}', '.*'));
|
|
75
|
+
if (match) {
|
|
76
|
+
return match[1];
|
|
77
|
+
}
|
|
78
|
+
return null;
|
|
79
|
+
};
|
|
80
|
+
LotteryLotteryModel.getDay = function (grn) {
|
|
81
|
+
var match = grn.match(grnFormat
|
|
82
|
+
.replace('{region}', '.*')
|
|
83
|
+
.replace('{ownerId}', '.*')
|
|
84
|
+
.replace('{year}', '.*')
|
|
85
|
+
.replace('{month}', '.*')
|
|
86
|
+
.replace('{day}', '(.*)')
|
|
87
|
+
.replace('{namespaceName}', '.*')
|
|
88
|
+
.replace('{lotteryName}', '.*'));
|
|
89
|
+
if (match) {
|
|
90
|
+
return match[1];
|
|
91
|
+
}
|
|
92
|
+
return null;
|
|
93
|
+
};
|
|
94
|
+
LotteryLotteryModel.getNamespaceName = function (grn) {
|
|
95
|
+
var match = grn.match(grnFormat
|
|
96
|
+
.replace('{region}', '.*')
|
|
97
|
+
.replace('{ownerId}', '.*')
|
|
98
|
+
.replace('{year}', '.*')
|
|
99
|
+
.replace('{month}', '.*')
|
|
100
|
+
.replace('{day}', '.*')
|
|
101
|
+
.replace('{namespaceName}', '(.*)')
|
|
102
|
+
.replace('{lotteryName}', '.*'));
|
|
103
|
+
if (match) {
|
|
104
|
+
return match[1];
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
};
|
|
108
|
+
LotteryLotteryModel.getLotteryName = function (grn) {
|
|
109
|
+
var match = grn.match(grnFormat
|
|
110
|
+
.replace('{region}', '.*')
|
|
111
|
+
.replace('{ownerId}', '.*')
|
|
112
|
+
.replace('{year}', '.*')
|
|
113
|
+
.replace('{month}', '.*')
|
|
114
|
+
.replace('{day}', '.*')
|
|
115
|
+
.replace('{namespaceName}', '.*')
|
|
116
|
+
.replace('{lotteryName}', '(.*)'));
|
|
117
|
+
if (match) {
|
|
118
|
+
return match[1];
|
|
119
|
+
}
|
|
120
|
+
return null;
|
|
121
|
+
};
|
|
122
|
+
LotteryLotteryModel.isValid = function (grn) {
|
|
123
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
if (this.getYear(grn) == null || this.getYear(grn) === '') {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
if (this.getMonth(grn) == null || this.getMonth(grn) === '') {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
if (this.getDay(grn) == null || this.getDay(grn) === '') {
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
if (this.getLotteryName(grn) == null || this.getLotteryName(grn) === '') {
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
return true;
|
|
145
|
+
};
|
|
146
|
+
LotteryLotteryModel.createGrn = function (region, ownerId, year, month, day, namespaceName, lotteryName) {
|
|
147
|
+
return grnFormat
|
|
148
|
+
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
149
|
+
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
150
|
+
.replace('{year}', year !== null && year !== void 0 ? year : '')
|
|
151
|
+
.replace('{month}', month !== null && month !== void 0 ? month : '')
|
|
152
|
+
.replace('{day}', day !== null && day !== void 0 ? day : '')
|
|
153
|
+
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
154
|
+
.replace('{lotteryName}', lotteryName !== null && lotteryName !== void 0 ? lotteryName : '');
|
|
155
|
+
};
|
|
156
|
+
LotteryLotteryModel.prototype.getLotteryModelId = function () {
|
|
157
|
+
return this.lotteryModelId;
|
|
158
|
+
};
|
|
159
|
+
LotteryLotteryModel.prototype.setLotteryModelId = function (lotteryModelId) {
|
|
160
|
+
this.lotteryModelId = lotteryModelId;
|
|
161
|
+
return this;
|
|
162
|
+
};
|
|
163
|
+
LotteryLotteryModel.prototype.withLotteryModelId = function (lotteryModelId) {
|
|
164
|
+
this.lotteryModelId = lotteryModelId;
|
|
165
|
+
return this;
|
|
166
|
+
};
|
|
167
|
+
LotteryLotteryModel.prototype.getLotteryName = function () {
|
|
168
|
+
return this.lotteryName;
|
|
169
|
+
};
|
|
170
|
+
LotteryLotteryModel.prototype.setLotteryName = function (lotteryName) {
|
|
171
|
+
this.lotteryName = lotteryName;
|
|
172
|
+
return this;
|
|
173
|
+
};
|
|
174
|
+
LotteryLotteryModel.prototype.withLotteryName = function (lotteryName) {
|
|
175
|
+
this.lotteryName = lotteryName;
|
|
176
|
+
return this;
|
|
177
|
+
};
|
|
178
|
+
LotteryLotteryModel.fromDict = function (data) {
|
|
179
|
+
if (data == undefined || data == null) {
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
return new LotteryLotteryModel()
|
|
183
|
+
.withLotteryModelId(data["lotteryModelId"])
|
|
184
|
+
.withLotteryName(data["lotteryName"]);
|
|
185
|
+
};
|
|
186
|
+
LotteryLotteryModel.prototype.toDict = function () {
|
|
187
|
+
return {
|
|
188
|
+
"lotteryModelId": this.getLotteryModelId(),
|
|
189
|
+
"lotteryName": this.getLotteryName(),
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
return LotteryLotteryModel;
|
|
193
|
+
}());
|
|
194
|
+
exports.default = LotteryLotteryModel;
|
|
195
|
+
//# sourceMappingURL=LotteryLotteryModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LotteryLotteryModel.js","sourceRoot":"","sources":["LotteryLotteryModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAGH,IAAM,SAAS,GAAW,4HAA4H,CAAC;AAEvJ;IAAA;QACY,mBAAc,GAAgB,IAAI,CAAC;QACnC,gBAAW,GAAgB,IAAI,CAAC;IAmM5C,CAAC;IAjMiB,6BAAS,GAAvB,UAAwB,G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AAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;IAC9C,CAAC;IAEM,oCAAM,GAAb;QACI,OAAO;YACH,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,EAAE;YAC1C,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;SACvC,CAAC;IACN,CAAC;IACL,0BAAC;AAAD,CAAC,AArMD,IAqMC"}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:watch:metrics:{year}:{month}:{day}:lottery:namespace:{namespaceName}:lotteryModel:{lotteryName}";
|
|
19
|
+
|
|
20
|
+
export default class LotteryLotteryModel implements IModel {
|
|
21
|
+
private lotteryModelId: string|null = null;
|
|
22
|
+
private lotteryName: string|null = null;
|
|
23
|
+
|
|
24
|
+
public static getRegion(grn: string): string|null {
|
|
25
|
+
const match = grn.match(grnFormat
|
|
26
|
+
.replace('{region}', '(.*)')
|
|
27
|
+
.replace('{ownerId}', '.*')
|
|
28
|
+
.replace('{year}', '.*')
|
|
29
|
+
.replace('{month}', '.*')
|
|
30
|
+
.replace('{day}', '.*')
|
|
31
|
+
.replace('{namespaceName}', '.*')
|
|
32
|
+
.replace('{lotteryName}', '.*')
|
|
33
|
+
);
|
|
34
|
+
if (match) {
|
|
35
|
+
return match[1];
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public static getOwnerId(grn: string): string|null {
|
|
41
|
+
const match = grn.match(grnFormat
|
|
42
|
+
.replace('{region}', '.*')
|
|
43
|
+
.replace('{ownerId}', '(.*)')
|
|
44
|
+
.replace('{year}', '.*')
|
|
45
|
+
.replace('{month}', '.*')
|
|
46
|
+
.replace('{day}', '.*')
|
|
47
|
+
.replace('{namespaceName}', '.*')
|
|
48
|
+
.replace('{lotteryName}', '.*')
|
|
49
|
+
);
|
|
50
|
+
if (match) {
|
|
51
|
+
return match[1];
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public static getYear(grn: string): string|null {
|
|
57
|
+
const match = grn.match(grnFormat
|
|
58
|
+
.replace('{region}', '.*')
|
|
59
|
+
.replace('{ownerId}', '.*')
|
|
60
|
+
.replace('{year}', '(.*)')
|
|
61
|
+
.replace('{month}', '.*')
|
|
62
|
+
.replace('{day}', '.*')
|
|
63
|
+
.replace('{namespaceName}', '.*')
|
|
64
|
+
.replace('{lotteryName}', '.*')
|
|
65
|
+
);
|
|
66
|
+
if (match) {
|
|
67
|
+
return match[1];
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public static getMonth(grn: string): string|null {
|
|
73
|
+
const match = grn.match(grnFormat
|
|
74
|
+
.replace('{region}', '.*')
|
|
75
|
+
.replace('{ownerId}', '.*')
|
|
76
|
+
.replace('{year}', '.*')
|
|
77
|
+
.replace('{month}', '(.*)')
|
|
78
|
+
.replace('{day}', '.*')
|
|
79
|
+
.replace('{namespaceName}', '.*')
|
|
80
|
+
.replace('{lotteryName}', '.*')
|
|
81
|
+
);
|
|
82
|
+
if (match) {
|
|
83
|
+
return match[1];
|
|
84
|
+
}
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
public static getDay(grn: string): string|null {
|
|
89
|
+
const match = grn.match(grnFormat
|
|
90
|
+
.replace('{region}', '.*')
|
|
91
|
+
.replace('{ownerId}', '.*')
|
|
92
|
+
.replace('{year}', '.*')
|
|
93
|
+
.replace('{month}', '.*')
|
|
94
|
+
.replace('{day}', '(.*)')
|
|
95
|
+
.replace('{namespaceName}', '.*')
|
|
96
|
+
.replace('{lotteryName}', '.*')
|
|
97
|
+
);
|
|
98
|
+
if (match) {
|
|
99
|
+
return match[1];
|
|
100
|
+
}
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
public static getNamespaceName(grn: string): string|null {
|
|
105
|
+
const match = grn.match(grnFormat
|
|
106
|
+
.replace('{region}', '.*')
|
|
107
|
+
.replace('{ownerId}', '.*')
|
|
108
|
+
.replace('{year}', '.*')
|
|
109
|
+
.replace('{month}', '.*')
|
|
110
|
+
.replace('{day}', '.*')
|
|
111
|
+
.replace('{namespaceName}', '(.*)')
|
|
112
|
+
.replace('{lotteryName}', '.*')
|
|
113
|
+
);
|
|
114
|
+
if (match) {
|
|
115
|
+
return match[1];
|
|
116
|
+
}
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
public static getLotteryName(grn: string): string|null {
|
|
121
|
+
const match = grn.match(grnFormat
|
|
122
|
+
.replace('{region}', '.*')
|
|
123
|
+
.replace('{ownerId}', '.*')
|
|
124
|
+
.replace('{year}', '.*')
|
|
125
|
+
.replace('{month}', '.*')
|
|
126
|
+
.replace('{day}', '.*')
|
|
127
|
+
.replace('{namespaceName}', '.*')
|
|
128
|
+
.replace('{lotteryName}', '(.*)')
|
|
129
|
+
);
|
|
130
|
+
if (match) {
|
|
131
|
+
return match[1];
|
|
132
|
+
}
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
public static isValid(grn: string): boolean {
|
|
137
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
if (this.getYear(grn) == null || this.getYear(grn) === '') {
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
if (this.getMonth(grn) == null || this.getMonth(grn) === '') {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
if (this.getDay(grn) == null || this.getDay(grn) === '') {
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
if (this.getLotteryName(grn) == null || this.getLotteryName(grn) === '') {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
return true;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
public static createGrn(
|
|
162
|
+
region: string|null,
|
|
163
|
+
ownerId: string|null,
|
|
164
|
+
year: string|null,
|
|
165
|
+
month: string|null,
|
|
166
|
+
day: string|null,
|
|
167
|
+
namespaceName: string|null,
|
|
168
|
+
lotteryName: string|null,
|
|
169
|
+
): string|null {
|
|
170
|
+
return grnFormat
|
|
171
|
+
.replace('{region}', region ?? '')
|
|
172
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
173
|
+
.replace('{year}', year ?? '')
|
|
174
|
+
.replace('{month}', month ?? '')
|
|
175
|
+
.replace('{day}', day ?? '')
|
|
176
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
177
|
+
.replace('{lotteryName}', lotteryName ?? '');
|
|
178
|
+
}
|
|
179
|
+
public getLotteryModelId(): string|null {
|
|
180
|
+
return this.lotteryModelId;
|
|
181
|
+
}
|
|
182
|
+
public setLotteryModelId(lotteryModelId: string|null) {
|
|
183
|
+
this.lotteryModelId = lotteryModelId;
|
|
184
|
+
return this;
|
|
185
|
+
}
|
|
186
|
+
public withLotteryModelId(lotteryModelId: string|null): this {
|
|
187
|
+
this.lotteryModelId = lotteryModelId;
|
|
188
|
+
return this;
|
|
189
|
+
}
|
|
190
|
+
public getLotteryName(): string|null {
|
|
191
|
+
return this.lotteryName;
|
|
192
|
+
}
|
|
193
|
+
public setLotteryName(lotteryName: string|null) {
|
|
194
|
+
this.lotteryName = lotteryName;
|
|
195
|
+
return this;
|
|
196
|
+
}
|
|
197
|
+
public withLotteryName(lotteryName: string|null): this {
|
|
198
|
+
this.lotteryName = lotteryName;
|
|
199
|
+
return this;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
public static fromDict(data: {[key: string]: any}): LotteryLotteryModel|null {
|
|
203
|
+
if (data == undefined || data == null) {
|
|
204
|
+
return null;
|
|
205
|
+
}
|
|
206
|
+
return new LotteryLotteryModel()
|
|
207
|
+
.withLotteryModelId(data["lotteryModelId"])
|
|
208
|
+
.withLotteryName(data["lotteryName"]);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
public toDict(): {[key: string]: any} {
|
|
212
|
+
return {
|
|
213
|
+
"lotteryModelId": this.getLotteryModelId(),
|
|
214
|
+
"lotteryName": this.getLotteryName(),
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
}
|