@slack/cli-test
Advanced tools
Comparing version 0.1.0-cli.2.25.0 to 0.2.0
@@ -9,2 +9,3 @@ /** | ||
isLocalApp?: boolean; | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
@@ -17,3 +18,5 @@ /** | ||
*/ | ||
export declare const install: (appPath: string, teamFlag: string) => Promise<string>; | ||
export declare const install: (appPath: string, teamFlag: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
/** | ||
@@ -24,11 +27,18 @@ * `slack app list` | ||
*/ | ||
export declare const list: (appPath: string) => Promise<string>; | ||
export declare const list: (appPath: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
declare const _default: { | ||
workspaceDelete: (appPath: string, teamFlag: string, options?: { | ||
isLocalApp?: boolean | undefined; | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
workspaceInstall: (appPath: string, teamFlag: string) => Promise<string>; | ||
workspaceList: (appPath: string) => Promise<string>; | ||
workspaceInstall: (appPath: string, teamFlag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
workspaceList: (appPath: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
export default _default; | ||
//# sourceMappingURL=app.d.ts.map |
@@ -26,5 +26,5 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: breaking change, separate params vs single-param-object | ||
// TODO: breaking change, separate params vs single-param-object, probably should reflect global vs command CLI flags | ||
const appEnvironment = (options === null || options === void 0 ? void 0 : options.isLocalApp) ? 'local' : 'deployed'; | ||
const cmd = new cli_process_1.SlackCLIProcess('app delete --force', { team: teamFlag }, { | ||
const cmd = new cli_process_1.SlackCLIProcess('app delete --force', { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }, { | ||
'--app': appEnvironment, | ||
@@ -50,6 +50,6 @@ }); | ||
*/ | ||
const install = function workspaceInstall(appPath, teamFlag) { | ||
const install = function workspaceInstall(appPath, teamFlag, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: breaking change, separate params vs single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess('app install', { team: teamFlag }); | ||
// TODO: breaking change, separate params vs single-param-object, probably should reflect global vs command CLI flags | ||
const cmd = new cli_process_1.SlackCLIProcess('app install', { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -72,6 +72,6 @@ const proc = yield cmd.execAsync({ | ||
*/ | ||
const list = function appList(appPath) { | ||
const list = function appList(appPath, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: (breaking change) separate parameters vs single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess('app list'); | ||
const cmd = new cli_process_1.SlackCLIProcess('app list', options); | ||
try { | ||
@@ -78,0 +78,0 @@ const proc = yield cmd.execAsync({ |
@@ -43,2 +43,3 @@ import type { ShellProcess } from '../../utils/types'; | ||
allWorkspaces?: boolean; | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
@@ -45,0 +46,0 @@ }; |
@@ -74,3 +74,3 @@ "use strict"; | ||
// Create the command with workspaces to logout of | ||
const globalOpts = {}; | ||
const globalOpts = { qa: options === null || options === void 0 ? void 0 : options.qa }; | ||
const cmdOpts = {}; | ||
@@ -77,0 +77,0 @@ if (options === null || options === void 0 ? void 0 : options.teamFlag) { |
@@ -8,3 +8,5 @@ /** | ||
*/ | ||
export declare const add: (appPath: string, teamFlag: string, collaboratorEmail: string) => Promise<string>; | ||
export declare const add: (appPath: string, teamFlag: string, collaboratorEmail: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
/** | ||
@@ -16,3 +18,5 @@ * `slack collaborators list` | ||
*/ | ||
export declare const list: (appPath: string, teamFlag: string) => Promise<string>; | ||
export declare const list: (appPath: string, teamFlag: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
/** | ||
@@ -25,9 +29,17 @@ * `slack collaborators remove` | ||
*/ | ||
export declare const remove: (appPath: string, teamFlag: string, collaboratorEmail: string) => Promise<string>; | ||
export declare const remove: (appPath: string, teamFlag: string, collaboratorEmail: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
declare const _default: { | ||
collaboratorsAdd: (appPath: string, teamFlag: string, collaboratorEmail: string) => Promise<string>; | ||
collaboratorsList: (appPath: string, teamFlag: string) => Promise<string>; | ||
collaboratorsRemove: (appPath: string, teamFlag: string, collaboratorEmail: string) => Promise<string>; | ||
collaboratorsAdd: (appPath: string, teamFlag: string, collaboratorEmail: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
collaboratorsList: (appPath: string, teamFlag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
collaboratorsRemove: (appPath: string, teamFlag: string, collaboratorEmail: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
export default _default; | ||
//# sourceMappingURL=collaborator.d.ts.map |
@@ -25,6 +25,6 @@ "use strict"; | ||
*/ | ||
const add = function collaboratorsAdd(appPath, teamFlag, collaboratorEmail) { | ||
const add = function collaboratorsAdd(appPath, teamFlag, collaboratorEmail, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: (breaking change) separate parameters vs single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess(`collaborators add ${collaboratorEmail}`, { team: teamFlag }); | ||
const cmd = new cli_process_1.SlackCLIProcess(`collaborators add ${collaboratorEmail}`, { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -48,6 +48,6 @@ const proc = yield cmd.execAsync({ | ||
*/ | ||
const list = function collaboratorsList(appPath, teamFlag) { | ||
const list = function collaboratorsList(appPath, teamFlag, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: (breaking change) separate parameters vs single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess('collaborators list', { team: teamFlag }); | ||
const cmd = new cli_process_1.SlackCLIProcess('collaborators list', { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -72,6 +72,6 @@ const proc = yield cmd.execAsync({ | ||
*/ | ||
const remove = function collaboratorsRemove(appPath, teamFlag, collaboratorEmail) { | ||
const remove = function collaboratorsRemove(appPath, teamFlag, collaboratorEmail, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: (breaking change) separate parameters vs single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess(`collaborators remove ${collaboratorEmail}`, { team: teamFlag }); | ||
const cmd = new cli_process_1.SlackCLIProcess(`collaborators remove ${collaboratorEmail}`, { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -78,0 +78,0 @@ const proc = yield cmd.execAsync({ |
@@ -23,3 +23,4 @@ "use strict"; | ||
*/ | ||
const create = function create(appName, globalOpts, commandOpts, shellOpts) { | ||
const create = function create(appName, // TODO: bad arg name. it should be app path, because this is effectively how it is used | ||
globalOpts, commandOpts, shellOpts) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -26,0 +27,0 @@ // TODO: single object param vs separate params (breaking change) |
@@ -9,3 +9,5 @@ /** | ||
*/ | ||
export declare const add: (appPath: string, teamFlag: string, secretKey: string, secretValue: string) => Promise<string>; | ||
export declare const add: (appPath: string, teamFlag: string, secretKey: string, secretValue: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
/** | ||
@@ -17,3 +19,5 @@ * `slack env list` | ||
*/ | ||
export declare const list: (appPath: string, teamFlag: string) => Promise<string>; | ||
export declare const list: (appPath: string, teamFlag: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
/** | ||
@@ -26,9 +30,17 @@ * `slack env remove` | ||
*/ | ||
export declare const remove: (appPath: string, teamFlag: string, secretKey: string) => Promise<string>; | ||
export declare const remove: (appPath: string, teamFlag: string, secretKey: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
declare const _default: { | ||
envAdd: (appPath: string, teamFlag: string, secretKey: string, secretValue: string) => Promise<string>; | ||
envList: (appPath: string, teamFlag: string) => Promise<string>; | ||
envRemove: (appPath: string, teamFlag: string, secretKey: string) => Promise<string>; | ||
envAdd: (appPath: string, teamFlag: string, secretKey: string, secretValue: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
envList: (appPath: string, teamFlag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
envRemove: (appPath: string, teamFlag: string, secretKey: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
export default _default; | ||
//# sourceMappingURL=env.d.ts.map |
@@ -26,6 +26,6 @@ "use strict"; | ||
*/ | ||
const add = function envAdd(appPath, teamFlag, secretKey, secretValue) { | ||
const add = function envAdd(appPath, teamFlag, secretKey, secretValue, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: (breaking change) separate parameters vs single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess(`env add ${secretKey} ${secretValue}`, { team: teamFlag }); | ||
const cmd = new cli_process_1.SlackCLIProcess(`env add ${secretKey} ${secretValue}`, { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -49,6 +49,6 @@ const proc = yield cmd.execAsync({ | ||
*/ | ||
const list = function envList(appPath, teamFlag) { | ||
const list = function envList(appPath, teamFlag, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: (breaking change) separate parameters vs single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess('env list', { team: teamFlag }); | ||
const cmd = new cli_process_1.SlackCLIProcess('env list', { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -73,6 +73,6 @@ const proc = yield cmd.execAsync({ | ||
*/ | ||
const remove = function envRemove(appPath, teamFlag, secretKey) { | ||
const remove = function envRemove(appPath, teamFlag, secretKey, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: (breaking change) separate parameters vs single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess(`env remove ${secretKey}`, { team: teamFlag }); | ||
const cmd = new cli_process_1.SlackCLIProcess(`env remove ${secretKey}`, { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -79,0 +79,0 @@ const proc = yield cmd.execAsync({ |
@@ -9,7 +9,11 @@ /** | ||
*/ | ||
export declare const externalAuth: (appPath: string, teamFlag: string, provider: string, flags: string) => Promise<string>; | ||
export declare const externalAuth: (appPath: string, teamFlag: string, provider: string, flags: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
declare const _default: { | ||
externalAuth: (appPath: string, teamFlag: string, provider: string, flags: string) => Promise<string>; | ||
externalAuth: (appPath: string, teamFlag: string, provider: string, flags: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
export default _default; | ||
//# sourceMappingURL=external-auth.d.ts.map |
@@ -26,3 +26,3 @@ "use strict"; | ||
*/ | ||
const externalAuth = function externalAuth(appPath, teamFlag, provider, flags) { | ||
const externalAuth = function externalAuth(appPath, teamFlag, provider, flags, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -32,3 +32,3 @@ // TODO: (breaking change) separate parameters vs single-param-object | ||
// specify the actual sub-command. easy, but lazy, not sure if best approach | ||
const cmd = new cli_process_1.SlackCLIProcess(`external-auth ${flags}`, { team: teamFlag }, { | ||
const cmd = new cli_process_1.SlackCLIProcess(`external-auth ${flags}`, { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }, { | ||
'--provider': provider, | ||
@@ -35,0 +35,0 @@ }); |
@@ -8,8 +8,14 @@ /** | ||
*/ | ||
export declare const access: (appPath: string, teamFlag: string, flags: string) => Promise<string>; | ||
export declare const access: (appPath: string, teamFlag: string, flags: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
declare const _default: { | ||
functionDistribute: (appPath: string, teamFlag: string, flags: string) => Promise<string>; | ||
functionAccess: (appPath: string, teamFlag: string, flags: string) => Promise<string>; | ||
functionDistribute: (appPath: string, teamFlag: string, flags: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
functionAccess: (appPath: string, teamFlag: string, flags: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
export default _default; | ||
//# sourceMappingURL=function.d.ts.map |
@@ -27,6 +27,6 @@ "use strict"; | ||
*/ | ||
const access = function functionAccess(appPath, teamFlag, flags) { | ||
const access = function functionAccess(appPath, teamFlag, flags, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: breaking change, separate params vs single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess(`function access ${flags}`, { team: teamFlag }); | ||
const cmd = new cli_process_1.SlackCLIProcess(`function access ${flags}`, { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -33,0 +33,0 @@ const proc = yield cmd.execAsync({ |
@@ -6,7 +6,11 @@ /** | ||
*/ | ||
export declare const validate: (appPath: string) => Promise<string>; | ||
export declare const validate: (appPath: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
declare const _default: { | ||
manifestValidate: (appPath: string) => Promise<string>; | ||
manifestValidate: (appPath: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
export default _default; | ||
//# sourceMappingURL=manifest.d.ts.map |
@@ -23,6 +23,6 @@ "use strict"; | ||
*/ | ||
const validate = function manifestValidate(appPath) { | ||
const validate = function manifestValidate(appPath, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: breaking change, separate params vs single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess('manifest validate'); | ||
const cmd = new cli_process_1.SlackCLIProcess('manifest validate', options); | ||
try { | ||
@@ -29,0 +29,0 @@ const proc = yield cmd.execAsync({ |
@@ -8,3 +8,3 @@ import type { ShellProcess } from '../../utils/types'; | ||
*/ | ||
activity: ({ appPath, teamFlag, flag, localApp, }: { | ||
activity: ({ appPath, teamFlag, flag, localApp, qa, }: { | ||
/** Path to app */ | ||
@@ -18,2 +18,4 @@ appPath: string; | ||
localApp?: boolean | undefined; | ||
/** Whether to operate against --slackdev or production */ | ||
qa?: boolean | undefined; | ||
}) => Promise<string>; | ||
@@ -25,3 +27,3 @@ /** | ||
*/ | ||
activityTailStart: ({ appPath, teamFlag, stringToWaitFor, localApp, }: { | ||
activityTailStart: ({ appPath, teamFlag, stringToWaitFor, localApp, qa, }: { | ||
/** Path to app */ | ||
@@ -35,2 +37,4 @@ appPath: string; | ||
localApp?: boolean | undefined; | ||
/** Whether to operate against --slackdev or production */ | ||
qa?: boolean | undefined; | ||
}) => Promise<ShellProcess>; | ||
@@ -49,3 +53,3 @@ /** | ||
*/ | ||
deploy: ({ appPath, teamFlag, hideTriggers, orgWorkspaceGrantFlag, }: { | ||
deploy: ({ appPath, teamFlag, hideTriggers, orgWorkspaceGrantFlag, qa, }: { | ||
/** Path to app */ | ||
@@ -62,2 +66,4 @@ appPath: string; | ||
orgWorkspaceGrantFlag?: string | undefined; | ||
/** Whether to operate against --slackdev or production */ | ||
qa?: boolean | undefined; | ||
}) => Promise<string>; | ||
@@ -69,3 +75,3 @@ /** | ||
*/ | ||
runStart: ({ appPath, teamFlag, cleanup, hideTriggers, orgWorkspaceGrantFlag, }: { | ||
runStart: ({ appPath, teamFlag, cleanup, hideTriggers, orgWorkspaceGrantFlag, qa, }: { | ||
/** Path to app */ | ||
@@ -84,2 +90,4 @@ appPath: string; | ||
orgWorkspaceGrantFlag?: string | undefined; | ||
/** Whether to operate against --slackdev or production */ | ||
qa?: boolean | undefined; | ||
}) => Promise<ShellProcess>; | ||
@@ -86,0 +94,0 @@ /** |
@@ -27,6 +27,6 @@ "use strict"; | ||
*/ | ||
activity: function activity({ appPath, teamFlag, flag, localApp = true, }) { | ||
activity: function activity({ appPath, teamFlag, flag, localApp = true, qa = false, }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const appEnvironment = localApp ? 'local' : 'deployed'; | ||
const cmd = new cli_process_1.SlackCLIProcess(`activity ${flag}`, { team: teamFlag }, { | ||
const cmd = new cli_process_1.SlackCLIProcess(`activity ${flag}`, { team: teamFlag, qa }, { | ||
'--app': appEnvironment, | ||
@@ -50,6 +50,6 @@ }); | ||
*/ | ||
activityTailStart: function activityTailStart({ appPath, teamFlag, stringToWaitFor, localApp = true, }) { | ||
activityTailStart: function activityTailStart({ appPath, teamFlag, stringToWaitFor, localApp = true, qa = false, }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const appEnvironment = localApp ? 'local' : 'deployed'; | ||
const cmd = new cli_process_1.SlackCLIProcess('activity --tail', { team: teamFlag }, { | ||
const cmd = new cli_process_1.SlackCLIProcess('activity --tail', { team: teamFlag, qa }, { | ||
'--app': appEnvironment, | ||
@@ -94,5 +94,5 @@ }); | ||
*/ | ||
deploy: function deploy({ appPath, teamFlag, hideTriggers = true, orgWorkspaceGrantFlag, }) { | ||
deploy: function deploy({ appPath, teamFlag, hideTriggers = true, orgWorkspaceGrantFlag, qa = false, }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const cmd = new cli_process_1.SlackCLIProcess('deploy', { team: teamFlag }, { | ||
const cmd = new cli_process_1.SlackCLIProcess('deploy', { team: teamFlag, qa }, { | ||
'--hide-triggers': hideTriggers, | ||
@@ -117,5 +117,5 @@ '--org-workspace-grant': orgWorkspaceGrantFlag, | ||
*/ | ||
runStart: function runStart({ appPath, teamFlag, cleanup = true, hideTriggers = true, orgWorkspaceGrantFlag, }) { | ||
runStart: function runStart({ appPath, teamFlag, cleanup = true, hideTriggers = true, orgWorkspaceGrantFlag, qa = false, }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const cmd = new cli_process_1.SlackCLIProcess('run', { team: teamFlag }, { | ||
const cmd = new cli_process_1.SlackCLIProcess('run', { team: teamFlag, qa }, { | ||
'--cleanup': cleanup, | ||
@@ -122,0 +122,0 @@ '--hide-triggers': hideTriggers, |
@@ -8,3 +8,5 @@ /** | ||
*/ | ||
export declare const access: (appPath: string, teamFlag: string, flags: string) => Promise<string>; | ||
export declare const access: (appPath: string, teamFlag: string, flags: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
/** | ||
@@ -26,4 +28,4 @@ * `slack trigger create` | ||
localApp?: boolean | undefined; | ||
/** Install app by selecting "Install to a new team" */ | ||
installApp?: boolean | undefined; | ||
/** Whether to run against --slackdev or production */ | ||
qa?: boolean | undefined; | ||
} | undefined; | ||
@@ -38,3 +40,5 @@ }) => Promise<string>; | ||
*/ | ||
export declare const del: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
export declare const del: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
/** | ||
@@ -47,3 +51,5 @@ * `slack trigger info` | ||
*/ | ||
export declare const info: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
export declare const info: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
/** | ||
@@ -56,3 +62,5 @@ * `slack trigger list` | ||
*/ | ||
export declare const list: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
export declare const list: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
/** | ||
@@ -65,5 +73,9 @@ * `slack trigger update` | ||
*/ | ||
export declare const update: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
export declare const update: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean; | ||
}) => Promise<string>; | ||
declare const _default: { | ||
triggerAccess: (appPath: string, teamFlag: string, flags: string) => Promise<string>; | ||
triggerAccess: (appPath: string, teamFlag: string, flags: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
triggerCreate: ({ appPath, teamFlag, flag, orgWorkspaceGrantFlag, options, }: { | ||
@@ -81,12 +93,20 @@ /** path to app */ | ||
localApp?: boolean | undefined; | ||
/** Install app by selecting "Install to a new team" */ | ||
installApp?: boolean | undefined; | ||
/** Whether to run against --slackdev or production */ | ||
qa?: boolean | undefined; | ||
} | undefined; | ||
}) => Promise<string>; | ||
triggerDelete: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
triggerInfo: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
triggerList: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
triggerUpdate: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
triggerDelete: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
triggerInfo: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
triggerList: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
triggerUpdate: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
export default _default; | ||
//# sourceMappingURL=trigger.d.ts.map |
@@ -27,7 +27,7 @@ "use strict"; | ||
*/ | ||
const access = function triggerAccess(appPath, teamFlag, flags) { | ||
const access = function triggerAccess(appPath, teamFlag, flags, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: (breaking change) separate params vs. single-param-object | ||
// TODO: access requires --trigger-id so add that to parameters (breaking change) | ||
const cmd = new cli_process_1.SlackCLIProcess(`trigger access ${flags}`, { team: teamFlag }); | ||
const cmd = new cli_process_1.SlackCLIProcess(`trigger access ${flags}`, { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -52,3 +52,3 @@ const proc = yield cmd.execAsync({ | ||
const appEnvironment = (options === null || options === void 0 ? void 0 : options.localApp) ? 'local' : 'deployed'; | ||
const cmd = new cli_process_1.SlackCLIProcess(`trigger create ${flag}`, { team: teamFlag }, { | ||
const cmd = new cli_process_1.SlackCLIProcess(`trigger create ${flag}`, { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }, { | ||
'--app': appEnvironment, | ||
@@ -76,7 +76,7 @@ '--org-workspace-grant': orgWorkspaceGrantFlag, | ||
*/ | ||
const del = function triggerDelete(appPath, teamFlag, flag) { | ||
const del = function triggerDelete(appPath, teamFlag, flag, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: (breaking change) separate params vs. single-param-object | ||
// TODO: delete requires --trigger-id so add that to parameters (breaking change) | ||
const cmd = new cli_process_1.SlackCLIProcess(`trigger delete ${flag}`, { team: teamFlag }); | ||
const cmd = new cli_process_1.SlackCLIProcess(`trigger delete ${flag}`, { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -101,7 +101,7 @@ const proc = yield cmd.execAsync({ | ||
*/ | ||
const info = function triggerInfo(appPath, teamFlag, flag) { | ||
const info = function triggerInfo(appPath, teamFlag, flag, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: getting trigger info necessitates passing a trigger ID, so that should be exposed in the parameters here | ||
// TODO: (breaking change) separate params vs. single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess(`trigger info ${flag}`, { team: teamFlag }); | ||
const cmd = new cli_process_1.SlackCLIProcess(`trigger info ${flag}`, { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -126,6 +126,6 @@ const proc = yield cmd.execAsync({ | ||
*/ | ||
const list = function triggerList(appPath, teamFlag, flag) { | ||
const list = function triggerList(appPath, teamFlag, flag, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: (breaking change) separate params vs. single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess(`trigger list ${flag}`, { team: teamFlag }); | ||
const cmd = new cli_process_1.SlackCLIProcess(`trigger list ${flag}`, { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -150,6 +150,6 @@ const proc = yield cmd.execAsync({ | ||
*/ | ||
const update = function triggerUpdate(appPath, teamFlag, flag) { | ||
const update = function triggerUpdate(appPath, teamFlag, flag, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// TODO: (breaking change) separate params vs. single-param-object | ||
const cmd = new cli_process_1.SlackCLIProcess(`trigger update ${flag}`, { team: teamFlag }); | ||
const cmd = new cli_process_1.SlackCLIProcess(`trigger update ${flag}`, { team: teamFlag, qa: options === null || options === void 0 ? void 0 : options.qa }); | ||
try { | ||
@@ -156,0 +156,0 @@ const proc = yield cmd.execAsync({ |
@@ -7,3 +7,5 @@ /// <reference types="node" /> | ||
trigger: { | ||
access: (appPath: string, teamFlag: string, flags: string) => Promise<string>; | ||
access: (appPath: string, teamFlag: string, flags: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
create: ({ appPath, teamFlag, flag, orgWorkspaceGrantFlag, options, }: { | ||
@@ -16,9 +18,17 @@ appPath: string; | ||
localApp?: boolean | undefined; | ||
installApp?: boolean | undefined; | ||
qa?: boolean | undefined; | ||
} | undefined; | ||
}) => Promise<string>; | ||
delete: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
info: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
list: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
update: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
delete: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
info: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
list: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
update: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
@@ -29,3 +39,3 @@ /** | ||
*/ | ||
stopSession: ({ appPath, appTeamID, isLocalApp, }: { | ||
stopSession: ({ appPath, appTeamID, isLocalApp, qa, }: { | ||
/** Path to app. If not provided, will not interact with any app */ | ||
@@ -36,4 +46,7 @@ appPath?: string | undefined; | ||
isLocalApp?: boolean | undefined; | ||
qa?: boolean | undefined; | ||
}) => Promise<void>; | ||
triggerAccess: (appPath: string, teamFlag: string, flags: string) => Promise<string>; | ||
triggerAccess: (appPath: string, teamFlag: string, flags: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
triggerCreate: ({ appPath, teamFlag, flag, orgWorkspaceGrantFlag, options, }: { | ||
@@ -46,17 +59,29 @@ appPath: string; | ||
localApp?: boolean | undefined; | ||
installApp?: boolean | undefined; | ||
qa?: boolean | undefined; | ||
} | undefined; | ||
}) => Promise<string>; | ||
triggerDelete: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
triggerInfo: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
triggerList: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
triggerUpdate: (appPath: string, teamFlag: string, flag: string) => Promise<string>; | ||
triggerDelete: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
triggerInfo: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
triggerList: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
triggerUpdate: (appPath: string, teamFlag: string, flag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
platform: { | ||
activity: ({ appPath, teamFlag, flag, localApp, }: { | ||
activity: ({ appPath, teamFlag, flag, localApp, qa, }: { | ||
appPath: string; | ||
/** | ||
* Set of functions to spawn and interact with Slack Platform CLI processes and commands | ||
*/ | ||
teamFlag: string; | ||
flag?: string | undefined; | ||
localApp?: boolean | undefined; | ||
qa?: boolean | undefined; | ||
}) => Promise<string>; | ||
activityTailStart: ({ appPath, teamFlag, stringToWaitFor, localApp, }: { | ||
activityTailStart: ({ appPath, teamFlag, stringToWaitFor, localApp, qa, }: { | ||
appPath: string; | ||
@@ -66,2 +91,3 @@ teamFlag: string; | ||
localApp?: boolean | undefined; | ||
qa?: boolean | undefined; | ||
}) => Promise<import("../utils/types").ShellProcess>; | ||
@@ -72,3 +98,3 @@ activityTailStop: ({ proc, stringToWait, }: { | ||
}) => Promise<string>; | ||
deploy: ({ appPath, teamFlag, hideTriggers, orgWorkspaceGrantFlag, }: { | ||
deploy: ({ appPath, teamFlag, hideTriggers, orgWorkspaceGrantFlag, qa, }: { | ||
appPath: string; | ||
@@ -78,4 +104,5 @@ teamFlag: string; | ||
orgWorkspaceGrantFlag?: string | undefined; | ||
qa?: boolean | undefined; | ||
}) => Promise<string>; | ||
runStart: ({ appPath, teamFlag, cleanup, hideTriggers, orgWorkspaceGrantFlag, }: { | ||
runStart: ({ appPath, teamFlag, cleanup, hideTriggers, orgWorkspaceGrantFlag, qa, }: { | ||
appPath: string; | ||
@@ -86,12 +113,17 @@ teamFlag: string; | ||
orgWorkspaceGrantFlag?: string | undefined; | ||
qa?: boolean | undefined; | ||
}) => Promise<import("../utils/types").ShellProcess>; | ||
runStop: (proc: import("../utils/types").ShellProcess, teamName?: string | undefined) => Promise<void>; | ||
}; | ||
activity: ({ appPath, teamFlag, flag, localApp, }: { | ||
activity: ({ appPath, teamFlag, flag, localApp, qa, }: { | ||
appPath: string; | ||
/** | ||
* Set of functions to spawn and interact with Slack Platform CLI processes and commands | ||
*/ | ||
teamFlag: string; | ||
flag?: string | undefined; | ||
localApp?: boolean | undefined; | ||
qa?: boolean | undefined; | ||
}) => Promise<string>; | ||
activityTailStart: ({ appPath, teamFlag, stringToWaitFor, localApp, }: { | ||
activityTailStart: ({ appPath, teamFlag, stringToWaitFor, localApp, qa, }: { | ||
appPath: string; | ||
@@ -101,2 +133,3 @@ teamFlag: string; | ||
localApp?: boolean | undefined; | ||
qa?: boolean | undefined; | ||
}) => Promise<import("../utils/types").ShellProcess>; | ||
@@ -107,3 +140,3 @@ activityTailStop: ({ proc, stringToWait, }: { | ||
}) => Promise<string>; | ||
deploy: ({ appPath, teamFlag, hideTriggers, orgWorkspaceGrantFlag, }: { | ||
deploy: ({ appPath, teamFlag, hideTriggers, orgWorkspaceGrantFlag, qa, }: { | ||
appPath: string; | ||
@@ -113,4 +146,5 @@ teamFlag: string; | ||
orgWorkspaceGrantFlag?: string | undefined; | ||
qa?: boolean | undefined; | ||
}) => Promise<string>; | ||
runStart: ({ appPath, teamFlag, cleanup, hideTriggers, orgWorkspaceGrantFlag, }: { | ||
runStart: ({ appPath, teamFlag, cleanup, hideTriggers, orgWorkspaceGrantFlag, qa, }: { | ||
appPath: string; | ||
@@ -121,22 +155,47 @@ teamFlag: string; | ||
orgWorkspaceGrantFlag?: string | undefined; | ||
qa?: boolean | undefined; | ||
}) => Promise<import("../utils/types").ShellProcess>; | ||
runStop: (proc: import("../utils/types").ShellProcess, teamName?: string | undefined) => Promise<void>; | ||
manifest: { | ||
validate: (appPath: string) => Promise<string>; | ||
validate: (appPath: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
manifestValidate: (appPath: string) => Promise<string>; | ||
manifestValidate: (appPath: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
function: { | ||
access: (appPath: string, teamFlag: string, flags: string) => Promise<string>; | ||
access: (appPath: string, teamFlag: string, flags: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
functionDistribute: (appPath: string, teamFlag: string, flags: string) => Promise<string>; | ||
functionAccess: (appPath: string, teamFlag: string, flags: string) => Promise<string>; | ||
externalAuth: (appPath: string, teamFlag: string, provider: string, flags: string) => Promise<string>; | ||
functionDistribute: (appPath: string, teamFlag: string, flags: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
functionAccess: (appPath: string, teamFlag: string, flags: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
externalAuth: (appPath: string, teamFlag: string, provider: string, flags: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
env: { | ||
add: (appPath: string, teamFlag: string, secretKey: string, secretValue: string) => Promise<string>; | ||
list: (appPath: string, teamFlag: string) => Promise<string>; | ||
remove: (appPath: string, teamFlag: string, secretKey: string) => Promise<string>; | ||
add: (appPath: string, teamFlag: string, secretKey: string, secretValue: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
list: (appPath: string, teamFlag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
remove: (appPath: string, teamFlag: string, secretKey: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
envAdd: (appPath: string, teamFlag: string, secretKey: string, secretValue: string) => Promise<string>; | ||
envList: (appPath: string, teamFlag: string) => Promise<string>; | ||
envRemove: (appPath: string, teamFlag: string, secretKey: string) => Promise<string>; | ||
envAdd: (appPath: string, teamFlag: string, secretKey: string, secretValue: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
envList: (appPath: string, teamFlag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
envRemove: (appPath: string, teamFlag: string, secretKey: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
createAppFromTemplate: ({ templateString, appName, branchName, shellOpts, }: { | ||
@@ -150,9 +209,21 @@ templateString: string; | ||
collaborators: { | ||
add: (appPath: string, teamFlag: string, collaboratorEmail: string) => Promise<string>; | ||
list: (appPath: string, teamFlag: string) => Promise<string>; | ||
remove: (appPath: string, teamFlag: string, collaboratorEmail: string) => Promise<string>; | ||
add: (appPath: string, teamFlag: string, collaboratorEmail: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
list: (appPath: string, teamFlag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
remove: (appPath: string, teamFlag: string, collaboratorEmail: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
collaboratorsAdd: (appPath: string, teamFlag: string, collaboratorEmail: string) => Promise<string>; | ||
collaboratorsList: (appPath: string, teamFlag: string) => Promise<string>; | ||
collaboratorsRemove: (appPath: string, teamFlag: string, collaboratorEmail: string) => Promise<string>; | ||
collaboratorsAdd: (appPath: string, teamFlag: string, collaboratorEmail: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
collaboratorsList: (appPath: string, teamFlag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
collaboratorsRemove: (appPath: string, teamFlag: string, collaboratorEmail: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
auth: { | ||
@@ -168,6 +239,7 @@ loginNoPrompt: (options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
} | undefined) => Promise<string>; /** Path to app. If not provided, will not interact with any app */ | ||
logout: (options?: { | ||
teamFlag?: string | undefined; | ||
allWorkspaces?: boolean | undefined; | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
@@ -184,6 +256,7 @@ }; | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
} | undefined) => Promise<string>; /** Path to app. If not provided, will not interact with any app */ | ||
logout: (options?: { | ||
teamFlag?: string | undefined; | ||
allWorkspaces?: boolean | undefined; | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
@@ -193,12 +266,22 @@ app: { | ||
isLocalApp?: boolean | undefined; | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
install: (appPath: string, teamFlag: string) => Promise<string>; | ||
list: (appPath: string) => Promise<string>; | ||
install: (appPath: string, teamFlag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
list: (appPath: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
workspaceDelete: (appPath: string, teamFlag: string, options?: { | ||
isLocalApp?: boolean | undefined; | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
workspaceInstall: (appPath: string, teamFlag: string) => Promise<string>; | ||
workspaceList: (appPath: string) => Promise<string>; | ||
workspaceInstall: (appPath: string, teamFlag: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
workspaceList: (appPath: string, options?: { | ||
qa?: boolean | undefined; | ||
} | undefined) => Promise<string>; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -83,7 +83,7 @@ "use strict"; | ||
*/ | ||
stopSession: function stopSession({ appPath, appTeamID, isLocalApp, }) { | ||
stopSession: function stopSession({ appPath, appTeamID, isLocalApp, qa, }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (appPath) { | ||
// List instances of app installation if app path provided | ||
const installedAppsOutput = yield exports.SlackCLI.app.list(appPath); | ||
const installedAppsOutput = yield exports.SlackCLI.app.list(appPath, { qa }); | ||
// If app is installed | ||
@@ -93,3 +93,3 @@ if (!installedAppsOutput.includes('This project has no apps')) { | ||
try { | ||
yield exports.SlackCLI.app.delete(appPath, appTeamID, { isLocalApp }); | ||
yield exports.SlackCLI.app.delete(appPath, appTeamID, { isLocalApp, qa }); | ||
} | ||
@@ -108,3 +108,3 @@ catch (error) { | ||
try { | ||
yield exports.SlackCLI.logout({ allWorkspaces: true }); | ||
yield exports.SlackCLI.logout({ allWorkspaces: true, qa }); | ||
} | ||
@@ -111,0 +111,0 @@ catch (error) { |
export { SlackCLI } from './cli'; | ||
export { SlackCLIProcess } from './cli/cli-process'; | ||
export { SlackTracerId, SlackProduct } from './utils/constants'; | ||
export { shell } from './cli/shell'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SlackProduct = exports.SlackTracerId = exports.SlackCLI = void 0; | ||
exports.shell = exports.SlackProduct = exports.SlackTracerId = exports.SlackCLIProcess = exports.SlackCLI = void 0; | ||
var cli_1 = require("./cli"); | ||
Object.defineProperty(exports, "SlackCLI", { enumerable: true, get: function () { return cli_1.SlackCLI; } }); | ||
var cli_process_1 = require("./cli/cli-process"); | ||
Object.defineProperty(exports, "SlackCLIProcess", { enumerable: true, get: function () { return cli_process_1.SlackCLIProcess; } }); | ||
var constants_1 = require("./utils/constants"); | ||
Object.defineProperty(exports, "SlackTracerId", { enumerable: true, get: function () { return constants_1.SlackTracerId; } }); | ||
Object.defineProperty(exports, "SlackProduct", { enumerable: true, get: function () { return constants_1.SlackProduct; } }); | ||
var shell_1 = require("./cli/shell"); | ||
Object.defineProperty(exports, "shell", { enumerable: true, get: function () { return shell_1.shell; } }); | ||
// Check for cli binary path | ||
if (!process.env.SLACK_CLI_PATH) { | ||
throw new Error('SlackCliLib: SLACK_CLI_PATH is not set'); | ||
throw new Error('Environment variable `SLACK_CLI_PATH` is not set!'); | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -15,3 +15,13 @@ /** | ||
SLACK_TRACE_AUTH_LOGIN_SUCCESS: string; | ||
SLACK_TRACE_AUTH_LOGOUT_START: string; | ||
SLACK_TRACE_AUTH_LOGOUT_SUCCESS: string; | ||
SLACK_TRACE_AUTH_REVOKE_START: string; | ||
SLACK_TRACE_AUTH_REVOKE_SUCCESS: string; | ||
SLACK_TRACE_COLLABORATOR_ADD_COLLABORATOR: string; | ||
SLACK_TRACE_COLLABORATOR_ADD_SUCCESS: string; | ||
SLACK_TRACE_COLLABORATOR_LIST_COLLABORATOR: string; | ||
SLACK_TRACE_COLLABORATOR_LIST_COUNT: string; | ||
SLACK_TRACE_COLLABORATOR_LIST_SUCCESS: string; | ||
SLACK_TRACE_COLLABORATOR_REMOVE_COLLABORATOR: string; | ||
SLACK_TRACE_COLLABORATOR_REMOVE_SUCCESS: string; | ||
SLACK_TRACE_CREATE_DEPENDENCIES_SUCCESS: string; | ||
@@ -22,6 +32,6 @@ SLACK_TRACE_CREATE_ERROR: string; | ||
SLACK_TRACE_CREATE_SUCCESS: string; | ||
SLACK_TRACE_CREATE_TEMPLATE_OPTIONS: string; | ||
SLACK_TRACE_DATASTORE_COUNT_DATASTORE: string; | ||
SLACK_TRACE_DATASTORE_COUNT_SUCCESS: string; | ||
SLACK_TRACE_DATASTORE_COUNT_TOTAL: string; | ||
SLACK_TRACE_CREATE_TEMPLATE_OPTIONS: string; | ||
SLACK_TRACE_FEEDBACK_MESSAGE: string; | ||
@@ -28,0 +38,0 @@ SLACK_TRACE_MANIFEST_VALIDATE_SUCCESS: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.timeouts = exports.keyboardPress = exports.SlackProduct = exports.SlackTracerId = void 0; | ||
// TODO: would be nice to add JSDocs for each of these to describe when they appear in CLI output | ||
/** | ||
@@ -18,3 +19,13 @@ * This file should be kept up to date with the source of truth in the Slack CLI repo | ||
SLACK_TRACE_AUTH_LOGIN_SUCCESS: 'SLACK_TRACE_AUTH_LOGIN_SUCCESS', | ||
SLACK_TRACE_AUTH_LOGOUT_START: 'SLACK_TRACE_AUTH_LOGOUT_START', | ||
SLACK_TRACE_AUTH_LOGOUT_SUCCESS: 'SLACK_TRACE_AUTH_LOGOUT_SUCCESS', | ||
SLACK_TRACE_AUTH_REVOKE_START: 'SLACK_TRACE_AUTH_REVOKE_START', | ||
SLACK_TRACE_AUTH_REVOKE_SUCCESS: 'SLACK_TRACE_AUTH_REVOKE_SUCCESS', | ||
SLACK_TRACE_COLLABORATOR_ADD_COLLABORATOR: 'SLACK_TRACE_COLLABORATOR_ADD_COLLABORATOR', | ||
SLACK_TRACE_COLLABORATOR_ADD_SUCCESS: 'SLACK_TRACE_COLLABORATOR_ADD_SUCCESS', | ||
SLACK_TRACE_COLLABORATOR_LIST_COLLABORATOR: 'SLACK_TRACE_COLLABORATOR_LIST_COLLABORATOR', | ||
SLACK_TRACE_COLLABORATOR_LIST_COUNT: 'SLACK_TRACE_COLLABORATOR_LIST_COUNT', | ||
SLACK_TRACE_COLLABORATOR_LIST_SUCCESS: 'SLACK_TRACE_COLLABORATOR_LIST_SUCCESS', | ||
SLACK_TRACE_COLLABORATOR_REMOVE_COLLABORATOR: 'SLACK_TRACE_COLLABORATOR_REMOVE_COLLABORATOR', | ||
SLACK_TRACE_COLLABORATOR_REMOVE_SUCCESS: 'SLACK_TRACE_COLLABORATOR_REMOVE_SUCCESS', | ||
SLACK_TRACE_CREATE_DEPENDENCIES_SUCCESS: 'SLACK_TRACE_CREATE_DEPENDENCIES_SUCCESS', | ||
@@ -25,6 +36,6 @@ SLACK_TRACE_CREATE_ERROR: 'SLACK_TRACE_CREATE_ERROR', | ||
SLACK_TRACE_CREATE_SUCCESS: 'SLACK_TRACE_CREATE_SUCCESS', | ||
SLACK_TRACE_CREATE_TEMPLATE_OPTIONS: 'SLACK_TRACE_CREATE_TEMPLATE_OPTIONS', | ||
SLACK_TRACE_DATASTORE_COUNT_DATASTORE: 'SLACK_TRACE_DATASTORE_COUNT_DATASTORE', | ||
SLACK_TRACE_DATASTORE_COUNT_SUCCESS: 'SLACK_TRACE_DATASTORE_COUNT_SUCCESS', | ||
SLACK_TRACE_DATASTORE_COUNT_TOTAL: 'SLACK_TRACE_DATASTORE_COUNT_TOTAL', | ||
SLACK_TRACE_CREATE_TEMPLATE_OPTIONS: 'SLACK_TRACE_CREATE_TEMPLATE_OPTIONS', | ||
SLACK_TRACE_FEEDBACK_MESSAGE: 'SLACK_TRACE_FEEDBACK_MESSAGE', | ||
@@ -31,0 +42,0 @@ SLACK_TRACE_MANIFEST_VALIDATE_SUCCESS: 'SLACK_TRACE_MANIFEST_VALIDATE_SUCCESS', |
{ | ||
"name": "@slack/cli-test", | ||
"version": "0.1.0-cli.2.25.0", | ||
"version": "0.2.0+cli.2.25.0", | ||
"description": "Node.js bindings for the Slack CLI for use in automated testing", | ||
@@ -5,0 +5,0 @@ "author": "Salesforce, Inc.", |
@@ -37,3 +37,4 @@ # @slack/cli-test | ||
- methods are named after [Slack CLI commands][commands], e.g. `SlackCLI.deploy()` | ||
2. `SlackTracerId` - trace IDs to verify CLI command output | ||
2. `SlackCLIProcess` - a class that can be instantiated that exposes the ability to run arbitrary commands, with optional global flags as well as command-specific flags. | ||
3. `SlackTracerId` - trace IDs to verify CLI command output | ||
- see available exported IDs on `SlackTracerId` object | ||
@@ -52,3 +53,3 @@ - to enable the CLI to show this output, any CLI commands executed by this library are invoked with the environment variable set: `SLACK_TEST_TRACE=true` | ||
// Submit auth ticket in Slack UI | ||
const challenge = await this.submitCLIAuthTicket( | ||
const challenge = await submitCLIAuthTicket( | ||
loginUrlToMyWorkspace, | ||
@@ -55,0 +56,0 @@ loginChallengeResult.authTicketSlashCommand |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
175675
2690
75
3