/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime.js'; import { type PayReportsCreatePayloadV2 } from '../models/PayReportsCreatePayloadV2.js'; import { type PayReportsCreateResultV2 } from '../models/PayReportsCreateResultV2.js'; import { type PayReportsListResultV2 } from '../models/PayReportsListResultV2.js'; import { type PayReportsPublishPayloadV2 } from '../models/PayReportsPublishPayloadV2.js'; import { type PayReportsPublishResultV2 } from '../models/PayReportsPublishResultV2.js'; import { type PayReportsShowResultV2 } from '../models/PayReportsShowResultV2.js'; import { type PayReportsUnpublishPayloadV2 } from '../models/PayReportsUnpublishPayloadV2.js'; import { type PayReportsUnpublishResultV2 } from '../models/PayReportsUnpublishResultV2.js'; export interface PayReportsV2CreateRequest { /** * */ body: PayReportsCreatePayloadV2; } export interface PayReportsV2DestroyRequest { /** * Unique identifier for this pay report */ id: string; } export interface PayReportsV2DownloadRequest { /** * Unique identifier for this pay report */ id: string; } export interface PayReportsV2ListRequest { /** * Integer number of records to return */ page_size?: number; /** * A pay report's ID. This endpoint will return a list of pay reports after this ID in relation to the API response order. */ after?: string; } export interface PayReportsV2PublishRequest { /** * Unique identifier for this pay report */ id: string; /** * */ body: PayReportsPublishPayloadV2; } export interface PayReportsV2ShowRequest { /** * Unique identifier for this pay report */ id: string; } export interface PayReportsV2UnpublishRequest { /** * Unique identifier for this pay report */ id: string; /** * */ body: PayReportsUnpublishPayloadV2; } /** * */ export declare class PayReportsV2Api extends runtime.BaseAPI { /** * Creates request options for payReportsV2Create without sending the request */ payReportsV2CreateRequestOpts(requestParameters: PayReportsV2CreateRequest): Promise; /** * Request a pay report. Generating a report can take minutes for a wide date window, so this returns as soon as the request is accepted, with a report that has a status of pending and no totals. Fetch the report to find out how it went: it ends up either complete, with its totals filled in, or failed, with error_code and error_message saying why. Reports are created as drafts. * Create Pay Reports V2 */ payReportsV2CreateRaw(requestParameters: PayReportsV2CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Request a pay report. Generating a report can take minutes for a wide date window, so this returns as soon as the request is accepted, with a report that has a status of pending and no totals. Fetch the report to find out how it went: it ends up either complete, with its totals filled in, or failed, with error_code and error_message saying why. Reports are created as drafts. * Create Pay Reports V2 */ payReportsV2Create(requestParameters: PayReportsV2CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payReportsV2Destroy without sending the request */ payReportsV2DestroyRequestOpts(requestParameters: PayReportsV2DestroyRequest): Promise; /** * Delete a draft pay report, archiving it so it no longer appears in list or show. Published reports cannot be deleted. Unpublish them instead. * Destroy Pay Reports V2 */ payReportsV2DestroyRaw(requestParameters: PayReportsV2DestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete a draft pay report, archiving it so it no longer appears in list or show. Published reports cannot be deleted. Unpublish them instead. * Destroy Pay Reports V2 */ payReportsV2Destroy(requestParameters: PayReportsV2DestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payReportsV2Download without sending the request */ payReportsV2DownloadRequestOpts(requestParameters: PayReportsV2DownloadRequest): Promise; /** * Download a pay report as CSV. One row per user, carrying what they earned over the report\'s window and how long they were on-call for it. Each value appears twice: once formatted for a person to read, and once as an integer for a system to parse. Only a report that has finished generating can be downloaded, since an incomplete one has no totals to write. Check the report\'s status first. * Download Pay Reports V2 */ payReportsV2DownloadRaw(requestParameters: PayReportsV2DownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Download a pay report as CSV. One row per user, carrying what they earned over the report\'s window and how long they were on-call for it. Each value appears twice: once formatted for a person to read, and once as an integer for a system to parse. Only a report that has finished generating can be downloaded, since an incomplete one has no totals to write. Check the report\'s status first. * Download Pay Reports V2 */ payReportsV2Download(requestParameters: PayReportsV2DownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payReportsV2List without sending the request */ payReportsV2ListRequestOpts(requestParameters: PayReportsV2ListRequest): Promise; /** * List pay reports, newest first. Only reports that have finished generating are listed. A report you have just asked for appears once it is complete. Fetch it by ID to follow its progress, or to see why it failed. Reports created before the current pay report format have no totals, so check that total_duration_seconds is set before reading either total. Drafts are returned alongside published reports. Check published_at to tell them apart. Only the headline totals are returned: the shifts behind them, and the per-user and per-schedule breakdowns, come from downloading the report. * List Pay Reports V2 */ payReportsV2ListRaw(requestParameters: PayReportsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List pay reports, newest first. Only reports that have finished generating are listed. A report you have just asked for appears once it is complete. Fetch it by ID to follow its progress, or to see why it failed. Reports created before the current pay report format have no totals, so check that total_duration_seconds is set before reading either total. Drafts are returned alongside published reports. Check published_at to tell them apart. Only the headline totals are returned: the shifts behind them, and the per-user and per-schedule breakdowns, come from downloading the report. * List Pay Reports V2 */ payReportsV2List(requestParameters?: PayReportsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payReportsV2Publish without sending the request */ payReportsV2PublishRequestOpts(requestParameters: PayReportsV2PublishRequest): Promise; /** * Publish a draft pay report, making it visible to everyone in the organisation. Publishing emails the report to cc_emails. Set send_user_breakdowns to send if each user should also get their own pay breakdown, or skip if not. * Publish Pay Reports V2 */ payReportsV2PublishRaw(requestParameters: PayReportsV2PublishRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Publish a draft pay report, making it visible to everyone in the organisation. Publishing emails the report to cc_emails. Set send_user_breakdowns to send if each user should also get their own pay breakdown, or skip if not. * Publish Pay Reports V2 */ payReportsV2Publish(requestParameters: PayReportsV2PublishRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payReportsV2Show without sending the request */ payReportsV2ShowRequestOpts(requestParameters: PayReportsV2ShowRequest): Promise; /** * Get a single pay report. This is how you follow up a report you asked for: status says whether it is still being generated, and error_code and error_message say why it will never be. * Show Pay Reports V2 */ payReportsV2ShowRaw(requestParameters: PayReportsV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get a single pay report. This is how you follow up a report you asked for: status says whether it is still being generated, and error_code and error_message say why it will never be. * Show Pay Reports V2 */ payReportsV2Show(requestParameters: PayReportsV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payReportsV2Unpublish without sending the request */ payReportsV2UnpublishRequestOpts(requestParameters: PayReportsV2UnpublishRequest): Promise; /** * Unpublish a published pay report, recording a reason it should not be used. A draft cannot be unpublished: delete it instead. Unpublishing is terminal: the report no longer appears in List or Show, and cannot be published again. The reason is shown to anyone who still has a permalink. * Unpublish Pay Reports V2 */ payReportsV2UnpublishRaw(requestParameters: PayReportsV2UnpublishRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Unpublish a published pay report, recording a reason it should not be used. A draft cannot be unpublished: delete it instead. Unpublishing is terminal: the report no longer appears in List or Show, and cannot be published again. The reason is shown to anyone who still has a permalink. * Unpublish Pay Reports V2 */ payReportsV2Unpublish(requestParameters: PayReportsV2UnpublishRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }