feat: create success stubs json with type generation (#33)
This commit is contained in:
27
stubs/json/landing/landing-success.json
Normal file
27
stubs/json/landing/landing-success.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"success": true,
|
||||
"body": {
|
||||
"hero-section": {
|
||||
"headline": "hero-section.headline",
|
||||
"description": "hero-section.description",
|
||||
"video": "demo.mp4"
|
||||
},
|
||||
"sections": [
|
||||
{
|
||||
"type": "benefits-section",
|
||||
"heading": "benefits-section.heading",
|
||||
"description": "benefits-section.description",
|
||||
"list": [
|
||||
"benefits-section.list.0",
|
||||
"benefits-section.list.1",
|
||||
"benefits-section.list.2",
|
||||
"benefits-section.list.3"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "social-proof-section",
|
||||
"heading": "social-proof-section.heading"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
28
stubs/json/landing/landing-success.json.d.ts
vendored
Normal file
28
stubs/json/landing/landing-success.json.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
interface LandingSuccess {
|
||||
success: true,
|
||||
body: {
|
||||
'hero-section': {
|
||||
headline: 'hero-section.headline',
|
||||
description: 'hero-section.description',
|
||||
video: 'demo.mp4'
|
||||
},
|
||||
sections: [
|
||||
{
|
||||
type: 'benefits-section',
|
||||
heading: 'benefits-section.heading',
|
||||
description: 'benefits-section.description',
|
||||
list: [
|
||||
'benefits-section.list.0',
|
||||
'benefits-section.list.1',
|
||||
'benefits-section.list.2',
|
||||
'benefits-section.list.3'
|
||||
]
|
||||
},
|
||||
{type: 'social-proof-section', heading: 'social-proof-section.heading'}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
declare const LandingSuccess: LandingSuccess;
|
||||
|
||||
export = LandingSuccess;
|
||||
Reference in New Issue
Block a user