forked from ITISFoundation/osparc-simcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Enhancements for product-owner users and invitations (ITISFoundatio…
- Loading branch information
Showing
35 changed files
with
643 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
from ._base import InputSchema, OutputSchema | ||
|
||
|
||
class CreditPriceGet(OutputSchema): | ||
class GetCreditPrice(OutputSchema): | ||
product_name: str | ||
usd_per_credit: NonNegativeDecimal | None = Field( | ||
..., | ||
|
@@ -26,18 +26,40 @@ class Config(OutputSchema.Config): | |
} | ||
|
||
|
||
class GetProduct(OutputSchema): | ||
name: ProductName | ||
display_name: str | ||
short_name: str | None = Field( | ||
default=None, description="Short display name for SMS" | ||
) | ||
|
||
vendor: dict | None = Field(default=None, description="vendor attributes") | ||
issues: list[dict] | None = Field( | ||
default=None, description="Reference to issues tracker" | ||
) | ||
manuals: list[dict] | None = Field(default=None, description="List of manuals") | ||
support: list[dict] | None = Field( | ||
default=None, description="List of support resources" | ||
) | ||
|
||
login_settings: dict | ||
max_open_studies_per_user: PositiveInt | None | ||
is_payment_enabled: bool | ||
credits_per_usd: NonNegativeDecimal | None | ||
|
||
|
||
class GenerateInvitation(InputSchema): | ||
guest: LowerCaseEmailStr | ||
trial_account_days: PositiveInt | None = None | ||
extra_credits: PositiveInt | None = None | ||
extra_credits_in_usd: PositiveInt | None = None | ||
|
||
|
||
class InvitationGenerated(OutputSchema): | ||
product_name: ProductName | ||
issuer: LowerCaseEmailStr | ||
guest: LowerCaseEmailStr | ||
trial_account_days: PositiveInt | None = None | ||
extra_credits: PositiveInt | None = None | ||
extra_credits_in_usd: PositiveInt | None = None | ||
created: datetime | ||
invitation_link: HttpUrl | ||
|
||
|
@@ -49,7 +71,7 @@ class Config(OutputSchema.Config): | |
"issuer": "[email protected]", | ||
"guest": "[email protected]", | ||
"trialAccountDays": 7, | ||
"extraCredits": 30, | ||
"extraCreditsInUsd": 30, | ||
"created": "2023-09-27T15:30:00", | ||
"invitationLink": "https://example.com/invitation#1234", | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.33.0 | ||
0.34.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.