@gobodo/gobodo-api 0.1.52 → 0.1.58

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 (209) hide show
  1. package/README.md +73 -9
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/ActionTypesApi.js +2 -2
  4. package/dist/api/AdCampaignsApi.js +2 -2
  5. package/dist/api/AdManagementApi.js +2 -2
  6. package/dist/api/AdminDataManagementApi.js +2 -2
  7. package/dist/api/AdsApi.js +2 -2
  8. package/dist/api/AttachmentsApi.js +2 -2
  9. package/dist/api/AuthenticationApi.js +2 -2
  10. package/dist/api/CategoriesApi.js +2 -2
  11. package/dist/api/CommentsApi.js +2 -2
  12. package/dist/api/ContentManagementApi.js +2 -2
  13. package/dist/api/ConversationsApi.js +2 -2
  14. package/dist/api/DataSheetImportsApi.js +2 -2
  15. package/dist/api/DefaultApi.js +8 -348
  16. package/dist/api/DocumentsApi.js +2 -2
  17. package/dist/api/EmailsApi.js +282 -0
  18. package/dist/api/EntryPartsApi.js +2 -2
  19. package/dist/api/FacebookApi.js +2 -2
  20. package/dist/api/FieldsApi.js +2 -2
  21. package/dist/api/FilesApi.js +2 -2
  22. package/dist/api/FormsApi.js +2 -2
  23. package/dist/api/FunctionsApi.js +946 -10
  24. package/dist/api/GeocodeApi.js +2 -2
  25. package/dist/api/GoogleApi.js +2 -2
  26. package/dist/api/GraphActionTypesApi.js +511 -0
  27. package/dist/api/GraphActionsApi.js +2 -2
  28. package/dist/api/GraphObjectTypesApi.js +134 -9
  29. package/dist/api/GraphObjectsApi.js +2 -2
  30. package/dist/api/GraphRelationshipTypesApi.js +127 -2
  31. package/dist/api/GraphRelationshipsApi.js +2 -2
  32. package/dist/api/GraphSchemasApi.js +2 -2
  33. package/dist/api/GraphTraversalApi.js +2 -2
  34. package/dist/api/GraphsApi.js +2 -2
  35. package/dist/api/GroupsApi.js +2 -2
  36. package/dist/api/IAMApi.js +2 -2
  37. package/dist/api/ImagesApi.js +2 -2
  38. package/dist/api/InvitesApi.js +2 -2
  39. package/dist/api/LikesApi.js +2 -2
  40. package/dist/api/LinkedINApi.js +2 -2
  41. package/dist/api/LiveMeetingsApi.js +2 -2
  42. package/dist/api/MeetingEventsApi.js +2 -2
  43. package/dist/api/NotificationsApi.js +735 -0
  44. package/dist/api/PagesApi.js +2 -2
  45. package/dist/api/PhoneNumbersApi.js +322 -0
  46. package/dist/api/PostsApi.js +2 -2
  47. package/dist/api/PrivateMessagesApi.js +2 -2
  48. package/dist/api/PublicationsApi.js +2 -2
  49. package/dist/api/ScreensApi.js +2 -2
  50. package/dist/api/SocialIntegrationApi.js +2 -2
  51. package/dist/api/StripeAccountsApi.js +2 -2
  52. package/dist/api/TagsApi.js +2 -2
  53. package/dist/api/TemplatesApi.js +2 -2
  54. package/dist/api/ThemeMappingsApi.js +2 -2
  55. package/dist/api/TopicsApi.js +457 -0
  56. package/dist/api/TransactionsApi.js +2 -2
  57. package/dist/api/TwitterApi.js +2 -2
  58. package/dist/api/UserTagsApi.js +2 -2
  59. package/dist/api/UsersApi.js +2 -2
  60. package/dist/api/UtilsApi.js +2 -2
  61. package/dist/api/VideosApi.js +2 -2
  62. package/dist/index.js +147 -7
  63. package/dist/model/APIClient.js +9 -9
  64. package/dist/model/AccountSessionInput.js +2 -2
  65. package/dist/model/AccountSessionResponse.js +2 -2
  66. package/dist/model/ApplicationPaymentAccountResponse.js +2 -2
  67. package/dist/model/ApplicationPaymentAccountResponseFailureException.js +2 -32
  68. package/dist/model/ApplicationPaymentAccountResponseFailureExceptionStackTraceInner.js +2 -2
  69. package/dist/model/Article.js +2 -2
  70. package/dist/model/AuthResponse.js +2 -2
  71. package/dist/model/Balance.js +37 -37
  72. package/dist/model/BalanceDetails.js +2 -2
  73. package/dist/model/BalanceResponse.js +2 -2
  74. package/dist/model/BankAccountInfo.js +2 -2
  75. package/dist/model/CardInfo.js +2 -2
  76. package/dist/model/Comment.js +14 -14
  77. package/dist/model/Coordinates.js +2 -2
  78. package/dist/model/CreateAccountResponse.js +2 -2
  79. package/dist/model/CreateFunctionInput.js +169 -0
  80. package/dist/model/CreateStripeAccountInput.js +2 -2
  81. package/dist/model/CreateStripeCustomerInput.js +2 -2
  82. package/dist/model/CreateTopicInput.js +139 -0
  83. package/dist/model/CreateTopicListenerInput.js +125 -0
  84. package/dist/model/CustomerResponse.js +2 -2
  85. package/dist/model/DataObject.js +2 -2
  86. package/dist/model/DataSheetImport.js +10 -10
  87. package/dist/model/DataSheetImportPrivacySettings.js +2 -2
  88. package/dist/model/DataSheetImportSummary.js +2 -2
  89. package/dist/model/DeviceRegistrationRequest.js +200 -0
  90. package/dist/model/Document.js +2 -2
  91. package/dist/model/DocumentPart.js +21 -21
  92. package/dist/model/DocumentPartType.js +10 -10
  93. package/dist/model/DocumentType.js +18 -18
  94. package/dist/model/EmailAddress.js +142 -0
  95. package/dist/model/FieldMapping.js +2 -2
  96. package/dist/model/Fields.js +25 -25
  97. package/dist/model/File.js +9 -9
  98. package/dist/model/FileAttachmentUploadObject.js +9 -9
  99. package/dist/model/Filter.js +2 -2
  100. package/dist/model/FilterManager.js +2 -2
  101. package/dist/model/Form.js +2 -2
  102. package/dist/model/FormSection.js +2 -2
  103. package/dist/model/FormSubmission.js +2 -2
  104. package/dist/model/FunctionConfigInput.js +333 -0
  105. package/dist/model/FunctionEnvironmentConfig.js +169 -0
  106. package/dist/model/Geocode.js +2 -2
  107. package/dist/model/GeocodePayload.js +2 -2
  108. package/dist/model/GeolocationInput.js +2 -2
  109. package/dist/model/GetFunctionConfig.js +365 -0
  110. package/dist/model/GetFunctionEnvironmentConfig.js +171 -0
  111. package/dist/model/GetFunctionResponse.js +199 -0
  112. package/dist/model/Graph.js +37 -37
  113. package/dist/model/GraphAction.js +11 -11
  114. package/dist/model/GraphDatabaseService.js +2 -2
  115. package/dist/model/GraphGeocode.js +2 -2
  116. package/dist/model/GraphIteratorEntryPart.js +2 -2
  117. package/dist/model/GraphObject.js +27 -27
  118. package/dist/model/GraphObjectPayload.js +2 -2
  119. package/dist/model/GraphObjectSchema.js +36 -36
  120. package/dist/model/GraphObjectType.js +18 -18
  121. package/dist/model/GraphObjectTypeSchema.js +18 -18
  122. package/dist/model/GraphOwner.js +2 -2
  123. package/dist/model/GraphRelationship.js +11 -11
  124. package/dist/model/GraphRelationshipPayload.js +2 -2
  125. package/dist/model/GraphRelationshipType.js +2 -2
  126. package/dist/model/GraphSchema.js +38 -38
  127. package/dist/model/GraphTraversalInput.js +2 -2
  128. package/dist/model/Image.js +23 -23
  129. package/dist/model/ImageUploadObject.js +23 -23
  130. package/dist/model/InputPart.js +2 -2
  131. package/dist/model/InputPartHeaders.js +88 -0
  132. package/dist/model/InputPartMediaType.js +2 -2
  133. package/dist/model/Link.js +26 -26
  134. package/dist/model/LiveStreamInfo.js +2 -2
  135. package/dist/model/MeetingEvent.js +41 -41
  136. package/dist/model/MeetingEventTimezone.js +2 -2
  137. package/dist/model/MeetingInfo.js +2 -2
  138. package/dist/model/Member.js +14 -14
  139. package/dist/model/MemberGroupCategory.js +2 -2
  140. package/dist/model/MemberList.js +2 -2
  141. package/dist/model/MessageGroup.js +9 -9
  142. package/dist/model/MultipartBody.js +2 -2
  143. package/dist/model/Notification.js +210 -0
  144. package/dist/model/NotificationInput.js +187 -0
  145. package/dist/model/NotificationResponse.js +185 -0
  146. package/dist/model/Objecttype.js +17 -17
  147. package/dist/model/Page.js +2 -2
  148. package/dist/model/PageSchema.js +10 -10
  149. package/dist/model/Pageable.js +2 -2
  150. package/dist/model/Path.js +2 -2
  151. package/dist/model/PaymentAccountObject.js +2 -2
  152. package/dist/model/PaymentIntentInput.js +2 -2
  153. package/dist/model/PaymentIntentResponse.js +2 -2
  154. package/dist/model/PaymentMethod.js +9 -9
  155. package/dist/model/PaymentMethodInput.js +2 -2
  156. package/dist/model/PaymentMethodResponse.js +2 -2
  157. package/dist/model/PaymentMethodsResponse.js +2 -2
  158. package/dist/model/Payout.js +11 -11
  159. package/dist/model/PayoutInput.js +2 -2
  160. package/dist/model/PayoutResponse.js +2 -2
  161. package/dist/model/PhoneNumber.js +178 -0
  162. package/dist/model/Post.js +2 -2
  163. package/dist/model/PrivateMessage.js +2 -2
  164. package/dist/model/PrivateMessageConversation.js +36 -36
  165. package/dist/model/PrivateMessageConversationSchema.js +2 -2
  166. package/dist/model/Profile.js +2 -2
  167. package/dist/model/Profiletype.js +2 -2
  168. package/dist/model/PropertyContainer.js +9 -9
  169. package/dist/model/PurgeDataDefaultResponse.js +144 -0
  170. package/dist/model/PurgeDataDefaultResponseValue.js +2 -2
  171. package/dist/model/RelationshipMapping.js +2 -2
  172. package/dist/model/ScreenSchema.js +27 -27
  173. package/dist/model/SimulcastInfo.js +2 -2
  174. package/dist/model/SkinField.js +25 -25
  175. package/dist/model/SocialGroup.js +2 -2
  176. package/dist/model/SocialGroupType.js +16 -16
  177. package/dist/model/Sort.js +2 -2
  178. package/dist/model/SourceTypes.js +2 -2
  179. package/dist/model/StatusUpdate.js +2 -2
  180. package/dist/model/StreetAddress.js +2 -2
  181. package/dist/model/StripeAccount.js +2 -2
  182. package/dist/model/StripeCustomerAccount.js +2 -2
  183. package/dist/model/Template.js +22 -22
  184. package/dist/model/TemplateSchema.js +22 -22
  185. package/dist/model/ThemeMapping.js +10 -10
  186. package/dist/model/ThemeMappingPayload.js +9 -9
  187. package/dist/model/TopicInfoResponse.js +183 -0
  188. package/dist/model/TopicMessageInput.js +123 -0
  189. package/dist/model/TopicSubscriptionResponse.js +151 -0
  190. package/dist/model/Transaction.js +2 -2
  191. package/dist/model/Transfer.js +13 -13
  192. package/dist/model/TransferInput.js +2 -2
  193. package/dist/model/TransferResponse.js +2 -2
  194. package/dist/model/TransferResponsePaymentMethodDetails.js +13 -13
  195. package/dist/model/TraversalRelationResponse.js +2 -2
  196. package/dist/model/User.js +14 -14
  197. package/dist/model/UserDataPayload.js +14 -14
  198. package/dist/model/UserDomain.js +2 -2
  199. package/dist/model/UserInvite.js +13 -13
  200. package/dist/model/UserInviteInput.js +2 -2
  201. package/dist/model/UserSchema.js +14 -14
  202. package/dist/model/UserTag.js +2 -2
  203. package/dist/model/Userid.js +2 -2
  204. package/dist/model/Video.js +30 -30
  205. package/dist/model/VideoLiveUrl.js +2 -2
  206. package/dist/model/VideoSchema.js +38 -38
  207. package/dist/model/VideoUploadObject.js +30 -30
  208. package/dist/model/ZeusPortalCategory.js +2 -2
  209. package/package.json +1 -1
@@ -0,0 +1,735 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _DeviceRegistrationRequest = _interopRequireDefault(require("../model/DeviceRegistrationRequest"));
9
+ var _NotificationInput = _interopRequireDefault(require("../model/NotificationInput"));
10
+ var _NotificationResponse = _interopRequireDefault(require("../model/NotificationResponse"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
15
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
18
+ * gobodo-api
19
+ * REST Interface for Gobodo API
20
+ *
21
+ * The version of the OpenAPI document: 0.1.58
22
+ * Contact: info@gobodo.io
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * Notifications service.
31
+ * @module api/NotificationsApi
32
+ * @version 0.1.58
33
+ */
34
+ var NotificationsApi = exports["default"] = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new NotificationsApi.
37
+ * @alias module:api/NotificationsApi
38
+ * @class
39
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
40
+ * default to {@link module:ApiClient#instance} if unspecified.
41
+ */
42
+ function NotificationsApi(apiClient) {
43
+ _classCallCheck(this, NotificationsApi);
44
+ this.apiClient = apiClient || _ApiClient["default"].instance;
45
+ }
46
+
47
+ /**
48
+ * Callback function to receive the result of the createNotification operation.
49
+ * @callback module:api/NotificationsApi~createNotificationCallback
50
+ * @param {String} error Error message, if any.
51
+ * @param {module:model/NotificationResponse} data The data returned by the service call.
52
+ * @param {String} response The complete HTTP response.
53
+ */
54
+
55
+ /**
56
+ * Creates a notification
57
+ * Creates a notification for a user
58
+ * @param {Number} recipientId
59
+ * @param {module:model/NotificationInput} notificationInput
60
+ * @param {Object} opts Optional parameters
61
+ * @param {String} [authorization] The authorization token of the logged in user
62
+ * @param {Number} [cacheduration] The how long the cache entry should persist
63
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
64
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
65
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
66
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
67
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
68
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
69
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
70
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
71
+ * @param {module:api/NotificationsApi~createNotificationCallback} callback The callback function, accepting three arguments: error, data, response
72
+ * data is of type: {@link module:model/NotificationResponse}
73
+ */
74
+ _createClass(NotificationsApi, [{
75
+ key: "createNotification",
76
+ value: function createNotification(recipientId, notificationInput, opts, callback) {
77
+ opts = opts || {};
78
+ var postBody = notificationInput;
79
+ // verify the required parameter 'recipientId' is set
80
+ if (recipientId === undefined || recipientId === null) {
81
+ throw new Error("Missing the required parameter 'recipientId' when calling createNotification");
82
+ }
83
+ // verify the required parameter 'notificationInput' is set
84
+ if (notificationInput === undefined || notificationInput === null) {
85
+ throw new Error("Missing the required parameter 'notificationInput' when calling createNotification");
86
+ }
87
+ var pathParams = {
88
+ 'recipientId': recipientId
89
+ };
90
+ var queryParams = {};
91
+ var headerParams = {
92
+ 'Authorization': opts['authorization'],
93
+ 'cacheduration': opts['cacheduration'],
94
+ 'cachegroup': opts['cachegroup'],
95
+ 'cachekey': opts['cachekey'],
96
+ 'cachescope': opts['cachescope'],
97
+ 'cacheuser': opts['cacheuser'],
98
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
99
+ 'zeusportal-postas': opts['zeusportalPostas'],
100
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
101
+ 'transactionid': opts['transactionid']
102
+ };
103
+ var formParams = {};
104
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
105
+ var contentTypes = ['application/json'];
106
+ var accepts = ['application/json'];
107
+ var returnType = _NotificationResponse["default"];
108
+ return this.apiClient.callApi('/graph/data/notifications/{recipientId}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
109
+ }
110
+
111
+ /**
112
+ * Callback function to receive the result of the createNotificationAssociatedWith operation.
113
+ * @callback module:api/NotificationsApi~createNotificationAssociatedWithCallback
114
+ * @param {String} error Error message, if any.
115
+ * @param {module:model/NotificationResponse} data The data returned by the service call.
116
+ * @param {String} response The complete HTTP response.
117
+ */
118
+
119
+ /**
120
+ * Creates a notification
121
+ * Creates a notification for a user
122
+ * @param {Number} recipientId
123
+ * @param {Number} objectId
124
+ * @param {module:model/NotificationInput} notificationInput
125
+ * @param {Object} opts Optional parameters
126
+ * @param {String} [authorization] The authorization token of the logged in user
127
+ * @param {Number} [cacheduration] The how long the cache entry should persist
128
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
129
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
130
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
131
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
132
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
133
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
134
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
135
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
136
+ * @param {module:api/NotificationsApi~createNotificationAssociatedWithCallback} callback The callback function, accepting three arguments: error, data, response
137
+ * data is of type: {@link module:model/NotificationResponse}
138
+ */
139
+ }, {
140
+ key: "createNotificationAssociatedWith",
141
+ value: function createNotificationAssociatedWith(recipientId, objectId, notificationInput, opts, callback) {
142
+ opts = opts || {};
143
+ var postBody = notificationInput;
144
+ // verify the required parameter 'recipientId' is set
145
+ if (recipientId === undefined || recipientId === null) {
146
+ throw new Error("Missing the required parameter 'recipientId' when calling createNotificationAssociatedWith");
147
+ }
148
+ // verify the required parameter 'objectId' is set
149
+ if (objectId === undefined || objectId === null) {
150
+ throw new Error("Missing the required parameter 'objectId' when calling createNotificationAssociatedWith");
151
+ }
152
+ // verify the required parameter 'notificationInput' is set
153
+ if (notificationInput === undefined || notificationInput === null) {
154
+ throw new Error("Missing the required parameter 'notificationInput' when calling createNotificationAssociatedWith");
155
+ }
156
+ var pathParams = {
157
+ 'recipientId': recipientId,
158
+ 'objectId': objectId
159
+ };
160
+ var queryParams = {};
161
+ var headerParams = {
162
+ 'Authorization': opts['authorization'],
163
+ 'cacheduration': opts['cacheduration'],
164
+ 'cachegroup': opts['cachegroup'],
165
+ 'cachekey': opts['cachekey'],
166
+ 'cachescope': opts['cachescope'],
167
+ 'cacheuser': opts['cacheuser'],
168
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
169
+ 'zeusportal-postas': opts['zeusportalPostas'],
170
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
171
+ 'transactionid': opts['transactionid']
172
+ };
173
+ var formParams = {};
174
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
175
+ var contentTypes = ['application/json'];
176
+ var accepts = ['application/json'];
177
+ var returnType = _NotificationResponse["default"];
178
+ return this.apiClient.callApi('/graph/data/notifications/{recipientId}/{objectId}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
179
+ }
180
+
181
+ /**
182
+ * Callback function to receive the result of the getAllNotifications operation.
183
+ * @callback module:api/NotificationsApi~getAllNotificationsCallback
184
+ * @param {String} error Error message, if any.
185
+ * @param {Array.<module:model/NotificationResponse>} data The data returned by the service call.
186
+ * @param {String} response The complete HTTP response.
187
+ */
188
+
189
+ /**
190
+ * Returns all notifications for the logged in user
191
+ * Returns all notifications for the logged in user
192
+ * @param {Object} opts Optional parameters
193
+ * @param {String} [authorization] The authorization token of the logged in user
194
+ * @param {Number} [cacheduration] The how long the cache entry should persist
195
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
196
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
197
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
198
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
199
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
200
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
201
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
202
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
203
+ * @param {Number} [startindex]
204
+ * @param {Number} [count]
205
+ * @param {module:api/NotificationsApi~getAllNotificationsCallback} callback The callback function, accepting three arguments: error, data, response
206
+ * data is of type: {@link Array.<module:model/NotificationResponse>}
207
+ */
208
+ }, {
209
+ key: "getAllNotifications",
210
+ value: function getAllNotifications(opts, callback) {
211
+ opts = opts || {};
212
+ var postBody = null;
213
+ var pathParams = {};
214
+ var queryParams = {
215
+ 'startindex': opts['startindex'],
216
+ 'count': opts['count']
217
+ };
218
+ var headerParams = {
219
+ 'Authorization': opts['authorization'],
220
+ 'cacheduration': opts['cacheduration'],
221
+ 'cachegroup': opts['cachegroup'],
222
+ 'cachekey': opts['cachekey'],
223
+ 'cachescope': opts['cachescope'],
224
+ 'cacheuser': opts['cacheuser'],
225
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
226
+ 'zeusportal-postas': opts['zeusportalPostas'],
227
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
228
+ 'transactionid': opts['transactionid']
229
+ };
230
+ var formParams = {};
231
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
232
+ var contentTypes = [];
233
+ var accepts = ['application/json'];
234
+ var returnType = [_NotificationResponse["default"]];
235
+ return this.apiClient.callApi('/graph/data/notifications', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
236
+ }
237
+
238
+ /**
239
+ * Callback function to receive the result of the getAllNotificationsByUser operation.
240
+ * @callback module:api/NotificationsApi~getAllNotificationsByUserCallback
241
+ * @param {String} error Error message, if any.
242
+ * @param {Array.<module:model/NotificationResponse>} data The data returned by the service call.
243
+ * @param {String} response The complete HTTP response.
244
+ */
245
+
246
+ /**
247
+ * Returns all notifications for a given user
248
+ * Returns all notifications for a given user
249
+ * @param {Number} userid
250
+ * @param {Object} opts Optional parameters
251
+ * @param {String} [authorization] The authorization token of the logged in user
252
+ * @param {Number} [cacheduration] The how long the cache entry should persist
253
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
254
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
255
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
256
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
257
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
258
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
259
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
260
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
261
+ * @param {Number} [startindex]
262
+ * @param {Number} [count]
263
+ * @param {module:api/NotificationsApi~getAllNotificationsByUserCallback} callback The callback function, accepting three arguments: error, data, response
264
+ * data is of type: {@link Array.<module:model/NotificationResponse>}
265
+ */
266
+ }, {
267
+ key: "getAllNotificationsByUser",
268
+ value: function getAllNotificationsByUser(userid, opts, callback) {
269
+ opts = opts || {};
270
+ var postBody = null;
271
+ // verify the required parameter 'userid' is set
272
+ if (userid === undefined || userid === null) {
273
+ throw new Error("Missing the required parameter 'userid' when calling getAllNotificationsByUser");
274
+ }
275
+ var pathParams = {
276
+ 'userid': userid
277
+ };
278
+ var queryParams = {
279
+ 'startindex': opts['startindex'],
280
+ 'count': opts['count']
281
+ };
282
+ var headerParams = {
283
+ 'Authorization': opts['authorization'],
284
+ 'cacheduration': opts['cacheduration'],
285
+ 'cachegroup': opts['cachegroup'],
286
+ 'cachekey': opts['cachekey'],
287
+ 'cachescope': opts['cachescope'],
288
+ 'cacheuser': opts['cacheuser'],
289
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
290
+ 'zeusportal-postas': opts['zeusportalPostas'],
291
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
292
+ 'transactionid': opts['transactionid']
293
+ };
294
+ var formParams = {};
295
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
296
+ var contentTypes = [];
297
+ var accepts = ['application/json'];
298
+ var returnType = [_NotificationResponse["default"]];
299
+ return this.apiClient.callApi('/graph/data/notifications/user/{userId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
300
+ }
301
+
302
+ /**
303
+ * Callback function to receive the result of the getNotification operation.
304
+ * @callback module:api/NotificationsApi~getNotificationCallback
305
+ * @param {String} error Error message, if any.
306
+ * @param {module:model/NotificationResponse} data The data returned by the service call.
307
+ * @param {String} response The complete HTTP response.
308
+ */
309
+
310
+ /**
311
+ * Returns a notification by id
312
+ * Returns a notification by it's id
313
+ * @param {Number} id
314
+ * @param {Object} opts Optional parameters
315
+ * @param {String} [authorization] The authorization token of the logged in user
316
+ * @param {Number} [cacheduration] The how long the cache entry should persist
317
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
318
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
319
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
320
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
321
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
322
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
323
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
324
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
325
+ * @param {module:api/NotificationsApi~getNotificationCallback} callback The callback function, accepting three arguments: error, data, response
326
+ * data is of type: {@link module:model/NotificationResponse}
327
+ */
328
+ }, {
329
+ key: "getNotification",
330
+ value: function getNotification(id, opts, callback) {
331
+ opts = opts || {};
332
+ var postBody = null;
333
+ // verify the required parameter 'id' is set
334
+ if (id === undefined || id === null) {
335
+ throw new Error("Missing the required parameter 'id' when calling getNotification");
336
+ }
337
+ var pathParams = {
338
+ 'id': id
339
+ };
340
+ var queryParams = {};
341
+ var headerParams = {
342
+ 'Authorization': opts['authorization'],
343
+ 'cacheduration': opts['cacheduration'],
344
+ 'cachegroup': opts['cachegroup'],
345
+ 'cachekey': opts['cachekey'],
346
+ 'cachescope': opts['cachescope'],
347
+ 'cacheuser': opts['cacheuser'],
348
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
349
+ 'zeusportal-postas': opts['zeusportalPostas'],
350
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
351
+ 'transactionid': opts['transactionid']
352
+ };
353
+ var formParams = {};
354
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
355
+ var contentTypes = [];
356
+ var accepts = ['*/*'];
357
+ var returnType = _NotificationResponse["default"];
358
+ return this.apiClient.callApi('/graph/data/notifications/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
359
+ }
360
+
361
+ /**
362
+ * Callback function to receive the result of the getUnreadNotificationCount operation.
363
+ * @callback module:api/NotificationsApi~getUnreadNotificationCountCallback
364
+ * @param {String} error Error message, if any.
365
+ * @param {Number} data The data returned by the service call.
366
+ * @param {String} response The complete HTTP response.
367
+ */
368
+
369
+ /**
370
+ * Returns the number of unread notifications for the logged in user
371
+ * Returns the number of unread notifications for the logged in user
372
+ * @param {Object} opts Optional parameters
373
+ * @param {String} [authorization] The authorization token of the logged in user
374
+ * @param {Number} [cacheduration] The how long the cache entry should persist
375
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
376
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
377
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
378
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
379
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
380
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
381
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
382
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
383
+ * @param {module:api/NotificationsApi~getUnreadNotificationCountCallback} callback The callback function, accepting three arguments: error, data, response
384
+ * data is of type: {@link Number}
385
+ */
386
+ }, {
387
+ key: "getUnreadNotificationCount",
388
+ value: function getUnreadNotificationCount(opts, callback) {
389
+ opts = opts || {};
390
+ var postBody = null;
391
+ var pathParams = {};
392
+ var queryParams = {};
393
+ var headerParams = {
394
+ 'Authorization': opts['authorization'],
395
+ 'cacheduration': opts['cacheduration'],
396
+ 'cachegroup': opts['cachegroup'],
397
+ 'cachekey': opts['cachekey'],
398
+ 'cachescope': opts['cachescope'],
399
+ 'cacheuser': opts['cacheuser'],
400
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
401
+ 'zeusportal-postas': opts['zeusportalPostas'],
402
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
403
+ 'transactionid': opts['transactionid']
404
+ };
405
+ var formParams = {};
406
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
407
+ var contentTypes = [];
408
+ var accepts = ['*/*'];
409
+ var returnType = 'Number';
410
+ return this.apiClient.callApi('/graph/data/notifications/unread/count', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
411
+ }
412
+
413
+ /**
414
+ * Callback function to receive the result of the getUnreadNotifications operation.
415
+ * @callback module:api/NotificationsApi~getUnreadNotificationsCallback
416
+ * @param {String} error Error message, if any.
417
+ * @param {Array.<module:model/NotificationResponse>} data The data returned by the service call.
418
+ * @param {String} response The complete HTTP response.
419
+ */
420
+
421
+ /**
422
+ * Returns all unread notifications for the logged in user
423
+ * Returns all unread notifications for the logged in user
424
+ * @param {Object} opts Optional parameters
425
+ * @param {String} [authorization] The authorization token of the logged in user
426
+ * @param {Number} [cacheduration] The how long the cache entry should persist
427
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
428
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
429
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
430
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
431
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
432
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
433
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
434
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
435
+ * @param {Number} [startindex]
436
+ * @param {Number} [count]
437
+ * @param {module:api/NotificationsApi~getUnreadNotificationsCallback} callback The callback function, accepting three arguments: error, data, response
438
+ * data is of type: {@link Array.<module:model/NotificationResponse>}
439
+ */
440
+ }, {
441
+ key: "getUnreadNotifications",
442
+ value: function getUnreadNotifications(opts, callback) {
443
+ opts = opts || {};
444
+ var postBody = null;
445
+ var pathParams = {};
446
+ var queryParams = {
447
+ 'startindex': opts['startindex'],
448
+ 'count': opts['count']
449
+ };
450
+ var headerParams = {
451
+ 'Authorization': opts['authorization'],
452
+ 'cacheduration': opts['cacheduration'],
453
+ 'cachegroup': opts['cachegroup'],
454
+ 'cachekey': opts['cachekey'],
455
+ 'cachescope': opts['cachescope'],
456
+ 'cacheuser': opts['cacheuser'],
457
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
458
+ 'zeusportal-postas': opts['zeusportalPostas'],
459
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
460
+ 'transactionid': opts['transactionid']
461
+ };
462
+ var formParams = {};
463
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
464
+ var contentTypes = [];
465
+ var accepts = ['application/json'];
466
+ var returnType = [_NotificationResponse["default"]];
467
+ return this.apiClient.callApi('/graph/data/notifications/unread', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
468
+ }
469
+
470
+ /**
471
+ * Callback function to receive the result of the listRegisteredDevices operation.
472
+ * @callback module:api/NotificationsApi~listRegisteredDevicesCallback
473
+ * @param {String} error Error message, if any.
474
+ * @param data This operation does not return a value.
475
+ * @param {String} response The complete HTTP response.
476
+ */
477
+
478
+ /**
479
+ * @param {Object} opts Optional parameters
480
+ * @param {String} [authorization] The authorization token of the logged in user
481
+ * @param {Number} [cacheduration] The how long the cache entry should persist
482
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
483
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
484
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
485
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
486
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
487
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
488
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
489
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
490
+ * @param {module:api/NotificationsApi~listRegisteredDevicesCallback} callback The callback function, accepting three arguments: error, data, response
491
+ */
492
+ }, {
493
+ key: "listRegisteredDevices",
494
+ value: function listRegisteredDevices(opts, callback) {
495
+ opts = opts || {};
496
+ var postBody = null;
497
+ var pathParams = {};
498
+ var queryParams = {};
499
+ var headerParams = {
500
+ 'Authorization': opts['authorization'],
501
+ 'cacheduration': opts['cacheduration'],
502
+ 'cachegroup': opts['cachegroup'],
503
+ 'cachekey': opts['cachekey'],
504
+ 'cachescope': opts['cachescope'],
505
+ 'cacheuser': opts['cacheuser'],
506
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
507
+ 'zeusportal-postas': opts['zeusportalPostas'],
508
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
509
+ 'transactionid': opts['transactionid']
510
+ };
511
+ var formParams = {};
512
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
513
+ var contentTypes = [];
514
+ var accepts = ['application/json'];
515
+ var returnType = null;
516
+ return this.apiClient.callApi('/graph/data/notificationmanagement/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
517
+ }
518
+
519
+ /**
520
+ * Callback function to receive the result of the listRegisteredTokens operation.
521
+ * @callback module:api/NotificationsApi~listRegisteredTokensCallback
522
+ * @param {String} error Error message, if any.
523
+ * @param data This operation does not return a value.
524
+ * @param {String} response The complete HTTP response.
525
+ */
526
+
527
+ /**
528
+ * @param {Object} opts Optional parameters
529
+ * @param {String} [authorization] The authorization token of the logged in user
530
+ * @param {Number} [cacheduration] The how long the cache entry should persist
531
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
532
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
533
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
534
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
535
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
536
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
537
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
538
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
539
+ * @param {module:api/NotificationsApi~listRegisteredTokensCallback} callback The callback function, accepting three arguments: error, data, response
540
+ */
541
+ }, {
542
+ key: "listRegisteredTokens",
543
+ value: function listRegisteredTokens(opts, callback) {
544
+ opts = opts || {};
545
+ var postBody = null;
546
+ var pathParams = {};
547
+ var queryParams = {};
548
+ var headerParams = {
549
+ 'Authorization': opts['authorization'],
550
+ 'cacheduration': opts['cacheduration'],
551
+ 'cachegroup': opts['cachegroup'],
552
+ 'cachekey': opts['cachekey'],
553
+ 'cachescope': opts['cachescope'],
554
+ 'cacheuser': opts['cacheuser'],
555
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
556
+ 'zeusportal-postas': opts['zeusportalPostas'],
557
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
558
+ 'transactionid': opts['transactionid']
559
+ };
560
+ var formParams = {};
561
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
562
+ var contentTypes = [];
563
+ var accepts = ['application/json'];
564
+ var returnType = null;
565
+ return this.apiClient.callApi('/graph/data/notificationmanagement/tokens', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
566
+ }
567
+
568
+ /**
569
+ * Callback function to receive the result of the registerDevice operation.
570
+ * @callback module:api/NotificationsApi~registerDeviceCallback
571
+ * @param {String} error Error message, if any.
572
+ * @param data This operation does not return a value.
573
+ * @param {String} response The complete HTTP response.
574
+ */
575
+
576
+ /**
577
+ * @param {module:model/DeviceRegistrationRequest} deviceRegistrationRequest
578
+ * @param {Object} opts Optional parameters
579
+ * @param {String} [authorization] The authorization token of the logged in user
580
+ * @param {Number} [cacheduration] The how long the cache entry should persist
581
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
582
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
583
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
584
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
585
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
586
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
587
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
588
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
589
+ * @param {module:api/NotificationsApi~registerDeviceCallback} callback The callback function, accepting three arguments: error, data, response
590
+ */
591
+ }, {
592
+ key: "registerDevice",
593
+ value: function registerDevice(deviceRegistrationRequest, opts, callback) {
594
+ opts = opts || {};
595
+ var postBody = deviceRegistrationRequest;
596
+ // verify the required parameter 'deviceRegistrationRequest' is set
597
+ if (deviceRegistrationRequest === undefined || deviceRegistrationRequest === null) {
598
+ throw new Error("Missing the required parameter 'deviceRegistrationRequest' when calling registerDevice");
599
+ }
600
+ var pathParams = {};
601
+ var queryParams = {};
602
+ var headerParams = {
603
+ 'Authorization': opts['authorization'],
604
+ 'cacheduration': opts['cacheduration'],
605
+ 'cachegroup': opts['cachegroup'],
606
+ 'cachekey': opts['cachekey'],
607
+ 'cachescope': opts['cachescope'],
608
+ 'cacheuser': opts['cacheuser'],
609
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
610
+ 'zeusportal-postas': opts['zeusportalPostas'],
611
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
612
+ 'transactionid': opts['transactionid']
613
+ };
614
+ var formParams = {};
615
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
616
+ var contentTypes = ['application/json'];
617
+ var accepts = ['application/json'];
618
+ var returnType = null;
619
+ return this.apiClient.callApi('/graph/data/notificationmanagement/register', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
620
+ }
621
+
622
+ /**
623
+ * Callback function to receive the result of the unregisterDevice operation.
624
+ * @callback module:api/NotificationsApi~unregisterDeviceCallback
625
+ * @param {String} error Error message, if any.
626
+ * @param data This operation does not return a value.
627
+ * @param {String} response The complete HTTP response.
628
+ */
629
+
630
+ /**
631
+ * @param {String} deviceId
632
+ * @param {Object} opts Optional parameters
633
+ * @param {String} [authorization] The authorization token of the logged in user
634
+ * @param {Number} [cacheduration] The how long the cache entry should persist
635
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
636
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
637
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
638
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
639
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
640
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
641
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
642
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
643
+ * @param {module:api/NotificationsApi~unregisterDeviceCallback} callback The callback function, accepting three arguments: error, data, response
644
+ */
645
+ }, {
646
+ key: "unregisterDevice",
647
+ value: function unregisterDevice(deviceId, opts, callback) {
648
+ opts = opts || {};
649
+ var postBody = null;
650
+ // verify the required parameter 'deviceId' is set
651
+ if (deviceId === undefined || deviceId === null) {
652
+ throw new Error("Missing the required parameter 'deviceId' when calling unregisterDevice");
653
+ }
654
+ var pathParams = {
655
+ 'deviceId': deviceId
656
+ };
657
+ var queryParams = {};
658
+ var headerParams = {
659
+ 'Authorization': opts['authorization'],
660
+ 'cacheduration': opts['cacheduration'],
661
+ 'cachegroup': opts['cachegroup'],
662
+ 'cachekey': opts['cachekey'],
663
+ 'cachescope': opts['cachescope'],
664
+ 'cacheuser': opts['cacheuser'],
665
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
666
+ 'zeusportal-postas': opts['zeusportalPostas'],
667
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
668
+ 'transactionid': opts['transactionid']
669
+ };
670
+ var formParams = {};
671
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
672
+ var contentTypes = [];
673
+ var accepts = ['application/json'];
674
+ var returnType = null;
675
+ return this.apiClient.callApi('/graph/data/notificationmanagement/unregister/{deviceId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
676
+ }
677
+
678
+ /**
679
+ * Callback function to receive the result of the unregisterNotificationToken operation.
680
+ * @callback module:api/NotificationsApi~unregisterNotificationTokenCallback
681
+ * @param {String} error Error message, if any.
682
+ * @param data This operation does not return a value.
683
+ * @param {String} response The complete HTTP response.
684
+ */
685
+
686
+ /**
687
+ * @param {String} token
688
+ * @param {Object} opts Optional parameters
689
+ * @param {String} [authorization] The authorization token of the logged in user
690
+ * @param {Number} [cacheduration] The how long the cache entry should persist
691
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
692
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
693
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
694
+ * @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
695
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
696
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
697
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
698
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
699
+ * @param {module:api/NotificationsApi~unregisterNotificationTokenCallback} callback The callback function, accepting three arguments: error, data, response
700
+ */
701
+ }, {
702
+ key: "unregisterNotificationToken",
703
+ value: function unregisterNotificationToken(token, opts, callback) {
704
+ opts = opts || {};
705
+ var postBody = null;
706
+ // verify the required parameter 'token' is set
707
+ if (token === undefined || token === null) {
708
+ throw new Error("Missing the required parameter 'token' when calling unregisterNotificationToken");
709
+ }
710
+ var pathParams = {
711
+ 'token': token
712
+ };
713
+ var queryParams = {};
714
+ var headerParams = {
715
+ 'Authorization': opts['authorization'],
716
+ 'cacheduration': opts['cacheduration'],
717
+ 'cachegroup': opts['cachegroup'],
718
+ 'cachekey': opts['cachekey'],
719
+ 'cachescope': opts['cachescope'],
720
+ 'cacheuser': opts['cacheuser'],
721
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
722
+ 'zeusportal-postas': opts['zeusportalPostas'],
723
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
724
+ 'transactionid': opts['transactionid']
725
+ };
726
+ var formParams = {};
727
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
728
+ var contentTypes = [];
729
+ var accepts = ['application/json'];
730
+ var returnType = null;
731
+ return this.apiClient.callApi('/graph/data/notificationmanagement/unregistertoken/{token}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
732
+ }
733
+ }]);
734
+ return NotificationsApi;
735
+ }();