-
Notifications
You must be signed in to change notification settings - Fork 10
/
interfaces.ts
121 lines (113 loc) · 4.01 KB
/
interfaces.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/**
* Bungie.Net API
* These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
*
* OpenAPI spec version: 2.3.5
* Contact: support@bungie.com
*
* NOTE: This class is auto generated by the bungie-api-ts code generator program.
* https://github.com/DestinyItemManager/bugie-api-ts
* Do not edit these files manually.
*/
import {
BungieMembershipType
} from '../common';
import {
IgnoreResponse,
PartnershipType
} from '../platform';
/**
* This contract supplies basic information commonly used to display a minimal
* amount of information about a user. Take care to not add more properties here
* unless the property applies in all (or at least the majority) of the situations
* where UserInfoCard is used. Avoid adding game specific or platform specific
* details here. In cases where UserInfoCard is a subset of the data needed in a
* contract, use UserInfoCard as a property of other contracts.
*/
export interface UserInfoCard {
/**
* A platform specific additional display name - ex: psn Real Name, bnet Unique
* Name, etc.
*/
readonly supplementalDisplayName: string;
/** URL the Icon if available. */
readonly iconPath: string;
/** Type of the membership. */
readonly membershipType: BungieMembershipType;
/** Membership ID as they user is known in the Accounts service */
readonly membershipId: string;
/**
* Display Name the player has chosen for themselves. The display name is optional
* when the data type is used as input to a platform API.
*/
readonly displayName: string;
}
export interface GeneralUser {
readonly membershipId: string;
readonly uniqueName: string;
readonly normalizedName: string;
readonly displayName: string;
readonly profilePicture: number;
readonly profileTheme: number;
readonly userTitle: number;
readonly successMessageFlags: string;
readonly isDeleted: boolean;
readonly about: string;
readonly firstAccess?: string;
readonly lastUpdate?: string;
readonly legacyPortalUID?: string;
readonly context: UserToUserContext;
readonly psnDisplayName: string;
readonly xboxDisplayName: string;
readonly fbDisplayName: string;
readonly showActivity?: boolean;
readonly locale: string;
readonly localeInheritDefault: boolean;
readonly lastBanReportId?: string;
readonly showGroupMessaging: boolean;
readonly profilePicturePath: string;
readonly profilePictureWidePath: string;
readonly profileThemeName: string;
readonly userTitleDisplay: string;
readonly statusText: string;
readonly statusDate: string;
readonly profileBanExpire?: string;
readonly blizzardDisplayName: string;
}
export interface UserToUserContext {
readonly isFollowing: boolean;
readonly ignoreStatus: IgnoreResponse;
readonly globalIgnoreEndDate?: string;
}
export interface UserTheme {
readonly userThemeId: number;
readonly userThemeName: string;
readonly userThemeDescription: string;
}
export interface UserMembershipData {
/**
* this allows you to see destiny memberships that are visible and linked to this
* account (regardless of whether or not they have characters on the world server)
*/
readonly destinyMemberships: UserInfoCard[];
readonly bungieNetUser: GeneralUser;
}
/** All the partnership info that's fit to expose externally, if we care to do so. */
export interface PublicPartnershipDetail {
readonly partnerType: PartnershipType;
readonly identifier: string;
readonly name: string;
readonly icon: string;
}
/** Very basic info about a user as returned by the Account server. */
export interface UserMembership {
/** Type of the membership. */
readonly membershipType: BungieMembershipType;
/** Membership ID as they user is known in the Accounts service */
readonly membershipId: string;
/**
* Display Name the player has chosen for themselves. The display name is optional
* when the data type is used as input to a platform API.
*/
readonly displayName: string;
}