/* tslint:disable */ /* eslint-disable */ /** * Sonatype Guide API * REST API into [Sonatype Guide](https://guide.sonatype.com). * * The version of the OpenAPI document: 202607 * * * 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'; /** * * @export * @interface OrgActivityLogEntry */ export interface OrgActivityLogEntry { /** * * @type {string} * @memberof OrgActivityLogEntry */ actorChannel?: string; /** * * @type {string} * @memberof OrgActivityLogEntry */ actorName?: string; /** * * @type {Date} * @memberof OrgActivityLogEntry */ createdAt?: Date; /** * * @type {{ [key: string]: any; }} * @memberof OrgActivityLogEntry */ details?: { [key: string]: any; }; /** * * @type {string} * @memberof OrgActivityLogEntry */ eventCategory?: OrgActivityLogEntryEventCategoryEnum; /** * * @type {string} * @memberof OrgActivityLogEntry */ eventLabel?: string; /** * * @type {string} * @memberof OrgActivityLogEntry */ eventType?: OrgActivityLogEntryEventTypeEnum; } /** * @export */ export const OrgActivityLogEntryEventCategoryEnum = { Token: 'TOKEN', Organization: 'ORGANIZATION', Billing: 'BILLING', Support: 'SUPPORT' } as const; export type OrgActivityLogEntryEventCategoryEnum = typeof OrgActivityLogEntryEventCategoryEnum[keyof typeof OrgActivityLogEntryEventCategoryEnum]; /** * @export */ export const OrgActivityLogEntryEventTypeEnum = { TokenCreated: 'TOKEN_CREATED', TokenRotated: 'TOKEN_ROTATED', TokenRevoked: 'TOKEN_REVOKED', MemberInvited: 'MEMBER_INVITED', InvitationCancelled: 'INVITATION_CANCELLED', MemberRemoved: 'MEMBER_REMOVED', OrgNameChanged: 'ORG_NAME_CHANGED', OrgUrlChanged: 'ORG_URL_CHANGED', SubscriptionCreated: 'SUBSCRIPTION_CREATED', SubscriptionChanged: 'SUBSCRIPTION_CHANGED', SubscriptionCanceled: 'SUBSCRIPTION_CANCELED', SupportTicketCreated: 'SUPPORT_TICKET_CREATED' } as const; export type OrgActivityLogEntryEventTypeEnum = typeof OrgActivityLogEntryEventTypeEnum[keyof typeof OrgActivityLogEntryEventTypeEnum]; /** * Check if a given object implements the OrgActivityLogEntry interface. */ export function instanceOfOrgActivityLogEntry(value: object): value is OrgActivityLogEntry { return true; } export function OrgActivityLogEntryFromJSON(json: any): OrgActivityLogEntry { return OrgActivityLogEntryFromJSONTyped(json, false); } export function OrgActivityLogEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrgActivityLogEntry { if (json == null) { return json; } return { 'actorChannel': json['actorChannel'] == null ? undefined : json['actorChannel'], 'actorName': json['actorName'] == null ? undefined : json['actorName'], 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])), 'details': json['details'] == null ? undefined : json['details'], 'eventCategory': json['eventCategory'] == null ? undefined : json['eventCategory'], 'eventLabel': json['eventLabel'] == null ? undefined : json['eventLabel'], 'eventType': json['eventType'] == null ? undefined : json['eventType'], }; } export function OrgActivityLogEntryToJSON(json: any): OrgActivityLogEntry { return OrgActivityLogEntryToJSONTyped(json, false); } export function OrgActivityLogEntryToJSONTyped(value?: OrgActivityLogEntry | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'actorChannel': value['actorChannel'], 'actorName': value['actorName'], 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(), 'details': value['details'], 'eventCategory': value['eventCategory'], 'eventLabel': value['eventLabel'], 'eventType': value['eventType'], }; }