@virusis/api-client 0.1.14 → 0.1.15
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/generated/index.d.ts +27 -0
- package/dist/generated/index.js +80 -0
- package/dist/generated/models/index.d.ts +1 -0
- package/dist/generated/models/index.js +1 -0
- package/dist/generated/models/trial-notification-mutation-request.d.ts +4 -0
- package/dist/generated/models/trial-notification-mutation-request.js +1 -0
- package/package.json +1 -1
|
@@ -1187,6 +1187,16 @@ export declare class MenusClient extends BaseApiClient implements IMenusClient {
|
|
|
1187
1187
|
protected processGetFiltersBase(response: Response): Promise<MenuForTableDtoListResultFilterIDataResult>;
|
|
1188
1188
|
}
|
|
1189
1189
|
export interface INotificationsClient extends IEntity {
|
|
1190
|
+
/**
|
|
1191
|
+
* @param body (optional)
|
|
1192
|
+
* @return OK
|
|
1193
|
+
*/
|
|
1194
|
+
trialMarkAsRead(body?: TrialNotificationMutationRequest | undefined, signal?: AbortSignal): Promise<any>;
|
|
1195
|
+
/**
|
|
1196
|
+
* @param body (optional)
|
|
1197
|
+
* @return OK
|
|
1198
|
+
*/
|
|
1199
|
+
trialDelete(body?: TrialNotificationMutationRequest | undefined, signal?: AbortSignal): Promise<any>;
|
|
1190
1200
|
/**
|
|
1191
1201
|
* @param body (optional)
|
|
1192
1202
|
* @return OK
|
|
@@ -1240,6 +1250,18 @@ export declare class NotificationsClient extends BaseApiClient implements INotif
|
|
|
1240
1250
|
constructor(configuration: ApiClientConfig, baseUrl?: string, http?: {
|
|
1241
1251
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
1242
1252
|
});
|
|
1253
|
+
/**
|
|
1254
|
+
* @param body (optional)
|
|
1255
|
+
* @return OK
|
|
1256
|
+
*/
|
|
1257
|
+
trialMarkAsRead(body?: TrialNotificationMutationRequest | undefined, signal?: AbortSignal): Promise<any>;
|
|
1258
|
+
protected processTrialMarkAsRead(response: Response): Promise<any>;
|
|
1259
|
+
/**
|
|
1260
|
+
* @param body (optional)
|
|
1261
|
+
* @return OK
|
|
1262
|
+
*/
|
|
1263
|
+
trialDelete(body?: TrialNotificationMutationRequest | undefined, signal?: AbortSignal): Promise<any>;
|
|
1264
|
+
protected processTrialDelete(response: Response): Promise<any>;
|
|
1243
1265
|
/**
|
|
1244
1266
|
* @param body (optional)
|
|
1245
1267
|
* @return OK
|
|
@@ -8694,6 +8716,7 @@ export interface NotificationForTableDto extends IDto {
|
|
|
8694
8716
|
deviceHash?: string | undefined;
|
|
8695
8717
|
updateTime?: Date | undefined;
|
|
8696
8718
|
satatus?: boolean | undefined;
|
|
8719
|
+
eventFingerprint?: string | undefined;
|
|
8697
8720
|
}
|
|
8698
8721
|
export interface NotificationForTableDtoListIDataResult extends IEntity {
|
|
8699
8722
|
readonly success?: boolean;
|
|
@@ -11964,6 +11987,10 @@ export interface TrialAnonFinalizeDto extends IDto {
|
|
|
11964
11987
|
code?: string | undefined;
|
|
11965
11988
|
state?: string | undefined;
|
|
11966
11989
|
}
|
|
11990
|
+
export interface TrialNotificationMutationRequest extends IEntity {
|
|
11991
|
+
notificationId?: number;
|
|
11992
|
+
deviceHash?: string | undefined;
|
|
11993
|
+
}
|
|
11967
11994
|
export interface TrialUser extends IEntity {
|
|
11968
11995
|
id?: number;
|
|
11969
11996
|
baseUserId?: number;
|
package/dist/generated/index.js
CHANGED
|
@@ -4228,6 +4228,86 @@ export class NotificationsClient extends BaseApiClient {
|
|
|
4228
4228
|
this.http = http ? http : { fetch: buildAuthFetch(configuration) };
|
|
4229
4229
|
this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
4230
4230
|
}
|
|
4231
|
+
/**
|
|
4232
|
+
* @param body (optional)
|
|
4233
|
+
* @return OK
|
|
4234
|
+
*/
|
|
4235
|
+
trialMarkAsRead(body, signal) {
|
|
4236
|
+
let url_ = this.baseUrl + "/api/Notifications/TrialMarkAsRead";
|
|
4237
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4238
|
+
const content_ = JSON.stringify(body);
|
|
4239
|
+
let options_ = {
|
|
4240
|
+
body: content_,
|
|
4241
|
+
method: "POST",
|
|
4242
|
+
signal,
|
|
4243
|
+
headers: {
|
|
4244
|
+
"Content-Type": "application/json",
|
|
4245
|
+
}
|
|
4246
|
+
};
|
|
4247
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
4248
|
+
return this.processTrialMarkAsRead(_response);
|
|
4249
|
+
});
|
|
4250
|
+
}
|
|
4251
|
+
processTrialMarkAsRead(response) {
|
|
4252
|
+
const status = response.status;
|
|
4253
|
+
let _headers = {};
|
|
4254
|
+
if (response.headers && response.headers.forEach) {
|
|
4255
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4256
|
+
}
|
|
4257
|
+
;
|
|
4258
|
+
if (status === 200) {
|
|
4259
|
+
return response.text().then((_responseText) => {
|
|
4260
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4261
|
+
return result200;
|
|
4262
|
+
});
|
|
4263
|
+
}
|
|
4264
|
+
else if (status !== 200 && status !== 204) {
|
|
4265
|
+
return response.text().then((_responseText) => {
|
|
4266
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4267
|
+
});
|
|
4268
|
+
}
|
|
4269
|
+
return Promise.resolve(null);
|
|
4270
|
+
}
|
|
4271
|
+
/**
|
|
4272
|
+
* @param body (optional)
|
|
4273
|
+
* @return OK
|
|
4274
|
+
*/
|
|
4275
|
+
trialDelete(body, signal) {
|
|
4276
|
+
let url_ = this.baseUrl + "/api/Notifications/TrialDelete";
|
|
4277
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4278
|
+
const content_ = JSON.stringify(body);
|
|
4279
|
+
let options_ = {
|
|
4280
|
+
body: content_,
|
|
4281
|
+
method: "POST",
|
|
4282
|
+
signal,
|
|
4283
|
+
headers: {
|
|
4284
|
+
"Content-Type": "application/json",
|
|
4285
|
+
}
|
|
4286
|
+
};
|
|
4287
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
4288
|
+
return this.processTrialDelete(_response);
|
|
4289
|
+
});
|
|
4290
|
+
}
|
|
4291
|
+
processTrialDelete(response) {
|
|
4292
|
+
const status = response.status;
|
|
4293
|
+
let _headers = {};
|
|
4294
|
+
if (response.headers && response.headers.forEach) {
|
|
4295
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4296
|
+
}
|
|
4297
|
+
;
|
|
4298
|
+
if (status === 200) {
|
|
4299
|
+
return response.text().then((_responseText) => {
|
|
4300
|
+
const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4301
|
+
return result200;
|
|
4302
|
+
});
|
|
4303
|
+
}
|
|
4304
|
+
else if (status !== 200 && status !== 204) {
|
|
4305
|
+
return response.text().then((_responseText) => {
|
|
4306
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4307
|
+
});
|
|
4308
|
+
}
|
|
4309
|
+
return Promise.resolve(null);
|
|
4310
|
+
}
|
|
4231
4311
|
/**
|
|
4232
4312
|
* @param body (optional)
|
|
4233
4313
|
* @return OK
|
|
@@ -597,6 +597,7 @@ export * from "./threat-rule-version-i-data-result.js";
|
|
|
597
597
|
export * from "./threat-rule-version-list-i-data-result.js";
|
|
598
598
|
export * from "./trial-anon-auth-link-dto.js";
|
|
599
599
|
export * from "./trial-anon-finalize-dto.js";
|
|
600
|
+
export * from "./trial-notification-mutation-request.js";
|
|
600
601
|
export * from "./trial-user.js";
|
|
601
602
|
export * from "./trial-user-for-table-dto.js";
|
|
602
603
|
export * from "./trial-user-for-table-dto-list-i-data-result.js";
|
|
@@ -597,6 +597,7 @@ export * from "./threat-rule-version-i-data-result.js";
|
|
|
597
597
|
export * from "./threat-rule-version-list-i-data-result.js";
|
|
598
598
|
export * from "./trial-anon-auth-link-dto.js";
|
|
599
599
|
export * from "./trial-anon-finalize-dto.js";
|
|
600
|
+
export * from "./trial-notification-mutation-request.js";
|
|
600
601
|
export * from "./trial-user.js";
|
|
601
602
|
export * from "./trial-user-for-table-dto.js";
|
|
602
603
|
export * from "./trial-user-for-table-dto-list-i-data-result.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TrialNotificationMutationRequest as __TrialNotificationMutationRequest } from "../index.js";
|
|
2
|
+
export declare const TrialNotificationMutationRequest: __TrialNotificationMutationRequest;
|
|
3
|
+
export type TrialNotificationMutationRequest = __TrialNotificationMutationRequest;
|
|
4
|
+
export type trialNotificationMutationRequest = __TrialNotificationMutationRequest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const TrialNotificationMutationRequest = {};
|