/** * 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 PayConfigsCreateOneOffRulePayloadV2 } from '../models/PayConfigsCreateOneOffRulePayloadV2.js'; import { type PayConfigsCreateOneOffRuleResultV2 } from '../models/PayConfigsCreateOneOffRuleResultV2.js'; import { type PayConfigsCreatePayloadV2 } from '../models/PayConfigsCreatePayloadV2.js'; import { type PayConfigsCreateResultV2 } from '../models/PayConfigsCreateResultV2.js'; import { type PayConfigsCreateWeeklyRulePayloadV2 } from '../models/PayConfigsCreateWeeklyRulePayloadV2.js'; import { type PayConfigsCreateWeeklyRuleResultV2 } from '../models/PayConfigsCreateWeeklyRuleResultV2.js'; import { type PayConfigsListOneOffRulesResultV2 } from '../models/PayConfigsListOneOffRulesResultV2.js'; import { type PayConfigsListResultV2 } from '../models/PayConfigsListResultV2.js'; import { type PayConfigsListWeeklyRulesResultV2 } from '../models/PayConfigsListWeeklyRulesResultV2.js'; import { type PayConfigsShowOneOffRuleResultV2 } from '../models/PayConfigsShowOneOffRuleResultV2.js'; import { type PayConfigsShowResultV2 } from '../models/PayConfigsShowResultV2.js'; import { type PayConfigsShowWeeklyRuleResultV2 } from '../models/PayConfigsShowWeeklyRuleResultV2.js'; import { type PayConfigsUpdateOneOffRulePayloadV2 } from '../models/PayConfigsUpdateOneOffRulePayloadV2.js'; import { type PayConfigsUpdateOneOffRuleResultV2 } from '../models/PayConfigsUpdateOneOffRuleResultV2.js'; import { type PayConfigsUpdatePayloadV2 } from '../models/PayConfigsUpdatePayloadV2.js'; import { type PayConfigsUpdateResultV2 } from '../models/PayConfigsUpdateResultV2.js'; import { type PayConfigsUpdateWeeklyRulePayloadV2 } from '../models/PayConfigsUpdateWeeklyRulePayloadV2.js'; import { type PayConfigsUpdateWeeklyRuleResultV2 } from '../models/PayConfigsUpdateWeeklyRuleResultV2.js'; export interface PayConfigsV2CreateRequest { /** * */ body: PayConfigsCreatePayloadV2; } export interface PayConfigsV2CreateOneOffRuleRequest { /** * The pay config's ID */ pay_config_id: string; /** * */ body: PayConfigsCreateOneOffRulePayloadV2; } export interface PayConfigsV2CreateWeeklyRuleRequest { /** * The pay config's ID */ pay_config_id: string; /** * */ body: PayConfigsCreateWeeklyRulePayloadV2; } export interface PayConfigsV2DestroyRequest { /** * Unique identifier for this pay config */ id: string; } export interface PayConfigsV2DestroyOneOffRuleRequest { /** * The pay config's ID */ pay_config_id: string; /** * Unique identifier for this rule, stable across edits to the config */ id: string; } export interface PayConfigsV2DestroyWeeklyRuleRequest { /** * The pay config's ID */ pay_config_id: string; /** * Unique identifier for this rule, stable across edits to the config */ id: string; } export interface PayConfigsV2ListRequest { /** * Integer number of records to return */ page_size?: number; /** * A pay config's ID. This endpoint will return a list of pay configs after this ID in relation to the API response order. */ after?: string; } export interface PayConfigsV2ListOneOffRulesRequest { /** * The pay config's ID */ pay_config_id: string; } export interface PayConfigsV2ListWeeklyRulesRequest { /** * The pay config's ID */ pay_config_id: string; } export interface PayConfigsV2ShowRequest { /** * Unique identifier for this pay config */ id: string; } export interface PayConfigsV2ShowOneOffRuleRequest { /** * The pay config's ID */ pay_config_id: string; /** * Unique identifier for this rule, stable across edits to the config */ id: string; } export interface PayConfigsV2ShowWeeklyRuleRequest { /** * The pay config's ID */ pay_config_id: string; /** * Unique identifier for this rule, stable across edits to the config */ id: string; } export interface PayConfigsV2UpdateRequest { /** * Unique identifier for this pay config */ id: string; /** * */ body: PayConfigsUpdatePayloadV2; } export interface PayConfigsV2UpdateOneOffRuleRequest { /** * The pay config's ID */ pay_config_id: string; /** * Unique identifier for this rule, stable across edits to the config */ id: string; /** * */ body: PayConfigsUpdateOneOffRulePayloadV2; } export interface PayConfigsV2UpdateWeeklyRuleRequest { /** * The pay config's ID */ pay_config_id: string; /** * Unique identifier for this rule, stable across edits to the config */ id: string; /** * */ body: PayConfigsUpdateWeeklyRulePayloadV2; } /** * */ export declare class PayConfigsV2Api extends runtime.BaseAPI { /** * Creates request options for payConfigsV2Create without sending the request */ payConfigsV2CreateRequestOpts(requestParameters: PayConfigsV2CreateRequest): Promise; /** * Create a pay config. The config is created as a draft, and becomes visible to everyone in the organisation once a report that prices against it is published. * Create Pay Configs V2 */ payConfigsV2CreateRaw(requestParameters: PayConfigsV2CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a pay config. The config is created as a draft, and becomes visible to everyone in the organisation once a report that prices against it is published. * Create Pay Configs V2 */ payConfigsV2Create(requestParameters: PayConfigsV2CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2CreateOneOffRule without sending the request */ payConfigsV2CreateOneOffRuleRequestOpts(requestParameters: PayConfigsV2CreateOneOffRuleRequest): Promise; /** * Add a one-off rule to a pay config. It may not overlap a rule the config already has. Where it lands in the list has no effect on pricing. * CreateOneOffRule Pay Configs V2 */ payConfigsV2CreateOneOffRuleRaw(requestParameters: PayConfigsV2CreateOneOffRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Add a one-off rule to a pay config. It may not overlap a rule the config already has. Where it lands in the list has no effect on pricing. * CreateOneOffRule Pay Configs V2 */ payConfigsV2CreateOneOffRule(requestParameters: PayConfigsV2CreateOneOffRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2CreateWeeklyRule without sending the request */ payConfigsV2CreateWeeklyRuleRequestOpts(requestParameters: PayConfigsV2CreateWeeklyRuleRequest): Promise; /** * Add a weekly rule to a pay config. The rule is added last, so it is evaluated after every rule already on the config. * CreateWeeklyRule Pay Configs V2 */ payConfigsV2CreateWeeklyRuleRaw(requestParameters: PayConfigsV2CreateWeeklyRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Add a weekly rule to a pay config. The rule is added last, so it is evaluated after every rule already on the config. * CreateWeeklyRule Pay Configs V2 */ payConfigsV2CreateWeeklyRule(requestParameters: PayConfigsV2CreateWeeklyRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2Destroy without sending the request */ payConfigsV2DestroyRequestOpts(requestParameters: PayConfigsV2DestroyRequest): Promise; /** * Delete a pay config. Reports already published against this config keep their own copy of it, so their figures do not change. Any schedule using it as a default loses that default. * Destroy Pay Configs V2 */ payConfigsV2DestroyRaw(requestParameters: PayConfigsV2DestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete a pay config. Reports already published against this config keep their own copy of it, so their figures do not change. Any schedule using it as a default loses that default. * Destroy Pay Configs V2 */ payConfigsV2Destroy(requestParameters: PayConfigsV2DestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2DestroyOneOffRule without sending the request */ payConfigsV2DestroyOneOffRuleRequestOpts(requestParameters: PayConfigsV2DestroyOneOffRuleRequest): Promise; /** * Remove a one-off rule from a pay config. Time it covered falls back to the weekly rules. * DestroyOneOffRule Pay Configs V2 */ payConfigsV2DestroyOneOffRuleRaw(requestParameters: PayConfigsV2DestroyOneOffRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Remove a one-off rule from a pay config. Time it covered falls back to the weekly rules. * DestroyOneOffRule Pay Configs V2 */ payConfigsV2DestroyOneOffRule(requestParameters: PayConfigsV2DestroyOneOffRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2DestroyWeeklyRule without sending the request */ payConfigsV2DestroyWeeklyRuleRequestOpts(requestParameters: PayConfigsV2DestroyWeeklyRuleRequest): Promise; /** * Remove a weekly rule from a pay config. Time it covered falls back to the base rate, or to a later rule that also covers it. * DestroyWeeklyRule Pay Configs V2 */ payConfigsV2DestroyWeeklyRuleRaw(requestParameters: PayConfigsV2DestroyWeeklyRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Remove a weekly rule from a pay config. Time it covered falls back to the base rate, or to a later rule that also covers it. * DestroyWeeklyRule Pay Configs V2 */ payConfigsV2DestroyWeeklyRule(requestParameters: PayConfigsV2DestroyWeeklyRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2List without sending the request */ payConfigsV2ListRequestOpts(requestParameters: PayConfigsV2ListRequest): Promise; /** * List pay configs for this organisation. Returns published configs, and drafts created through the API, which belong to nobody and so are visible to everyone. A draft a person created in the dashboard stays private to them. Archived configs are never returned. * List Pay Configs V2 */ payConfigsV2ListRaw(requestParameters: PayConfigsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List pay configs for this organisation. Returns published configs, and drafts created through the API, which belong to nobody and so are visible to everyone. A draft a person created in the dashboard stays private to them. Archived configs are never returned. * List Pay Configs V2 */ payConfigsV2List(requestParameters?: PayConfigsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2ListOneOffRules without sending the request */ payConfigsV2ListOneOffRulesRequestOpts(requestParameters: PayConfigsV2ListOneOffRulesRequest): Promise; /** * List a pay config\'s one-off rules, in no particular order. They take precedence over weekly rules, and may not overlap, so at most one applies to any moment. * ListOneOffRules Pay Configs V2 */ payConfigsV2ListOneOffRulesRaw(requestParameters: PayConfigsV2ListOneOffRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List a pay config\'s one-off rules, in no particular order. They take precedence over weekly rules, and may not overlap, so at most one applies to any moment. * ListOneOffRules Pay Configs V2 */ payConfigsV2ListOneOffRules(requestParameters: PayConfigsV2ListOneOffRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2ListWeeklyRules without sending the request */ payConfigsV2ListWeeklyRulesRequestOpts(requestParameters: PayConfigsV2ListWeeklyRulesRequest): Promise; /** * List a pay config\'s weekly rules, in evaluation order. A shift is priced by the first rule that covers it, so order is meaningful. A created rule goes last, and there is no way to reorder rules once set: to put one earlier, replace the config through its own create endpoint. * ListWeeklyRules Pay Configs V2 */ payConfigsV2ListWeeklyRulesRaw(requestParameters: PayConfigsV2ListWeeklyRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List a pay config\'s weekly rules, in evaluation order. A shift is priced by the first rule that covers it, so order is meaningful. A created rule goes last, and there is no way to reorder rules once set: to put one earlier, replace the config through its own create endpoint. * ListWeeklyRules Pay Configs V2 */ payConfigsV2ListWeeklyRules(requestParameters: PayConfigsV2ListWeeklyRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2Show without sending the request */ payConfigsV2ShowRequestOpts(requestParameters: PayConfigsV2ShowRequest): Promise; /** * Show a single pay config. * Show Pay Configs V2 */ payConfigsV2ShowRaw(requestParameters: PayConfigsV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Show a single pay config. * Show Pay Configs V2 */ payConfigsV2Show(requestParameters: PayConfigsV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2ShowOneOffRule without sending the request */ payConfigsV2ShowOneOffRuleRequestOpts(requestParameters: PayConfigsV2ShowOneOffRuleRequest): Promise; /** * Show a single one-off rule. * ShowOneOffRule Pay Configs V2 */ payConfigsV2ShowOneOffRuleRaw(requestParameters: PayConfigsV2ShowOneOffRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Show a single one-off rule. * ShowOneOffRule Pay Configs V2 */ payConfigsV2ShowOneOffRule(requestParameters: PayConfigsV2ShowOneOffRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2ShowWeeklyRule without sending the request */ payConfigsV2ShowWeeklyRuleRequestOpts(requestParameters: PayConfigsV2ShowWeeklyRuleRequest): Promise; /** * Show a single weekly rule. * ShowWeeklyRule Pay Configs V2 */ payConfigsV2ShowWeeklyRuleRaw(requestParameters: PayConfigsV2ShowWeeklyRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Show a single weekly rule. * ShowWeeklyRule Pay Configs V2 */ payConfigsV2ShowWeeklyRule(requestParameters: PayConfigsV2ShowWeeklyRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2Update without sending the request */ payConfigsV2UpdateRequestOpts(requestParameters: PayConfigsV2UpdateRequest): Promise; /** * Update a pay config\'s attributes. This changes the config\'s name, timezone, currency and base rate. It does not touch the config\'s rules, which are set when the config is created. Updating a config that a published report priced against additionally requires the schedule_pay_configs.update_published scope, because it changes the explanation of pay someone has already been sent. * Update Pay Configs V2 */ payConfigsV2UpdateRaw(requestParameters: PayConfigsV2UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a pay config\'s attributes. This changes the config\'s name, timezone, currency and base rate. It does not touch the config\'s rules, which are set when the config is created. Updating a config that a published report priced against additionally requires the schedule_pay_configs.update_published scope, because it changes the explanation of pay someone has already been sent. * Update Pay Configs V2 */ payConfigsV2Update(requestParameters: PayConfigsV2UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2UpdateOneOffRule without sending the request */ payConfigsV2UpdateOneOffRuleRequestOpts(requestParameters: PayConfigsV2UpdateOneOffRuleRequest): Promise; /** * Update a one-off rule. It may not be moved to overlap another rule on the same config. * UpdateOneOffRule Pay Configs V2 */ payConfigsV2UpdateOneOffRuleRaw(requestParameters: PayConfigsV2UpdateOneOffRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a one-off rule. It may not be moved to overlap another rule on the same config. * UpdateOneOffRule Pay Configs V2 */ payConfigsV2UpdateOneOffRule(requestParameters: PayConfigsV2UpdateOneOffRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for payConfigsV2UpdateWeeklyRule without sending the request */ payConfigsV2UpdateWeeklyRuleRequestOpts(requestParameters: PayConfigsV2UpdateWeeklyRuleRequest): Promise; /** * Update a weekly rule, leaving its position in the evaluation order alone. * UpdateWeeklyRule Pay Configs V2 */ payConfigsV2UpdateWeeklyRuleRaw(requestParameters: PayConfigsV2UpdateWeeklyRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a weekly rule, leaving its position in the evaluation order alone. * UpdateWeeklyRule Pay Configs V2 */ payConfigsV2UpdateWeeklyRule(requestParameters: PayConfigsV2UpdateWeeklyRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }