Skip to content

Commit a1c34ee

Browse files
committed
0.3.3 - Updated
1 parent 294e6bf commit a1c34ee

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cuculus/cuculus-api",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"files": [

src/models/AuthToken.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ export interface AuthToken {
3131
* @memberof AuthToken
3232
*/
3333
authToken: string;
34+
/**
35+
* auth_tokenの有効期限
36+
* @type {Date}
37+
* @memberof AuthToken
38+
*/
39+
expiresAt?: Date;
3440
}
3541

3642
/**
@@ -56,6 +62,7 @@ export function AuthTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean):
5662

5763
'accessToken': json['access_token'],
5864
'authToken': json['auth_token'],
65+
'expiresAt': !exists(json, 'expires_at') ? undefined : (new Date(json['expires_at'])),
5966
};
6067
}
6168

@@ -70,6 +77,7 @@ export function AuthTokenToJSON(value?: AuthToken | null): any {
7077

7178
'access_token': value.accessToken,
7279
'auth_token': value.authToken,
80+
'expires_at': value.expiresAt === undefined ? undefined : (value.expiresAt.toISOString()),
7381
};
7482
}
7583

src/models/Invitation.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ export interface Invitation {
3131
* @memberof Invitation
3232
*/
3333
issuedAt: Date;
34+
/**
35+
* 招待コードの使用日時
36+
* @type {Date}
37+
* @memberof Invitation
38+
*/
39+
usedAt?: Date;
3440
}
3541

3642
/**
@@ -56,6 +62,7 @@ export function InvitationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
5662

5763
'code': json['code'],
5864
'issuedAt': (new Date(json['issued_at'])),
65+
'usedAt': !exists(json, 'used_at') ? undefined : (new Date(json['used_at'])),
5966
};
6067
}
6168

@@ -70,6 +77,7 @@ export function InvitationToJSON(value?: Invitation | null): any {
7077

7178
'code': value.code,
7279
'issued_at': (value.issuedAt.toISOString()),
80+
'used_at': value.usedAt === undefined ? undefined : (value.usedAt.toISOString()),
7381
};
7482
}
7583

0 commit comments

Comments
 (0)