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

@qawolf/ci-sdk

Package Overview
Dependencies
Maintainers
0
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.17.1 to 0.18.0

dist/cjs/lib/api/generate-signed-url-for-run-inputs-executables.d.ts

2

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

@@ -81,3 +81,3 @@ import { type ApiConfig } from "../api-types";

});
export declare function fetchCiGreenlightStatus({ serviceBase, apiKey }: ApiConfig, { runId, }: {
export declare function fetchCiGreenlightStatus({ apiKey, serviceBase }: ApiConfig, { runId, }: {
runId: string;

@@ -84,0 +84,0 @@ }, { fetch: localFetch }: SdkDependencies): Promise<{

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchCiGreenlightStatus = fetchCiGreenlightStatus;
async function fetchCiGreenlightStatus({ serviceBase, apiKey }, { runId, }, { fetch: localFetch }) {
async function fetchCiGreenlightStatus({ apiKey, serviceBase }, { runId, }, { fetch: localFetch }) {
try {

@@ -6,0 +6,0 @@ const resp = await localFetch(new URL(`/api/v0/ci-greenlight/${encodeURIComponent(runId)}`, serviceBase), {

import { type ApiConfig } from "../api-types";
import { type SdkDependencies } from "../sdk/dependencies";
export type GenerateSignedUrlForTeamStorageConfig = {
destinationFilePath: string | undefined;
};
export type GenerateSignedUrlForTeamStorageResponse = {
errorMessage?: string;
fileLocation?: string;
httpStatus: number;
playgroundFileLocation?: string;
signedUrl?: string;
success: boolean;
};
export declare function callGenerateSignedUrlForTempTeamStorage({ apiKey, serviceBase }: ApiConfig, { destinationFilePath }: Partial<GenerateSignedUrlForTeamStorageConfig>, { fetch: localFetch }: SdkDependencies): Promise<GenerateSignedUrlForTeamStorageResponse>;
import { type GenerateSignedUrlConfig, type GenerateSignedUrlResponse } from "../sdk/domain/generateSignedUrls/types";
export declare function callGenerateSignedUrlForTempTeamStorage({ apiKey, serviceBase }: ApiConfig, { destinationFilePath }: Partial<GenerateSignedUrlConfig>, { fetch: localFetch }: SdkDependencies): Promise<GenerateSignedUrlResponse>;
//# sourceMappingURL=generate-signed-url-for-team-storage.d.ts.map

@@ -23,3 +23,3 @@ import { type ApiConfig } from "../api-types";

};
export declare function qawolfGraphql<Variables extends Record<never, unknown>, QueryName extends string>({ deps: { fetch: localFetch, log }, apiConfig: { apiKey, serviceBase }, name, query: queryGql, variables, }: {
export declare function qawolfGraphql<Variables extends Record<never, unknown>, QueryName extends string>({ apiConfig: { apiKey, serviceBase }, deps: { fetch: localFetch, log }, name, query: queryGql, variables, }: {
apiConfig: ApiConfig;

@@ -26,0 +26,0 @@ deps: SdkDependencies;

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

}
async function qawolfGraphql({ deps: { fetch: localFetch, log }, apiConfig: { apiKey, serviceBase }, name, query: queryGql, variables, }) {
async function qawolfGraphql({ apiConfig: { apiKey, serviceBase }, deps: { fetch: localFetch, log }, name, query: queryGql, variables, }) {
try {

@@ -13,0 +13,0 @@ const response = await localFetch(new URL(`/api/graphql`, serviceBase), {

@@ -24,3 +24,3 @@ import { type ApiConfig } from "../api-types";

};
export declare function callNotifyVCSBranchBuildDeployedMutation(deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentAlias, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsCommitId, headVcsCommitUrl, headVcsBranch, pullOrMergeRequestNumber, }: NotifyVCSBranchBuildDeployedMutationInput): Promise<GraphQLResponse<NotifyVCSBranchBuildDeployedResponseSchema>>;
export declare function callNotifyVCSBranchBuildDeployedMutation(deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentAlias, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsBranch, headVcsCommitId, headVcsCommitUrl, pullOrMergeRequestNumber, }: NotifyVCSBranchBuildDeployedMutationInput): Promise<GraphQLResponse<NotifyVCSBranchBuildDeployedResponseSchema>>;
//# sourceMappingURL=notify-vcs-branch-build-deployed-mutation.d.ts.map

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

}`;
async function callNotifyVCSBranchBuildDeployedMutation(deps, apiConfig, { baseEnvironmentAlias, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsCommitId, headVcsCommitUrl, headVcsBranch, pullOrMergeRequestNumber, }) {
async function callNotifyVCSBranchBuildDeployedMutation(deps, apiConfig, { baseEnvironmentAlias, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsBranch, headVcsCommitId, headVcsCommitUrl, pullOrMergeRequestNumber, }) {
return (0, graphql_1.qawolfGraphql)({

@@ -39,0 +39,0 @@ apiConfig,

@@ -15,3 +15,3 @@ import { type ApiConfig } from "../api-types";

};
export declare function callNotifyVCSBranchMergeCompletedMutation(deps: SdkDependencies, apiConfig: ApiConfig, { headEnvironmentAlias, baseEnvironmentAlias, }: NotifyVCSBranchMergeCompletedMutationInput): Promise<GraphQLResponse<NotifyVCSBranchMergeCompletedResponseSchema>>;
export declare function callNotifyVCSBranchMergeCompletedMutation(deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentAlias, headEnvironmentAlias, }: NotifyVCSBranchMergeCompletedMutationInput): Promise<GraphQLResponse<NotifyVCSBranchMergeCompletedResponseSchema>>;
//# sourceMappingURL=notify-vcs-branch-merge-completed-mutation.d.ts.map

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

}`;
async function callNotifyVCSBranchMergeCompletedMutation(deps, apiConfig, { headEnvironmentAlias, baseEnvironmentAlias, }) {
async function callNotifyVCSBranchMergeCompletedMutation(deps, apiConfig, { baseEnvironmentAlias, headEnvironmentAlias, }) {
return (0, graphql_1.qawolfGraphql)({

@@ -17,0 +17,0 @@ apiConfig,

@@ -17,4 +17,4 @@ import { type ApiConfig } from "../../../api-types";

};
export declare const createEnvironmentAction: (deps: SdkDependencies, apiConfig: ApiConfig, { branch, headRepoFullName, deploymentUrl, qaWolfTeamId, pr, variables, baseEnvironmentId, }: CreateEnvironmentActionArgs) => Promise<void>;
export declare const createEnvironmentAction: (deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentId, branch, deploymentUrl, headRepoFullName, pr, qaWolfTeamId, variables, }: CreateEnvironmentActionArgs) => Promise<void>;
export {};
//# sourceMappingURL=createEnvironmentAction.d.ts.map

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

const getTagsFromEnvironment_1 = require("./getTagsFromEnvironment");
const createEnvironmentAction = async (deps, apiConfig, { branch, headRepoFullName, deploymentUrl, qaWolfTeamId, pr, variables, baseEnvironmentId, }) => {
const createEnvironmentAction = async (deps, apiConfig, { baseEnvironmentId, branch, deploymentUrl, headRepoFullName, pr, qaWolfTeamId, variables, }) => {
deps.log.info("Creating environment for pull request...");

@@ -13,0 +13,0 @@ const environmentId = await (0, findOrCreateEnvironment_1.findOrCreateEnvironment)(deps, apiConfig, {

@@ -27,4 +27,4 @@ import { type ApiConfig } from "../../../api-types";

};
export declare function findOrCreateEnvironment(deps: SdkDependencies, apiConfig: ApiConfig, { branch, pr, qaWolfTeamId, baseEnvironmentId, }: FindOrCreateEnvironmentParams): Promise<string>;
export declare function findOrCreateEnvironment(deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentId, branch, pr, qaWolfTeamId, }: FindOrCreateEnvironmentParams): Promise<string>;
export {};
//# sourceMappingURL=findOrCreateEnvironment.d.ts.map

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

const constants_1 = require("./constants");
async function findOrCreateEnvironment(deps, apiConfig, { branch, pr, qaWolfTeamId, baseEnvironmentId, }) {
async function findOrCreateEnvironment(deps, apiConfig, { baseEnvironmentId, branch, pr, qaWolfTeamId, }) {
const retrievalResponse = await deps.fetch(constants_1.qawolfGraphQLEndpoint, {

@@ -8,0 +8,0 @@ body: JSON.stringify({

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

async function findOrCreateTrigger(deps, apiConfig, args) {
const { branch, environmentId, pr, repositoryId, qaWolfTeamId, tags } = args;
const { branch, environmentId, pr, qaWolfTeamId, repositoryId, tags } = args;
const triggerName = `Deployments of ${pr ? `PR #${pr.number} - ${pr.title}` : `branch ${branch}`}`;

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

@@ -77,3 +77,3 @@ import { type CiGreenlightStatus } from "../../api/ci-greenlight";

} & Partial<PollCiGreenlightPollConfig>;
export declare function pollCiGreenlightStatus(deps: SdkDependencies, apiConfig: ApiConfig, { runId, onRunStageChanged: onRunStageChanged, ...pollConfig }: PollCiGreenlightParams): Promise<PollCiGreenlightStatus>;
export declare function pollCiGreenlightStatus(deps: SdkDependencies, apiConfig: ApiConfig, { onRunStageChanged: onRunStageChanged, runId, ...pollConfig }: PollCiGreenlightParams): Promise<PollCiGreenlightStatus>;
//# sourceMappingURL=poll-ci-greenlight.d.ts.map

@@ -15,6 +15,6 @@ "use strict";

};
async function pollCiGreenlightStatus(deps, apiConfig, { runId, onRunStageChanged: onRunStageChanged = () => void 0, ...pollConfig }) {
async function pollCiGreenlightStatus(deps, apiConfig, { onRunStageChanged: onRunStageChanged = () => void 0, runId, ...pollConfig }) {
let retries = 0;
const { log } = deps;
const { maxRetries = safeDefaults.maxRetries, retryInterval = safeDefaults.retryInterval, runInProgressInterval = safeDefaults.runInProgressInterval, runUnderReviewInterval = safeDefaults.runUnderReviewInterval, pollTimeout = safeDefaults.pollTimeout, } = pollConfig;
const { maxRetries = safeDefaults.maxRetries, pollTimeout = safeDefaults.pollTimeout, retryInterval = safeDefaults.retryInterval, runInProgressInterval = safeDefaults.runInProgressInterval, runUnderReviewInterval = safeDefaults.runUnderReviewInterval, } = pollConfig;
let currentStatus = undefined;

@@ -21,0 +21,0 @@ const startedAt = Date.now();

@@ -13,3 +13,3 @@ import { type SdkDependencies } from "../../dependencies";

serviceBase?: string;
}, { log, fetch, }?: Partial<SdkDependencies>): VCSBranchTestingSDK;
}, { fetch, log, }?: Partial<SdkDependencies>): VCSBranchTestingSDK;
export type VCSBranchTestingSDK = {

@@ -16,0 +16,0 @@ /**

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

tslib_1.__exportStar(require("./lib/aliases"), exports);
function makeVCSBranchTestingSDK({ apiKey, serviceBase = serviceBase_1.defaultServiceBase, }, { log = log_1.defaultLogDriver, fetch = fetch_1.defaultFetch, } = {}) {
function makeVCSBranchTestingSDK({ apiKey, serviceBase = serviceBase_1.defaultServiceBase, }, { fetch = fetch_1.defaultFetch, log = log_1.defaultLogDriver, } = {}) {
const deps = { fetch, log };

@@ -16,0 +16,0 @@ const apiConfig = { apiKey, serviceBase };

import { type LogDriver } from "../../../dependencies";
export declare function domainFailureToAbortResult<FailureCodes extends "invalid-input" | "non-ephemeral-head-environment-violation" | "head-environment-not-found" | "base-environment-not-found" | "base-trigger-not-found" | "head-trigger-not-found" | "run-creation-failed">({ log, result, methodName, }: {
export declare function domainFailureToAbortResult<FailureCodes extends "invalid-input" | "non-ephemeral-head-environment-violation" | "head-environment-not-found" | "base-environment-not-found" | "base-trigger-not-found" | "head-trigger-not-found" | "run-creation-failed">({ log, methodName, result, }: {
log: LogDriver;

@@ -4,0 +4,0 @@ methodName: string;

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

const utils_1 = require("../../../../utils");
function domainFailureToAbortResult({ log, result, methodName, }) {
function domainFailureToAbortResult({ log, methodName, result, }) {
switch (result.failureCode) {

@@ -8,0 +8,0 @@ case "run-creation-failed":

@@ -8,3 +8,3 @@ import { type LogDriver } from "../../../dependencies";

};
export declare function retryWithExponentialBackoff<Result extends MinimalResult, RetriableAbortReasons extends string[]>({ maxRetries, runOnce, log, methodName, retriableAbortReasons, }: {
export declare function retryWithExponentialBackoff<Result extends MinimalResult, RetriableAbortReasons extends string[]>({ log, maxRetries, methodName, retriableAbortReasons, runOnce, }: {
log: LogDriver;

@@ -11,0 +11,0 @@ maxRetries: number;

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

const utils_1 = require("../../../../utils");
async function retryWithExponentialBackoff({ maxRetries, runOnce, log, methodName, retriableAbortReasons, }) {
async function retryWithExponentialBackoff({ log, maxRetries, methodName, retriableAbortReasons, runOnce, }) {
let attemptNumber = 0;

@@ -8,0 +8,0 @@ let result;

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

async function runNotifyVCSBranchBuildDeployedOnce(deps, apiConfig, input) {
const { baseEnvironmentsMapping, baseVcsBranch, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsCommitId, concurrencyLimit, headVcsCommitUrl, headVcsBranch, pullOrMergeRequestNumber, } = input;
const { baseEnvironmentsMapping, baseVcsBranch, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsBranch, headVcsCommitId, headVcsCommitUrl, pullOrMergeRequestNumber, } = input;
const log = deps.log;

@@ -13,0 +13,0 @@ const baseEnvironmentAlias = baseEnvironmentsMapping.find((mapping) => mapping.vcsBranch === baseVcsBranch)?.environmentAlias;

@@ -5,3 +5,3 @@ import { type SdkDependencies } from "./dependencies";

serviceBase?: string;
}, { log, fetch, }?: Partial<SdkDependencies>): {
}, { fetch, log, }?: Partial<SdkDependencies>): {
attemptNotifyDeploy: (config: Partial<import("../api").DeployConfig>) => Promise<import("./domain/attempt-deploy").NotifyDeployStatus>;

@@ -19,3 +19,4 @@ /**

experimental_vcsBranchTesting: import("./domain/vcsBranchTesting").VCSBranchTestingSDK;
generateSignedUrlForTempTeamStorage: (config: import("../api").GenerateSignedUrlForTeamStorageConfig) => Promise<{
generateSignedUrlForRunInputsExecutablesStorage: (config: import("./domain/generateSignedUrls/types").GenerateSignedUrlConfig) => Promise<import("./domain/generateSignedUrls/types").GenerateSignedUrlStatus>;
generateSignedUrlForTempTeamStorage: (config: import("./domain/generateSignedUrls/types").GenerateSignedUrlConfig) => Promise<{
fileLocation?: string;

@@ -26,3 +27,3 @@ playgroundFileLocation?: string;

} | {
abortReason: import("./domain/generate-signed-url-for-team-storage").GenerateSignedUrlAbortReason;
abortReason: import("./domain/generateSignedUrls/generate-signed-url-for-team-storage").GenerateSignedUrlAbortReason;
httpStatus?: number;

@@ -36,2 +37,3 @@ success: false;

export * from "./domain/vcsBranchTesting/index";
export type * from "./domain/generateSignedUrls/types";
//# sourceMappingURL=index.d.ts.map

@@ -10,7 +10,8 @@ "use strict";

const attempt_deploy_1 = require("./domain/attempt-deploy");
const generate_signed_url_for_team_storage_1 = require("./domain/generate-signed-url-for-team-storage");
const generate_signed_url_for_run_inputs_executables_1 = require("./domain/generateSignedUrls/generate-signed-url-for-run-inputs-executables");
const generate_signed_url_for_team_storage_1 = require("./domain/generateSignedUrls/generate-signed-url-for-team-storage");
const index_1 = require("./domain/legacy_previewTesting/index");
const poll_ci_greenlight_1 = require("./domain/poll-ci-greenlight");
const vcsBranchTesting_1 = require("./domain/vcsBranchTesting");
function makeQaWolfSdk({ apiKey, serviceBase = serviceBase_1.defaultServiceBase, }, { log = log_1.defaultLogDriver, fetch = fetch_1.defaultFetch, } = {}) {
function makeQaWolfSdk({ apiKey, serviceBase = serviceBase_1.defaultServiceBase, }, { fetch = fetch_1.defaultFetch, log = log_1.defaultLogDriver, } = {}) {
if (typeof fetch !== "function") {

@@ -37,2 +38,3 @@ throw new Error(`QA Wolf CI-SDK requires fetch to be defined. Make sure you are using NodeJS 18+, OR pass a fetch polyfill to the makeQaWolfSdk function.

experimental_vcsBranchTesting: (0, vcsBranchTesting_1.makeVCSBranchTestingSDK)(apiConfig, deps),
generateSignedUrlForRunInputsExecutablesStorage: generate_signed_url_for_run_inputs_executables_1.generateSignedUrlForRunInputsExecutablesStorage.bind(null, deps, apiConfig),
generateSignedUrlForTempTeamStorage: generate_signed_url_for_team_storage_1.generateSignedUrlForTempTeamStorage.bind(null, deps, apiConfig),

@@ -39,0 +41,0 @@ pollCiGreenlightStatus: poll_ci_greenlight_1.pollCiGreenlightStatus.bind(null, deps, apiConfig),

@@ -19,3 +19,4 @@ import { type CiGreenlightStatusBase } from "../lib/api/ci-greenlight";

experimental_vcsBranchTesting: import("../lib/sdk/index").VCSBranchTestingSDK;
generateSignedUrlForTempTeamStorage: (config: import("../lib/api").GenerateSignedUrlForTeamStorageConfig) => Promise<{
generateSignedUrlForRunInputsExecutablesStorage: (config: import("../lib/sdk/index").GenerateSignedUrlConfig) => Promise<import("../lib/sdk/index").GenerateSignedUrlStatus>;
generateSignedUrlForTempTeamStorage: (config: import("../lib/sdk/index").GenerateSignedUrlConfig) => Promise<{
fileLocation?: string;

@@ -26,3 +27,3 @@ playgroundFileLocation?: string;

} | {
abortReason: import("../lib/sdk/domain/generate-signed-url-for-team-storage").GenerateSignedUrlAbortReason;
abortReason: import("../lib/sdk/domain/generateSignedUrls/generate-signed-url-for-team-storage").GenerateSignedUrlAbortReason;
httpStatus?: number;

@@ -29,0 +30,0 @@ success: false;

@@ -81,3 +81,3 @@ import { type ApiConfig } from "../api-types";

});
export declare function fetchCiGreenlightStatus({ serviceBase, apiKey }: ApiConfig, { runId, }: {
export declare function fetchCiGreenlightStatus({ apiKey, serviceBase }: ApiConfig, { runId, }: {
runId: string;

@@ -84,0 +84,0 @@ }, { fetch: localFetch }: SdkDependencies): Promise<{

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

export async function fetchCiGreenlightStatus({ serviceBase, apiKey }, { runId, }, { fetch: localFetch }) {
export async function fetchCiGreenlightStatus({ apiKey, serviceBase }, { runId, }, { fetch: localFetch }) {
try {

@@ -3,0 +3,0 @@ const resp = await localFetch(new URL(`/api/v0/ci-greenlight/${encodeURIComponent(runId)}`, serviceBase), {

import { type ApiConfig } from "../api-types";
import { type SdkDependencies } from "../sdk/dependencies";
export type GenerateSignedUrlForTeamStorageConfig = {
destinationFilePath: string | undefined;
};
export type GenerateSignedUrlForTeamStorageResponse = {
errorMessage?: string;
fileLocation?: string;
httpStatus: number;
playgroundFileLocation?: string;
signedUrl?: string;
success: boolean;
};
export declare function callGenerateSignedUrlForTempTeamStorage({ apiKey, serviceBase }: ApiConfig, { destinationFilePath }: Partial<GenerateSignedUrlForTeamStorageConfig>, { fetch: localFetch }: SdkDependencies): Promise<GenerateSignedUrlForTeamStorageResponse>;
import { type GenerateSignedUrlConfig, type GenerateSignedUrlResponse } from "../sdk/domain/generateSignedUrls/types";
export declare function callGenerateSignedUrlForTempTeamStorage({ apiKey, serviceBase }: ApiConfig, { destinationFilePath }: Partial<GenerateSignedUrlConfig>, { fetch: localFetch }: SdkDependencies): Promise<GenerateSignedUrlResponse>;
//# sourceMappingURL=generate-signed-url-for-team-storage.d.ts.map

@@ -23,3 +23,3 @@ import { type ApiConfig } from "../api-types";

};
export declare function qawolfGraphql<Variables extends Record<never, unknown>, QueryName extends string>({ deps: { fetch: localFetch, log }, apiConfig: { apiKey, serviceBase }, name, query: queryGql, variables, }: {
export declare function qawolfGraphql<Variables extends Record<never, unknown>, QueryName extends string>({ apiConfig: { apiKey, serviceBase }, deps: { fetch: localFetch, log }, name, query: queryGql, variables, }: {
apiConfig: ApiConfig;

@@ -26,0 +26,0 @@ deps: SdkDependencies;

@@ -7,3 +7,3 @@ class GraphQLBadResponseError extends Error {

}
export async function qawolfGraphql({ deps: { fetch: localFetch, log }, apiConfig: { apiKey, serviceBase }, name, query: queryGql, variables, }) {
export async function qawolfGraphql({ apiConfig: { apiKey, serviceBase }, deps: { fetch: localFetch, log }, name, query: queryGql, variables, }) {
try {

@@ -10,0 +10,0 @@ const response = await localFetch(new URL(`/api/graphql`, serviceBase), {

@@ -24,3 +24,3 @@ import { type ApiConfig } from "../api-types";

};
export declare function callNotifyVCSBranchBuildDeployedMutation(deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentAlias, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsCommitId, headVcsCommitUrl, headVcsBranch, pullOrMergeRequestNumber, }: NotifyVCSBranchBuildDeployedMutationInput): Promise<GraphQLResponse<NotifyVCSBranchBuildDeployedResponseSchema>>;
export declare function callNotifyVCSBranchBuildDeployedMutation(deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentAlias, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsBranch, headVcsCommitId, headVcsCommitUrl, pullOrMergeRequestNumber, }: NotifyVCSBranchBuildDeployedMutationInput): Promise<GraphQLResponse<NotifyVCSBranchBuildDeployedResponseSchema>>;
//# sourceMappingURL=notify-vcs-branch-build-deployed-mutation.d.ts.map

@@ -33,3 +33,3 @@ import { qawolfGraphql } from "./graphql";

}`;
export async function callNotifyVCSBranchBuildDeployedMutation(deps, apiConfig, { baseEnvironmentAlias, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsCommitId, headVcsCommitUrl, headVcsBranch, pullOrMergeRequestNumber, }) {
export async function callNotifyVCSBranchBuildDeployedMutation(deps, apiConfig, { baseEnvironmentAlias, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsBranch, headVcsCommitId, headVcsCommitUrl, pullOrMergeRequestNumber, }) {
return qawolfGraphql({

@@ -36,0 +36,0 @@ apiConfig,

@@ -15,3 +15,3 @@ import { type ApiConfig } from "../api-types";

};
export declare function callNotifyVCSBranchMergeCompletedMutation(deps: SdkDependencies, apiConfig: ApiConfig, { headEnvironmentAlias, baseEnvironmentAlias, }: NotifyVCSBranchMergeCompletedMutationInput): Promise<GraphQLResponse<NotifyVCSBranchMergeCompletedResponseSchema>>;
export declare function callNotifyVCSBranchMergeCompletedMutation(deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentAlias, headEnvironmentAlias, }: NotifyVCSBranchMergeCompletedMutationInput): Promise<GraphQLResponse<NotifyVCSBranchMergeCompletedResponseSchema>>;
//# sourceMappingURL=notify-vcs-branch-merge-completed-mutation.d.ts.map

@@ -11,3 +11,3 @@ import { qawolfGraphql } from "./graphql";

}`;
export async function callNotifyVCSBranchMergeCompletedMutation(deps, apiConfig, { headEnvironmentAlias, baseEnvironmentAlias, }) {
export async function callNotifyVCSBranchMergeCompletedMutation(deps, apiConfig, { baseEnvironmentAlias, headEnvironmentAlias, }) {
return qawolfGraphql({

@@ -14,0 +14,0 @@ apiConfig,

@@ -17,4 +17,4 @@ import { type ApiConfig } from "../../../api-types";

};
export declare const createEnvironmentAction: (deps: SdkDependencies, apiConfig: ApiConfig, { branch, headRepoFullName, deploymentUrl, qaWolfTeamId, pr, variables, baseEnvironmentId, }: CreateEnvironmentActionArgs) => Promise<void>;
export declare const createEnvironmentAction: (deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentId, branch, deploymentUrl, headRepoFullName, pr, qaWolfTeamId, variables, }: CreateEnvironmentActionArgs) => Promise<void>;
export {};
//# sourceMappingURL=createEnvironmentAction.d.ts.map

@@ -7,3 +7,3 @@ import { createEnvironmentVariables } from "./createEnvironmentVariables";

import { getTagsFromGenericTriggerInEnvironment } from "./getTagsFromEnvironment";
export const createEnvironmentAction = async (deps, apiConfig, { branch, headRepoFullName, deploymentUrl, qaWolfTeamId, pr, variables, baseEnvironmentId, }) => {
export const createEnvironmentAction = async (deps, apiConfig, { baseEnvironmentId, branch, deploymentUrl, headRepoFullName, pr, qaWolfTeamId, variables, }) => {
deps.log.info("Creating environment for pull request...");

@@ -10,0 +10,0 @@ const environmentId = await findOrCreateEnvironment(deps, apiConfig, {

@@ -27,4 +27,4 @@ import { type ApiConfig } from "../../../api-types";

};
export declare function findOrCreateEnvironment(deps: SdkDependencies, apiConfig: ApiConfig, { branch, pr, qaWolfTeamId, baseEnvironmentId, }: FindOrCreateEnvironmentParams): Promise<string>;
export declare function findOrCreateEnvironment(deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentId, branch, pr, qaWolfTeamId, }: FindOrCreateEnvironmentParams): Promise<string>;
export {};
//# sourceMappingURL=findOrCreateEnvironment.d.ts.map
import { qawolfGraphQLEndpoint } from "./constants";
export async function findOrCreateEnvironment(deps, apiConfig, { branch, pr, qaWolfTeamId, baseEnvironmentId, }) {
export async function findOrCreateEnvironment(deps, apiConfig, { baseEnvironmentId, branch, pr, qaWolfTeamId, }) {
const retrievalResponse = await deps.fetch(qawolfGraphQLEndpoint, {

@@ -4,0 +4,0 @@ body: JSON.stringify({

import { previewDeploymentType, qawolfGraphQLEndpoint } from "./constants";
export async function findOrCreateTrigger(deps, apiConfig, args) {
const { branch, environmentId, pr, repositoryId, qaWolfTeamId, tags } = args;
const { branch, environmentId, pr, qaWolfTeamId, repositoryId, tags } = args;
const triggerName = `Deployments of ${pr ? `PR #${pr.number} - ${pr.title}` : `branch ${branch}`}`;

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

@@ -77,3 +77,3 @@ import { type CiGreenlightStatus } from "../../api/ci-greenlight";

} & Partial<PollCiGreenlightPollConfig>;
export declare function pollCiGreenlightStatus(deps: SdkDependencies, apiConfig: ApiConfig, { runId, onRunStageChanged: onRunStageChanged, ...pollConfig }: PollCiGreenlightParams): Promise<PollCiGreenlightStatus>;
export declare function pollCiGreenlightStatus(deps: SdkDependencies, apiConfig: ApiConfig, { onRunStageChanged: onRunStageChanged, runId, ...pollConfig }: PollCiGreenlightParams): Promise<PollCiGreenlightStatus>;
//# sourceMappingURL=poll-ci-greenlight.d.ts.map

@@ -12,6 +12,6 @@ import { fetchCiGreenlightStatus, } from "../../api/ci-greenlight";

};
export async function pollCiGreenlightStatus(deps, apiConfig, { runId, onRunStageChanged: onRunStageChanged = () => void 0, ...pollConfig }) {
export async function pollCiGreenlightStatus(deps, apiConfig, { onRunStageChanged: onRunStageChanged = () => void 0, runId, ...pollConfig }) {
let retries = 0;
const { log } = deps;
const { maxRetries = safeDefaults.maxRetries, retryInterval = safeDefaults.retryInterval, runInProgressInterval = safeDefaults.runInProgressInterval, runUnderReviewInterval = safeDefaults.runUnderReviewInterval, pollTimeout = safeDefaults.pollTimeout, } = pollConfig;
const { maxRetries = safeDefaults.maxRetries, pollTimeout = safeDefaults.pollTimeout, retryInterval = safeDefaults.retryInterval, runInProgressInterval = safeDefaults.runInProgressInterval, runUnderReviewInterval = safeDefaults.runUnderReviewInterval, } = pollConfig;
let currentStatus = undefined;

@@ -18,0 +18,0 @@ const startedAt = Date.now();

@@ -13,3 +13,3 @@ import { type SdkDependencies } from "../../dependencies";

serviceBase?: string;
}, { log, fetch, }?: Partial<SdkDependencies>): VCSBranchTestingSDK;
}, { fetch, log, }?: Partial<SdkDependencies>): VCSBranchTestingSDK;
export type VCSBranchTestingSDK = {

@@ -16,0 +16,0 @@ /**

@@ -9,3 +9,3 @@ import { defaultFetch } from "../../defaults/fetch";

export * from "./lib/aliases";
export function makeVCSBranchTestingSDK({ apiKey, serviceBase = defaultServiceBase, }, { log = defaultLogDriver, fetch = defaultFetch, } = {}) {
export function makeVCSBranchTestingSDK({ apiKey, serviceBase = defaultServiceBase, }, { fetch = defaultFetch, log = defaultLogDriver, } = {}) {
const deps = { fetch, log };

@@ -12,0 +12,0 @@ const apiConfig = { apiKey, serviceBase };

import { type LogDriver } from "../../../dependencies";
export declare function domainFailureToAbortResult<FailureCodes extends "invalid-input" | "non-ephemeral-head-environment-violation" | "head-environment-not-found" | "base-environment-not-found" | "base-trigger-not-found" | "head-trigger-not-found" | "run-creation-failed">({ log, result, methodName, }: {
export declare function domainFailureToAbortResult<FailureCodes extends "invalid-input" | "non-ephemeral-head-environment-violation" | "head-environment-not-found" | "base-environment-not-found" | "base-trigger-not-found" | "head-trigger-not-found" | "run-creation-failed">({ log, methodName, result, }: {
log: LogDriver;

@@ -4,0 +4,0 @@ methodName: string;

import { assertType } from "../../../../utils";
export function domainFailureToAbortResult({ log, result, methodName, }) {
export function domainFailureToAbortResult({ log, methodName, result, }) {
switch (result.failureCode) {

@@ -4,0 +4,0 @@ case "run-creation-failed":

@@ -8,3 +8,3 @@ import { type LogDriver } from "../../../dependencies";

};
export declare function retryWithExponentialBackoff<Result extends MinimalResult, RetriableAbortReasons extends string[]>({ maxRetries, runOnce, log, methodName, retriableAbortReasons, }: {
export declare function retryWithExponentialBackoff<Result extends MinimalResult, RetriableAbortReasons extends string[]>({ log, maxRetries, methodName, retriableAbortReasons, runOnce, }: {
log: LogDriver;

@@ -11,0 +11,0 @@ maxRetries: number;

import { getBackoffMs, sleep } from "../../../../utils";
export async function retryWithExponentialBackoff({ maxRetries, runOnce, log, methodName, retriableAbortReasons, }) {
export async function retryWithExponentialBackoff({ log, maxRetries, methodName, retriableAbortReasons, runOnce, }) {
let attemptNumber = 0;

@@ -4,0 +4,0 @@ let result;

@@ -7,3 +7,3 @@ import { callNotifyVCSBranchBuildDeployedMutation } from "../../../api/notify-vcs-branch-build-deployed-mutation";

async function runNotifyVCSBranchBuildDeployedOnce(deps, apiConfig, input) {
const { baseEnvironmentsMapping, baseVcsBranch, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsCommitId, concurrencyLimit, headVcsCommitUrl, headVcsBranch, pullOrMergeRequestNumber, } = input;
const { baseEnvironmentsMapping, baseVcsBranch, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsBranch, headVcsCommitId, headVcsCommitUrl, pullOrMergeRequestNumber, } = input;
const log = deps.log;

@@ -10,0 +10,0 @@ const baseEnvironmentAlias = baseEnvironmentsMapping.find((mapping) => mapping.vcsBranch === baseVcsBranch)?.environmentAlias;

@@ -5,3 +5,3 @@ import { type SdkDependencies } from "./dependencies";

serviceBase?: string;
}, { log, fetch, }?: Partial<SdkDependencies>): {
}, { fetch, log, }?: Partial<SdkDependencies>): {
attemptNotifyDeploy: (config: Partial<import("../api").DeployConfig>) => Promise<import("./domain/attempt-deploy").NotifyDeployStatus>;

@@ -19,3 +19,4 @@ /**

experimental_vcsBranchTesting: import("./domain/vcsBranchTesting").VCSBranchTestingSDK;
generateSignedUrlForTempTeamStorage: (config: import("../api").GenerateSignedUrlForTeamStorageConfig) => Promise<{
generateSignedUrlForRunInputsExecutablesStorage: (config: import("./domain/generateSignedUrls/types").GenerateSignedUrlConfig) => Promise<import("./domain/generateSignedUrls/types").GenerateSignedUrlStatus>;
generateSignedUrlForTempTeamStorage: (config: import("./domain/generateSignedUrls/types").GenerateSignedUrlConfig) => Promise<{
fileLocation?: string;

@@ -26,3 +27,3 @@ playgroundFileLocation?: string;

} | {
abortReason: import("./domain/generate-signed-url-for-team-storage").GenerateSignedUrlAbortReason;
abortReason: import("./domain/generateSignedUrls/generate-signed-url-for-team-storage").GenerateSignedUrlAbortReason;
httpStatus?: number;

@@ -36,2 +37,3 @@ success: false;

export * from "./domain/vcsBranchTesting/index";
export type * from "./domain/generateSignedUrls/types";
//# sourceMappingURL=index.d.ts.map

@@ -6,7 +6,8 @@ import { buildFetchWithTimeout } from "../utils";

import { attemptNotifyDeploy } from "./domain/attempt-deploy";
import { generateSignedUrlForTempTeamStorage } from "./domain/generate-signed-url-for-team-storage";
import { generateSignedUrlForRunInputsExecutablesStorage } from "./domain/generateSignedUrls/generate-signed-url-for-run-inputs-executables";
import { generateSignedUrlForTempTeamStorage } from "./domain/generateSignedUrls/generate-signed-url-for-team-storage";
import { removeEnvironment, testPreview, } from "./domain/legacy_previewTesting/index";
import { pollCiGreenlightStatus } from "./domain/poll-ci-greenlight";
import { makeVCSBranchTestingSDK } from "./domain/vcsBranchTesting";
export function makeQaWolfSdk({ apiKey, serviceBase = defaultServiceBase, }, { log = defaultLogDriver, fetch = defaultFetch, } = {}) {
export function makeQaWolfSdk({ apiKey, serviceBase = defaultServiceBase, }, { fetch = defaultFetch, log = defaultLogDriver, } = {}) {
if (typeof fetch !== "function") {

@@ -33,2 +34,3 @@ throw new Error(`QA Wolf CI-SDK requires fetch to be defined. Make sure you are using NodeJS 18+, OR pass a fetch polyfill to the makeQaWolfSdk function.

experimental_vcsBranchTesting: makeVCSBranchTestingSDK(apiConfig, deps),
generateSignedUrlForRunInputsExecutablesStorage: generateSignedUrlForRunInputsExecutablesStorage.bind(null, deps, apiConfig),
generateSignedUrlForTempTeamStorage: generateSignedUrlForTempTeamStorage.bind(null, deps, apiConfig),

@@ -35,0 +37,0 @@ pollCiGreenlightStatus: pollCiGreenlightStatus.bind(null, deps, apiConfig),

@@ -19,3 +19,4 @@ import { type CiGreenlightStatusBase } from "../lib/api/ci-greenlight";

experimental_vcsBranchTesting: import("../lib/sdk/index").VCSBranchTestingSDK;
generateSignedUrlForTempTeamStorage: (config: import("../lib/api").GenerateSignedUrlForTeamStorageConfig) => Promise<{
generateSignedUrlForRunInputsExecutablesStorage: (config: import("../lib/sdk/index").GenerateSignedUrlConfig) => Promise<import("../lib/sdk/index").GenerateSignedUrlStatus>;
generateSignedUrlForTempTeamStorage: (config: import("../lib/sdk/index").GenerateSignedUrlConfig) => Promise<{
fileLocation?: string;

@@ -26,3 +27,3 @@ playgroundFileLocation?: string;

} | {
abortReason: import("../lib/sdk/domain/generate-signed-url-for-team-storage").GenerateSignedUrlAbortReason;
abortReason: import("../lib/sdk/domain/generateSignedUrls/generate-signed-url-for-team-storage").GenerateSignedUrlAbortReason;
httpStatus?: number;

@@ -29,0 +30,0 @@ success: false;

@@ -81,3 +81,3 @@ import { type ApiConfig } from "../api-types";

});
export declare function fetchCiGreenlightStatus({ serviceBase, apiKey }: ApiConfig, { runId, }: {
export declare function fetchCiGreenlightStatus({ apiKey, serviceBase }: ApiConfig, { runId, }: {
runId: string;

@@ -84,0 +84,0 @@ }, { fetch: localFetch }: SdkDependencies): Promise<{

import { type ApiConfig } from "../api-types";
import { type SdkDependencies } from "../sdk/dependencies";
export type GenerateSignedUrlForTeamStorageConfig = {
destinationFilePath: string | undefined;
};
export type GenerateSignedUrlForTeamStorageResponse = {
errorMessage?: string;
fileLocation?: string;
httpStatus: number;
playgroundFileLocation?: string;
signedUrl?: string;
success: boolean;
};
export declare function callGenerateSignedUrlForTempTeamStorage({ apiKey, serviceBase }: ApiConfig, { destinationFilePath }: Partial<GenerateSignedUrlForTeamStorageConfig>, { fetch: localFetch }: SdkDependencies): Promise<GenerateSignedUrlForTeamStorageResponse>;
import { type GenerateSignedUrlConfig, type GenerateSignedUrlResponse } from "../sdk/domain/generateSignedUrls/types";
export declare function callGenerateSignedUrlForTempTeamStorage({ apiKey, serviceBase }: ApiConfig, { destinationFilePath }: Partial<GenerateSignedUrlConfig>, { fetch: localFetch }: SdkDependencies): Promise<GenerateSignedUrlResponse>;
//# sourceMappingURL=generate-signed-url-for-team-storage.d.ts.map

@@ -23,3 +23,3 @@ import { type ApiConfig } from "../api-types";

};
export declare function qawolfGraphql<Variables extends Record<never, unknown>, QueryName extends string>({ deps: { fetch: localFetch, log }, apiConfig: { apiKey, serviceBase }, name, query: queryGql, variables, }: {
export declare function qawolfGraphql<Variables extends Record<never, unknown>, QueryName extends string>({ apiConfig: { apiKey, serviceBase }, deps: { fetch: localFetch, log }, name, query: queryGql, variables, }: {
apiConfig: ApiConfig;

@@ -26,0 +26,0 @@ deps: SdkDependencies;

@@ -24,3 +24,3 @@ import { type ApiConfig } from "../api-types";

};
export declare function callNotifyVCSBranchBuildDeployedMutation(deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentAlias, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsCommitId, headVcsCommitUrl, headVcsBranch, pullOrMergeRequestNumber, }: NotifyVCSBranchBuildDeployedMutationInput): Promise<GraphQLResponse<NotifyVCSBranchBuildDeployedResponseSchema>>;
export declare function callNotifyVCSBranchBuildDeployedMutation(deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentAlias, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsBranch, headVcsCommitId, headVcsCommitUrl, pullOrMergeRequestNumber, }: NotifyVCSBranchBuildDeployedMutationInput): Promise<GraphQLResponse<NotifyVCSBranchBuildDeployedResponseSchema>>;
//# sourceMappingURL=notify-vcs-branch-build-deployed-mutation.d.ts.map

@@ -15,3 +15,3 @@ import { type ApiConfig } from "../api-types";

};
export declare function callNotifyVCSBranchMergeCompletedMutation(deps: SdkDependencies, apiConfig: ApiConfig, { headEnvironmentAlias, baseEnvironmentAlias, }: NotifyVCSBranchMergeCompletedMutationInput): Promise<GraphQLResponse<NotifyVCSBranchMergeCompletedResponseSchema>>;
export declare function callNotifyVCSBranchMergeCompletedMutation(deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentAlias, headEnvironmentAlias, }: NotifyVCSBranchMergeCompletedMutationInput): Promise<GraphQLResponse<NotifyVCSBranchMergeCompletedResponseSchema>>;
//# sourceMappingURL=notify-vcs-branch-merge-completed-mutation.d.ts.map

@@ -17,4 +17,4 @@ import { type ApiConfig } from "../../../api-types";

};
export declare const createEnvironmentAction: (deps: SdkDependencies, apiConfig: ApiConfig, { branch, headRepoFullName, deploymentUrl, qaWolfTeamId, pr, variables, baseEnvironmentId, }: CreateEnvironmentActionArgs) => Promise<void>;
export declare const createEnvironmentAction: (deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentId, branch, deploymentUrl, headRepoFullName, pr, qaWolfTeamId, variables, }: CreateEnvironmentActionArgs) => Promise<void>;
export {};
//# sourceMappingURL=createEnvironmentAction.d.ts.map

@@ -27,4 +27,4 @@ import { type ApiConfig } from "../../../api-types";

};
export declare function findOrCreateEnvironment(deps: SdkDependencies, apiConfig: ApiConfig, { branch, pr, qaWolfTeamId, baseEnvironmentId, }: FindOrCreateEnvironmentParams): Promise<string>;
export declare function findOrCreateEnvironment(deps: SdkDependencies, apiConfig: ApiConfig, { baseEnvironmentId, branch, pr, qaWolfTeamId, }: FindOrCreateEnvironmentParams): Promise<string>;
export {};
//# sourceMappingURL=findOrCreateEnvironment.d.ts.map

@@ -77,3 +77,3 @@ import { type CiGreenlightStatus } from "../../api/ci-greenlight";

} & Partial<PollCiGreenlightPollConfig>;
export declare function pollCiGreenlightStatus(deps: SdkDependencies, apiConfig: ApiConfig, { runId, onRunStageChanged: onRunStageChanged, ...pollConfig }: PollCiGreenlightParams): Promise<PollCiGreenlightStatus>;
export declare function pollCiGreenlightStatus(deps: SdkDependencies, apiConfig: ApiConfig, { onRunStageChanged: onRunStageChanged, runId, ...pollConfig }: PollCiGreenlightParams): Promise<PollCiGreenlightStatus>;
//# sourceMappingURL=poll-ci-greenlight.d.ts.map

@@ -13,3 +13,3 @@ import { type SdkDependencies } from "../../dependencies";

serviceBase?: string;
}, { log, fetch, }?: Partial<SdkDependencies>): VCSBranchTestingSDK;
}, { fetch, log, }?: Partial<SdkDependencies>): VCSBranchTestingSDK;
export type VCSBranchTestingSDK = {

@@ -16,0 +16,0 @@ /**

import { type LogDriver } from "../../../dependencies";
export declare function domainFailureToAbortResult<FailureCodes extends "invalid-input" | "non-ephemeral-head-environment-violation" | "head-environment-not-found" | "base-environment-not-found" | "base-trigger-not-found" | "head-trigger-not-found" | "run-creation-failed">({ log, result, methodName, }: {
export declare function domainFailureToAbortResult<FailureCodes extends "invalid-input" | "non-ephemeral-head-environment-violation" | "head-environment-not-found" | "base-environment-not-found" | "base-trigger-not-found" | "head-trigger-not-found" | "run-creation-failed">({ log, methodName, result, }: {
log: LogDriver;

@@ -4,0 +4,0 @@ methodName: string;

@@ -8,3 +8,3 @@ import { type LogDriver } from "../../../dependencies";

};
export declare function retryWithExponentialBackoff<Result extends MinimalResult, RetriableAbortReasons extends string[]>({ maxRetries, runOnce, log, methodName, retriableAbortReasons, }: {
export declare function retryWithExponentialBackoff<Result extends MinimalResult, RetriableAbortReasons extends string[]>({ log, maxRetries, methodName, retriableAbortReasons, runOnce, }: {
log: LogDriver;

@@ -11,0 +11,0 @@ maxRetries: number;

@@ -5,3 +5,3 @@ import { type SdkDependencies } from "./dependencies";

serviceBase?: string;
}, { log, fetch, }?: Partial<SdkDependencies>): {
}, { fetch, log, }?: Partial<SdkDependencies>): {
attemptNotifyDeploy: (config: Partial<import("../api").DeployConfig>) => Promise<import("./domain/attempt-deploy").NotifyDeployStatus>;

@@ -19,3 +19,4 @@ /**

experimental_vcsBranchTesting: import("./domain/vcsBranchTesting").VCSBranchTestingSDK;
generateSignedUrlForTempTeamStorage: (config: import("../api").GenerateSignedUrlForTeamStorageConfig) => Promise<{
generateSignedUrlForRunInputsExecutablesStorage: (config: import("./domain/generateSignedUrls/types").GenerateSignedUrlConfig) => Promise<import("./domain/generateSignedUrls/types").GenerateSignedUrlStatus>;
generateSignedUrlForTempTeamStorage: (config: import("./domain/generateSignedUrls/types").GenerateSignedUrlConfig) => Promise<{
fileLocation?: string;

@@ -26,3 +27,3 @@ playgroundFileLocation?: string;

} | {
abortReason: import("./domain/generate-signed-url-for-team-storage").GenerateSignedUrlAbortReason;
abortReason: import("./domain/generateSignedUrls/generate-signed-url-for-team-storage").GenerateSignedUrlAbortReason;
httpStatus?: number;

@@ -36,2 +37,3 @@ success: false;

export * from "./domain/vcsBranchTesting/index";
export type * from "./domain/generateSignedUrls/types";
//# sourceMappingURL=index.d.ts.map

@@ -19,3 +19,4 @@ import { type CiGreenlightStatusBase } from "../lib/api/ci-greenlight";

experimental_vcsBranchTesting: import("../lib/sdk/index").VCSBranchTestingSDK;
generateSignedUrlForTempTeamStorage: (config: import("../lib/api").GenerateSignedUrlForTeamStorageConfig) => Promise<{
generateSignedUrlForRunInputsExecutablesStorage: (config: import("../lib/sdk/index").GenerateSignedUrlConfig) => Promise<import("../lib/sdk/index").GenerateSignedUrlStatus>;
generateSignedUrlForTempTeamStorage: (config: import("../lib/sdk/index").GenerateSignedUrlConfig) => Promise<{
fileLocation?: string;

@@ -26,3 +27,3 @@ playgroundFileLocation?: string;

} | {
abortReason: import("../lib/sdk/domain/generate-signed-url-for-team-storage").GenerateSignedUrlAbortReason;
abortReason: import("../lib/sdk/domain/generateSignedUrls/generate-signed-url-for-team-storage").GenerateSignedUrlAbortReason;
httpStatus?: number;

@@ -29,0 +30,0 @@ success: false;

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

@@ -5,0 +5,0 @@ "type": "commonjs",

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

## v0.18.0
- Add generateSignedUrlForRunInputsExecutablesStorage function to generate a signed url used to upload files to the Run Inputs Executables bucket.
## v0.17.1

@@ -381,0 +385,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

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