Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qawolf/ci-sdk

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qawolf/ci-sdk - npm Package Compare versions

Comparing version 0.15.3 to 0.15.4

4

dist/cjs/lib/api/ci-greenlight.d.ts

@@ -1,3 +0,3 @@

import { type ApiConfig } from "../api-types.js";
import { type SdkDependencies } from "../sdk/dependencies.js";
import { type ApiConfig } from "../api-types";
import { type SdkDependencies } from "../sdk/dependencies";
export type CiGreenlightBugDetails = {

@@ -4,0 +4,0 @@ /**

@@ -1,3 +0,3 @@

import { type ApiConfig } from "../api-types.js";
import { type SdkDependencies } from "../sdk/dependencies.js";
import { type ApiConfig } from "../api-types";
import { type SdkDependencies } from "../sdk/dependencies";
/**

@@ -4,0 +4,0 @@ * Refer to our official documentation for more information:

@@ -1,4 +0,4 @@

import { type DeployConfig } from "../../api/deploy.js";
import { type ApiConfig } from "../../api-types.js";
import { type SdkDependencies } from "../dependencies.js";
import { type DeployConfig } from "../../api/deploy";
import { type ApiConfig } from "../../api-types";
import { type SdkDependencies } from "../dependencies";
export type AttemptDeployFailedReason = "no-matched-trigger" | "run-could-not-be-created";

@@ -5,0 +5,0 @@ export type AttemptDeployHttpAbortReason = "4XX-client-error" | "401-unauthorized" | "403-forbidden" | "5XX-server-error";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.attemptNotifyDeploy = void 0;
const deploy_js_1 = require("../../api/deploy.js");
const utils_js_1 = require("../../utils.js");
const deploy_1 = require("../../api/deploy");
const utils_1 = require("../../utils");
async function attemptNotifyDeploy(deps, apiConfig, config) {
const { log } = deps;
const responseState = await (0, deploy_js_1.postDeploySuccess)(apiConfig, config, deps);
const responseState = await (0, deploy_1.postDeploySuccess)(apiConfig, config, deps);
if (!responseState.success) {

@@ -32,3 +32,3 @@ if (responseState.failureReason === "no-matched-trigger") {

else {
(0, utils_js_1.assertType)(responseState);
(0, utils_1.assertType)(responseState);
}

@@ -35,0 +35,0 @@ if (responseState.failureReason === "network-error") {

@@ -1,4 +0,4 @@

import { type CiGreenlightStatus } from "../../api/ci-greenlight.js";
import { type ApiConfig } from "../../api-types.js";
import { type SdkDependencies } from "../dependencies.js";
import { type CiGreenlightStatus } from "../../api/ci-greenlight";
import { type ApiConfig } from "../../api-types";
import { type SdkDependencies } from "../dependencies";
export type PollCiGreenlightPollConfig = {

@@ -5,0 +5,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pollCiGreenlightStatus = void 0;
const ci_greenlight_js_1 = require("../../api/ci-greenlight.js");
const utils_js_1 = require("../../utils.js");
const ci_greenlight_1 = require("../../api/ci-greenlight");
const utils_1 = require("../../utils");
// If you change these values, make sure you update the JSDoc

@@ -23,3 +23,3 @@ // comments in the PollConfig type.

while (!(hasTimedOut = Date.now() - startedAt > pollTimeout)) {
const responseState = await (0, ci_greenlight_js_1.fetchCiGreenlightStatus)(apiConfig, {
const responseState = await (0, ci_greenlight_1.fetchCiGreenlightStatus)(apiConfig, {
runId,

@@ -54,3 +54,3 @@ }, deps);

else
(0, utils_js_1.assertType)(responseState);
(0, utils_1.assertType)(responseState);
return {

@@ -70,3 +70,3 @@ abortReason,

log.warn(`❌ Server error${retryLabel}`);
await (0, utils_js_1.sleep)(retryInterval);
await (0, utils_1.sleep)(retryInterval);
continue;

@@ -107,3 +107,3 @@ }

log.info(`✅ Run passed and no blocking bugs found${nonBlockingBugsCount > 0
? ` and ${nonBlockingBugsCount} non-blocking bug${(0, utils_js_1.pluralize)(nonBlockingBugsCount)} found`
? ` and ${nonBlockingBugsCount} non-blocking bug${(0, utils_1.pluralize)(nonBlockingBugsCount)} found`
: ""}.\n${urlInfo}`);

@@ -113,4 +113,4 @@ return { greenlightStatus, outcome: "success" };

else {
log.warn(`❌ Run failed and ${blockingBugsCount} blocking bug${(0, utils_js_1.pluralize)(blockingBugsCount)} found${nonBlockingBugsCount
? ` and ${nonBlockingBugsCount} non-blocking bug${(0, utils_js_1.pluralize)(nonBlockingBugsCount)}`
log.warn(`❌ Run failed and ${blockingBugsCount} blocking bug${(0, utils_1.pluralize)(blockingBugsCount)} found${nonBlockingBugsCount
? ` and ${nonBlockingBugsCount} non-blocking bug${(0, utils_1.pluralize)(nonBlockingBugsCount)}`
: ""}.\nSee ${relevantRunWithBugsUrl}\n` +

@@ -141,10 +141,10 @@ "You may review the priority of certain bugs to mark these non-blocking and retry the job.\n" +

log.info(`⏳ Run is in progress... ${urlInfo}`);
await (0, utils_js_1.sleep)(runInProgressInterval);
await (0, utils_1.sleep)(runInProgressInterval);
}
else if (runStage === "underReview") {
log.info(`🕵️ Run is under review... ${urlInfo}`);
await (0, utils_js_1.sleep)(runUnderReviewInterval);
await (0, utils_1.sleep)(runUnderReviewInterval);
}
else {
(0, utils_js_1.assertType)(runStage);
(0, utils_1.assertType)(runStage);
throw new Error(`Unexpected run stage: ${runStage}`);

@@ -151,0 +151,0 @@ }

@@ -1,3 +0,3 @@

import { type ApiConfig } from "../../../api-types.js";
import { type SdkDependencies } from "../../dependencies.js";
import { type ApiConfig } from "../../../api-types";
import { type SdkDependencies } from "../../dependencies";
export interface TestPreviewParams {

@@ -19,3 +19,3 @@ baseEnvironmentId: string | undefined;

}
export declare function testPreview(deps: SdkDependencies, apiConfig: ApiConfig, config: TestPreviewParams): Promise<import("../attempt-deploy.js").NotifyDeployStatus>;
export declare function testPreview(deps: SdkDependencies, apiConfig: ApiConfig, config: TestPreviewParams): Promise<import("../attempt-deploy").NotifyDeployStatus>;
export declare function removeEnvironment(deps: SdkDependencies, apiConfig: ApiConfig, config: {

@@ -22,0 +22,0 @@ branch: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeEnvironment = exports.testPreview = void 0;
const attempt_deploy_js_1 = require("../attempt-deploy.js");
const constants_js_1 = require("./constants.js");
const createEnvironmentAction_js_1 = require("./createEnvironmentAction.js");
const deleteEnvironmentAction_js_1 = require("./deleteEnvironmentAction.js");
const attempt_deploy_1 = require("../attempt-deploy");
const constants_1 = require("./constants");
const createEnvironmentAction_1 = require("./createEnvironmentAction");
const deleteEnvironmentAction_1 = require("./deleteEnvironmentAction");
async function testPreview(deps, apiConfig, config) {
await (0, createEnvironmentAction_js_1.createEnvironmentAction)(deps, apiConfig, {
await (0, createEnvironmentAction_1.createEnvironmentAction)(deps, apiConfig, {
baseEnvironmentId: config.baseEnvironmentId,

@@ -18,6 +18,6 @@ branch: config.branch,

});
return (0, attempt_deploy_js_1.attemptNotifyDeploy)(deps, apiConfig, {
return (0, attempt_deploy_1.attemptNotifyDeploy)(deps, apiConfig, {
branch: config.branch,
commitUrl: config.commitUrl,
deploymentType: constants_js_1.previewDeploymentType,
deploymentType: constants_1.previewDeploymentType,
deploymentUrl: config.deploymentUrl,

@@ -30,5 +30,5 @@ sha: config.sha,

async function removeEnvironment(deps, apiConfig, config) {
await (0, deleteEnvironmentAction_js_1.deleteEnvironmentAction)(deps, apiConfig, config);
await (0, deleteEnvironmentAction_1.deleteEnvironmentAction)(deps, apiConfig, config);
}
exports.removeEnvironment = removeEnvironment;
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { type SdkDependencies } from "./dependencies.js";
import { type SdkDependencies } from "./dependencies";
export declare function makeQaWolfSdk({ apiKey, serviceBase, }: {

@@ -6,8 +6,8 @@ apiKey: string;

}, { log, fetch, }?: Partial<SdkDependencies>): {
attemptNotifyDeploy: (config: Partial<import("../api/deploy.js").DeployConfig>) => Promise<import("./domain/attempt-deploy.js").NotifyDeployStatus>;
attemptNotifyDeploy: (config: Partial<import("../api").DeployConfig>) => Promise<import("./domain/attempt-deploy").NotifyDeployStatus>;
experimental_removeEnvironment: (config: {
branch: string;
}) => Promise<void>;
experimental_testPreview: (config: import("./domain/previewTesting/index.js").TestPreviewParams) => Promise<import("./domain/attempt-deploy.js").NotifyDeployStatus>;
pollCiGreenlightStatus: (args_0: import("./domain/poll-ci-greenlight.js").PollCiGreenlightParams) => Promise<import("./domain/poll-ci-greenlight.js").PollCiGreenlightStatus>;
experimental_testPreview: (config: import("./domain/previewTesting/index.js").TestPreviewParams) => Promise<import("./domain/attempt-deploy").NotifyDeployStatus>;
pollCiGreenlightStatus: (args_0: import("./domain/poll-ci-greenlight").PollCiGreenlightParams) => Promise<import("./domain/poll-ci-greenlight").PollCiGreenlightStatus>;
};

@@ -14,0 +14,0 @@ export type * from "./domain/poll-ci-greenlight.js";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeQaWolfSdk = void 0;
const attempt_deploy_js_1 = require("./domain/attempt-deploy.js");
const poll_ci_greenlight_js_1 = require("./domain/poll-ci-greenlight.js");
const attempt_deploy_1 = require("./domain/attempt-deploy");
const poll_ci_greenlight_1 = require("./domain/poll-ci-greenlight");
const index_js_1 = require("./domain/previewTesting/index.js");

@@ -12,6 +12,6 @@ const default_js_1 = require("./log/default.js");

return {
attemptNotifyDeploy: attempt_deploy_js_1.attemptNotifyDeploy.bind(null, deps, apiConfig),
attemptNotifyDeploy: attempt_deploy_1.attemptNotifyDeploy.bind(null, deps, apiConfig),
experimental_removeEnvironment: index_js_1.removeEnvironment.bind(null, deps, apiConfig),
experimental_testPreview: index_js_1.testPreview.bind(null, deps, apiConfig),
pollCiGreenlightStatus: poll_ci_greenlight_js_1.pollCiGreenlightStatus.bind(null, deps, apiConfig),
pollCiGreenlightStatus: poll_ci_greenlight_1.pollCiGreenlightStatus.bind(null, deps, apiConfig),
};

@@ -18,0 +18,0 @@ }

@@ -1,3 +0,3 @@

import { type LogDriver } from "../dependencies.js";
import { type LogDriver } from "../dependencies";
export declare const defaultLogDriver: LogDriver;
//# sourceMappingURL=default.d.ts.map

@@ -1,2 +0,2 @@

import { type CiGreenlightStatusBase } from "../lib/api/ci-greenlight.js";
import { type CiGreenlightStatusBase } from "../lib/api/ci-greenlight";
export declare function makeQaWolfSdkForTest({ apiKey }: {

@@ -7,8 +7,8 @@ apiKey: string;

sdk: {
attemptNotifyDeploy: (config: Partial<import("../index.js").DeployConfig>) => Promise<import("../lib/sdk/index.js").NotifyDeployStatus>;
attemptNotifyDeploy: (config: Partial<import("..").DeployConfig>) => Promise<import("../lib/sdk/index").NotifyDeployStatus>;
experimental_removeEnvironment: (config: {
branch: string;
}) => Promise<void>;
experimental_testPreview: (config: import("../lib/sdk/domain/previewTesting/index.js").TestPreviewParams) => Promise<import("../lib/sdk/index.js").NotifyDeployStatus>;
pollCiGreenlightStatus: (args_0: import("../lib/sdk/index.js").PollCiGreenlightParams) => Promise<import("../lib/sdk/index.js").PollCiGreenlightStatus>;
experimental_testPreview: (config: import("../lib/sdk/domain/previewTesting").TestPreviewParams) => Promise<import("../lib/sdk/index").NotifyDeployStatus>;
pollCiGreenlightStatus: (args_0: import("../lib/sdk/index").PollCiGreenlightParams) => Promise<import("../lib/sdk/index").PollCiGreenlightStatus>;
};

@@ -15,0 +15,0 @@ };

@@ -5,3 +5,3 @@ "use strict";

const globals_1 = require("@jest/globals");
const index_js_1 = require("../lib/sdk/index.js");
const index_1 = require("../lib/sdk/index");
const localDummyServiceBase = "http://localhost:80/";

@@ -13,3 +13,3 @@ function makeQaWolfSdkForTest({ apiKey }) {

fetch,
sdk: (0, index_js_1.makeQaWolfSdk)({
sdk: (0, index_1.makeQaWolfSdk)({
apiKey,

@@ -16,0 +16,0 @@ serviceBase: localDummyServiceBase,

@@ -1,3 +0,3 @@

import { type ApiConfig } from "../api-types.js";
import { type SdkDependencies } from "../sdk/dependencies.js";
import { type ApiConfig } from "../api-types";
import { type SdkDependencies } from "../sdk/dependencies";
export type CiGreenlightBugDetails = {

@@ -4,0 +4,0 @@ /**

@@ -1,3 +0,3 @@

import { type ApiConfig } from "../api-types.js";
import { type SdkDependencies } from "../sdk/dependencies.js";
import { type ApiConfig } from "../api-types";
import { type SdkDependencies } from "../sdk/dependencies";
/**

@@ -4,0 +4,0 @@ * Refer to our official documentation for more information:

@@ -1,4 +0,4 @@

import { type DeployConfig } from "../../api/deploy.js";
import { type ApiConfig } from "../../api-types.js";
import { type SdkDependencies } from "../dependencies.js";
import { type DeployConfig } from "../../api/deploy";
import { type ApiConfig } from "../../api-types";
import { type SdkDependencies } from "../dependencies";
export type AttemptDeployFailedReason = "no-matched-trigger" | "run-could-not-be-created";

@@ -5,0 +5,0 @@ export type AttemptDeployHttpAbortReason = "4XX-client-error" | "401-unauthorized" | "403-forbidden" | "5XX-server-error";

@@ -1,4 +0,4 @@

import { type CiGreenlightStatus } from "../../api/ci-greenlight.js";
import { type ApiConfig } from "../../api-types.js";
import { type SdkDependencies } from "../dependencies.js";
import { type CiGreenlightStatus } from "../../api/ci-greenlight";
import { type ApiConfig } from "../../api-types";
import { type SdkDependencies } from "../dependencies";
export type PollCiGreenlightPollConfig = {

@@ -5,0 +5,0 @@ /**

@@ -1,7 +0,7 @@

import { createEnvironmentVariables } from "./createEnvironmentVariables";
import { findOrCreateEnvironment } from "./findOrCreateEnvironment";
import { findOrCreateTrigger } from "./findOrCreateTrigger";
import { findRepositoryIdByName } from "./findRepositoryIdByName";
import { getEnvironmentVariablesFromEnvironment } from "./getEnvironmentVariablesFromEnvironment";
import { getTagsFromGenericTriggerInEnvironment } from "./getTagsFromEnvironment";
import { createEnvironmentVariables } from "./createEnvironmentVariables.js";
import { findOrCreateEnvironment } from "./findOrCreateEnvironment.js";
import { findOrCreateTrigger } from "./findOrCreateTrigger.js";
import { findRepositoryIdByName } from "./findRepositoryIdByName.js";
import { getEnvironmentVariablesFromEnvironment } from "./getEnvironmentVariablesFromEnvironment.js";
import { getTagsFromGenericTriggerInEnvironment } from "./getTagsFromEnvironment.js";
export const createEnvironmentAction = async (deps, apiConfig, { branch, headRepoFullName, deploymentUrl, qaWolfTeamId, pr, variables, baseEnvironmentId, }) => {

@@ -8,0 +8,0 @@ deps.log.info("Creating environment for pull request...");

@@ -1,2 +0,2 @@

import { qawolfGraphQLEndpoint } from "./constants";
import { qawolfGraphQLEndpoint } from "./constants.js";
export async function createEnvironmentVariables(deps, apiConfig, { environmentId, variables, }) {

@@ -3,0 +3,0 @@ const environmentVariableRequests = Object.keys(variables).map(async (key) => {

@@ -1,2 +0,2 @@

import { qawolfGraphQLEndpoint } from "./constants";
import { qawolfGraphQLEndpoint } from "./constants.js";
export async function deleteEnvironment(deps, apiConfig, { environmentId, }) {

@@ -3,0 +3,0 @@ await deps.fetch(qawolfGraphQLEndpoint, {

@@ -1,3 +0,3 @@

import { deleteEnvironment } from "./deleteEnvironment";
import { getEnvironmentIdForBranch } from "./getEnvironmentIdForBranch";
import { deleteEnvironment } from "./deleteEnvironment.js";
import { getEnvironmentIdForBranch } from "./getEnvironmentIdForBranch.js";
export const deleteEnvironmentAction = async (deps, apiConfig, { branch, }) => {

@@ -4,0 +4,0 @@ deps.log.info("Retrieving environment ID for deletion...");

@@ -1,2 +0,2 @@

import { qawolfGraphQLEndpoint } from "./constants";
import { qawolfGraphQLEndpoint } from "./constants.js";
export async function findOrCreateEnvironment(deps, apiConfig, { branch, pr, qaWolfTeamId, baseEnvironmentId, }) {

@@ -3,0 +3,0 @@ const retrievalResponse = await deps.fetch(qawolfGraphQLEndpoint, {

@@ -1,2 +0,2 @@

import { previewDeploymentType, qawolfGraphQLEndpoint } from "./constants";
import { previewDeploymentType, qawolfGraphQLEndpoint } from "./constants.js";
export async function findOrCreateTrigger(deps, apiConfig, args) {

@@ -3,0 +3,0 @@ const { branch, environmentId, pr, repositoryId, qaWolfTeamId, tags } = args;

@@ -1,2 +0,2 @@

import { qawolfGraphQLEndpoint } from "./constants";
import { qawolfGraphQLEndpoint } from "./constants.js";
export async function findRepositoryIdByName(deps, apiConfig, { headRepoFullName, }) {

@@ -3,0 +3,0 @@ const response = await deps.fetch(qawolfGraphQLEndpoint, {

@@ -1,2 +0,2 @@

import { qawolfGraphQLEndpoint } from "./constants";
import { qawolfGraphQLEndpoint } from "./constants.js";
export async function getEnvironmentIdForBranch(deps, apiConfig, branch) {

@@ -3,0 +3,0 @@ const response = await deps.fetch(qawolfGraphQLEndpoint, {

@@ -1,2 +0,2 @@

import { qawolfGraphQLEndpoint } from "./constants";
import { qawolfGraphQLEndpoint } from "./constants.js";
export async function getEnvironmentVariablesFromEnvironment(deps, apiConfig, { environmentId, }) {

@@ -3,0 +3,0 @@ const retrievalResponse = await deps.fetch(qawolfGraphQLEndpoint, {

@@ -1,2 +0,2 @@

import { qawolfGraphQLEndpoint } from "./constants";
import { qawolfGraphQLEndpoint } from "./constants.js";
export async function getTagsFromGenericTriggerInEnvironment(deps, apiConfig, { environmentId, }) {

@@ -3,0 +3,0 @@ const retrievalResponse = await deps.fetch(qawolfGraphQLEndpoint, {

@@ -1,3 +0,3 @@

import { type ApiConfig } from "../../../api-types.js";
import { type SdkDependencies } from "../../dependencies.js";
import { type ApiConfig } from "../../../api-types";
import { type SdkDependencies } from "../../dependencies";
export interface TestPreviewParams {

@@ -19,3 +19,3 @@ baseEnvironmentId: string | undefined;

}
export declare function testPreview(deps: SdkDependencies, apiConfig: ApiConfig, config: TestPreviewParams): Promise<import("../attempt-deploy.js").NotifyDeployStatus>;
export declare function testPreview(deps: SdkDependencies, apiConfig: ApiConfig, config: TestPreviewParams): Promise<import("../attempt-deploy").NotifyDeployStatus>;
export declare function removeEnvironment(deps: SdkDependencies, apiConfig: ApiConfig, config: {

@@ -22,0 +22,0 @@ branch: string;

@@ -1,2 +0,2 @@

import { type SdkDependencies } from "./dependencies.js";
import { type SdkDependencies } from "./dependencies";
export declare function makeQaWolfSdk({ apiKey, serviceBase, }: {

@@ -6,8 +6,8 @@ apiKey: string;

}, { log, fetch, }?: Partial<SdkDependencies>): {
attemptNotifyDeploy: (config: Partial<import("../api/deploy.js").DeployConfig>) => Promise<import("./domain/attempt-deploy.js").NotifyDeployStatus>;
attemptNotifyDeploy: (config: Partial<import("../api").DeployConfig>) => Promise<import("./domain/attempt-deploy").NotifyDeployStatus>;
experimental_removeEnvironment: (config: {
branch: string;
}) => Promise<void>;
experimental_testPreview: (config: import("./domain/previewTesting/index.js").TestPreviewParams) => Promise<import("./domain/attempt-deploy.js").NotifyDeployStatus>;
pollCiGreenlightStatus: (args_0: import("./domain/poll-ci-greenlight.js").PollCiGreenlightParams) => Promise<import("./domain/poll-ci-greenlight.js").PollCiGreenlightStatus>;
experimental_testPreview: (config: import("./domain/previewTesting/index.js").TestPreviewParams) => Promise<import("./domain/attempt-deploy").NotifyDeployStatus>;
pollCiGreenlightStatus: (args_0: import("./domain/poll-ci-greenlight").PollCiGreenlightParams) => Promise<import("./domain/poll-ci-greenlight").PollCiGreenlightStatus>;
};

@@ -14,0 +14,0 @@ export type * from "./domain/poll-ci-greenlight.js";

@@ -1,3 +0,3 @@

import { type LogDriver } from "../dependencies.js";
import { type LogDriver } from "../dependencies";
export declare const defaultLogDriver: LogDriver;
//# sourceMappingURL=default.d.ts.map

@@ -1,2 +0,2 @@

import { type CiGreenlightStatusBase } from "../lib/api/ci-greenlight.js";
import { type CiGreenlightStatusBase } from "../lib/api/ci-greenlight";
export declare function makeQaWolfSdkForTest({ apiKey }: {

@@ -7,8 +7,8 @@ apiKey: string;

sdk: {
attemptNotifyDeploy: (config: Partial<import("../index.js").DeployConfig>) => Promise<import("../lib/sdk/index.js").NotifyDeployStatus>;
attemptNotifyDeploy: (config: Partial<import("..").DeployConfig>) => Promise<import("../lib/sdk/index").NotifyDeployStatus>;
experimental_removeEnvironment: (config: {
branch: string;
}) => Promise<void>;
experimental_testPreview: (config: import("../lib/sdk/domain/previewTesting/index.js").TestPreviewParams) => Promise<import("../lib/sdk/index.js").NotifyDeployStatus>;
pollCiGreenlightStatus: (args_0: import("../lib/sdk/index.js").PollCiGreenlightParams) => Promise<import("../lib/sdk/index.js").PollCiGreenlightStatus>;
experimental_testPreview: (config: import("../lib/sdk/domain/previewTesting").TestPreviewParams) => Promise<import("../lib/sdk/index").NotifyDeployStatus>;
pollCiGreenlightStatus: (args_0: import("../lib/sdk/index").PollCiGreenlightParams) => Promise<import("../lib/sdk/index").PollCiGreenlightStatus>;
};

@@ -15,0 +15,0 @@ };

@@ -1,3 +0,3 @@

import { type ApiConfig } from "../api-types.js";
import { type SdkDependencies } from "../sdk/dependencies.js";
import { type ApiConfig } from "../api-types";
import { type SdkDependencies } from "../sdk/dependencies";
export type CiGreenlightBugDetails = {

@@ -4,0 +4,0 @@ /**

@@ -1,3 +0,3 @@

import { type ApiConfig } from "../api-types.js";
import { type SdkDependencies } from "../sdk/dependencies.js";
import { type ApiConfig } from "../api-types";
import { type SdkDependencies } from "../sdk/dependencies";
/**

@@ -4,0 +4,0 @@ * Refer to our official documentation for more information:

@@ -1,4 +0,4 @@

import { type DeployConfig } from "../../api/deploy.js";
import { type ApiConfig } from "../../api-types.js";
import { type SdkDependencies } from "../dependencies.js";
import { type DeployConfig } from "../../api/deploy";
import { type ApiConfig } from "../../api-types";
import { type SdkDependencies } from "../dependencies";
export type AttemptDeployFailedReason = "no-matched-trigger" | "run-could-not-be-created";

@@ -5,0 +5,0 @@ export type AttemptDeployHttpAbortReason = "4XX-client-error" | "401-unauthorized" | "403-forbidden" | "5XX-server-error";

@@ -1,4 +0,4 @@

import { type CiGreenlightStatus } from "../../api/ci-greenlight.js";
import { type ApiConfig } from "../../api-types.js";
import { type SdkDependencies } from "../dependencies.js";
import { type CiGreenlightStatus } from "../../api/ci-greenlight";
import { type ApiConfig } from "../../api-types";
import { type SdkDependencies } from "../dependencies";
export type PollCiGreenlightPollConfig = {

@@ -5,0 +5,0 @@ /**

@@ -1,3 +0,3 @@

import { type ApiConfig } from "../../../api-types.js";
import { type SdkDependencies } from "../../dependencies.js";
import { type ApiConfig } from "../../../api-types";
import { type SdkDependencies } from "../../dependencies";
export interface TestPreviewParams {

@@ -19,3 +19,3 @@ baseEnvironmentId: string | undefined;

}
export declare function testPreview(deps: SdkDependencies, apiConfig: ApiConfig, config: TestPreviewParams): Promise<import("../attempt-deploy.js").NotifyDeployStatus>;
export declare function testPreview(deps: SdkDependencies, apiConfig: ApiConfig, config: TestPreviewParams): Promise<import("../attempt-deploy").NotifyDeployStatus>;
export declare function removeEnvironment(deps: SdkDependencies, apiConfig: ApiConfig, config: {

@@ -22,0 +22,0 @@ branch: string;

@@ -1,2 +0,2 @@

import { type SdkDependencies } from "./dependencies.js";
import { type SdkDependencies } from "./dependencies";
export declare function makeQaWolfSdk({ apiKey, serviceBase, }: {

@@ -6,8 +6,8 @@ apiKey: string;

}, { log, fetch, }?: Partial<SdkDependencies>): {
attemptNotifyDeploy: (config: Partial<import("../api/deploy.js").DeployConfig>) => Promise<import("./domain/attempt-deploy.js").NotifyDeployStatus>;
attemptNotifyDeploy: (config: Partial<import("../api").DeployConfig>) => Promise<import("./domain/attempt-deploy").NotifyDeployStatus>;
experimental_removeEnvironment: (config: {
branch: string;
}) => Promise<void>;
experimental_testPreview: (config: import("./domain/previewTesting/index.js").TestPreviewParams) => Promise<import("./domain/attempt-deploy.js").NotifyDeployStatus>;
pollCiGreenlightStatus: (args_0: import("./domain/poll-ci-greenlight.js").PollCiGreenlightParams) => Promise<import("./domain/poll-ci-greenlight.js").PollCiGreenlightStatus>;
experimental_testPreview: (config: import("./domain/previewTesting/index.js").TestPreviewParams) => Promise<import("./domain/attempt-deploy").NotifyDeployStatus>;
pollCiGreenlightStatus: (args_0: import("./domain/poll-ci-greenlight").PollCiGreenlightParams) => Promise<import("./domain/poll-ci-greenlight").PollCiGreenlightStatus>;
};

@@ -14,0 +14,0 @@ export type * from "./domain/poll-ci-greenlight.js";

@@ -1,3 +0,3 @@

import { type LogDriver } from "../dependencies.js";
import { type LogDriver } from "../dependencies";
export declare const defaultLogDriver: LogDriver;
//# sourceMappingURL=default.d.ts.map

@@ -1,2 +0,2 @@

import { type CiGreenlightStatusBase } from "../lib/api/ci-greenlight.js";
import { type CiGreenlightStatusBase } from "../lib/api/ci-greenlight";
export declare function makeQaWolfSdkForTest({ apiKey }: {

@@ -7,8 +7,8 @@ apiKey: string;

sdk: {
attemptNotifyDeploy: (config: Partial<import("../index.js").DeployConfig>) => Promise<import("../lib/sdk/index.js").NotifyDeployStatus>;
attemptNotifyDeploy: (config: Partial<import("..").DeployConfig>) => Promise<import("../lib/sdk/index").NotifyDeployStatus>;
experimental_removeEnvironment: (config: {
branch: string;
}) => Promise<void>;
experimental_testPreview: (config: import("../lib/sdk/domain/previewTesting/index.js").TestPreviewParams) => Promise<import("../lib/sdk/index.js").NotifyDeployStatus>;
pollCiGreenlightStatus: (args_0: import("../lib/sdk/index.js").PollCiGreenlightParams) => Promise<import("../lib/sdk/index.js").PollCiGreenlightStatus>;
experimental_testPreview: (config: import("../lib/sdk/domain/previewTesting").TestPreviewParams) => Promise<import("../lib/sdk/index").NotifyDeployStatus>;
pollCiGreenlightStatus: (args_0: import("../lib/sdk/index").PollCiGreenlightParams) => Promise<import("../lib/sdk/index").PollCiGreenlightStatus>;
};

@@ -15,0 +15,0 @@ };

{
"name": "@qawolf/ci-sdk",
"version": "0.15.3",
"version": "0.15.4",
"description": "A simple SDK for interacting with QAWolf in CI scripts.",

@@ -16,4 +16,4 @@ "type": "commonjs",

"build": "./scripts/build.sh",
"lint": "eslint . --ext js,jsx,mjs,ts,tsx --max-warnings=0",
"lint:fix": "eslint . --ext js,jsx,mjs,ts,tsx --fix --max-warnings=0",
"lint": "eslint . --ext js,jsx,mjs,ts,tsx --max-warnings=0 && prettier --check .",
"lint:fix": "eslint . --ext js,jsx,mjs,ts,tsx --fix --max-warnings=0 && prettier --write .",
"test": "jest",

@@ -37,3 +37,4 @@ "prepare": "npm run build",

"ts-node": "^10.9.2",
"typescript": "^5.4.3"
"ts-patch": "^3.2.0",
"typescript-transformer-esm": "^1.1.0"
},

@@ -40,0 +41,0 @@ "dependencies": {

@@ -134,2 +134,6 @@ # QAWolf CI SDK

## v0.15.4
- Fix broken ESM build due to lacking `.js` extension in some built files.
## v0.15.0

@@ -136,0 +140,0 @@

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc