Skip to content

Commit 72ab612

Browse files
committed
Add 1.8.x support
1 parent b9cbafa commit 72ab612

File tree

5 files changed

+41
-41
lines changed

5 files changed

+41
-41
lines changed

src/models.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ export namespace Models {
12281228
*/
12291229
max?: number;
12301230
/**
1231-
* Default value for attribute when not provided. Cannot be set when attribute is required.
1231+
* Default value for column when not provided. Cannot be set when column is required.
12321232
*/
12331233
default?: number;
12341234
}
@@ -1278,7 +1278,7 @@ export namespace Models {
12781278
*/
12791279
max?: number;
12801280
/**
1281-
* Default value for attribute when not provided. Cannot be set when attribute is required.
1281+
* Default value for column when not provided. Cannot be set when column is required.
12821282
*/
12831283
default?: number;
12841284
}
@@ -1320,7 +1320,7 @@ export namespace Models {
13201320
*/
13211321
$updatedAt: string;
13221322
/**
1323-
* Default value for attribute when not provided. Cannot be set when attribute is required.
1323+
* Default value for column when not provided. Cannot be set when column is required.
13241324
*/
13251325
default?: boolean;
13261326
}
@@ -1366,7 +1366,7 @@ export namespace Models {
13661366
*/
13671367
format: string;
13681368
/**
1369-
* Default value for attribute when not provided. Cannot be set when attribute is required.
1369+
* Default value for column when not provided. Cannot be set when column is required.
13701370
*/
13711371
default?: string;
13721372
}
@@ -1416,7 +1416,7 @@ export namespace Models {
14161416
*/
14171417
format: string;
14181418
/**
1419-
* Default value for attribute when not provided. Cannot be set when attribute is required.
1419+
* Default value for column when not provided. Cannot be set when column is required.
14201420
*/
14211421
default?: string;
14221422
}
@@ -1462,7 +1462,7 @@ export namespace Models {
14621462
*/
14631463
format: string;
14641464
/**
1465-
* Default value for attribute when not provided. Cannot be set when attribute is required.
1465+
* Default value for column when not provided. Cannot be set when column is required.
14661466
*/
14671467
default?: string;
14681468
}
@@ -1554,7 +1554,7 @@ export namespace Models {
15541554
*/
15551555
format: string;
15561556
/**
1557-
* Default value for attribute when not provided. Only null is optional
1557+
* Default value for column when not provided. Only null is optional
15581558
*/
15591559
default?: string;
15601560
}
@@ -3023,7 +3023,7 @@ export namespace Models {
30233023
*/
30243024
$createdAt: string;
30253025
/**
3026-
* Execution upate date in ISO 8601 format.
3026+
* Execution update date in ISO 8601 format.
30273027
*/
30283028
$updatedAt: string;
30293029
/**

src/services/account.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ export class Account {
427427
* @param {AuthenticatorType} params.type - Type of authenticator. Must be `totp`
428428
* @throws {AppwriteException}
429429
* @returns {Promise<Models.MfaType>}
430-
* @deprecated This API has been deprecated since 1.8.0. Please use `CreateMFAAuthenticator` instead.
430+
* @deprecated This API has been deprecated since 1.8.0. Please use `Account.createMFAAuthenticator` instead.
431431
*/
432432
createMfaAuthenticator(params: { type: AuthenticatorType }): Promise<Models.MfaType>;
433433
/**
@@ -533,7 +533,7 @@ export class Account {
533533
* @param {string} params.otp - Valid verification token.
534534
* @throws {AppwriteException}
535535
* @returns {Promise<Models.User<Preferences>>}
536-
* @deprecated This API has been deprecated since 1.8.0. Please use `UpdateMFAAuthenticator` instead.
536+
* @deprecated This API has been deprecated since 1.8.0. Please use `Account.updateMFAAuthenticator` instead.
537537
*/
538538
updateMfaAuthenticator<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { type: AuthenticatorType, otp: string }): Promise<Models.User<Preferences>>;
539539
/**
@@ -659,7 +659,7 @@ export class Account {
659659
* @param {AuthenticatorType} params.type - Type of authenticator.
660660
* @throws {AppwriteException}
661661
* @returns {Promise<{}>}
662-
* @deprecated This API has been deprecated since 1.8.0. Please use `DeleteMFAAuthenticator` instead.
662+
* @deprecated This API has been deprecated since 1.8.0. Please use `Account.deleteMFAAuthenticator` instead.
663663
*/
664664
deleteMfaAuthenticator(params: { type: AuthenticatorType }): Promise<{}>;
665665
/**
@@ -764,7 +764,7 @@ export class Account {
764764
* @param {AuthenticationFactor} params.factor - Factor used for verification. Must be one of following: `email`, `phone`, `totp`, `recoveryCode`.
765765
* @throws {AppwriteException}
766766
* @returns {Promise<Models.MfaChallenge>}
767-
* @deprecated This API has been deprecated since 1.8.0. Please use `CreateMFAChallenge` instead.
767+
* @deprecated This API has been deprecated since 1.8.0. Please use `Account.createMFAChallenge` instead.
768768
*/
769769
createMfaChallenge(params: { factor: AuthenticationFactor }): Promise<Models.MfaChallenge>;
770770
/**
@@ -876,7 +876,7 @@ export class Account {
876876
* @param {string} params.otp - Valid verification token.
877877
* @throws {AppwriteException}
878878
* @returns {Promise<Models.Session>}
879-
* @deprecated This API has been deprecated since 1.8.0. Please use `UpdateMFAChallenge` instead.
879+
* @deprecated This API has been deprecated since 1.8.0. Please use `Account.updateMFAChallenge` instead.
880880
*/
881881
updateMfaChallenge(params: { challengeId: string, otp: string }): Promise<Models.Session>;
882882
/**
@@ -1007,7 +1007,7 @@ export class Account {
10071007
*
10081008
* @throws {AppwriteException}
10091009
* @returns {Promise<Models.MfaFactors>}
1010-
* @deprecated This API has been deprecated since 1.8.0. Please use `ListMFAFactors` instead.
1010+
* @deprecated This API has been deprecated since 1.8.0. Please use `Account.listMFAFactors` instead.
10111011
*/
10121012
listMfaFactors(): Promise<Models.MfaFactors> {
10131013

@@ -1054,7 +1054,7 @@ export class Account {
10541054
*
10551055
* @throws {AppwriteException}
10561056
* @returns {Promise<Models.MfaRecoveryCodes>}
1057-
* @deprecated This API has been deprecated since 1.8.0. Please use `GetMFARecoveryCodes` instead.
1057+
* @deprecated This API has been deprecated since 1.8.0. Please use `Account.getMFARecoveryCodes` instead.
10581058
*/
10591059
getMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes> {
10601060

@@ -1101,7 +1101,7 @@ export class Account {
11011101
*
11021102
* @throws {AppwriteException}
11031103
* @returns {Promise<Models.MfaRecoveryCodes>}
1104-
* @deprecated This API has been deprecated since 1.8.0. Please use `CreateMFARecoveryCodes` instead.
1104+
* @deprecated This API has been deprecated since 1.8.0. Please use `Account.createMFARecoveryCodes` instead.
11051105
*/
11061106
createMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes> {
11071107

@@ -1150,7 +1150,7 @@ export class Account {
11501150
*
11511151
* @throws {AppwriteException}
11521152
* @returns {Promise<Models.MfaRecoveryCodes>}
1153-
* @deprecated This API has been deprecated since 1.8.0. Please use `UpdateMFARecoveryCodes` instead.
1153+
* @deprecated This API has been deprecated since 1.8.0. Please use `Account.updateMFARecoveryCodes` instead.
11541154
*/
11551155
updateMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes> {
11561156

src/services/messaging.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ export class Messaging {
716716
* @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
717717
* @throws {AppwriteException}
718718
* @returns {Promise<Models.Message>}
719-
* @deprecated This API has been deprecated since 1.8.0. Please use `CreateSMS` instead.
719+
* @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.createSMS` instead.
720720
*/
721721
createSms(params: { messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], draft?: boolean, scheduledAt?: string }): Promise<Models.Message>;
722722
/**
@@ -920,7 +920,7 @@ export class Messaging {
920920
* @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
921921
* @throws {AppwriteException}
922922
* @returns {Promise<Models.Message>}
923-
* @deprecated This API has been deprecated since 1.8.0. Please use `UpdateSMS` instead.
923+
* @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.updateSMS` instead.
924924
*/
925925
updateSms(params: { messageId: string, topics?: string[], users?: string[], targets?: string[], content?: string, draft?: boolean, scheduledAt?: string }): Promise<Models.Message>;
926926
/**
@@ -1397,7 +1397,7 @@ export class Messaging {
13971397
* @param {boolean} params.enabled - Set as enabled.
13981398
* @throws {AppwriteException}
13991399
* @returns {Promise<Models.Provider>}
1400-
* @deprecated This API has been deprecated since 1.8.0. Please use `CreateAPNSProvider` instead.
1400+
* @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.createAPNSProvider` instead.
14011401
*/
14021402
createApnsProvider(params: { providerId: string, name: string, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean, enabled?: boolean }): Promise<Models.Provider>;
14031403
/**
@@ -1614,7 +1614,7 @@ export class Messaging {
16141614
* @param {boolean} params.sandbox - Use APNS sandbox environment.
16151615
* @throws {AppwriteException}
16161616
* @returns {Promise<Models.Provider>}
1617-
* @deprecated This API has been deprecated since 1.8.0. Please use `UpdateAPNSProvider` instead.
1617+
* @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.updateAPNSProvider` instead.
16181618
*/
16191619
updateApnsProvider(params: { providerId: string, name?: string, enabled?: boolean, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean }): Promise<Models.Provider>;
16201620
/**
@@ -1815,7 +1815,7 @@ export class Messaging {
18151815
* @param {boolean} params.enabled - Set as enabled.
18161816
* @throws {AppwriteException}
18171817
* @returns {Promise<Models.Provider>}
1818-
* @deprecated This API has been deprecated since 1.8.0. Please use `CreateFCMProvider` instead.
1818+
* @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.createFCMProvider` instead.
18191819
*/
18201820
createFcmProvider(params: { providerId: string, name: string, serviceAccountJSON?: object, enabled?: boolean }): Promise<Models.Provider>;
18211821
/**
@@ -1976,7 +1976,7 @@ export class Messaging {
19761976
* @param {object} params.serviceAccountJSON - FCM service account JSON.
19771977
* @throws {AppwriteException}
19781978
* @returns {Promise<Models.Provider>}
1979-
* @deprecated This API has been deprecated since 1.8.0. Please use `UpdateFCMProvider` instead.
1979+
* @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.updateFCMProvider` instead.
19801980
*/
19811981
updateFcmProvider(params: { providerId: string, name?: string, enabled?: boolean, serviceAccountJSON?: object }): Promise<Models.Provider>;
19821982
/**
@@ -2765,7 +2765,7 @@ export class Messaging {
27652765
* @param {boolean} params.enabled - Set as enabled.
27662766
* @throws {AppwriteException}
27672767
* @returns {Promise<Models.Provider>}
2768-
* @deprecated This API has been deprecated since 1.8.0. Please use `CreateSMTPProvider` instead.
2768+
* @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.createSMTPProvider` instead.
27692769
*/
27702770
createSmtpProvider(params: { providerId: string, name: string, host: string, port?: number, username?: string, password?: string, encryption?: SmtpEncryption, autoTLS?: boolean, mailer?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean }): Promise<Models.Provider>;
27712771
/**
@@ -3072,7 +3072,7 @@ export class Messaging {
30723072
* @param {boolean} params.enabled - Set as enabled.
30733073
* @throws {AppwriteException}
30743074
* @returns {Promise<Models.Provider>}
3075-
* @deprecated This API has been deprecated since 1.8.0. Please use `UpdateSMTPProvider` instead.
3075+
* @deprecated This API has been deprecated since 1.8.0. Please use `Messaging.updateSMTPProvider` instead.
30763076
*/
30773077
updateSmtpProvider(params: { providerId: string, name?: string, host?: string, port?: number, username?: string, password?: string, encryption?: SmtpEncryption, autoTLS?: boolean, mailer?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean }): Promise<Models.Provider>;
30783078
/**

0 commit comments

Comments
 (0)