@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,785 @@
|
|
|
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 _GraphAction = _interopRequireDefault(require("../model/GraphAction"));
|
|
9
|
+
var _PurgeDataDefaultResponseValue = _interopRequireDefault(require("../model/PurgeDataDefaultResponseValue"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
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); }
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
16
|
+
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); } /**
|
|
17
|
+
* gobodo-api
|
|
18
|
+
* REST Interface for Gobodo API
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: 0.1.34
|
|
21
|
+
* Contact: info@gobodo.io
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Likes service.
|
|
30
|
+
* @module api/LikesApi
|
|
31
|
+
* @version 0.1.34
|
|
32
|
+
*/
|
|
33
|
+
var LikesApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new LikesApi.
|
|
36
|
+
* @alias module:api/LikesApi
|
|
37
|
+
* @class
|
|
38
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
39
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
40
|
+
*/
|
|
41
|
+
function LikesApi(apiClient) {
|
|
42
|
+
_classCallCheck(this, LikesApi);
|
|
43
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Delete Action
|
|
48
|
+
* Delete an individual action
|
|
49
|
+
* @param {Number} id
|
|
50
|
+
* @param {Object} opts Optional parameters
|
|
51
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
52
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
53
|
+
* @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
|
|
54
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
55
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
56
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
57
|
+
*/
|
|
58
|
+
_createClass(LikesApi, [{
|
|
59
|
+
key: "deleteAction1WithHttpInfo",
|
|
60
|
+
value: function deleteAction1WithHttpInfo(id, opts) {
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
var postBody = null;
|
|
63
|
+
// verify the required parameter 'id' is set
|
|
64
|
+
if (id === undefined || id === null) {
|
|
65
|
+
throw new Error("Missing the required parameter 'id' when calling deleteAction1");
|
|
66
|
+
}
|
|
67
|
+
var pathParams = {
|
|
68
|
+
'id': id
|
|
69
|
+
};
|
|
70
|
+
var queryParams = {};
|
|
71
|
+
var headerParams = {
|
|
72
|
+
'Authorization': opts['authorization'],
|
|
73
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
74
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
75
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
76
|
+
'transactionid': opts['transactionid']
|
|
77
|
+
};
|
|
78
|
+
var formParams = {};
|
|
79
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
80
|
+
var contentTypes = [];
|
|
81
|
+
var accepts = ['*/*'];
|
|
82
|
+
var returnType = null;
|
|
83
|
+
return this.apiClient.callApi('/graph/data/likes/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Delete Action
|
|
88
|
+
* Delete an individual action
|
|
89
|
+
* @param {Number} id
|
|
90
|
+
* @param {Object} opts Optional parameters
|
|
91
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
92
|
+
* @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
|
|
93
|
+
* @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
|
|
94
|
+
* @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
|
|
95
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
96
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
97
|
+
*/
|
|
98
|
+
}, {
|
|
99
|
+
key: "deleteAction1",
|
|
100
|
+
value: function deleteAction1(id, opts) {
|
|
101
|
+
return this.deleteAction1WithHttpInfo(id, opts).then(function (response_and_data) {
|
|
102
|
+
return response_and_data.data;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Delete Like
|
|
108
|
+
* Delete an individual like
|
|
109
|
+
* @param {Number} objectid
|
|
110
|
+
* @param {Object} opts Optional parameters
|
|
111
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
112
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
113
|
+
* @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
|
|
114
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
115
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
116
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
117
|
+
*/
|
|
118
|
+
}, {
|
|
119
|
+
key: "deleteLikeWithHttpInfo",
|
|
120
|
+
value: function deleteLikeWithHttpInfo(objectid, opts) {
|
|
121
|
+
opts = opts || {};
|
|
122
|
+
var postBody = null;
|
|
123
|
+
// verify the required parameter 'objectid' is set
|
|
124
|
+
if (objectid === undefined || objectid === null) {
|
|
125
|
+
throw new Error("Missing the required parameter 'objectid' when calling deleteLike");
|
|
126
|
+
}
|
|
127
|
+
var pathParams = {
|
|
128
|
+
'objectid': objectid
|
|
129
|
+
};
|
|
130
|
+
var queryParams = {};
|
|
131
|
+
var headerParams = {
|
|
132
|
+
'Authorization': opts['authorization'],
|
|
133
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
134
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
135
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
136
|
+
'transactionid': opts['transactionid']
|
|
137
|
+
};
|
|
138
|
+
var formParams = {};
|
|
139
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
140
|
+
var contentTypes = [];
|
|
141
|
+
var accepts = ['*/*'];
|
|
142
|
+
var returnType = null;
|
|
143
|
+
return this.apiClient.callApi('/graph/data/likes/{objectid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Delete Like
|
|
148
|
+
* Delete an individual like
|
|
149
|
+
* @param {Number} objectid
|
|
150
|
+
* @param {Object} opts Optional parameters
|
|
151
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
152
|
+
* @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
|
|
153
|
+
* @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
|
|
154
|
+
* @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
|
|
155
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
156
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
157
|
+
*/
|
|
158
|
+
}, {
|
|
159
|
+
key: "deleteLike",
|
|
160
|
+
value: function deleteLike(objectid, opts) {
|
|
161
|
+
return this.deleteLikeWithHttpInfo(objectid, opts).then(function (response_and_data) {
|
|
162
|
+
return response_and_data.data;
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Dislike an Object
|
|
168
|
+
* Dislike an object
|
|
169
|
+
* @param {Number} objectid
|
|
170
|
+
* @param {Object} opts Optional parameters
|
|
171
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
172
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
173
|
+
* @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
|
|
174
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
175
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
176
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
177
|
+
*/
|
|
178
|
+
}, {
|
|
179
|
+
key: "dislikeWithHttpInfo",
|
|
180
|
+
value: function dislikeWithHttpInfo(objectid, opts) {
|
|
181
|
+
opts = opts || {};
|
|
182
|
+
var postBody = null;
|
|
183
|
+
// verify the required parameter 'objectid' is set
|
|
184
|
+
if (objectid === undefined || objectid === null) {
|
|
185
|
+
throw new Error("Missing the required parameter 'objectid' when calling dislike");
|
|
186
|
+
}
|
|
187
|
+
var pathParams = {
|
|
188
|
+
'objectid': objectid
|
|
189
|
+
};
|
|
190
|
+
var queryParams = {};
|
|
191
|
+
var headerParams = {
|
|
192
|
+
'Authorization': opts['authorization'],
|
|
193
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
194
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
195
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
196
|
+
'transactionid': opts['transactionid']
|
|
197
|
+
};
|
|
198
|
+
var formParams = {};
|
|
199
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
200
|
+
var contentTypes = [];
|
|
201
|
+
var accepts = ['*/*'];
|
|
202
|
+
var returnType = null;
|
|
203
|
+
return this.apiClient.callApi('/graph/data/likes/{objectid}/dislike', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Dislike an Object
|
|
208
|
+
* Dislike an object
|
|
209
|
+
* @param {Number} objectid
|
|
210
|
+
* @param {Object} opts Optional parameters
|
|
211
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
212
|
+
* @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
|
|
213
|
+
* @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
|
|
214
|
+
* @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
|
|
215
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
216
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
217
|
+
*/
|
|
218
|
+
}, {
|
|
219
|
+
key: "dislike",
|
|
220
|
+
value: function dislike(objectid, opts) {
|
|
221
|
+
return this.dislikeWithHttpInfo(objectid, opts).then(function (response_and_data) {
|
|
222
|
+
return response_and_data.data;
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Root for the API
|
|
228
|
+
* @param {Object} opts Optional parameters
|
|
229
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
230
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
231
|
+
* @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
|
|
232
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
233
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
234
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
235
|
+
*/
|
|
236
|
+
}, {
|
|
237
|
+
key: "get37WithHttpInfo",
|
|
238
|
+
value: function get37WithHttpInfo(opts) {
|
|
239
|
+
opts = opts || {};
|
|
240
|
+
var postBody = null;
|
|
241
|
+
var pathParams = {};
|
|
242
|
+
var queryParams = {};
|
|
243
|
+
var headerParams = {
|
|
244
|
+
'Authorization': opts['authorization'],
|
|
245
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
246
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
247
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
248
|
+
'transactionid': opts['transactionid']
|
|
249
|
+
};
|
|
250
|
+
var formParams = {};
|
|
251
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
252
|
+
var contentTypes = [];
|
|
253
|
+
var accepts = ['*/*'];
|
|
254
|
+
var returnType = null;
|
|
255
|
+
return this.apiClient.callApi('/graph/data/likes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Root for the API
|
|
260
|
+
* @param {Object} opts Optional parameters
|
|
261
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
262
|
+
* @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
|
|
263
|
+
* @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
|
|
264
|
+
* @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
|
|
265
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
266
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
267
|
+
*/
|
|
268
|
+
}, {
|
|
269
|
+
key: "get37",
|
|
270
|
+
value: function get37(opts) {
|
|
271
|
+
return this.get37WithHttpInfo(opts).then(function (response_and_data) {
|
|
272
|
+
return response_and_data.data;
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Gets the action by id
|
|
278
|
+
* @param {Number} id
|
|
279
|
+
* @param {Object} opts Optional parameters
|
|
280
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
281
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
282
|
+
* @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
|
|
283
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
284
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
285
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GraphAction} and HTTP response
|
|
286
|
+
*/
|
|
287
|
+
}, {
|
|
288
|
+
key: "getActionById1WithHttpInfo",
|
|
289
|
+
value: function getActionById1WithHttpInfo(id, opts) {
|
|
290
|
+
opts = opts || {};
|
|
291
|
+
var postBody = null;
|
|
292
|
+
// verify the required parameter 'id' is set
|
|
293
|
+
if (id === undefined || id === null) {
|
|
294
|
+
throw new Error("Missing the required parameter 'id' when calling getActionById1");
|
|
295
|
+
}
|
|
296
|
+
var pathParams = {
|
|
297
|
+
'id': id
|
|
298
|
+
};
|
|
299
|
+
var queryParams = {};
|
|
300
|
+
var headerParams = {
|
|
301
|
+
'Authorization': opts['authorization'],
|
|
302
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
303
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
304
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
305
|
+
'transactionid': opts['transactionid']
|
|
306
|
+
};
|
|
307
|
+
var formParams = {};
|
|
308
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
309
|
+
var contentTypes = [];
|
|
310
|
+
var accepts = ['application/json'];
|
|
311
|
+
var returnType = _GraphAction["default"];
|
|
312
|
+
return this.apiClient.callApi('/graph/data/likes/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Gets the action by id
|
|
317
|
+
* @param {Number} id
|
|
318
|
+
* @param {Object} opts Optional parameters
|
|
319
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
320
|
+
* @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
|
|
321
|
+
* @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
|
|
322
|
+
* @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
|
|
323
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
324
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphAction}
|
|
325
|
+
*/
|
|
326
|
+
}, {
|
|
327
|
+
key: "getActionById1",
|
|
328
|
+
value: function getActionById1(id, opts) {
|
|
329
|
+
return this.getActionById1WithHttpInfo(id, opts).then(function (response_and_data) {
|
|
330
|
+
return response_and_data.data;
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Get Properties
|
|
336
|
+
* Get all properties attached to an action
|
|
337
|
+
* @param {Number} id
|
|
338
|
+
* @param {Object} opts Optional parameters
|
|
339
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
340
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
341
|
+
* @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
|
|
342
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
343
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
344
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} and HTTP response
|
|
345
|
+
*/
|
|
346
|
+
}, {
|
|
347
|
+
key: "getActionProperties1WithHttpInfo",
|
|
348
|
+
value: function getActionProperties1WithHttpInfo(id, opts) {
|
|
349
|
+
opts = opts || {};
|
|
350
|
+
var postBody = null;
|
|
351
|
+
// verify the required parameter 'id' is set
|
|
352
|
+
if (id === undefined || id === null) {
|
|
353
|
+
throw new Error("Missing the required parameter 'id' when calling getActionProperties1");
|
|
354
|
+
}
|
|
355
|
+
var pathParams = {
|
|
356
|
+
'id': id
|
|
357
|
+
};
|
|
358
|
+
var queryParams = {};
|
|
359
|
+
var headerParams = {
|
|
360
|
+
'Authorization': opts['authorization'],
|
|
361
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
362
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
363
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
364
|
+
'transactionid': opts['transactionid']
|
|
365
|
+
};
|
|
366
|
+
var formParams = {};
|
|
367
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
368
|
+
var contentTypes = [];
|
|
369
|
+
var accepts = ['application/json'];
|
|
370
|
+
var returnType = {
|
|
371
|
+
'String': _PurgeDataDefaultResponseValue["default"]
|
|
372
|
+
};
|
|
373
|
+
return this.apiClient.callApi('/graph/data/likes/{id}/properties', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Get Properties
|
|
378
|
+
* Get all properties attached to an action
|
|
379
|
+
* @param {Number} id
|
|
380
|
+
* @param {Object} opts Optional parameters
|
|
381
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
382
|
+
* @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
|
|
383
|
+
* @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
|
|
384
|
+
* @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
|
|
385
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
386
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>}
|
|
387
|
+
*/
|
|
388
|
+
}, {
|
|
389
|
+
key: "getActionProperties1",
|
|
390
|
+
value: function getActionProperties1(id, opts) {
|
|
391
|
+
return this.getActionProperties1WithHttpInfo(id, opts).then(function (response_and_data) {
|
|
392
|
+
return response_and_data.data;
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Get Property
|
|
398
|
+
* Get a single property attached to an action
|
|
399
|
+
* @param {Number} id
|
|
400
|
+
* @param {String} prop
|
|
401
|
+
* @param {Object} opts Optional parameters
|
|
402
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
403
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
404
|
+
* @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
|
|
405
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
406
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
407
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} and HTTP response
|
|
408
|
+
*/
|
|
409
|
+
}, {
|
|
410
|
+
key: "getActionProperty1WithHttpInfo",
|
|
411
|
+
value: function getActionProperty1WithHttpInfo(id, prop, opts) {
|
|
412
|
+
opts = opts || {};
|
|
413
|
+
var postBody = null;
|
|
414
|
+
// verify the required parameter 'id' is set
|
|
415
|
+
if (id === undefined || id === null) {
|
|
416
|
+
throw new Error("Missing the required parameter 'id' when calling getActionProperty1");
|
|
417
|
+
}
|
|
418
|
+
// verify the required parameter 'prop' is set
|
|
419
|
+
if (prop === undefined || prop === null) {
|
|
420
|
+
throw new Error("Missing the required parameter 'prop' when calling getActionProperty1");
|
|
421
|
+
}
|
|
422
|
+
var pathParams = {
|
|
423
|
+
'id': id,
|
|
424
|
+
'prop': prop
|
|
425
|
+
};
|
|
426
|
+
var queryParams = {};
|
|
427
|
+
var headerParams = {
|
|
428
|
+
'Authorization': opts['authorization'],
|
|
429
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
430
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
431
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
432
|
+
'transactionid': opts['transactionid']
|
|
433
|
+
};
|
|
434
|
+
var formParams = {};
|
|
435
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
436
|
+
var contentTypes = [];
|
|
437
|
+
var accepts = ['application/json'];
|
|
438
|
+
var returnType = {
|
|
439
|
+
'String': _PurgeDataDefaultResponseValue["default"]
|
|
440
|
+
};
|
|
441
|
+
return this.apiClient.callApi('/graph/data/likes/{id}/properties/{prop}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Get Property
|
|
446
|
+
* Get a single property attached to an action
|
|
447
|
+
* @param {Number} id
|
|
448
|
+
* @param {String} prop
|
|
449
|
+
* @param {Object} opts Optional parameters
|
|
450
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
451
|
+
* @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
|
|
452
|
+
* @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
|
|
453
|
+
* @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
|
|
454
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
455
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>}
|
|
456
|
+
*/
|
|
457
|
+
}, {
|
|
458
|
+
key: "getActionProperty1",
|
|
459
|
+
value: function getActionProperty1(id, prop, opts) {
|
|
460
|
+
return this.getActionProperty1WithHttpInfo(id, prop, opts).then(function (response_and_data) {
|
|
461
|
+
return response_and_data.data;
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Check if the user has disliked the object
|
|
467
|
+
* Checks if the user has disliked the object
|
|
468
|
+
* @param {Number} objectid
|
|
469
|
+
* @param {Object} opts Optional parameters
|
|
470
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
471
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
472
|
+
* @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
|
|
473
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
474
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
475
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Boolean} and HTTP response
|
|
476
|
+
*/
|
|
477
|
+
}, {
|
|
478
|
+
key: "isDislikedWithHttpInfo",
|
|
479
|
+
value: function isDislikedWithHttpInfo(objectid, opts) {
|
|
480
|
+
opts = opts || {};
|
|
481
|
+
var postBody = null;
|
|
482
|
+
// verify the required parameter 'objectid' is set
|
|
483
|
+
if (objectid === undefined || objectid === null) {
|
|
484
|
+
throw new Error("Missing the required parameter 'objectid' when calling isDisliked");
|
|
485
|
+
}
|
|
486
|
+
var pathParams = {
|
|
487
|
+
'objectid': objectid
|
|
488
|
+
};
|
|
489
|
+
var queryParams = {};
|
|
490
|
+
var headerParams = {
|
|
491
|
+
'Authorization': opts['authorization'],
|
|
492
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
493
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
494
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
495
|
+
'transactionid': opts['transactionid']
|
|
496
|
+
};
|
|
497
|
+
var formParams = {};
|
|
498
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
499
|
+
var contentTypes = [];
|
|
500
|
+
var accepts = ['text/plain'];
|
|
501
|
+
var returnType = 'Boolean';
|
|
502
|
+
return this.apiClient.callApi('/graph/data/likes/{objectid}/isdisliked', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Check if the user has disliked the object
|
|
507
|
+
* Checks if the user has disliked the object
|
|
508
|
+
* @param {Number} objectid
|
|
509
|
+
* @param {Object} opts Optional parameters
|
|
510
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
511
|
+
* @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
|
|
512
|
+
* @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
|
|
513
|
+
* @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
|
|
514
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
515
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Boolean}
|
|
516
|
+
*/
|
|
517
|
+
}, {
|
|
518
|
+
key: "isDisliked",
|
|
519
|
+
value: function isDisliked(objectid, opts) {
|
|
520
|
+
return this.isDislikedWithHttpInfo(objectid, opts).then(function (response_and_data) {
|
|
521
|
+
return response_and_data.data;
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Check if the user has liked the object
|
|
527
|
+
* Checks if the user has liked the object
|
|
528
|
+
* @param {Number} objectid
|
|
529
|
+
* @param {Object} opts Optional parameters
|
|
530
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
531
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
532
|
+
* @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
|
|
533
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
534
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
535
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Boolean} and HTTP response
|
|
536
|
+
*/
|
|
537
|
+
}, {
|
|
538
|
+
key: "isLikedWithHttpInfo",
|
|
539
|
+
value: function isLikedWithHttpInfo(objectid, opts) {
|
|
540
|
+
opts = opts || {};
|
|
541
|
+
var postBody = null;
|
|
542
|
+
// verify the required parameter 'objectid' is set
|
|
543
|
+
if (objectid === undefined || objectid === null) {
|
|
544
|
+
throw new Error("Missing the required parameter 'objectid' when calling isLiked");
|
|
545
|
+
}
|
|
546
|
+
var pathParams = {
|
|
547
|
+
'objectid': objectid
|
|
548
|
+
};
|
|
549
|
+
var queryParams = {};
|
|
550
|
+
var headerParams = {
|
|
551
|
+
'Authorization': opts['authorization'],
|
|
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 = ['text/plain'];
|
|
561
|
+
var returnType = 'Boolean';
|
|
562
|
+
return this.apiClient.callApi('/graph/data/likes/{objectid}/isliked', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Check if the user has liked the object
|
|
567
|
+
* Checks if the user has liked the object
|
|
568
|
+
* @param {Number} objectid
|
|
569
|
+
* @param {Object} opts Optional parameters
|
|
570
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
571
|
+
* @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
|
|
572
|
+
* @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
|
|
573
|
+
* @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
|
|
574
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
575
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Boolean}
|
|
576
|
+
*/
|
|
577
|
+
}, {
|
|
578
|
+
key: "isLiked",
|
|
579
|
+
value: function isLiked(objectid, opts) {
|
|
580
|
+
return this.isLikedWithHttpInfo(objectid, opts).then(function (response_and_data) {
|
|
581
|
+
return response_and_data.data;
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Like an Object
|
|
587
|
+
* Likes an object
|
|
588
|
+
* @param {Number} objectid
|
|
589
|
+
* @param {Object} opts Optional parameters
|
|
590
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
591
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
592
|
+
* @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
|
|
593
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
594
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
595
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
596
|
+
*/
|
|
597
|
+
}, {
|
|
598
|
+
key: "likeWithHttpInfo",
|
|
599
|
+
value: function likeWithHttpInfo(objectid, opts) {
|
|
600
|
+
opts = opts || {};
|
|
601
|
+
var postBody = null;
|
|
602
|
+
// verify the required parameter 'objectid' is set
|
|
603
|
+
if (objectid === undefined || objectid === null) {
|
|
604
|
+
throw new Error("Missing the required parameter 'objectid' when calling like");
|
|
605
|
+
}
|
|
606
|
+
var pathParams = {
|
|
607
|
+
'objectid': objectid
|
|
608
|
+
};
|
|
609
|
+
var queryParams = {};
|
|
610
|
+
var headerParams = {
|
|
611
|
+
'Authorization': opts['authorization'],
|
|
612
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
613
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
614
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
615
|
+
'transactionid': opts['transactionid']
|
|
616
|
+
};
|
|
617
|
+
var formParams = {};
|
|
618
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
619
|
+
var contentTypes = [];
|
|
620
|
+
var accepts = ['*/*'];
|
|
621
|
+
var returnType = null;
|
|
622
|
+
return this.apiClient.callApi('/graph/data/likes/{objectid}/like', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Like an Object
|
|
627
|
+
* Likes an object
|
|
628
|
+
* @param {Number} objectid
|
|
629
|
+
* @param {Object} opts Optional parameters
|
|
630
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
631
|
+
* @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
|
|
632
|
+
* @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
|
|
633
|
+
* @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
|
|
634
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
635
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
636
|
+
*/
|
|
637
|
+
}, {
|
|
638
|
+
key: "like",
|
|
639
|
+
value: function like(objectid, opts) {
|
|
640
|
+
return this.likeWithHttpInfo(objectid, opts).then(function (response_and_data) {
|
|
641
|
+
return response_and_data.data;
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Set Multiple Properties
|
|
647
|
+
* Set multiple properties attaced to an object / record
|
|
648
|
+
* @param {Number} id
|
|
649
|
+
* @param {Object.<String, Object>} body The key/value of the property map with the properties to update
|
|
650
|
+
* @param {Object} opts Optional parameters
|
|
651
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
652
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
653
|
+
* @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
|
|
654
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
655
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
656
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
657
|
+
*/
|
|
658
|
+
}, {
|
|
659
|
+
key: "setActionProperties1WithHttpInfo",
|
|
660
|
+
value: function setActionProperties1WithHttpInfo(id, body, opts) {
|
|
661
|
+
opts = opts || {};
|
|
662
|
+
var postBody = body;
|
|
663
|
+
// verify the required parameter 'id' is set
|
|
664
|
+
if (id === undefined || id === null) {
|
|
665
|
+
throw new Error("Missing the required parameter 'id' when calling setActionProperties1");
|
|
666
|
+
}
|
|
667
|
+
// verify the required parameter 'body' is set
|
|
668
|
+
if (body === undefined || body === null) {
|
|
669
|
+
throw new Error("Missing the required parameter 'body' when calling setActionProperties1");
|
|
670
|
+
}
|
|
671
|
+
var pathParams = {
|
|
672
|
+
'id': id
|
|
673
|
+
};
|
|
674
|
+
var queryParams = {};
|
|
675
|
+
var headerParams = {
|
|
676
|
+
'Authorization': opts['authorization'],
|
|
677
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
678
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
679
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
680
|
+
'transactionid': opts['transactionid']
|
|
681
|
+
};
|
|
682
|
+
var formParams = {};
|
|
683
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
684
|
+
var contentTypes = ['application/json'];
|
|
685
|
+
var accepts = ['*/*'];
|
|
686
|
+
var returnType = null;
|
|
687
|
+
return this.apiClient.callApi('/graph/data/likes/{id}/properties', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Set Multiple Properties
|
|
692
|
+
* Set multiple properties attaced to an object / record
|
|
693
|
+
* @param {Number} id
|
|
694
|
+
* @param {Object.<String, Object>} body The key/value of the property map with the properties to update
|
|
695
|
+
* @param {Object} opts Optional parameters
|
|
696
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
697
|
+
* @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
|
|
698
|
+
* @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
|
|
699
|
+
* @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
|
|
700
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
701
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
702
|
+
*/
|
|
703
|
+
}, {
|
|
704
|
+
key: "setActionProperties1",
|
|
705
|
+
value: function setActionProperties1(id, body, opts) {
|
|
706
|
+
return this.setActionProperties1WithHttpInfo(id, body, opts).then(function (response_and_data) {
|
|
707
|
+
return response_and_data.data;
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Update Property
|
|
713
|
+
* Update a specific property
|
|
714
|
+
* @param {Number} id
|
|
715
|
+
* @param {String} prop
|
|
716
|
+
* @param {String} body The value of the property
|
|
717
|
+
* @param {Object} opts Optional parameters
|
|
718
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
719
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
720
|
+
* @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
|
|
721
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
722
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
723
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
724
|
+
*/
|
|
725
|
+
}, {
|
|
726
|
+
key: "setActionProperty1WithHttpInfo",
|
|
727
|
+
value: function setActionProperty1WithHttpInfo(id, prop, body, opts) {
|
|
728
|
+
opts = opts || {};
|
|
729
|
+
var postBody = body;
|
|
730
|
+
// verify the required parameter 'id' is set
|
|
731
|
+
if (id === undefined || id === null) {
|
|
732
|
+
throw new Error("Missing the required parameter 'id' when calling setActionProperty1");
|
|
733
|
+
}
|
|
734
|
+
// verify the required parameter 'prop' is set
|
|
735
|
+
if (prop === undefined || prop === null) {
|
|
736
|
+
throw new Error("Missing the required parameter 'prop' when calling setActionProperty1");
|
|
737
|
+
}
|
|
738
|
+
// verify the required parameter 'body' is set
|
|
739
|
+
if (body === undefined || body === null) {
|
|
740
|
+
throw new Error("Missing the required parameter 'body' when calling setActionProperty1");
|
|
741
|
+
}
|
|
742
|
+
var pathParams = {
|
|
743
|
+
'id': id,
|
|
744
|
+
'prop': prop
|
|
745
|
+
};
|
|
746
|
+
var queryParams = {};
|
|
747
|
+
var headerParams = {
|
|
748
|
+
'Authorization': opts['authorization'],
|
|
749
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
750
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
751
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
752
|
+
'transactionid': opts['transactionid']
|
|
753
|
+
};
|
|
754
|
+
var formParams = {};
|
|
755
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
756
|
+
var contentTypes = [];
|
|
757
|
+
var accepts = ['*/*'];
|
|
758
|
+
var returnType = null;
|
|
759
|
+
return this.apiClient.callApi('/graph/data/likes/{id}/properties/{prop}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* Update Property
|
|
764
|
+
* Update a specific property
|
|
765
|
+
* @param {Number} id
|
|
766
|
+
* @param {String} prop
|
|
767
|
+
* @param {String} body The value of the property
|
|
768
|
+
* @param {Object} opts Optional parameters
|
|
769
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
770
|
+
* @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
|
|
771
|
+
* @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
|
|
772
|
+
* @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
|
|
773
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
774
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
775
|
+
*/
|
|
776
|
+
}, {
|
|
777
|
+
key: "setActionProperty1",
|
|
778
|
+
value: function setActionProperty1(id, prop, body, opts) {
|
|
779
|
+
return this.setActionProperty1WithHttpInfo(id, prop, body, opts).then(function (response_and_data) {
|
|
780
|
+
return response_and_data.data;
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
}]);
|
|
784
|
+
return LikesApi;
|
|
785
|
+
}();
|