forked from NativeScript/nativescript-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefinitions.d.ts
87 lines (76 loc) · 2.05 KB
/
definitions.d.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
import { ICredentials } from "../../common/declarations";
interface IApplePortalSessionService {
createWebSession(contentProviderId: number): Promise<string>;
createUserSession(
credentials: ICredentials,
opts?: IAppleCreateUserSessionOptions
): Promise<IApplePortalUserDetail>;
}
interface IApplePortalCookieService {
getWebSessionCookie(cookiesData: string[]): string;
getUserSessionCookie(): string;
updateUserSessionCookie(cookie: string[]): void;
}
interface IApplePortalApplicationService {
getApplications(
user: IApplePortalUserDetail
): Promise<IApplePortalApplicationSummary[]>;
getApplicationsByProvider(
contentProviderId: number
): Promise<IApplePortalApplication>;
getApplicationByBundleId(
user: IApplePortalUserDetail,
bundleId: string
): Promise<IApplePortalApplicationSummary>;
}
interface IAppleCreateUserSessionOptions {
applicationSpecificPassword?: string;
sessionBase64: string;
requireInteractiveConsole?: boolean;
requireApplicationSpecificPassword?: boolean;
}
interface IAppleLoginResult {
scnt: string;
xAppleIdSessionId: string;
isTwoFactorAuthenticationEnabled: boolean;
areCredentialsValid: boolean;
hashcash: string;
}
interface IApplePortalUserDetail extends IAppleLoginResult {
associatedAccounts: IApplePortalAssociatedAccountData[];
sessionToken: {
dsId: string;
contentProviderId: number;
ipAddress: string;
};
contentProviderFeatures: string[];
contentProviderId: number;
firstname: string;
displayName: string;
userName: string;
userId: string;
contentProvider: string;
authServiceKey: string;
visibility: boolean;
DYCVisibility: boolean;
userSessionCookie: string;
}
interface IApplePortalAssociatedAccountData {
contentProvider: {
name: string;
contentProviderId: number;
contentProviderPublicId: string;
contentProviderTypes: string[];
};
roles: string[];
lastLogin: number;
}
interface IApplePortalApplication {
summaries: IApplePortalApplicationSummary[];
}
interface IApplePortalApplicationSummary {
name: string;
adamId: string;
bundleId: string;
versionSets: any[];
}