-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1198 from contentstack/refactor/CS-42903
refactor: export marketplace apps HTTP adapter calls to SDK call migration [CS-42903]
- Loading branch information
Showing
7 changed files
with
325 additions
and
153 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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
type AppLocation = | ||
| 'cs.cm.stack.config' | ||
| 'cs.cm.stack.dashboard' | ||
| 'cs.cm.stack.sidebar' | ||
| 'cs.cm.stack.custom_field' | ||
| 'cs.cm.stack.rte' | ||
| 'cs.cm.stack.asset_sidebar' | ||
| 'cs.org.config'; | ||
|
||
interface ExtensionMeta { | ||
uid?: string; | ||
name?: string; | ||
description?: string; | ||
path?: string; | ||
signed: boolean; | ||
extension_uid?: string; | ||
data_type?: string; | ||
enabled?: boolean; | ||
width?: number; | ||
blur?: boolean; | ||
default_width?: 'full' | 'half'; | ||
} | ||
|
||
interface Extension { | ||
type: AppLocation; | ||
meta: ExtensionMeta[]; | ||
} | ||
|
||
interface LocationConfiguration { | ||
signed: boolean; | ||
base_url: string; | ||
locations: Extension[]; | ||
} | ||
|
||
interface AnyProperty { | ||
[propName: string]: any; | ||
} | ||
|
||
type Manifest = { | ||
uid: string; | ||
name: string; | ||
icon?: string; | ||
hosting?: any; | ||
version?: number; | ||
description: string; | ||
organization_uid: string; | ||
framework_version?: string; | ||
oauth?: any; | ||
webhook?: any; | ||
ui_location: LocationConfiguration; | ||
target_type: 'stack' | 'organization'; | ||
visibility: 'private' | 'public' | 'public_unlisted'; | ||
} & AnyProperty; | ||
|
||
type Installation = { | ||
uid: string; | ||
status: string; | ||
manifest: Manifest; | ||
configuration: any; | ||
server_configuration: any; | ||
target: { type: string; uid: string }; | ||
ui_location: LocationConfiguration; | ||
} & AnyProperty; | ||
|
||
export { Installation, Manifest }; |
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.