@digital-realty/ix-notifications 1.0.1

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.
Files changed (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +62 -0
  3. package/dist/IxNotifications.d.ts +37 -0
  4. package/dist/IxNotifications.js +278 -0
  5. package/dist/IxNotifications.js.map +1 -0
  6. package/dist/api/notifications-api/apis/NotificationsApi.d.ts +83 -0
  7. package/dist/api/notifications-api/apis/NotificationsApi.js +204 -0
  8. package/dist/api/notifications-api/apis/NotificationsApi.js.map +1 -0
  9. package/dist/api/notifications-api/apis/index.d.ts +1 -0
  10. package/dist/api/notifications-api/apis/index.js +4 -0
  11. package/dist/api/notifications-api/apis/index.js.map +1 -0
  12. package/dist/api/notifications-api/index.d.ts +3 -0
  13. package/dist/api/notifications-api/index.js +6 -0
  14. package/dist/api/notifications-api/index.js.map +1 -0
  15. package/dist/api/notifications-api/models/ErrorResponse.d.ts +55 -0
  16. package/dist/api/notifications-api/models/ErrorResponse.js +52 -0
  17. package/dist/api/notifications-api/models/ErrorResponse.js.map +1 -0
  18. package/dist/api/notifications-api/models/GetNotifications200Response.d.ts +62 -0
  19. package/dist/api/notifications-api/models/GetNotifications200Response.js +56 -0
  20. package/dist/api/notifications-api/models/GetNotifications200Response.js.map +1 -0
  21. package/dist/api/notifications-api/models/Notification.d.ts +86 -0
  22. package/dist/api/notifications-api/models/Notification.js +63 -0
  23. package/dist/api/notifications-api/models/Notification.js.map +1 -0
  24. package/dist/api/notifications-api/models/NotificationDelete.d.ts +31 -0
  25. package/dist/api/notifications-api/models/NotificationDelete.js +44 -0
  26. package/dist/api/notifications-api/models/NotificationDelete.js.map +1 -0
  27. package/dist/api/notifications-api/models/NotificationPatch.d.ts +32 -0
  28. package/dist/api/notifications-api/models/NotificationPatch.js +45 -0
  29. package/dist/api/notifications-api/models/NotificationPatch.js.map +1 -0
  30. package/dist/api/notifications-api/models/NotificationRequest.d.ts +73 -0
  31. package/dist/api/notifications-api/models/NotificationRequest.js +62 -0
  32. package/dist/api/notifications-api/models/NotificationRequest.js.map +1 -0
  33. package/dist/api/notifications-api/models/PaginatedResponse.d.ts +61 -0
  34. package/dist/api/notifications-api/models/PaginatedResponse.js +55 -0
  35. package/dist/api/notifications-api/models/PaginatedResponse.js.map +1 -0
  36. package/dist/api/notifications-api/models/Status.d.ts +23 -0
  37. package/dist/api/notifications-api/models/Status.js +31 -0
  38. package/dist/api/notifications-api/models/Status.js.map +1 -0
  39. package/dist/api/notifications-api/models/index.d.ts +8 -0
  40. package/dist/api/notifications-api/models/index.js +11 -0
  41. package/dist/api/notifications-api/models/index.js.map +1 -0
  42. package/dist/api/notifications-api/runtime.d.ts +182 -0
  43. package/dist/api/notifications-api/runtime.js +319 -0
  44. package/dist/api/notifications-api/runtime.js.map +1 -0
  45. package/dist/components/notifications/confirmation-dialog.d.ts +10 -0
  46. package/dist/components/notifications/confirmation-dialog.js +67 -0
  47. package/dist/components/notifications/confirmation-dialog.js.map +1 -0
  48. package/dist/components/notifications/date-filters.d.ts +19 -0
  49. package/dist/components/notifications/date-filters.js +152 -0
  50. package/dist/components/notifications/date-filters.js.map +1 -0
  51. package/dist/components/notifications/group-filters.d.ts +8 -0
  52. package/dist/components/notifications/group-filters.js +75 -0
  53. package/dist/components/notifications/group-filters.js.map +1 -0
  54. package/dist/components/notifications/grouped-item.d.ts +13 -0
  55. package/dist/components/notifications/grouped-item.js +81 -0
  56. package/dist/components/notifications/grouped-item.js.map +1 -0
  57. package/dist/components/notifications/notification-item.d.ts +18 -0
  58. package/dist/components/notifications/notification-item.js +137 -0
  59. package/dist/components/notifications/notification-item.js.map +1 -0
  60. package/dist/components/notifications/view-item-dialog.d.ts +12 -0
  61. package/dist/components/notifications/view-item-dialog.js +102 -0
  62. package/dist/components/notifications/view-item-dialog.js.map +1 -0
  63. package/dist/constants/api-constants.d.ts +3 -0
  64. package/dist/constants/api-constants.js +4 -0
  65. package/dist/constants/api-constants.js.map +1 -0
  66. package/dist/constants/notification-types.d.ts +15 -0
  67. package/dist/constants/notification-types.js +2 -0
  68. package/dist/constants/notification-types.js.map +1 -0
  69. package/dist/constants/notifications.d.ts +15 -0
  70. package/dist/constants/notifications.js +19 -0
  71. package/dist/constants/notifications.js.map +1 -0
  72. package/dist/helper/errors.d.ts +1 -0
  73. package/dist/helper/errors.js +20 -0
  74. package/dist/helper/errors.js.map +1 -0
  75. package/dist/index.d.ts +1 -0
  76. package/dist/index.js +2 -0
  77. package/dist/index.js.map +1 -0
  78. package/dist/ix-notifications.d.ts +1 -0
  79. package/dist/ix-notifications.js +3 -0
  80. package/dist/ix-notifications.js.map +1 -0
  81. package/dist/ix-notifications.min.js +1 -0
  82. package/dist/models/notification.d.ts +13 -0
  83. package/dist/models/notification.js +2 -0
  84. package/dist/models/notification.js.map +1 -0
  85. package/dist/services/api-client.d.ts +13 -0
  86. package/dist/services/api-client.js +24 -0
  87. package/dist/services/api-client.js.map +1 -0
  88. package/dist/services/app-service.d.ts +1 -0
  89. package/dist/services/app-service.js +7 -0
  90. package/dist/services/app-service.js.map +1 -0
  91. package/dist/services/notifications-service.d.ts +10 -0
  92. package/dist/services/notifications-service.js +56 -0
  93. package/dist/services/notifications-service.js.map +1 -0
  94. package/dist/state/NotificationState.d.ts +28 -0
  95. package/dist/state/NotificationState.js +153 -0
  96. package/dist/state/NotificationState.js.map +1 -0
  97. package/dist/styles/notifications-style.d.ts +1 -0
  98. package/dist/styles/notifications-style.js +133 -0
  99. package/dist/styles/notifications-style.js.map +1 -0
  100. package/dist/tw.d.ts +1 -0
  101. package/dist/tw.js +890 -0
  102. package/dist/tw.js.map +1 -0
  103. package/package.json +138 -0
@@ -0,0 +1,63 @@
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
+ import { StatusFromJSON, StatusToJSON, } from './Status';
16
+ /**
17
+ * Check if a given object implements the Notification interface.
18
+ */
19
+ export function instanceOfNotification(value) {
20
+ let isInstance = true;
21
+ return isInstance;
22
+ }
23
+ export function NotificationFromJSON(json) {
24
+ return NotificationFromJSONTyped(json, false);
25
+ }
26
+ export function NotificationFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'id': !exists(json, 'id') ? undefined : json['id'],
32
+ 'resourceType': !exists(json, 'resource_type') ? undefined : json['resource_type'],
33
+ 'subGroup': !exists(json, 'sub_group') ? undefined : json['sub_group'],
34
+ 'createdAt': !exists(json, 'created_at') ? undefined : (json['created_at'] === null ? null : new Date(json['created_at'])),
35
+ 'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
36
+ 'subject': !exists(json, 'subject') ? undefined : json['subject'],
37
+ 'locations': !exists(json, 'locations') ? undefined : json['locations'],
38
+ 'resourceId': !exists(json, 'resource_id') ? undefined : json['resource_id'],
39
+ 'status': !exists(json, 'status') ? undefined : StatusFromJSON(json['status']),
40
+ 'accountNumber': !exists(json, 'account_number') ? undefined : json['account_number'],
41
+ };
42
+ }
43
+ export function NotificationToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'id': value.id,
52
+ 'resource_type': value.resourceType,
53
+ 'sub_group': value.subGroup,
54
+ 'created_at': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString()),
55
+ 'created_by': value.createdBy,
56
+ 'subject': value.subject,
57
+ 'locations': value.locations,
58
+ 'resource_id': value.resourceId,
59
+ 'status': StatusToJSON(value.status),
60
+ 'account_number': value.accountNumber,
61
+ };
62
+ }
63
+ //# sourceMappingURL=Notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/Notification.ts"],"names":[],"mappings":"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","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { exists, mapValues } from '../runtime';\nimport type { Status } from './Status';\nimport {\n StatusFromJSON,\n StatusFromJSONTyped,\n StatusToJSON,\n} from './Status';\n\n/**\n * Notification\n * @export\n * @interface Notification\n */\nexport interface Notification {\n /**\n * id of notification\n * @type {string}\n * @memberof Notification\n */\n id?: string;\n /**\n * Type of notification to be sent to the user\n * @type {string}\n * @memberof Notification\n */\n resourceType?: string;\n /**\n * Sub grouping of the notification\n * @type {string}\n * @memberof Notification\n */\n subGroup?: string;\n /**\n * Created date\n * @type {Date}\n * @memberof Notification\n */\n createdAt?: Date | null;\n /**\n * Created by the system?\n * @type {string}\n * @memberof Notification\n */\n createdBy?: string;\n /**\n * Description text of the notification\n * @type {string}\n * @memberof Notification\n */\n subject?: string;\n /**\n * \n * @type {Array<string>}\n * @memberof Notification\n */\n locations?: Array<string>;\n /**\n * Unique identifier the notification refers to\n * @type {string}\n * @memberof Notification\n */\n resourceId?: string;\n /**\n * \n * @type {Status}\n * @memberof Notification\n */\n status?: Status;\n /**\n * Account number of the notification\n * @type {string}\n * @memberof Notification\n */\n accountNumber?: string;\n}\n\n/**\n * Check if a given object implements the Notification interface.\n */\nexport function instanceOfNotification(value: object): boolean {\n let isInstance = true;\n\n return isInstance;\n}\n\nexport function NotificationFromJSON(json: any): Notification {\n return NotificationFromJSONTyped(json, false);\n}\n\nexport function NotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Notification {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'id': !exists(json, 'id') ? undefined : json['id'],\n 'resourceType': !exists(json, 'resource_type') ? undefined : json['resource_type'],\n 'subGroup': !exists(json, 'sub_group') ? undefined : json['sub_group'],\n 'createdAt': !exists(json, 'created_at') ? undefined : (json['created_at'] === null ? null : new Date(json['created_at'])),\n 'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],\n 'subject': !exists(json, 'subject') ? undefined : json['subject'],\n 'locations': !exists(json, 'locations') ? undefined : json['locations'],\n 'resourceId': !exists(json, 'resource_id') ? undefined : json['resource_id'],\n 'status': !exists(json, 'status') ? undefined : StatusFromJSON(json['status']),\n 'accountNumber': !exists(json, 'account_number') ? undefined : json['account_number'],\n };\n}\n\nexport function NotificationToJSON(value?: Notification | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'id': value.id,\n 'resource_type': value.resourceType,\n 'sub_group': value.subGroup,\n 'created_at': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString()),\n 'created_by': value.createdBy,\n 'subject': value.subject,\n 'locations': value.locations,\n 'resource_id': value.resourceId,\n 'status': StatusToJSON(value.status),\n 'account_number': value.accountNumber,\n };\n}\n\n"]}
@@ -0,0 +1,31 @@
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
+ * Delete Notification
14
+ * @export
15
+ * @interface NotificationDelete
16
+ */
17
+ export interface NotificationDelete {
18
+ /**
19
+ * Displays if notification was successfully deleted
20
+ * @type {boolean}
21
+ * @memberof NotificationDelete
22
+ */
23
+ success?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the NotificationDelete interface.
27
+ */
28
+ export declare function instanceOfNotificationDelete(value: object): boolean;
29
+ export declare function NotificationDeleteFromJSON(json: any): NotificationDelete;
30
+ export declare function NotificationDeleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationDelete;
31
+ export declare function NotificationDeleteToJSON(value?: NotificationDelete | null): any;
@@ -0,0 +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
+ }
44
+ //# sourceMappingURL=NotificationDelete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationDelete.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/NotificationDelete.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AAe/C;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,KAAa;IACtD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;KACpE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,KAAiC;IACtE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,OAAO;KAC3B,CAAC;AACN,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { exists, mapValues } from '../runtime';\n/**\n * Delete Notification\n * @export\n * @interface NotificationDelete\n */\nexport interface NotificationDelete {\n /**\n * Displays if notification was successfully deleted\n * @type {boolean}\n * @memberof NotificationDelete\n */\n success?: boolean;\n}\n\n/**\n * Check if a given object implements the NotificationDelete interface.\n */\nexport function instanceOfNotificationDelete(value: object): boolean {\n let isInstance = true;\n\n return isInstance;\n}\n\nexport function NotificationDeleteFromJSON(json: any): NotificationDelete {\n return NotificationDeleteFromJSONTyped(json, false);\n}\n\nexport function NotificationDeleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationDelete {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'success': !exists(json, 'success') ? undefined : json['success'],\n };\n}\n\nexport function NotificationDeleteToJSON(value?: NotificationDelete | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'success': value.success,\n };\n}\n\n"]}
@@ -0,0 +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;
@@ -0,0 +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
+ }
45
+ //# sourceMappingURL=NotificationPatch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationPatch.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/NotificationPatch.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,OAAO,EACH,cAAc,EAEd,YAAY,GACf,MAAM,UAAU,CAAC;AAgBlB;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,QAAQ,IAAI,KAAK,CAAC;IAE7C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAC3C,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAAgC;IACpE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC;KACvC,CAAC;AACN,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { exists, mapValues } from '../runtime';\nimport type { Status } from './Status';\nimport {\n StatusFromJSON,\n StatusFromJSONTyped,\n StatusToJSON,\n} from './Status';\n\n/**\n * Patch Notification\n * @export\n * @interface NotificationPatch\n */\nexport interface NotificationPatch {\n /**\n * \n * @type {Status}\n * @memberof NotificationPatch\n */\n status: Status;\n}\n\n/**\n * Check if a given object implements the NotificationPatch interface.\n */\nexport function instanceOfNotificationPatch(value: object): boolean {\n let isInstance = true;\n isInstance = isInstance && \"status\" in value;\n\n return isInstance;\n}\n\nexport function NotificationPatchFromJSON(json: any): NotificationPatch {\n return NotificationPatchFromJSONTyped(json, false);\n}\n\nexport function NotificationPatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPatch {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'status': StatusFromJSON(json['status']),\n };\n}\n\nexport function NotificationPatchToJSON(value?: NotificationPatch | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'status': StatusToJSON(value.status),\n };\n}\n\n"]}
@@ -0,0 +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;
@@ -0,0 +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
+ }
62
+ //# sourceMappingURL=NotificationRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationRequest.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/NotificationRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AAyD/C;;GAEG;AACH,MAAM,UAAU,6BAA6B,CAAC,KAAa;IACvD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,cAAc,IAAI,KAAK,CAAC;IACnD,UAAU,GAAG,UAAU,IAAI,eAAe,IAAI,KAAK,CAAC;IACpD,UAAU,GAAG,UAAU,IAAI,YAAY,IAAI,KAAK,CAAC;IACjD,UAAU,GAAG,UAAU,IAAI,SAAS,IAAI,KAAK,CAAC;IAE9C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,cAAc,EAAE,IAAI,CAAC,eAAe,CAAC;QACrC,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;QACtE,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;QAC1E,eAAe,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACvC,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;QACvE,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC;QACjC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;KAC7H,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,KAAkC;IACxE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,eAAe,EAAE,KAAK,CAAC,YAAY;QACnC,WAAW,EAAE,KAAK,CAAC,QAAQ;QAC3B,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,gBAAgB,EAAE,KAAK,CAAC,aAAa;QACrC,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,aAAa,EAAE,KAAK,CAAC,UAAU;QAC/B,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,YAAY,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;KAC9H,CAAC;AACN,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { exists, mapValues } from '../runtime';\n/**\n * Request body for creating a notification\n * @export\n * @interface NotificationRequest\n */\nexport interface NotificationRequest {\n /**\n * Type of notification to be sent to the user\n * @type {string}\n * @memberof NotificationRequest\n */\n resourceType: string;\n /**\n * Sub grouping of the notification\n * @type {string}\n * @memberof NotificationRequest\n */\n subGroup?: string;\n /**\n * List of recipients of the notification\n * @type {Array<string>}\n * @memberof NotificationRequest\n */\n recipients?: Array<string>;\n /**\n * Account number of the notification\n * @type {string}\n * @memberof NotificationRequest\n */\n accountNumber: string;\n /**\n * \n * @type {Array<string>}\n * @memberof NotificationRequest\n */\n locations?: Array<string>;\n /**\n * Unique identifier the notification refers to\n * @type {string}\n * @memberof NotificationRequest\n */\n resourceId: string;\n /**\n * Description text of the notification\n * @type {string}\n * @memberof NotificationRequest\n */\n subject: string;\n /**\n * Created date\n * @type {Date}\n * @memberof NotificationRequest\n */\n createdAt?: Date | null;\n}\n\n/**\n * Check if a given object implements the NotificationRequest interface.\n */\nexport function instanceOfNotificationRequest(value: object): boolean {\n let isInstance = true;\n isInstance = isInstance && \"resourceType\" in value;\n isInstance = isInstance && \"accountNumber\" in value;\n isInstance = isInstance && \"resourceId\" in value;\n isInstance = isInstance && \"subject\" in value;\n\n return isInstance;\n}\n\nexport function NotificationRequestFromJSON(json: any): NotificationRequest {\n return NotificationRequestFromJSONTyped(json, false);\n}\n\nexport function NotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationRequest {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'resourceType': json['resource_type'],\n 'subGroup': !exists(json, 'sub_group') ? undefined : json['sub_group'],\n 'recipients': !exists(json, 'recipients') ? undefined : json['recipients'],\n 'accountNumber': json['account_number'],\n 'locations': !exists(json, 'locations') ? undefined : json['locations'],\n 'resourceId': json['resource_id'],\n 'subject': json['subject'],\n 'createdAt': !exists(json, 'created_at') ? undefined : (json['created_at'] === null ? null : new Date(json['created_at'])),\n };\n}\n\nexport function NotificationRequestToJSON(value?: NotificationRequest | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'resource_type': value.resourceType,\n 'sub_group': value.subGroup,\n 'recipients': value.recipients,\n 'account_number': value.accountNumber,\n 'locations': value.locations,\n 'resource_id': value.resourceId,\n 'subject': value.subject,\n 'created_at': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString()),\n };\n}\n\n"]}
@@ -0,0 +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;
@@ -0,0 +1,55 @@
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 PaginatedResponse interface.
17
+ */
18
+ export function instanceOfPaginatedResponse(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "items" in value;
21
+ return isInstance;
22
+ }
23
+ export function PaginatedResponseFromJSON(json) {
24
+ return PaginatedResponseFromJSONTyped(json, false);
25
+ }
26
+ export function PaginatedResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'self': !exists(json, 'self') ? undefined : json['self'],
32
+ 'first': !exists(json, 'first') ? undefined : json['first'],
33
+ 'prev': !exists(json, 'prev') ? undefined : json['prev'],
34
+ 'next': !exists(json, 'next') ? undefined : json['next'],
35
+ 'last': !exists(json, 'last') ? undefined : json['last'],
36
+ 'items': json['items'],
37
+ };
38
+ }
39
+ export function PaginatedResponseToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'self': value.self,
48
+ 'first': value.first,
49
+ 'prev': value.prev,
50
+ 'next': value.next,
51
+ 'last': value.last,
52
+ 'items': value.items,
53
+ };
54
+ }
55
+ //# sourceMappingURL=PaginatedResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaginatedResponse.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/PaginatedResponse.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AA6C/C;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAE5C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3D,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAAgC;IACpE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,CAAC;AACN,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { exists, mapValues } from '../runtime';\n/**\n * \n * @export\n * @interface PaginatedResponse\n */\nexport interface PaginatedResponse {\n /**\n * Pagination link|cursor pointing to the current page.\n * @type {string}\n * @memberof PaginatedResponse\n */\n self?: string;\n /**\n * Pagination link|cursor pointing to the first page.\n * @type {string}\n * @memberof PaginatedResponse\n */\n first?: string;\n /**\n * Pagination link|cursor pointing to the previous page.\n * @type {string}\n * @memberof PaginatedResponse\n */\n prev?: string;\n /**\n * Pagination link|cursor pointing to the next page.\n * @type {string}\n * @memberof PaginatedResponse\n */\n next?: string;\n /**\n * Pagination link|cursor pointing to the last page.\n * @type {string}\n * @memberof PaginatedResponse\n */\n last?: string;\n /**\n * Array of collection items.\n * @type {Array<any>}\n * @memberof PaginatedResponse\n */\n items: Array<any>;\n}\n\n/**\n * Check if a given object implements the PaginatedResponse interface.\n */\nexport function instanceOfPaginatedResponse(value: object): boolean {\n let isInstance = true;\n isInstance = isInstance && \"items\" in value;\n\n return isInstance;\n}\n\nexport function PaginatedResponseFromJSON(json: any): PaginatedResponse {\n return PaginatedResponseFromJSONTyped(json, false);\n}\n\nexport function PaginatedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponse {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'self': !exists(json, 'self') ? undefined : json['self'],\n 'first': !exists(json, 'first') ? undefined : json['first'],\n 'prev': !exists(json, 'prev') ? undefined : json['prev'],\n 'next': !exists(json, 'next') ? undefined : json['next'],\n 'last': !exists(json, 'last') ? undefined : json['last'],\n 'items': json['items'],\n };\n}\n\nexport function PaginatedResponseToJSON(value?: PaginatedResponse | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'self': value.self,\n 'first': value.first,\n 'prev': value.prev,\n 'next': value.next,\n 'last': value.last,\n 'items': value.items,\n };\n}\n\n"]}
@@ -0,0 +1,23 @@
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
+ * Status of the notification
14
+ * @export
15
+ */
16
+ export declare const Status: {
17
+ readonly Unread: "unread";
18
+ readonly Read: "read";
19
+ };
20
+ export type Status = typeof Status[keyof typeof Status];
21
+ export declare function StatusFromJSON(json: any): Status;
22
+ export declare function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status;
23
+ export declare function StatusToJSON(value?: Status | null): any;
@@ -0,0 +1,31 @@
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
+ /**
15
+ * Status of the notification
16
+ * @export
17
+ */
18
+ export const Status = {
19
+ Unread: 'unread',
20
+ Read: 'read'
21
+ };
22
+ export function StatusFromJSON(json) {
23
+ return StatusFromJSONTyped(json, false);
24
+ }
25
+ export function StatusFromJSONTyped(json, ignoreDiscriminator) {
26
+ return json;
27
+ }
28
+ export function StatusToJSON(value) {
29
+ return value;
30
+ }
31
+ //# sourceMappingURL=Status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Status.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/Status.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC;AAIX,MAAM,UAAU,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAS,EAAE,mBAA4B;IACvE,OAAO,IAAc,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAqB;IAC9C,OAAO,KAAY,CAAC;AACxB,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n/**\n * Status of the notification\n * @export\n */\nexport const Status = {\n Unread: 'unread',\n Read: 'read'\n} as const;\nexport type Status = typeof Status[keyof typeof Status];\n\n\nexport function StatusFromJSON(json: any): Status {\n return StatusFromJSONTyped(json, false);\n}\n\nexport function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status {\n return json as Status;\n}\n\nexport function StatusToJSON(value?: Status | null): any {\n return value as any;\n}\n\n"]}
@@ -0,0 +1,8 @@
1
+ export * from './ErrorResponse';
2
+ export * from './GetNotifications200Response';
3
+ export * from './Notification';
4
+ export * from './NotificationDelete';
5
+ export * from './NotificationPatch';
6
+ export * from './NotificationRequest';
7
+ export * from './PaginatedResponse';
8
+ export * from './Status';
@@ -0,0 +1,11 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './ErrorResponse';
4
+ export * from './GetNotifications200Response';
5
+ export * from './Notification';
6
+ export * from './NotificationDelete';
7
+ export * from './NotificationPatch';
8
+ export * from './NotificationRequest';
9
+ export * from './PaginatedResponse';
10
+ export * from './Status';
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\nexport * from './ErrorResponse';\nexport * from './GetNotifications200Response';\nexport * from './Notification';\nexport * from './NotificationDelete';\nexport * from './NotificationPatch';\nexport * from './NotificationRequest';\nexport * from './PaginatedResponse';\nexport * from './Status';\n"]}