GitHub

RDK

Deployment

You can deploy your classes via RDK.

  • You cannot deploy more than 5 classes in parallel.
interface DeployClass {
    classId: string
    force?: boolean
}


interface OperationResponse {
    success: boolean
    data?: any
    error?: string
}


async function deployClass(input: DeployClass): Promise<OperationResponse | undefined> {
    // ...
}

Usage

import RDK from '@retter/rdk'


const rdk = new RDK()


await rdk.deployClass({ classId: 'User', force: true })


await rdk.pipeline()
    .deployClass({ classId: 'User', force: true })
    .deployClass({ classId: 'Product', force: true })
    .send()

API Reference

Deploy Class Input

ParameterTypeRequiredDescription
classIdstringfalseClass ID to deploy
forcebooleanfalseFlag to decide whether to force the deployment or not

Deploy Class Output

ParameterTypeRequiredDescription
successbooleantrueReturns true if operation is successful
dataanyfalseSuccessful response
errorstringfalseReason of failure
Previous
Static IP