@@ -994,14 +994,14 @@ export class Messaging extends Service {
994994 *
995995 * @param {string } providerId
996996 * @param {string } name
997- * @param {string } from
997+ * @param {string } templateId
998998 * @param {string } senderId
999999 * @param {string } authKey
10001000 * @param {boolean } enabled
10011001 * @throws {AppwriteException }
10021002 * @returns {Promise }
10031003 */
1004- async createMsg91Provider ( providerId : string , name : string , from ?: string , senderId ?: string , authKey ?: string , enabled ?: boolean ) : Promise < Models . Provider > {
1004+ async createMsg91Provider ( providerId : string , name : string , templateId ?: string , senderId ?: string , authKey ?: string , enabled ?: boolean ) : Promise < Models . Provider > {
10051005 if ( typeof providerId === 'undefined' ) {
10061006 throw new AppwriteException ( 'Missing required parameter: "providerId"' ) ;
10071007 }
@@ -1019,8 +1019,8 @@ export class Messaging extends Service {
10191019 if ( typeof name !== 'undefined' ) {
10201020 payload [ 'name' ] = name ;
10211021 }
1022- if ( typeof from !== 'undefined' ) {
1023- payload [ 'from ' ] = from ;
1022+ if ( typeof templateId !== 'undefined' ) {
1023+ payload [ 'templateId ' ] = templateId ;
10241024 }
10251025 if ( typeof senderId !== 'undefined' ) {
10261026 payload [ 'senderId' ] = senderId ;
@@ -1049,13 +1049,13 @@ export class Messaging extends Service {
10491049 * @param {string } providerId
10501050 * @param {string } name
10511051 * @param {boolean } enabled
1052+ * @param {string } templateId
10521053 * @param {string } senderId
10531054 * @param {string } authKey
1054- * @param {string } from
10551055 * @throws {AppwriteException }
10561056 * @returns {Promise }
10571057 */
1058- async updateMsg91Provider ( providerId : string , name ?: string , enabled ?: boolean , senderId ?: string , authKey ?: string , from ?: string ) : Promise < Models . Provider > {
1058+ async updateMsg91Provider ( providerId : string , name ?: string , enabled ?: boolean , templateId ?: string , senderId ?: string , authKey ?: string ) : Promise < Models . Provider > {
10591059 if ( typeof providerId === 'undefined' ) {
10601060 throw new AppwriteException ( 'Missing required parameter: "providerId"' ) ;
10611061 }
@@ -1069,15 +1069,15 @@ export class Messaging extends Service {
10691069 if ( typeof enabled !== 'undefined' ) {
10701070 payload [ 'enabled' ] = enabled ;
10711071 }
1072+ if ( typeof templateId !== 'undefined' ) {
1073+ payload [ 'templateId' ] = templateId ;
1074+ }
10721075 if ( typeof senderId !== 'undefined' ) {
10731076 payload [ 'senderId' ] = senderId ;
10741077 }
10751078 if ( typeof authKey !== 'undefined' ) {
10761079 payload [ 'authKey' ] = authKey ;
10771080 }
1078- if ( typeof from !== 'undefined' ) {
1079- payload [ 'from' ] = from ;
1080- }
10811081 return await this . client . call (
10821082 'patch' ,
10831083 apiPath ,
0 commit comments