mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
Add npm script that generates ios .d.ts-es from the tests app
Less than 30 erros left, let's hope it still works Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills Roll back some changes involved in separating UIEvent for dom and ios Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
This commit is contained in:
162
tns-core-modules/ios/objc-i386/objc!Accounts.d.ts
vendored
Normal file
162
tns-core-modules/ios/objc-i386/objc!Accounts.d.ts
vendored
Normal file
@ -0,0 +1,162 @@
|
||||
|
||||
declare class ACAccount extends NSObject {
|
||||
|
||||
static alloc(): ACAccount; // inherited from NSObject
|
||||
|
||||
static new(): ACAccount; // inherited from NSObject
|
||||
|
||||
accountDescription: string;
|
||||
|
||||
accountType: ACAccountType;
|
||||
|
||||
credential: ACAccountCredential;
|
||||
|
||||
/* readonly */ identifier: string;
|
||||
|
||||
/* readonly */ userFullName: string;
|
||||
|
||||
username: string;
|
||||
|
||||
constructor(o: { accountType: ACAccountType; });
|
||||
|
||||
initWithAccountType(type: ACAccountType): this;
|
||||
}
|
||||
|
||||
declare class ACAccountCredential extends NSObject {
|
||||
|
||||
static alloc(): ACAccountCredential; // inherited from NSObject
|
||||
|
||||
static new(): ACAccountCredential; // inherited from NSObject
|
||||
|
||||
oauthToken: string;
|
||||
|
||||
constructor(o: { OAuth2Token: string; refreshToken: string; expiryDate: Date; });
|
||||
|
||||
constructor(o: { OAuthToken: string; tokenSecret: string; });
|
||||
|
||||
initWithOAuth2TokenRefreshTokenExpiryDate(token: string, refreshToken: string, expiryDate: Date): this;
|
||||
|
||||
initWithOAuthTokenTokenSecret(token: string, secret: string): this;
|
||||
}
|
||||
|
||||
declare const enum ACAccountCredentialRenewResult {
|
||||
|
||||
Renewed = 0,
|
||||
|
||||
Rejected = 1,
|
||||
|
||||
Failed = 2
|
||||
}
|
||||
|
||||
declare class ACAccountStore extends NSObject {
|
||||
|
||||
static alloc(): ACAccountStore; // inherited from NSObject
|
||||
|
||||
static new(): ACAccountStore; // inherited from NSObject
|
||||
|
||||
/* readonly */ accounts: NSArray<any>;
|
||||
|
||||
accountTypeWithAccountTypeIdentifier(typeIdentifier: string): ACAccountType;
|
||||
|
||||
accountWithIdentifier(identifier: string): ACAccount;
|
||||
|
||||
accountsWithAccountType(accountType: ACAccountType): NSArray<any>;
|
||||
|
||||
removeAccountWithCompletionHandler(account: ACAccount, completionHandler: (p1: boolean, p2: NSError) => void): void;
|
||||
|
||||
renewCredentialsForAccountCompletion(account: ACAccount, completionHandler: (p1: ACAccountCredentialRenewResult, p2: NSError) => void): void;
|
||||
|
||||
requestAccessToAccountsWithTypeOptionsCompletion(accountType: ACAccountType, options: NSDictionary<any, any>, completion: (p1: boolean, p2: NSError) => void): void;
|
||||
|
||||
requestAccessToAccountsWithTypeWithCompletionHandler(accountType: ACAccountType, handler: (p1: boolean, p2: NSError) => void): void;
|
||||
|
||||
saveAccountWithCompletionHandler(account: ACAccount, completionHandler: (p1: boolean, p2: NSError) => void): void;
|
||||
}
|
||||
|
||||
declare var ACAccountStoreDidChangeNotification: string;
|
||||
|
||||
declare class ACAccountType extends NSObject {
|
||||
|
||||
static alloc(): ACAccountType; // inherited from NSObject
|
||||
|
||||
static new(): ACAccountType; // inherited from NSObject
|
||||
|
||||
/* readonly */ accessGranted: boolean;
|
||||
|
||||
/* readonly */ accountTypeDescription: string;
|
||||
|
||||
/* readonly */ identifier: string;
|
||||
}
|
||||
|
||||
declare var ACAccountTypeIdentifierFacebook: string;
|
||||
|
||||
declare var ACAccountTypeIdentifierSinaWeibo: string;
|
||||
|
||||
declare var ACAccountTypeIdentifierTencentWeibo: string;
|
||||
|
||||
declare var ACAccountTypeIdentifierTwitter: string;
|
||||
|
||||
declare const enum ACErrorCode {
|
||||
|
||||
Unknown = 1,
|
||||
|
||||
AccountMissingRequiredProperty = 2,
|
||||
|
||||
AccountAuthenticationFailed = 3,
|
||||
|
||||
AccountTypeInvalid = 4,
|
||||
|
||||
AccountAlreadyExists = 5,
|
||||
|
||||
AccountNotFound = 6,
|
||||
|
||||
PermissionDenied = 7,
|
||||
|
||||
AccessInfoInvalid = 8,
|
||||
|
||||
ClientPermissionDenied = 9,
|
||||
|
||||
AccessDeniedByProtectionPolicy = 10,
|
||||
|
||||
CredentialNotFound = 11,
|
||||
|
||||
FetchCredentialFailed = 12,
|
||||
|
||||
StoreCredentialFailed = 13,
|
||||
|
||||
RemoveCredentialFailed = 14,
|
||||
|
||||
UpdatingNonexistentAccount = 15,
|
||||
|
||||
InvalidClientBundleID = 16,
|
||||
|
||||
DeniedByPlugin = 17,
|
||||
|
||||
CoreDataSaveFailed = 18,
|
||||
|
||||
FailedSerializingAccountInfo = 19,
|
||||
|
||||
InvalidCommand = 20,
|
||||
|
||||
MissingTransportMessageID = 21,
|
||||
|
||||
CredentialItemNotFound = 22,
|
||||
|
||||
CredentialItemNotExpired = 23
|
||||
}
|
||||
|
||||
declare var ACErrorDomain: string;
|
||||
|
||||
declare var ACFacebookAppIdKey: string;
|
||||
|
||||
declare var ACFacebookAudienceEveryone: string;
|
||||
|
||||
declare var ACFacebookAudienceFriends: string;
|
||||
|
||||
declare var ACFacebookAudienceKey: string;
|
||||
|
||||
declare var ACFacebookAudienceOnlyMe: string;
|
||||
|
||||
declare var ACFacebookPermissionsKey: string;
|
||||
|
||||
declare var ACTencentWeiboAppIdKey: string;
|
Reference in New Issue
Block a user