@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,204 @@
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 * as runtime from '../runtime';
15
+ import { GetNotifications200ResponseFromJSON, NotificationFromJSON, NotificationDeleteFromJSON, NotificationPatchFromJSON, NotificationPatchToJSON, NotificationRequestToJSON, } from '../models/index';
16
+ /**
17
+ *
18
+ */
19
+ export class NotificationsApi extends runtime.BaseAPI {
20
+ /**
21
+ * Submit notification to be sent to user
22
+ */
23
+ async createNotificationRaw(requestParameters, initOverrides) {
24
+ const queryParameters = {};
25
+ const headerParameters = {};
26
+ headerParameters['Content-Type'] = 'application/json';
27
+ if (this.configuration && this.configuration.accessToken) {
28
+ const token = this.configuration.accessToken;
29
+ const tokenString = await token("bearerToken", []);
30
+ if (tokenString) {
31
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
32
+ }
33
+ }
34
+ const response = await this.request({
35
+ path: `/notifications`,
36
+ method: 'POST',
37
+ headers: headerParameters,
38
+ query: queryParameters,
39
+ body: NotificationRequestToJSON(requestParameters.notificationRequest),
40
+ }, initOverrides);
41
+ return new runtime.JSONApiResponse(response, (jsonValue) => NotificationFromJSON(jsonValue));
42
+ }
43
+ /**
44
+ * Submit notification to be sent to user
45
+ */
46
+ async createNotification(requestParameters = {}, initOverrides) {
47
+ const response = await this.createNotificationRaw(requestParameters, initOverrides);
48
+ return await response.value();
49
+ }
50
+ /**
51
+ * Delete a notification by id
52
+ */
53
+ async deleteNotificationsByIdRaw(requestParameters, initOverrides) {
54
+ if (requestParameters.id === null || requestParameters.id === undefined) {
55
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling deleteNotificationsById.');
56
+ }
57
+ const queryParameters = {};
58
+ const headerParameters = {};
59
+ if (this.configuration && this.configuration.accessToken) {
60
+ const token = this.configuration.accessToken;
61
+ const tokenString = await token("bearerToken", []);
62
+ if (tokenString) {
63
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
64
+ }
65
+ }
66
+ const response = await this.request({
67
+ path: `/notifications/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
68
+ method: 'DELETE',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ }, initOverrides);
72
+ return new runtime.JSONApiResponse(response, (jsonValue) => NotificationDeleteFromJSON(jsonValue));
73
+ }
74
+ /**
75
+ * Delete a notification by id
76
+ */
77
+ async deleteNotificationsById(requestParameters, initOverrides) {
78
+ const response = await this.deleteNotificationsByIdRaw(requestParameters, initOverrides);
79
+ return await response.value();
80
+ }
81
+ /**
82
+ * Get all notifications
83
+ */
84
+ async getNotificationsRaw(requestParameters, initOverrides) {
85
+ const queryParameters = {};
86
+ if (requestParameters.sort !== undefined) {
87
+ queryParameters['sort'] = requestParameters.sort;
88
+ }
89
+ if (requestParameters.cursor !== undefined) {
90
+ queryParameters['cursor'] = requestParameters.cursor;
91
+ }
92
+ if (requestParameters.resourceType !== undefined) {
93
+ queryParameters['resource_type'] = requestParameters.resourceType;
94
+ }
95
+ if (requestParameters.accountNumber !== undefined) {
96
+ queryParameters['account_number'] = requestParameters.accountNumber;
97
+ }
98
+ if (requestParameters.createdAfter !== undefined) {
99
+ queryParameters['created_after'] = requestParameters.createdAfter.toISOString();
100
+ }
101
+ if (requestParameters.createdBefore !== undefined) {
102
+ queryParameters['created_before'] = requestParameters.createdBefore.toISOString();
103
+ }
104
+ if (requestParameters.locationId !== undefined) {
105
+ queryParameters['location_id'] = requestParameters.locationId;
106
+ }
107
+ if (requestParameters.subGroup !== undefined) {
108
+ queryParameters['sub_group'] = requestParameters.subGroup;
109
+ }
110
+ if (requestParameters.status !== undefined) {
111
+ queryParameters['status'] = requestParameters.status;
112
+ }
113
+ const headerParameters = {};
114
+ if (requestParameters.prefer) {
115
+ headerParameters['Prefer'] = requestParameters.prefer.join(runtime.COLLECTION_FORMATS["csv"]);
116
+ }
117
+ if (this.configuration && this.configuration.accessToken) {
118
+ const token = this.configuration.accessToken;
119
+ const tokenString = await token("bearerToken", []);
120
+ if (tokenString) {
121
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
122
+ }
123
+ }
124
+ const response = await this.request({
125
+ path: `/notifications`,
126
+ method: 'GET',
127
+ headers: headerParameters,
128
+ query: queryParameters,
129
+ }, initOverrides);
130
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetNotifications200ResponseFromJSON(jsonValue));
131
+ }
132
+ /**
133
+ * Get all notifications
134
+ */
135
+ async getNotifications(requestParameters = {}, initOverrides) {
136
+ const response = await this.getNotificationsRaw(requestParameters, initOverrides);
137
+ return await response.value();
138
+ }
139
+ /**
140
+ * Get an notification by id
141
+ */
142
+ async getNotificationsByIdRaw(requestParameters, initOverrides) {
143
+ if (requestParameters.id === null || requestParameters.id === undefined) {
144
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling getNotificationsById.');
145
+ }
146
+ const queryParameters = {};
147
+ const headerParameters = {};
148
+ if (this.configuration && this.configuration.accessToken) {
149
+ const token = this.configuration.accessToken;
150
+ const tokenString = await token("bearerToken", []);
151
+ if (tokenString) {
152
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
153
+ }
154
+ }
155
+ const response = await this.request({
156
+ path: `/notifications/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
157
+ method: 'GET',
158
+ headers: headerParameters,
159
+ query: queryParameters,
160
+ }, initOverrides);
161
+ return new runtime.JSONApiResponse(response, (jsonValue) => NotificationFromJSON(jsonValue));
162
+ }
163
+ /**
164
+ * Get an notification by id
165
+ */
166
+ async getNotificationsById(requestParameters, initOverrides) {
167
+ const response = await this.getNotificationsByIdRaw(requestParameters, initOverrides);
168
+ return await response.value();
169
+ }
170
+ /**
171
+ * Update specific fields on a notification by id
172
+ */
173
+ async patchNotificationsByIdRaw(requestParameters, initOverrides) {
174
+ if (requestParameters.id === null || requestParameters.id === undefined) {
175
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling patchNotificationsById.');
176
+ }
177
+ const queryParameters = {};
178
+ const headerParameters = {};
179
+ headerParameters['Content-Type'] = 'application/json';
180
+ if (this.configuration && this.configuration.accessToken) {
181
+ const token = this.configuration.accessToken;
182
+ const tokenString = await token("bearerToken", []);
183
+ if (tokenString) {
184
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
185
+ }
186
+ }
187
+ const response = await this.request({
188
+ path: `/notifications/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
189
+ method: 'PATCH',
190
+ headers: headerParameters,
191
+ query: queryParameters,
192
+ body: NotificationPatchToJSON(requestParameters.notificationPatch),
193
+ }, initOverrides);
194
+ return new runtime.JSONApiResponse(response, (jsonValue) => NotificationPatchFromJSON(jsonValue));
195
+ }
196
+ /**
197
+ * Update specific fields on a notification by id
198
+ */
199
+ async patchNotificationsById(requestParameters, initOverrides) {
200
+ const response = await this.patchNotificationsByIdRaw(requestParameters, initOverrides);
201
+ return await response.value();
202
+ }
203
+ }
204
+ //# sourceMappingURL=NotificationsApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationsApi.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/apis/NotificationsApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAUtC,OAAO,EAGH,mCAAmC,EAEnC,oBAAoB,EAEpB,0BAA0B,EAE1B,yBAAyB,EACzB,uBAAuB,EAEvB,yBAAyB,GAG5B,MAAM,iBAAiB,CAAC;AAgCzB;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,OAAO,CAAC,OAAO;IAEjD;;OAEG;IACH,KAAK,CAAC,qBAAqB,CAAC,iBAA4C,EAAE,aAA0D;QAChI,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,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AAI,CAAC,aAAa,CAAC,WAAW,EAAE;YACtD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;YAEnD,IAAI,WAAW,EAAE;gBACb,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;aAC/D;SACJ;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,qBAAqB,CAAC,OAAO,CAAC,IAAI,IAAI,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC;YAClG,MAAM,EAAE,OAAO;YACf,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC;SACrE,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,yBAAyB,CAAC,SAAS,CAAC,CAAC,CAAC;IACtG,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,sBAAsB,CAAC,iBAAgD,EAAE,aAA0D;QACrI,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACxF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ","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\nimport * as runtime from '../runtime';\nimport type {\n ErrorResponse,\n GetNotifications200Response,\n Notification,\n NotificationDelete,\n NotificationPatch,\n NotificationRequest,\n Status,\n} from '../models/index';\nimport {\n ErrorResponseFromJSON,\n ErrorResponseToJSON,\n GetNotifications200ResponseFromJSON,\n GetNotifications200ResponseToJSON,\n NotificationFromJSON,\n NotificationToJSON,\n NotificationDeleteFromJSON,\n NotificationDeleteToJSON,\n NotificationPatchFromJSON,\n NotificationPatchToJSON,\n NotificationRequestFromJSON,\n NotificationRequestToJSON,\n StatusFromJSON,\n StatusToJSON,\n} from '../models/index';\n\nexport interface CreateNotificationRequest {\n notificationRequest?: NotificationRequest;\n}\n\nexport interface DeleteNotificationsByIdRequest {\n id: string;\n}\n\nexport interface GetNotificationsRequest {\n sort?: string;\n cursor?: string;\n resourceType?: string;\n accountNumber?: string;\n createdAfter?: Date;\n createdBefore?: Date;\n locationId?: string;\n subGroup?: string;\n status?: Status;\n prefer?: Array<string>;\n}\n\nexport interface GetNotificationsByIdRequest {\n id: string;\n}\n\nexport interface PatchNotificationsByIdRequest {\n id: string;\n notificationPatch?: NotificationPatch;\n}\n\n/**\n * \n */\nexport class NotificationsApi extends runtime.BaseAPI {\n\n /**\n * Submit notification to be sent to user\n */\n async createNotificationRaw(requestParameters: CreateNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Notification>> {\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n headerParameters['Content-Type'] = 'application/json';\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications`,\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: NotificationRequestToJSON(requestParameters.notificationRequest),\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => NotificationFromJSON(jsonValue));\n }\n\n /**\n * Submit notification to be sent to user\n */\n async createNotification(requestParameters: CreateNotificationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Notification> {\n const response = await this.createNotificationRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Delete a notification by id\n */\n async deleteNotificationsByIdRaw(requestParameters: DeleteNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationDelete>> {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteNotificationsById.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications/{id}`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'DELETE',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => NotificationDeleteFromJSON(jsonValue));\n }\n\n /**\n * Delete a notification by id\n */\n async deleteNotificationsById(requestParameters: DeleteNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationDelete> {\n const response = await this.deleteNotificationsByIdRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Get all notifications\n */\n async getNotificationsRaw(requestParameters: GetNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetNotifications200Response>> {\n const queryParameters: any = {};\n\n if (requestParameters.sort !== undefined) {\n queryParameters['sort'] = requestParameters.sort;\n }\n\n if (requestParameters.cursor !== undefined) {\n queryParameters['cursor'] = requestParameters.cursor;\n }\n\n if (requestParameters.resourceType !== undefined) {\n queryParameters['resource_type'] = requestParameters.resourceType;\n }\n\n if (requestParameters.accountNumber !== undefined) {\n queryParameters['account_number'] = requestParameters.accountNumber;\n }\n\n if (requestParameters.createdAfter !== undefined) {\n queryParameters['created_after'] = (requestParameters.createdAfter as any).toISOString();\n }\n\n if (requestParameters.createdBefore !== undefined) {\n queryParameters['created_before'] = (requestParameters.createdBefore as any).toISOString();\n }\n\n if (requestParameters.locationId !== undefined) {\n queryParameters['location_id'] = requestParameters.locationId;\n }\n\n if (requestParameters.subGroup !== undefined) {\n queryParameters['sub_group'] = requestParameters.subGroup;\n }\n\n if (requestParameters.status !== undefined) {\n queryParameters['status'] = requestParameters.status;\n }\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n if (requestParameters.prefer) {\n headerParameters['Prefer'] = requestParameters.prefer.join(runtime.COLLECTION_FORMATS[\"csv\"]);\n }\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => GetNotifications200ResponseFromJSON(jsonValue));\n }\n\n /**\n * Get all notifications\n */\n async getNotifications(requestParameters: GetNotificationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetNotifications200Response> {\n const response = await this.getNotificationsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Get an notification by id\n */\n async getNotificationsByIdRaw(requestParameters: GetNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Notification>> {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getNotificationsById.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications/{id}`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => NotificationFromJSON(jsonValue));\n }\n\n /**\n * Get an notification by id\n */\n async getNotificationsById(requestParameters: GetNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Notification> {\n const response = await this.getNotificationsByIdRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Update specific fields on a notification by id\n */\n async patchNotificationsByIdRaw(requestParameters: PatchNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationPatch>> {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling patchNotificationsById.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n headerParameters['Content-Type'] = 'application/json';\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications/{id}`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'PATCH',\n headers: headerParameters,\n query: queryParameters,\n body: NotificationPatchToJSON(requestParameters.notificationPatch),\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => NotificationPatchFromJSON(jsonValue));\n }\n\n /**\n * Update specific fields on a notification by id\n */\n async patchNotificationsById(requestParameters: PatchNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationPatch> {\n const response = await this.patchNotificationsByIdRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n}\n"]}
@@ -0,0 +1 @@
1
+ export * from './NotificationsApi';
@@ -0,0 +1,4 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './NotificationsApi';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/apis/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,oBAAoB,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\nexport * from './NotificationsApi';\n"]}
@@ -0,0 +1,3 @@
1
+ export * from './runtime';
2
+ export * from './apis/index';
3
+ export * from './models/index';
@@ -0,0 +1,6 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/notifications-api/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\nexport * from './runtime';\nexport * from './apis/index';\nexport * from './models/index';\n"]}
@@ -0,0 +1,55 @@
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
+ * Error Response.
14
+ * @export
15
+ * @interface ErrorResponse
16
+ */
17
+ export interface ErrorResponse {
18
+ /**
19
+ * A human-readable explanation specific to this occurrence of the problem.
20
+ * @type {string}
21
+ * @memberof ErrorResponse
22
+ */
23
+ detail?: string;
24
+ /**
25
+ * A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
26
+ * @type {string}
27
+ * @memberof ErrorResponse
28
+ */
29
+ instance?: string;
30
+ /**
31
+ * The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.
32
+ * @type {number}
33
+ * @memberof ErrorResponse
34
+ */
35
+ status?: number;
36
+ /**
37
+ * A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).
38
+ * @type {string}
39
+ * @memberof ErrorResponse
40
+ */
41
+ title?: string;
42
+ /**
43
+ * A URI reference (see RFC3986) that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank".
44
+ * @type {string}
45
+ * @memberof ErrorResponse
46
+ */
47
+ type?: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the ErrorResponse interface.
51
+ */
52
+ export declare function instanceOfErrorResponse(value: object): boolean;
53
+ export declare function ErrorResponseFromJSON(json: any): ErrorResponse;
54
+ export declare function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse;
55
+ export declare function ErrorResponseToJSON(value?: ErrorResponse | null): any;
@@ -0,0 +1,52 @@
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 ErrorResponse interface.
17
+ */
18
+ export function instanceOfErrorResponse(value) {
19
+ let isInstance = true;
20
+ return isInstance;
21
+ }
22
+ export function ErrorResponseFromJSON(json) {
23
+ return ErrorResponseFromJSONTyped(json, false);
24
+ }
25
+ export function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'detail': !exists(json, 'detail') ? undefined : json['detail'],
31
+ 'instance': !exists(json, 'instance') ? undefined : json['instance'],
32
+ 'status': !exists(json, 'status') ? undefined : json['status'],
33
+ 'title': !exists(json, 'title') ? undefined : json['title'],
34
+ 'type': !exists(json, 'type') ? undefined : json['type'],
35
+ };
36
+ }
37
+ export function ErrorResponseToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'detail': value.detail,
46
+ 'instance': value.instance,
47
+ 'status': value.status,
48
+ 'title': value.title,
49
+ 'type': value.type,
50
+ };
51
+ }
52
+ //# sourceMappingURL=ErrorResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorResponse.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/ErrorResponse.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AAuC/C;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAa;IACjD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9D,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACpE,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9D,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;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAA4B;IAC5D,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,KAAK,CAAC,MAAM;QACtB,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,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 * Error Response.\n * @export\n * @interface ErrorResponse\n */\nexport interface ErrorResponse {\n /**\n * A human-readable explanation specific to this occurrence of the problem.\n * @type {string}\n * @memberof ErrorResponse\n */\n detail?: string;\n /**\n * A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.\n * @type {string}\n * @memberof ErrorResponse\n */\n instance?: string;\n /**\n * The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.\n * @type {number}\n * @memberof ErrorResponse\n */\n status?: number;\n /**\n * A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).\n * @type {string}\n * @memberof ErrorResponse\n */\n title?: string;\n /**\n * A URI reference (see RFC3986) that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be \"about:blank\".\n * @type {string}\n * @memberof ErrorResponse\n */\n type?: string;\n}\n\n/**\n * Check if a given object implements the ErrorResponse interface.\n */\nexport function instanceOfErrorResponse(value: object): boolean {\n let isInstance = true;\n\n return isInstance;\n}\n\nexport function ErrorResponseFromJSON(json: any): ErrorResponse {\n return ErrorResponseFromJSONTyped(json, false);\n}\n\nexport function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'detail': !exists(json, 'detail') ? undefined : json['detail'],\n 'instance': !exists(json, 'instance') ? undefined : json['instance'],\n 'status': !exists(json, 'status') ? undefined : json['status'],\n 'title': !exists(json, 'title') ? undefined : json['title'],\n 'type': !exists(json, 'type') ? undefined : json['type'],\n };\n}\n\nexport function ErrorResponseToJSON(value?: ErrorResponse | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'detail': value.detail,\n 'instance': value.instance,\n 'status': value.status,\n 'title': value.title,\n 'type': value.type,\n };\n}\n\n"]}
@@ -0,0 +1,62 @@
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 { Notification } from './Notification';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetNotifications200Response
17
+ */
18
+ export interface GetNotifications200Response {
19
+ /**
20
+ * Pagination link|cursor pointing to the current page.
21
+ * @type {string}
22
+ * @memberof GetNotifications200Response
23
+ */
24
+ self?: string;
25
+ /**
26
+ * Pagination link|cursor pointing to the first page.
27
+ * @type {string}
28
+ * @memberof GetNotifications200Response
29
+ */
30
+ first?: string;
31
+ /**
32
+ * Pagination link|cursor pointing to the previous page.
33
+ * @type {string}
34
+ * @memberof GetNotifications200Response
35
+ */
36
+ prev?: string;
37
+ /**
38
+ * Pagination link|cursor pointing to the next page.
39
+ * @type {string}
40
+ * @memberof GetNotifications200Response
41
+ */
42
+ next?: string;
43
+ /**
44
+ * Pagination link|cursor pointing to the last page.
45
+ * @type {string}
46
+ * @memberof GetNotifications200Response
47
+ */
48
+ last?: string;
49
+ /**
50
+ *
51
+ * @type {Array<Notification>}
52
+ * @memberof GetNotifications200Response
53
+ */
54
+ items: Array<Notification>;
55
+ }
56
+ /**
57
+ * Check if a given object implements the GetNotifications200Response interface.
58
+ */
59
+ export declare function instanceOfGetNotifications200Response(value: object): boolean;
60
+ export declare function GetNotifications200ResponseFromJSON(json: any): GetNotifications200Response;
61
+ export declare function GetNotifications200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetNotifications200Response;
62
+ export declare function GetNotifications200ResponseToJSON(value?: GetNotifications200Response | null): any;
@@ -0,0 +1,56 @@
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 { NotificationFromJSON, NotificationToJSON, } from './Notification';
16
+ /**
17
+ * Check if a given object implements the GetNotifications200Response interface.
18
+ */
19
+ export function instanceOfGetNotifications200Response(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "items" in value;
22
+ return isInstance;
23
+ }
24
+ export function GetNotifications200ResponseFromJSON(json) {
25
+ return GetNotifications200ResponseFromJSONTyped(json, false);
26
+ }
27
+ export function GetNotifications200ResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'self': !exists(json, 'self') ? undefined : json['self'],
33
+ 'first': !exists(json, 'first') ? undefined : json['first'],
34
+ 'prev': !exists(json, 'prev') ? undefined : json['prev'],
35
+ 'next': !exists(json, 'next') ? undefined : json['next'],
36
+ 'last': !exists(json, 'last') ? undefined : json['last'],
37
+ 'items': (json['items'].map(NotificationFromJSON)),
38
+ };
39
+ }
40
+ export function GetNotifications200ResponseToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'self': value.self,
49
+ 'first': value.first,
50
+ 'prev': value.prev,
51
+ 'next': value.next,
52
+ 'last': value.last,
53
+ 'items': (value.items.map(NotificationToJSON)),
54
+ };
55
+ }
56
+ //# sourceMappingURL=GetNotifications200Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetNotifications200Response.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/GetNotifications200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AAC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C;QACxD,OAAO,EAAE,CAAE,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;KACrE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,KAA0C;IACxF,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,CAAE,KAAK,CAAC,KAAoB,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;KACjE,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 { Notification } from './Notification';\nimport {\n NotificationFromJSON,\n NotificationFromJSONTyped,\n NotificationToJSON,\n} from './Notification';\n\n/**\n * \n * @export\n * @interface GetNotifications200Response\n */\nexport interface GetNotifications200Response {\n /**\n * Pagination link|cursor pointing to the current page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n self?: string;\n /**\n * Pagination link|cursor pointing to the first page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n first?: string;\n /**\n * Pagination link|cursor pointing to the previous page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n prev?: string;\n /**\n * Pagination link|cursor pointing to the next page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n next?: string;\n /**\n * Pagination link|cursor pointing to the last page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n last?: string;\n /**\n * \n * @type {Array<Notification>}\n * @memberof GetNotifications200Response\n */\n items: Array<Notification>;\n}\n\n/**\n * Check if a given object implements the GetNotifications200Response interface.\n */\nexport function instanceOfGetNotifications200Response(value: object): boolean {\n let isInstance = true;\n isInstance = isInstance && \"items\" in value;\n\n return isInstance;\n}\n\nexport function GetNotifications200ResponseFromJSON(json: any): GetNotifications200Response {\n return GetNotifications200ResponseFromJSONTyped(json, false);\n}\n\nexport function GetNotifications200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetNotifications200Response {\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'] as Array<any>).map(NotificationFromJSON)),\n };\n}\n\nexport function GetNotifications200ResponseToJSON(value?: GetNotifications200Response | 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 as Array<any>).map(NotificationToJSON)),\n };\n}\n\n"]}
@@ -0,0 +1,86 @@
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
+ * Notification
15
+ * @export
16
+ * @interface Notification
17
+ */
18
+ export interface Notification {
19
+ /**
20
+ * id of notification
21
+ * @type {string}
22
+ * @memberof Notification
23
+ */
24
+ id?: string;
25
+ /**
26
+ * Type of notification to be sent to the user
27
+ * @type {string}
28
+ * @memberof Notification
29
+ */
30
+ resourceType?: string;
31
+ /**
32
+ * Sub grouping of the notification
33
+ * @type {string}
34
+ * @memberof Notification
35
+ */
36
+ subGroup?: string;
37
+ /**
38
+ * Created date
39
+ * @type {Date}
40
+ * @memberof Notification
41
+ */
42
+ createdAt?: Date | null;
43
+ /**
44
+ * Created by the system?
45
+ * @type {string}
46
+ * @memberof Notification
47
+ */
48
+ createdBy?: string;
49
+ /**
50
+ * Description text of the notification
51
+ * @type {string}
52
+ * @memberof Notification
53
+ */
54
+ subject?: string;
55
+ /**
56
+ *
57
+ * @type {Array<string>}
58
+ * @memberof Notification
59
+ */
60
+ locations?: Array<string>;
61
+ /**
62
+ * Unique identifier the notification refers to
63
+ * @type {string}
64
+ * @memberof Notification
65
+ */
66
+ resourceId?: string;
67
+ /**
68
+ *
69
+ * @type {Status}
70
+ * @memberof Notification
71
+ */
72
+ status?: Status;
73
+ /**
74
+ * Account number of the notification
75
+ * @type {string}
76
+ * @memberof Notification
77
+ */
78
+ accountNumber?: string;
79
+ }
80
+ /**
81
+ * Check if a given object implements the Notification interface.
82
+ */
83
+ export declare function instanceOfNotification(value: object): boolean;
84
+ export declare function NotificationFromJSON(json: any): Notification;
85
+ export declare function NotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Notification;
86
+ export declare function NotificationToJSON(value?: Notification | null): any;