@gobodo/gobodo-api-promise 0.1.52 → 0.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +137 -54
- package/dist/ApiClient.js +3 -3
- package/dist/api/ActionTypesApi.js +2 -2
- package/dist/api/AdCampaignsApi.js +13 -13
- package/dist/api/AdManagementApi.js +24 -24
- package/dist/api/AdminDataManagementApi.js +2 -2
- package/dist/api/AdsApi.js +13 -13
- package/dist/api/AttachmentsApi.js +7 -7
- package/dist/api/AuthenticationApi.js +44 -2
- package/dist/api/CategoriesApi.js +7 -7
- package/dist/api/CommentsApi.js +7 -7
- package/dist/api/ContentManagementApi.js +12 -12
- package/dist/api/ConversationsApi.js +7 -7
- package/dist/api/DataSheetImportsApi.js +7 -7
- package/dist/api/DefaultApi.js +15 -443
- package/dist/api/DocumentsApi.js +7 -7
- package/dist/api/EmailsApi.js +346 -0
- package/dist/api/EntryPartsApi.js +7 -7
- package/dist/api/FacebookApi.js +2 -2
- package/dist/api/FieldsApi.js +2 -2
- package/dist/api/FilesApi.js +2 -2
- package/dist/api/FormsApi.js +17 -17
- package/dist/api/FunctionsApi.js +1373 -25
- package/dist/api/GeocodeApi.js +2 -2
- package/dist/api/GoogleApi.js +2 -2
- package/dist/api/GraphActionTypesApi.js +632 -0
- package/dist/api/GraphActionsApi.js +2 -2
- package/dist/api/GraphObjectTypesApi.js +250 -86
- package/dist/api/GraphObjectsApi.js +2 -2
- package/dist/api/GraphRelationshipTypesApi.js +172 -13
- package/dist/api/GraphRelationshipsApi.js +21 -20
- package/dist/api/GraphSchemasApi.js +13 -13
- package/dist/api/GraphTraversalApi.js +2 -2
- package/dist/api/GraphsApi.js +13 -13
- package/dist/api/GroupsApi.js +7 -7
- package/dist/api/IAMApi.js +13 -13
- package/dist/api/ImagesApi.js +7 -7
- package/dist/api/InvitesApi.js +2 -2
- package/dist/api/LikesApi.js +7 -7
- package/dist/api/LinkedINApi.js +2 -2
- package/dist/api/LiveMeetingsApi.js +2 -2
- package/dist/api/MeetingEventsApi.js +2 -2
- package/dist/api/NotificationsApi.js +1076 -0
- package/dist/api/PagesApi.js +7 -7
- package/dist/api/PhoneNumbersApi.js +403 -0
- package/dist/api/PostsApi.js +7 -7
- package/dist/api/PrivateMessagesApi.js +18 -18
- package/dist/api/PublicationsApi.js +2 -2
- package/dist/api/ScreensApi.js +2 -2
- package/dist/api/SocialIntegrationApi.js +2 -2
- package/dist/api/StripeAccountsApi.js +2 -2
- package/dist/api/TagsApi.js +2 -2
- package/dist/api/TemplatesApi.js +2 -2
- package/dist/api/ThemeMappingsApi.js +8 -8
- package/dist/api/TopicsApi.js +569 -0
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/api/TwitterApi.js +2 -2
- package/dist/api/UserTagsApi.js +7 -7
- package/dist/api/UsersApi.js +7 -7
- package/dist/api/UtilsApi.js +2 -2
- package/dist/api/VideosApi.js +7 -7
- package/dist/index.js +245 -7
- package/dist/model/APIClient.js +23 -23
- package/dist/model/AccountSessionInput.js +2 -2
- package/dist/model/AccountSessionResponse.js +2 -2
- package/dist/model/ApplicationPaymentAccountResponse.js +2 -2
- package/dist/model/ApplicationPaymentAccountResponseFailureException.js +2 -49
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionStackTraceInner.js +2 -2
- package/dist/model/Article.js +2 -2
- package/dist/model/AuthResponse.js +2 -2
- package/dist/model/AwsSettings.js +193 -0
- package/dist/model/Balance.js +33 -33
- package/dist/model/BalanceDetails.js +2 -2
- package/dist/model/BalanceResponse.js +2 -2
- package/dist/model/BankAccountInfo.js +2 -2
- package/dist/model/CardInfo.js +2 -2
- package/dist/model/Comment.js +31 -31
- package/dist/model/Coordinates.js +2 -2
- package/dist/model/CreateAccountResponse.js +2 -2
- package/dist/model/CreateFunctionInput.js +238 -0
- package/dist/model/CreateStripeAccountInput.js +2 -2
- package/dist/model/CreateStripeCustomerInput.js +2 -2
- package/dist/model/CreateTopicInput.js +191 -0
- package/dist/model/CreateTopicListenerInput.js +160 -0
- package/dist/model/CurrencySettings.js +108 -0
- package/dist/model/CustomerResponse.js +2 -2
- package/dist/model/DataObject.js +2 -2
- package/dist/model/DataSheetImport.js +27 -27
- package/dist/model/DataSheetImportPrivacySettings.js +2 -2
- package/dist/model/DataSheetImportSummary.js +2 -2
- package/dist/model/DeviceRegistrationRequest.js +252 -0
- package/dist/model/Document.js +2 -2
- package/dist/model/DocumentPart.js +52 -52
- package/dist/model/DocumentPartType.js +23 -23
- package/dist/model/DocumentType.js +63 -63
- package/dist/model/EmailAddress.js +245 -0
- package/dist/model/FieldMapping.js +2 -2
- package/dist/model/Fields.js +71 -71
- package/dist/model/File.js +23 -23
- package/dist/model/FileAttachmentUploadObject.js +23 -23
- package/dist/model/Filter.js +2 -2
- package/dist/model/FilterManager.js +2 -2
- package/dist/model/Form.js +37 -37
- package/dist/model/FormSection.js +37 -37
- package/dist/model/FormSubmission.js +30 -30
- package/dist/model/FunctionConfigInput.js +563 -0
- package/dist/model/FunctionEnvironmentConfig.js +221 -0
- package/dist/model/FunctionInput.js +260 -0
- package/dist/model/FunctionOutput.js +235 -0
- package/dist/model/Geocode.js +2 -2
- package/dist/model/GeocodePayload.js +2 -2
- package/dist/model/GeolocationInput.js +2 -2
- package/dist/model/GetFunctionConfig.js +536 -0
- package/dist/model/GetFunctionEnvironmentConfig.js +223 -0
- package/dist/model/GetFunctionResponse.js +302 -0
- package/dist/model/GoogleCloudSettings.js +162 -0
- package/dist/model/Graph.js +91 -91
- package/dist/model/GraphAction.js +29 -29
- package/dist/model/GraphDatabaseService.js +2 -2
- package/dist/model/GraphGeocode.js +2 -2
- package/dist/model/GraphIteratorEntryPart.js +2 -2
- package/dist/model/GraphObject.js +81 -81
- package/dist/model/GraphObjectPayload.js +2 -2
- package/dist/model/GraphObjectSchema.js +109 -109
- package/dist/model/GraphObjectType.js +52 -52
- package/dist/model/GraphObjectTypeResponse.js +377 -0
- package/dist/model/GraphObjectTypeSchema.js +52 -52
- package/dist/model/GraphOwner.js +2 -2
- package/dist/model/GraphRelationship.js +30 -30
- package/dist/model/GraphRelationshipPayload.js +2 -2
- package/dist/model/GraphRelationshipType.js +33 -33
- package/dist/model/GraphRelationshipTypeResponse.js +612 -0
- package/dist/model/GraphSchema.js +115 -115
- package/dist/model/GraphTraversalInput.js +2 -2
- package/dist/model/Image.js +70 -70
- package/dist/model/ImageUploadObject.js +70 -70
- package/dist/model/InputPart.js +2 -2
- package/dist/model/InputPartHeaders.js +106 -0
- package/dist/model/InputPartMediaType.js +2 -2
- package/dist/model/KafkaSettings.js +220 -0
- package/dist/model/Link.js +54 -54
- package/dist/model/LiveStreamInfo.js +2 -2
- package/dist/model/MeetingEvent.js +108 -108
- package/dist/model/MeetingEventTimezone.js +2 -2
- package/dist/model/MeetingInfo.js +2 -2
- package/dist/model/Member.js +31 -31
- package/dist/model/MemberGroupCategory.js +2 -2
- package/dist/model/MemberList.js +2 -2
- package/dist/model/MessageGroup.js +25 -25
- package/dist/model/MultipartBody.js +2 -2
- package/dist/model/Notification.js +381 -0
- package/dist/model/NotificationInput.js +273 -0
- package/dist/model/NotificationResponse.js +332 -0
- package/dist/model/NumberSettings.js +104 -0
- package/dist/model/ObjectSettings.js +129 -0
- package/dist/model/Objecttype.js +48 -48
- package/dist/model/OutParameter.js +162 -0
- package/dist/model/Page.js +2 -2
- package/dist/model/PageSchema.js +27 -27
- package/dist/model/Pageable.js +2 -2
- package/dist/model/Parameter.js +162 -0
- package/dist/model/Path.js +2 -2
- package/dist/model/PaymentAccountObject.js +2 -2
- package/dist/model/PaymentIntentInput.js +2 -2
- package/dist/model/PaymentIntentResponse.js +2 -2
- package/dist/model/PaymentMethod.js +25 -25
- package/dist/model/PaymentMethodInput.js +2 -2
- package/dist/model/PaymentMethodResponse.js +2 -2
- package/dist/model/PaymentMethodsResponse.js +2 -2
- package/dist/model/Payout.js +32 -32
- package/dist/model/PayoutInput.js +2 -2
- package/dist/model/PayoutResponse.js +2 -2
- package/dist/model/PhoneNumber.js +332 -0
- package/dist/model/Post.js +2 -2
- package/dist/model/PrivateMessage.js +2 -2
- package/dist/model/PrivateMessageConversation.js +91 -91
- package/dist/model/PrivateMessageConversationSchema.js +2 -2
- package/dist/model/Profile.js +2 -2
- package/dist/model/Profiletype.js +2 -2
- package/dist/model/PropertyContainer.js +25 -25
- package/dist/model/PurgeDataDefaultResponse.js +179 -0
- package/dist/model/PurgeDataDefaultResponseValue.js +2 -2
- package/dist/model/RelationshipMapping.js +2 -2
- package/dist/model/ScreenSchema.js +81 -81
- package/dist/model/SimulcastInfo.js +2 -2
- package/dist/model/SkinField.js +71 -71
- package/dist/model/SkinFieldResponse.js +596 -0
- package/dist/model/SocialGroup.js +2 -2
- package/dist/model/SocialGroupType.js +25 -25
- package/dist/model/Sort.js +2 -2
- package/dist/model/SourceTypes.js +2 -2
- package/dist/model/StatusUpdate.js +2 -2
- package/dist/model/StreetAddress.js +2 -2
- package/dist/model/StripeAccount.js +2 -2
- package/dist/model/StripeCustomerAccount.js +2 -2
- package/dist/model/Template.js +58 -58
- package/dist/model/TemplateResponse.js +301 -0
- package/dist/model/TemplateSchema.js +58 -58
- package/dist/model/ThemeMapping.js +27 -27
- package/dist/model/ThemeMappingPayload.js +25 -25
- package/dist/model/TopicInfoResponse.js +269 -0
- package/dist/model/TopicMessageInput.js +158 -0
- package/dist/model/TopicSubscriptionResponse.js +220 -0
- package/dist/model/Transaction.js +2 -2
- package/dist/model/Transfer.js +32 -32
- package/dist/model/TransferInput.js +2 -2
- package/dist/model/TransferResponse.js +2 -2
- package/dist/model/TransferResponsePaymentMethodDetails.js +32 -32
- package/dist/model/TraversalRelationResponse.js +2 -2
- package/dist/model/User.js +31 -31
- package/dist/model/UserDataPayload.js +31 -31
- package/dist/model/UserDomain.js +2 -2
- package/dist/model/UserInvite.js +29 -29
- package/dist/model/UserInviteInput.js +2 -2
- package/dist/model/UserSchema.js +31 -31
- package/dist/model/UserTag.js +2 -2
- package/dist/model/Userid.js +2 -2
- package/dist/model/Video.js +52 -52
- package/dist/model/VideoLiveUrl.js +27 -27
- package/dist/model/VideoSchema.js +52 -52
- package/dist/model/VideoUploadObject.js +52 -52
- package/dist/model/ZeusPortalCategory.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,1076 @@
|
|
|
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* gobodo-api
|
|
19
|
+
* REST Interface for Gobodo API
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 0.1.61
|
|
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.61
|
|
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
|
+
* Creates a notification
|
|
49
|
+
* Creates a notification for a user
|
|
50
|
+
* @param {Number} recipientId
|
|
51
|
+
* @param {module:model/NotificationInput} notificationInput
|
|
52
|
+
* @param {Object} opts Optional parameters
|
|
53
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
54
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
55
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
56
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
57
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
58
|
+
* @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)
|
|
59
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
60
|
+
* @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
|
|
61
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
62
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
63
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotificationResponse} and HTTP response
|
|
64
|
+
*/
|
|
65
|
+
_createClass(NotificationsApi, [{
|
|
66
|
+
key: "createNotificationWithHttpInfo",
|
|
67
|
+
value: function createNotificationWithHttpInfo(recipientId, notificationInput, opts) {
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
var postBody = notificationInput;
|
|
70
|
+
// verify the required parameter 'recipientId' is set
|
|
71
|
+
if (recipientId === undefined || recipientId === null) {
|
|
72
|
+
throw new Error("Missing the required parameter 'recipientId' when calling createNotification");
|
|
73
|
+
}
|
|
74
|
+
// verify the required parameter 'notificationInput' is set
|
|
75
|
+
if (notificationInput === undefined || notificationInput === null) {
|
|
76
|
+
throw new Error("Missing the required parameter 'notificationInput' when calling createNotification");
|
|
77
|
+
}
|
|
78
|
+
var pathParams = {
|
|
79
|
+
'recipientId': recipientId
|
|
80
|
+
};
|
|
81
|
+
var queryParams = {};
|
|
82
|
+
var headerParams = {
|
|
83
|
+
'Authorization': opts['authorization'],
|
|
84
|
+
'cacheduration': opts['cacheduration'],
|
|
85
|
+
'cachegroup': opts['cachegroup'],
|
|
86
|
+
'cachekey': opts['cachekey'],
|
|
87
|
+
'cachescope': opts['cachescope'],
|
|
88
|
+
'cacheuser': opts['cacheuser'],
|
|
89
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
90
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
91
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
92
|
+
'transactionid': opts['transactionid']
|
|
93
|
+
};
|
|
94
|
+
var formParams = {};
|
|
95
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
96
|
+
var contentTypes = ['application/json'];
|
|
97
|
+
var accepts = ['application/json'];
|
|
98
|
+
var returnType = _NotificationResponse["default"];
|
|
99
|
+
return this.apiClient.callApi('/graph/data/notifications/{recipientId}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Creates a notification
|
|
104
|
+
* Creates a notification for a user
|
|
105
|
+
* @param {Number} recipientId
|
|
106
|
+
* @param {module:model/NotificationInput} notificationInput
|
|
107
|
+
* @param {Object} opts Optional parameters
|
|
108
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
109
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
110
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
111
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
112
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
113
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
114
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
115
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
116
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
117
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
118
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotificationResponse}
|
|
119
|
+
*/
|
|
120
|
+
}, {
|
|
121
|
+
key: "createNotification",
|
|
122
|
+
value: function createNotification(recipientId, notificationInput, opts) {
|
|
123
|
+
return this.createNotificationWithHttpInfo(recipientId, notificationInput, opts).then(function (response_and_data) {
|
|
124
|
+
return response_and_data.data;
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Creates a notification
|
|
130
|
+
* Creates a notification for a user
|
|
131
|
+
* @param {Number} recipientId
|
|
132
|
+
* @param {Number} objectId
|
|
133
|
+
* @param {module:model/NotificationInput} notificationInput
|
|
134
|
+
* @param {Object} opts Optional parameters
|
|
135
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
136
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
137
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
138
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
139
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
140
|
+
* @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)
|
|
141
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
142
|
+
* @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
|
|
143
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
144
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
145
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotificationResponse} and HTTP response
|
|
146
|
+
*/
|
|
147
|
+
}, {
|
|
148
|
+
key: "createNotificationAssociatedWithWithHttpInfo",
|
|
149
|
+
value: function createNotificationAssociatedWithWithHttpInfo(recipientId, objectId, notificationInput, opts) {
|
|
150
|
+
opts = opts || {};
|
|
151
|
+
var postBody = notificationInput;
|
|
152
|
+
// verify the required parameter 'recipientId' is set
|
|
153
|
+
if (recipientId === undefined || recipientId === null) {
|
|
154
|
+
throw new Error("Missing the required parameter 'recipientId' when calling createNotificationAssociatedWith");
|
|
155
|
+
}
|
|
156
|
+
// verify the required parameter 'objectId' is set
|
|
157
|
+
if (objectId === undefined || objectId === null) {
|
|
158
|
+
throw new Error("Missing the required parameter 'objectId' when calling createNotificationAssociatedWith");
|
|
159
|
+
}
|
|
160
|
+
// verify the required parameter 'notificationInput' is set
|
|
161
|
+
if (notificationInput === undefined || notificationInput === null) {
|
|
162
|
+
throw new Error("Missing the required parameter 'notificationInput' when calling createNotificationAssociatedWith");
|
|
163
|
+
}
|
|
164
|
+
var pathParams = {
|
|
165
|
+
'recipientId': recipientId,
|
|
166
|
+
'objectId': objectId
|
|
167
|
+
};
|
|
168
|
+
var queryParams = {};
|
|
169
|
+
var headerParams = {
|
|
170
|
+
'Authorization': opts['authorization'],
|
|
171
|
+
'cacheduration': opts['cacheduration'],
|
|
172
|
+
'cachegroup': opts['cachegroup'],
|
|
173
|
+
'cachekey': opts['cachekey'],
|
|
174
|
+
'cachescope': opts['cachescope'],
|
|
175
|
+
'cacheuser': opts['cacheuser'],
|
|
176
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
177
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
178
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
179
|
+
'transactionid': opts['transactionid']
|
|
180
|
+
};
|
|
181
|
+
var formParams = {};
|
|
182
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
183
|
+
var contentTypes = ['application/json'];
|
|
184
|
+
var accepts = ['application/json'];
|
|
185
|
+
var returnType = _NotificationResponse["default"];
|
|
186
|
+
return this.apiClient.callApi('/graph/data/notifications/{recipientId}/{objectId}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Creates a notification
|
|
191
|
+
* Creates a notification for a user
|
|
192
|
+
* @param {Number} recipientId
|
|
193
|
+
* @param {Number} objectId
|
|
194
|
+
* @param {module:model/NotificationInput} notificationInput
|
|
195
|
+
* @param {Object} opts Optional parameters
|
|
196
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
197
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
198
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
199
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
200
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
201
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
202
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
203
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
204
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
205
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
206
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotificationResponse}
|
|
207
|
+
*/
|
|
208
|
+
}, {
|
|
209
|
+
key: "createNotificationAssociatedWith",
|
|
210
|
+
value: function createNotificationAssociatedWith(recipientId, objectId, notificationInput, opts) {
|
|
211
|
+
return this.createNotificationAssociatedWithWithHttpInfo(recipientId, objectId, notificationInput, opts).then(function (response_and_data) {
|
|
212
|
+
return response_and_data.data;
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Deletes the notification
|
|
218
|
+
* Deletes the notification
|
|
219
|
+
* @param {Number} id
|
|
220
|
+
* @param {Object} opts Optional parameters
|
|
221
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
222
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
223
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
224
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
225
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
226
|
+
* @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)
|
|
227
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
228
|
+
* @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
|
|
229
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
230
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
231
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
232
|
+
*/
|
|
233
|
+
}, {
|
|
234
|
+
key: "deleteNotificationWithHttpInfo",
|
|
235
|
+
value: function deleteNotificationWithHttpInfo(id, opts) {
|
|
236
|
+
opts = opts || {};
|
|
237
|
+
var postBody = null;
|
|
238
|
+
// verify the required parameter 'id' is set
|
|
239
|
+
if (id === undefined || id === null) {
|
|
240
|
+
throw new Error("Missing the required parameter 'id' when calling deleteNotification");
|
|
241
|
+
}
|
|
242
|
+
var pathParams = {
|
|
243
|
+
'id': id
|
|
244
|
+
};
|
|
245
|
+
var queryParams = {};
|
|
246
|
+
var headerParams = {
|
|
247
|
+
'Authorization': opts['authorization'],
|
|
248
|
+
'cacheduration': opts['cacheduration'],
|
|
249
|
+
'cachegroup': opts['cachegroup'],
|
|
250
|
+
'cachekey': opts['cachekey'],
|
|
251
|
+
'cachescope': opts['cachescope'],
|
|
252
|
+
'cacheuser': opts['cacheuser'],
|
|
253
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
254
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
255
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
256
|
+
'transactionid': opts['transactionid']
|
|
257
|
+
};
|
|
258
|
+
var formParams = {};
|
|
259
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
260
|
+
var contentTypes = [];
|
|
261
|
+
var accepts = [];
|
|
262
|
+
var returnType = null;
|
|
263
|
+
return this.apiClient.callApi('/graph/data/notifications/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Deletes the notification
|
|
268
|
+
* Deletes the notification
|
|
269
|
+
* @param {Number} id
|
|
270
|
+
* @param {Object} opts Optional parameters
|
|
271
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
272
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
273
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
274
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
275
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
276
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
277
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
278
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
279
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
280
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
281
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
282
|
+
*/
|
|
283
|
+
}, {
|
|
284
|
+
key: "deleteNotification",
|
|
285
|
+
value: function deleteNotification(id, opts) {
|
|
286
|
+
return this.deleteNotificationWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
287
|
+
return response_and_data.data;
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Returns all notifications for the logged in user
|
|
293
|
+
* Returns all notifications for the logged in user
|
|
294
|
+
* @param {Object} opts Optional parameters
|
|
295
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
296
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
297
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
298
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
299
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
300
|
+
* @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)
|
|
301
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
302
|
+
* @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
|
|
303
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
304
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
305
|
+
* @param {Number} [startindex]
|
|
306
|
+
* @param {Number} [count]
|
|
307
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotificationResponse>} and HTTP response
|
|
308
|
+
*/
|
|
309
|
+
}, {
|
|
310
|
+
key: "getAllNotificationsWithHttpInfo",
|
|
311
|
+
value: function getAllNotificationsWithHttpInfo(opts) {
|
|
312
|
+
opts = opts || {};
|
|
313
|
+
var postBody = null;
|
|
314
|
+
var pathParams = {};
|
|
315
|
+
var queryParams = {
|
|
316
|
+
'startindex': opts['startindex'],
|
|
317
|
+
'count': opts['count']
|
|
318
|
+
};
|
|
319
|
+
var headerParams = {
|
|
320
|
+
'Authorization': opts['authorization'],
|
|
321
|
+
'cacheduration': opts['cacheduration'],
|
|
322
|
+
'cachegroup': opts['cachegroup'],
|
|
323
|
+
'cachekey': opts['cachekey'],
|
|
324
|
+
'cachescope': opts['cachescope'],
|
|
325
|
+
'cacheuser': opts['cacheuser'],
|
|
326
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
327
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
328
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
329
|
+
'transactionid': opts['transactionid']
|
|
330
|
+
};
|
|
331
|
+
var formParams = {};
|
|
332
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
333
|
+
var contentTypes = [];
|
|
334
|
+
var accepts = ['application/json'];
|
|
335
|
+
var returnType = [_NotificationResponse["default"]];
|
|
336
|
+
return this.apiClient.callApi('/graph/data/notifications', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Returns all notifications for the logged in user
|
|
341
|
+
* Returns all notifications for the logged in user
|
|
342
|
+
* @param {Object} opts Optional parameters
|
|
343
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
344
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
345
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
346
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
347
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
348
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
349
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
350
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
351
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
352
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
353
|
+
* @param {Number} opts.startindex
|
|
354
|
+
* @param {Number} opts.count
|
|
355
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotificationResponse>}
|
|
356
|
+
*/
|
|
357
|
+
}, {
|
|
358
|
+
key: "getAllNotifications",
|
|
359
|
+
value: function getAllNotifications(opts) {
|
|
360
|
+
return this.getAllNotificationsWithHttpInfo(opts).then(function (response_and_data) {
|
|
361
|
+
return response_and_data.data;
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Returns all notifications for a given user
|
|
367
|
+
* Returns all notifications for a given user
|
|
368
|
+
* @param {Number} userid
|
|
369
|
+
* @param {Object} opts Optional parameters
|
|
370
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
371
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
372
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
373
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
374
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
375
|
+
* @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)
|
|
376
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
377
|
+
* @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
|
|
378
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
379
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
380
|
+
* @param {Number} [startindex]
|
|
381
|
+
* @param {Number} [count]
|
|
382
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotificationResponse>} and HTTP response
|
|
383
|
+
*/
|
|
384
|
+
}, {
|
|
385
|
+
key: "getAllNotificationsByUserWithHttpInfo",
|
|
386
|
+
value: function getAllNotificationsByUserWithHttpInfo(userid, opts) {
|
|
387
|
+
opts = opts || {};
|
|
388
|
+
var postBody = null;
|
|
389
|
+
// verify the required parameter 'userid' is set
|
|
390
|
+
if (userid === undefined || userid === null) {
|
|
391
|
+
throw new Error("Missing the required parameter 'userid' when calling getAllNotificationsByUser");
|
|
392
|
+
}
|
|
393
|
+
var pathParams = {
|
|
394
|
+
'userid': userid
|
|
395
|
+
};
|
|
396
|
+
var queryParams = {
|
|
397
|
+
'startindex': opts['startindex'],
|
|
398
|
+
'count': opts['count']
|
|
399
|
+
};
|
|
400
|
+
var headerParams = {
|
|
401
|
+
'Authorization': opts['authorization'],
|
|
402
|
+
'cacheduration': opts['cacheduration'],
|
|
403
|
+
'cachegroup': opts['cachegroup'],
|
|
404
|
+
'cachekey': opts['cachekey'],
|
|
405
|
+
'cachescope': opts['cachescope'],
|
|
406
|
+
'cacheuser': opts['cacheuser'],
|
|
407
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
408
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
409
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
410
|
+
'transactionid': opts['transactionid']
|
|
411
|
+
};
|
|
412
|
+
var formParams = {};
|
|
413
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
414
|
+
var contentTypes = [];
|
|
415
|
+
var accepts = ['application/json'];
|
|
416
|
+
var returnType = [_NotificationResponse["default"]];
|
|
417
|
+
return this.apiClient.callApi('/graph/data/notifications/user/{userId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Returns all notifications for a given user
|
|
422
|
+
* Returns all notifications for a given user
|
|
423
|
+
* @param {Number} userid
|
|
424
|
+
* @param {Object} opts Optional parameters
|
|
425
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
426
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
427
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
428
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
429
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
430
|
+
* @param {Array.<String>} opts.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} opts.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} opts.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} opts.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} opts.transactionid The id of the transaction this operation is being run in
|
|
435
|
+
* @param {Number} opts.startindex
|
|
436
|
+
* @param {Number} opts.count
|
|
437
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotificationResponse>}
|
|
438
|
+
*/
|
|
439
|
+
}, {
|
|
440
|
+
key: "getAllNotificationsByUser",
|
|
441
|
+
value: function getAllNotificationsByUser(userid, opts) {
|
|
442
|
+
return this.getAllNotificationsByUserWithHttpInfo(userid, opts).then(function (response_and_data) {
|
|
443
|
+
return response_and_data.data;
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Returns a notification by id
|
|
449
|
+
* Returns a notification by it's id
|
|
450
|
+
* @param {Number} id
|
|
451
|
+
* @param {Object} opts Optional parameters
|
|
452
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
453
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
454
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
455
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
456
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
457
|
+
* @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)
|
|
458
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
459
|
+
* @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
|
|
460
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
461
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
462
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotificationResponse} and HTTP response
|
|
463
|
+
*/
|
|
464
|
+
}, {
|
|
465
|
+
key: "getNotificationWithHttpInfo",
|
|
466
|
+
value: function getNotificationWithHttpInfo(id, opts) {
|
|
467
|
+
opts = opts || {};
|
|
468
|
+
var postBody = null;
|
|
469
|
+
// verify the required parameter 'id' is set
|
|
470
|
+
if (id === undefined || id === null) {
|
|
471
|
+
throw new Error("Missing the required parameter 'id' when calling getNotification");
|
|
472
|
+
}
|
|
473
|
+
var pathParams = {
|
|
474
|
+
'id': id
|
|
475
|
+
};
|
|
476
|
+
var queryParams = {};
|
|
477
|
+
var headerParams = {
|
|
478
|
+
'Authorization': opts['authorization'],
|
|
479
|
+
'cacheduration': opts['cacheduration'],
|
|
480
|
+
'cachegroup': opts['cachegroup'],
|
|
481
|
+
'cachekey': opts['cachekey'],
|
|
482
|
+
'cachescope': opts['cachescope'],
|
|
483
|
+
'cacheuser': opts['cacheuser'],
|
|
484
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
485
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
486
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
487
|
+
'transactionid': opts['transactionid']
|
|
488
|
+
};
|
|
489
|
+
var formParams = {};
|
|
490
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
491
|
+
var contentTypes = [];
|
|
492
|
+
var accepts = ['application/json'];
|
|
493
|
+
var returnType = _NotificationResponse["default"];
|
|
494
|
+
return this.apiClient.callApi('/graph/data/notifications/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Returns a notification by id
|
|
499
|
+
* Returns a notification by it's id
|
|
500
|
+
* @param {Number} id
|
|
501
|
+
* @param {Object} opts Optional parameters
|
|
502
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
503
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
504
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
505
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
506
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
507
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
508
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
509
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
510
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
511
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
512
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotificationResponse}
|
|
513
|
+
*/
|
|
514
|
+
}, {
|
|
515
|
+
key: "getNotification",
|
|
516
|
+
value: function getNotification(id, opts) {
|
|
517
|
+
return this.getNotificationWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
518
|
+
return response_and_data.data;
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Returns the number of unread notifications for the logged in user
|
|
524
|
+
* Returns the number of unread notifications for the logged in user
|
|
525
|
+
* @param {Object} opts Optional parameters
|
|
526
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
527
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
528
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
529
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
530
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
531
|
+
* @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)
|
|
532
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
533
|
+
* @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
|
|
534
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
535
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
536
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Number} and HTTP response
|
|
537
|
+
*/
|
|
538
|
+
}, {
|
|
539
|
+
key: "getUnreadNotificationCountWithHttpInfo",
|
|
540
|
+
value: function getUnreadNotificationCountWithHttpInfo(opts) {
|
|
541
|
+
opts = opts || {};
|
|
542
|
+
var postBody = null;
|
|
543
|
+
var pathParams = {};
|
|
544
|
+
var queryParams = {};
|
|
545
|
+
var headerParams = {
|
|
546
|
+
'Authorization': opts['authorization'],
|
|
547
|
+
'cacheduration': opts['cacheduration'],
|
|
548
|
+
'cachegroup': opts['cachegroup'],
|
|
549
|
+
'cachekey': opts['cachekey'],
|
|
550
|
+
'cachescope': opts['cachescope'],
|
|
551
|
+
'cacheuser': opts['cacheuser'],
|
|
552
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
553
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
554
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
555
|
+
'transactionid': opts['transactionid']
|
|
556
|
+
};
|
|
557
|
+
var formParams = {};
|
|
558
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
559
|
+
var contentTypes = [];
|
|
560
|
+
var accepts = ['*/*'];
|
|
561
|
+
var returnType = 'Number';
|
|
562
|
+
return this.apiClient.callApi('/graph/data/notifications/unread/count', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Returns the number of unread notifications for the logged in user
|
|
567
|
+
* Returns the number of unread notifications for the logged in user
|
|
568
|
+
* @param {Object} opts Optional parameters
|
|
569
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
570
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
571
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
572
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
573
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
574
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
575
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
576
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
577
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
578
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
579
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Number}
|
|
580
|
+
*/
|
|
581
|
+
}, {
|
|
582
|
+
key: "getUnreadNotificationCount",
|
|
583
|
+
value: function getUnreadNotificationCount(opts) {
|
|
584
|
+
return this.getUnreadNotificationCountWithHttpInfo(opts).then(function (response_and_data) {
|
|
585
|
+
return response_and_data.data;
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Returns all unread notifications for the logged in user
|
|
591
|
+
* Returns all unread notifications for the logged in user
|
|
592
|
+
* @param {Object} opts Optional parameters
|
|
593
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
594
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
595
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
596
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
597
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
598
|
+
* @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)
|
|
599
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
600
|
+
* @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
|
|
601
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
602
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
603
|
+
* @param {Number} [startindex]
|
|
604
|
+
* @param {Number} [count]
|
|
605
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotificationResponse>} and HTTP response
|
|
606
|
+
*/
|
|
607
|
+
}, {
|
|
608
|
+
key: "getUnreadNotificationsWithHttpInfo",
|
|
609
|
+
value: function getUnreadNotificationsWithHttpInfo(opts) {
|
|
610
|
+
opts = opts || {};
|
|
611
|
+
var postBody = null;
|
|
612
|
+
var pathParams = {};
|
|
613
|
+
var queryParams = {
|
|
614
|
+
'startindex': opts['startindex'],
|
|
615
|
+
'count': opts['count']
|
|
616
|
+
};
|
|
617
|
+
var headerParams = {
|
|
618
|
+
'Authorization': opts['authorization'],
|
|
619
|
+
'cacheduration': opts['cacheduration'],
|
|
620
|
+
'cachegroup': opts['cachegroup'],
|
|
621
|
+
'cachekey': opts['cachekey'],
|
|
622
|
+
'cachescope': opts['cachescope'],
|
|
623
|
+
'cacheuser': opts['cacheuser'],
|
|
624
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
625
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
626
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
627
|
+
'transactionid': opts['transactionid']
|
|
628
|
+
};
|
|
629
|
+
var formParams = {};
|
|
630
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
631
|
+
var contentTypes = [];
|
|
632
|
+
var accepts = ['application/json'];
|
|
633
|
+
var returnType = [_NotificationResponse["default"]];
|
|
634
|
+
return this.apiClient.callApi('/graph/data/notifications/unread', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Returns all unread notifications for the logged in user
|
|
639
|
+
* Returns all unread notifications for the logged in user
|
|
640
|
+
* @param {Object} opts Optional parameters
|
|
641
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
642
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
643
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
644
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
645
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
646
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
647
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
648
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
649
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
650
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
651
|
+
* @param {Number} opts.startindex
|
|
652
|
+
* @param {Number} opts.count
|
|
653
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotificationResponse>}
|
|
654
|
+
*/
|
|
655
|
+
}, {
|
|
656
|
+
key: "getUnreadNotifications",
|
|
657
|
+
value: function getUnreadNotifications(opts) {
|
|
658
|
+
return this.getUnreadNotificationsWithHttpInfo(opts).then(function (response_and_data) {
|
|
659
|
+
return response_and_data.data;
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* @param {Object} opts Optional parameters
|
|
665
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
666
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
667
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
668
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
669
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
670
|
+
* @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)
|
|
671
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
672
|
+
* @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
|
|
673
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
674
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
675
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
676
|
+
*/
|
|
677
|
+
}, {
|
|
678
|
+
key: "listRegisteredDevicesWithHttpInfo",
|
|
679
|
+
value: function listRegisteredDevicesWithHttpInfo(opts) {
|
|
680
|
+
opts = opts || {};
|
|
681
|
+
var postBody = null;
|
|
682
|
+
var pathParams = {};
|
|
683
|
+
var queryParams = {};
|
|
684
|
+
var headerParams = {
|
|
685
|
+
'Authorization': opts['authorization'],
|
|
686
|
+
'cacheduration': opts['cacheduration'],
|
|
687
|
+
'cachegroup': opts['cachegroup'],
|
|
688
|
+
'cachekey': opts['cachekey'],
|
|
689
|
+
'cachescope': opts['cachescope'],
|
|
690
|
+
'cacheuser': opts['cacheuser'],
|
|
691
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
692
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
693
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
694
|
+
'transactionid': opts['transactionid']
|
|
695
|
+
};
|
|
696
|
+
var formParams = {};
|
|
697
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
698
|
+
var contentTypes = [];
|
|
699
|
+
var accepts = ['application/json'];
|
|
700
|
+
var returnType = null;
|
|
701
|
+
return this.apiClient.callApi('/graph/data/notificationmanagement/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* @param {Object} opts Optional parameters
|
|
706
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
707
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
708
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
709
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
710
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
711
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
712
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
713
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
714
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
715
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
716
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
717
|
+
*/
|
|
718
|
+
}, {
|
|
719
|
+
key: "listRegisteredDevices",
|
|
720
|
+
value: function listRegisteredDevices(opts) {
|
|
721
|
+
return this.listRegisteredDevicesWithHttpInfo(opts).then(function (response_and_data) {
|
|
722
|
+
return response_and_data.data;
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* @param {Object} opts Optional parameters
|
|
728
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
729
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
730
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
731
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
732
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
733
|
+
* @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)
|
|
734
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
735
|
+
* @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
|
|
736
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
737
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
738
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
739
|
+
*/
|
|
740
|
+
}, {
|
|
741
|
+
key: "listRegisteredTokensWithHttpInfo",
|
|
742
|
+
value: function listRegisteredTokensWithHttpInfo(opts) {
|
|
743
|
+
opts = opts || {};
|
|
744
|
+
var postBody = null;
|
|
745
|
+
var pathParams = {};
|
|
746
|
+
var queryParams = {};
|
|
747
|
+
var headerParams = {
|
|
748
|
+
'Authorization': opts['authorization'],
|
|
749
|
+
'cacheduration': opts['cacheduration'],
|
|
750
|
+
'cachegroup': opts['cachegroup'],
|
|
751
|
+
'cachekey': opts['cachekey'],
|
|
752
|
+
'cachescope': opts['cachescope'],
|
|
753
|
+
'cacheuser': opts['cacheuser'],
|
|
754
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
755
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
756
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
757
|
+
'transactionid': opts['transactionid']
|
|
758
|
+
};
|
|
759
|
+
var formParams = {};
|
|
760
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
761
|
+
var contentTypes = [];
|
|
762
|
+
var accepts = ['application/json'];
|
|
763
|
+
var returnType = null;
|
|
764
|
+
return this.apiClient.callApi('/graph/data/notificationmanagement/tokens', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* @param {Object} opts Optional parameters
|
|
769
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
770
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
771
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
772
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
773
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
774
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
775
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
776
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
777
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
778
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
779
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
780
|
+
*/
|
|
781
|
+
}, {
|
|
782
|
+
key: "listRegisteredTokens",
|
|
783
|
+
value: function listRegisteredTokens(opts) {
|
|
784
|
+
return this.listRegisteredTokensWithHttpInfo(opts).then(function (response_and_data) {
|
|
785
|
+
return response_and_data.data;
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Marks a notification as read
|
|
791
|
+
* Marks a notification as read
|
|
792
|
+
* @param {Number} id
|
|
793
|
+
* @param {Object} opts Optional parameters
|
|
794
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
795
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
796
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
797
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
798
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
799
|
+
* @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)
|
|
800
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
801
|
+
* @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
|
|
802
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
803
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
804
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
805
|
+
*/
|
|
806
|
+
}, {
|
|
807
|
+
key: "markNotificationAsReadWithHttpInfo",
|
|
808
|
+
value: function markNotificationAsReadWithHttpInfo(id, opts) {
|
|
809
|
+
opts = opts || {};
|
|
810
|
+
var postBody = null;
|
|
811
|
+
// verify the required parameter 'id' is set
|
|
812
|
+
if (id === undefined || id === null) {
|
|
813
|
+
throw new Error("Missing the required parameter 'id' when calling markNotificationAsRead");
|
|
814
|
+
}
|
|
815
|
+
var pathParams = {
|
|
816
|
+
'id': id
|
|
817
|
+
};
|
|
818
|
+
var queryParams = {};
|
|
819
|
+
var headerParams = {
|
|
820
|
+
'Authorization': opts['authorization'],
|
|
821
|
+
'cacheduration': opts['cacheduration'],
|
|
822
|
+
'cachegroup': opts['cachegroup'],
|
|
823
|
+
'cachekey': opts['cachekey'],
|
|
824
|
+
'cachescope': opts['cachescope'],
|
|
825
|
+
'cacheuser': opts['cacheuser'],
|
|
826
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
827
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
828
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
829
|
+
'transactionid': opts['transactionid']
|
|
830
|
+
};
|
|
831
|
+
var formParams = {};
|
|
832
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
833
|
+
var contentTypes = [];
|
|
834
|
+
var accepts = [];
|
|
835
|
+
var returnType = null;
|
|
836
|
+
return this.apiClient.callApi('/graph/data/notifications/{id}/read', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Marks a notification as read
|
|
841
|
+
* Marks a notification as read
|
|
842
|
+
* @param {Number} id
|
|
843
|
+
* @param {Object} opts Optional parameters
|
|
844
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
845
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
846
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
847
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
848
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
849
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
850
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
851
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
852
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
853
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
854
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
855
|
+
*/
|
|
856
|
+
}, {
|
|
857
|
+
key: "markNotificationAsRead",
|
|
858
|
+
value: function markNotificationAsRead(id, opts) {
|
|
859
|
+
return this.markNotificationAsReadWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
860
|
+
return response_and_data.data;
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* @param {module:model/DeviceRegistrationRequest} deviceRegistrationRequest
|
|
866
|
+
* @param {Object} opts Optional parameters
|
|
867
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
868
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
869
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
870
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
871
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
872
|
+
* @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)
|
|
873
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
874
|
+
* @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
|
|
875
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
876
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
877
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
878
|
+
*/
|
|
879
|
+
}, {
|
|
880
|
+
key: "registerDeviceWithHttpInfo",
|
|
881
|
+
value: function registerDeviceWithHttpInfo(deviceRegistrationRequest, opts) {
|
|
882
|
+
opts = opts || {};
|
|
883
|
+
var postBody = deviceRegistrationRequest;
|
|
884
|
+
// verify the required parameter 'deviceRegistrationRequest' is set
|
|
885
|
+
if (deviceRegistrationRequest === undefined || deviceRegistrationRequest === null) {
|
|
886
|
+
throw new Error("Missing the required parameter 'deviceRegistrationRequest' when calling registerDevice");
|
|
887
|
+
}
|
|
888
|
+
var pathParams = {};
|
|
889
|
+
var queryParams = {};
|
|
890
|
+
var headerParams = {
|
|
891
|
+
'Authorization': opts['authorization'],
|
|
892
|
+
'cacheduration': opts['cacheduration'],
|
|
893
|
+
'cachegroup': opts['cachegroup'],
|
|
894
|
+
'cachekey': opts['cachekey'],
|
|
895
|
+
'cachescope': opts['cachescope'],
|
|
896
|
+
'cacheuser': opts['cacheuser'],
|
|
897
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
898
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
899
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
900
|
+
'transactionid': opts['transactionid']
|
|
901
|
+
};
|
|
902
|
+
var formParams = {};
|
|
903
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
904
|
+
var contentTypes = ['application/json'];
|
|
905
|
+
var accepts = ['application/json'];
|
|
906
|
+
var returnType = null;
|
|
907
|
+
return this.apiClient.callApi('/graph/data/notificationmanagement/register', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* @param {module:model/DeviceRegistrationRequest} deviceRegistrationRequest
|
|
912
|
+
* @param {Object} opts Optional parameters
|
|
913
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
914
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
915
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
916
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
917
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
918
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
919
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
920
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
921
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
922
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
923
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
924
|
+
*/
|
|
925
|
+
}, {
|
|
926
|
+
key: "registerDevice",
|
|
927
|
+
value: function registerDevice(deviceRegistrationRequest, opts) {
|
|
928
|
+
return this.registerDeviceWithHttpInfo(deviceRegistrationRequest, opts).then(function (response_and_data) {
|
|
929
|
+
return response_and_data.data;
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* @param {String} deviceId
|
|
935
|
+
* @param {Object} opts Optional parameters
|
|
936
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
937
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
938
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
939
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
940
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
941
|
+
* @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)
|
|
942
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
943
|
+
* @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
|
|
944
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
945
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
946
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
947
|
+
*/
|
|
948
|
+
}, {
|
|
949
|
+
key: "unregisterDeviceWithHttpInfo",
|
|
950
|
+
value: function unregisterDeviceWithHttpInfo(deviceId, opts) {
|
|
951
|
+
opts = opts || {};
|
|
952
|
+
var postBody = null;
|
|
953
|
+
// verify the required parameter 'deviceId' is set
|
|
954
|
+
if (deviceId === undefined || deviceId === null) {
|
|
955
|
+
throw new Error("Missing the required parameter 'deviceId' when calling unregisterDevice");
|
|
956
|
+
}
|
|
957
|
+
var pathParams = {
|
|
958
|
+
'deviceId': deviceId
|
|
959
|
+
};
|
|
960
|
+
var queryParams = {};
|
|
961
|
+
var headerParams = {
|
|
962
|
+
'Authorization': opts['authorization'],
|
|
963
|
+
'cacheduration': opts['cacheduration'],
|
|
964
|
+
'cachegroup': opts['cachegroup'],
|
|
965
|
+
'cachekey': opts['cachekey'],
|
|
966
|
+
'cachescope': opts['cachescope'],
|
|
967
|
+
'cacheuser': opts['cacheuser'],
|
|
968
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
969
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
970
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
971
|
+
'transactionid': opts['transactionid']
|
|
972
|
+
};
|
|
973
|
+
var formParams = {};
|
|
974
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
975
|
+
var contentTypes = [];
|
|
976
|
+
var accepts = ['application/json'];
|
|
977
|
+
var returnType = null;
|
|
978
|
+
return this.apiClient.callApi('/graph/data/notificationmanagement/unregister/{deviceId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* @param {String} deviceId
|
|
983
|
+
* @param {Object} opts Optional parameters
|
|
984
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
985
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
986
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
987
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
988
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
989
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
990
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
991
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
992
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
993
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
994
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
995
|
+
*/
|
|
996
|
+
}, {
|
|
997
|
+
key: "unregisterDevice",
|
|
998
|
+
value: function unregisterDevice(deviceId, opts) {
|
|
999
|
+
return this.unregisterDeviceWithHttpInfo(deviceId, opts).then(function (response_and_data) {
|
|
1000
|
+
return response_and_data.data;
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* @param {String} token
|
|
1006
|
+
* @param {Object} opts Optional parameters
|
|
1007
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
1008
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
1009
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
1010
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
1011
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
1012
|
+
* @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)
|
|
1013
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
1014
|
+
* @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
|
|
1015
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
1016
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
1017
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1018
|
+
*/
|
|
1019
|
+
}, {
|
|
1020
|
+
key: "unregisterNotificationTokenWithHttpInfo",
|
|
1021
|
+
value: function unregisterNotificationTokenWithHttpInfo(token, opts) {
|
|
1022
|
+
opts = opts || {};
|
|
1023
|
+
var postBody = null;
|
|
1024
|
+
// verify the required parameter 'token' is set
|
|
1025
|
+
if (token === undefined || token === null) {
|
|
1026
|
+
throw new Error("Missing the required parameter 'token' when calling unregisterNotificationToken");
|
|
1027
|
+
}
|
|
1028
|
+
var pathParams = {
|
|
1029
|
+
'token': token
|
|
1030
|
+
};
|
|
1031
|
+
var queryParams = {};
|
|
1032
|
+
var headerParams = {
|
|
1033
|
+
'Authorization': opts['authorization'],
|
|
1034
|
+
'cacheduration': opts['cacheduration'],
|
|
1035
|
+
'cachegroup': opts['cachegroup'],
|
|
1036
|
+
'cachekey': opts['cachekey'],
|
|
1037
|
+
'cachescope': opts['cachescope'],
|
|
1038
|
+
'cacheuser': opts['cacheuser'],
|
|
1039
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
1040
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
1041
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
1042
|
+
'transactionid': opts['transactionid']
|
|
1043
|
+
};
|
|
1044
|
+
var formParams = {};
|
|
1045
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
1046
|
+
var contentTypes = [];
|
|
1047
|
+
var accepts = ['application/json'];
|
|
1048
|
+
var returnType = null;
|
|
1049
|
+
return this.apiClient.callApi('/graph/data/notificationmanagement/unregistertoken/{token}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* @param {String} token
|
|
1054
|
+
* @param {Object} opts Optional parameters
|
|
1055
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
1056
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
1057
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
1058
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
1059
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
1060
|
+
* @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
1061
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
1062
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
1063
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
1064
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
1065
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1066
|
+
*/
|
|
1067
|
+
}, {
|
|
1068
|
+
key: "unregisterNotificationToken",
|
|
1069
|
+
value: function unregisterNotificationToken(token, opts) {
|
|
1070
|
+
return this.unregisterNotificationTokenWithHttpInfo(token, opts).then(function (response_and_data) {
|
|
1071
|
+
return response_and_data.data;
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
}]);
|
|
1075
|
+
return NotificationsApi;
|
|
1076
|
+
}();
|