-
-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathdefinitions.d.ts
72 lines (66 loc) · 1.91 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
interface IApplePortalSessionService {
createUserSession(credentials: ICredentials): Promise<IApplePortalUserDetail>;
createWebSession(contentProviderId: number, dsId: string): Promise<string>;
}
interface IApplePortalCookieService {
getWebSessionCookie(cookiesData: string[]): string;
getUserSessionCookie(): string;
updateUserSessionCookie(cookie: string[]): void;
}
interface IApplePortalApplicationService {
getApplications(credentials: ICredentials): Promise<IApplePortalApplicationSummary[]>
getApplicationsByProvider(contentProviderId: number, dsId: string): Promise<IApplePortalApplication>;
getApplicationByBundleId(credentials: ICredentials, bundleId: string): Promise<IApplePortalApplicationSummary>;
}
interface IApplePortalUserDetail {
associatedAccounts: IApplePortalAssociatedAccountData[];
sessionToken: {
dsId: string;
contentProviderId: number;
ipAddress: string;
}
contentProviderFeatures: string[];
contentProviderId: number;
firstname: string;
displayName: string;
userName: string;
userId: string;
contentProvider: string;
visibility: boolean;
DYCVisibility: boolean;
}
interface IApplePortalAssociatedAccountData {
contentProvider: {
name: string;
contentProviderId: number;
contentProviderPublicId: string;
contentProviderTypes: string[];
};
roles: string[];
lastLogin: number;
}
interface IApplePortalApplication {
summaries: IApplePortalApplicationSummary[];
showSharedSecret: boolean;
macBundlesEnabled: boolean;
canCreateMacApps: boolean;
cloudStorageEnabled: boolean;
sharedSecretLink: string;
gameCenterGroupLink: string;
enabledPlatforms: string[];
cloudStorageLink: string;
catalogReportsLink: string;
canCreateIOSApps: boolean;
}
interface IApplePortalApplicationSummary {
name: string;
adamId: string;
vendorId: string;
bundleId: string;
appType: any;
versionSets: any[];
lastModifiedDate: number;
iconUrl: string;
issuesCount: number;
priceTier: string;
}