import { APIResource } from "../core/resource.js"; import * as BusinessPartnersAPI from "./business-partners.js"; import * as WorkersAPI from "./workers.js"; import { APIPromise } from "../core/api-promise.js"; import { PageCursorURL, PagePromise } from "../core/pagination.js"; import { RequestOptions } from "../internal/request-options.js"; /** * Badge information used with Timeclock Kiosk */ export declare class KioskBadges extends APIResource { /** * A list of kiosk badges. * * - Requires: `API Tier 2` * - Filterable fields: `badge_id` * - Expandable fields: `worker` * - Sortable fields: `id`, `created_at`, `updated_at` */ list(query?: KioskBadgeListParams | null | undefined, options?: RequestOptions): PagePromise; /** * Create a new kiosk badge */ create(body: KioskBadgeCreateParams, options?: RequestOptions): APIPromise; /** * Retrieve a specific kiosk badge */ retrieve(id: string, query?: KioskBadgeRetrieveParams | null | undefined, options?: RequestOptions): APIPromise; /** * Update a specific kiosk badge. */ update(id: string, body: KioskBadgeUpdateParams, options?: RequestOptions): APIPromise; /** * Delete a kiosk badge */ delete(id: string, options?: RequestOptions): APIPromise; } export type KioskBadgeListResponsesPageCursorURL = PageCursorURL; export interface TimeKioskBadge { /** * The ID associated with the badge. Not to be confused with the record's ID. */ badge_id: string; /** * Whether this badge can be used with the Kiosk app. */ is_enabled?: boolean; /** * The ID of the worker associated with the badge. */ worker_id?: string; /** * The employee number of the worker associated with the badge. */ worker_number?: number; } export interface KioskBadgeListResponse { /** * Identifier field */ id: string; /** * The ID associated with the badge. Not to be confused with the record's ID. */ badge_id: string; /** * Record creation date */ created_at: string; /** * Record update date */ updated_at: string; /** * Whether this badge can be used with the Kiosk app. */ is_enabled?: boolean; /** * The worker associated with the badge. * * Expandable field */ worker?: WorkersAPI.Worker; /** * The ID of the worker associated with the badge. */ worker_id?: string; /** * The employee number of the worker associated with the badge. */ worker_number?: number; } export interface KioskBadgeCreateResponse { /** * Identifier field */ id: string; /** * The ID associated with the badge. Not to be confused with the record's ID. */ badge_id: string; /** * Record creation date */ created_at: string; /** * Record update date */ updated_at: string; /** * Whether this badge can be used with the Kiosk app. */ is_enabled?: boolean; /** * The worker associated with the badge. * * Expandable field */ worker?: WorkersAPI.Worker; /** * The ID of the worker associated with the badge. */ worker_id?: string; /** * The employee number of the worker associated with the badge. */ worker_number?: number; } /** * Meta information for the response. */ export interface KioskBadgeRetrieveResponse extends BusinessPartnersAPI.Meta { /** * Identifier field */ id: string; /** * The ID associated with the badge. Not to be confused with the record's ID. */ badge_id: string; /** * Record creation date */ created_at: string; /** * Record update date */ updated_at: string; /** * Whether this badge can be used with the Kiosk app. */ is_enabled?: boolean; /** * The worker associated with the badge. * * Expandable field */ worker?: WorkersAPI.Worker; /** * The ID of the worker associated with the badge. */ worker_id?: string; /** * The employee number of the worker associated with the badge. */ worker_number?: number; } export interface KioskBadgeUpdateResponse { /** * Identifier field */ id: string; /** * The ID associated with the badge. Not to be confused with the record's ID. */ badge_id: string; /** * Record creation date */ created_at: string; /** * Record update date */ updated_at: string; /** * Whether this badge can be used with the Kiosk app. */ is_enabled?: boolean; /** * The worker associated with the badge. * * Expandable field */ worker?: WorkersAPI.Worker; /** * The ID of the worker associated with the badge. */ worker_id?: string; /** * The employee number of the worker associated with the badge. */ worker_number?: number; } export interface KioskBadgeListParams { cursor?: string; expand?: string; filter?: string; order_by?: string; } export interface KioskBadgeCreateParams { /** * The ID associated with the badge. Not to be confused with the record's ID. */ badge_id: string; /** * Whether this badge can be used with the Kiosk app. */ is_enabled?: boolean; /** * The ID of the worker associated with the badge. */ worker_id?: string; /** * The employee number of the worker associated with the badge. */ worker_number?: number; } export interface KioskBadgeRetrieveParams { expand?: string; } export interface KioskBadgeUpdateParams { /** * The ID associated with the badge. Not to be confused with the record's ID. */ badge_id: string; /** * Whether this badge can be used with the Kiosk app. */ is_enabled?: boolean; /** * The ID of the worker associated with the badge. */ worker_id?: string; /** * The employee number of the worker associated with the badge. */ worker_number?: number; } export declare namespace KioskBadges { export { type TimeKioskBadge as TimeKioskBadge, type KioskBadgeListResponse as KioskBadgeListResponse, type KioskBadgeCreateResponse as KioskBadgeCreateResponse, type KioskBadgeRetrieveResponse as KioskBadgeRetrieveResponse, type KioskBadgeUpdateResponse as KioskBadgeUpdateResponse, type KioskBadgeListResponsesPageCursorURL as KioskBadgeListResponsesPageCursorURL, type KioskBadgeListParams as KioskBadgeListParams, type KioskBadgeCreateParams as KioskBadgeCreateParams, type KioskBadgeRetrieveParams as KioskBadgeRetrieveParams, type KioskBadgeUpdateParams as KioskBadgeUpdateParams, }; } //# sourceMappingURL=kiosk-badges.d.ts.map