Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK updates #111

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ models/UpdateMagicLinkAuthMethod.ts
models/UpdateOtpAuthMethod.ts
models/UpdatePasskeysAuthMethod.ts
models/UpdateUserRequest.ts
models/UserEventStatus.ts
models/UserInfo.ts
models/UserMetadataField.ts
models/UserMetadataFieldType.ts
Expand Down
38 changes: 38 additions & 0 deletions src/generated/models/UserEventStatus.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/* tslint:disable */
/* eslint-disable */
/**
* Passage Management API
* Passage\'s management API to manage your Passage apps and users.
*
* The version of the OpenAPI document: 1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
*
* @export
*/
export const UserEventStatus = {
Complete: 'complete',
Incomplete: 'incomplete'
} as const;
export type UserEventStatus = typeof UserEventStatus[keyof typeof UserEventStatus];


export function UserEventStatusFromJSON(json: any): UserEventStatus {
return UserEventStatusFromJSONTyped(json, false);
}

export function UserEventStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserEventStatus {
return json as UserEventStatus;
}

export function UserEventStatusToJSON(value?: UserEventStatus | null): any {
return value as any;
}

25 changes: 25 additions & 0 deletions src/generated/models/UserRecentEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
*/

import { exists, mapValues } from '../runtime';
import type { UserEventStatus } from './UserEventStatus';
import {
UserEventStatusFromJSON,
UserEventStatusFromJSONTyped,
UserEventStatusToJSON,
} from './UserEventStatus';

/**
*
* @export
Expand All @@ -25,6 +32,12 @@ export interface UserRecentEvent {
* @memberof UserRecentEvent
*/
created_at: Date;
/**
*
* @type {Date}
* @memberof UserRecentEvent
*/
completed_at: Date | null;
/**
*
* @type {string}
Expand All @@ -37,6 +50,12 @@ export interface UserRecentEvent {
* @memberof UserRecentEvent
*/
ip_addr: string;
/**
*
* @type {UserEventStatus}
* @memberof UserRecentEvent
*/
status: UserEventStatus;
/**
*
* @type {string}
Expand All @@ -57,8 +76,10 @@ export interface UserRecentEvent {
export function instanceOfUserRecentEvent(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "created_at" in value;
isInstance = isInstance && "completed_at" in value;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "ip_addr" in value;
isInstance = isInstance && "status" in value;
isInstance = isInstance && "type" in value;
isInstance = isInstance && "user_agent" in value;

Expand All @@ -76,8 +97,10 @@ export function UserRecentEventFromJSONTyped(json: any, ignoreDiscriminator: boo
return {

'created_at': (new Date(json['created_at'])),
'completed_at': (json['completed_at'] === null ? null : new Date(json['completed_at'])),
'id': json['id'],
'ip_addr': json['ip_addr'],
'status': UserEventStatusFromJSON(json['status']),
'type': json['type'],
'user_agent': json['user_agent'],
};
Expand All @@ -93,8 +116,10 @@ export function UserRecentEventToJSON(value?: UserRecentEvent | null): any {
return {

'created_at': (value.created_at.toISOString()),
'completed_at': (value.completed_at === null ? null : value.completed_at.toISOString()),
'id': value.id,
'ip_addr': value.ip_addr,
'status': UserEventStatusToJSON(value.status),
'type': value.type,
'user_agent': value.user_agent,
};
Expand Down
1 change: 1 addition & 0 deletions src/generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export * from './UpdateMagicLinkAuthMethod';
export * from './UpdateOtpAuthMethod';
export * from './UpdatePasskeysAuthMethod';
export * from './UpdateUserRequest';
export * from './UserEventStatus';
export * from './UserInfo';
export * from './UserMetadataField';
export * from './UserMetadataFieldType';
Expand Down
Loading