UNPKG

@ringer-tel/ivy

Version:
89 lines (77 loc) 2.75 kB
/* tslint:disable */ /* eslint-disable */ /** * Ringer Business API * This API provides comprehensive endpoints for the Ringer Business system. It includes functionality for managing customer accounts, addresses, sites, phone numbers, payments, users, and other business resources. Operations typically require authentication and appropriate permissions. * * The version of the OpenAPI document: 1.0.6 * Contact: support@ringer.tel * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { UserResponse } from './UserResponse'; import { UserResponseFromJSON, UserResponseFromJSONTyped, UserResponseToJSON, UserResponseToJSONTyped, } from './UserResponse'; import type { SchemasLink } from './SchemasLink'; import { SchemasLinkFromJSON, SchemasLinkFromJSONTyped, SchemasLinkToJSON, SchemasLinkToJSONTyped, } from './SchemasLink'; /** * A paginated list of users. * @export * @interface UserListResponse */ export interface UserListResponse { /** * * @type {Array<UserResponse>} * @memberof UserListResponse */ users?: Array<UserResponse>; /** * HATEOAS links for pagination and related resources. * @type {Array<SchemasLink>} * @memberof UserListResponse */ links?: Array<SchemasLink> | null; } /** * Check if a given object implements the UserListResponse interface. */ export function instanceOfUserListResponse(value: object): value is UserListResponse { return true; } export function UserListResponseFromJSON(json: any): UserListResponse { return UserListResponseFromJSONTyped(json, false); } export function UserListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserListResponse { if (json == null) { return json; } return { 'users': json['users'] == null ? undefined : ((json['users'] as Array<any>).map(UserResponseFromJSON)), 'links': json['links'] == null ? undefined : ((json['links'] as Array<any>).map(SchemasLinkFromJSON)), }; } export function UserListResponseToJSON(json: any): UserListResponse { return UserListResponseToJSONTyped(json, false); } export function UserListResponseToJSONTyped(value?: UserListResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'users': value['users'] == null ? undefined : ((value['users'] as Array<any>).map(UserResponseToJSON)), 'links': value['links'] == null ? undefined : ((value['links'] as Array<any>).map(SchemasLinkToJSON)), }; }