This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
generated from NuroDev/npm-template
-
Notifications
You must be signed in to change notification settings - Fork 17
/
user.types.ts
54 lines (51 loc) · 1.44 KB
/
user.types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import type {
BaseLemonsqueezyResponse,
LemonsqueezyDataType,
SharedLemonsqueezyOptions,
} from "~/shared";
/**
* @docs https://docs.lemonsqueezy.com/api/users#the-user-object
*/
export interface LemonsqueezyUser {
attributes: {
/**
* A URL to the avatar image for this user. If the user has not uploaded a custom avatar, this will point to their Gravatar URL.
*/
avatar_url: string;
/**
* A randomly generated hex color code for the user. We use this internally as the background color of an avatar if the user has not uploaded a custom avatar.
*/
color: string;
/**
* An ISO-8601 formatted date-time string indicating when the object was created.
*
* @see https://en.wikipedia.org/wiki/ISO_8601
*/
createdAt: Date;
/**
* The email address of the user.
*/
email: string;
/**
* Has the value `true` if the user has uploaded a custom avatar image.
*/
has_custom_avatar: boolean;
/**
* The name of the user.
*/
name: string;
/**
* An ISO-8601 formatted date-time string indicating when the object was last updated.
*
* @see https://en.wikipedia.org/wiki/ISO_8601
*/
updatedAt: Date;
};
id: string;
links: {
self: string;
};
type: LemonsqueezyDataType.users;
}
export interface GetUserOptions extends SharedLemonsqueezyOptions {}
export type GetUserResult = BaseLemonsqueezyResponse<LemonsqueezyUser>;