@@ -2,10 +2,22 @@ import { Injectable } from '@angular/core';
2
2
import { Plugin , Cordova , AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core' ;
3
3
import { Observable } from 'rxjs' ;
4
4
5
+ /**
6
+ * Interface for UAirship Tag Editor
7
+ */
5
8
export interface TagGroupEditor {
6
- addTags ( ) : void ;
7
- removeTags ( ) : void ;
8
- apply ( ) : void ;
9
+ addTags ( tagGroup : string , tags : string [ ] ) : TagGroupEditor ;
10
+ removeTags ( tagGroup : string , tags : string [ ] ) : TagGroupEditor ;
11
+ apply ( success : ( ) => void , failure : ( message : string ) => void ) : TagGroupEditor ;
12
+ }
13
+
14
+ /**
15
+ * Interface for UAirship Attributes Editor
16
+ */
17
+ export interface AttributesEditor {
18
+ setAttribute ( name : string , value : string | number | boolean | Date ) : AttributesEditor ;
19
+ removeAttribute ( name : string ) : AttributesEditor ;
20
+ apply ( success : ( ) => void , failure : ( message : string ) => void ) : AttributesEditor ;
9
21
}
10
22
11
23
/**
@@ -214,6 +226,7 @@ export class UrbanAirShip extends AwesomeCordovaNativePlugin {
214
226
* new config will not be used until the next app start.
215
227
*
216
228
* @param {object } config The Urban Airship config.
229
+ * @param {string } config.site Sets the cloud site, must be either EU or US.
217
230
* @param {object } config.development The Urban Airship development config.
218
231
* @param {string } config.development.appKey The development appKey.
219
232
* @param {string } config.development.appSecret The development appSecret.
@@ -538,24 +551,36 @@ export class UrbanAirShip extends AwesomeCordovaNativePlugin {
538
551
539
552
/**
540
553
* Creates an editor to modify the named user tag groups.
541
- *
542
- * @returns {TagGroupEditor } A tag group editor instance.
543
554
*/
544
- @Cordova ( )
555
+ @Cordova ( { sync : true } )
545
556
editNamedUserTagGroups ( ) : TagGroupEditor {
546
557
return ;
547
558
}
548
559
549
560
/**
550
561
* Creates an editor to modify the channel tag groups.
551
- *
552
- * @returns {TagGroupEditor } A tag group editor instance.
553
562
*/
554
- @Cordova ( )
563
+ @Cordova ( { sync : true } )
555
564
editChannelTagGroups ( ) : TagGroupEditor {
556
565
return ;
557
566
}
558
567
568
+ /**
569
+ * Creates an editor to modify the channel attributes.
570
+ */
571
+ @Cordova ( { sync : true } )
572
+ editChannelAttributes ( ) : AttributesEditor {
573
+ return ;
574
+ }
575
+
576
+ /**
577
+ * Creates an editor to modify the named user attributes.
578
+ */
579
+ @Cordova ( { sync : true } )
580
+ editNamedUserAttributes ( ) : AttributesEditor {
581
+ return ;
582
+ }
583
+
559
584
/**
560
585
* Sets an associated identifier for the Connect data stream.
561
586
*
0 commit comments