import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The status of the submissions to list. */ export declare const ListBountySubmissionsQueryParamStatus: { readonly Draft: "draft"; readonly Submitted: "submitted"; readonly Approved: "approved"; readonly Rejected: "rejected"; }; /** * The status of the submissions to list. */ export type ListBountySubmissionsQueryParamStatus = ClosedEnum; /** * The field to sort the submissions by. */ export declare const ListBountySubmissionsQueryParamSortBy: { readonly CompletedAt: "completedAt"; readonly PerformanceCount: "performanceCount"; readonly SocialMetricCount: "socialMetricCount"; }; /** * The field to sort the submissions by. */ export type ListBountySubmissionsQueryParamSortBy = ClosedEnum; /** * The order to sort the submissions by. */ export declare const ListBountySubmissionsQueryParamSortOrder: { readonly Asc: "asc"; readonly Desc: "desc"; }; /** * The order to sort the submissions by. */ export type ListBountySubmissionsQueryParamSortOrder = ClosedEnum; export type ListBountySubmissionsRequest = { /** * The unique ID of the bounty on Dub. Can be found in the URL of the bounty page, prefixed with `bnty_`. */ bountyId: string; /** * The status of the submissions to list. */ status?: ListBountySubmissionsQueryParamStatus | undefined; /** * The ID of the group to list submissions for. */ groupId?: string | undefined; /** * The ID of the partner to list submissions for. */ partnerId?: string | undefined; /** * The field to sort the submissions by. */ sortBy?: ListBountySubmissionsQueryParamSortBy | undefined; /** * The order to sort the submissions by. */ sortOrder?: ListBountySubmissionsQueryParamSortOrder | undefined; /** * The page number for pagination. */ page?: number | undefined; /** * The number of items per page. */ pageSize?: number | undefined; }; export type Files = { /** * The URL of the uploaded file. */ url: string; /** * The original file name. */ fileName: string; /** * The file size in bytes. */ size: number; }; /** * The status of the submission */ export declare const ListBountySubmissionsStatus: { readonly Draft: "draft"; readonly Submitted: "submitted"; readonly Approved: "approved"; readonly Rejected: "rejected"; }; /** * The status of the submission */ export type ListBountySubmissionsStatus = ClosedEnum; export type ListBountySubmissionsResponseBody = { /** * The ID of the bounty submission */ id: string; /** * The ID of the bounty */ bountyId: string; /** * The ID of the partner */ partnerId: string; /** * The description of the submission */ description: string | null; /** * The URLs submitted for the submission */ urls: Array | null; /** * The files uploaded for the submission */ files: Array | null; /** * The status of the submission */ status: ListBountySubmissionsStatus; /** * The performance count of the submission */ performanceCount: number | null; /** * The social metric count (views or likes) for the social content */ socialMetricCount: number | null; /** * The date and time the submission's social metrics were last synced */ socialMetricsLastSyncedAt?: string | null | undefined; /** * The date and time the submission was created */ createdAt: string; /** * The date and time the submission was completed */ completedAt: string | null; /** * The date and time the submission was reviewed */ reviewedAt: string | null; /** * The reason for rejecting the submission */ rejectionReason: string | null; /** * The note for rejecting the submission */ rejectionNote: string | null; /** * The period number for this submission (1-indexed) */ periodNumber: number; }; /** @internal */ export declare const ListBountySubmissionsQueryParamStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListBountySubmissionsQueryParamSortBy$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListBountySubmissionsQueryParamSortOrder$outboundSchema: z.ZodNativeEnum; /** @internal */ export type ListBountySubmissionsRequest$Outbound = { bountyId: string; status?: string | undefined; groupId?: string | undefined; partnerId?: string | undefined; sortBy: string; sortOrder: string; page?: number | undefined; pageSize: number; }; /** @internal */ export declare const ListBountySubmissionsRequest$outboundSchema: z.ZodType; export declare function listBountySubmissionsRequestToJSON(listBountySubmissionsRequest: ListBountySubmissionsRequest): string; /** @internal */ export declare const Files$inboundSchema: z.ZodType; export declare function filesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListBountySubmissionsStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListBountySubmissionsResponseBody$inboundSchema: z.ZodType; export declare function listBountySubmissionsResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=listbountysubmissions.d.ts.map