Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crafting Sandbox API for TypeScript

Quick Start

import {Connector} from "@crafting/sandbox-api";

const connector = new Connector("myorg");
const resp = connector.managementServiceClient().createSandbox({
    org_id: connector.org.id,
    name: "my-sandbox",
    composer: {
        from_app_definition: {
            app_definition: {
                workspaces: [
                    {
                        name: "dev",
                    },
                ],
            },
        },
    },
})
const sandbox = resp.sandbox;
...

To use a specific type:

import {api} from "@crafting/sandbox-api";

class App {
    sandbox: api.Sandbox?;
}

About

Crafting Sandbox API for Typescript

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages