@digital-realty/ix-notifications 1.0.2 → 1.0.4
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/IxNotifications.d.ts +37 -37
- package/dist/IxNotifications.js +163 -163
- package/dist/api/notifications-api/apis/NotificationsApi.d.ts +83 -83
- package/dist/api/notifications-api/apis/NotificationsApi.js +203 -203
- package/dist/api/notifications-api/apis/index.d.ts +1 -1
- package/dist/api/notifications-api/apis/index.js +3 -3
- package/dist/api/notifications-api/index.d.ts +3 -3
- package/dist/api/notifications-api/index.js +5 -5
- package/dist/api/notifications-api/models/ErrorResponse.d.ts +55 -55
- package/dist/api/notifications-api/models/ErrorResponse.js +51 -51
- package/dist/api/notifications-api/models/GetNotifications200Response.d.ts +62 -62
- package/dist/api/notifications-api/models/GetNotifications200Response.js +55 -55
- package/dist/api/notifications-api/models/Notification.d.ts +86 -86
- package/dist/api/notifications-api/models/Notification.js +62 -62
- package/dist/api/notifications-api/models/NotificationDelete.d.ts +31 -31
- package/dist/api/notifications-api/models/NotificationDelete.js +43 -43
- package/dist/api/notifications-api/models/NotificationPatch.d.ts +32 -32
- package/dist/api/notifications-api/models/NotificationPatch.js +44 -44
- package/dist/api/notifications-api/models/NotificationRequest.d.ts +73 -73
- package/dist/api/notifications-api/models/NotificationRequest.js +61 -61
- package/dist/api/notifications-api/models/PaginatedResponse.d.ts +61 -61
- package/dist/api/notifications-api/models/PaginatedResponse.js +54 -54
- package/dist/api/notifications-api/models/Status.d.ts +23 -23
- package/dist/api/notifications-api/models/Status.js +30 -30
- package/dist/api/notifications-api/models/index.d.ts +8 -8
- package/dist/api/notifications-api/models/index.js +10 -10
- package/dist/api/notifications-api/runtime.d.ts +182 -182
- package/dist/api/notifications-api/runtime.js +318 -318
- package/dist/components/notifications/confirmation-dialog.d.ts +10 -10
- package/dist/components/notifications/confirmation-dialog.js +42 -42
- package/dist/components/notifications/date-filters.d.ts +19 -19
- package/dist/components/notifications/date-filters.js +90 -90
- package/dist/components/notifications/group-filters.d.ts +8 -8
- package/dist/components/notifications/group-filters.js +35 -35
- package/dist/components/notifications/grouped-item.d.ts +13 -13
- package/dist/components/notifications/grouped-item.js +56 -56
- package/dist/components/notifications/notification-item.d.ts +18 -18
- package/dist/components/notifications/notification-item.js +95 -95
- package/dist/components/notifications/view-item-dialog.d.ts +12 -12
- package/dist/components/notifications/view-item-dialog.js +61 -61
- package/dist/constants/api-constants.d.ts +3 -3
- package/dist/constants/api-constants.js +3 -3
- package/dist/constants/notification-types.d.ts +15 -15
- package/dist/constants/notification-types.js +1 -1
- package/dist/constants/notifications.d.ts +15 -15
- package/dist/constants/notifications.js +18 -18
- package/dist/helper/errors.d.ts +1 -1
- package/dist/helper/errors.js +19 -19
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/ix-notifications.d.ts +1 -1
- package/dist/ix-notifications.js +2 -2
- package/dist/models/notification.d.ts +13 -13
- package/dist/models/notification.js +1 -1
- package/dist/services/api-client.d.ts +13 -13
- package/dist/services/api-client.js +23 -23
- package/dist/services/app-service.d.ts +1 -1
- package/dist/services/app-service.js +6 -6
- package/dist/services/notifications-service.d.ts +10 -10
- package/dist/services/notifications-service.js +55 -55
- package/dist/state/NotificationState.d.ts +28 -28
- package/dist/state/NotificationState.js +153 -153
- package/dist/styles/notifications-style.d.ts +1 -1
- package/dist/styles/notifications-style.js +2 -2
- package/dist/tw.d.ts +1 -1
- package/dist/tw.js +2 -2
- package/package.json +3 -2
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Notifications API
|
|
5
|
-
* An API to create and read notifications
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: DevTeamProduct@digitalrealty.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { exists } from '../runtime';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the NotificationDelete interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfNotificationDelete(value) {
|
|
19
|
-
let isInstance = true;
|
|
20
|
-
return isInstance;
|
|
21
|
-
}
|
|
22
|
-
export function NotificationDeleteFromJSON(json) {
|
|
23
|
-
return NotificationDeleteFromJSONTyped(json, false);
|
|
24
|
-
}
|
|
25
|
-
export function NotificationDeleteFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
-
if ((json === undefined) || (json === null)) {
|
|
27
|
-
return json;
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export function NotificationDeleteToJSON(value) {
|
|
34
|
-
if (value === undefined) {
|
|
35
|
-
return undefined;
|
|
36
|
-
}
|
|
37
|
-
if (value === null) {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'success': value.success,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Notifications API
|
|
5
|
+
* An API to create and read notifications
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: DevTeamProduct@digitalrealty.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the NotificationDelete interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfNotificationDelete(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
export function NotificationDeleteFromJSON(json) {
|
|
23
|
+
return NotificationDeleteFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function NotificationDeleteFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function NotificationDeleteToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'success': value.success,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
44
|
//# sourceMappingURL=NotificationDelete.js.map
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Notifications API
|
|
3
|
-
* An API to create and read notifications
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: DevTeamProduct@digitalrealty.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Status } from './Status';
|
|
13
|
-
/**
|
|
14
|
-
* Patch Notification
|
|
15
|
-
* @export
|
|
16
|
-
* @interface NotificationPatch
|
|
17
|
-
*/
|
|
18
|
-
export interface NotificationPatch {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Status}
|
|
22
|
-
* @memberof NotificationPatch
|
|
23
|
-
*/
|
|
24
|
-
status: Status;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the NotificationPatch interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfNotificationPatch(value: object): boolean;
|
|
30
|
-
export declare function NotificationPatchFromJSON(json: any): NotificationPatch;
|
|
31
|
-
export declare function NotificationPatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPatch;
|
|
32
|
-
export declare function NotificationPatchToJSON(value?: NotificationPatch | null): any;
|
|
1
|
+
/**
|
|
2
|
+
* Notifications API
|
|
3
|
+
* An API to create and read notifications
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: DevTeamProduct@digitalrealty.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Status } from './Status';
|
|
13
|
+
/**
|
|
14
|
+
* Patch Notification
|
|
15
|
+
* @export
|
|
16
|
+
* @interface NotificationPatch
|
|
17
|
+
*/
|
|
18
|
+
export interface NotificationPatch {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Status}
|
|
22
|
+
* @memberof NotificationPatch
|
|
23
|
+
*/
|
|
24
|
+
status: Status;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the NotificationPatch interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfNotificationPatch(value: object): boolean;
|
|
30
|
+
export declare function NotificationPatchFromJSON(json: any): NotificationPatch;
|
|
31
|
+
export declare function NotificationPatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPatch;
|
|
32
|
+
export declare function NotificationPatchToJSON(value?: NotificationPatch | null): any;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Notifications API
|
|
5
|
-
* An API to create and read notifications
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: DevTeamProduct@digitalrealty.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { StatusFromJSON, StatusToJSON, } from './Status';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the NotificationPatch interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfNotificationPatch(value) {
|
|
19
|
-
let isInstance = true;
|
|
20
|
-
isInstance = isInstance && "status" in value;
|
|
21
|
-
return isInstance;
|
|
22
|
-
}
|
|
23
|
-
export function NotificationPatchFromJSON(json) {
|
|
24
|
-
return NotificationPatchFromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function NotificationPatchFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if ((json === undefined) || (json === null)) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'status': StatusFromJSON(json['status']),
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export function NotificationPatchToJSON(value) {
|
|
35
|
-
if (value === undefined) {
|
|
36
|
-
return undefined;
|
|
37
|
-
}
|
|
38
|
-
if (value === null) {
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'status': StatusToJSON(value.status),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Notifications API
|
|
5
|
+
* An API to create and read notifications
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: DevTeamProduct@digitalrealty.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { StatusFromJSON, StatusToJSON, } from './Status';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the NotificationPatch interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfNotificationPatch(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
isInstance = isInstance && "status" in value;
|
|
21
|
+
return isInstance;
|
|
22
|
+
}
|
|
23
|
+
export function NotificationPatchFromJSON(json) {
|
|
24
|
+
return NotificationPatchFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function NotificationPatchFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'status': StatusFromJSON(json['status']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function NotificationPatchToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'status': StatusToJSON(value.status),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
45
|
//# sourceMappingURL=NotificationPatch.js.map
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Notifications API
|
|
3
|
-
* An API to create and read notifications
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: DevTeamProduct@digitalrealty.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Request body for creating a notification
|
|
14
|
-
* @export
|
|
15
|
-
* @interface NotificationRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface NotificationRequest {
|
|
18
|
-
/**
|
|
19
|
-
* Type of notification to be sent to the user
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof NotificationRequest
|
|
22
|
-
*/
|
|
23
|
-
resourceType: string;
|
|
24
|
-
/**
|
|
25
|
-
* Sub grouping of the notification
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof NotificationRequest
|
|
28
|
-
*/
|
|
29
|
-
subGroup?: string;
|
|
30
|
-
/**
|
|
31
|
-
* List of recipients of the notification
|
|
32
|
-
* @type {Array<string>}
|
|
33
|
-
* @memberof NotificationRequest
|
|
34
|
-
*/
|
|
35
|
-
recipients?: Array<string>;
|
|
36
|
-
/**
|
|
37
|
-
* Account number of the notification
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof NotificationRequest
|
|
40
|
-
*/
|
|
41
|
-
accountNumber: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {Array<string>}
|
|
45
|
-
* @memberof NotificationRequest
|
|
46
|
-
*/
|
|
47
|
-
locations?: Array<string>;
|
|
48
|
-
/**
|
|
49
|
-
* Unique identifier the notification refers to
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof NotificationRequest
|
|
52
|
-
*/
|
|
53
|
-
resourceId: string;
|
|
54
|
-
/**
|
|
55
|
-
* Description text of the notification
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof NotificationRequest
|
|
58
|
-
*/
|
|
59
|
-
subject: string;
|
|
60
|
-
/**
|
|
61
|
-
* Created date
|
|
62
|
-
* @type {Date}
|
|
63
|
-
* @memberof NotificationRequest
|
|
64
|
-
*/
|
|
65
|
-
createdAt?: Date | null;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Check if a given object implements the NotificationRequest interface.
|
|
69
|
-
*/
|
|
70
|
-
export declare function instanceOfNotificationRequest(value: object): boolean;
|
|
71
|
-
export declare function NotificationRequestFromJSON(json: any): NotificationRequest;
|
|
72
|
-
export declare function NotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationRequest;
|
|
73
|
-
export declare function NotificationRequestToJSON(value?: NotificationRequest | null): any;
|
|
1
|
+
/**
|
|
2
|
+
* Notifications API
|
|
3
|
+
* An API to create and read notifications
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: DevTeamProduct@digitalrealty.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Request body for creating a notification
|
|
14
|
+
* @export
|
|
15
|
+
* @interface NotificationRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface NotificationRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Type of notification to be sent to the user
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotificationRequest
|
|
22
|
+
*/
|
|
23
|
+
resourceType: string;
|
|
24
|
+
/**
|
|
25
|
+
* Sub grouping of the notification
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NotificationRequest
|
|
28
|
+
*/
|
|
29
|
+
subGroup?: string;
|
|
30
|
+
/**
|
|
31
|
+
* List of recipients of the notification
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof NotificationRequest
|
|
34
|
+
*/
|
|
35
|
+
recipients?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Account number of the notification
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof NotificationRequest
|
|
40
|
+
*/
|
|
41
|
+
accountNumber: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof NotificationRequest
|
|
46
|
+
*/
|
|
47
|
+
locations?: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Unique identifier the notification refers to
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof NotificationRequest
|
|
52
|
+
*/
|
|
53
|
+
resourceId: string;
|
|
54
|
+
/**
|
|
55
|
+
* Description text of the notification
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof NotificationRequest
|
|
58
|
+
*/
|
|
59
|
+
subject: string;
|
|
60
|
+
/**
|
|
61
|
+
* Created date
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof NotificationRequest
|
|
64
|
+
*/
|
|
65
|
+
createdAt?: Date | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the NotificationRequest interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfNotificationRequest(value: object): boolean;
|
|
71
|
+
export declare function NotificationRequestFromJSON(json: any): NotificationRequest;
|
|
72
|
+
export declare function NotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationRequest;
|
|
73
|
+
export declare function NotificationRequestToJSON(value?: NotificationRequest | null): any;
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Notifications API
|
|
5
|
-
* An API to create and read notifications
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: DevTeamProduct@digitalrealty.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { exists } from '../runtime';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the NotificationRequest interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfNotificationRequest(value) {
|
|
19
|
-
let isInstance = true;
|
|
20
|
-
isInstance = isInstance && "resourceType" in value;
|
|
21
|
-
isInstance = isInstance && "accountNumber" in value;
|
|
22
|
-
isInstance = isInstance && "resourceId" in value;
|
|
23
|
-
isInstance = isInstance && "subject" in value;
|
|
24
|
-
return isInstance;
|
|
25
|
-
}
|
|
26
|
-
export function NotificationRequestFromJSON(json) {
|
|
27
|
-
return NotificationRequestFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
export function NotificationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if ((json === undefined) || (json === null)) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
'resourceType': json['resource_type'],
|
|
35
|
-
'subGroup': !exists(json, 'sub_group') ? undefined : json['sub_group'],
|
|
36
|
-
'recipients': !exists(json, 'recipients') ? undefined : json['recipients'],
|
|
37
|
-
'accountNumber': json['account_number'],
|
|
38
|
-
'locations': !exists(json, 'locations') ? undefined : json['locations'],
|
|
39
|
-
'resourceId': json['resource_id'],
|
|
40
|
-
'subject': json['subject'],
|
|
41
|
-
'createdAt': !exists(json, 'created_at') ? undefined : (json['created_at'] === null ? null : new Date(json['created_at'])),
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
export function NotificationRequestToJSON(value) {
|
|
45
|
-
if (value === undefined) {
|
|
46
|
-
return undefined;
|
|
47
|
-
}
|
|
48
|
-
if (value === null) {
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'resource_type': value.resourceType,
|
|
53
|
-
'sub_group': value.subGroup,
|
|
54
|
-
'recipients': value.recipients,
|
|
55
|
-
'account_number': value.accountNumber,
|
|
56
|
-
'locations': value.locations,
|
|
57
|
-
'resource_id': value.resourceId,
|
|
58
|
-
'subject': value.subject,
|
|
59
|
-
'created_at': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString()),
|
|
60
|
-
};
|
|
61
|
-
}
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Notifications API
|
|
5
|
+
* An API to create and read notifications
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: DevTeamProduct@digitalrealty.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the NotificationRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfNotificationRequest(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
isInstance = isInstance && "resourceType" in value;
|
|
21
|
+
isInstance = isInstance && "accountNumber" in value;
|
|
22
|
+
isInstance = isInstance && "resourceId" in value;
|
|
23
|
+
isInstance = isInstance && "subject" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
export function NotificationRequestFromJSON(json) {
|
|
27
|
+
return NotificationRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function NotificationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'resourceType': json['resource_type'],
|
|
35
|
+
'subGroup': !exists(json, 'sub_group') ? undefined : json['sub_group'],
|
|
36
|
+
'recipients': !exists(json, 'recipients') ? undefined : json['recipients'],
|
|
37
|
+
'accountNumber': json['account_number'],
|
|
38
|
+
'locations': !exists(json, 'locations') ? undefined : json['locations'],
|
|
39
|
+
'resourceId': json['resource_id'],
|
|
40
|
+
'subject': json['subject'],
|
|
41
|
+
'createdAt': !exists(json, 'created_at') ? undefined : (json['created_at'] === null ? null : new Date(json['created_at'])),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function NotificationRequestToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'resource_type': value.resourceType,
|
|
53
|
+
'sub_group': value.subGroup,
|
|
54
|
+
'recipients': value.recipients,
|
|
55
|
+
'account_number': value.accountNumber,
|
|
56
|
+
'locations': value.locations,
|
|
57
|
+
'resource_id': value.resourceId,
|
|
58
|
+
'subject': value.subject,
|
|
59
|
+
'created_at': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString()),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
62
|
//# sourceMappingURL=NotificationRequest.js.map
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Notifications API
|
|
3
|
-
* An API to create and read notifications
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: DevTeamProduct@digitalrealty.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface PaginatedResponse
|
|
16
|
-
*/
|
|
17
|
-
export interface PaginatedResponse {
|
|
18
|
-
/**
|
|
19
|
-
* Pagination link|cursor pointing to the current page.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof PaginatedResponse
|
|
22
|
-
*/
|
|
23
|
-
self?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Pagination link|cursor pointing to the first page.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof PaginatedResponse
|
|
28
|
-
*/
|
|
29
|
-
first?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Pagination link|cursor pointing to the previous page.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof PaginatedResponse
|
|
34
|
-
*/
|
|
35
|
-
prev?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Pagination link|cursor pointing to the next page.
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof PaginatedResponse
|
|
40
|
-
*/
|
|
41
|
-
next?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Pagination link|cursor pointing to the last page.
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof PaginatedResponse
|
|
46
|
-
*/
|
|
47
|
-
last?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Array of collection items.
|
|
50
|
-
* @type {Array<any>}
|
|
51
|
-
* @memberof PaginatedResponse
|
|
52
|
-
*/
|
|
53
|
-
items: Array<any>;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Check if a given object implements the PaginatedResponse interface.
|
|
57
|
-
*/
|
|
58
|
-
export declare function instanceOfPaginatedResponse(value: object): boolean;
|
|
59
|
-
export declare function PaginatedResponseFromJSON(json: any): PaginatedResponse;
|
|
60
|
-
export declare function PaginatedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponse;
|
|
61
|
-
export declare function PaginatedResponseToJSON(value?: PaginatedResponse | null): any;
|
|
1
|
+
/**
|
|
2
|
+
* Notifications API
|
|
3
|
+
* An API to create and read notifications
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: DevTeamProduct@digitalrealty.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PaginatedResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface PaginatedResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Pagination link|cursor pointing to the current page.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PaginatedResponse
|
|
22
|
+
*/
|
|
23
|
+
self?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Pagination link|cursor pointing to the first page.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PaginatedResponse
|
|
28
|
+
*/
|
|
29
|
+
first?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Pagination link|cursor pointing to the previous page.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PaginatedResponse
|
|
34
|
+
*/
|
|
35
|
+
prev?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Pagination link|cursor pointing to the next page.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PaginatedResponse
|
|
40
|
+
*/
|
|
41
|
+
next?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Pagination link|cursor pointing to the last page.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PaginatedResponse
|
|
46
|
+
*/
|
|
47
|
+
last?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Array of collection items.
|
|
50
|
+
* @type {Array<any>}
|
|
51
|
+
* @memberof PaginatedResponse
|
|
52
|
+
*/
|
|
53
|
+
items: Array<any>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the PaginatedResponse interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfPaginatedResponse(value: object): boolean;
|
|
59
|
+
export declare function PaginatedResponseFromJSON(json: any): PaginatedResponse;
|
|
60
|
+
export declare function PaginatedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponse;
|
|
61
|
+
export declare function PaginatedResponseToJSON(value?: PaginatedResponse | null): any;
|