SdkManifest
Interface: SdkManifest
Defined in: sdk/src/manifest.ts:75
The contract between the application and the generator: every operation with every way the server exposes it, the models, their schemas and what the application serves
Properties
models
models:
Record<string,SdkManifestModel>
Defined in: sdk/src/manifest.ts:80
namespace
namespace:
string
Defined in: sdk/src/manifest.ts:78
Application namespace, e.g. WebdaDemo
offline?
optionaloffline?:object
Defined in: sdk/src/manifest.ts:90
Present when a Webda/SyncService is configured
models
models:
string[]
operations
operations:
object
operations.pull
pull:
string
operations.push
push:
string
operations.snapshot
snapshot:
string
operations.watch?
optionalwatch?:string
operations
operations:
Record<string,SdkManifestOperation>
Defined in: sdk/src/manifest.ts:79
schemas
schemas:
Record<string,JSONSchema7>
Defined in: sdk/src/manifest.ts:82
Every referenced schema, local definitions hoisted
transports
transports:
object
Defined in: sdk/src/manifest.ts:84
What the application serves, so createClient() can pick defaults
graphql?
optionalgraphql?:object
graphql.subscriptions?
optionalsubscriptions?:boolean
graphql.url
url:
string
grpc?
optionalgrpc?:object
grpc.package
package:
string
grpc.protoFile
protoFile:
string
rest?
optionalrest?:object
rest.url
url:
string
version
version:
1
Defined in: sdk/src/manifest.ts:76