gs2-cdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/func/Func.d.ts +2 -0
- package/core/func/Func.js +3 -0
- package/core/func/Func.js.map +1 -0
- package/core/func/Func.ts +18 -0
- package/core/func/GetAttr.d.ts +9 -0
- package/core/func/GetAttr.js +38 -0
- package/core/func/GetAttr.js.map +1 -0
- package/core/func/GetAttr.ts +55 -0
- package/core/func/Join.d.ts +7 -0
- package/core/func/Join.js +28 -0
- package/core/func/Join.js.map +1 -0
- package/core/func/Join.ts +35 -0
- package/core/func/index.d.ts +4 -0
- package/core/func/index.js +24 -0
- package/core/func/index.js.map +1 -0
- package/core/func/index.ts +25 -0
- package/core/index.d.ts +4 -0
- package/core/index.js +22 -0
- package/core/index.js.map +1 -0
- package/core/index.ts +23 -0
- package/core/model/AcquireAction.d.ts +12 -0
- package/core/model/AcquireAction.js +31 -0
- package/core/model/AcquireAction.js.map +1 -0
- package/core/model/AcquireAction.ts +36 -0
- package/core/model/CdkResource.d.ts +13 -0
- package/core/model/CdkResource.js +36 -0
- package/core/model/CdkResource.js.map +1 -0
- package/core/model/CdkResource.ts +47 -0
- package/core/model/Config.d.ts +8 -0
- package/core/model/Config.js +31 -0
- package/core/model/Config.js.map +1 -0
- package/core/model/Config.ts +36 -0
- package/core/model/ConsumeAction.d.ts +12 -0
- package/core/model/ConsumeAction.js +31 -0
- package/core/model/ConsumeAction.js.map +1 -0
- package/core/model/ConsumeAction.ts +36 -0
- package/core/model/LogSetting.d.ts +7 -0
- package/core/model/LogSetting.js +29 -0
- package/core/model/LogSetting.js.map +1 -0
- package/core/model/LogSetting.ts +32 -0
- package/core/model/NotificationSetting.d.ts +9 -0
- package/core/model/NotificationSetting.js +33 -0
- package/core/model/NotificationSetting.js.map +1 -0
- package/core/model/NotificationSetting.ts +40 -0
- package/core/model/ScriptSetting.d.ts +10 -0
- package/core/model/ScriptSetting.js +35 -0
- package/core/model/ScriptSetting.js.map +1 -0
- package/core/model/ScriptSetting.ts +45 -0
- package/core/model/Stack.d.ts +14 -0
- package/core/model/Stack.js +47 -0
- package/core/model/Stack.js.map +1 -0
- package/core/model/Stack.ts +60 -0
- package/core/model/TransactionSetting.d.ts +10 -0
- package/core/model/TransactionSetting.js +35 -0
- package/core/model/TransactionSetting.js.map +1 -0
- package/core/model/TransactionSetting.ts +44 -0
- package/core/model/index.d.ts +10 -0
- package/core/model/index.js +38 -0
- package/core/model/index.js.map +1 -0
- package/core/model/index.ts +37 -0
- package/distributor/index.d.ts +11 -0
- package/distributor/index.js +31 -0
- package/distributor/index.js.map +1 -0
- package/distributor/index.ts +34 -0
- package/distributor/model/CurrentMasterData.d.ts +12 -0
- package/distributor/model/CurrentMasterData.js +41 -0
- package/distributor/model/CurrentMasterData.js.map +1 -0
- package/distributor/model/CurrentMasterData.ts +52 -0
- package/distributor/model/DistributeResource.d.ts +10 -0
- package/distributor/model/DistributeResource.js +35 -0
- package/distributor/model/DistributeResource.js.map +1 -0
- package/distributor/model/DistributeResource.ts +43 -0
- package/distributor/model/DistributorModel.d.ts +17 -0
- package/distributor/model/DistributorModel.js +52 -0
- package/distributor/model/DistributorModel.js.map +1 -0
- package/distributor/model/DistributorModel.ts +67 -0
- package/distributor/model/DistributorModelMaster.d.ts +26 -0
- package/distributor/model/DistributorModelMaster.js +72 -0
- package/distributor/model/DistributorModelMaster.js.map +1 -0
- package/distributor/model/DistributorModelMaster.ts +102 -0
- package/distributor/model/Namespace.d.ts +29 -0
- package/distributor/model/Namespace.js +73 -0
- package/distributor/model/Namespace.js.map +1 -0
- package/distributor/model/Namespace.ts +111 -0
- package/distributor/model/index.d.ts +6 -0
- package/distributor/model/index.js +30 -0
- package/distributor/model/index.js.map +1 -0
- package/distributor/model/index.ts +28 -0
- package/distributor/ref/CurrentDistributorMasterRef.d.ts +5 -0
- package/distributor/ref/CurrentDistributorMasterRef.js +35 -0
- package/distributor/ref/CurrentDistributorMasterRef.js.map +1 -0
- package/distributor/ref/CurrentDistributorMasterRef.ts +42 -0
- package/distributor/ref/DistributorModelMasterRef.d.ts +6 -0
- package/distributor/ref/DistributorModelMasterRef.js +38 -0
- package/distributor/ref/DistributorModelMasterRef.js.map +1 -0
- package/distributor/ref/DistributorModelMasterRef.ts +47 -0
- package/distributor/ref/DistributorModelRef.d.ts +6 -0
- package/distributor/ref/DistributorModelRef.js +38 -0
- package/distributor/ref/DistributorModelRef.js.map +1 -0
- package/distributor/ref/DistributorModelRef.ts +47 -0
- package/distributor/ref/NamespaceRef.d.ts +11 -0
- package/distributor/ref/NamespaceRef.js +48 -0
- package/distributor/ref/NamespaceRef.js.map +1 -0
- package/distributor/ref/NamespaceRef.ts +70 -0
- package/distributor/ref/index.d.ts +5 -0
- package/distributor/ref/index.js +28 -0
- package/distributor/ref/index.js.map +1 -0
- package/distributor/ref/index.ts +26 -0
- package/distributor/stampSheet/index.d.ts +1 -0
- package/distributor/stampSheet/index.js +18 -0
- package/distributor/stampSheet/index.js.map +1 -0
- package/distributor/stampSheet/index.ts +18 -0
- package/identifier/index.d.ts +13 -0
- package/identifier/index.js +35 -0
- package/identifier/index.js.map +1 -0
- package/identifier/index.ts +43 -0
- package/identifier/model/AttachSecurityPolicy.d.ts +11 -0
- package/identifier/model/AttachSecurityPolicy.js +43 -0
- package/identifier/model/AttachSecurityPolicy.js.map +1 -0
- package/identifier/model/AttachSecurityPolicy.ts +54 -0
- package/identifier/model/Identifier.d.ts +14 -0
- package/identifier/model/Identifier.js +47 -0
- package/identifier/model/Identifier.js.map +1 -0
- package/identifier/model/Identifier.ts +70 -0
- package/identifier/model/Password.d.ts +15 -0
- package/identifier/model/Password.js +53 -0
- package/identifier/model/Password.js.map +1 -0
- package/identifier/model/Password.ts +74 -0
- package/identifier/model/Policy.d.ts +9 -0
- package/identifier/model/Policy.js +31 -0
- package/identifier/model/Policy.js.map +1 -0
- package/identifier/model/Policy.ts +36 -0
- package/identifier/model/ProjectToken.d.ts +10 -0
- package/identifier/model/ProjectToken.js +33 -0
- package/identifier/model/ProjectToken.js.map +1 -0
- package/identifier/model/ProjectToken.ts +37 -0
- package/identifier/model/SecurityPolicy.d.ts +17 -0
- package/identifier/model/SecurityPolicy.js +57 -0
- package/identifier/model/SecurityPolicy.js.map +1 -0
- package/identifier/model/SecurityPolicy.ts +77 -0
- package/identifier/model/Statement.d.ts +13 -0
- package/identifier/model/Statement.js +48 -0
- package/identifier/model/Statement.js.map +1 -0
- package/identifier/model/Statement.ts +74 -0
- package/identifier/model/User.d.ts +20 -0
- package/identifier/model/User.js +64 -0
- package/identifier/model/User.js.map +1 -0
- package/identifier/model/User.ts +102 -0
- package/identifier/model/index.d.ts +8 -0
- package/identifier/model/index.js +36 -0
- package/identifier/model/index.js.map +1 -0
- package/identifier/model/index.ts +34 -0
- package/identifier/ref/AttachSecurityPolicyRef.d.ts +5 -0
- package/identifier/ref/AttachSecurityPolicyRef.js +36 -0
- package/identifier/ref/AttachSecurityPolicyRef.js.map +1 -0
- package/identifier/ref/AttachSecurityPolicyRef.ts +43 -0
- package/identifier/ref/IdentifierRef.d.ts +5 -0
- package/identifier/ref/IdentifierRef.js +25 -0
- package/identifier/ref/IdentifierRef.js.map +1 -0
- package/identifier/ref/IdentifierRef.ts +31 -0
- package/identifier/ref/PasswordRef.d.ts +5 -0
- package/identifier/ref/PasswordRef.js +36 -0
- package/identifier/ref/PasswordRef.js.map +1 -0
- package/identifier/ref/PasswordRef.ts +43 -0
- package/identifier/ref/SecurityPolicyRef.d.ts +5 -0
- package/identifier/ref/SecurityPolicyRef.js +36 -0
- package/identifier/ref/SecurityPolicyRef.js.map +1 -0
- package/identifier/ref/SecurityPolicyRef.ts +43 -0
- package/identifier/ref/UserRef.d.ts +7 -0
- package/identifier/ref/UserRef.js +41 -0
- package/identifier/ref/UserRef.js.map +1 -0
- package/identifier/ref/UserRef.ts +53 -0
- package/identifier/ref/index.d.ts +6 -0
- package/identifier/ref/index.js +30 -0
- package/identifier/ref/index.js.map +1 -0
- package/identifier/ref/index.ts +28 -0
- package/identifier/stampSheet/index.d.ts +1 -0
- package/identifier/stampSheet/index.js +18 -0
- package/identifier/stampSheet/index.js.map +1 -0
- package/identifier/stampSheet/index.ts +18 -0
- package/inbox/index.d.ts +11 -0
- package/inbox/index.js +31 -0
- package/inbox/index.js.map +1 -0
- package/inbox/index.ts +34 -0
- package/inbox/model/CurrentMasterData.d.ts +12 -0
- package/inbox/model/CurrentMasterData.js +41 -0
- package/inbox/model/CurrentMasterData.js.map +1 -0
- package/inbox/model/CurrentMasterData.ts +52 -0
- package/inbox/model/GlobalMessage.d.ts +20 -0
- package/inbox/model/GlobalMessage.js +41 -0
- package/inbox/model/GlobalMessage.js.map +1 -0
- package/inbox/model/GlobalMessage.ts +75 -0
- package/inbox/model/GlobalMessageMaster.d.ts +27 -0
- package/inbox/model/GlobalMessageMaster.js +71 -0
- package/inbox/model/GlobalMessageMaster.js.map +1 -0
- package/inbox/model/GlobalMessageMaster.ts +104 -0
- package/inbox/model/Namespace.d.ts +39 -0
- package/inbox/model/Namespace.js +93 -0
- package/inbox/model/Namespace.js.map +1 -0
- package/inbox/model/Namespace.ts +137 -0
- package/inbox/model/TimeSpan.d.ts +11 -0
- package/inbox/model/TimeSpan.js +39 -0
- package/inbox/model/TimeSpan.js.map +1 -0
- package/inbox/model/TimeSpan.ts +49 -0
- package/inbox/model/index.d.ts +6 -0
- package/inbox/model/index.js +30 -0
- package/inbox/model/index.js.map +1 -0
- package/inbox/model/index.ts +28 -0
- package/inbox/ref/CurrentMessageMasterRef.d.ts +5 -0
- package/inbox/ref/CurrentMessageMasterRef.js +35 -0
- package/inbox/ref/CurrentMessageMasterRef.js.map +1 -0
- package/inbox/ref/CurrentMessageMasterRef.ts +42 -0
- package/inbox/ref/GlobalMessageMasterRef.d.ts +6 -0
- package/inbox/ref/GlobalMessageMasterRef.js +39 -0
- package/inbox/ref/GlobalMessageMasterRef.js.map +1 -0
- package/inbox/ref/GlobalMessageMasterRef.ts +48 -0
- package/inbox/ref/GlobalMessageRef.d.ts +6 -0
- package/inbox/ref/GlobalMessageRef.js +38 -0
- package/inbox/ref/GlobalMessageRef.js.map +1 -0
- package/inbox/ref/GlobalMessageRef.ts +47 -0
- package/inbox/ref/NamespaceRef.d.ts +15 -0
- package/inbox/ref/NamespaceRef.js +52 -0
- package/inbox/ref/NamespaceRef.js.map +1 -0
- package/inbox/ref/NamespaceRef.ts +90 -0
- package/inbox/ref/index.d.ts +5 -0
- package/inbox/ref/index.js +28 -0
- package/inbox/ref/index.js.map +1 -0
- package/inbox/ref/index.ts +26 -0
- package/inbox/stampSheet/OpenMessageByUserId.d.ts +4 -0
- package/inbox/stampSheet/OpenMessageByUserId.js +35 -0
- package/inbox/stampSheet/OpenMessageByUserId.js.map +1 -0
- package/inbox/stampSheet/OpenMessageByUserId.ts +41 -0
- package/inbox/stampSheet/SendMessageByUserId.d.ts +5 -0
- package/inbox/stampSheet/SendMessageByUserId.js +44 -0
- package/inbox/stampSheet/SendMessageByUserId.js.map +1 -0
- package/inbox/stampSheet/SendMessageByUserId.ts +54 -0
- package/inbox/stampSheet/index.d.ts +2 -0
- package/inbox/stampSheet/index.js +22 -0
- package/inbox/stampSheet/index.js.map +1 -0
- package/inbox/stampSheet/index.ts +20 -0
- package/inventory/index.d.ts +11 -0
- package/inventory/index.js +31 -0
- package/inventory/index.js.map +1 -0
- package/inventory/index.ts +34 -0
- package/inventory/model/CurrentMasterData.d.ts +12 -0
- package/inventory/model/CurrentMasterData.js +41 -0
- package/inventory/model/CurrentMasterData.js.map +1 -0
- package/inventory/model/CurrentMasterData.ts +52 -0
- package/inventory/model/InventoryModel.d.ts +20 -0
- package/inventory/model/InventoryModel.js +45 -0
- package/inventory/model/InventoryModel.js.map +1 -0
- package/inventory/model/InventoryModel.ts +80 -0
- package/inventory/model/InventoryModelMaster.d.ts +25 -0
- package/inventory/model/InventoryModelMaster.js +74 -0
- package/inventory/model/InventoryModelMaster.js.map +1 -0
- package/inventory/model/InventoryModelMaster.ts +108 -0
- package/inventory/model/ItemModel.d.ts +16 -0
- package/inventory/model/ItemModel.js +54 -0
- package/inventory/model/ItemModel.js.map +1 -0
- package/inventory/model/ItemModel.ts +75 -0
- package/inventory/model/ItemModelMaster.d.ts +26 -0
- package/inventory/model/ItemModelMaster.js +78 -0
- package/inventory/model/ItemModelMaster.js.map +1 -0
- package/inventory/model/ItemModelMaster.ts +116 -0
- package/inventory/model/Namespace.d.ts +31 -0
- package/inventory/model/Namespace.js +78 -0
- package/inventory/model/Namespace.js.map +1 -0
- package/inventory/model/Namespace.ts +117 -0
- package/inventory/model/index.d.ts +7 -0
- package/inventory/model/index.js +32 -0
- package/inventory/model/index.js.map +1 -0
- package/inventory/model/index.ts +30 -0
- package/inventory/ref/CurrentItemModelMasterRef.d.ts +5 -0
- package/inventory/ref/CurrentItemModelMasterRef.js +35 -0
- package/inventory/ref/CurrentItemModelMasterRef.js.map +1 -0
- package/inventory/ref/CurrentItemModelMasterRef.ts +42 -0
- package/inventory/ref/InventoryModelMasterRef.d.ts +8 -0
- package/inventory/ref/InventoryModelMasterRef.js +43 -0
- package/inventory/ref/InventoryModelMasterRef.js.map +1 -0
- package/inventory/ref/InventoryModelMasterRef.ts +58 -0
- package/inventory/ref/InventoryModelRef.d.ts +12 -0
- package/inventory/ref/InventoryModelRef.js +51 -0
- package/inventory/ref/InventoryModelRef.js.map +1 -0
- package/inventory/ref/InventoryModelRef.ts +84 -0
- package/inventory/ref/ItemModelMasterRef.d.ts +7 -0
- package/inventory/ref/ItemModelMasterRef.js +41 -0
- package/inventory/ref/ItemModelMasterRef.js.map +1 -0
- package/inventory/ref/ItemModelMasterRef.ts +52 -0
- package/inventory/ref/ItemModelRef.d.ts +13 -0
- package/inventory/ref/ItemModelRef.js +54 -0
- package/inventory/ref/ItemModelRef.js.map +1 -0
- package/inventory/ref/ItemModelRef.ts +104 -0
- package/inventory/ref/NamespaceRef.d.ts +11 -0
- package/inventory/ref/NamespaceRef.js +48 -0
- package/inventory/ref/NamespaceRef.js.map +1 -0
- package/inventory/ref/NamespaceRef.ts +70 -0
- package/inventory/ref/index.d.ts +7 -0
- package/inventory/ref/index.js +32 -0
- package/inventory/ref/index.js.map +1 -0
- package/inventory/ref/index.ts +30 -0
- package/inventory/stampSheet/AcquireItemSetByUserId.d.ts +4 -0
- package/inventory/stampSheet/AcquireItemSetByUserId.js +50 -0
- package/inventory/stampSheet/AcquireItemSetByUserId.js.map +1 -0
- package/inventory/stampSheet/AcquireItemSetByUserId.ts +61 -0
- package/inventory/stampSheet/AddCapacityByUserId.d.ts +4 -0
- package/inventory/stampSheet/AddCapacityByUserId.js +38 -0
- package/inventory/stampSheet/AddCapacityByUserId.js.map +1 -0
- package/inventory/stampSheet/AddCapacityByUserId.ts +45 -0
- package/inventory/stampSheet/AddReferenceOfByUserId.d.ts +4 -0
- package/inventory/stampSheet/AddReferenceOfByUserId.js +44 -0
- package/inventory/stampSheet/AddReferenceOfByUserId.js.map +1 -0
- package/inventory/stampSheet/AddReferenceOfByUserId.ts +53 -0
- package/inventory/stampSheet/ConsumeItemSetByUserId.d.ts +4 -0
- package/inventory/stampSheet/ConsumeItemSetByUserId.js +44 -0
- package/inventory/stampSheet/ConsumeItemSetByUserId.js.map +1 -0
- package/inventory/stampSheet/ConsumeItemSetByUserId.ts +53 -0
- package/inventory/stampSheet/DeleteReferenceOfByUserId.d.ts +4 -0
- package/inventory/stampSheet/DeleteReferenceOfByUserId.js +44 -0
- package/inventory/stampSheet/DeleteReferenceOfByUserId.js.map +1 -0
- package/inventory/stampSheet/DeleteReferenceOfByUserId.ts +53 -0
- package/inventory/stampSheet/SetCapacityByUserId.d.ts +4 -0
- package/inventory/stampSheet/SetCapacityByUserId.js +38 -0
- package/inventory/stampSheet/SetCapacityByUserId.js.map +1 -0
- package/inventory/stampSheet/SetCapacityByUserId.ts +45 -0
- package/inventory/stampSheet/VerifyReferenceOfByUserId.d.ts +4 -0
- package/inventory/stampSheet/VerifyReferenceOfByUserId.js +47 -0
- package/inventory/stampSheet/VerifyReferenceOfByUserId.js.map +1 -0
- package/inventory/stampSheet/VerifyReferenceOfByUserId.ts +57 -0
- package/inventory/stampSheet/index.d.ts +3 -0
- package/inventory/stampSheet/index.js +24 -0
- package/inventory/stampSheet/index.js.map +1 -0
- package/inventory/stampSheet/index.ts +22 -0
- package/jobQueue/index.d.ts +11 -0
- package/jobQueue/index.js +31 -0
- package/jobQueue/index.js.map +1 -0
- package/jobQueue/index.ts +34 -0
- package/jobQueue/model/JobEntry.d.ts +11 -0
- package/jobQueue/model/JobEntry.js +39 -0
- package/jobQueue/model/JobEntry.js.map +1 -0
- package/jobQueue/model/JobEntry.ts +49 -0
- package/jobQueue/model/JobResultBody.d.ts +12 -0
- package/jobQueue/model/JobResultBody.js +43 -0
- package/jobQueue/model/JobResultBody.js.map +1 -0
- package/jobQueue/model/JobResultBody.ts +55 -0
- package/jobQueue/model/Namespace.d.ts +28 -0
- package/jobQueue/model/Namespace.js +72 -0
- package/jobQueue/model/Namespace.js.map +1 -0
- package/jobQueue/model/Namespace.ts +102 -0
- package/jobQueue/model/index.d.ts +4 -0
- package/jobQueue/model/index.js +26 -0
- package/jobQueue/model/index.js.map +1 -0
- package/jobQueue/model/index.ts +24 -0
- package/jobQueue/ref/NamespaceRef.d.ts +8 -0
- package/jobQueue/ref/NamespaceRef.js +40 -0
- package/jobQueue/ref/NamespaceRef.js.map +1 -0
- package/jobQueue/ref/NamespaceRef.ts +55 -0
- package/jobQueue/ref/index.d.ts +2 -0
- package/jobQueue/ref/index.js +22 -0
- package/jobQueue/ref/index.js.map +1 -0
- package/jobQueue/ref/index.ts +20 -0
- package/jobQueue/stampSheet/PushByUserId.d.ts +5 -0
- package/jobQueue/stampSheet/PushByUserId.js +35 -0
- package/jobQueue/stampSheet/PushByUserId.js.map +1 -0
- package/jobQueue/stampSheet/PushByUserId.ts +42 -0
- package/jobQueue/stampSheet/index.d.ts +1 -0
- package/jobQueue/stampSheet/index.js +18 -0
- package/jobQueue/stampSheet/index.js.map +1 -0
- package/jobQueue/stampSheet/index.ts +18 -0
- package/log/index.d.ts +11 -0
- package/log/index.js +31 -0
- package/log/index.js.map +1 -0
- package/log/index.ts +34 -0
- package/log/model/AccessLog.d.ts +16 -0
- package/log/model/AccessLog.js +57 -0
- package/log/model/AccessLog.js.map +1 -0
- package/log/model/AccessLog.ts +73 -0
- package/log/model/AccessLogCount.d.ts +15 -0
- package/log/model/AccessLogCount.js +47 -0
- package/log/model/AccessLogCount.js.map +1 -0
- package/log/model/AccessLogCount.ts +55 -0
- package/log/model/ExecuteStampSheetLog.d.ts +15 -0
- package/log/model/ExecuteStampSheetLog.js +55 -0
- package/log/model/ExecuteStampSheetLog.js.map +1 -0
- package/log/model/ExecuteStampSheetLog.ts +73 -0
- package/log/model/ExecuteStampSheetLogCount.d.ts +17 -0
- package/log/model/ExecuteStampSheetLogCount.js +52 -0
- package/log/model/ExecuteStampSheetLogCount.js.map +1 -0
- package/log/model/ExecuteStampSheetLogCount.ts +61 -0
- package/log/model/ExecuteStampTaskLog.d.ts +15 -0
- package/log/model/ExecuteStampTaskLog.js +55 -0
- package/log/model/ExecuteStampTaskLog.js.map +1 -0
- package/log/model/ExecuteStampTaskLog.ts +73 -0
- package/log/model/ExecuteStampTaskLogCount.d.ts +17 -0
- package/log/model/ExecuteStampTaskLogCount.js +52 -0
- package/log/model/ExecuteStampTaskLogCount.js.map +1 -0
- package/log/model/ExecuteStampTaskLogCount.ts +61 -0
- package/log/model/Insight.d.ts +22 -0
- package/log/model/Insight.js +56 -0
- package/log/model/Insight.js.map +1 -0
- package/log/model/Insight.ts +78 -0
- package/log/model/IssueStampSheetLog.d.ts +17 -0
- package/log/model/IssueStampSheetLog.js +61 -0
- package/log/model/IssueStampSheetLog.js.map +1 -0
- package/log/model/IssueStampSheetLog.ts +79 -0
- package/log/model/IssueStampSheetLogCount.d.ts +17 -0
- package/log/model/IssueStampSheetLogCount.js +52 -0
- package/log/model/IssueStampSheetLogCount.js.map +1 -0
- package/log/model/IssueStampSheetLogCount.ts +61 -0
- package/log/model/Namespace.d.ts +46 -0
- package/log/model/Namespace.js +98 -0
- package/log/model/Namespace.js.map +1 -0
- package/log/model/Namespace.ts +140 -0
- package/log/model/index.d.ts +13 -0
- package/log/model/index.js +44 -0
- package/log/model/index.js.map +1 -0
- package/log/model/index.ts +42 -0
- package/log/ref/InsightRef.d.ts +6 -0
- package/log/ref/InsightRef.js +38 -0
- package/log/ref/InsightRef.js.map +1 -0
- package/log/ref/InsightRef.ts +47 -0
- package/log/ref/NamespaceRef.d.ts +7 -0
- package/log/ref/NamespaceRef.js +40 -0
- package/log/ref/NamespaceRef.js.map +1 -0
- package/log/ref/NamespaceRef.ts +52 -0
- package/log/ref/index.d.ts +3 -0
- package/log/ref/index.js +24 -0
- package/log/ref/index.js.map +1 -0
- package/log/ref/index.ts +22 -0
- package/log/stampSheet/index.d.ts +1 -0
- package/log/stampSheet/index.js +18 -0
- package/log/stampSheet/index.js.map +1 -0
- package/log/stampSheet/index.ts +18 -0
- package/lottery/index.d.ts +11 -0
- package/lottery/index.js +31 -0
- package/lottery/index.js.map +1 -0
- package/lottery/index.ts +34 -0
- package/lottery/model/BoxItem.d.ts +13 -0
- package/lottery/model/BoxItem.js +26 -0
- package/lottery/model/BoxItem.js.map +1 -0
- package/lottery/model/BoxItem.ts +50 -0
- package/lottery/model/BoxItems.d.ts +14 -0
- package/lottery/model/BoxItems.js +30 -0
- package/lottery/model/BoxItems.js.map +1 -0
- package/lottery/model/BoxItems.ts +56 -0
- package/lottery/model/CurrentMasterData.d.ts +14 -0
- package/lottery/model/CurrentMasterData.js +43 -0
- package/lottery/model/CurrentMasterData.js.map +1 -0
- package/lottery/model/CurrentMasterData.ts +57 -0
- package/lottery/model/DrawnPrize.d.ts +12 -0
- package/lottery/model/DrawnPrize.js +22 -0
- package/lottery/model/DrawnPrize.js.map +1 -0
- package/lottery/model/DrawnPrize.ts +44 -0
- package/lottery/model/LotteryModel.d.ts +39 -0
- package/lottery/model/LotteryModel.js +83 -0
- package/lottery/model/LotteryModel.js.map +1 -0
- package/lottery/model/LotteryModel.ts +135 -0
- package/lottery/model/LotteryModelMaster.d.ts +42 -0
- package/lottery/model/LotteryModelMaster.js +89 -0
- package/lottery/model/LotteryModelMaster.js.map +1 -0
- package/lottery/model/LotteryModelMaster.ts +132 -0
- package/lottery/model/Namespace.d.ts +31 -0
- package/lottery/model/Namespace.js +77 -0
- package/lottery/model/Namespace.js.map +1 -0
- package/lottery/model/Namespace.ts +120 -0
- package/lottery/model/Prize.d.ts +27 -0
- package/lottery/model/Prize.js +63 -0
- package/lottery/model/Prize.js.map +1 -0
- package/lottery/model/Prize.ts +117 -0
- package/lottery/model/PrizeLimit.d.ts +1 -0
- package/lottery/model/PrizeLimit.js +18 -0
- package/lottery/model/PrizeLimit.js.map +1 -0
- package/lottery/model/PrizeLimit.ts +19 -0
- package/lottery/model/PrizeTable.d.ts +15 -0
- package/lottery/model/PrizeTable.js +31 -0
- package/lottery/model/PrizeTable.js.map +1 -0
- package/lottery/model/PrizeTable.ts +62 -0
- package/lottery/model/PrizeTableMaster.d.ts +24 -0
- package/lottery/model/PrizeTableMaster.js +66 -0
- package/lottery/model/PrizeTableMaster.js.map +1 -0
- package/lottery/model/PrizeTableMaster.ts +97 -0
- package/lottery/model/Probability.d.ts +11 -0
- package/lottery/model/Probability.js +20 -0
- package/lottery/model/Probability.js.map +1 -0
- package/lottery/model/Probability.ts +44 -0
- package/lottery/model/index.d.ts +17 -0
- package/lottery/model/index.js +52 -0
- package/lottery/model/index.js.map +1 -0
- package/lottery/model/index.ts +50 -0
- package/lottery/ref/CurrentLotteryMasterRef.d.ts +5 -0
- package/lottery/ref/CurrentLotteryMasterRef.js +35 -0
- package/lottery/ref/CurrentLotteryMasterRef.js.map +1 -0
- package/lottery/ref/CurrentLotteryMasterRef.ts +42 -0
- package/lottery/ref/LotteryModelMasterRef.d.ts +6 -0
- package/lottery/ref/LotteryModelMasterRef.js +38 -0
- package/lottery/ref/LotteryModelMasterRef.js.map +1 -0
- package/lottery/ref/LotteryModelMasterRef.ts +47 -0
- package/lottery/ref/LotteryModelRef.d.ts +9 -0
- package/lottery/ref/LotteryModelRef.js +43 -0
- package/lottery/ref/LotteryModelRef.js.map +1 -0
- package/lottery/ref/LotteryModelRef.ts +63 -0
- package/lottery/ref/NamespaceRef.d.ts +15 -0
- package/lottery/ref/NamespaceRef.js +56 -0
- package/lottery/ref/NamespaceRef.js.map +1 -0
- package/lottery/ref/NamespaceRef.ts +90 -0
- package/lottery/ref/PrizeLimitRef.d.ts +7 -0
- package/lottery/ref/PrizeLimitRef.js +41 -0
- package/lottery/ref/PrizeLimitRef.js.map +1 -0
- package/lottery/ref/PrizeLimitRef.ts +52 -0
- package/lottery/ref/PrizeTableMasterRef.d.ts +6 -0
- package/lottery/ref/PrizeTableMasterRef.js +38 -0
- package/lottery/ref/PrizeTableMasterRef.js.map +1 -0
- package/lottery/ref/PrizeTableMasterRef.ts +47 -0
- package/lottery/ref/PrizeTableRef.d.ts +8 -0
- package/lottery/ref/PrizeTableRef.js +43 -0
- package/lottery/ref/PrizeTableRef.js.map +1 -0
- package/lottery/ref/PrizeTableRef.ts +58 -0
- package/lottery/ref/index.d.ts +8 -0
- package/lottery/ref/index.js +34 -0
- package/lottery/ref/index.js.map +1 -0
- package/lottery/ref/index.ts +32 -0
- package/lottery/stampSheet/DrawByUserId.d.ts +5 -0
- package/lottery/stampSheet/DrawByUserId.js +41 -0
- package/lottery/stampSheet/DrawByUserId.js.map +1 -0
- package/lottery/stampSheet/DrawByUserId.ts +50 -0
- package/lottery/stampSheet/index.d.ts +1 -0
- package/lottery/stampSheet/index.js +18 -0
- package/lottery/stampSheet/index.js.map +1 -0
- package/lottery/stampSheet/index.ts +18 -0
- package/package.json +58 -0
- package/showcase/index.d.ts +11 -0
- package/showcase/index.js +31 -0
- package/showcase/index.js.map +1 -0
- package/showcase/index.ts +34 -0
- package/showcase/model/CurrentMasterData.d.ts +12 -0
- package/showcase/model/CurrentMasterData.js +41 -0
- package/showcase/model/CurrentMasterData.js.map +1 -0
- package/showcase/model/CurrentMasterData.ts +52 -0
- package/showcase/model/DisplayItem.d.ts +35 -0
- package/showcase/model/DisplayItem.js +60 -0
- package/showcase/model/DisplayItem.js.map +1 -0
- package/showcase/model/DisplayItem.ts +120 -0
- package/showcase/model/DisplayItemMaster.d.ts +23 -0
- package/showcase/model/DisplayItemMaster.js +68 -0
- package/showcase/model/DisplayItemMaster.js.map +1 -0
- package/showcase/model/DisplayItemMaster.ts +97 -0
- package/showcase/model/Namespace.d.ts +29 -0
- package/showcase/model/Namespace.js +72 -0
- package/showcase/model/Namespace.js.map +1 -0
- package/showcase/model/Namespace.ts +112 -0
- package/showcase/model/SalesItem.d.ts +15 -0
- package/showcase/model/SalesItem.js +30 -0
- package/showcase/model/SalesItem.js.map +1 -0
- package/showcase/model/SalesItem.ts +57 -0
- package/showcase/model/SalesItemGroup.d.ts +13 -0
- package/showcase/model/SalesItemGroup.js +26 -0
- package/showcase/model/SalesItemGroup.js.map +1 -0
- package/showcase/model/SalesItemGroup.ts +50 -0
- package/showcase/model/SalesItemGroupMaster.d.ts +23 -0
- package/showcase/model/SalesItemGroupMaster.js +66 -0
- package/showcase/model/SalesItemGroupMaster.js.map +1 -0
- package/showcase/model/SalesItemGroupMaster.ts +96 -0
- package/showcase/model/SalesItemMaster.d.ts +26 -0
- package/showcase/model/SalesItemMaster.js +70 -0
- package/showcase/model/SalesItemMaster.js.map +1 -0
- package/showcase/model/SalesItemMaster.ts +104 -0
- package/showcase/model/Showcase.d.ts +17 -0
- package/showcase/model/Showcase.js +36 -0
- package/showcase/model/Showcase.js.map +1 -0
- package/showcase/model/Showcase.ts +68 -0
- package/showcase/model/ShowcaseMaster.d.ts +26 -0
- package/showcase/model/ShowcaseMaster.js +71 -0
- package/showcase/model/ShowcaseMaster.js.map +1 -0
- package/showcase/model/ShowcaseMaster.ts +103 -0
- package/showcase/model/index.d.ts +13 -0
- package/showcase/model/index.js +44 -0
- package/showcase/model/index.js.map +1 -0
- package/showcase/model/index.ts +42 -0
- package/showcase/ref/CurrentShowcaseMasterRef.d.ts +5 -0
- package/showcase/ref/CurrentShowcaseMasterRef.js +35 -0
- package/showcase/ref/CurrentShowcaseMasterRef.js.map +1 -0
- package/showcase/ref/CurrentShowcaseMasterRef.ts +42 -0
- package/showcase/ref/DisplayItemRef.d.ts +4 -0
- package/showcase/ref/DisplayItemRef.js +24 -0
- package/showcase/ref/DisplayItemRef.js.map +1 -0
- package/showcase/ref/DisplayItemRef.ts +28 -0
- package/showcase/ref/NamespaceRef.d.ts +15 -0
- package/showcase/ref/NamespaceRef.js +56 -0
- package/showcase/ref/NamespaceRef.js.map +1 -0
- package/showcase/ref/NamespaceRef.ts +88 -0
- package/showcase/ref/SalesItemGroupMasterRef.d.ts +6 -0
- package/showcase/ref/SalesItemGroupMasterRef.js +38 -0
- package/showcase/ref/SalesItemGroupMasterRef.js.map +1 -0
- package/showcase/ref/SalesItemGroupMasterRef.ts +47 -0
- package/showcase/ref/SalesItemMasterRef.d.ts +6 -0
- package/showcase/ref/SalesItemMasterRef.js +38 -0
- package/showcase/ref/SalesItemMasterRef.js.map +1 -0
- package/showcase/ref/SalesItemMasterRef.ts +47 -0
- package/showcase/ref/ShowcaseMasterRef.d.ts +6 -0
- package/showcase/ref/ShowcaseMasterRef.js +38 -0
- package/showcase/ref/ShowcaseMasterRef.js.map +1 -0
- package/showcase/ref/ShowcaseMasterRef.ts +47 -0
- package/showcase/ref/ShowcaseRef.d.ts +6 -0
- package/showcase/ref/ShowcaseRef.js +38 -0
- package/showcase/ref/ShowcaseRef.js.map +1 -0
- package/showcase/ref/ShowcaseRef.ts +47 -0
- package/showcase/ref/index.d.ts +8 -0
- package/showcase/ref/index.js +34 -0
- package/showcase/ref/index.js.map +1 -0
- package/showcase/ref/index.ts +32 -0
- package/showcase/stampSheet/index.d.ts +1 -0
- package/showcase/stampSheet/index.js +18 -0
- package/showcase/stampSheet/index.js.map +1 -0
- package/showcase/stampSheet/index.ts +18 -0
- package/stamina/index.d.ts +11 -0
- package/stamina/index.js +31 -0
- package/stamina/index.js.map +1 -0
- package/stamina/index.ts +34 -0
- package/stamina/model/CurrentMasterData.d.ts +12 -0
- package/stamina/model/CurrentMasterData.js +41 -0
- package/stamina/model/CurrentMasterData.js.map +1 -0
- package/stamina/model/CurrentMasterData.ts +52 -0
- package/stamina/model/MaxStaminaTable.d.ts +15 -0
- package/stamina/model/MaxStaminaTable.js +50 -0
- package/stamina/model/MaxStaminaTable.js.map +1 -0
- package/stamina/model/MaxStaminaTable.ts +67 -0
- package/stamina/model/MaxStaminaTableMaster.d.ts +24 -0
- package/stamina/model/MaxStaminaTableMaster.js +70 -0
- package/stamina/model/MaxStaminaTableMaster.js.map +1 -0
- package/stamina/model/MaxStaminaTableMaster.ts +102 -0
- package/stamina/model/Namespace.d.ts +27 -0
- package/stamina/model/Namespace.js +68 -0
- package/stamina/model/Namespace.js.map +1 -0
- package/stamina/model/Namespace.ts +105 -0
- package/stamina/model/RecoverIntervalTable.d.ts +15 -0
- package/stamina/model/RecoverIntervalTable.js +50 -0
- package/stamina/model/RecoverIntervalTable.js.map +1 -0
- package/stamina/model/RecoverIntervalTable.ts +67 -0
- package/stamina/model/RecoverIntervalTableMaster.d.ts +24 -0
- package/stamina/model/RecoverIntervalTableMaster.js +70 -0
- package/stamina/model/RecoverIntervalTableMaster.js.map +1 -0
- package/stamina/model/RecoverIntervalTableMaster.ts +102 -0
- package/stamina/model/RecoverValueTable.d.ts +15 -0
- package/stamina/model/RecoverValueTable.js +50 -0
- package/stamina/model/RecoverValueTable.js.map +1 -0
- package/stamina/model/RecoverValueTable.ts +67 -0
- package/stamina/model/RecoverValueTableMaster.d.ts +24 -0
- package/stamina/model/RecoverValueTableMaster.js +70 -0
- package/stamina/model/RecoverValueTableMaster.js.map +1 -0
- package/stamina/model/RecoverValueTableMaster.ts +102 -0
- package/stamina/model/StaminaModel.d.ts +28 -0
- package/stamina/model/StaminaModel.js +63 -0
- package/stamina/model/StaminaModel.js.map +1 -0
- package/stamina/model/StaminaModel.ts +106 -0
- package/stamina/model/StaminaModelMaster.d.ts +34 -0
- package/stamina/model/StaminaModelMaster.js +98 -0
- package/stamina/model/StaminaModelMaster.js.map +1 -0
- package/stamina/model/StaminaModelMaster.ts +138 -0
- package/stamina/model/index.d.ts +11 -0
- package/stamina/model/index.js +40 -0
- package/stamina/model/index.js.map +1 -0
- package/stamina/model/index.ts +38 -0
- package/stamina/ref/CurrentStaminaMasterRef.d.ts +5 -0
- package/stamina/ref/CurrentStaminaMasterRef.js +35 -0
- package/stamina/ref/CurrentStaminaMasterRef.js.map +1 -0
- package/stamina/ref/CurrentStaminaMasterRef.ts +42 -0
- package/stamina/ref/MaxStaminaTableMasterRef.d.ts +6 -0
- package/stamina/ref/MaxStaminaTableMasterRef.js +38 -0
- package/stamina/ref/MaxStaminaTableMasterRef.js.map +1 -0
- package/stamina/ref/MaxStaminaTableMasterRef.ts +47 -0
- package/stamina/ref/MaxStaminaTableRef.d.ts +6 -0
- package/stamina/ref/MaxStaminaTableRef.js +38 -0
- package/stamina/ref/MaxStaminaTableRef.js.map +1 -0
- package/stamina/ref/MaxStaminaTableRef.ts +47 -0
- package/stamina/ref/NamespaceRef.d.ts +23 -0
- package/stamina/ref/NamespaceRef.js +72 -0
- package/stamina/ref/NamespaceRef.js.map +1 -0
- package/stamina/ref/NamespaceRef.ts +130 -0
- package/stamina/ref/RecoverIntervalTableMasterRef.d.ts +6 -0
- package/stamina/ref/RecoverIntervalTableMasterRef.js +38 -0
- package/stamina/ref/RecoverIntervalTableMasterRef.js.map +1 -0
- package/stamina/ref/RecoverIntervalTableMasterRef.ts +47 -0
- package/stamina/ref/RecoverIntervalTableRef.d.ts +6 -0
- package/stamina/ref/RecoverIntervalTableRef.js +38 -0
- package/stamina/ref/RecoverIntervalTableRef.js.map +1 -0
- package/stamina/ref/RecoverIntervalTableRef.ts +47 -0
- package/stamina/ref/RecoverValueTableMasterRef.d.ts +6 -0
- package/stamina/ref/RecoverValueTableMasterRef.js +38 -0
- package/stamina/ref/RecoverValueTableMasterRef.js.map +1 -0
- package/stamina/ref/RecoverValueTableMasterRef.ts +47 -0
- package/stamina/ref/RecoverValueTableRef.d.ts +6 -0
- package/stamina/ref/RecoverValueTableRef.js +38 -0
- package/stamina/ref/RecoverValueTableRef.js.map +1 -0
- package/stamina/ref/RecoverValueTableRef.ts +47 -0
- package/stamina/ref/StaminaModelMasterRef.d.ts +6 -0
- package/stamina/ref/StaminaModelMasterRef.js +38 -0
- package/stamina/ref/StaminaModelMasterRef.js.map +1 -0
- package/stamina/ref/StaminaModelMasterRef.ts +47 -0
- package/stamina/ref/StaminaModelRef.d.ts +18 -0
- package/stamina/ref/StaminaModelRef.js +63 -0
- package/stamina/ref/StaminaModelRef.js.map +1 -0
- package/stamina/ref/StaminaModelRef.ts +125 -0
- package/stamina/ref/index.d.ts +11 -0
- package/stamina/ref/index.js +40 -0
- package/stamina/ref/index.js.map +1 -0
- package/stamina/ref/index.ts +38 -0
- package/stamina/stampSheet/ConsumeStaminaByUserId.d.ts +4 -0
- package/stamina/stampSheet/ConsumeStaminaByUserId.js +38 -0
- package/stamina/stampSheet/ConsumeStaminaByUserId.js.map +1 -0
- package/stamina/stampSheet/ConsumeStaminaByUserId.ts +45 -0
- package/stamina/stampSheet/RaiseMaxValueByUserId.d.ts +4 -0
- package/stamina/stampSheet/RaiseMaxValueByUserId.js +38 -0
- package/stamina/stampSheet/RaiseMaxValueByUserId.js.map +1 -0
- package/stamina/stampSheet/RaiseMaxValueByUserId.ts +45 -0
- package/stamina/stampSheet/RecoverStaminaByUserId.d.ts +4 -0
- package/stamina/stampSheet/RecoverStaminaByUserId.js +38 -0
- package/stamina/stampSheet/RecoverStaminaByUserId.js.map +1 -0
- package/stamina/stampSheet/RecoverStaminaByUserId.ts +45 -0
- package/stamina/stampSheet/SetMaxValueByUserId.d.ts +4 -0
- package/stamina/stampSheet/SetMaxValueByUserId.js +38 -0
- package/stamina/stampSheet/SetMaxValueByUserId.js.map +1 -0
- package/stamina/stampSheet/SetMaxValueByUserId.ts +45 -0
- package/stamina/stampSheet/SetRecoverIntervalByUserId.d.ts +4 -0
- package/stamina/stampSheet/SetRecoverIntervalByUserId.js +38 -0
- package/stamina/stampSheet/SetRecoverIntervalByUserId.js.map +1 -0
- package/stamina/stampSheet/SetRecoverIntervalByUserId.ts +45 -0
- package/stamina/stampSheet/SetRecoverValueByUserId.d.ts +4 -0
- package/stamina/stampSheet/SetRecoverValueByUserId.js +38 -0
- package/stamina/stampSheet/SetRecoverValueByUserId.js.map +1 -0
- package/stamina/stampSheet/SetRecoverValueByUserId.ts +45 -0
- package/stamina/stampSheet/index.d.ts +2 -0
- package/stamina/stampSheet/index.js +22 -0
- package/stamina/stampSheet/index.js.map +1 -0
- package/stamina/stampSheet/index.ts +20 -0
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
export const LotteryModelMode = {
|
|
18
|
+
NORMAL: "normal",
|
|
19
|
+
BOX: "box",
|
|
20
|
+
} as const;
|
|
21
|
+
export type LotteryModelMode = typeof LotteryModelMode[keyof typeof LotteryModelMode];
|
|
22
|
+
|
|
23
|
+
export const LotteryModelMethod = {
|
|
24
|
+
PRIZE_TABLE: "prize_table",
|
|
25
|
+
SCRIPT: "script",
|
|
26
|
+
} as const;
|
|
27
|
+
export type LotteryModelMethod = typeof LotteryModelMethod[keyof typeof LotteryModelMethod];
|
|
28
|
+
|
|
29
|
+
import LotteryModelRef from "../ref/LotteryModelRef";
|
|
30
|
+
|
|
31
|
+
export interface LotteryModelOptions {
|
|
32
|
+
metadata?: string|null|undefined;
|
|
33
|
+
prizeTableName?: string|null|undefined;
|
|
34
|
+
choicePrizeTableScriptId?: string|null|undefined;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface LotteryModelPrizeTableOptions {
|
|
38
|
+
metadata?: string|null|undefined,
|
|
39
|
+
prizeTableName?: string|null|undefined,
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface LotteryModelScriptOptions {
|
|
43
|
+
metadata?: string|null|undefined,
|
|
44
|
+
choicePrizeTableScriptId?: string|null|undefined,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
export default class LotteryModel {
|
|
49
|
+
private readonly name: string;
|
|
50
|
+
private readonly metadata: string|null = null;
|
|
51
|
+
private readonly mode: LotteryModelMode;
|
|
52
|
+
private readonly method: LotteryModelMethod;
|
|
53
|
+
private readonly prizeTableName: string|null = null;
|
|
54
|
+
private readonly choicePrizeTableScriptId: string|null = null;
|
|
55
|
+
|
|
56
|
+
public constructor(
|
|
57
|
+
name: string,
|
|
58
|
+
mode: LotteryModelMode,
|
|
59
|
+
method: LotteryModelMethod,
|
|
60
|
+
options?: LotteryModelOptions,
|
|
61
|
+
) {
|
|
62
|
+
this.name = name;
|
|
63
|
+
this.metadata = options?.metadata ?? null;
|
|
64
|
+
this.mode = mode;
|
|
65
|
+
this.method = method;
|
|
66
|
+
this.prizeTableName = options?.prizeTableName ?? null;
|
|
67
|
+
this.choicePrizeTableScriptId = options?.choicePrizeTableScriptId ?? null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
public static prizeTable(
|
|
71
|
+
name: string,
|
|
72
|
+
mode: LotteryModelMode,
|
|
73
|
+
prizeTableName: string,
|
|
74
|
+
options?: LotteryModelPrizeTableOptions,
|
|
75
|
+
): LotteryModel {
|
|
76
|
+
return new LotteryModel(
|
|
77
|
+
name,
|
|
78
|
+
mode,
|
|
79
|
+
LotteryModelMethod.PRIZE_TABLE,
|
|
80
|
+
{
|
|
81
|
+
metadata: options?.metadata ?? null,
|
|
82
|
+
prizeTableName: options?.prizeTableName ?? null,
|
|
83
|
+
},
|
|
84
|
+
)
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public static script(
|
|
88
|
+
name: string,
|
|
89
|
+
mode: LotteryModelMode,
|
|
90
|
+
choicePrizeTableScriptId: string,
|
|
91
|
+
options?: LotteryModelScriptOptions,
|
|
92
|
+
): LotteryModel {
|
|
93
|
+
return new LotteryModel(
|
|
94
|
+
name,
|
|
95
|
+
mode,
|
|
96
|
+
LotteryModelMethod.SCRIPT,
|
|
97
|
+
{
|
|
98
|
+
metadata: options?.metadata ?? null,
|
|
99
|
+
choicePrizeTableScriptId: options?.choicePrizeTableScriptId ?? null,
|
|
100
|
+
},
|
|
101
|
+
)
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
public properties(): {[name: string]: any} {
|
|
105
|
+
let properties: {[name: string]: any} = {};
|
|
106
|
+
if (this.name != null) {
|
|
107
|
+
properties["Name"] = this.name;
|
|
108
|
+
}
|
|
109
|
+
if (this.metadata != null) {
|
|
110
|
+
properties["Metadata"] = this.metadata;
|
|
111
|
+
}
|
|
112
|
+
if (this.mode != null) {
|
|
113
|
+
properties["Mode"] = this.mode;
|
|
114
|
+
}
|
|
115
|
+
if (this.method != null) {
|
|
116
|
+
properties["Method"] = this.method;
|
|
117
|
+
}
|
|
118
|
+
if (this.prizeTableName != null) {
|
|
119
|
+
properties["PrizeTableName"] = this.prizeTableName;
|
|
120
|
+
}
|
|
121
|
+
if (this.choicePrizeTableScriptId != null) {
|
|
122
|
+
properties["ChoicePrizeTableScriptId"] = this.choicePrizeTableScriptId;
|
|
123
|
+
}
|
|
124
|
+
return properties;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
public ref(
|
|
128
|
+
namespaceName: string,
|
|
129
|
+
): LotteryModelRef {
|
|
130
|
+
return new LotteryModelRef(
|
|
131
|
+
namespaceName,
|
|
132
|
+
this.name,
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import core from "../../core";
|
|
2
|
+
import { GetAttr } from "../../core/func";
|
|
3
|
+
import { Stack } from "../../core/model";
|
|
4
|
+
export declare const LotteryModelMasterMode: {
|
|
5
|
+
readonly NORMAL: "normal";
|
|
6
|
+
readonly BOX: "box";
|
|
7
|
+
};
|
|
8
|
+
export declare type LotteryModelMasterMode = typeof LotteryModelMasterMode[keyof typeof LotteryModelMasterMode];
|
|
9
|
+
export declare const LotteryModelMasterMethod: {
|
|
10
|
+
readonly PRIZE_TABLE: "prize_table";
|
|
11
|
+
readonly SCRIPT: "script";
|
|
12
|
+
};
|
|
13
|
+
export declare type LotteryModelMasterMethod = typeof LotteryModelMasterMethod[keyof typeof LotteryModelMasterMethod];
|
|
14
|
+
import LotteryModelMasterRef from "../ref/LotteryModelMasterRef";
|
|
15
|
+
export interface LotteryModelMasterOptions {
|
|
16
|
+
description?: string | null | undefined;
|
|
17
|
+
metadata?: string | null | undefined;
|
|
18
|
+
prizeTableName?: string | null | undefined;
|
|
19
|
+
choicePrizeTableScriptId?: string | null | undefined;
|
|
20
|
+
}
|
|
21
|
+
export interface LotteryModelMasterPrizeTableOptions {
|
|
22
|
+
}
|
|
23
|
+
export interface LotteryModelMasterScriptOptions {
|
|
24
|
+
}
|
|
25
|
+
export default class LotteryModelMaster extends core.CdkResource {
|
|
26
|
+
private stack;
|
|
27
|
+
private readonly namespaceName;
|
|
28
|
+
private readonly name;
|
|
29
|
+
private readonly description;
|
|
30
|
+
private readonly metadata;
|
|
31
|
+
private readonly mode;
|
|
32
|
+
private readonly method;
|
|
33
|
+
private readonly prizeTableName;
|
|
34
|
+
private readonly choicePrizeTableScriptId;
|
|
35
|
+
constructor(stack: Stack, namespaceName: string, name: string, mode: LotteryModelMasterMode, method: LotteryModelMasterMethod, options?: LotteryModelMasterOptions);
|
|
36
|
+
resourceType(): string;
|
|
37
|
+
properties(): {
|
|
38
|
+
[name: string]: any;
|
|
39
|
+
};
|
|
40
|
+
ref(namespaceName: string): LotteryModelMasterRef;
|
|
41
|
+
getAttrLotteryModelId(): GetAttr;
|
|
42
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
exports.LotteryModelMasterMethod = exports.LotteryModelMasterMode = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const core_1 = tslib_1.__importDefault(require("../../core"));
|
|
21
|
+
const func_1 = require("../../core/func");
|
|
22
|
+
exports.LotteryModelMasterMode = {
|
|
23
|
+
NORMAL: "normal",
|
|
24
|
+
BOX: "box",
|
|
25
|
+
};
|
|
26
|
+
exports.LotteryModelMasterMethod = {
|
|
27
|
+
PRIZE_TABLE: "prize_table",
|
|
28
|
+
SCRIPT: "script",
|
|
29
|
+
};
|
|
30
|
+
const LotteryModelMasterRef_1 = tslib_1.__importDefault(require("../ref/LotteryModelMasterRef"));
|
|
31
|
+
class LotteryModelMaster extends core_1.default.CdkResource {
|
|
32
|
+
constructor(stack, namespaceName, name, mode, method, options) {
|
|
33
|
+
var _a, _b, _c, _d;
|
|
34
|
+
super("Lottery_LotteryModelMaster_" + name);
|
|
35
|
+
this.description = null;
|
|
36
|
+
this.metadata = null;
|
|
37
|
+
this.prizeTableName = null;
|
|
38
|
+
this.choicePrizeTableScriptId = null;
|
|
39
|
+
this.stack = stack;
|
|
40
|
+
this.namespaceName = namespaceName;
|
|
41
|
+
this.name = name;
|
|
42
|
+
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
43
|
+
this.metadata = (_b = options === null || options === void 0 ? void 0 : options.metadata) !== null && _b !== void 0 ? _b : null;
|
|
44
|
+
this.mode = mode;
|
|
45
|
+
this.method = method;
|
|
46
|
+
this.prizeTableName = (_c = options === null || options === void 0 ? void 0 : options.prizeTableName) !== null && _c !== void 0 ? _c : null;
|
|
47
|
+
this.choicePrizeTableScriptId = (_d = options === null || options === void 0 ? void 0 : options.choicePrizeTableScriptId) !== null && _d !== void 0 ? _d : null;
|
|
48
|
+
stack.addResource(this);
|
|
49
|
+
}
|
|
50
|
+
resourceType() {
|
|
51
|
+
return "GS2::Lottery::LotteryModelMaster";
|
|
52
|
+
}
|
|
53
|
+
properties() {
|
|
54
|
+
let properties = {};
|
|
55
|
+
if (this.namespaceName != null) {
|
|
56
|
+
properties["NamespaceName"] = this.namespaceName;
|
|
57
|
+
}
|
|
58
|
+
if (this.name != null) {
|
|
59
|
+
properties["Name"] = this.name;
|
|
60
|
+
}
|
|
61
|
+
if (this.description != null) {
|
|
62
|
+
properties["Description"] = this.description;
|
|
63
|
+
}
|
|
64
|
+
if (this.metadata != null) {
|
|
65
|
+
properties["Metadata"] = this.metadata;
|
|
66
|
+
}
|
|
67
|
+
if (this.mode != null) {
|
|
68
|
+
properties["Mode"] = this.mode;
|
|
69
|
+
}
|
|
70
|
+
if (this.method != null) {
|
|
71
|
+
properties["Method"] = this.method;
|
|
72
|
+
}
|
|
73
|
+
if (this.prizeTableName != null) {
|
|
74
|
+
properties["PrizeTableName"] = this.prizeTableName;
|
|
75
|
+
}
|
|
76
|
+
if (this.choicePrizeTableScriptId != null) {
|
|
77
|
+
properties["ChoicePrizeTableScriptId"] = this.choicePrizeTableScriptId;
|
|
78
|
+
}
|
|
79
|
+
return properties;
|
|
80
|
+
}
|
|
81
|
+
ref(namespaceName) {
|
|
82
|
+
return new LotteryModelMasterRef_1.default(namespaceName, this.name);
|
|
83
|
+
}
|
|
84
|
+
getAttrLotteryModelId() {
|
|
85
|
+
return new func_1.GetAttr(null, null, "Item.LotteryModelId");
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.default = LotteryModelMaster;
|
|
89
|
+
//# sourceMappingURL=LotteryModelMaster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LotteryModelMaster.js","sourceRoot":"","sources":["LotteryModelMaster.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH,8DAA8B;AAC9B,0CAAwC;AAG3B,QAAA,sBAAsB,GAAG;IAClC,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;CACJ,CAAC;AAGE,QAAA,wBAAwB,GAAG;IACpC,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,QAAQ;CACV,CAAC;AAGX,iGAAiE;AAejE,MAAqB,kBAAmB,SAAQ,cAAI,CAAC,WAAW;IAY5D,YACQ,KAAY,EACZ,aAAqB,EACrB,IAAY,EACZ,IAA4B,EAC5B,MAAgC,EAChC,OAAmC;;QAEvC,KAAK,CAAC,6BAA6B,GAAG,IAAI,CAAC,CAAC;QAflC,gBAAW,GAAgB,IAAI,CAAC;QAChC,aAAQ,GAAgB,IAAI,CAAC;QAG7B,mBAAc,GAAgB,IAAI,CAAC;QACnC,6BAAwB,GAAgB,IAAI,CAAC;QAYvD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,IAAI,CAAC;QACtD,IAAI,CAAC,wBAAwB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,wBAAwB,mCAAI,IAAI,CAAC;QAE1E,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAEM,YAAY;QACf,OAAO,kCAAkC,CAAC;IAC9C,CAAC;IAEM,UAAU;QACb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAC3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,wBAAwB,IAAI,IAAI,EAAE;YACvC,UAAU,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC;SAC1E;QACD,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG,CACF,aAAqB;QAEzB,OAAO,IAAI,+BAAqB,CAC5B,aAAa,EACb,IAAI,CAAC,IAAI,CACZ,CAAC;IACN,CAAC;IAEM,qBAAqB;QACxB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,IAAI,EACJ,qBAAqB,CACxB,CAAC;IACN,CAAC;CACJ;AApFD,qCAoFC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
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 core from "../../core";
|
|
18
|
+
import {GetAttr} from "../../core/func";
|
|
19
|
+
import {Stack} from "../../core/model";
|
|
20
|
+
|
|
21
|
+
export const LotteryModelMasterMode = {
|
|
22
|
+
NORMAL: "normal",
|
|
23
|
+
BOX: "box",
|
|
24
|
+
} as const;
|
|
25
|
+
export type LotteryModelMasterMode = typeof LotteryModelMasterMode[keyof typeof LotteryModelMasterMode];
|
|
26
|
+
|
|
27
|
+
export const LotteryModelMasterMethod = {
|
|
28
|
+
PRIZE_TABLE: "prize_table",
|
|
29
|
+
SCRIPT: "script",
|
|
30
|
+
} as const;
|
|
31
|
+
export type LotteryModelMasterMethod = typeof LotteryModelMasterMethod[keyof typeof LotteryModelMasterMethod];
|
|
32
|
+
|
|
33
|
+
import LotteryModelMasterRef from "../ref/LotteryModelMasterRef";
|
|
34
|
+
|
|
35
|
+
export interface LotteryModelMasterOptions {
|
|
36
|
+
description?: string|null|undefined;
|
|
37
|
+
metadata?: string|null|undefined;
|
|
38
|
+
prizeTableName?: string|null|undefined;
|
|
39
|
+
choicePrizeTableScriptId?: string|null|undefined;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface LotteryModelMasterPrizeTableOptions {
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface LotteryModelMasterScriptOptions {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export default class LotteryModelMaster extends core.CdkResource {
|
|
49
|
+
|
|
50
|
+
private stack: Stack;
|
|
51
|
+
private readonly namespaceName: string;
|
|
52
|
+
private readonly name: string;
|
|
53
|
+
private readonly description: string|null = null;
|
|
54
|
+
private readonly metadata: string|null = null;
|
|
55
|
+
private readonly mode: LotteryModelMasterMode;
|
|
56
|
+
private readonly method: LotteryModelMasterMethod;
|
|
57
|
+
private readonly prizeTableName: string|null = null;
|
|
58
|
+
private readonly choicePrizeTableScriptId: string|null = null;
|
|
59
|
+
|
|
60
|
+
public constructor(
|
|
61
|
+
stack: Stack,
|
|
62
|
+
namespaceName: string,
|
|
63
|
+
name: string,
|
|
64
|
+
mode: LotteryModelMasterMode,
|
|
65
|
+
method: LotteryModelMasterMethod,
|
|
66
|
+
options?: LotteryModelMasterOptions,
|
|
67
|
+
) {
|
|
68
|
+
super("Lottery_LotteryModelMaster_" + name);
|
|
69
|
+
|
|
70
|
+
this.stack = stack;
|
|
71
|
+
this.namespaceName = namespaceName;
|
|
72
|
+
this.name = name;
|
|
73
|
+
this.description = options?.description ?? null;
|
|
74
|
+
this.metadata = options?.metadata ?? null;
|
|
75
|
+
this.mode = mode;
|
|
76
|
+
this.method = method;
|
|
77
|
+
this.prizeTableName = options?.prizeTableName ?? null;
|
|
78
|
+
this.choicePrizeTableScriptId = options?.choicePrizeTableScriptId ?? null;
|
|
79
|
+
|
|
80
|
+
stack.addResource(this);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
public resourceType(): string {
|
|
84
|
+
return "GS2::Lottery::LotteryModelMaster";
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public properties(): {[name: string]: any} {
|
|
88
|
+
let properties: {[name: string]: any} = {};
|
|
89
|
+
if (this.namespaceName != null) {
|
|
90
|
+
properties["NamespaceName"] = this.namespaceName;
|
|
91
|
+
}
|
|
92
|
+
if (this.name != null) {
|
|
93
|
+
properties["Name"] = this.name;
|
|
94
|
+
}
|
|
95
|
+
if (this.description != null) {
|
|
96
|
+
properties["Description"] = this.description;
|
|
97
|
+
}
|
|
98
|
+
if (this.metadata != null) {
|
|
99
|
+
properties["Metadata"] = this.metadata;
|
|
100
|
+
}
|
|
101
|
+
if (this.mode != null) {
|
|
102
|
+
properties["Mode"] = this.mode;
|
|
103
|
+
}
|
|
104
|
+
if (this.method != null) {
|
|
105
|
+
properties["Method"] = this.method;
|
|
106
|
+
}
|
|
107
|
+
if (this.prizeTableName != null) {
|
|
108
|
+
properties["PrizeTableName"] = this.prizeTableName;
|
|
109
|
+
}
|
|
110
|
+
if (this.choicePrizeTableScriptId != null) {
|
|
111
|
+
properties["ChoicePrizeTableScriptId"] = this.choicePrizeTableScriptId;
|
|
112
|
+
}
|
|
113
|
+
return properties;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
public ref(
|
|
117
|
+
namespaceName: string,
|
|
118
|
+
): LotteryModelMasterRef {
|
|
119
|
+
return new LotteryModelMasterRef(
|
|
120
|
+
namespaceName,
|
|
121
|
+
this.name,
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
public getAttrLotteryModelId(): GetAttr {
|
|
126
|
+
return new GetAttr(
|
|
127
|
+
null,
|
|
128
|
+
null,
|
|
129
|
+
"Item.LotteryModelId"
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import core from "../../core";
|
|
2
|
+
import { GetAttr } from "../../core/func";
|
|
3
|
+
import { Stack } from "../../core/model";
|
|
4
|
+
import TransactionSetting from "../../core/model/TransactionSetting";
|
|
5
|
+
import LogSetting from "../../core/model/LogSetting";
|
|
6
|
+
import LotteryModel from "./LotteryModel";
|
|
7
|
+
import PrizeTable from "./PrizeTable";
|
|
8
|
+
import NamespaceRef from "../ref/NamespaceRef";
|
|
9
|
+
export interface NamespaceOptions {
|
|
10
|
+
description?: string | null | undefined;
|
|
11
|
+
lotteryTriggerScriptId?: string | null | undefined;
|
|
12
|
+
choicePrizeTableScriptId?: string | null | undefined;
|
|
13
|
+
logSetting?: LogSetting | null | undefined;
|
|
14
|
+
}
|
|
15
|
+
export default class Namespace extends core.CdkResource {
|
|
16
|
+
private stack;
|
|
17
|
+
private readonly name;
|
|
18
|
+
private readonly description;
|
|
19
|
+
private readonly transactionSetting;
|
|
20
|
+
private readonly lotteryTriggerScriptId;
|
|
21
|
+
private readonly choicePrizeTableScriptId;
|
|
22
|
+
private readonly logSetting;
|
|
23
|
+
constructor(stack: Stack, name: string, transactionSetting: TransactionSetting, options?: NamespaceOptions);
|
|
24
|
+
resourceType(): string;
|
|
25
|
+
properties(): {
|
|
26
|
+
[name: string]: any;
|
|
27
|
+
};
|
|
28
|
+
ref(): NamespaceRef;
|
|
29
|
+
getAttrNamespaceId(): GetAttr;
|
|
30
|
+
masterData(lotteryModels: LotteryModel[], prizeTables: PrizeTable[]): Namespace;
|
|
31
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
const tslib_1 = require("tslib");
|
|
19
|
+
const core_1 = tslib_1.__importDefault(require("../../core"));
|
|
20
|
+
const func_1 = require("../../core/func");
|
|
21
|
+
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
22
|
+
const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
|
|
23
|
+
class Namespace extends core_1.default.CdkResource {
|
|
24
|
+
constructor(stack, name, transactionSetting, options) {
|
|
25
|
+
var _a, _b, _c, _d;
|
|
26
|
+
super("Lottery_Namespace_" + name);
|
|
27
|
+
this.description = null;
|
|
28
|
+
this.lotteryTriggerScriptId = null;
|
|
29
|
+
this.choicePrizeTableScriptId = null;
|
|
30
|
+
this.logSetting = null;
|
|
31
|
+
this.stack = stack;
|
|
32
|
+
this.name = name;
|
|
33
|
+
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
34
|
+
this.transactionSetting = transactionSetting;
|
|
35
|
+
this.lotteryTriggerScriptId = (_b = options === null || options === void 0 ? void 0 : options.lotteryTriggerScriptId) !== null && _b !== void 0 ? _b : null;
|
|
36
|
+
this.choicePrizeTableScriptId = (_c = options === null || options === void 0 ? void 0 : options.choicePrizeTableScriptId) !== null && _c !== void 0 ? _c : null;
|
|
37
|
+
this.logSetting = (_d = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _d !== void 0 ? _d : null;
|
|
38
|
+
stack.addResource(this);
|
|
39
|
+
}
|
|
40
|
+
resourceType() {
|
|
41
|
+
return "GS2::Lottery::Namespace";
|
|
42
|
+
}
|
|
43
|
+
properties() {
|
|
44
|
+
let properties = {};
|
|
45
|
+
if (this.name != null) {
|
|
46
|
+
properties["Name"] = this.name;
|
|
47
|
+
}
|
|
48
|
+
if (this.description != null) {
|
|
49
|
+
properties["Description"] = this.description;
|
|
50
|
+
}
|
|
51
|
+
if (this.transactionSetting != null) {
|
|
52
|
+
properties["TransactionSetting"] = this.transactionSetting.properties();
|
|
53
|
+
}
|
|
54
|
+
if (this.lotteryTriggerScriptId != null) {
|
|
55
|
+
properties["LotteryTriggerScriptId"] = this.lotteryTriggerScriptId;
|
|
56
|
+
}
|
|
57
|
+
if (this.choicePrizeTableScriptId != null) {
|
|
58
|
+
properties["ChoicePrizeTableScriptId"] = this.choicePrizeTableScriptId;
|
|
59
|
+
}
|
|
60
|
+
if (this.logSetting != null) {
|
|
61
|
+
properties["LogSetting"] = this.logSetting.properties();
|
|
62
|
+
}
|
|
63
|
+
return properties;
|
|
64
|
+
}
|
|
65
|
+
ref() {
|
|
66
|
+
return new NamespaceRef_1.default(this.name);
|
|
67
|
+
}
|
|
68
|
+
getAttrNamespaceId() {
|
|
69
|
+
return new func_1.GetAttr(null, null, "Item.NamespaceId");
|
|
70
|
+
}
|
|
71
|
+
masterData(lotteryModels, prizeTables) {
|
|
72
|
+
new CurrentMasterData_1.default(this.stack, this.name, lotteryModels, prizeTables).addDependsOn(this);
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.default = Namespace;
|
|
77
|
+
//# sourceMappingURL=Namespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,8DAA8B;AAC9B,0CAAwC;AAIxC,oFAAoD;AAIpD,+EAA+C;AAS/C,MAAqB,SAAU,SAAQ,cAAI,CAAC,WAAW;IAUnD,YACQ,KAAY,EACZ,IAAY,EACZ,kBAAsC,EACtC,OAA0B;;QAE9B,KAAK,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;QAZzB,gBAAW,GAAgB,IAAI,CAAC;QAEhC,2BAAsB,GAAgB,IAAI,CAAC;QAC3C,6BAAwB,GAAgB,IAAI,CAAC;QAC7C,eAAU,GAAoB,IAAI,CAAC;QAU7C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,sBAAsB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,sBAAsB,mCAAI,IAAI,CAAC;QACtE,IAAI,CAAC,wBAAwB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,wBAAwB,mCAAI,IAAI,CAAC;QAC1E,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAE9C,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAEM,YAAY;QACf,OAAO,yBAAyB,CAAC;IACrC,CAAC;IAEM,UAAU;QACb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAC3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC,UAAU,EAAE,CAAC;SAC3E;QACD,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,UAAU,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC;SACtE;QACD,IAAI,IAAI,CAAC,wBAAwB,IAAI,IAAI,EAAE;YACvC,UAAU,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC;SAC1E;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;SAC3D;QACD,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAI,CACZ,CAAC;IACN,CAAC;IAEM,kBAAkB;QACrB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,IAAI,EACJ,kBAAkB,CACrB,CAAC;IACN,CAAC;IAEM,UAAU,CACT,aAA6B,EAC7B,WAAyB;QAE7B,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,aAAa,EACb,WAAW,CACd,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AArFD,4BAqFC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
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 core from "../../core";
|
|
18
|
+
import {GetAttr} from "../../core/func";
|
|
19
|
+
import {Stack} from "../../core/model";
|
|
20
|
+
import TransactionSetting from "../../core/model/TransactionSetting";
|
|
21
|
+
import LogSetting from "../../core/model/LogSetting";
|
|
22
|
+
import CurrentMasterData from "./CurrentMasterData";
|
|
23
|
+
import LotteryModel from "./LotteryModel";
|
|
24
|
+
import PrizeTable from "./PrizeTable";
|
|
25
|
+
|
|
26
|
+
import NamespaceRef from "../ref/NamespaceRef";
|
|
27
|
+
|
|
28
|
+
export interface NamespaceOptions {
|
|
29
|
+
description?: string|null|undefined;
|
|
30
|
+
lotteryTriggerScriptId?: string|null|undefined;
|
|
31
|
+
choicePrizeTableScriptId?: string|null|undefined;
|
|
32
|
+
logSetting?: LogSetting|null|undefined;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default class Namespace extends core.CdkResource {
|
|
36
|
+
|
|
37
|
+
private stack: Stack;
|
|
38
|
+
private readonly name: string;
|
|
39
|
+
private readonly description: string|null = null;
|
|
40
|
+
private readonly transactionSetting: TransactionSetting;
|
|
41
|
+
private readonly lotteryTriggerScriptId: string|null = null;
|
|
42
|
+
private readonly choicePrizeTableScriptId: string|null = null;
|
|
43
|
+
private readonly logSetting: LogSetting|null = null;
|
|
44
|
+
|
|
45
|
+
public constructor(
|
|
46
|
+
stack: Stack,
|
|
47
|
+
name: string,
|
|
48
|
+
transactionSetting: TransactionSetting,
|
|
49
|
+
options?: NamespaceOptions,
|
|
50
|
+
) {
|
|
51
|
+
super("Lottery_Namespace_" + name);
|
|
52
|
+
|
|
53
|
+
this.stack = stack;
|
|
54
|
+
this.name = name;
|
|
55
|
+
this.description = options?.description ?? null;
|
|
56
|
+
this.transactionSetting = transactionSetting;
|
|
57
|
+
this.lotteryTriggerScriptId = options?.lotteryTriggerScriptId ?? null;
|
|
58
|
+
this.choicePrizeTableScriptId = options?.choicePrizeTableScriptId ?? null;
|
|
59
|
+
this.logSetting = options?.logSetting ?? null;
|
|
60
|
+
|
|
61
|
+
stack.addResource(this);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
public resourceType(): string {
|
|
65
|
+
return "GS2::Lottery::Namespace";
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
public properties(): {[name: string]: any} {
|
|
69
|
+
let properties: {[name: string]: any} = {};
|
|
70
|
+
if (this.name != null) {
|
|
71
|
+
properties["Name"] = this.name;
|
|
72
|
+
}
|
|
73
|
+
if (this.description != null) {
|
|
74
|
+
properties["Description"] = this.description;
|
|
75
|
+
}
|
|
76
|
+
if (this.transactionSetting != null) {
|
|
77
|
+
properties["TransactionSetting"] = this.transactionSetting.properties();
|
|
78
|
+
}
|
|
79
|
+
if (this.lotteryTriggerScriptId != null) {
|
|
80
|
+
properties["LotteryTriggerScriptId"] = this.lotteryTriggerScriptId;
|
|
81
|
+
}
|
|
82
|
+
if (this.choicePrizeTableScriptId != null) {
|
|
83
|
+
properties["ChoicePrizeTableScriptId"] = this.choicePrizeTableScriptId;
|
|
84
|
+
}
|
|
85
|
+
if (this.logSetting != null) {
|
|
86
|
+
properties["LogSetting"] = this.logSetting.properties();
|
|
87
|
+
}
|
|
88
|
+
return properties;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public ref(
|
|
92
|
+
): NamespaceRef {
|
|
93
|
+
return new NamespaceRef(
|
|
94
|
+
this.name,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
public getAttrNamespaceId(): GetAttr {
|
|
99
|
+
return new GetAttr(
|
|
100
|
+
null,
|
|
101
|
+
null,
|
|
102
|
+
"Item.NamespaceId"
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
public masterData(
|
|
107
|
+
lotteryModels: LotteryModel[],
|
|
108
|
+
prizeTables: PrizeTable[],
|
|
109
|
+
): Namespace {
|
|
110
|
+
new CurrentMasterData(
|
|
111
|
+
this.stack,
|
|
112
|
+
this.name,
|
|
113
|
+
lotteryModels,
|
|
114
|
+
prizeTables,
|
|
115
|
+
).addDependsOn(
|
|
116
|
+
this
|
|
117
|
+
);
|
|
118
|
+
return this;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AcquireAction } from "../../core/model";
|
|
2
|
+
export declare const PrizeType: {
|
|
3
|
+
readonly ACTION: "action";
|
|
4
|
+
readonly PRIZE_TABLE: "prize_table";
|
|
5
|
+
};
|
|
6
|
+
export declare type PrizeType = typeof PrizeType[keyof typeof PrizeType];
|
|
7
|
+
export interface PrizeOptions {
|
|
8
|
+
acquireActions?: AcquireAction[] | null | undefined;
|
|
9
|
+
drawnLimit?: number | null | undefined;
|
|
10
|
+
limitFailOverPrizeId?: string | null | undefined;
|
|
11
|
+
prizeTableName?: string | null | undefined;
|
|
12
|
+
}
|
|
13
|
+
export default class Prize {
|
|
14
|
+
private readonly prizeId;
|
|
15
|
+
private readonly type;
|
|
16
|
+
private readonly acquireActions;
|
|
17
|
+
private readonly drawnLimit;
|
|
18
|
+
private readonly limitFailOverPrizeId;
|
|
19
|
+
private readonly prizeTableName;
|
|
20
|
+
private readonly weight;
|
|
21
|
+
constructor(prizeId: string, type: PrizeType, weight: number, options?: PrizeOptions);
|
|
22
|
+
static action(prizeId: string, acquireActions: AcquireAction[], weight: number, drawnLimit?: number | null, limitFailOverPrizeId?: string | null): Prize;
|
|
23
|
+
static prizeTable(prizeId: string, acquireActions: AcquireAction[], prizeTableName: string, weight: number, drawnLimit?: number | null): Prize;
|
|
24
|
+
properties(): {
|
|
25
|
+
[name: string]: any;
|
|
26
|
+
};
|
|
27
|
+
}
|