1 | import basem = require('./ClientApiBases');
|
2 | import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
|
3 | import NotificationInterfaces = require("./interfaces/NotificationInterfaces");
|
4 | import VSSInterfaces = require("./interfaces/common/VSSInterfaces");
|
5 | export interface INotificationApi extends basem.ClientApiBase {
|
6 | performBatchNotificationOperations(operation: NotificationInterfaces.BatchNotificationOperation): Promise<void>;
|
7 | listLogs(source: string, entryId?: string, startTime?: Date, endTime?: Date): Promise<NotificationInterfaces.INotificationDiagnosticLog[]>;
|
8 | getSubscriptionDiagnostics(subscriptionId: string): Promise<NotificationInterfaces.SubscriptionDiagnostics>;
|
9 | updateSubscriptionDiagnostics(updateParameters: NotificationInterfaces.UpdateSubscripitonDiagnosticsParameters, subscriptionId: string): Promise<NotificationInterfaces.SubscriptionDiagnostics>;
|
10 | publishEvent(notificationEvent: VSSInterfaces.VssNotificationEvent): Promise<VSSInterfaces.VssNotificationEvent>;
|
11 | transformEvent(transformRequest: NotificationInterfaces.EventTransformRequest): Promise<NotificationInterfaces.EventTransformResult>;
|
12 | queryEventTypes(inputValuesQuery: NotificationInterfaces.FieldValuesQuery, eventType: string): Promise<NotificationInterfaces.NotificationEventField[]>;
|
13 | getEventType(eventType: string): Promise<NotificationInterfaces.NotificationEventType>;
|
14 | listEventTypes(publisherId?: string): Promise<NotificationInterfaces.NotificationEventType[]>;
|
15 | getNotificationReasons(notificationId: number): Promise<NotificationInterfaces.NotificationReason>;
|
16 | listNotificationReasons(notificationIds?: number): Promise<NotificationInterfaces.NotificationReason[]>;
|
17 | getSettings(): Promise<NotificationInterfaces.NotificationAdminSettings>;
|
18 | updateSettings(updateParameters: NotificationInterfaces.NotificationAdminSettingsUpdateParameters): Promise<NotificationInterfaces.NotificationAdminSettings>;
|
19 | getSubscriber(subscriberId: string): Promise<NotificationInterfaces.NotificationSubscriber>;
|
20 | updateSubscriber(updateParameters: NotificationInterfaces.NotificationSubscriberUpdateParameters, subscriberId: string): Promise<NotificationInterfaces.NotificationSubscriber>;
|
21 | querySubscriptions(subscriptionQuery: NotificationInterfaces.SubscriptionQuery): Promise<NotificationInterfaces.NotificationSubscription[]>;
|
22 | createSubscription(createParameters: NotificationInterfaces.NotificationSubscriptionCreateParameters): Promise<NotificationInterfaces.NotificationSubscription>;
|
23 | deleteSubscription(subscriptionId: string): Promise<void>;
|
24 | getSubscription(subscriptionId: string, queryFlags?: NotificationInterfaces.SubscriptionQueryFlags): Promise<NotificationInterfaces.NotificationSubscription>;
|
25 | listSubscriptions(targetId?: string, ids?: string[], queryFlags?: NotificationInterfaces.SubscriptionQueryFlags): Promise<NotificationInterfaces.NotificationSubscription[]>;
|
26 | updateSubscription(updateParameters: NotificationInterfaces.NotificationSubscriptionUpdateParameters, subscriptionId: string): Promise<NotificationInterfaces.NotificationSubscription>;
|
27 | getSubscriptionTemplates(): Promise<NotificationInterfaces.NotificationSubscriptionTemplate[]>;
|
28 | publishTokenEvent(notificationEvent: VSSInterfaces.VssNotificationEvent): Promise<VSSInterfaces.VssNotificationEvent>;
|
29 | updateSubscriptionUserSettings(userSettings: NotificationInterfaces.SubscriptionUserSettings, subscriptionId: string, userId: string): Promise<NotificationInterfaces.SubscriptionUserSettings>;
|
30 | }
|
31 | export declare class NotificationApi extends basem.ClientApiBase implements INotificationApi {
|
32 | constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions);
|
33 | /**
|
34 | * @param {NotificationInterfaces.BatchNotificationOperation} operation
|
35 | */
|
36 | performBatchNotificationOperations(operation: NotificationInterfaces.BatchNotificationOperation): Promise<void>;
|
37 | |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | listLogs(source: string, entryId?: string, startTime?: Date, endTime?: Date): Promise<NotificationInterfaces.INotificationDiagnosticLog[]>;
|
46 | |
47 |
|
48 |
|
49 |
|
50 |
|
51 | getSubscriptionDiagnostics(subscriptionId: string): Promise<NotificationInterfaces.SubscriptionDiagnostics>;
|
52 | |
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 | updateSubscriptionDiagnostics(updateParameters: NotificationInterfaces.UpdateSubscripitonDiagnosticsParameters, subscriptionId: string): Promise<NotificationInterfaces.SubscriptionDiagnostics>;
|
59 | |
60 |
|
61 |
|
62 |
|
63 |
|
64 | publishEvent(notificationEvent: VSSInterfaces.VssNotificationEvent): Promise<VSSInterfaces.VssNotificationEvent>;
|
65 | |
66 |
|
67 |
|
68 |
|
69 |
|
70 | transformEvent(transformRequest: NotificationInterfaces.EventTransformRequest): Promise<NotificationInterfaces.EventTransformResult>;
|
71 | |
72 |
|
73 |
|
74 |
|
75 | queryEventTypes(inputValuesQuery: NotificationInterfaces.FieldValuesQuery, eventType: string): Promise<NotificationInterfaces.NotificationEventField[]>;
|
76 | |
77 |
|
78 |
|
79 |
|
80 |
|
81 | getEventType(eventType: string): Promise<NotificationInterfaces.NotificationEventType>;
|
82 | |
83 |
|
84 |
|
85 |
|
86 |
|
87 | listEventTypes(publisherId?: string): Promise<NotificationInterfaces.NotificationEventType[]>;
|
88 | |
89 |
|
90 |
|
91 | getNotificationReasons(notificationId: number): Promise<NotificationInterfaces.NotificationReason>;
|
92 | |
93 |
|
94 |
|
95 | listNotificationReasons(notificationIds?: number): Promise<NotificationInterfaces.NotificationReason[]>;
|
96 | |
97 |
|
98 | getSettings(): Promise<NotificationInterfaces.NotificationAdminSettings>;
|
99 | |
100 |
|
101 |
|
102 | updateSettings(updateParameters: NotificationInterfaces.NotificationAdminSettingsUpdateParameters): Promise<NotificationInterfaces.NotificationAdminSettings>;
|
103 | |
104 |
|
105 |
|
106 |
|
107 |
|
108 | getSubscriber(subscriberId: string): Promise<NotificationInterfaces.NotificationSubscriber>;
|
109 | |
110 |
|
111 |
|
112 |
|
113 |
|
114 |
|
115 | updateSubscriber(updateParameters: NotificationInterfaces.NotificationSubscriberUpdateParameters, subscriberId: string): Promise<NotificationInterfaces.NotificationSubscriber>;
|
116 | |
117 |
|
118 |
|
119 |
|
120 |
|
121 | querySubscriptions(subscriptionQuery: NotificationInterfaces.SubscriptionQuery): Promise<NotificationInterfaces.NotificationSubscription[]>;
|
122 | |
123 |
|
124 |
|
125 |
|
126 |
|
127 | createSubscription(createParameters: NotificationInterfaces.NotificationSubscriptionCreateParameters): Promise<NotificationInterfaces.NotificationSubscription>;
|
128 | |
129 |
|
130 |
|
131 |
|
132 |
|
133 | deleteSubscription(subscriptionId: string): Promise<void>;
|
134 | |
135 |
|
136 |
|
137 |
|
138 |
|
139 |
|
140 | getSubscription(subscriptionId: string, queryFlags?: NotificationInterfaces.SubscriptionQueryFlags): Promise<NotificationInterfaces.NotificationSubscription>;
|
141 | |
142 |
|
143 |
|
144 |
|
145 |
|
146 |
|
147 |
|
148 | listSubscriptions(targetId?: string, ids?: string[], queryFlags?: NotificationInterfaces.SubscriptionQueryFlags): Promise<NotificationInterfaces.NotificationSubscription[]>;
|
149 | |
150 |
|
151 |
|
152 |
|
153 |
|
154 |
|
155 | updateSubscription(updateParameters: NotificationInterfaces.NotificationSubscriptionUpdateParameters, subscriptionId: string): Promise<NotificationInterfaces.NotificationSubscription>;
|
156 | |
157 |
|
158 |
|
159 |
|
160 | getSubscriptionTemplates(): Promise<NotificationInterfaces.NotificationSubscriptionTemplate[]>;
|
161 | |
162 |
|
163 |
|
164 |
|
165 |
|
166 | publishTokenEvent(notificationEvent: VSSInterfaces.VssNotificationEvent): Promise<VSSInterfaces.VssNotificationEvent>;
|
167 | |
168 |
|
169 |
|
170 |
|
171 |
|
172 |
|
173 |
|
174 | updateSubscriptionUserSettings(userSettings: NotificationInterfaces.SubscriptionUserSettings, subscriptionId: string, userId: string): Promise<NotificationInterfaces.SubscriptionUserSettings>;
|
175 | }
|