@@ -487,10 +487,11 @@ export class Databases {
487
487
* @param {string } key
488
488
* @param {boolean } required
489
489
* @param {boolean } xdefault
490
+ * @param {string } newKey
490
491
* @throws {AppwriteException }
491
492
* @returns {Promise<Models.AttributeBoolean> }
492
493
*/
493
- async updateBooleanAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , xdefault ?: boolean ) : Promise < Models . AttributeBoolean > {
494
+ async updateBooleanAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , xdefault ?: boolean , newKey ?: string ) : Promise < Models . AttributeBoolean > {
494
495
if ( typeof databaseId === 'undefined' ) {
495
496
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
496
497
}
@@ -514,6 +515,9 @@ export class Databases {
514
515
if ( typeof xdefault !== 'undefined' ) {
515
516
payload [ 'default' ] = xdefault ;
516
517
}
518
+ if ( typeof newKey !== 'undefined' ) {
519
+ payload [ 'newKey' ] = newKey ;
520
+ }
517
521
const uri = new URL ( this . client . config . endpoint + apiPath ) ;
518
522
519
523
const apiHeaders : { [ header : string ] : string } = {
@@ -591,10 +595,11 @@ export class Databases {
591
595
* @param {string } key
592
596
* @param {boolean } required
593
597
* @param {string } xdefault
598
+ * @param {string } newKey
594
599
* @throws {AppwriteException }
595
600
* @returns {Promise<Models.AttributeDatetime> }
596
601
*/
597
- async updateDatetimeAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , xdefault ?: string ) : Promise < Models . AttributeDatetime > {
602
+ async updateDatetimeAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , xdefault ?: string , newKey ?: string ) : Promise < Models . AttributeDatetime > {
598
603
if ( typeof databaseId === 'undefined' ) {
599
604
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
600
605
}
@@ -618,6 +623,9 @@ export class Databases {
618
623
if ( typeof xdefault !== 'undefined' ) {
619
624
payload [ 'default' ] = xdefault ;
620
625
}
626
+ if ( typeof newKey !== 'undefined' ) {
627
+ payload [ 'newKey' ] = newKey ;
628
+ }
621
629
const uri = new URL ( this . client . config . endpoint + apiPath ) ;
622
630
623
631
const apiHeaders : { [ header : string ] : string } = {
@@ -697,10 +705,11 @@ export class Databases {
697
705
* @param {string } key
698
706
* @param {boolean } required
699
707
* @param {string } xdefault
708
+ * @param {string } newKey
700
709
* @throws {AppwriteException }
701
710
* @returns {Promise<Models.AttributeEmail> }
702
711
*/
703
- async updateEmailAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , xdefault ?: string ) : Promise < Models . AttributeEmail > {
712
+ async updateEmailAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , xdefault ?: string , newKey ?: string ) : Promise < Models . AttributeEmail > {
704
713
if ( typeof databaseId === 'undefined' ) {
705
714
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
706
715
}
@@ -724,6 +733,9 @@ export class Databases {
724
733
if ( typeof xdefault !== 'undefined' ) {
725
734
payload [ 'default' ] = xdefault ;
726
735
}
736
+ if ( typeof newKey !== 'undefined' ) {
737
+ payload [ 'newKey' ] = newKey ;
738
+ }
727
739
const uri = new URL ( this . client . config . endpoint + apiPath ) ;
728
740
729
741
const apiHeaders : { [ header : string ] : string } = {
@@ -811,10 +823,11 @@ export class Databases {
811
823
* @param {string[] } elements
812
824
* @param {boolean } required
813
825
* @param {string } xdefault
826
+ * @param {string } newKey
814
827
* @throws {AppwriteException }
815
828
* @returns {Promise<Models.AttributeEnum> }
816
829
*/
817
- async updateEnumAttribute ( databaseId : string , collectionId : string , key : string , elements : string [ ] , required : boolean , xdefault ?: string ) : Promise < Models . AttributeEnum > {
830
+ async updateEnumAttribute ( databaseId : string , collectionId : string , key : string , elements : string [ ] , required : boolean , xdefault ?: string , newKey ?: string ) : Promise < Models . AttributeEnum > {
818
831
if ( typeof databaseId === 'undefined' ) {
819
832
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
820
833
}
@@ -844,6 +857,9 @@ export class Databases {
844
857
if ( typeof xdefault !== 'undefined' ) {
845
858
payload [ 'default' ] = xdefault ;
846
859
}
860
+ if ( typeof newKey !== 'undefined' ) {
861
+ payload [ 'newKey' ] = newKey ;
862
+ }
847
863
const uri = new URL ( this . client . config . endpoint + apiPath ) ;
848
864
849
865
const apiHeaders : { [ header : string ] : string } = {
@@ -933,10 +949,11 @@ export class Databases {
933
949
* @param {number } min
934
950
* @param {number } max
935
951
* @param {number } xdefault
952
+ * @param {string } newKey
936
953
* @throws {AppwriteException }
937
954
* @returns {Promise<Models.AttributeFloat> }
938
955
*/
939
- async updateFloatAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , min : number , max : number , xdefault ?: number ) : Promise < Models . AttributeFloat > {
956
+ async updateFloatAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , min : number , max : number , xdefault ?: number , newKey ?: string ) : Promise < Models . AttributeFloat > {
940
957
if ( typeof databaseId === 'undefined' ) {
941
958
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
942
959
}
@@ -972,6 +989,9 @@ export class Databases {
972
989
if ( typeof xdefault !== 'undefined' ) {
973
990
payload [ 'default' ] = xdefault ;
974
991
}
992
+ if ( typeof newKey !== 'undefined' ) {
993
+ payload [ 'newKey' ] = newKey ;
994
+ }
975
995
const uri = new URL ( this . client . config . endpoint + apiPath ) ;
976
996
977
997
const apiHeaders : { [ header : string ] : string } = {
@@ -1061,10 +1081,11 @@ export class Databases {
1061
1081
* @param {number } min
1062
1082
* @param {number } max
1063
1083
* @param {number } xdefault
1084
+ * @param {string } newKey
1064
1085
* @throws {AppwriteException }
1065
1086
* @returns {Promise<Models.AttributeInteger> }
1066
1087
*/
1067
- async updateIntegerAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , min : number , max : number , xdefault ?: number ) : Promise < Models . AttributeInteger > {
1088
+ async updateIntegerAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , min : number , max : number , xdefault ?: number , newKey ?: string ) : Promise < Models . AttributeInteger > {
1068
1089
if ( typeof databaseId === 'undefined' ) {
1069
1090
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
1070
1091
}
@@ -1100,6 +1121,9 @@ export class Databases {
1100
1121
if ( typeof xdefault !== 'undefined' ) {
1101
1122
payload [ 'default' ] = xdefault ;
1102
1123
}
1124
+ if ( typeof newKey !== 'undefined' ) {
1125
+ payload [ 'newKey' ] = newKey ;
1126
+ }
1103
1127
const uri = new URL ( this . client . config . endpoint + apiPath ) ;
1104
1128
1105
1129
const apiHeaders : { [ header : string ] : string } = {
@@ -1179,10 +1203,11 @@ export class Databases {
1179
1203
* @param {string } key
1180
1204
* @param {boolean } required
1181
1205
* @param {string } xdefault
1206
+ * @param {string } newKey
1182
1207
* @throws {AppwriteException }
1183
1208
* @returns {Promise<Models.AttributeIp> }
1184
1209
*/
1185
- async updateIpAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , xdefault ?: string ) : Promise < Models . AttributeIp > {
1210
+ async updateIpAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , xdefault ?: string , newKey ?: string ) : Promise < Models . AttributeIp > {
1186
1211
if ( typeof databaseId === 'undefined' ) {
1187
1212
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
1188
1213
}
@@ -1206,6 +1231,9 @@ export class Databases {
1206
1231
if ( typeof xdefault !== 'undefined' ) {
1207
1232
payload [ 'default' ] = xdefault ;
1208
1233
}
1234
+ if ( typeof newKey !== 'undefined' ) {
1235
+ payload [ 'newKey' ] = newKey ;
1236
+ }
1209
1237
const uri = new URL ( this . client . config . endpoint + apiPath ) ;
1210
1238
1211
1239
const apiHeaders : { [ header : string ] : string } = {
@@ -1359,10 +1387,12 @@ export class Databases {
1359
1387
* @param {string } key
1360
1388
* @param {boolean } required
1361
1389
* @param {string } xdefault
1390
+ * @param {number } size
1391
+ * @param {string } newKey
1362
1392
* @throws {AppwriteException }
1363
1393
* @returns {Promise<Models.AttributeString> }
1364
1394
*/
1365
- async updateStringAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , xdefault ?: string ) : Promise < Models . AttributeString > {
1395
+ async updateStringAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , xdefault ?: string , size ?: number , newKey ?: string ) : Promise < Models . AttributeString > {
1366
1396
if ( typeof databaseId === 'undefined' ) {
1367
1397
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
1368
1398
}
@@ -1386,6 +1416,12 @@ export class Databases {
1386
1416
if ( typeof xdefault !== 'undefined' ) {
1387
1417
payload [ 'default' ] = xdefault ;
1388
1418
}
1419
+ if ( typeof size !== 'undefined' ) {
1420
+ payload [ 'size' ] = size ;
1421
+ }
1422
+ if ( typeof newKey !== 'undefined' ) {
1423
+ payload [ 'newKey' ] = newKey ;
1424
+ }
1389
1425
const uri = new URL ( this . client . config . endpoint + apiPath ) ;
1390
1426
1391
1427
const apiHeaders : { [ header : string ] : string } = {
@@ -1465,10 +1501,11 @@ export class Databases {
1465
1501
* @param {string } key
1466
1502
* @param {boolean } required
1467
1503
* @param {string } xdefault
1504
+ * @param {string } newKey
1468
1505
* @throws {AppwriteException }
1469
1506
* @returns {Promise<Models.AttributeUrl> }
1470
1507
*/
1471
- async updateUrlAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , xdefault ?: string ) : Promise < Models . AttributeUrl > {
1508
+ async updateUrlAttribute ( databaseId : string , collectionId : string , key : string , required : boolean , xdefault ?: string , newKey ?: string ) : Promise < Models . AttributeUrl > {
1472
1509
if ( typeof databaseId === 'undefined' ) {
1473
1510
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
1474
1511
}
@@ -1492,6 +1529,9 @@ export class Databases {
1492
1529
if ( typeof xdefault !== 'undefined' ) {
1493
1530
payload [ 'default' ] = xdefault ;
1494
1531
}
1532
+ if ( typeof newKey !== 'undefined' ) {
1533
+ payload [ 'newKey' ] = newKey ;
1534
+ }
1495
1535
const uri = new URL ( this . client . config . endpoint + apiPath ) ;
1496
1536
1497
1537
const apiHeaders : { [ header : string ] : string } = {
@@ -1587,10 +1627,11 @@ export class Databases {
1587
1627
* @param {string } collectionId
1588
1628
* @param {string } key
1589
1629
* @param {RelationMutate } onDelete
1630
+ * @param {string } newKey
1590
1631
* @throws {AppwriteException }
1591
1632
* @returns {Promise<Models.AttributeRelationship> }
1592
1633
*/
1593
- async updateRelationshipAttribute ( databaseId : string , collectionId : string , key : string , onDelete ?: RelationMutate ) : Promise < Models . AttributeRelationship > {
1634
+ async updateRelationshipAttribute ( databaseId : string , collectionId : string , key : string , onDelete ?: RelationMutate , newKey ?: string ) : Promise < Models . AttributeRelationship > {
1594
1635
if ( typeof databaseId === 'undefined' ) {
1595
1636
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
1596
1637
}
@@ -1605,6 +1646,9 @@ export class Databases {
1605
1646
if ( typeof onDelete !== 'undefined' ) {
1606
1647
payload [ 'onDelete' ] = onDelete ;
1607
1648
}
1649
+ if ( typeof newKey !== 'undefined' ) {
1650
+ payload [ 'newKey' ] = newKey ;
1651
+ }
1608
1652
const uri = new URL ( this . client . config . endpoint + apiPath ) ;
1609
1653
1610
1654
const apiHeaders : { [ header : string ] : string } = {
0 commit comments