@gobodo/gobodo-api-promise 0.1.34
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 +794 -0
- package/dist/ApiClient.js +720 -0
- package/dist/api/ActionTypesApi.js +113 -0
- package/dist/api/AdCampaignsApi.js +500 -0
- package/dist/api/AdManagementApi.js +722 -0
- package/dist/api/AdminDataManagementApi.js +111 -0
- package/dist/api/AdsApi.js +384 -0
- package/dist/api/AttachmentsApi.js +465 -0
- package/dist/api/AuthenticationApi.js +418 -0
- package/dist/api/CategoriesApi.js +451 -0
- package/dist/api/CommentsApi.js +520 -0
- package/dist/api/ContentManagementApi.js +1491 -0
- package/dist/api/ConversationsApi.js +559 -0
- package/dist/api/DataSheetImportsApi.js +1066 -0
- package/dist/api/DefaultApi.js +696 -0
- package/dist/api/DocumentsApi.js +807 -0
- package/dist/api/EntryPartsApi.js +847 -0
- package/dist/api/FacebookApi.js +88 -0
- package/dist/api/FieldsApi.js +243 -0
- package/dist/api/FilesApi.js +116 -0
- package/dist/api/FormsApi.js +1136 -0
- package/dist/api/FunctionsApi.js +111 -0
- package/dist/api/GeocodeApi.js +340 -0
- package/dist/api/GoogleApi.js +88 -0
- package/dist/api/GraphActionsApi.js +674 -0
- package/dist/api/GraphObjectTypesApi.js +527 -0
- package/dist/api/GraphObjectsApi.js +4026 -0
- package/dist/api/GraphRelationshipTypesApi.js +1055 -0
- package/dist/api/GraphRelationshipsApi.js +1921 -0
- package/dist/api/GraphSchemasApi.js +459 -0
- package/dist/api/GraphTraversalApi.js +415 -0
- package/dist/api/GraphsApi.js +716 -0
- package/dist/api/GroupsApi.js +731 -0
- package/dist/api/IAMApi.js +268 -0
- package/dist/api/ImagesApi.js +535 -0
- package/dist/api/InvitesApi.js +339 -0
- package/dist/api/LikesApi.js +785 -0
- package/dist/api/LinkedINApi.js +88 -0
- package/dist/api/LiveMeetingsApi.js +175 -0
- package/dist/api/MeetingEventsApi.js +358 -0
- package/dist/api/PagesApi.js +605 -0
- package/dist/api/PostsApi.js +330 -0
- package/dist/api/PrivateMessagesApi.js +965 -0
- package/dist/api/PublicationsApi.js +103 -0
- package/dist/api/ScreensApi.js +224 -0
- package/dist/api/SocialIntegrationApi.js +214 -0
- package/dist/api/StripeAccountsApi.js +2309 -0
- package/dist/api/TagsApi.js +111 -0
- package/dist/api/TemplatesApi.js +224 -0
- package/dist/api/ThemeMappingsApi.js +219 -0
- package/dist/api/TransactionsApi.js +161 -0
- package/dist/api/TwitterApi.js +88 -0
- package/dist/api/UserTagsApi.js +592 -0
- package/dist/api/UsersApi.js +591 -0
- package/dist/api/UtilsApi.js +80 -0
- package/dist/api/VideosApi.js +709 -0
- package/dist/index.js +1301 -0
- package/dist/model/APIClient.js +354 -0
- package/dist/model/AccountSessionInput.js +222 -0
- package/dist/model/AccountSessionResponse.js +171 -0
- package/dist/model/ApplicationPaymentAccountResponse.js +185 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureException.js +265 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCause.js +234 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCauseStackTraceInner.js +303 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCauseSuppressedInner.js +187 -0
- package/dist/model/Article.js +668 -0
- package/dist/model/Authorization.js +166 -0
- package/dist/model/Balance.js +267 -0
- package/dist/model/BalanceDetails.js +164 -0
- package/dist/model/BalanceResponse.js +139 -0
- package/dist/model/BankAccountInfo.js +232 -0
- package/dist/model/CardInfo.js +213 -0
- package/dist/model/Comment.js +495 -0
- package/dist/model/Coordinates.js +129 -0
- package/dist/model/CreateAccountResponse.js +233 -0
- package/dist/model/CreateStripeAccountInput.js +216 -0
- package/dist/model/CreateStripeCustomerInput.js +195 -0
- package/dist/model/CustomerResponse.js +168 -0
- package/dist/model/DataObject.js +129 -0
- package/dist/model/DataSheetImport.js +732 -0
- package/dist/model/DataSheetImportPrivacySettings.js +154 -0
- package/dist/model/DataSheetImportSummary.js +206 -0
- package/dist/model/Document.js +743 -0
- package/dist/model/DocumentPart.js +612 -0
- package/dist/model/DocumentPartType.js +358 -0
- package/dist/model/DocumentType.js +458 -0
- package/dist/model/FieldMapping.js +185 -0
- package/dist/model/Fields.js +737 -0
- package/dist/model/File.js +341 -0
- package/dist/model/FileAttachmentUploadObject.js +341 -0
- package/dist/model/Filter.js +137 -0
- package/dist/model/FilterManager.js +154 -0
- package/dist/model/Form.js +393 -0
- package/dist/model/FormSection.js +304 -0
- package/dist/model/FormSubmission.js +238 -0
- package/dist/model/Geocode.js +191 -0
- package/dist/model/GeocodePayload.js +141 -0
- package/dist/model/GeolocationInput.js +216 -0
- package/dist/model/Graph.js +499 -0
- package/dist/model/GraphAction.js +298 -0
- package/dist/model/GraphDatabaseService.js +254 -0
- package/dist/model/GraphGeocode.js +282 -0
- package/dist/model/GraphIteratorEntryPart.js +129 -0
- package/dist/model/GraphObject.js +454 -0
- package/dist/model/GraphObjectPayload.js +430 -0
- package/dist/model/GraphObjectSchema.js +545 -0
- package/dist/model/GraphObjectType.js +626 -0
- package/dist/model/GraphObjectTypeSchema.js +645 -0
- package/dist/model/GraphOwner.js +158 -0
- package/dist/model/GraphRelationObjectObject.js +273 -0
- package/dist/model/GraphRelationship.js +301 -0
- package/dist/model/GraphRelationshipPayload.js +214 -0
- package/dist/model/GraphRelationshipType.js +675 -0
- package/dist/model/GraphSchema.js +645 -0
- package/dist/model/GraphTraversalInput.js +1125 -0
- package/dist/model/Image.js +449 -0
- package/dist/model/ImageUploadObject.js +449 -0
- package/dist/model/InputPart.js +191 -0
- package/dist/model/InputPartMediaType.js +214 -0
- package/dist/model/Link.js +305 -0
- package/dist/model/LiveStreamInfo.js +167 -0
- package/dist/model/MeetingEvent.js +591 -0
- package/dist/model/MeetingEventTimezone.js +187 -0
- package/dist/model/MeetingInfo.js +220 -0
- package/dist/model/Member.js +525 -0
- package/dist/model/MemberGroupCategory.js +237 -0
- package/dist/model/MemberList.js +96 -0
- package/dist/model/MessageGroup.js +160 -0
- package/dist/model/MultipartBody.js +133 -0
- package/dist/model/Objecttype.js +615 -0
- package/dist/model/Page.js +370 -0
- package/dist/model/PageSchema.js +482 -0
- package/dist/model/Pageable.js +235 -0
- package/dist/model/Path.js +110 -0
- package/dist/model/PaymentAccountObject.js +209 -0
- package/dist/model/PaymentIntentInput.js +214 -0
- package/dist/model/PaymentIntentResponse.js +137 -0
- package/dist/model/PaymentMethod.js +319 -0
- package/dist/model/PaymentMethodInput.js +291 -0
- package/dist/model/PaymentMethodResponse.js +139 -0
- package/dist/model/PaymentMethodsResponse.js +158 -0
- package/dist/model/Payout.js +313 -0
- package/dist/model/PayoutInput.js +347 -0
- package/dist/model/PayoutResponse.js +142 -0
- package/dist/model/Post.js +368 -0
- package/dist/model/PrivateMessage.js +494 -0
- package/dist/model/PrivateMessageConversation.js +520 -0
- package/dist/model/PrivateMessageConversationSchema.js +268 -0
- package/dist/model/Profile.js +191 -0
- package/dist/model/Profiletype.js +210 -0
- package/dist/model/PropertyContainer.js +162 -0
- package/dist/model/PurgeDataDefaultResponseValue.js +151 -0
- package/dist/model/RelationshipMapping.js +264 -0
- package/dist/model/ScreenSchema.js +834 -0
- package/dist/model/SimulcastInfo.js +175 -0
- package/dist/model/SkinField.js +737 -0
- package/dist/model/SocialGroup.js +602 -0
- package/dist/model/SocialGroupType.js +327 -0
- package/dist/model/Sort.js +154 -0
- package/dist/model/SourceTypes.js +154 -0
- package/dist/model/StatusUpdate.js +312 -0
- package/dist/model/StreetAddress.js +224 -0
- package/dist/model/StripeAccount.js +272 -0
- package/dist/model/StripeCustomerAccount.js +212 -0
- package/dist/model/Template.js +272 -0
- package/dist/model/TemplateSchema.js +300 -0
- package/dist/model/ThemeMapping.js +245 -0
- package/dist/model/ThemeMappingPayload.js +239 -0
- package/dist/model/Transaction.js +137 -0
- package/dist/model/Transfer.js +286 -0
- package/dist/model/TransferInput.js +288 -0
- package/dist/model/TransferResponse.js +173 -0
- package/dist/model/TransferResponsePaymentMethodDetails.js +286 -0
- package/dist/model/TraversalRelationResponse.js +176 -0
- package/dist/model/User.js +525 -0
- package/dist/model/UserDataPayload.js +525 -0
- package/dist/model/UserDomain.js +191 -0
- package/dist/model/UserInvite.js +404 -0
- package/dist/model/UserInviteInput.js +245 -0
- package/dist/model/UserSchema.js +525 -0
- package/dist/model/UserTag.js +246 -0
- package/dist/model/Userid.js +133 -0
- package/dist/model/Video.js +632 -0
- package/dist/model/VideoLiveUrl.js +137 -0
- package/dist/model/VideoSchema.js +717 -0
- package/dist/model/VideoUploadObject.js +632 -0
- package/dist/model/ZeusPortalCategory.js +434 -0
- package/package.json +46 -0
|
@@ -0,0 +1,965 @@
|
|
|
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 _MessageGroup = _interopRequireDefault(require("../model/MessageGroup"));
|
|
9
|
+
var _PrivateMessage = _interopRequireDefault(require("../model/PrivateMessage"));
|
|
10
|
+
var _PrivateMessageConversation = _interopRequireDefault(require("../model/PrivateMessageConversation"));
|
|
11
|
+
var _PrivateMessageConversationSchema = _interopRequireDefault(require("../model/PrivateMessageConversationSchema"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
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); }
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
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); } }
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
18
|
+
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); } /**
|
|
19
|
+
* gobodo-api
|
|
20
|
+
* REST Interface for Gobodo API
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 0.1.34
|
|
23
|
+
* Contact: info@gobodo.io
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* PrivateMessages service.
|
|
32
|
+
* @module api/PrivateMessagesApi
|
|
33
|
+
* @version 0.1.34
|
|
34
|
+
*/
|
|
35
|
+
var PrivateMessagesApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new PrivateMessagesApi.
|
|
38
|
+
* @alias module:api/PrivateMessagesApi
|
|
39
|
+
* @class
|
|
40
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
41
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
42
|
+
*/
|
|
43
|
+
function PrivateMessagesApi(apiClient) {
|
|
44
|
+
_classCallCheck(this, PrivateMessagesApi);
|
|
45
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @param {Number} messageid
|
|
50
|
+
* @param {module:model/PrivateMessage} privateMessage Private Message Object
|
|
51
|
+
* @param {Object} opts Optional parameters
|
|
52
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
53
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
54
|
+
* @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
|
|
55
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
56
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
57
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PrivateMessage} and HTTP response
|
|
58
|
+
*/
|
|
59
|
+
_createClass(PrivateMessagesApi, [{
|
|
60
|
+
key: "createBranchWithHttpInfo",
|
|
61
|
+
value: function createBranchWithHttpInfo(messageid, privateMessage, opts) {
|
|
62
|
+
opts = opts || {};
|
|
63
|
+
var postBody = privateMessage;
|
|
64
|
+
// verify the required parameter 'messageid' is set
|
|
65
|
+
if (messageid === undefined || messageid === null) {
|
|
66
|
+
throw new Error("Missing the required parameter 'messageid' when calling createBranch");
|
|
67
|
+
}
|
|
68
|
+
// verify the required parameter 'privateMessage' is set
|
|
69
|
+
if (privateMessage === undefined || privateMessage === null) {
|
|
70
|
+
throw new Error("Missing the required parameter 'privateMessage' when calling createBranch");
|
|
71
|
+
}
|
|
72
|
+
var pathParams = {
|
|
73
|
+
'messageid': messageid
|
|
74
|
+
};
|
|
75
|
+
var queryParams = {};
|
|
76
|
+
var headerParams = {
|
|
77
|
+
'Authorization': opts['authorization'],
|
|
78
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
79
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
80
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
81
|
+
'transactionid': opts['transactionid']
|
|
82
|
+
};
|
|
83
|
+
var formParams = {};
|
|
84
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
85
|
+
var contentTypes = [];
|
|
86
|
+
var accepts = ['application/json'];
|
|
87
|
+
var returnType = _PrivateMessage["default"];
|
|
88
|
+
return this.apiClient.callApi('/graph/data/privatemessages/messages/{messageid}/branch', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @param {Number} messageid
|
|
93
|
+
* @param {module:model/PrivateMessage} privateMessage Private Message Object
|
|
94
|
+
* @param {Object} opts Optional parameters
|
|
95
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
96
|
+
* @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
|
|
97
|
+
* @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
|
|
98
|
+
* @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
|
|
99
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
100
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PrivateMessage}
|
|
101
|
+
*/
|
|
102
|
+
}, {
|
|
103
|
+
key: "createBranch",
|
|
104
|
+
value: function createBranch(messageid, privateMessage, opts) {
|
|
105
|
+
return this.createBranchWithHttpInfo(messageid, privateMessage, opts).then(function (response_and_data) {
|
|
106
|
+
return response_and_data.data;
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Create conversation(s)
|
|
112
|
+
* Create a new conversation or list of conversations.
|
|
113
|
+
* @param {module:model/PrivateMessageConversationSchema} privateMessageConversationSchema Conversation object or array of objects to create
|
|
114
|
+
* @param {Object} opts Optional parameters
|
|
115
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
116
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
117
|
+
* @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
|
|
118
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
119
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
120
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PrivateMessageConversation} and HTTP response
|
|
121
|
+
*/
|
|
122
|
+
}, {
|
|
123
|
+
key: "createConversationWithHttpInfo",
|
|
124
|
+
value: function createConversationWithHttpInfo(privateMessageConversationSchema, opts) {
|
|
125
|
+
opts = opts || {};
|
|
126
|
+
var postBody = privateMessageConversationSchema;
|
|
127
|
+
// verify the required parameter 'privateMessageConversationSchema' is set
|
|
128
|
+
if (privateMessageConversationSchema === undefined || privateMessageConversationSchema === null) {
|
|
129
|
+
throw new Error("Missing the required parameter 'privateMessageConversationSchema' when calling createConversation");
|
|
130
|
+
}
|
|
131
|
+
var pathParams = {};
|
|
132
|
+
var queryParams = {};
|
|
133
|
+
var headerParams = {
|
|
134
|
+
'Authorization': opts['authorization'],
|
|
135
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
136
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
137
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
138
|
+
'transactionid': opts['transactionid']
|
|
139
|
+
};
|
|
140
|
+
var formParams = {};
|
|
141
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
142
|
+
var contentTypes = ['application/json'];
|
|
143
|
+
var accepts = ['application/json'];
|
|
144
|
+
var returnType = _PrivateMessageConversation["default"];
|
|
145
|
+
return this.apiClient.callApi('/graph/data/privatemessages/conversations', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Create conversation(s)
|
|
150
|
+
* Create a new conversation or list of conversations.
|
|
151
|
+
* @param {module:model/PrivateMessageConversationSchema} privateMessageConversationSchema Conversation object or array of objects to create
|
|
152
|
+
* @param {Object} opts Optional parameters
|
|
153
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
154
|
+
* @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
|
|
155
|
+
* @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
|
|
156
|
+
* @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
|
|
157
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
158
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PrivateMessageConversation}
|
|
159
|
+
*/
|
|
160
|
+
}, {
|
|
161
|
+
key: "createConversation",
|
|
162
|
+
value: function createConversation(privateMessageConversationSchema, opts) {
|
|
163
|
+
return this.createConversationWithHttpInfo(privateMessageConversationSchema, opts).then(function (response_and_data) {
|
|
164
|
+
return response_and_data.data;
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @param {Number} messageid
|
|
170
|
+
* @param {module:model/PrivateMessage} privateMessage Private Message Object
|
|
171
|
+
* @param {Object} opts Optional parameters
|
|
172
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
173
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
174
|
+
* @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
|
|
175
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
176
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
177
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PrivateMessage} and HTTP response
|
|
178
|
+
*/
|
|
179
|
+
}, {
|
|
180
|
+
key: "createReplyWithHttpInfo",
|
|
181
|
+
value: function createReplyWithHttpInfo(messageid, privateMessage, opts) {
|
|
182
|
+
opts = opts || {};
|
|
183
|
+
var postBody = privateMessage;
|
|
184
|
+
// verify the required parameter 'messageid' is set
|
|
185
|
+
if (messageid === undefined || messageid === null) {
|
|
186
|
+
throw new Error("Missing the required parameter 'messageid' when calling createReply");
|
|
187
|
+
}
|
|
188
|
+
// verify the required parameter 'privateMessage' is set
|
|
189
|
+
if (privateMessage === undefined || privateMessage === null) {
|
|
190
|
+
throw new Error("Missing the required parameter 'privateMessage' when calling createReply");
|
|
191
|
+
}
|
|
192
|
+
var pathParams = {
|
|
193
|
+
'messageid': messageid
|
|
194
|
+
};
|
|
195
|
+
var queryParams = {};
|
|
196
|
+
var headerParams = {
|
|
197
|
+
'Authorization': opts['authorization'],
|
|
198
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
199
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
200
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
201
|
+
'transactionid': opts['transactionid']
|
|
202
|
+
};
|
|
203
|
+
var formParams = {};
|
|
204
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
205
|
+
var contentTypes = [];
|
|
206
|
+
var accepts = ['application/json'];
|
|
207
|
+
var returnType = _PrivateMessage["default"];
|
|
208
|
+
return this.apiClient.callApi('/graph/data/privatemessages/messages/{messageid}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @param {Number} messageid
|
|
213
|
+
* @param {module:model/PrivateMessage} privateMessage Private Message Object
|
|
214
|
+
* @param {Object} opts Optional parameters
|
|
215
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
216
|
+
* @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
|
|
217
|
+
* @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
|
|
218
|
+
* @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
|
|
219
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
220
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PrivateMessage}
|
|
221
|
+
*/
|
|
222
|
+
}, {
|
|
223
|
+
key: "createReply",
|
|
224
|
+
value: function createReply(messageid, privateMessage, opts) {
|
|
225
|
+
return this.createReplyWithHttpInfo(messageid, privateMessage, opts).then(function (response_and_data) {
|
|
226
|
+
return response_and_data.data;
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @param {Number} messageid
|
|
232
|
+
* @param {Object} opts Optional parameters
|
|
233
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
234
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
235
|
+
* @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
|
|
236
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
237
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
238
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
239
|
+
*/
|
|
240
|
+
}, {
|
|
241
|
+
key: "deleteMessageWithHttpInfo",
|
|
242
|
+
value: function deleteMessageWithHttpInfo(messageid, opts) {
|
|
243
|
+
opts = opts || {};
|
|
244
|
+
var postBody = null;
|
|
245
|
+
// verify the required parameter 'messageid' is set
|
|
246
|
+
if (messageid === undefined || messageid === null) {
|
|
247
|
+
throw new Error("Missing the required parameter 'messageid' when calling deleteMessage");
|
|
248
|
+
}
|
|
249
|
+
var pathParams = {
|
|
250
|
+
'messageid': messageid
|
|
251
|
+
};
|
|
252
|
+
var queryParams = {};
|
|
253
|
+
var headerParams = {
|
|
254
|
+
'Authorization': opts['authorization'],
|
|
255
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
256
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
257
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
258
|
+
'transactionid': opts['transactionid']
|
|
259
|
+
};
|
|
260
|
+
var formParams = {};
|
|
261
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
262
|
+
var contentTypes = [];
|
|
263
|
+
var accepts = ['application/json'];
|
|
264
|
+
var returnType = null;
|
|
265
|
+
return this.apiClient.callApi('/graph/data/privatemessages/messages/{messageid}/send', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @param {Number} messageid
|
|
270
|
+
* @param {Object} opts Optional parameters
|
|
271
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
272
|
+
* @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
|
|
273
|
+
* @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
|
|
274
|
+
* @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
|
|
275
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
276
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
277
|
+
*/
|
|
278
|
+
}, {
|
|
279
|
+
key: "deleteMessage",
|
|
280
|
+
value: function deleteMessage(messageid, opts) {
|
|
281
|
+
return this.deleteMessageWithHttpInfo(messageid, opts).then(function (response_and_data) {
|
|
282
|
+
return response_and_data.data;
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Delete's the object with the id
|
|
288
|
+
* @param {Number} id The id of the object to delete
|
|
289
|
+
* @param {Object} opts Optional parameters
|
|
290
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
291
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
292
|
+
* @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
|
|
293
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
294
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
295
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
296
|
+
*/
|
|
297
|
+
}, {
|
|
298
|
+
key: "deleteObjectWithHttpInfo",
|
|
299
|
+
value: function deleteObjectWithHttpInfo(id, opts) {
|
|
300
|
+
opts = opts || {};
|
|
301
|
+
var postBody = null;
|
|
302
|
+
// verify the required parameter 'id' is set
|
|
303
|
+
if (id === undefined || id === null) {
|
|
304
|
+
throw new Error("Missing the required parameter 'id' when calling deleteObject");
|
|
305
|
+
}
|
|
306
|
+
var pathParams = {
|
|
307
|
+
'id': id
|
|
308
|
+
};
|
|
309
|
+
var queryParams = {};
|
|
310
|
+
var headerParams = {
|
|
311
|
+
'Authorization': opts['authorization'],
|
|
312
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
313
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
314
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
315
|
+
'transactionid': opts['transactionid']
|
|
316
|
+
};
|
|
317
|
+
var formParams = {};
|
|
318
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
319
|
+
var contentTypes = [];
|
|
320
|
+
var accepts = ['application/json'];
|
|
321
|
+
var returnType = null;
|
|
322
|
+
return this.apiClient.callApi('/graph/data/object/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Delete's the object with the id
|
|
327
|
+
* @param {Number} id The id of the object to delete
|
|
328
|
+
* @param {Object} opts Optional parameters
|
|
329
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
330
|
+
* @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
|
|
331
|
+
* @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
|
|
332
|
+
* @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
|
|
333
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
334
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
335
|
+
*/
|
|
336
|
+
}, {
|
|
337
|
+
key: "deleteObject",
|
|
338
|
+
value: function deleteObject(id, opts) {
|
|
339
|
+
return this.deleteObjectWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
340
|
+
return response_and_data.data;
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Root for the API
|
|
346
|
+
* @param {Object} opts Optional parameters
|
|
347
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
348
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
349
|
+
* @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
|
|
350
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
351
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
352
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
353
|
+
*/
|
|
354
|
+
}, {
|
|
355
|
+
key: "get38WithHttpInfo",
|
|
356
|
+
value: function get38WithHttpInfo(opts) {
|
|
357
|
+
opts = opts || {};
|
|
358
|
+
var postBody = null;
|
|
359
|
+
var pathParams = {};
|
|
360
|
+
var queryParams = {};
|
|
361
|
+
var headerParams = {
|
|
362
|
+
'Authorization': opts['authorization'],
|
|
363
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
364
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
365
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
366
|
+
'transactionid': opts['transactionid']
|
|
367
|
+
};
|
|
368
|
+
var formParams = {};
|
|
369
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
370
|
+
var contentTypes = [];
|
|
371
|
+
var accepts = ['*/*'];
|
|
372
|
+
var returnType = null;
|
|
373
|
+
return this.apiClient.callApi('/graph/data/privatemessages/conversations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Root for the API
|
|
378
|
+
* @param {Object} opts Optional parameters
|
|
379
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
380
|
+
* @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
|
|
381
|
+
* @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
|
|
382
|
+
* @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
|
|
383
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
384
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
385
|
+
*/
|
|
386
|
+
}, {
|
|
387
|
+
key: "get38",
|
|
388
|
+
value: function get38(opts) {
|
|
389
|
+
return this.get38WithHttpInfo(opts).then(function (response_and_data) {
|
|
390
|
+
return response_and_data.data;
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Root for the API
|
|
396
|
+
* @param {Object} opts Optional parameters
|
|
397
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
398
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
399
|
+
* @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
|
|
400
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
401
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
402
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
403
|
+
*/
|
|
404
|
+
}, {
|
|
405
|
+
key: "get39WithHttpInfo",
|
|
406
|
+
value: function get39WithHttpInfo(opts) {
|
|
407
|
+
opts = opts || {};
|
|
408
|
+
var postBody = null;
|
|
409
|
+
var pathParams = {};
|
|
410
|
+
var queryParams = {};
|
|
411
|
+
var headerParams = {
|
|
412
|
+
'Authorization': opts['authorization'],
|
|
413
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
414
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
415
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
416
|
+
'transactionid': opts['transactionid']
|
|
417
|
+
};
|
|
418
|
+
var formParams = {};
|
|
419
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
420
|
+
var contentTypes = [];
|
|
421
|
+
var accepts = ['*/*'];
|
|
422
|
+
var returnType = null;
|
|
423
|
+
return this.apiClient.callApi('/graph/data/privatemessages/messages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Root for the API
|
|
428
|
+
* @param {Object} opts Optional parameters
|
|
429
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
430
|
+
* @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
|
|
431
|
+
* @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
|
|
432
|
+
* @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
|
|
433
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
434
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
435
|
+
*/
|
|
436
|
+
}, {
|
|
437
|
+
key: "get39",
|
|
438
|
+
value: function get39(opts) {
|
|
439
|
+
return this.get39WithHttpInfo(opts).then(function (response_and_data) {
|
|
440
|
+
return response_and_data.data;
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Gets and object by id
|
|
446
|
+
* @param {Number} id
|
|
447
|
+
* @param {Object} opts Optional parameters
|
|
448
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
449
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
450
|
+
* @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
|
|
451
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
452
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
453
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PrivateMessage} and HTTP response
|
|
454
|
+
*/
|
|
455
|
+
}, {
|
|
456
|
+
key: "get40WithHttpInfo",
|
|
457
|
+
value: function get40WithHttpInfo(id, opts) {
|
|
458
|
+
opts = opts || {};
|
|
459
|
+
var postBody = null;
|
|
460
|
+
// verify the required parameter 'id' is set
|
|
461
|
+
if (id === undefined || id === null) {
|
|
462
|
+
throw new Error("Missing the required parameter 'id' when calling get40");
|
|
463
|
+
}
|
|
464
|
+
var pathParams = {
|
|
465
|
+
'id': id
|
|
466
|
+
};
|
|
467
|
+
var queryParams = {};
|
|
468
|
+
var headerParams = {
|
|
469
|
+
'Authorization': opts['authorization'],
|
|
470
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
471
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
472
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
473
|
+
'transactionid': opts['transactionid']
|
|
474
|
+
};
|
|
475
|
+
var formParams = {};
|
|
476
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
477
|
+
var contentTypes = [];
|
|
478
|
+
var accepts = ['application/json'];
|
|
479
|
+
var returnType = _PrivateMessage["default"];
|
|
480
|
+
return this.apiClient.callApi('/graph/data/privatemessages/messages/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Gets and object by id
|
|
485
|
+
* @param {Number} id
|
|
486
|
+
* @param {Object} opts Optional parameters
|
|
487
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
488
|
+
* @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
|
|
489
|
+
* @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
|
|
490
|
+
* @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
|
|
491
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
492
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PrivateMessage}
|
|
493
|
+
*/
|
|
494
|
+
}, {
|
|
495
|
+
key: "get40",
|
|
496
|
+
value: function get40(id, opts) {
|
|
497
|
+
return this.get40WithHttpInfo(id, opts).then(function (response_and_data) {
|
|
498
|
+
return response_and_data.data;
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Get All Conversations
|
|
504
|
+
* Returns all the conversations the user has access to
|
|
505
|
+
* @param {Object} opts Optional parameters
|
|
506
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
507
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
508
|
+
* @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
|
|
509
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
510
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
511
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/PrivateMessageConversation>} and HTTP response
|
|
512
|
+
*/
|
|
513
|
+
}, {
|
|
514
|
+
key: "getAllConversationsWithHttpInfo",
|
|
515
|
+
value: function getAllConversationsWithHttpInfo(opts) {
|
|
516
|
+
opts = opts || {};
|
|
517
|
+
var postBody = null;
|
|
518
|
+
var pathParams = {};
|
|
519
|
+
var queryParams = {};
|
|
520
|
+
var headerParams = {
|
|
521
|
+
'Authorization': opts['authorization'],
|
|
522
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
523
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
524
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
525
|
+
'transactionid': opts['transactionid']
|
|
526
|
+
};
|
|
527
|
+
var formParams = {};
|
|
528
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
529
|
+
var contentTypes = [];
|
|
530
|
+
var accepts = ['application/json'];
|
|
531
|
+
var returnType = [_PrivateMessageConversation["default"]];
|
|
532
|
+
return this.apiClient.callApi('/graph/data/privatemessages/conversations/all', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Get All Conversations
|
|
537
|
+
* Returns all the conversations the user has access to
|
|
538
|
+
* @param {Object} opts Optional parameters
|
|
539
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
540
|
+
* @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
|
|
541
|
+
* @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
|
|
542
|
+
* @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
|
|
543
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
544
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/PrivateMessageConversation>}
|
|
545
|
+
*/
|
|
546
|
+
}, {
|
|
547
|
+
key: "getAllConversations",
|
|
548
|
+
value: function getAllConversations(opts) {
|
|
549
|
+
return this.getAllConversationsWithHttpInfo(opts).then(function (response_and_data) {
|
|
550
|
+
return response_and_data.data;
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Get Child Conversations
|
|
556
|
+
* Returns the child private conversations
|
|
557
|
+
* @param {Number} convoid
|
|
558
|
+
* @param {Object} opts Optional parameters
|
|
559
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
560
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
561
|
+
* @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
|
|
562
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
563
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
564
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/PrivateMessageConversation>} and HTTP response
|
|
565
|
+
*/
|
|
566
|
+
}, {
|
|
567
|
+
key: "getChildConversationsWithHttpInfo",
|
|
568
|
+
value: function getChildConversationsWithHttpInfo(convoid, opts) {
|
|
569
|
+
opts = opts || {};
|
|
570
|
+
var postBody = null;
|
|
571
|
+
// verify the required parameter 'convoid' is set
|
|
572
|
+
if (convoid === undefined || convoid === null) {
|
|
573
|
+
throw new Error("Missing the required parameter 'convoid' when calling getChildConversations");
|
|
574
|
+
}
|
|
575
|
+
var pathParams = {
|
|
576
|
+
'convoid': convoid
|
|
577
|
+
};
|
|
578
|
+
var queryParams = {};
|
|
579
|
+
var headerParams = {
|
|
580
|
+
'Authorization': opts['authorization'],
|
|
581
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
582
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
583
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
584
|
+
'transactionid': opts['transactionid']
|
|
585
|
+
};
|
|
586
|
+
var formParams = {};
|
|
587
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
588
|
+
var contentTypes = [];
|
|
589
|
+
var accepts = ['application/json'];
|
|
590
|
+
var returnType = [_PrivateMessageConversation["default"]];
|
|
591
|
+
return this.apiClient.callApi('/graph/data/privatemessages/conversations/{convoid}/childconversations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Get Child Conversations
|
|
596
|
+
* Returns the child private conversations
|
|
597
|
+
* @param {Number} convoid
|
|
598
|
+
* @param {Object} opts Optional parameters
|
|
599
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
600
|
+
* @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
|
|
601
|
+
* @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
|
|
602
|
+
* @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
|
|
603
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
604
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/PrivateMessageConversation>}
|
|
605
|
+
*/
|
|
606
|
+
}, {
|
|
607
|
+
key: "getChildConversations",
|
|
608
|
+
value: function getChildConversations(convoid, opts) {
|
|
609
|
+
return this.getChildConversationsWithHttpInfo(convoid, opts).then(function (response_and_data) {
|
|
610
|
+
return response_and_data.data;
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Get Conversation by ID
|
|
616
|
+
* Returns the conversation with the given id
|
|
617
|
+
* @param {Number} id
|
|
618
|
+
* @param {Object} opts Optional parameters
|
|
619
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
620
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
621
|
+
* @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
|
|
622
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
623
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
624
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PrivateMessageConversation} and HTTP response
|
|
625
|
+
*/
|
|
626
|
+
}, {
|
|
627
|
+
key: "getConversationByIdWithHttpInfo",
|
|
628
|
+
value: function getConversationByIdWithHttpInfo(id, opts) {
|
|
629
|
+
opts = opts || {};
|
|
630
|
+
var postBody = null;
|
|
631
|
+
// verify the required parameter 'id' is set
|
|
632
|
+
if (id === undefined || id === null) {
|
|
633
|
+
throw new Error("Missing the required parameter 'id' when calling getConversationById");
|
|
634
|
+
}
|
|
635
|
+
var pathParams = {
|
|
636
|
+
'id': id
|
|
637
|
+
};
|
|
638
|
+
var queryParams = {};
|
|
639
|
+
var headerParams = {
|
|
640
|
+
'Authorization': opts['authorization'],
|
|
641
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
642
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
643
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
644
|
+
'transactionid': opts['transactionid']
|
|
645
|
+
};
|
|
646
|
+
var formParams = {};
|
|
647
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
648
|
+
var contentTypes = [];
|
|
649
|
+
var accepts = ['application/json'];
|
|
650
|
+
var returnType = _PrivateMessageConversation["default"];
|
|
651
|
+
return this.apiClient.callApi('/graph/data/privatemessages/conversations/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Get Conversation by ID
|
|
656
|
+
* Returns the conversation with the given id
|
|
657
|
+
* @param {Number} id
|
|
658
|
+
* @param {Object} opts Optional parameters
|
|
659
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
660
|
+
* @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
|
|
661
|
+
* @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
|
|
662
|
+
* @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
|
|
663
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
664
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PrivateMessageConversation}
|
|
665
|
+
*/
|
|
666
|
+
}, {
|
|
667
|
+
key: "getConversationById",
|
|
668
|
+
value: function getConversationById(id, opts) {
|
|
669
|
+
return this.getConversationByIdWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
670
|
+
return response_and_data.data;
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Get Grouped Messages
|
|
676
|
+
* Get messages attached to a conversation with consecutive messages posted by the same user grouped together
|
|
677
|
+
* @param {Number} convoid
|
|
678
|
+
* @param {Object} opts Optional parameters
|
|
679
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
680
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
681
|
+
* @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
|
|
682
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
683
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
684
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/MessageGroup>} and HTTP response
|
|
685
|
+
*/
|
|
686
|
+
}, {
|
|
687
|
+
key: "getConversationParticipantsWithHttpInfo",
|
|
688
|
+
value: function getConversationParticipantsWithHttpInfo(convoid, opts) {
|
|
689
|
+
opts = opts || {};
|
|
690
|
+
var postBody = null;
|
|
691
|
+
// verify the required parameter 'convoid' is set
|
|
692
|
+
if (convoid === undefined || convoid === null) {
|
|
693
|
+
throw new Error("Missing the required parameter 'convoid' when calling getConversationParticipants");
|
|
694
|
+
}
|
|
695
|
+
var pathParams = {
|
|
696
|
+
'convoid': convoid
|
|
697
|
+
};
|
|
698
|
+
var queryParams = {};
|
|
699
|
+
var headerParams = {
|
|
700
|
+
'Authorization': opts['authorization'],
|
|
701
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
702
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
703
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
704
|
+
'transactionid': opts['transactionid']
|
|
705
|
+
};
|
|
706
|
+
var formParams = {};
|
|
707
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
708
|
+
var contentTypes = [];
|
|
709
|
+
var accepts = ['application/json'];
|
|
710
|
+
var returnType = [_MessageGroup["default"]];
|
|
711
|
+
return this.apiClient.callApi('/graph/data/privatemessages/conversations/{convoid}/groupedmessages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Get Grouped Messages
|
|
716
|
+
* Get messages attached to a conversation with consecutive messages posted by the same user grouped together
|
|
717
|
+
* @param {Number} convoid
|
|
718
|
+
* @param {Object} opts Optional parameters
|
|
719
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
720
|
+
* @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
|
|
721
|
+
* @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
|
|
722
|
+
* @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
|
|
723
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
724
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/MessageGroup>}
|
|
725
|
+
*/
|
|
726
|
+
}, {
|
|
727
|
+
key: "getConversationParticipants",
|
|
728
|
+
value: function getConversationParticipants(convoid, opts) {
|
|
729
|
+
return this.getConversationParticipantsWithHttpInfo(convoid, opts).then(function (response_and_data) {
|
|
730
|
+
return response_and_data.data;
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* Get Participants
|
|
736
|
+
* Get messages attached to a conversation
|
|
737
|
+
* @param {Number} convoid
|
|
738
|
+
* @param {Object} opts Optional parameters
|
|
739
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
740
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
741
|
+
* @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
|
|
742
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
743
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
744
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/PrivateMessage>} and HTTP response
|
|
745
|
+
*/
|
|
746
|
+
}, {
|
|
747
|
+
key: "getConversationParticipants1WithHttpInfo",
|
|
748
|
+
value: function getConversationParticipants1WithHttpInfo(convoid, opts) {
|
|
749
|
+
opts = opts || {};
|
|
750
|
+
var postBody = null;
|
|
751
|
+
// verify the required parameter 'convoid' is set
|
|
752
|
+
if (convoid === undefined || convoid === null) {
|
|
753
|
+
throw new Error("Missing the required parameter 'convoid' when calling getConversationParticipants1");
|
|
754
|
+
}
|
|
755
|
+
var pathParams = {
|
|
756
|
+
'convoid': convoid
|
|
757
|
+
};
|
|
758
|
+
var queryParams = {};
|
|
759
|
+
var headerParams = {
|
|
760
|
+
'Authorization': opts['authorization'],
|
|
761
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
762
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
763
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
764
|
+
'transactionid': opts['transactionid']
|
|
765
|
+
};
|
|
766
|
+
var formParams = {};
|
|
767
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
768
|
+
var contentTypes = [];
|
|
769
|
+
var accepts = ['application/json'];
|
|
770
|
+
var returnType = [_PrivateMessage["default"]];
|
|
771
|
+
return this.apiClient.callApi('/graph/data/privatemessages/conversations/{convoid}/messages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Get Participants
|
|
776
|
+
* Get messages attached to a conversation
|
|
777
|
+
* @param {Number} convoid
|
|
778
|
+
* @param {Object} opts Optional parameters
|
|
779
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
780
|
+
* @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
|
|
781
|
+
* @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
|
|
782
|
+
* @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
|
|
783
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
784
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/PrivateMessage>}
|
|
785
|
+
*/
|
|
786
|
+
}, {
|
|
787
|
+
key: "getConversationParticipants1",
|
|
788
|
+
value: function getConversationParticipants1(convoid, opts) {
|
|
789
|
+
return this.getConversationParticipants1WithHttpInfo(convoid, opts).then(function (response_and_data) {
|
|
790
|
+
return response_and_data.data;
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* Get the number of unread messages
|
|
796
|
+
* Returns the number of unread messages
|
|
797
|
+
* @param {Object} opts Optional parameters
|
|
798
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
799
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
800
|
+
* @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
|
|
801
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
802
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
803
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Number} and HTTP response
|
|
804
|
+
*/
|
|
805
|
+
}, {
|
|
806
|
+
key: "getUnreadMessageCountWithHttpInfo",
|
|
807
|
+
value: function getUnreadMessageCountWithHttpInfo(opts) {
|
|
808
|
+
opts = opts || {};
|
|
809
|
+
var postBody = null;
|
|
810
|
+
var pathParams = {};
|
|
811
|
+
var queryParams = {};
|
|
812
|
+
var headerParams = {
|
|
813
|
+
'Authorization': opts['authorization'],
|
|
814
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
815
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
816
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
817
|
+
'transactionid': opts['transactionid']
|
|
818
|
+
};
|
|
819
|
+
var formParams = {};
|
|
820
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
821
|
+
var contentTypes = [];
|
|
822
|
+
var accepts = ['application/json'];
|
|
823
|
+
var returnType = 'Number';
|
|
824
|
+
return this.apiClient.callApi('/graph/data/privatemessages/conversations/newmessagecount', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Get the number of unread messages
|
|
829
|
+
* Returns the number of unread messages
|
|
830
|
+
* @param {Object} opts Optional parameters
|
|
831
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
832
|
+
* @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
|
|
833
|
+
* @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
|
|
834
|
+
* @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
|
|
835
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
836
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Number}
|
|
837
|
+
*/
|
|
838
|
+
}, {
|
|
839
|
+
key: "getUnreadMessageCount",
|
|
840
|
+
value: function getUnreadMessageCount(opts) {
|
|
841
|
+
return this.getUnreadMessageCountWithHttpInfo(opts).then(function (response_and_data) {
|
|
842
|
+
return response_and_data.data;
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* @param {Number} messageid
|
|
848
|
+
* @param {Object} opts Optional parameters
|
|
849
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
850
|
+
* @param {Number} [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} [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} [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} [transactionid] The id of the transaction this operation is being run in
|
|
854
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/PrivateMessage>} and HTTP response
|
|
855
|
+
*/
|
|
856
|
+
}, {
|
|
857
|
+
key: "updateMessageWithHttpInfo",
|
|
858
|
+
value: function updateMessageWithHttpInfo(messageid, opts) {
|
|
859
|
+
opts = opts || {};
|
|
860
|
+
var postBody = null;
|
|
861
|
+
// verify the required parameter 'messageid' is set
|
|
862
|
+
if (messageid === undefined || messageid === null) {
|
|
863
|
+
throw new Error("Missing the required parameter 'messageid' when calling updateMessage");
|
|
864
|
+
}
|
|
865
|
+
var pathParams = {
|
|
866
|
+
'messageid': messageid
|
|
867
|
+
};
|
|
868
|
+
var queryParams = {};
|
|
869
|
+
var headerParams = {
|
|
870
|
+
'Authorization': opts['authorization'],
|
|
871
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
872
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
873
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
874
|
+
'transactionid': opts['transactionid']
|
|
875
|
+
};
|
|
876
|
+
var formParams = {};
|
|
877
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
878
|
+
var contentTypes = [];
|
|
879
|
+
var accepts = ['application/json'];
|
|
880
|
+
var returnType = [_PrivateMessage["default"]];
|
|
881
|
+
return this.apiClient.callApi('/graph/data/privatemessages/messages/{messageid}/send', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* @param {Number} messageid
|
|
886
|
+
* @param {Object} opts Optional parameters
|
|
887
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
888
|
+
* @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
|
|
889
|
+
* @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
|
|
890
|
+
* @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
|
|
891
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
892
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/PrivateMessage>}
|
|
893
|
+
*/
|
|
894
|
+
}, {
|
|
895
|
+
key: "updateMessage",
|
|
896
|
+
value: function updateMessage(messageid, opts) {
|
|
897
|
+
return this.updateMessageWithHttpInfo(messageid, opts).then(function (response_and_data) {
|
|
898
|
+
return response_and_data.data;
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* @param {Number} messageid
|
|
904
|
+
* @param {module:model/PrivateMessage} privateMessage Private Message Object
|
|
905
|
+
* @param {Object} opts Optional parameters
|
|
906
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
907
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
908
|
+
* @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
|
|
909
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
910
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
911
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/PrivateMessage>} and HTTP response
|
|
912
|
+
*/
|
|
913
|
+
}, {
|
|
914
|
+
key: "updateMessage1WithHttpInfo",
|
|
915
|
+
value: function updateMessage1WithHttpInfo(messageid, privateMessage, opts) {
|
|
916
|
+
opts = opts || {};
|
|
917
|
+
var postBody = privateMessage;
|
|
918
|
+
// verify the required parameter 'messageid' is set
|
|
919
|
+
if (messageid === undefined || messageid === null) {
|
|
920
|
+
throw new Error("Missing the required parameter 'messageid' when calling updateMessage1");
|
|
921
|
+
}
|
|
922
|
+
// verify the required parameter 'privateMessage' is set
|
|
923
|
+
if (privateMessage === undefined || privateMessage === null) {
|
|
924
|
+
throw new Error("Missing the required parameter 'privateMessage' when calling updateMessage1");
|
|
925
|
+
}
|
|
926
|
+
var pathParams = {
|
|
927
|
+
'messageid': messageid
|
|
928
|
+
};
|
|
929
|
+
var queryParams = {};
|
|
930
|
+
var headerParams = {
|
|
931
|
+
'Authorization': opts['authorization'],
|
|
932
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
933
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
934
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
935
|
+
'transactionid': opts['transactionid']
|
|
936
|
+
};
|
|
937
|
+
var formParams = {};
|
|
938
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
939
|
+
var contentTypes = [];
|
|
940
|
+
var accepts = ['application/json'];
|
|
941
|
+
var returnType = [_PrivateMessage["default"]];
|
|
942
|
+
return this.apiClient.callApi('/graph/data/privatemessages/messages/{messageid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* @param {Number} messageid
|
|
947
|
+
* @param {module:model/PrivateMessage} privateMessage Private Message Object
|
|
948
|
+
* @param {Object} opts Optional parameters
|
|
949
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
950
|
+
* @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
|
|
951
|
+
* @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
|
|
952
|
+
* @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
|
|
953
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
954
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/PrivateMessage>}
|
|
955
|
+
*/
|
|
956
|
+
}, {
|
|
957
|
+
key: "updateMessage1",
|
|
958
|
+
value: function updateMessage1(messageid, privateMessage, opts) {
|
|
959
|
+
return this.updateMessage1WithHttpInfo(messageid, privateMessage, opts).then(function (response_and_data) {
|
|
960
|
+
return response_and_data.data;
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
}]);
|
|
964
|
+
return PrivateMessagesApi;
|
|
965
|
+
}();
|