Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice code reuse 🙂

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
title: EffectivePlatformFeature
required:
- isEnabled
- disabledReason
- disabledReasonType
- isTrial
- trialExpirationAt
type: object
properties:
isEnabled:
type: boolean
example: true
disabledReason:
type: string
example: "The \"Selected public Actors for developers\" feature is not enabled for your account. Please upgrade your plan or contact [email protected]"
nullable: true
disabledReasonType:
type: string
example: "DISABLED"
nullable: true
isTrial:
type: boolean
example: false
trialExpirationAt:
type: string
example: "2025-01-01T14:00:00.000Z"
nullable: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
title: EffectivePlatformFeatures
required:
- ACTORS
- STORAGE
- SCHEDULER
- PROXY
- PROXY_EXTERNAL_ACCESS
- PROXY_RESIDENTIAL
- PROXY_SERPS
- WEBHOOKS
- ACTORS_PUBLIC_ALL
- ACTORS_PUBLIC_DEVELOPER
type: object
properties:
ACTORS:
$ref: './EffectivePlatformFeature.yaml'
STORAGE:
$ref: './EffectivePlatformFeature.yaml'
SCHEDULER:
$ref: './EffectivePlatformFeature.yaml'
PROXY:
$ref: './EffectivePlatformFeature.yaml'
PROXY_EXTERNAL_ACCESS:
$ref: './EffectivePlatformFeature.yaml'
PROXY_RESIDENTIAL:
$ref: './EffectivePlatformFeature.yaml'
PROXY_SERPS:
$ref: './EffectivePlatformFeature.yaml'
WEBHOOKS:
$ref: './EffectivePlatformFeature.yaml'
ACTORS_PUBLIC_ALL:
$ref: './EffectivePlatformFeature.yaml'
ACTORS_PUBLIC_DEVELOPER:
$ref: './EffectivePlatformFeature.yaml'
11 changes: 11 additions & 0 deletions apify-api/openapi/components/schemas/users/UserPrivateInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ required:
- email
- proxy
- plan
- effectivePlatformFeatures
- createdAt
- isPaying
type: object
properties:
id:
Expand All @@ -23,3 +26,11 @@ properties:
$ref: ./Proxy.yaml
plan:
$ref: ./Plan.yaml
effectivePlatformFeatures:
$ref: ./EffectivePlatformFeatures.yaml
createdAt:
type: string
example: "2022-11-29T14:48:29.381Z"
isPaying:
type: boolean
example: true
Loading