@onesignal/node-onesignal 5.12.0 → 5.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/DefaultApi.d.ts +10 -0
- package/dist/apis/DefaultApi.js +249 -44
- package/dist/http/http.d.ts +1 -1
- package/dist/http/http.js +7 -0
- package/dist/models/AuditLogActor.d.ts +21 -0
- package/dist/models/AuditLogActor.js +45 -0
- package/dist/models/AuditLogContext.d.ts +20 -0
- package/dist/models/AuditLogContext.js +39 -0
- package/dist/models/AuditLogEvent.d.ts +29 -0
- package/dist/models/AuditLogEvent.js +75 -0
- package/dist/models/AuditLogTarget.d.ts +20 -0
- package/dist/models/AuditLogTarget.js +39 -0
- package/dist/models/GetSegmentSuccessResponse.d.ts +19 -0
- package/dist/models/GetSegmentSuccessResponse.js +27 -0
- package/dist/models/ListAuditLogsSuccessResponse.d.ts +20 -0
- package/dist/models/ListAuditLogsSuccessResponse.js +33 -0
- package/dist/models/ObjectSerializer.d.ts +9 -0
- package/dist/models/ObjectSerializer.js +28 -0
- package/dist/models/SegmentDetails.d.ts +24 -0
- package/dist/models/SegmentDetails.js +51 -0
- package/dist/models/UpdateSegmentRequest.d.ts +20 -0
- package/dist/models/UpdateSegmentRequest.js +33 -0
- package/dist/models/UpdateSegmentSuccessResponse.d.ts +18 -0
- package/dist/models/UpdateSegmentSuccessResponse.js +27 -0
- package/dist/models/all.d.ts +9 -0
- package/dist/models/all.js +9 -0
- package/dist/types/ObjectParamAPI.d.ts +31 -0
- package/dist/types/ObjectParamAPI.js +9 -0
- package/dist/types/ObservableAPI.d.ts +7 -0
- package/dist/types/ObservableAPI.js +45 -0
- package/dist/types/PromiseAPI.d.ts +7 -0
- package/dist/types/PromiseAPI.js +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FilterExpression } from './FilterExpression';
|
|
2
|
+
export declare class UpdateSegmentRequest {
|
|
3
|
+
'name': string;
|
|
4
|
+
'description'?: string;
|
|
5
|
+
'filters'?: Array<FilterExpression>;
|
|
6
|
+
static readonly discriminator: string | undefined;
|
|
7
|
+
static readonly attributeTypeMap: Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
baseName: string;
|
|
10
|
+
type: string;
|
|
11
|
+
format: string;
|
|
12
|
+
}>;
|
|
13
|
+
static getAttributeTypeMap(): {
|
|
14
|
+
name: string;
|
|
15
|
+
baseName: string;
|
|
16
|
+
type: string;
|
|
17
|
+
format: string;
|
|
18
|
+
}[];
|
|
19
|
+
constructor();
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSegmentRequest = void 0;
|
|
4
|
+
class UpdateSegmentRequest {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return UpdateSegmentRequest.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.UpdateSegmentRequest = UpdateSegmentRequest;
|
|
12
|
+
UpdateSegmentRequest.discriminator = undefined;
|
|
13
|
+
UpdateSegmentRequest.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "name",
|
|
16
|
+
"baseName": "name",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "description",
|
|
22
|
+
"baseName": "description",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "filters",
|
|
28
|
+
"baseName": "filters",
|
|
29
|
+
"type": "Array<FilterExpression>",
|
|
30
|
+
"format": ""
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
//# sourceMappingURL=UpdateSegmentRequest.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class UpdateSegmentSuccessResponse {
|
|
2
|
+
'success'?: boolean;
|
|
3
|
+
'id'?: string;
|
|
4
|
+
static readonly discriminator: string | undefined;
|
|
5
|
+
static readonly attributeTypeMap: Array<{
|
|
6
|
+
name: string;
|
|
7
|
+
baseName: string;
|
|
8
|
+
type: string;
|
|
9
|
+
format: string;
|
|
10
|
+
}>;
|
|
11
|
+
static getAttributeTypeMap(): {
|
|
12
|
+
name: string;
|
|
13
|
+
baseName: string;
|
|
14
|
+
type: string;
|
|
15
|
+
format: string;
|
|
16
|
+
}[];
|
|
17
|
+
constructor();
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSegmentSuccessResponse = void 0;
|
|
4
|
+
class UpdateSegmentSuccessResponse {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return UpdateSegmentSuccessResponse.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.UpdateSegmentSuccessResponse = UpdateSegmentSuccessResponse;
|
|
12
|
+
UpdateSegmentSuccessResponse.discriminator = undefined;
|
|
13
|
+
UpdateSegmentSuccessResponse.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "success",
|
|
16
|
+
"baseName": "success",
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "id",
|
|
22
|
+
"baseName": "id",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": ""
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
//# sourceMappingURL=UpdateSegmentSuccessResponse.js.map
|
package/dist/models/all.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export * from './ApiKeyToken';
|
|
2
2
|
export * from './ApiKeyTokensListResponse';
|
|
3
3
|
export * from './App';
|
|
4
|
+
export * from './AuditLogActor';
|
|
5
|
+
export * from './AuditLogContext';
|
|
6
|
+
export * from './AuditLogEvent';
|
|
7
|
+
export * from './AuditLogTarget';
|
|
4
8
|
export * from './BasicNotification';
|
|
5
9
|
export * from './BasicNotificationAllOf';
|
|
6
10
|
export * from './BasicNotificationAllOfAndroidBackgroundLayout';
|
|
@@ -26,8 +30,10 @@ export * from './FilterExpression';
|
|
|
26
30
|
export * from './GenericError';
|
|
27
31
|
export * from './GenericSuccessBoolResponse';
|
|
28
32
|
export * from './GetNotificationHistoryRequestBody';
|
|
33
|
+
export * from './GetSegmentSuccessResponse';
|
|
29
34
|
export * from './GetSegmentsSuccessResponse';
|
|
30
35
|
export * from './LanguageStringMap';
|
|
36
|
+
export * from './ListAuditLogsSuccessResponse';
|
|
31
37
|
export * from './Notification';
|
|
32
38
|
export * from './NotificationAllOf';
|
|
33
39
|
export * from './NotificationHistorySuccessResponse';
|
|
@@ -48,6 +54,7 @@ export * from './Purchase';
|
|
|
48
54
|
export * from './RateLimitError';
|
|
49
55
|
export * from './Segment';
|
|
50
56
|
export * from './SegmentData';
|
|
57
|
+
export * from './SegmentDetails';
|
|
51
58
|
export * from './SegmentNotificationTarget';
|
|
52
59
|
export * from './StartLiveActivityRequest';
|
|
53
60
|
export * from './StartLiveActivitySuccessResponse';
|
|
@@ -60,6 +67,8 @@ export * from './TransferSubscriptionRequestBody';
|
|
|
60
67
|
export * from './UpdateApiKeyRequest';
|
|
61
68
|
export * from './UpdateLiveActivityRequest';
|
|
62
69
|
export * from './UpdateLiveActivitySuccessResponse';
|
|
70
|
+
export * from './UpdateSegmentRequest';
|
|
71
|
+
export * from './UpdateSegmentSuccessResponse';
|
|
63
72
|
export * from './UpdateTemplateRequest';
|
|
64
73
|
export * from './UpdateUserRequest';
|
|
65
74
|
export * from './User';
|
package/dist/models/all.js
CHANGED
|
@@ -17,6 +17,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./ApiKeyToken"), exports);
|
|
18
18
|
__exportStar(require("./ApiKeyTokensListResponse"), exports);
|
|
19
19
|
__exportStar(require("./App"), exports);
|
|
20
|
+
__exportStar(require("./AuditLogActor"), exports);
|
|
21
|
+
__exportStar(require("./AuditLogContext"), exports);
|
|
22
|
+
__exportStar(require("./AuditLogEvent"), exports);
|
|
23
|
+
__exportStar(require("./AuditLogTarget"), exports);
|
|
20
24
|
__exportStar(require("./BasicNotification"), exports);
|
|
21
25
|
__exportStar(require("./BasicNotificationAllOf"), exports);
|
|
22
26
|
__exportStar(require("./BasicNotificationAllOfAndroidBackgroundLayout"), exports);
|
|
@@ -42,8 +46,10 @@ __exportStar(require("./FilterExpression"), exports);
|
|
|
42
46
|
__exportStar(require("./GenericError"), exports);
|
|
43
47
|
__exportStar(require("./GenericSuccessBoolResponse"), exports);
|
|
44
48
|
__exportStar(require("./GetNotificationHistoryRequestBody"), exports);
|
|
49
|
+
__exportStar(require("./GetSegmentSuccessResponse"), exports);
|
|
45
50
|
__exportStar(require("./GetSegmentsSuccessResponse"), exports);
|
|
46
51
|
__exportStar(require("./LanguageStringMap"), exports);
|
|
52
|
+
__exportStar(require("./ListAuditLogsSuccessResponse"), exports);
|
|
47
53
|
__exportStar(require("./Notification"), exports);
|
|
48
54
|
__exportStar(require("./NotificationAllOf"), exports);
|
|
49
55
|
__exportStar(require("./NotificationHistorySuccessResponse"), exports);
|
|
@@ -64,6 +70,7 @@ __exportStar(require("./Purchase"), exports);
|
|
|
64
70
|
__exportStar(require("./RateLimitError"), exports);
|
|
65
71
|
__exportStar(require("./Segment"), exports);
|
|
66
72
|
__exportStar(require("./SegmentData"), exports);
|
|
73
|
+
__exportStar(require("./SegmentDetails"), exports);
|
|
67
74
|
__exportStar(require("./SegmentNotificationTarget"), exports);
|
|
68
75
|
__exportStar(require("./StartLiveActivityRequest"), exports);
|
|
69
76
|
__exportStar(require("./StartLiveActivitySuccessResponse"), exports);
|
|
@@ -76,6 +83,8 @@ __exportStar(require("./TransferSubscriptionRequestBody"), exports);
|
|
|
76
83
|
__exportStar(require("./UpdateApiKeyRequest"), exports);
|
|
77
84
|
__exportStar(require("./UpdateLiveActivityRequest"), exports);
|
|
78
85
|
__exportStar(require("./UpdateLiveActivitySuccessResponse"), exports);
|
|
86
|
+
__exportStar(require("./UpdateSegmentRequest"), exports);
|
|
87
|
+
__exportStar(require("./UpdateSegmentSuccessResponse"), exports);
|
|
79
88
|
__exportStar(require("./UpdateTemplateRequest"), exports);
|
|
80
89
|
__exportStar(require("./UpdateUserRequest"), exports);
|
|
81
90
|
__exportStar(require("./User"), exports);
|
|
@@ -13,7 +13,9 @@ import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsReq
|
|
|
13
13
|
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
14
14
|
import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
|
|
15
15
|
import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
|
|
16
|
+
import { GetSegmentSuccessResponse } from '../models/GetSegmentSuccessResponse';
|
|
16
17
|
import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
|
|
18
|
+
import { ListAuditLogsSuccessResponse } from '../models/ListAuditLogsSuccessResponse';
|
|
17
19
|
import { Notification } from '../models/Notification';
|
|
18
20
|
import { NotificationHistorySuccessResponse } from '../models/NotificationHistorySuccessResponse';
|
|
19
21
|
import { NotificationSlice } from '../models/NotificationSlice';
|
|
@@ -30,6 +32,8 @@ import { TransferSubscriptionRequestBody } from '../models/TransferSubscriptionR
|
|
|
30
32
|
import { UpdateApiKeyRequest } from '../models/UpdateApiKeyRequest';
|
|
31
33
|
import { UpdateLiveActivityRequest } from '../models/UpdateLiveActivityRequest';
|
|
32
34
|
import { UpdateLiveActivitySuccessResponse } from '../models/UpdateLiveActivitySuccessResponse';
|
|
35
|
+
import { UpdateSegmentRequest } from '../models/UpdateSegmentRequest';
|
|
36
|
+
import { UpdateSegmentSuccessResponse } from '../models/UpdateSegmentSuccessResponse';
|
|
33
37
|
import { UpdateTemplateRequest } from '../models/UpdateTemplateRequest';
|
|
34
38
|
import { UpdateUserRequest } from '../models/UpdateUserRequest';
|
|
35
39
|
import { User } from '../models/User';
|
|
@@ -158,6 +162,11 @@ export interface DefaultApiGetOutcomesRequest {
|
|
|
158
162
|
outcomePlatforms?: string;
|
|
159
163
|
outcomeAttribution?: string;
|
|
160
164
|
}
|
|
165
|
+
export interface DefaultApiGetSegmentRequest {
|
|
166
|
+
appId: string;
|
|
167
|
+
segmentId: string;
|
|
168
|
+
includeSegmentDetail?: boolean;
|
|
169
|
+
}
|
|
161
170
|
export interface DefaultApiGetSegmentsRequest {
|
|
162
171
|
appId: string;
|
|
163
172
|
offset?: number;
|
|
@@ -168,6 +177,20 @@ export interface DefaultApiGetUserRequest {
|
|
|
168
177
|
aliasLabel: string;
|
|
169
178
|
aliasId: string;
|
|
170
179
|
}
|
|
180
|
+
export interface DefaultApiListAuditLogsRequest {
|
|
181
|
+
organizationId: string;
|
|
182
|
+
startTime?: string;
|
|
183
|
+
endTime?: string;
|
|
184
|
+
cursor?: string;
|
|
185
|
+
limit?: number;
|
|
186
|
+
appIds?: Array<string>;
|
|
187
|
+
actions?: Array<string>;
|
|
188
|
+
actorIds?: Array<string>;
|
|
189
|
+
actorEmails?: Array<string>;
|
|
190
|
+
targetTypes?: Array<string>;
|
|
191
|
+
targetIds?: Array<string>;
|
|
192
|
+
ipAddresses?: Array<string>;
|
|
193
|
+
}
|
|
171
194
|
export interface DefaultApiRotateApiKeyRequest {
|
|
172
195
|
appId: string;
|
|
173
196
|
tokenId: string;
|
|
@@ -201,6 +224,11 @@ export interface DefaultApiUpdateLiveActivityRequest {
|
|
|
201
224
|
activityId: string;
|
|
202
225
|
updateLiveActivityRequest: UpdateLiveActivityRequest;
|
|
203
226
|
}
|
|
227
|
+
export interface DefaultApiUpdateSegmentRequest {
|
|
228
|
+
appId: string;
|
|
229
|
+
segmentId: string;
|
|
230
|
+
updateSegmentRequest?: UpdateSegmentRequest;
|
|
231
|
+
}
|
|
204
232
|
export interface DefaultApiUpdateSubscriptionRequest {
|
|
205
233
|
appId: string;
|
|
206
234
|
subscriptionId: string;
|
|
@@ -267,8 +295,10 @@ export declare class ObjectDefaultApi {
|
|
|
267
295
|
getNotificationHistory(param: DefaultApiGetNotificationHistoryRequest, options?: Configuration): Promise<NotificationHistorySuccessResponse>;
|
|
268
296
|
getNotifications(param: DefaultApiGetNotificationsRequest, options?: Configuration): Promise<NotificationSlice>;
|
|
269
297
|
getOutcomes(param: DefaultApiGetOutcomesRequest, options?: Configuration): Promise<OutcomesData>;
|
|
298
|
+
getSegment(param: DefaultApiGetSegmentRequest, options?: Configuration): Promise<GetSegmentSuccessResponse>;
|
|
270
299
|
getSegments(param: DefaultApiGetSegmentsRequest, options?: Configuration): Promise<GetSegmentsSuccessResponse>;
|
|
271
300
|
getUser(param: DefaultApiGetUserRequest, options?: Configuration): Promise<User>;
|
|
301
|
+
listAuditLogs(param: DefaultApiListAuditLogsRequest, options?: Configuration): Promise<ListAuditLogsSuccessResponse>;
|
|
272
302
|
rotateApiKey(param: DefaultApiRotateApiKeyRequest, options?: Configuration): Promise<CreateApiKeyResponse>;
|
|
273
303
|
startLiveActivity(param: DefaultApiStartLiveActivityRequest, options?: Configuration): Promise<StartLiveActivitySuccessResponse>;
|
|
274
304
|
transferSubscription(param: DefaultApiTransferSubscriptionRequest, options?: Configuration): Promise<UserIdentityBody>;
|
|
@@ -276,6 +306,7 @@ export declare class ObjectDefaultApi {
|
|
|
276
306
|
updateApiKey(param: DefaultApiUpdateApiKeyRequest, options?: Configuration): Promise<object>;
|
|
277
307
|
updateApp(param: DefaultApiUpdateAppRequest, options?: Configuration): Promise<App>;
|
|
278
308
|
updateLiveActivity(param: DefaultApiUpdateLiveActivityRequest, options?: Configuration): Promise<UpdateLiveActivitySuccessResponse>;
|
|
309
|
+
updateSegment(param: DefaultApiUpdateSegmentRequest, options?: Configuration): Promise<UpdateSegmentSuccessResponse>;
|
|
279
310
|
updateSubscription(param: DefaultApiUpdateSubscriptionRequest, options?: Configuration): Promise<void>;
|
|
280
311
|
updateSubscriptionByToken(param: DefaultApiUpdateSubscriptionByTokenRequest, options?: Configuration): Promise<object>;
|
|
281
312
|
updateTemplate(param: DefaultApiUpdateTemplateRequest, options?: Configuration): Promise<TemplateResource>;
|
|
@@ -90,12 +90,18 @@ class ObjectDefaultApi {
|
|
|
90
90
|
getOutcomes(param, options) {
|
|
91
91
|
return this.api.getOutcomes(param.appId, param.outcomeNames, param.outcomeNames2, param.outcomeTimeRange, param.outcomePlatforms, param.outcomeAttribution, options).toPromise();
|
|
92
92
|
}
|
|
93
|
+
getSegment(param, options) {
|
|
94
|
+
return this.api.getSegment(param.appId, param.segmentId, param.includeSegmentDetail, options).toPromise();
|
|
95
|
+
}
|
|
93
96
|
getSegments(param, options) {
|
|
94
97
|
return this.api.getSegments(param.appId, param.offset, param.limit, options).toPromise();
|
|
95
98
|
}
|
|
96
99
|
getUser(param, options) {
|
|
97
100
|
return this.api.getUser(param.appId, param.aliasLabel, param.aliasId, options).toPromise();
|
|
98
101
|
}
|
|
102
|
+
listAuditLogs(param, options) {
|
|
103
|
+
return this.api.listAuditLogs(param.organizationId, param.startTime, param.endTime, param.cursor, param.limit, param.appIds, param.actions, param.actorIds, param.actorEmails, param.targetTypes, param.targetIds, param.ipAddresses, options).toPromise();
|
|
104
|
+
}
|
|
99
105
|
rotateApiKey(param, options) {
|
|
100
106
|
return this.api.rotateApiKey(param.appId, param.tokenId, options).toPromise();
|
|
101
107
|
}
|
|
@@ -117,6 +123,9 @@ class ObjectDefaultApi {
|
|
|
117
123
|
updateLiveActivity(param, options) {
|
|
118
124
|
return this.api.updateLiveActivity(param.appId, param.activityId, param.updateLiveActivityRequest, options).toPromise();
|
|
119
125
|
}
|
|
126
|
+
updateSegment(param, options) {
|
|
127
|
+
return this.api.updateSegment(param.appId, param.segmentId, param.updateSegmentRequest, options).toPromise();
|
|
128
|
+
}
|
|
120
129
|
updateSubscription(param, options) {
|
|
121
130
|
return this.api.updateSubscription(param.appId, param.subscriptionId, param.subscriptionBody, options).toPromise();
|
|
122
131
|
}
|
|
@@ -14,7 +14,9 @@ import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsReq
|
|
|
14
14
|
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
15
15
|
import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
|
|
16
16
|
import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
|
|
17
|
+
import { GetSegmentSuccessResponse } from '../models/GetSegmentSuccessResponse';
|
|
17
18
|
import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
|
|
19
|
+
import { ListAuditLogsSuccessResponse } from '../models/ListAuditLogsSuccessResponse';
|
|
18
20
|
import { Notification } from '../models/Notification';
|
|
19
21
|
import { NotificationHistorySuccessResponse } from '../models/NotificationHistorySuccessResponse';
|
|
20
22
|
import { NotificationSlice } from '../models/NotificationSlice';
|
|
@@ -31,6 +33,8 @@ import { TransferSubscriptionRequestBody } from '../models/TransferSubscriptionR
|
|
|
31
33
|
import { UpdateApiKeyRequest } from '../models/UpdateApiKeyRequest';
|
|
32
34
|
import { UpdateLiveActivityRequest } from '../models/UpdateLiveActivityRequest';
|
|
33
35
|
import { UpdateLiveActivitySuccessResponse } from '../models/UpdateLiveActivitySuccessResponse';
|
|
36
|
+
import { UpdateSegmentRequest } from '../models/UpdateSegmentRequest';
|
|
37
|
+
import { UpdateSegmentSuccessResponse } from '../models/UpdateSegmentSuccessResponse';
|
|
34
38
|
import { UpdateTemplateRequest } from '../models/UpdateTemplateRequest';
|
|
35
39
|
import { UpdateUserRequest } from '../models/UpdateUserRequest';
|
|
36
40
|
import { User } from '../models/User';
|
|
@@ -69,8 +73,10 @@ export declare class ObservableDefaultApi {
|
|
|
69
73
|
getNotificationHistory(notificationId: string, getNotificationHistoryRequestBody: GetNotificationHistoryRequestBody, _options?: Configuration): Observable<NotificationHistorySuccessResponse>;
|
|
70
74
|
getNotifications(appId: string, limit?: number, offset?: number, kind?: 0 | 1 | 3, timeOffset?: string, _options?: Configuration): Observable<NotificationSlice>;
|
|
71
75
|
getOutcomes(appId: string, outcomeNames: string, outcomeNames2?: string, outcomeTimeRange?: string, outcomePlatforms?: string, outcomeAttribution?: string, _options?: Configuration): Observable<OutcomesData>;
|
|
76
|
+
getSegment(appId: string, segmentId: string, includeSegmentDetail?: boolean, _options?: Configuration): Observable<GetSegmentSuccessResponse>;
|
|
72
77
|
getSegments(appId: string, offset?: number, limit?: number, _options?: Configuration): Observable<GetSegmentsSuccessResponse>;
|
|
73
78
|
getUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Observable<User>;
|
|
79
|
+
listAuditLogs(organizationId: string, startTime?: string, endTime?: string, cursor?: string, limit?: number, appIds?: Array<string>, actions?: Array<string>, actorIds?: Array<string>, actorEmails?: Array<string>, targetTypes?: Array<string>, targetIds?: Array<string>, ipAddresses?: Array<string>, _options?: Configuration): Observable<ListAuditLogsSuccessResponse>;
|
|
74
80
|
rotateApiKey(appId: string, tokenId: string, _options?: Configuration): Observable<CreateApiKeyResponse>;
|
|
75
81
|
startLiveActivity(appId: string, activityType: string, startLiveActivityRequest: StartLiveActivityRequest, _options?: Configuration): Observable<StartLiveActivitySuccessResponse>;
|
|
76
82
|
transferSubscription(appId: string, subscriptionId: string, transferSubscriptionRequestBody: TransferSubscriptionRequestBody, _options?: Configuration): Observable<UserIdentityBody>;
|
|
@@ -78,6 +84,7 @@ export declare class ObservableDefaultApi {
|
|
|
78
84
|
updateApiKey(appId: string, tokenId: string, updateApiKeyRequest: UpdateApiKeyRequest, _options?: Configuration): Observable<object>;
|
|
79
85
|
updateApp(appId: string, app: App, _options?: Configuration): Observable<App>;
|
|
80
86
|
updateLiveActivity(appId: string, activityId: string, updateLiveActivityRequest: UpdateLiveActivityRequest, _options?: Configuration): Observable<UpdateLiveActivitySuccessResponse>;
|
|
87
|
+
updateSegment(appId: string, segmentId: string, updateSegmentRequest?: UpdateSegmentRequest, _options?: Configuration): Observable<UpdateSegmentSuccessResponse>;
|
|
81
88
|
updateSubscription(appId: string, subscriptionId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Observable<void>;
|
|
82
89
|
updateSubscriptionByToken(appId: string, tokenType: string, token: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Observable<object>;
|
|
83
90
|
updateTemplate(templateId: string, appId: string, updateTemplateRequest: UpdateTemplateRequest, _options?: Configuration): Observable<TemplateResource>;
|
|
@@ -430,6 +430,21 @@ class ObservableDefaultApi {
|
|
|
430
430
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getOutcomes(rsp)));
|
|
431
431
|
}));
|
|
432
432
|
}
|
|
433
|
+
getSegment(appId, segmentId, includeSegmentDetail, _options) {
|
|
434
|
+
const requestContextPromise = this.requestFactory.getSegment(appId, segmentId, includeSegmentDetail, _options);
|
|
435
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
436
|
+
for (let middleware of this.configuration.middleware) {
|
|
437
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
438
|
+
}
|
|
439
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
440
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
441
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
442
|
+
for (let middleware of this.configuration.middleware) {
|
|
443
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
444
|
+
}
|
|
445
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getSegment(rsp)));
|
|
446
|
+
}));
|
|
447
|
+
}
|
|
433
448
|
getSegments(appId, offset, limit, _options) {
|
|
434
449
|
const requestContextPromise = this.requestFactory.getSegments(appId, offset, limit, _options);
|
|
435
450
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
@@ -460,6 +475,21 @@ class ObservableDefaultApi {
|
|
|
460
475
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getUser(rsp)));
|
|
461
476
|
}));
|
|
462
477
|
}
|
|
478
|
+
listAuditLogs(organizationId, startTime, endTime, cursor, limit, appIds, actions, actorIds, actorEmails, targetTypes, targetIds, ipAddresses, _options) {
|
|
479
|
+
const requestContextPromise = this.requestFactory.listAuditLogs(organizationId, startTime, endTime, cursor, limit, appIds, actions, actorIds, actorEmails, targetTypes, targetIds, ipAddresses, _options);
|
|
480
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
481
|
+
for (let middleware of this.configuration.middleware) {
|
|
482
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
483
|
+
}
|
|
484
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
485
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
486
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
487
|
+
for (let middleware of this.configuration.middleware) {
|
|
488
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
489
|
+
}
|
|
490
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.listAuditLogs(rsp)));
|
|
491
|
+
}));
|
|
492
|
+
}
|
|
463
493
|
rotateApiKey(appId, tokenId, _options) {
|
|
464
494
|
const requestContextPromise = this.requestFactory.rotateApiKey(appId, tokenId, _options);
|
|
465
495
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
@@ -565,6 +595,21 @@ class ObservableDefaultApi {
|
|
|
565
595
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateLiveActivity(rsp)));
|
|
566
596
|
}));
|
|
567
597
|
}
|
|
598
|
+
updateSegment(appId, segmentId, updateSegmentRequest, _options) {
|
|
599
|
+
const requestContextPromise = this.requestFactory.updateSegment(appId, segmentId, updateSegmentRequest, _options);
|
|
600
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
601
|
+
for (let middleware of this.configuration.middleware) {
|
|
602
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
603
|
+
}
|
|
604
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
605
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
606
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
607
|
+
for (let middleware of this.configuration.middleware) {
|
|
608
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
609
|
+
}
|
|
610
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateSegment(rsp)));
|
|
611
|
+
}));
|
|
612
|
+
}
|
|
568
613
|
updateSubscription(appId, subscriptionId, subscriptionBody, _options) {
|
|
569
614
|
const requestContextPromise = this.requestFactory.updateSubscription(appId, subscriptionId, subscriptionBody, _options);
|
|
570
615
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
@@ -15,7 +15,9 @@ import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsReq
|
|
|
15
15
|
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
16
16
|
import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
|
|
17
17
|
import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
|
|
18
|
+
import { GetSegmentSuccessResponse } from '../models/GetSegmentSuccessResponse';
|
|
18
19
|
import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
|
|
20
|
+
import { ListAuditLogsSuccessResponse } from '../models/ListAuditLogsSuccessResponse';
|
|
19
21
|
import { Notification } from '../models/Notification';
|
|
20
22
|
import { NotificationHistorySuccessResponse } from '../models/NotificationHistorySuccessResponse';
|
|
21
23
|
import { NotificationSlice } from '../models/NotificationSlice';
|
|
@@ -32,6 +34,8 @@ import { TransferSubscriptionRequestBody } from '../models/TransferSubscriptionR
|
|
|
32
34
|
import { UpdateApiKeyRequest } from '../models/UpdateApiKeyRequest';
|
|
33
35
|
import { UpdateLiveActivityRequest } from '../models/UpdateLiveActivityRequest';
|
|
34
36
|
import { UpdateLiveActivitySuccessResponse } from '../models/UpdateLiveActivitySuccessResponse';
|
|
37
|
+
import { UpdateSegmentRequest } from '../models/UpdateSegmentRequest';
|
|
38
|
+
import { UpdateSegmentSuccessResponse } from '../models/UpdateSegmentSuccessResponse';
|
|
35
39
|
import { UpdateTemplateRequest } from '../models/UpdateTemplateRequest';
|
|
36
40
|
import { UpdateUserRequest } from '../models/UpdateUserRequest';
|
|
37
41
|
import { User } from '../models/User';
|
|
@@ -70,8 +74,10 @@ export declare class PromiseDefaultApi {
|
|
|
70
74
|
getNotificationHistory(notificationId: string, getNotificationHistoryRequestBody: GetNotificationHistoryRequestBody, _options?: Configuration): Promise<NotificationHistorySuccessResponse>;
|
|
71
75
|
getNotifications(appId: string, limit?: number, offset?: number, kind?: 0 | 1 | 3, timeOffset?: string, _options?: Configuration): Promise<NotificationSlice>;
|
|
72
76
|
getOutcomes(appId: string, outcomeNames: string, outcomeNames2?: string, outcomeTimeRange?: string, outcomePlatforms?: string, outcomeAttribution?: string, _options?: Configuration): Promise<OutcomesData>;
|
|
77
|
+
getSegment(appId: string, segmentId: string, includeSegmentDetail?: boolean, _options?: Configuration): Promise<GetSegmentSuccessResponse>;
|
|
73
78
|
getSegments(appId: string, offset?: number, limit?: number, _options?: Configuration): Promise<GetSegmentsSuccessResponse>;
|
|
74
79
|
getUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<User>;
|
|
80
|
+
listAuditLogs(organizationId: string, startTime?: string, endTime?: string, cursor?: string, limit?: number, appIds?: Array<string>, actions?: Array<string>, actorIds?: Array<string>, actorEmails?: Array<string>, targetTypes?: Array<string>, targetIds?: Array<string>, ipAddresses?: Array<string>, _options?: Configuration): Promise<ListAuditLogsSuccessResponse>;
|
|
75
81
|
rotateApiKey(appId: string, tokenId: string, _options?: Configuration): Promise<CreateApiKeyResponse>;
|
|
76
82
|
startLiveActivity(appId: string, activityType: string, startLiveActivityRequest: StartLiveActivityRequest, _options?: Configuration): Promise<StartLiveActivitySuccessResponse>;
|
|
77
83
|
transferSubscription(appId: string, subscriptionId: string, transferSubscriptionRequestBody: TransferSubscriptionRequestBody, _options?: Configuration): Promise<UserIdentityBody>;
|
|
@@ -79,6 +85,7 @@ export declare class PromiseDefaultApi {
|
|
|
79
85
|
updateApiKey(appId: string, tokenId: string, updateApiKeyRequest: UpdateApiKeyRequest, _options?: Configuration): Promise<object>;
|
|
80
86
|
updateApp(appId: string, app: App, _options?: Configuration): Promise<App>;
|
|
81
87
|
updateLiveActivity(appId: string, activityId: string, updateLiveActivityRequest: UpdateLiveActivityRequest, _options?: Configuration): Promise<UpdateLiveActivitySuccessResponse>;
|
|
88
|
+
updateSegment(appId: string, segmentId: string, updateSegmentRequest?: UpdateSegmentRequest, _options?: Configuration): Promise<UpdateSegmentSuccessResponse>;
|
|
82
89
|
updateSubscription(appId: string, subscriptionId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Promise<void>;
|
|
83
90
|
updateSubscriptionByToken(appId: string, tokenType: string, token: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Promise<object>;
|
|
84
91
|
updateTemplate(templateId: string, appId: string, updateTemplateRequest: UpdateTemplateRequest, _options?: Configuration): Promise<TemplateResource>;
|
package/dist/types/PromiseAPI.js
CHANGED
|
@@ -123,6 +123,10 @@ class PromiseDefaultApi {
|
|
|
123
123
|
const result = this.api.getOutcomes(appId, outcomeNames, outcomeNames2, outcomeTimeRange, outcomePlatforms, outcomeAttribution, _options);
|
|
124
124
|
return result.toPromise();
|
|
125
125
|
}
|
|
126
|
+
getSegment(appId, segmentId, includeSegmentDetail, _options) {
|
|
127
|
+
const result = this.api.getSegment(appId, segmentId, includeSegmentDetail, _options);
|
|
128
|
+
return result.toPromise();
|
|
129
|
+
}
|
|
126
130
|
getSegments(appId, offset, limit, _options) {
|
|
127
131
|
const result = this.api.getSegments(appId, offset, limit, _options);
|
|
128
132
|
return result.toPromise();
|
|
@@ -131,6 +135,10 @@ class PromiseDefaultApi {
|
|
|
131
135
|
const result = this.api.getUser(appId, aliasLabel, aliasId, _options);
|
|
132
136
|
return result.toPromise();
|
|
133
137
|
}
|
|
138
|
+
listAuditLogs(organizationId, startTime, endTime, cursor, limit, appIds, actions, actorIds, actorEmails, targetTypes, targetIds, ipAddresses, _options) {
|
|
139
|
+
const result = this.api.listAuditLogs(organizationId, startTime, endTime, cursor, limit, appIds, actions, actorIds, actorEmails, targetTypes, targetIds, ipAddresses, _options);
|
|
140
|
+
return result.toPromise();
|
|
141
|
+
}
|
|
134
142
|
rotateApiKey(appId, tokenId, _options) {
|
|
135
143
|
const result = this.api.rotateApiKey(appId, tokenId, _options);
|
|
136
144
|
return result.toPromise();
|
|
@@ -159,6 +167,10 @@ class PromiseDefaultApi {
|
|
|
159
167
|
const result = this.api.updateLiveActivity(appId, activityId, updateLiveActivityRequest, _options);
|
|
160
168
|
return result.toPromise();
|
|
161
169
|
}
|
|
170
|
+
updateSegment(appId, segmentId, updateSegmentRequest, _options) {
|
|
171
|
+
const result = this.api.updateSegment(appId, segmentId, updateSegmentRequest, _options);
|
|
172
|
+
return result.toPromise();
|
|
173
|
+
}
|
|
162
174
|
updateSubscription(appId, subscriptionId, subscriptionBody, _options) {
|
|
163
175
|
const result = this.api.updateSubscription(appId, subscriptionId, subscriptionBody, _options);
|
|
164
176
|
return result.toPromise();
|