@stepzen/sdk
Advanced tools
Comparing version 0.9.27 to 0.9.28
@@ -1,1 +0,20 @@ | ||
export {}; | ||
declare const stepzen: { | ||
client: (options?: { | ||
account: string; | ||
adminkey: string; | ||
}) => Promise<{ | ||
deploy: (destination: string, properties: { | ||
configurationsets?: string[]; | ||
schema: string; | ||
}) => Promise<import("./shared/types").ZenCtlResponse>; | ||
list: { | ||
configurationsets: () => Promise<import("./shared/types").ZenCtlResponse>; | ||
schemas: () => Promise<import("./shared/types").ZenCtlResponse>; | ||
}; | ||
upload: { | ||
configurationset: (destination: string, file: string) => Promise<import("./shared/types").ZenCtlResponse>; | ||
schema: (destination: string, directory: string) => Promise<import("./shared/types").ZenCtlResponse>; | ||
}; | ||
}>; | ||
}; | ||
export default stepzen; |
@@ -6,4 +6,5 @@ "use strict"; | ||
const deploy_1 = require("./commands/deploy"); | ||
const list_1 = require("./commands/list"); | ||
const upload_1 = require("./commands/upload"); | ||
module.exports = { | ||
const stepzen = { | ||
client: async (options = { | ||
@@ -25,23 +26,25 @@ account: '', | ||
return { | ||
deploy: (destination, properties) => { | ||
return deploy_1.default(Object.assign({ destination }, properties), account); | ||
}, | ||
list: { | ||
configurationsets: async () => { | ||
return list_1.default({ type: 'configurationsets' }, account); | ||
}, | ||
schemas: async () => { | ||
return list_1.default({ type: 'schemas' }, account); | ||
}, | ||
}, | ||
upload: { | ||
configurationset: async (destination, file) => { | ||
return upload_1.default({ | ||
type: 'configurationset', | ||
destination, | ||
file, | ||
}, account); | ||
return upload_1.default({ type: 'configurationset', destination, file }, account); | ||
}, | ||
schema: async (destination, directory) => { | ||
return upload_1.default({ | ||
type: 'schema', | ||
destination, | ||
directory, | ||
}, account); | ||
return upload_1.default({ type: 'schema', destination, directory }, account); | ||
}, | ||
}, | ||
deploy: (destination, properties) => { | ||
return deploy_1.default(Object.assign({ destination }, properties), account); | ||
}, | ||
}; | ||
} | ||
}; | ||
exports.default = stepzen; | ||
module.exports = stepzen; |
export declare const ADMIN_DEPLOY_URL = "/cli/admin/deploy"; | ||
export declare const ADMIN_LIST_URL = "/cli/admin/list"; | ||
export declare const ADMIN_UPLOAD_URL = "/cli/admin/upload"; | ||
export declare const ADMIN_VERIFY_URL = "/cli/admin/verify"; |
"use strict"; | ||
// Copyright (c) 2020,2021, StepZen, Inc. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ADMIN_VERIFY_URL = exports.ADMIN_UPLOAD_URL = exports.ADMIN_DEPLOY_URL = void 0; | ||
exports.ADMIN_VERIFY_URL = exports.ADMIN_UPLOAD_URL = exports.ADMIN_LIST_URL = exports.ADMIN_DEPLOY_URL = void 0; | ||
exports.ADMIN_DEPLOY_URL = '/cli/admin/deploy'; | ||
exports.ADMIN_LIST_URL = '/cli/admin/list'; | ||
exports.ADMIN_UPLOAD_URL = '/cli/admin/upload'; | ||
exports.ADMIN_VERIFY_URL = '/cli/admin/verify'; |
@@ -12,2 +12,5 @@ export interface StepZenAccount { | ||
} | ||
export interface StepZenList { | ||
type: string; | ||
} | ||
export interface StepZenUpload { | ||
@@ -14,0 +17,0 @@ destination: string; |
{ | ||
"name": "@stepzen/sdk", | ||
"version": "0.9.27", | ||
"version": "0.9.28", | ||
"license": "MIT", | ||
@@ -8,2 +8,4 @@ "files": [ | ||
], | ||
"author": "Darren Waddell <darren@stepzen.com>", | ||
"homepage": "https://stepzen.com", | ||
"main": "lib/index.js", | ||
@@ -10,0 +12,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
18606
23
409
1
1