Function upload

  • Upload screenshots to Argos.

    Parameters

    Returns Promise<{
        build: {
            id: string;
            notification: null | {
                context: string;
                description: string;
                github: {
                    state:
                        | "pending"
                        | "error"
                        | "success"
                        | "failure";
                };
                gitlab: {
                    state:
                        | "pending"
                        | "success"
                        | "running"
                        | "failed"
                        | "canceled";
                };
            };
            number: number;
            status:
                | "accepted"
                | "rejected"
                | "stable"
                | "diffDetected"
                | "expired"
                | "pending"
                | "progress"
                | "error"
                | "aborted";
            url: string;
        };
        screenshots: {
            baseName: null | string;
            hash: string;
            metadata: null | ScreenshotMetadata;
            name: string;
            optimizedPath: string;
            path: string;
            pwTrace: null | {
                hash: string;
                path: string;
            };
            threshold: null | number;
        }[];
    }>