@qawolf/ci-sdk 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/cjs/lib/api/ci-greenlight.d.ts +1 -1
- package/dist/cjs/lib/api/ci-greenlight.d.ts.map +1 -1
- package/dist/cjs/lib/api/ci-greenlight.js +7 -1
- package/dist/cjs/lib/api/ci-greenlight.js.map +1 -1
- package/dist/cjs/lib/api/generate-signed-url-for-run-inputs-executables.d.ts +1 -1
- package/dist/cjs/lib/api/generate-signed-url-for-run-inputs-executables.d.ts.map +1 -1
- package/dist/cjs/lib/api/generate-signed-url-for-run-inputs-executables.js +7 -1
- package/dist/cjs/lib/api/generate-signed-url-for-run-inputs-executables.js.map +1 -1
- package/dist/cjs/lib/api/generate-signed-url-for-team-storage.d.ts +1 -1
- package/dist/cjs/lib/api/generate-signed-url-for-team-storage.d.ts.map +1 -1
- package/dist/cjs/lib/api/generate-signed-url-for-team-storage.js +7 -1
- package/dist/cjs/lib/api/generate-signed-url-for-team-storage.js.map +1 -1
- package/dist/cjs/lib/api/graphql.d.ts +15 -5
- package/dist/cjs/lib/api/graphql.d.ts.map +1 -1
- package/dist/cjs/lib/api/graphql.js +52 -15
- package/dist/cjs/lib/api/graphql.js.map +1 -1
- package/dist/cjs/lib/api/log.d.ts +7 -0
- package/dist/cjs/lib/api/log.d.ts.map +1 -0
- package/dist/cjs/lib/api/log.js +37 -0
- package/dist/cjs/lib/api/log.js.map +1 -0
- package/dist/cjs/lib/sdk/domain/attemptDeploy/index.d.ts +1 -35
- package/dist/cjs/lib/sdk/domain/attemptDeploy/index.d.ts.map +1 -1
- package/dist/cjs/lib/sdk/domain/attemptDeploy/index.js +31 -18
- package/dist/cjs/lib/sdk/domain/attemptDeploy/index.js.map +1 -1
- package/dist/cjs/lib/sdk/domain/attemptDeploy/types.d.ts +38 -0
- package/dist/cjs/lib/sdk/domain/attemptDeploy/types.d.ts.map +1 -1
- package/dist/cjs/lib/sdk/domain/legacy_previewTesting/index.d.ts +1 -1
- package/dist/cjs/lib/sdk/domain/legacy_previewTesting/index.d.ts.map +1 -1
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/index.d.ts +2 -2
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/index.d.ts.map +1 -1
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/index.js +2 -2
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/index.js.map +1 -1
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.d.ts +1 -0
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.d.ts.map +1 -1
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.js +8 -3
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.js.map +1 -1
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.d.ts +1 -0
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.d.ts.map +1 -1
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.js +8 -3
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.js.map +1 -1
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/index.d.ts +6 -0
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/index.d.ts.map +1 -0
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/{notify-vcs-branch-build-deployed.js → notifyVCSBranchBuildDeployed/index.js} +12 -7
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/index.js.map +1 -0
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/{notify-vcs-branch-build-deployed.d.ts → notifyVCSBranchBuildDeployed/types.d.ts} +3 -5
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/types.d.ts.map +1 -0
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/types.js +3 -0
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/types.js.map +1 -0
- package/dist/cjs/lib/sdk/index.d.ts +2 -2
- package/dist/cjs/tests/test-lib.d.ts +2 -2
- package/dist/cjs/tests/test-lib.d.ts.map +1 -1
- package/dist/cjs/tests/test-lib.js +7 -3
- package/dist/cjs/tests/test-lib.js.map +1 -1
- package/dist/esm/lib/api/ci-greenlight.d.ts +1 -1
- package/dist/esm/lib/api/ci-greenlight.d.ts.map +1 -1
- package/dist/esm/lib/api/ci-greenlight.js +7 -1
- package/dist/esm/lib/api/ci-greenlight.js.map +1 -1
- package/dist/esm/lib/api/generate-signed-url-for-run-inputs-executables.d.ts +1 -1
- package/dist/esm/lib/api/generate-signed-url-for-run-inputs-executables.d.ts.map +1 -1
- package/dist/esm/lib/api/generate-signed-url-for-run-inputs-executables.js +7 -1
- package/dist/esm/lib/api/generate-signed-url-for-run-inputs-executables.js.map +1 -1
- package/dist/esm/lib/api/generate-signed-url-for-team-storage.d.ts +1 -1
- package/dist/esm/lib/api/generate-signed-url-for-team-storage.d.ts.map +1 -1
- package/dist/esm/lib/api/generate-signed-url-for-team-storage.js +7 -1
- package/dist/esm/lib/api/generate-signed-url-for-team-storage.js.map +1 -1
- package/dist/esm/lib/api/graphql.d.ts +15 -5
- package/dist/esm/lib/api/graphql.d.ts.map +1 -1
- package/dist/esm/lib/api/graphql.js +51 -15
- package/dist/esm/lib/api/graphql.js.map +1 -1
- package/dist/esm/lib/api/log.d.ts +7 -0
- package/dist/esm/lib/api/log.d.ts.map +1 -0
- package/dist/esm/lib/api/log.js +34 -0
- package/dist/esm/lib/api/log.js.map +1 -0
- package/dist/esm/lib/sdk/domain/attemptDeploy/index.d.ts +1 -35
- package/dist/esm/lib/sdk/domain/attemptDeploy/index.d.ts.map +1 -1
- package/dist/esm/lib/sdk/domain/attemptDeploy/index.js +31 -18
- package/dist/esm/lib/sdk/domain/attemptDeploy/index.js.map +1 -1
- package/dist/esm/lib/sdk/domain/attemptDeploy/types.d.ts +38 -0
- package/dist/esm/lib/sdk/domain/attemptDeploy/types.d.ts.map +1 -1
- package/dist/esm/lib/sdk/domain/legacy_previewTesting/index.d.ts +1 -1
- package/dist/esm/lib/sdk/domain/legacy_previewTesting/index.d.ts.map +1 -1
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/index.d.ts +2 -2
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/index.d.ts.map +1 -1
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/index.js +1 -1
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/index.js.map +1 -1
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.d.ts +1 -0
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.d.ts.map +1 -1
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.js +8 -3
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.js.map +1 -1
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.d.ts +1 -0
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.d.ts.map +1 -1
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.js +8 -3
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.js.map +1 -1
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/index.d.ts +6 -0
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/index.d.ts.map +1 -0
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/{notify-vcs-branch-build-deployed.js → notifyVCSBranchBuildDeployed/index.js} +12 -7
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/index.js.map +1 -0
- package/dist/{types/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-build-deployed.d.ts → esm/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/types.d.ts} +3 -5
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/types.d.ts.map +1 -0
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/types.js +2 -0
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/types.js.map +1 -0
- package/dist/esm/lib/sdk/index.d.ts +2 -2
- package/dist/esm/tests/test-lib.d.ts +2 -2
- package/dist/esm/tests/test-lib.d.ts.map +1 -1
- package/dist/esm/tests/test-lib.js +7 -3
- package/dist/esm/tests/test-lib.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/types/lib/api/ci-greenlight.d.ts +1 -1
- package/dist/types/lib/api/ci-greenlight.d.ts.map +1 -1
- package/dist/types/lib/api/generate-signed-url-for-run-inputs-executables.d.ts +1 -1
- package/dist/types/lib/api/generate-signed-url-for-run-inputs-executables.d.ts.map +1 -1
- package/dist/types/lib/api/generate-signed-url-for-team-storage.d.ts +1 -1
- package/dist/types/lib/api/generate-signed-url-for-team-storage.d.ts.map +1 -1
- package/dist/types/lib/api/graphql.d.ts +15 -5
- package/dist/types/lib/api/graphql.d.ts.map +1 -1
- package/dist/types/lib/api/log.d.ts +7 -0
- package/dist/types/lib/api/log.d.ts.map +1 -0
- package/dist/types/lib/sdk/domain/attemptDeploy/index.d.ts +1 -35
- package/dist/types/lib/sdk/domain/attemptDeploy/index.d.ts.map +1 -1
- package/dist/types/lib/sdk/domain/attemptDeploy/types.d.ts +38 -0
- package/dist/types/lib/sdk/domain/attemptDeploy/types.d.ts.map +1 -1
- package/dist/types/lib/sdk/domain/legacy_previewTesting/index.d.ts +1 -1
- package/dist/types/lib/sdk/domain/legacy_previewTesting/index.d.ts.map +1 -1
- package/dist/types/lib/sdk/domain/vcsBranchTesting/index.d.ts +2 -2
- package/dist/types/lib/sdk/domain/vcsBranchTesting/index.d.ts.map +1 -1
- package/dist/types/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.d.ts +1 -0
- package/dist/types/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.d.ts.map +1 -1
- package/dist/types/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.d.ts +1 -0
- package/dist/types/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.d.ts.map +1 -1
- package/dist/types/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/index.d.ts +6 -0
- package/dist/types/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/index.d.ts.map +1 -0
- package/dist/{esm/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-build-deployed.d.ts → types/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/types.d.ts} +3 -5
- package/dist/types/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/types.d.ts.map +1 -0
- package/dist/types/lib/sdk/index.d.ts +2 -2
- package/dist/types/tests/test-lib.d.ts +2 -2
- package/dist/types/tests/test-lib.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/lib/graphql-error.d.ts +0 -23
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/lib/graphql-error.d.ts.map +0 -1
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/lib/graphql-error.js +0 -26
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/lib/graphql-error.js.map +0 -1
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-build-deployed.d.ts.map +0 -1
- package/dist/cjs/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-build-deployed.js.map +0 -1
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/lib/graphql-error.d.ts +0 -23
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/lib/graphql-error.d.ts.map +0 -1
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/lib/graphql-error.js +0 -23
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/lib/graphql-error.js.map +0 -1
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-build-deployed.d.ts.map +0 -1
- package/dist/esm/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-build-deployed.js.map +0 -1
- package/dist/types/lib/sdk/domain/vcsBranchTesting/lib/graphql-error.d.ts +0 -23
- package/dist/types/lib/sdk/domain/vcsBranchTesting/lib/graphql-error.d.ts.map +0 -1
- package/dist/types/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-build-deployed.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/legacy_previewTesting/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAO1D,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,EAAE,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC;AAED,wBAAsB,WAAW,CAC/B,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/legacy_previewTesting/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAO1D,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,EAAE,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC;AAED,wBAAsB,WAAW,CAC/B,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,iBAAiB,gEAoB1B;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,iBAG3B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type SdkDependencies } from "../../dependencies";
|
|
2
|
-
import { type NotifyBuildDeployedInput, type NotifyBuildDeployedResult } from "./notify-vcs-branch-build-deployed";
|
|
3
2
|
import { type NotifyMergeCanceledResult, type NotifyVCSBranchMergeCanceledInput } from "./notify-vcs-branch-merge-canceled";
|
|
4
3
|
import { type NotifyMergeCompletedResult, type NotifyVCSBranchMergeCompletedInput } from "./notify-vcs-branch-merge-completed";
|
|
4
|
+
import { type NotifyBuildDeployedInput, type NotifyBuildDeployedResult } from "./notifyVCSBranchBuildDeployed";
|
|
5
5
|
export * from "./lib/aliases";
|
|
6
|
-
export type { NotifyBuildDeployedInput, NotifyBuildDeployedResult, } from "./notify-vcs-branch-build-deployed";
|
|
7
6
|
export type { NotifyMergeCanceledResult, NotifyVCSBranchMergeCanceledInput, } from "./notify-vcs-branch-merge-canceled";
|
|
8
7
|
export type { NotifyMergeCompletedResult, NotifyVCSBranchMergeCompletedInput, } from "./notify-vcs-branch-merge-completed";
|
|
8
|
+
export type { NotifyBuildDeployedInput, NotifyBuildDeployedResult, } from "./notifyVCSBranchBuildDeployed";
|
|
9
9
|
export * from "./types";
|
|
10
10
|
export declare function makeVCSBranchTestingSDK({ apiKey, serviceBase, userAgent, }: {
|
|
11
11
|
apiKey: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/vcsBranchTesting/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/vcsBranchTesting/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,EAEvC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,EAExC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE/B,MAAM,gCAAgC,CAAC;AAExC,cAAc,eAAe,CAAC;AAC9B,YAAY,EACV,yBAAyB,EACzB,iCAAiC,GAClC,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,0BAA0B,EAC1B,kCAAkC,GACnC,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACV,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,gCAAgC,CAAC;AACxC,cAAc,SAAS,CAAC;AAExB,wBAAgB,uBAAuB,CACrC,EACE,MAAM,EACN,WAAgC,EAChC,SAA4B,GAC7B,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,EACD,EACE,KAAoB,EACpB,GAAsB,GACvB,GAAE,OAAO,CAAC,eAAe,CAAM,GAC/B,mBAAmB,CAoBrB;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;;;OAMG;IACH,4BAA4B,CAC1B,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;OAIG;IACH,4BAA4B,CAC1B,KAAK,EAAE,iCAAiC,GACvC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;OAIG;IACH,6BAA6B,CAC3B,KAAK,EAAE,kCAAkC,GACxC,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACxC,CAAC"}
|
|
@@ -6,16 +6,16 @@ const fetch_1 = require("../../defaults/fetch");
|
|
|
6
6
|
const log_1 = require("../../defaults/log");
|
|
7
7
|
const serviceBase_1 = require("../../defaults/serviceBase");
|
|
8
8
|
const userAgent_1 = require("../../defaults/userAgent");
|
|
9
|
-
const notify_vcs_branch_build_deployed_1 = require("./notify-vcs-branch-build-deployed");
|
|
10
9
|
const notify_vcs_branch_merge_canceled_1 = require("./notify-vcs-branch-merge-canceled");
|
|
11
10
|
const notify_vcs_branch_merge_completed_1 = require("./notify-vcs-branch-merge-completed");
|
|
11
|
+
const notifyVCSBranchBuildDeployed_1 = require("./notifyVCSBranchBuildDeployed");
|
|
12
12
|
tslib_1.__exportStar(require("./lib/aliases"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./types"), exports);
|
|
14
14
|
function makeVCSBranchTestingSDK({ apiKey, serviceBase = serviceBase_1.defaultServiceBase, userAgent = userAgent_1.defaultUserAgent, }, { fetch = fetch_1.defaultFetch, log = log_1.defaultLogDriver, } = {}) {
|
|
15
15
|
const deps = { fetch, log };
|
|
16
16
|
const apiConfig = { apiKey, serviceBase, userAgent };
|
|
17
17
|
return {
|
|
18
|
-
notifyVCSBranchBuildDeployed:
|
|
18
|
+
notifyVCSBranchBuildDeployed: notifyVCSBranchBuildDeployed_1.notifyVCSBranchBuildDeployed.bind(null, deps, apiConfig),
|
|
19
19
|
notifyVCSBranchMergeCanceled: notify_vcs_branch_merge_canceled_1.notifyVCSBranchMergeCanceled.bind(null, deps, apiConfig),
|
|
20
20
|
notifyVCSBranchMergeCompleted: notify_vcs_branch_merge_completed_1.notifyVCSBranchMergeCompleted.bind(null, deps, apiConfig),
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/vcsBranchTesting/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/vcsBranchTesting/index.ts"],"names":[],"mappings":";;AAsCA,0DAkCC;;AAvED,gDAAoD;AACpD,4CAAsD;AACtD,4DAAgE;AAChE,wDAA4D;AAG5D,yFAI4C;AAC5C,2FAI6C;AAC7C,iFAIwC;AAExC,wDAA8B;AAa9B,kDAAwB;AAExB,SAAgB,uBAAuB,CACrC,EACE,MAAM,EACN,WAAW,GAAG,gCAAkB,EAChC,SAAS,GAAG,4BAAgB,GAK7B,EACD,EACE,KAAK,GAAG,oBAAY,EACpB,GAAG,GAAG,sBAAgB,MACM,EAAE;IAEhC,MAAM,IAAI,GAAoB,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC;IAC7C,MAAM,SAAS,GAAc,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;IAChE,OAAO;QACL,4BAA4B,EAAE,2DAA4B,CAAC,IAAI,CAC7D,IAAI,EACJ,IAAI,EACJ,SAAS,CACV;QACD,4BAA4B,EAAE,+DAA4B,CAAC,IAAI,CAC7D,IAAI,EACJ,IAAI,EACJ,SAAS,CACV;QACD,6BAA6B,EAAE,iEAA6B,CAAC,IAAI,CAC/D,IAAI,EACJ,IAAI,EACJ,SAAS,CACV;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify-vcs-branch-merge-canceled.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"notify-vcs-branch-merge-canceled.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAI1D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA2CnD,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,iCAAiC,GACvC,OAAO,CAAC,yBAAyB,CAAC,CAYpC;AAED,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;CAC9B,GAAG,mBAAmB,CAAC;AAExB,MAAM,MAAM,8BAA8B,GACtC,WAAW,GACX,iBAAiB,GACjB,eAAe,GACf,cAAc,GACd,eAAe,GACf,4BAA4B,GAC5B,0CAA0C,GAC1C,iDAAiD,CAAC;AAEtD,MAAM,MAAM,yBAAyB,GACjC;IACE,OAAO,EAAE,SAAS,CAAC;CACpB,GACD;IACE,WAAW,EAAE,8BAA8B,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,SAAS,CAAC;CACpB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.notifyVCSBranchMergeCanceled = notifyVCSBranchMergeCanceled;
|
|
4
|
+
const graphql_1 = require("../../../api/graphql");
|
|
4
5
|
const notify_vcs_branch_merge_canceled_mutation_1 = require("../../../api/notify-vcs-branch-merge-canceled-mutation");
|
|
5
6
|
const domain_failure_1 = require("./lib/domain-failure");
|
|
6
|
-
const graphql_error_1 = require("./lib/graphql-error");
|
|
7
7
|
const retry_1 = require("./lib/retry");
|
|
8
8
|
async function runNotifyVCSMergeCanceledOnce(deps, apiConfig, input) {
|
|
9
9
|
const log = deps.log;
|
|
@@ -12,11 +12,16 @@ async function runNotifyVCSMergeCanceledOnce(deps, apiConfig, input) {
|
|
|
12
12
|
headEnvironmentAlias,
|
|
13
13
|
});
|
|
14
14
|
if (resp.isGqlError) {
|
|
15
|
-
|
|
16
|
-
graphQLPayload: resp,
|
|
15
|
+
(0, graphql_1.logGraphQLError)({
|
|
17
16
|
log,
|
|
18
17
|
methodName: "notifyVCSBranchMergeCanceled",
|
|
18
|
+
payload: resp,
|
|
19
19
|
});
|
|
20
|
+
return {
|
|
21
|
+
abortReason: resp.abortReason,
|
|
22
|
+
eventId: resp.eventId,
|
|
23
|
+
outcome: "aborted",
|
|
24
|
+
};
|
|
20
25
|
}
|
|
21
26
|
const result = resp.responseBody;
|
|
22
27
|
if (result.outcome === "success") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify-vcs-branch-merge-canceled.js","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"notify-vcs-branch-merge-canceled.js","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-canceled.ts"],"names":[],"mappings":";;AAkDA,oEAgBC;AAjED,kDAAuD;AACvD,sHAAkH;AAGlH,yDAAkE;AAClE,uCAA0D;AAG1D,KAAK,UAAU,6BAA6B,CAC1C,IAAqB,EACrB,SAAoB,EACpB,KAAwC;IAExC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;IACrB,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,IAAI,GAAG,MAAM,IAAA,oFAAwC,EAAC,IAAI,EAAE,SAAS,EAAE;QAC3E,oBAAoB;KACrB,CAAC,CAAC;IACH,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;QACpB,IAAA,yBAAe,EAAC;YACd,GAAG;YACH,UAAU,EAAE,8BAA8B;YAC1C,OAAO,EAAE,IAAI;SACd,CAAC,CAAC;QACH,OAAO;YACL,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC;IACjC,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QACjC,GAAG,CAAC,IAAI,CACN,mGAAmG,CACpG,CAAC;QACF,OAAO;YACL,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,OAA0B,CAAC;IAElC,OAAO,IAAA,2CAA0B,EAAC;QAChC,GAAG;QACH,UAAU,EAAE,8BAA8B;QAC1C,MAAM;KACP,CAAC,CAAC;AACL,CAAC;AAEM,KAAK,UAAU,4BAA4B,CAChD,IAAqB,EACrB,SAAoB,EACpB,KAAwC;IAExC,MAAM,EAAE,UAAU,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAClC,OAAO,IAAA,mCAA2B,EAAC;QACjC,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,UAAU;QACV,UAAU,EAAE,8BAA8B;QAC1C,qBAAqB,EAAE;YACrB,eAAe;YACf,cAAc;SACqC;QACrD,OAAO,EAAE,GAAG,EAAE,CAAC,6BAA6B,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC;KACrE,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify-vcs-branch-merge-completed.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"notify-vcs-branch-merge-completed.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAI1D,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC9B,MAAM,SAAS,CAAC;AA0DjB,wBAAsB,6BAA6B,CACjD,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,kCAAkC,GACxC,OAAO,CAAC,0BAA0B,CAAC,CAYrC;AAED,MAAM,MAAM,kCAAkC,GAAG,wBAAwB,GACvE,mBAAmB,CAAC;AAEtB,MAAM,MAAM,qCAAqC,GAC7C,WAAW,GACX,iBAAiB,GACjB,eAAe,GACf,cAAc,GACd,eAAe,GACf,4BAA4B,GAC5B,4BAA4B,GAC5B,0CAA0C,GAC1C,iDAAiD,CAAC;AAEtD,MAAM,MAAM,0BAA0B,GAClC;IACE,OAAO,EAAE,SAAS,CAAC;CACpB,GACD;IACE,WAAW,EAAE,qCAAqC,CAAC;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,SAAS,CAAC;CACpB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.notifyVCSBranchMergeCompleted = notifyVCSBranchMergeCompleted;
|
|
4
|
+
const graphql_1 = require("../../../api/graphql");
|
|
4
5
|
const notify_vcs_branch_merge_completed_mutation_1 = require("../../../api/notify-vcs-branch-merge-completed-mutation");
|
|
5
6
|
const domain_failure_1 = require("./lib/domain-failure");
|
|
6
|
-
const graphql_error_1 = require("./lib/graphql-error");
|
|
7
7
|
const retry_1 = require("./lib/retry");
|
|
8
8
|
async function runNotifyVCSBranchMergeCompletedOnce(deps, apiConfig, input) {
|
|
9
9
|
const log = deps.log;
|
|
@@ -17,11 +17,16 @@ async function runNotifyVCSBranchMergeCompletedOnce(deps, apiConfig, input) {
|
|
|
17
17
|
headEnvironmentAlias: input.headEnvironmentAlias,
|
|
18
18
|
});
|
|
19
19
|
if (resp.isGqlError) {
|
|
20
|
-
|
|
21
|
-
graphQLPayload: resp,
|
|
20
|
+
(0, graphql_1.logGraphQLError)({
|
|
22
21
|
log,
|
|
23
22
|
methodName: "notifyVCSBranchMergeCompleted",
|
|
23
|
+
payload: resp,
|
|
24
24
|
});
|
|
25
|
+
return {
|
|
26
|
+
abortReason: resp.abortReason,
|
|
27
|
+
eventId: resp.eventId,
|
|
28
|
+
outcome: "aborted",
|
|
29
|
+
};
|
|
25
30
|
}
|
|
26
31
|
const result = resp.responseBody;
|
|
27
32
|
if (result.outcome === "success") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify-vcs-branch-merge-completed.js","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"notify-vcs-branch-merge-completed.js","sourceRoot":"","sources":["../../../../../../src/lib/sdk/domain/vcsBranchTesting/notify-vcs-branch-merge-completed.ts"],"names":[],"mappings":";;AAoEA,sEAgBC;AAnFD,kDAAuD;AACvD,wHAAoH;AAGpH,yDAAkE;AAClE,uCAA0D;AAM1D,KAAK,UAAU,oCAAoC,CACjD,IAAqB,EACrB,SAAoB,EACpB,KAAyC;IAEzC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;IACrB,MAAM,EAAE,uBAAuB,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IACxE,MAAM,oBAAoB,GAAG,uBAAuB,EAAE,IAAI,CACxD,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,KAAK,aAAa,CACjD,EAAE,gBAAgB,CAAC;IAEpB,IAAI,oBAAoB,KAAK,SAAS,EAAE,CAAC;QACvC,GAAG,CAAC,IAAI,CACN,wFAAwF,aAAa,kDAAkD,CACxJ,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,IAAA,sFAAyC,EAC1D,IAAI,EACJ,SAAS,EACT;QACE,oBAAoB;QACpB,oBAAoB,EAAE,KAAK,CAAC,oBAAoB;KACjD,CACF,CAAC;IACF,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;QACpB,IAAA,yBAAe,EAAC;YACd,GAAG;YACH,UAAU,EAAE,+BAA+B;YAC3C,OAAO,EAAE,IAAI;SACd,CAAC,CAAC;QACH,OAAO;YACL,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC;IACjC,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QACjC,GAAG,CAAC,IAAI,CACN,qGAAqG,CACtG,CAAC;QACF,OAAO;YACL,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,OAA0B,CAAC;IAElC,OAAO,IAAA,2CAA0B,EAAC;QAChC,GAAG;QACH,UAAU,EAAE,+BAA+B;QAC3C,MAAM;KACP,CAAC,CAAC;AACL,CAAC;AAEM,KAAK,UAAU,6BAA6B,CACjD,IAAqB,EACrB,SAAoB,EACpB,KAAyC;IAEzC,MAAM,EAAE,UAAU,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAClC,OAAO,IAAA,mCAA2B,EAAC;QACjC,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,UAAU;QACV,UAAU,EAAE,+BAA+B;QAC3C,qBAAqB,EAAE;YACrB,eAAe;YACf,cAAc;SAC4C;QAC5D,OAAO,EAAE,GAAG,EAAE,CAAC,oCAAoC,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC;KAC5E,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ApiConfig } from "../../../../api-types";
|
|
2
|
+
import { type SdkDependencies } from "../../../dependencies";
|
|
3
|
+
import { type NotifyBuildDeployedAbortReason, type NotifyBuildDeployedInput, type NotifyBuildDeployedResult } from "./types";
|
|
4
|
+
export declare function notifyVCSBranchBuildDeployed(deps: SdkDependencies, apiConfig: ApiConfig, input: NotifyBuildDeployedInput): Promise<NotifyBuildDeployedResult>;
|
|
5
|
+
export type { NotifyBuildDeployedAbortReason, NotifyBuildDeployedInput, NotifyBuildDeployedResult, };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAI7D,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC/B,MAAM,SAAS,CAAC;AAmGjB,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,yBAAyB,CAAC,CAapC;AAED,YAAY,EACV,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,GAC1B,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.notifyVCSBranchBuildDeployed = notifyVCSBranchBuildDeployed;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const retry_1 = require("
|
|
4
|
+
const graphql_1 = require("../../../../api/graphql");
|
|
5
|
+
const notify_vcs_branch_build_deployed_mutation_1 = require("../../../../api/notify-vcs-branch-build-deployed-mutation");
|
|
6
|
+
const domain_failure_1 = require("../lib/domain-failure");
|
|
7
|
+
const retry_1 = require("../lib/retry");
|
|
8
8
|
async function runNotifyVCSBranchBuildDeployedOnce(deps, apiConfig, input) {
|
|
9
9
|
const { baseEnvironmentsMapping, baseVcsBranch, concurrencyLimit, headEnvironmentAlias, headEnvironmentName, headEnvironmentVariables, headVcsBranch, headVcsCommitId, headVcsCommitUrl, pullOrMergeRequestNumber, } = input;
|
|
10
10
|
const log = deps.log;
|
|
@@ -42,11 +42,16 @@ async function runNotifyVCSBranchBuildDeployedOnce(deps, apiConfig, input) {
|
|
|
42
42
|
pullOrMergeRequestNumber,
|
|
43
43
|
});
|
|
44
44
|
if (resp.isGqlError) {
|
|
45
|
-
|
|
46
|
-
graphQLPayload: resp,
|
|
45
|
+
(0, graphql_1.logGraphQLError)({
|
|
47
46
|
log,
|
|
48
47
|
methodName: "notifyVCSBranchBuildDeployed",
|
|
48
|
+
payload: resp,
|
|
49
49
|
});
|
|
50
|
+
return {
|
|
51
|
+
abortReason: resp.abortReason,
|
|
52
|
+
eventId: resp.eventId,
|
|
53
|
+
outcome: "aborted",
|
|
54
|
+
};
|
|
50
55
|
}
|
|
51
56
|
const result = resp.responseBody;
|
|
52
57
|
if (result.outcome === "success") {
|
|
@@ -81,4 +86,4 @@ async function notifyVCSBranchBuildDeployed(deps, apiConfig, input) {
|
|
|
81
86
|
runOnce: () => runNotifyVCSBranchBuildDeployedOnce(deps, apiConfig, input),
|
|
82
87
|
});
|
|
83
88
|
}
|
|
84
|
-
//# sourceMappingURL=
|
|
89
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/index.ts"],"names":[],"mappings":";;AA8GA,oEAiBC;AA9HD,qDAA0D;AAC1D,yHAAqH;AAErH,0DAAmE;AACnE,wCAA2D;AAQ3D,KAAK,UAAU,mCAAmC,CAChD,IAAqB,EACrB,SAAoB,EACpB,KAA+B;IAE/B,MAAM,EACJ,uBAAuB,EACvB,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,wBAAwB,GACzB,GAAG,KAAK,CAAC;IACV,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;IACrB,MAAM,oBAAoB,GAAG,uBAAuB,EAAE,IAAI,CACxD,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,KAAK,aAAa,CACjD,EAAE,gBAAgB,CAAC;IAEpB,IAAI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AC;QACjC,MAAM,eAAe,GACnB,MAAM,CAAC,sCAAsC,IAAI,IAAI;YACnD,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,2CAA2C,MAAM,CAAC,sCAAsC,IAAI,CAAC;QACnG,GAAG,CAAC,IAAI,CACN,wEAAwE,MAAM,CAAC,KAAK,IAAI,eAAe,EAAE,CAC1G,CAAC;QACF,OAAO;YACL,kCAAkC,EAChC,MAAM,CAAC,sCAAsC,IAAI,SAAS;YAC5D,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,OAA0B,CAAC;IAElC,OAAO,IAAA,2CAA0B,EAAC;QAChC,GAAG;QACH,UAAU,EAAE,8BAA8B;QAC1C,MAAM;KACP,CAAC,CAAC;AACL,CAAC;AAEM,KAAK,UAAU,4BAA4B,CAChD,IAAqB,EACrB,SAAoB,EACpB,KAA+B;IAE/B,MAAM,EAAE,UAAU,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAClC,OAAO,IAAA,mCAA2B,EAAC;QACjC,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,UAAU;QACV,UAAU,EAAE,8BAA8B;QAC1C,qBAAqB,EAAE;YACrB,eAAe;YACf,cAAc;YACd,qBAAqB;SAC8B;QACrD,OAAO,EAAE,GAAG,EAAE,CAAC,mCAAmC,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC;KAC3E,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type SdkDependencies } from "../../dependencies";
|
|
3
|
-
import { type BaseVCSBranchConfig, type PullRequestTestingLayout } from "./types";
|
|
4
|
-
export declare function notifyVCSBranchBuildDeployed(deps: SdkDependencies, apiConfig: ApiConfig, input: NotifyBuildDeployedInput): Promise<NotifyBuildDeployedResult>;
|
|
1
|
+
import { type BaseVCSBranchConfig, type PullRequestTestingLayout } from "../types";
|
|
5
2
|
export type NotifyBuildDeployedInput = PullRequestTestingLayout & BaseVCSBranchConfig & {
|
|
6
3
|
/**
|
|
7
4
|
* A natural positive integer that defines the maximum number of concurrent
|
|
@@ -60,6 +57,7 @@ export type NotifyBuildDeployedResult = {
|
|
|
60
57
|
runId: string;
|
|
61
58
|
} | {
|
|
62
59
|
abortReason: NotifyBuildDeployedAbortReason;
|
|
60
|
+
eventId?: string;
|
|
63
61
|
outcome: "aborted";
|
|
64
62
|
};
|
|
65
|
-
//# sourceMappingURL=
|
|
63
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC9B,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,GAC7D,mBAAmB,GAAG;IACpB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC,CAAC;AAEJ,MAAM,MAAM,8BAA8B,GACtC,WAAW,GACX,iBAAiB,GACjB,eAAe,GACf,cAAc,GACd,eAAe,GACf,4BAA4B,GAC5B,wBAAwB,GACxB,sBAAsB,GACtB,wBAAwB,GACxB,0CAA0C,GAC1C,iDAAiD,GACjD,qBAAqB,CAAC;AAE1B,MAAM,MAAM,yBAAyB,GACjC;IACE;;;;OAIG;IACH,kCAAkC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACpE,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,GACD;IACE,WAAW,EAAE,8BAA8B,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,SAAS,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../src/lib/sdk/domain/vcsBranchTesting/notifyVCSBranchBuildDeployed/types.ts"],"names":[],"mappings":""}
|
|
@@ -4,7 +4,7 @@ export declare function makeQaWolfSdk({ apiKey, serviceBase, userAgent, }: {
|
|
|
4
4
|
serviceBase?: string;
|
|
5
5
|
userAgent?: string;
|
|
6
6
|
}, { fetch, log, }?: Partial<SdkDependencies>): {
|
|
7
|
-
attemptNotifyDeploy: (config: Partial<import("../..").DeployConfig>) => Promise<import("
|
|
7
|
+
attemptNotifyDeploy: (config: Partial<import("../..").DeployConfig>) => Promise<import("../..").NotifyDeployStatus>;
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated Use `experimental_vcsBranchTesting` instead.
|
|
10
10
|
*/
|
|
@@ -14,7 +14,7 @@ export declare function makeQaWolfSdk({ apiKey, serviceBase, userAgent, }: {
|
|
|
14
14
|
/**
|
|
15
15
|
* @deprecated Use `experimental_vcsBranchTesting` instead.
|
|
16
16
|
*/
|
|
17
|
-
experimental_testPreview: (config: import("./domain/legacy_previewTesting/index").TestPreviewParams) => Promise<import("
|
|
17
|
+
experimental_testPreview: (config: import("./domain/legacy_previewTesting/index").TestPreviewParams) => Promise<import("../..").NotifyDeployStatus>;
|
|
18
18
|
experimental_vcsBranchTesting: import("./domain/vcsBranchTesting").VCSBranchTestingSDK;
|
|
19
19
|
generateSignedUrlForRunInputsExecutablesStorage: (config: import("./domain/generateSignedUrls/types").GenerateSignedUrlConfig) => Promise<import("./domain/generateSignedUrls/types").GenerateSignedUrlStatus>;
|
|
20
20
|
generateSignedUrlForTempTeamStorage: (config: import("./domain/generateSignedUrls/types").GenerateSignedUrlConfig) => Promise<{
|
|
@@ -11,11 +11,11 @@ export declare function makeQaWolfSdkForTest({ apiKey }: {
|
|
|
11
11
|
}): {
|
|
12
12
|
fetch: import("jest-mock").Mock<() => Promise<Response>>;
|
|
13
13
|
sdk: {
|
|
14
|
-
attemptNotifyDeploy: (config: Partial<import("..").DeployConfig>) => Promise<import("
|
|
14
|
+
attemptNotifyDeploy: (config: Partial<import("..").DeployConfig>) => Promise<import("..").NotifyDeployStatus>;
|
|
15
15
|
experimental_removeEnvironment: (config: {
|
|
16
16
|
branch: string;
|
|
17
17
|
}) => Promise<void>;
|
|
18
|
-
experimental_testPreview: (config: import("../lib/sdk/domain/legacy_previewTesting").TestPreviewParams) => Promise<import("
|
|
18
|
+
experimental_testPreview: (config: import("../lib/sdk/domain/legacy_previewTesting").TestPreviewParams) => Promise<import("..").NotifyDeployStatus>;
|
|
19
19
|
experimental_vcsBranchTesting: import("../lib/sdk/index").VCSBranchTestingSDK;
|
|
20
20
|
generateSignedUrlForRunInputsExecutablesStorage: (config: import("../lib/sdk/index").GenerateSignedUrlConfig) => Promise<import("../lib/sdk/index").GenerateSignedUrlStatus>;
|
|
21
21
|
generateSignedUrlForTempTeamStorage: (config: import("../lib/sdk/index").GenerateSignedUrlConfig) => Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-lib.d.ts","sourceRoot":"","sources":["../../../src/tests/test-lib.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAavE,wBAAgB,8BAA8B,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;;EAiB5E;AAED,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;EAiBlE;AAED,wBAAgB,aAAa,CAAC,YAAY,EACxC,QAAQ,EAAE,YAAY,EACtB,MAAM,SAAM,GACX,QAAQ,CAOV;AAED,wBAAgB,2BAA2B,IAAI,sBAAsB,CAWpE;
|
|
1
|
+
{"version":3,"file":"test-lib.d.ts","sourceRoot":"","sources":["../../../src/tests/test-lib.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAavE,wBAAgB,8BAA8B,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;;EAiB5E;AAED,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;EAiBlE;AAED,wBAAgB,aAAa,CAAC,YAAY,EACxC,QAAQ,EAAE,YAAY,EACtB,MAAM,SAAM,GACX,QAAQ,CAOV;AAED,wBAAgB,2BAA2B,IAAI,sBAAsB,CAWpE;AAED,wBAAgB,UAAU;;mDAMrB;QACD,SAAS,EAAE,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC,OAAO,CAAC,CAAC;QACtE,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;KAChC;EAuFF"}
|
|
@@ -74,7 +74,7 @@ function setupTests() {
|
|
|
74
74
|
return buildResponse({
|
|
75
75
|
errors: [
|
|
76
76
|
{
|
|
77
|
-
extensions:
|
|
77
|
+
extensions: { code: "INTERNAL", eventId: "eventId" },
|
|
78
78
|
message: "INTERNAL",
|
|
79
79
|
},
|
|
80
80
|
],
|
|
@@ -82,6 +82,7 @@ function setupTests() {
|
|
|
82
82
|
});
|
|
83
83
|
const expectedValue = {
|
|
84
84
|
abortReason: "server-error",
|
|
85
|
+
eventId: "eventId",
|
|
85
86
|
outcome: "aborted",
|
|
86
87
|
};
|
|
87
88
|
const promise = method();
|
|
@@ -96,6 +97,7 @@ function setupTests() {
|
|
|
96
97
|
fetchMock.mockRejectedValue(Error("network error"));
|
|
97
98
|
const expectedValue = {
|
|
98
99
|
abortReason: "network-error",
|
|
100
|
+
eventId: undefined,
|
|
99
101
|
outcome: "aborted",
|
|
100
102
|
};
|
|
101
103
|
const promise = method();
|
|
@@ -110,13 +112,14 @@ function setupTests() {
|
|
|
110
112
|
fetchMock.mockResolvedValueOnce(buildResponse({
|
|
111
113
|
errors: [
|
|
112
114
|
{
|
|
113
|
-
extensions:
|
|
115
|
+
extensions: { code: "UNAUTHENTICATED", eventId: "eventId" },
|
|
114
116
|
message: "UNAUTHENTICATED",
|
|
115
117
|
},
|
|
116
118
|
],
|
|
117
119
|
}));
|
|
118
120
|
const expectedValue = {
|
|
119
121
|
abortReason: "unauthenticated",
|
|
122
|
+
eventId: "eventId",
|
|
120
123
|
outcome: "aborted",
|
|
121
124
|
};
|
|
122
125
|
await expect(method()).resolves.toEqual(expectedValue);
|
|
@@ -125,13 +128,14 @@ function setupTests() {
|
|
|
125
128
|
fetchMock.mockResolvedValueOnce(buildResponse({
|
|
126
129
|
errors: [
|
|
127
130
|
{
|
|
128
|
-
extensions:
|
|
131
|
+
extensions: { code: "FORBIDDEN", eventId: "eventId" },
|
|
129
132
|
message: "FORBIDDEN",
|
|
130
133
|
},
|
|
131
134
|
],
|
|
132
135
|
}));
|
|
133
136
|
const expectedValue = {
|
|
134
137
|
abortReason: "forbidden",
|
|
138
|
+
eventId: "eventId",
|
|
135
139
|
outcome: "aborted",
|
|
136
140
|
};
|
|
137
141
|
await expect(method()).resolves.toEqual(expectedValue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-lib.js","sourceRoot":"","sources":["../../../src/tests/test-lib.ts"],"names":[],"mappings":";;AAiBA,wEAiBC;AAED,o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;QACH,EAAE,CAAC,uCAAuC,EAAE,KAAK,IAAI,EAAE;YACrD,SAAS,CAAC,qBAAqB,CAC7B,aAAa,CAAqC;gBAChD,MAAM,EAAE;oBACN;wBACE,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE;wBACrD,OAAO,EAAE,WAAW;qBACrB;iBACF;aACF,CAAC,CACH,CAAC;YACF,MAAM,aAAa,GAAG;gBACpB,WAAW,EAAE,WAAW;gBACxB,OAAO,EAAE,SAAS;gBAClB,OAAO,EAAE,SAAS;aACnB,CAAC;YACF,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,GAAG,EAAE;QACZ,KAAK,CAAC,SAAS,EAAE,CAAC;IACpB,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,KAAK;QACL,oBAAoB;KACrB,CAAC;AACJ,CAAC"}
|
|
@@ -111,7 +111,7 @@ export type CiGreenlightStatus = CiGreenlightStatusBase & (({
|
|
|
111
111
|
});
|
|
112
112
|
export declare function fetchCiGreenlightStatus({ apiKey, serviceBase, userAgent }: ApiConfig, { runId, }: {
|
|
113
113
|
runId: string;
|
|
114
|
-
}, { fetch: localFetch }: SdkDependencies): Promise<{
|
|
114
|
+
}, { fetch: localFetch, log }: SdkDependencies): Promise<{
|
|
115
115
|
readonly greenlightStatus: CiGreenlightStatus;
|
|
116
116
|
readonly httpStatus: number;
|
|
117
117
|
readonly ok: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-greenlight.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/ci-greenlight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|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IACvB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,8BAA8B,EAAE,MAAM,CAAC;IACvC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gCAAgC,EAAE,MAAM,CAAC;CAC1C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GACrD,CACI,CAAC;IACC,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,WAAW,CAAC;CACvB,GAAG,mBAAmB,CAAC,GACxB,CAAC;IACC,UAAU,EAAE,KAAK,CAAC;IAClB,QAAQ,EAAE,aAAa,CAAC;CACzB,GAAG,mBAAmB,CAAC,GACxB;IACE,UAAU,EAAE,KAAK,CAAC;IAClB,QAAQ,EAAE,cAAc,GAAG,aAAa,GAAG,UAAU,CAAC;CACvD,CACJ,CAAC;AAEJ,wBAAsB,uBAAuB,CAC3C,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,SAAS,EAC7C,EACE,KAAK,GACN,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;CACf,EACD,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2D5C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { logFetchError } from "./log";
|
|
2
|
+
export async function fetchCiGreenlightStatus({ apiKey, serviceBase, userAgent }, { runId, }, { fetch: localFetch, log }) {
|
|
2
3
|
try {
|
|
3
4
|
const resp = await localFetch(new URL(`/api/v0/ci-greenlight/${encodeURIComponent(runId)}`, serviceBase), {
|
|
4
5
|
headers: {
|
|
@@ -14,6 +15,11 @@ export async function fetchCiGreenlightStatus({ apiKey, serviceBase, userAgent }
|
|
|
14
15
|
ok: true,
|
|
15
16
|
};
|
|
16
17
|
}
|
|
18
|
+
await logFetchError({
|
|
19
|
+
log,
|
|
20
|
+
methodName: "fetchCiGreenlightStatus",
|
|
21
|
+
response: resp,
|
|
22
|
+
});
|
|
17
23
|
if (resp.status === 404) {
|
|
18
24
|
return {
|
|
19
25
|
canRetry: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-greenlight.js","sourceRoot":"","sources":["../../../../src/lib/api/ci-greenlight.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ci-greenlight.js","sourceRoot":"","sources":["../../../../src/lib/api/ci-greenlight.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AA2HtC,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAa,EAC7C,EACE,KAAK,GAGN,EACD,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAmB;IAE3C,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,UAAU,CAC3B,IAAI,GAAG,CACL,yBAAyB,kBAAkB,CAAC,KAAK,CAAC,EAAE,EACpD,WAAW,CACZ,EACD;YACE,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,MAAM,EAAE;gBACjC,YAAY,EAAE,SAAS;aACxB;SACF,CACF,CAAC;QAEF,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;YACZ,MAAM,gBAAgB,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAuB,CAAC;YACnE,OAAO;gBACL,gBAAgB;gBAChB,UAAU,EAAE,IAAI,CAAC,MAAM;gBACvB,EAAE,EAAE,IAAI;aACA,CAAC;QACb,CAAC;QACD,MAAM,aAAa,CAAC;YAClB,GAAG;YACH,UAAU,EAAE,yBAAyB;YACrC,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC;QACH,IAAI,IAAI,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YACxB,OAAO;gBACL,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,WAAW;gBACtB,UAAU,EAAE,IAAI,CAAC,MAAM;gBACvB,EAAE,EAAE,KAAK;aACD,CAAC;QACb,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,GAAG,EAAE,CAAC;YACvB,OAAO;gBACL,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,QAAQ;gBACnB,UAAU,EAAE,IAAI,CAAC,MAAM;gBACvB,EAAE,EAAE,KAAK;aACD,CAAC;QACb,CAAC;QACD,OAAO;YACL,QAAQ,EAAE,KAAK;YACf,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,IAAI,CAAC,MAAM;YACvB,EAAE,EAAE,KAAK;SACD,CAAC;IACb,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO;YACL,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,CAAC;YACb,EAAE,EAAE,KAAK;SACD,CAAC;IACb,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ApiConfig } from "../api-types";
|
|
2
2
|
import { type SdkDependencies } from "../sdk/dependencies";
|
|
3
3
|
import { type GenerateSignedUrlConfig, type GenerateSignedUrlResponse } from "../sdk/domain/generateSignedUrls/types";
|
|
4
|
-
export declare function callGenerateSignedUrlForRunInputsExecutablesStorage({ apiKey, serviceBase, userAgent }: ApiConfig, { destinationFilePath }: GenerateSignedUrlConfig, { fetch: localFetch }: SdkDependencies): Promise<GenerateSignedUrlResponse>;
|
|
4
|
+
export declare function callGenerateSignedUrlForRunInputsExecutablesStorage({ apiKey, serviceBase, userAgent }: ApiConfig, { destinationFilePath }: GenerateSignedUrlConfig, { fetch: localFetch, log }: SdkDependencies): Promise<GenerateSignedUrlResponse>;
|
|
5
5
|
//# sourceMappingURL=generate-signed-url-for-run-inputs-executables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-signed-url-for-run-inputs-executables.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/generate-signed-url-for-run-inputs-executables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC/B,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"generate-signed-url-for-run-inputs-executables.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/generate-signed-url-for-run-inputs-executables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC/B,MAAM,wCAAwC,CAAC;AAIhD,wBAAsB,mDAAmD,CACvE,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,SAAS,EAC7C,EAAE,mBAAmB,EAAE,EAAE,uBAAuB,EAChD,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,eAAe,GAC1C,OAAO,CAAC,yBAAyB,CAAC,CA4CpC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { logFetchError } from "./log";
|
|
2
|
+
export async function callGenerateSignedUrlForRunInputsExecutablesStorage({ apiKey, serviceBase, userAgent }, { destinationFilePath }, { fetch: localFetch, log }) {
|
|
2
3
|
try {
|
|
3
4
|
const response = await localFetch(new URL(`${serviceBase}/api/v0/run-inputs-executables-signed-urls?file=${encodeURIComponent(destinationFilePath)}`), {
|
|
4
5
|
headers: {
|
|
@@ -18,6 +19,11 @@ export async function callGenerateSignedUrlForRunInputsExecutablesStorage({ apiK
|
|
|
18
19
|
success: true,
|
|
19
20
|
};
|
|
20
21
|
}
|
|
22
|
+
await logFetchError({
|
|
23
|
+
log,
|
|
24
|
+
methodName: "callGenerateSignedUrlForRunInputsExecutablesStorage",
|
|
25
|
+
response,
|
|
26
|
+
});
|
|
21
27
|
return {
|
|
22
28
|
errorMessage: await response.text(),
|
|
23
29
|
httpStatus: response.status,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-signed-url-for-run-inputs-executables.js","sourceRoot":"","sources":["../../../../src/lib/api/generate-signed-url-for-run-inputs-executables.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,KAAK,UAAU,mDAAmD,CACvE,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAa,EAC7C,EAAE,mBAAmB,EAA2B,EAChD,EAAE,KAAK,EAAE,UAAU,EAAmB;
|
|
1
|
+
{"version":3,"file":"generate-signed-url-for-run-inputs-executables.js","sourceRoot":"","sources":["../../../../src/lib/api/generate-signed-url-for-run-inputs-executables.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,CAAC,KAAK,UAAU,mDAAmD,CACvE,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAa,EAC7C,EAAE,mBAAmB,EAA2B,EAChD,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAmB;IAE3C,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,UAAU,CAC/B,IAAI,GAAG,CACL,GAAG,WAAW,mDAAmD,kBAAkB,CAAC,mBAAmB,CAAC,EAAE,CAC3G,EACD;YACE,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,MAAM,EAAE;gBACjC,cAAc,EAAE,kBAAkB;gBAClC,YAAY,EAAE,SAAS;aACxB;YACD,MAAM,EAAE,KAAK;SACd,CACF,CAAC;QAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC5B,MAAM,IAAI,GACR,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAuC,CAAC;YAChE,OAAO;gBACL,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,UAAU,EAAE,QAAQ,CAAC,MAAM;gBAC3B,sBAAsB,EAAE,IAAI,CAAC,sBAAsB;gBACnD,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,OAAO,EAAE,IAAI;aACL,CAAC;QACb,CAAC;QACD,MAAM,aAAa,CAAC;YAClB,GAAG;YACH,UAAU,EAAE,qDAAqD;YACjE,QAAQ;SACT,CAAC,CAAC;QACH,OAAO;YACL,YAAY,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE;YACnC,UAAU,EAAE,QAAQ,CAAC,MAAM;YAC3B,OAAO,EAAE,KAAK;SACN,CAAC;IACb,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO;YACL,YAAY,EAAE,wDAAwD;YACtE,UAAU,EAAE,CAAC;YACb,OAAO,EAAE,KAAK;SACN,CAAC;IACb,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ApiConfig } from "../api-types";
|
|
2
2
|
import { type SdkDependencies } from "../sdk/dependencies";
|
|
3
3
|
import { type GenerateSignedUrlConfig, type GenerateSignedUrlResponse } from "../sdk/domain/generateSignedUrls/types";
|
|
4
|
-
export declare function callGenerateSignedUrlForTempTeamStorage({ apiKey, serviceBase, userAgent }: ApiConfig, { destinationFilePath }: Partial<GenerateSignedUrlConfig>, { fetch: localFetch }: SdkDependencies): Promise<GenerateSignedUrlResponse>;
|
|
4
|
+
export declare function callGenerateSignedUrlForTempTeamStorage({ apiKey, serviceBase, userAgent }: ApiConfig, { destinationFilePath }: Partial<GenerateSignedUrlConfig>, { fetch: localFetch, log }: SdkDependencies): Promise<GenerateSignedUrlResponse>;
|
|
5
5
|
//# sourceMappingURL=generate-signed-url-for-team-storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-signed-url-for-team-storage.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/generate-signed-url-for-team-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC/B,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"generate-signed-url-for-team-storage.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/generate-signed-url-for-team-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC/B,MAAM,wCAAwC,CAAC;AAIhD,wBAAsB,uCAAuC,CAC3D,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,SAAS,EAC7C,EAAE,mBAAmB,EAAE,EAAE,OAAO,CAAC,uBAAuB,CAAC,EACzD,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,eAAe,GAC1C,OAAO,CAAC,yBAAyB,CAAC,CA4CpC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { logFetchError } from "./log";
|
|
2
|
+
export async function callGenerateSignedUrlForTempTeamStorage({ apiKey, serviceBase, userAgent }, { destinationFilePath }, { fetch: localFetch, log }) {
|
|
2
3
|
try {
|
|
3
4
|
const response = await localFetch(new URL(`${serviceBase}/api/v0/team-storage-signed-url?file=${destinationFilePath}`), {
|
|
4
5
|
headers: {
|
|
@@ -18,6 +19,11 @@ export async function callGenerateSignedUrlForTempTeamStorage({ apiKey, serviceB
|
|
|
18
19
|
success: true,
|
|
19
20
|
};
|
|
20
21
|
}
|
|
22
|
+
await logFetchError({
|
|
23
|
+
log,
|
|
24
|
+
methodName: "callGenerateSignedUrlForTempTeamStorage",
|
|
25
|
+
response,
|
|
26
|
+
});
|
|
21
27
|
return {
|
|
22
28
|
errorMessage: await response.text(),
|
|
23
29
|
httpStatus: response.status,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-signed-url-for-team-storage.js","sourceRoot":"","sources":["../../../../src/lib/api/generate-signed-url-for-team-storage.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,KAAK,UAAU,uCAAuC,CAC3D,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAa,EAC7C,EAAE,mBAAmB,EAAoC,EACzD,EAAE,KAAK,EAAE,UAAU,EAAmB;
|
|
1
|
+
{"version":3,"file":"generate-signed-url-for-team-storage.js","sourceRoot":"","sources":["../../../../src/lib/api/generate-signed-url-for-team-storage.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,CAAC,KAAK,UAAU,uCAAuC,CAC3D,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAa,EAC7C,EAAE,mBAAmB,EAAoC,EACzD,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAmB;IAE3C,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,UAAU,CAC/B,IAAI,GAAG,CACL,GAAG,WAAW,wCAAwC,mBAAmB,EAAE,CAC5E,EACD;YACE,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,MAAM,EAAE;gBACjC,cAAc,EAAE,kBAAkB;gBAClC,YAAY,EAAE,SAAS;aACxB;YACD,MAAM,EAAE,KAAK;SACd,CACF,CAAC;QAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC5B,MAAM,IAAI,GACR,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAuC,CAAC;YAChE,OAAO;gBACL,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,UAAU,EAAE,QAAQ,CAAC,MAAM;gBAC3B,sBAAsB,EAAE,IAAI,CAAC,sBAAsB;gBACnD,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,OAAO,EAAE,IAAI;aACL,CAAC;QACb,CAAC;QACD,MAAM,aAAa,CAAC;YAClB,GAAG;YACH,UAAU,EAAE,yCAAyC;YACrD,QAAQ;SACT,CAAC,CAAC;QACH,OAAO;YACL,YAAY,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE;YACnC,UAAU,EAAE,QAAQ,CAAC,MAAM;YAC3B,OAAO,EAAE,KAAK;SACN,CAAC;IACb,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO;YACL,YAAY,EAAE,wDAAwD;YACtE,UAAU,EAAE,CAAC;YACb,OAAO,EAAE,KAAK;SACN,CAAC;IACb,CAAC;AACH,CAAC"}
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import { type ApiConfig } from "../api-types";
|
|
2
|
-
import { type SdkDependencies } from "../sdk/dependencies";
|
|
2
|
+
import { type LogDriver, type SdkDependencies } from "../sdk/dependencies";
|
|
3
|
+
export type GraphQLErrorAbortReason = "invalid-input" | "forbidden" | "server-error" | "network-error" | "unauthenticated";
|
|
3
4
|
export type GraphQLErrorPayload = {
|
|
4
|
-
|
|
5
|
+
abortReason: GraphQLErrorAbortReason;
|
|
6
|
+
eventId?: string;
|
|
5
7
|
isGqlError: true;
|
|
6
8
|
};
|
|
7
9
|
export type GraphQLResponse<ResponseBody> = {
|
|
8
10
|
isGqlError: false;
|
|
9
11
|
responseBody: ResponseBody;
|
|
10
12
|
} | GraphQLErrorPayload;
|
|
13
|
+
type RawErrorCode = "UNAUTHENTICATED" | "FORBIDDEN" | "INTERNAL" | "BAD_USER_INPUT";
|
|
11
14
|
export type RawGraphqlResponse<QueryName extends string, ResponseBody> = {
|
|
12
15
|
data: {
|
|
13
16
|
[_key in QueryName]: ResponseBody;
|
|
14
17
|
};
|
|
15
18
|
} | {
|
|
16
19
|
errors: Array<{
|
|
17
|
-
extensions?:
|
|
18
|
-
code?:
|
|
19
|
-
|
|
20
|
+
extensions?: {
|
|
21
|
+
code?: RawErrorCode;
|
|
22
|
+
eventId?: string;
|
|
23
|
+
};
|
|
20
24
|
message: string;
|
|
21
25
|
}>;
|
|
22
26
|
};
|
|
@@ -30,4 +34,10 @@ export declare function qawolfGraphql<Variables extends Record<never, unknown>,
|
|
|
30
34
|
query: string;
|
|
31
35
|
variables: Variables;
|
|
32
36
|
}): Promise<GraphQLResponse<unknown>>;
|
|
37
|
+
export declare function logGraphQLError({ log, methodName, payload, }: {
|
|
38
|
+
log: LogDriver;
|
|
39
|
+
methodName: string;
|
|
40
|
+
payload: GraphQLErrorPayload;
|
|
41
|
+
}): void;
|
|
42
|
+
export {};
|
|
33
43
|
//# sourceMappingURL=graphql.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3E,MAAM,MAAM,uBAAuB,GAC/B,eAAe,GACf,WAAW,GACX,cAAc,GACd,eAAe,GACf,iBAAiB,CAAC;AACtB,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,uBAAuB,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,YAAY,IACpC;IAAE,UAAU,EAAE,KAAK,CAAC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