@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.
Files changed (188) hide show
  1. package/README.md +794 -0
  2. package/dist/ApiClient.js +720 -0
  3. package/dist/api/ActionTypesApi.js +113 -0
  4. package/dist/api/AdCampaignsApi.js +500 -0
  5. package/dist/api/AdManagementApi.js +722 -0
  6. package/dist/api/AdminDataManagementApi.js +111 -0
  7. package/dist/api/AdsApi.js +384 -0
  8. package/dist/api/AttachmentsApi.js +465 -0
  9. package/dist/api/AuthenticationApi.js +418 -0
  10. package/dist/api/CategoriesApi.js +451 -0
  11. package/dist/api/CommentsApi.js +520 -0
  12. package/dist/api/ContentManagementApi.js +1491 -0
  13. package/dist/api/ConversationsApi.js +559 -0
  14. package/dist/api/DataSheetImportsApi.js +1066 -0
  15. package/dist/api/DefaultApi.js +696 -0
  16. package/dist/api/DocumentsApi.js +807 -0
  17. package/dist/api/EntryPartsApi.js +847 -0
  18. package/dist/api/FacebookApi.js +88 -0
  19. package/dist/api/FieldsApi.js +243 -0
  20. package/dist/api/FilesApi.js +116 -0
  21. package/dist/api/FormsApi.js +1136 -0
  22. package/dist/api/FunctionsApi.js +111 -0
  23. package/dist/api/GeocodeApi.js +340 -0
  24. package/dist/api/GoogleApi.js +88 -0
  25. package/dist/api/GraphActionsApi.js +674 -0
  26. package/dist/api/GraphObjectTypesApi.js +527 -0
  27. package/dist/api/GraphObjectsApi.js +4026 -0
  28. package/dist/api/GraphRelationshipTypesApi.js +1055 -0
  29. package/dist/api/GraphRelationshipsApi.js +1921 -0
  30. package/dist/api/GraphSchemasApi.js +459 -0
  31. package/dist/api/GraphTraversalApi.js +415 -0
  32. package/dist/api/GraphsApi.js +716 -0
  33. package/dist/api/GroupsApi.js +731 -0
  34. package/dist/api/IAMApi.js +268 -0
  35. package/dist/api/ImagesApi.js +535 -0
  36. package/dist/api/InvitesApi.js +339 -0
  37. package/dist/api/LikesApi.js +785 -0
  38. package/dist/api/LinkedINApi.js +88 -0
  39. package/dist/api/LiveMeetingsApi.js +175 -0
  40. package/dist/api/MeetingEventsApi.js +358 -0
  41. package/dist/api/PagesApi.js +605 -0
  42. package/dist/api/PostsApi.js +330 -0
  43. package/dist/api/PrivateMessagesApi.js +965 -0
  44. package/dist/api/PublicationsApi.js +103 -0
  45. package/dist/api/ScreensApi.js +224 -0
  46. package/dist/api/SocialIntegrationApi.js +214 -0
  47. package/dist/api/StripeAccountsApi.js +2309 -0
  48. package/dist/api/TagsApi.js +111 -0
  49. package/dist/api/TemplatesApi.js +224 -0
  50. package/dist/api/ThemeMappingsApi.js +219 -0
  51. package/dist/api/TransactionsApi.js +161 -0
  52. package/dist/api/TwitterApi.js +88 -0
  53. package/dist/api/UserTagsApi.js +592 -0
  54. package/dist/api/UsersApi.js +591 -0
  55. package/dist/api/UtilsApi.js +80 -0
  56. package/dist/api/VideosApi.js +709 -0
  57. package/dist/index.js +1301 -0
  58. package/dist/model/APIClient.js +354 -0
  59. package/dist/model/AccountSessionInput.js +222 -0
  60. package/dist/model/AccountSessionResponse.js +171 -0
  61. package/dist/model/ApplicationPaymentAccountResponse.js +185 -0
  62. package/dist/model/ApplicationPaymentAccountResponseFailureException.js +265 -0
  63. package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCause.js +234 -0
  64. package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCauseStackTraceInner.js +303 -0
  65. package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCauseSuppressedInner.js +187 -0
  66. package/dist/model/Article.js +668 -0
  67. package/dist/model/Authorization.js +166 -0
  68. package/dist/model/Balance.js +267 -0
  69. package/dist/model/BalanceDetails.js +164 -0
  70. package/dist/model/BalanceResponse.js +139 -0
  71. package/dist/model/BankAccountInfo.js +232 -0
  72. package/dist/model/CardInfo.js +213 -0
  73. package/dist/model/Comment.js +495 -0
  74. package/dist/model/Coordinates.js +129 -0
  75. package/dist/model/CreateAccountResponse.js +233 -0
  76. package/dist/model/CreateStripeAccountInput.js +216 -0
  77. package/dist/model/CreateStripeCustomerInput.js +195 -0
  78. package/dist/model/CustomerResponse.js +168 -0
  79. package/dist/model/DataObject.js +129 -0
  80. package/dist/model/DataSheetImport.js +732 -0
  81. package/dist/model/DataSheetImportPrivacySettings.js +154 -0
  82. package/dist/model/DataSheetImportSummary.js +206 -0
  83. package/dist/model/Document.js +743 -0
  84. package/dist/model/DocumentPart.js +612 -0
  85. package/dist/model/DocumentPartType.js +358 -0
  86. package/dist/model/DocumentType.js +458 -0
  87. package/dist/model/FieldMapping.js +185 -0
  88. package/dist/model/Fields.js +737 -0
  89. package/dist/model/File.js +341 -0
  90. package/dist/model/FileAttachmentUploadObject.js +341 -0
  91. package/dist/model/Filter.js +137 -0
  92. package/dist/model/FilterManager.js +154 -0
  93. package/dist/model/Form.js +393 -0
  94. package/dist/model/FormSection.js +304 -0
  95. package/dist/model/FormSubmission.js +238 -0
  96. package/dist/model/Geocode.js +191 -0
  97. package/dist/model/GeocodePayload.js +141 -0
  98. package/dist/model/GeolocationInput.js +216 -0
  99. package/dist/model/Graph.js +499 -0
  100. package/dist/model/GraphAction.js +298 -0
  101. package/dist/model/GraphDatabaseService.js +254 -0
  102. package/dist/model/GraphGeocode.js +282 -0
  103. package/dist/model/GraphIteratorEntryPart.js +129 -0
  104. package/dist/model/GraphObject.js +454 -0
  105. package/dist/model/GraphObjectPayload.js +430 -0
  106. package/dist/model/GraphObjectSchema.js +545 -0
  107. package/dist/model/GraphObjectType.js +626 -0
  108. package/dist/model/GraphObjectTypeSchema.js +645 -0
  109. package/dist/model/GraphOwner.js +158 -0
  110. package/dist/model/GraphRelationObjectObject.js +273 -0
  111. package/dist/model/GraphRelationship.js +301 -0
  112. package/dist/model/GraphRelationshipPayload.js +214 -0
  113. package/dist/model/GraphRelationshipType.js +675 -0
  114. package/dist/model/GraphSchema.js +645 -0
  115. package/dist/model/GraphTraversalInput.js +1125 -0
  116. package/dist/model/Image.js +449 -0
  117. package/dist/model/ImageUploadObject.js +449 -0
  118. package/dist/model/InputPart.js +191 -0
  119. package/dist/model/InputPartMediaType.js +214 -0
  120. package/dist/model/Link.js +305 -0
  121. package/dist/model/LiveStreamInfo.js +167 -0
  122. package/dist/model/MeetingEvent.js +591 -0
  123. package/dist/model/MeetingEventTimezone.js +187 -0
  124. package/dist/model/MeetingInfo.js +220 -0
  125. package/dist/model/Member.js +525 -0
  126. package/dist/model/MemberGroupCategory.js +237 -0
  127. package/dist/model/MemberList.js +96 -0
  128. package/dist/model/MessageGroup.js +160 -0
  129. package/dist/model/MultipartBody.js +133 -0
  130. package/dist/model/Objecttype.js +615 -0
  131. package/dist/model/Page.js +370 -0
  132. package/dist/model/PageSchema.js +482 -0
  133. package/dist/model/Pageable.js +235 -0
  134. package/dist/model/Path.js +110 -0
  135. package/dist/model/PaymentAccountObject.js +209 -0
  136. package/dist/model/PaymentIntentInput.js +214 -0
  137. package/dist/model/PaymentIntentResponse.js +137 -0
  138. package/dist/model/PaymentMethod.js +319 -0
  139. package/dist/model/PaymentMethodInput.js +291 -0
  140. package/dist/model/PaymentMethodResponse.js +139 -0
  141. package/dist/model/PaymentMethodsResponse.js +158 -0
  142. package/dist/model/Payout.js +313 -0
  143. package/dist/model/PayoutInput.js +347 -0
  144. package/dist/model/PayoutResponse.js +142 -0
  145. package/dist/model/Post.js +368 -0
  146. package/dist/model/PrivateMessage.js +494 -0
  147. package/dist/model/PrivateMessageConversation.js +520 -0
  148. package/dist/model/PrivateMessageConversationSchema.js +268 -0
  149. package/dist/model/Profile.js +191 -0
  150. package/dist/model/Profiletype.js +210 -0
  151. package/dist/model/PropertyContainer.js +162 -0
  152. package/dist/model/PurgeDataDefaultResponseValue.js +151 -0
  153. package/dist/model/RelationshipMapping.js +264 -0
  154. package/dist/model/ScreenSchema.js +834 -0
  155. package/dist/model/SimulcastInfo.js +175 -0
  156. package/dist/model/SkinField.js +737 -0
  157. package/dist/model/SocialGroup.js +602 -0
  158. package/dist/model/SocialGroupType.js +327 -0
  159. package/dist/model/Sort.js +154 -0
  160. package/dist/model/SourceTypes.js +154 -0
  161. package/dist/model/StatusUpdate.js +312 -0
  162. package/dist/model/StreetAddress.js +224 -0
  163. package/dist/model/StripeAccount.js +272 -0
  164. package/dist/model/StripeCustomerAccount.js +212 -0
  165. package/dist/model/Template.js +272 -0
  166. package/dist/model/TemplateSchema.js +300 -0
  167. package/dist/model/ThemeMapping.js +245 -0
  168. package/dist/model/ThemeMappingPayload.js +239 -0
  169. package/dist/model/Transaction.js +137 -0
  170. package/dist/model/Transfer.js +286 -0
  171. package/dist/model/TransferInput.js +288 -0
  172. package/dist/model/TransferResponse.js +173 -0
  173. package/dist/model/TransferResponsePaymentMethodDetails.js +286 -0
  174. package/dist/model/TraversalRelationResponse.js +176 -0
  175. package/dist/model/User.js +525 -0
  176. package/dist/model/UserDataPayload.js +525 -0
  177. package/dist/model/UserDomain.js +191 -0
  178. package/dist/model/UserInvite.js +404 -0
  179. package/dist/model/UserInviteInput.js +245 -0
  180. package/dist/model/UserSchema.js +525 -0
  181. package/dist/model/UserTag.js +246 -0
  182. package/dist/model/Userid.js +133 -0
  183. package/dist/model/Video.js +632 -0
  184. package/dist/model/VideoLiveUrl.js +137 -0
  185. package/dist/model/VideoSchema.js +717 -0
  186. package/dist/model/VideoUploadObject.js +632 -0
  187. package/dist/model/ZeusPortalCategory.js +434 -0
  188. package/package.json +46 -0
@@ -0,0 +1,4026 @@
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 _Comment = _interopRequireDefault(require("../model/Comment"));
9
+ var _DataSheetImport = _interopRequireDefault(require("../model/DataSheetImport"));
10
+ var _Geocode = _interopRequireDefault(require("../model/Geocode"));
11
+ var _GeocodePayload = _interopRequireDefault(require("../model/GeocodePayload"));
12
+ var _Graph = _interopRequireDefault(require("../model/Graph"));
13
+ var _GraphAction = _interopRequireDefault(require("../model/GraphAction"));
14
+ var _GraphGeocode = _interopRequireDefault(require("../model/GraphGeocode"));
15
+ var _GraphObjectPayload = _interopRequireDefault(require("../model/GraphObjectPayload"));
16
+ var _GraphObjectSchema = _interopRequireDefault(require("../model/GraphObjectSchema"));
17
+ var _GraphRelationship = _interopRequireDefault(require("../model/GraphRelationship"));
18
+ var _GraphRelationshipPayload = _interopRequireDefault(require("../model/GraphRelationshipPayload"));
19
+ var _Image = _interopRequireDefault(require("../model/Image"));
20
+ var _InputPart = _interopRequireDefault(require("../model/InputPart"));
21
+ var _MeetingEvent = _interopRequireDefault(require("../model/MeetingEvent"));
22
+ var _MeetingInfo = _interopRequireDefault(require("../model/MeetingInfo"));
23
+ var _PurgeDataDefaultResponseValue = _interopRequireDefault(require("../model/PurgeDataDefaultResponseValue"));
24
+ var _UserInvite = _interopRequireDefault(require("../model/UserInvite"));
25
+ var _UserInviteInput = _interopRequireDefault(require("../model/UserInviteInput"));
26
+ var _UserTag = _interopRequireDefault(require("../model/UserTag"));
27
+ var _Video = _interopRequireDefault(require("../model/Video"));
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
+ 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); }
30
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
+ 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); } }
32
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
33
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
34
+ 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); } /**
35
+ * gobodo-api
36
+ * REST Interface for Gobodo API
37
+ *
38
+ * The version of the OpenAPI document: 0.1.34
39
+ * Contact: info@gobodo.io
40
+ *
41
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
42
+ * https://openapi-generator.tech
43
+ * Do not edit the class manually.
44
+ *
45
+ */
46
+ /**
47
+ * GraphObjects service.
48
+ * @module api/GraphObjectsApi
49
+ * @version 0.1.34
50
+ */
51
+ var GraphObjectsApi = exports["default"] = /*#__PURE__*/function () {
52
+ /**
53
+ * Constructs a new GraphObjectsApi.
54
+ * @alias module:api/GraphObjectsApi
55
+ * @class
56
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
57
+ * default to {@link module:ApiClient#instance} if unspecified.
58
+ */
59
+ function GraphObjectsApi(apiClient) {
60
+ _classCallCheck(this, GraphObjectsApi);
61
+ this.apiClient = apiClient || _ApiClient["default"].instance;
62
+ }
63
+
64
+ /**
65
+ * Adds a live meeting to the object
66
+ * Adds live meeting details to the object
67
+ * @param {Number} objectid The id of the object we are attaching the live meeting to
68
+ * @param {module:model/MeetingInfo} meetingInfo Contains the info to create the live meeting
69
+ * @param {Object} opts Optional parameters
70
+ * @param {String} [authorization] The authorization token of the logged in user
71
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
72
+ * @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
73
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
74
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
75
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
76
+ */
77
+ _createClass(GraphObjectsApi, [{
78
+ key: "addLiveMeetingWithHttpInfo",
79
+ value: function addLiveMeetingWithHttpInfo(objectid, meetingInfo, opts) {
80
+ opts = opts || {};
81
+ var postBody = meetingInfo;
82
+ // verify the required parameter 'objectid' is set
83
+ if (objectid === undefined || objectid === null) {
84
+ throw new Error("Missing the required parameter 'objectid' when calling addLiveMeeting");
85
+ }
86
+ // verify the required parameter 'meetingInfo' is set
87
+ if (meetingInfo === undefined || meetingInfo === null) {
88
+ throw new Error("Missing the required parameter 'meetingInfo' when calling addLiveMeeting");
89
+ }
90
+ var pathParams = {
91
+ 'objectid': objectid
92
+ };
93
+ var queryParams = {};
94
+ var headerParams = {
95
+ 'Authorization': opts['authorization'],
96
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
97
+ 'zeusportal-postas': opts['zeusportalPostas'],
98
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
99
+ 'transactionid': opts['transactionid']
100
+ };
101
+ var formParams = {};
102
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
103
+ var contentTypes = ['application/json'];
104
+ var accepts = ['application/json'];
105
+ var returnType = null;
106
+ return this.apiClient.callApi('/graph/data/live/{objectid}/add', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
107
+ }
108
+
109
+ /**
110
+ * Adds a live meeting to the object
111
+ * Adds live meeting details to the object
112
+ * @param {Number} objectid The id of the object we are attaching the live meeting to
113
+ * @param {module:model/MeetingInfo} meetingInfo Contains the info to create the live meeting
114
+ * @param {Object} opts Optional parameters
115
+ * @param {String} opts.authorization The authorization token of the logged in user
116
+ * @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
117
+ * @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
118
+ * @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
119
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
120
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
121
+ */
122
+ }, {
123
+ key: "addLiveMeeting",
124
+ value: function addLiveMeeting(objectid, meetingInfo, opts) {
125
+ return this.addLiveMeetingWithHttpInfo(objectid, meetingInfo, opts).then(function (response_and_data) {
126
+ return response_and_data.data;
127
+ });
128
+ }
129
+
130
+ /**
131
+ * Adds a live meeting to the object
132
+ * Adds live meeting details to the object
133
+ * @param {Number} objectid The id of the object we are streaming
134
+ * @param {Object} opts Optional parameters
135
+ * @param {String} [authorization] The authorization token of the logged in user
136
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
137
+ * @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
138
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
139
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
140
+ * @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
141
+ */
142
+ }, {
143
+ key: "addLiveStreamWithHttpInfo",
144
+ value: function addLiveStreamWithHttpInfo(objectid, opts) {
145
+ opts = opts || {};
146
+ var postBody = null;
147
+ // verify the required parameter 'objectid' is set
148
+ if (objectid === undefined || objectid === null) {
149
+ throw new Error("Missing the required parameter 'objectid' when calling addLiveStream");
150
+ }
151
+ var pathParams = {
152
+ 'objectid': objectid
153
+ };
154
+ var queryParams = {};
155
+ var headerParams = {
156
+ 'Authorization': opts['authorization'],
157
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
158
+ 'zeusportal-postas': opts['zeusportalPostas'],
159
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
160
+ 'transactionid': opts['transactionid']
161
+ };
162
+ var formParams = {};
163
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
164
+ var contentTypes = [];
165
+ var accepts = ['application/json'];
166
+ var returnType = {
167
+ 'String': _PurgeDataDefaultResponseValue["default"]
168
+ };
169
+ return this.apiClient.callApi('/graph/data/live/{objectid}/stream', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
170
+ }
171
+
172
+ /**
173
+ * Adds a live meeting to the object
174
+ * Adds live meeting details to the object
175
+ * @param {Number} objectid The id of the object we are streaming
176
+ * @param {Object} opts Optional parameters
177
+ * @param {String} opts.authorization The authorization token of the logged in user
178
+ * @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
179
+ * @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
180
+ * @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
181
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
182
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>}
183
+ */
184
+ }, {
185
+ key: "addLiveStream",
186
+ value: function addLiveStream(objectid, opts) {
187
+ return this.addLiveStreamWithHttpInfo(objectid, opts).then(function (response_and_data) {
188
+ return response_and_data.data;
189
+ });
190
+ }
191
+
192
+ /**
193
+ * @param {Number} id The id of the object that the file is being attached to
194
+ * @param {Object} opts Optional parameters
195
+ * @param {String} [authorization] The authorization token of the logged in user
196
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
197
+ * @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
198
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
199
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
200
+ * @param {Object.<String, {String: [InputPart]}>} [formDataMap]
201
+ * @param {Object.<String, {String: InputPart}>} [formData]
202
+ * @param {Array.<module:model/InputPart>} [parts]
203
+ * @param {String} [preamble]
204
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
205
+ */
206
+ }, {
207
+ key: "attachFileWithHttpInfo",
208
+ value: function attachFileWithHttpInfo(id, opts) {
209
+ opts = opts || {};
210
+ var postBody = null;
211
+ // verify the required parameter 'id' is set
212
+ if (id === undefined || id === null) {
213
+ throw new Error("Missing the required parameter 'id' when calling attachFile");
214
+ }
215
+ var pathParams = {
216
+ 'id': id
217
+ };
218
+ var queryParams = {};
219
+ var headerParams = {
220
+ 'Authorization': opts['authorization'],
221
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
222
+ 'zeusportal-postas': opts['zeusportalPostas'],
223
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
224
+ 'transactionid': opts['transactionid']
225
+ };
226
+ var formParams = {
227
+ 'formDataMap': opts['formDataMap'],
228
+ 'formData': opts['formData'],
229
+ 'parts': this.apiClient.buildCollectionParam(opts['parts'], 'csv'),
230
+ 'preamble': opts['preamble']
231
+ };
232
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
233
+ var contentTypes = ['multipart/form-data'];
234
+ var accepts = ['application/json'];
235
+ var returnType = _PurgeDataDefaultResponseValue["default"];
236
+ return this.apiClient.callApi('/graph/data/object/{id}/attachfile', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
237
+ }
238
+
239
+ /**
240
+ * @param {Number} id The id of the object that the file is being attached to
241
+ * @param {Object} opts Optional parameters
242
+ * @param {String} opts.authorization The authorization token of the logged in user
243
+ * @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
244
+ * @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
245
+ * @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
246
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
247
+ * @param {Object.<String, {String: [InputPart]}>} opts.formDataMap
248
+ * @param {Object.<String, {String: InputPart}>} opts.formData
249
+ * @param {Array.<module:model/InputPart>} opts.parts
250
+ * @param {String} opts.preamble
251
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
252
+ */
253
+ }, {
254
+ key: "attachFile",
255
+ value: function attachFile(id, opts) {
256
+ return this.attachFileWithHttpInfo(id, opts).then(function (response_and_data) {
257
+ return response_and_data.data;
258
+ });
259
+ }
260
+
261
+ /**
262
+ * @param {Number} id The id of the object that the image is being attached to
263
+ * @param {Object} opts Optional parameters
264
+ * @param {String} [authorization] The authorization token of the logged in user
265
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
266
+ * @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
267
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
268
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
269
+ * @param {Object.<String, {String: [InputPart]}>} [formDataMap]
270
+ * @param {Object.<String, {String: InputPart}>} [formData]
271
+ * @param {Array.<module:model/InputPart>} [parts]
272
+ * @param {String} [preamble]
273
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
274
+ */
275
+ }, {
276
+ key: "attachImageWithHttpInfo",
277
+ value: function attachImageWithHttpInfo(id, opts) {
278
+ opts = opts || {};
279
+ var postBody = null;
280
+ // verify the required parameter 'id' is set
281
+ if (id === undefined || id === null) {
282
+ throw new Error("Missing the required parameter 'id' when calling attachImage");
283
+ }
284
+ var pathParams = {
285
+ 'id': id
286
+ };
287
+ var queryParams = {};
288
+ var headerParams = {
289
+ 'Authorization': opts['authorization'],
290
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
291
+ 'zeusportal-postas': opts['zeusportalPostas'],
292
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
293
+ 'transactionid': opts['transactionid']
294
+ };
295
+ var formParams = {
296
+ 'formDataMap': opts['formDataMap'],
297
+ 'formData': opts['formData'],
298
+ 'parts': this.apiClient.buildCollectionParam(opts['parts'], 'csv'),
299
+ 'preamble': opts['preamble']
300
+ };
301
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
302
+ var contentTypes = ['multipart/form-data'];
303
+ var accepts = ['application/json'];
304
+ var returnType = _PurgeDataDefaultResponseValue["default"];
305
+ return this.apiClient.callApi('/graph/data/object/{id}/attachimage', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
306
+ }
307
+
308
+ /**
309
+ * @param {Number} id The id of the object that the image is being attached to
310
+ * @param {Object} opts Optional parameters
311
+ * @param {String} opts.authorization The authorization token of the logged in user
312
+ * @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
313
+ * @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
314
+ * @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
315
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
316
+ * @param {Object.<String, {String: [InputPart]}>} opts.formDataMap
317
+ * @param {Object.<String, {String: InputPart}>} opts.formData
318
+ * @param {Array.<module:model/InputPart>} opts.parts
319
+ * @param {String} opts.preamble
320
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
321
+ */
322
+ }, {
323
+ key: "attachImage",
324
+ value: function attachImage(id, opts) {
325
+ return this.attachImageWithHttpInfo(id, opts).then(function (response_and_data) {
326
+ return response_and_data.data;
327
+ });
328
+ }
329
+
330
+ /**
331
+ * @param {Number} id The id of the object that we are performing the action on
332
+ * @param {Array.<module:model/GraphAction>} graphAction Conversation object or array of objects to create
333
+ * @param {Object} opts Optional parameters
334
+ * @param {String} [authorization] The authorization token of the logged in user
335
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
336
+ * @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
337
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
338
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
339
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphAction>} and HTTP response
340
+ */
341
+ }, {
342
+ key: "createActionsWithHttpInfo",
343
+ value: function createActionsWithHttpInfo(id, graphAction, opts) {
344
+ opts = opts || {};
345
+ var postBody = graphAction;
346
+ // verify the required parameter 'id' is set
347
+ if (id === undefined || id === null) {
348
+ throw new Error("Missing the required parameter 'id' when calling createActions");
349
+ }
350
+ // verify the required parameter 'graphAction' is set
351
+ if (graphAction === undefined || graphAction === null) {
352
+ throw new Error("Missing the required parameter 'graphAction' when calling createActions");
353
+ }
354
+ var pathParams = {
355
+ 'id': id
356
+ };
357
+ var queryParams = {};
358
+ var headerParams = {
359
+ 'Authorization': opts['authorization'],
360
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
361
+ 'zeusportal-postas': opts['zeusportalPostas'],
362
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
363
+ 'transactionid': opts['transactionid']
364
+ };
365
+ var formParams = {};
366
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
367
+ var contentTypes = ['application/json'];
368
+ var accepts = ['application/json'];
369
+ var returnType = [_GraphAction["default"]];
370
+ return this.apiClient.callApi('/graph/data/object/{id}/actions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
371
+ }
372
+
373
+ /**
374
+ * @param {Number} id The id of the object that we are performing the action on
375
+ * @param {Array.<module:model/GraphAction>} graphAction Conversation object or array of objects to create
376
+ * @param {Object} opts Optional parameters
377
+ * @param {String} opts.authorization The authorization token of the logged in user
378
+ * @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
379
+ * @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
380
+ * @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
381
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
382
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphAction>}
383
+ */
384
+ }, {
385
+ key: "createActions",
386
+ value: function createActions(id, graphAction, opts) {
387
+ return this.createActionsWithHttpInfo(id, graphAction, opts).then(function (response_and_data) {
388
+ return response_and_data.data;
389
+ });
390
+ }
391
+
392
+ /**
393
+ * Adds objects to the graph
394
+ * @param {Number} id
395
+ * @param {Object} opts Optional parameters
396
+ * @param {String} [authorization] The authorization token of the logged in user
397
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
398
+ * @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
399
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
400
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
401
+ * @param {String} [body]
402
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GraphObjectSchema} and HTTP response
403
+ */
404
+ }, {
405
+ key: "createAddObjectsToGraphWithHttpInfo",
406
+ value: function createAddObjectsToGraphWithHttpInfo(id, opts) {
407
+ opts = opts || {};
408
+ var postBody = opts['body'];
409
+ // verify the required parameter 'id' is set
410
+ if (id === undefined || id === null) {
411
+ throw new Error("Missing the required parameter 'id' when calling createAddObjectsToGraph");
412
+ }
413
+ var pathParams = {
414
+ 'id': id
415
+ };
416
+ var queryParams = {};
417
+ var headerParams = {
418
+ 'Authorization': opts['authorization'],
419
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
420
+ 'zeusportal-postas': opts['zeusportalPostas'],
421
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
422
+ 'transactionid': opts['transactionid']
423
+ };
424
+ var formParams = {};
425
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
426
+ var contentTypes = ['application/json'];
427
+ var accepts = ['application/json'];
428
+ var returnType = _GraphObjectSchema["default"];
429
+ return this.apiClient.callApi('/graph/data/graph/{id}/objects', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
430
+ }
431
+
432
+ /**
433
+ * Adds objects to the graph
434
+ * @param {Number} id
435
+ * @param {Object} opts Optional parameters
436
+ * @param {String} opts.authorization The authorization token of the logged in user
437
+ * @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
438
+ * @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
439
+ * @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
440
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
441
+ * @param {String} opts.body
442
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphObjectSchema}
443
+ */
444
+ }, {
445
+ key: "createAddObjectsToGraph",
446
+ value: function createAddObjectsToGraph(id, opts) {
447
+ return this.createAddObjectsToGraphWithHttpInfo(id, opts).then(function (response_and_data) {
448
+ return response_and_data.data;
449
+ });
450
+ }
451
+
452
+ /**
453
+ * @param {Number} id The id of the object that we are retrieving geolocation information from
454
+ * @param {module:model/GeocodePayload} geocodePayload Conversation object or array of objects to create
455
+ * @param {Object} opts Optional parameters
456
+ * @param {String} [authorization] The authorization token of the logged in user
457
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
458
+ * @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
459
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
460
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
461
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Geocode} and HTTP response
462
+ */
463
+ }, {
464
+ key: "createGeocodesWithHttpInfo",
465
+ value: function createGeocodesWithHttpInfo(id, geocodePayload, opts) {
466
+ opts = opts || {};
467
+ var postBody = geocodePayload;
468
+ // verify the required parameter 'id' is set
469
+ if (id === undefined || id === null) {
470
+ throw new Error("Missing the required parameter 'id' when calling createGeocodes");
471
+ }
472
+ // verify the required parameter 'geocodePayload' is set
473
+ if (geocodePayload === undefined || geocodePayload === null) {
474
+ throw new Error("Missing the required parameter 'geocodePayload' when calling createGeocodes");
475
+ }
476
+ var pathParams = {
477
+ 'id': id
478
+ };
479
+ var queryParams = {};
480
+ var headerParams = {
481
+ 'Authorization': opts['authorization'],
482
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
483
+ 'zeusportal-postas': opts['zeusportalPostas'],
484
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
485
+ 'transactionid': opts['transactionid']
486
+ };
487
+ var formParams = {};
488
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
489
+ var contentTypes = ['application/json'];
490
+ var accepts = ['application/json'];
491
+ var returnType = _Geocode["default"];
492
+ return this.apiClient.callApi('/graph/data/object/{id}/geocode', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
493
+ }
494
+
495
+ /**
496
+ * @param {Number} id The id of the object that we are retrieving geolocation information from
497
+ * @param {module:model/GeocodePayload} geocodePayload Conversation object or array of objects to create
498
+ * @param {Object} opts Optional parameters
499
+ * @param {String} opts.authorization The authorization token of the logged in user
500
+ * @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
501
+ * @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
502
+ * @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
503
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
504
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Geocode}
505
+ */
506
+ }, {
507
+ key: "createGeocodes",
508
+ value: function createGeocodes(id, geocodePayload, opts) {
509
+ return this.createGeocodesWithHttpInfo(id, geocodePayload, opts).then(function (response_and_data) {
510
+ return response_and_data.data;
511
+ });
512
+ }
513
+
514
+ /**
515
+ * Returns an invite by id
516
+ * Returns a live meeting invite by id
517
+ * @param {Number} inviteid The id of the invite we are retrieving
518
+ * @param {module:model/UserInviteInput} userInviteInput An Invite Input
519
+ * @param {Object} opts Optional parameters
520
+ * @param {String} [authorization] The authorization token of the logged in user
521
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
522
+ * @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
523
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
524
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
525
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserInvite} and HTTP response
526
+ */
527
+ }, {
528
+ key: "createInviteOnObjectWithHttpInfo",
529
+ value: function createInviteOnObjectWithHttpInfo(inviteid, userInviteInput, opts) {
530
+ opts = opts || {};
531
+ var postBody = userInviteInput;
532
+ // verify the required parameter 'inviteid' is set
533
+ if (inviteid === undefined || inviteid === null) {
534
+ throw new Error("Missing the required parameter 'inviteid' when calling createInviteOnObject");
535
+ }
536
+ // verify the required parameter 'userInviteInput' is set
537
+ if (userInviteInput === undefined || userInviteInput === null) {
538
+ throw new Error("Missing the required parameter 'userInviteInput' when calling createInviteOnObject");
539
+ }
540
+ var pathParams = {
541
+ 'inviteid': inviteid
542
+ };
543
+ var queryParams = {};
544
+ var headerParams = {
545
+ 'Authorization': opts['authorization'],
546
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
547
+ 'zeusportal-postas': opts['zeusportalPostas'],
548
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
549
+ 'transactionid': opts['transactionid']
550
+ };
551
+ var formParams = {};
552
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
553
+ var contentTypes = ['application/json'];
554
+ var accepts = ['application/json'];
555
+ var returnType = _UserInvite["default"];
556
+ return this.apiClient.callApi('/graph/data/invites/{objectid}/invite', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
557
+ }
558
+
559
+ /**
560
+ * Returns an invite by id
561
+ * Returns a live meeting invite by id
562
+ * @param {Number} inviteid The id of the invite we are retrieving
563
+ * @param {module:model/UserInviteInput} userInviteInput An Invite Input
564
+ * @param {Object} opts Optional parameters
565
+ * @param {String} opts.authorization The authorization token of the logged in user
566
+ * @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
567
+ * @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
568
+ * @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
569
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
570
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserInvite}
571
+ */
572
+ }, {
573
+ key: "createInviteOnObject",
574
+ value: function createInviteOnObject(inviteid, userInviteInput, opts) {
575
+ return this.createInviteOnObjectWithHttpInfo(inviteid, userInviteInput, opts).then(function (response_and_data) {
576
+ return response_and_data.data;
577
+ });
578
+ }
579
+
580
+ /**
581
+ * Create Objects
582
+ * Create graph object(s)
583
+ * @param {module:model/GraphObjectPayload} graphObjectPayload GraphObject object data or array of object data to create
584
+ * @param {Object} opts Optional parameters
585
+ * @param {String} [authorization] The authorization token of the logged in user
586
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
587
+ * @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
588
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
589
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
590
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GraphObjectSchema} and HTTP response
591
+ */
592
+ }, {
593
+ key: "createObjectWithHttpInfo",
594
+ value: function createObjectWithHttpInfo(graphObjectPayload, opts) {
595
+ opts = opts || {};
596
+ var postBody = graphObjectPayload;
597
+ // verify the required parameter 'graphObjectPayload' is set
598
+ if (graphObjectPayload === undefined || graphObjectPayload === null) {
599
+ throw new Error("Missing the required parameter 'graphObjectPayload' when calling createObject");
600
+ }
601
+ var pathParams = {};
602
+ var queryParams = {};
603
+ var headerParams = {
604
+ 'Authorization': opts['authorization'],
605
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
606
+ 'zeusportal-postas': opts['zeusportalPostas'],
607
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
608
+ 'transactionid': opts['transactionid']
609
+ };
610
+ var formParams = {};
611
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
612
+ var contentTypes = [];
613
+ var accepts = ['application/json'];
614
+ var returnType = _GraphObjectSchema["default"];
615
+ return this.apiClient.callApi('/graph/data/object', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
616
+ }
617
+
618
+ /**
619
+ * Create Objects
620
+ * Create graph object(s)
621
+ * @param {module:model/GraphObjectPayload} graphObjectPayload GraphObject object data or array of object data to create
622
+ * @param {Object} opts Optional parameters
623
+ * @param {String} opts.authorization The authorization token of the logged in user
624
+ * @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
625
+ * @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
626
+ * @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
627
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
628
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphObjectSchema}
629
+ */
630
+ }, {
631
+ key: "createObject",
632
+ value: function createObject(graphObjectPayload, opts) {
633
+ return this.createObjectWithHttpInfo(graphObjectPayload, opts).then(function (response_and_data) {
634
+ return response_and_data.data;
635
+ });
636
+ }
637
+
638
+ /**
639
+ * Create Objects
640
+ * Create graph object(s)
641
+ * @param {Array.<module:model/GraphObjectPayload>} graphObjectPayload GraphObject object data or array of object data to create
642
+ * @param {Object} opts Optional parameters
643
+ * @param {String} [authorization] The authorization token of the logged in user
644
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
645
+ * @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
646
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
647
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
648
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphObjectSchema>} and HTTP response
649
+ */
650
+ }, {
651
+ key: "createObjectsWithHttpInfo",
652
+ value: function createObjectsWithHttpInfo(graphObjectPayload, opts) {
653
+ opts = opts || {};
654
+ var postBody = graphObjectPayload;
655
+ // verify the required parameter 'graphObjectPayload' is set
656
+ if (graphObjectPayload === undefined || graphObjectPayload === null) {
657
+ throw new Error("Missing the required parameter 'graphObjectPayload' when calling createObjects");
658
+ }
659
+ var pathParams = {};
660
+ var queryParams = {};
661
+ var headerParams = {
662
+ 'Authorization': opts['authorization'],
663
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
664
+ 'zeusportal-postas': opts['zeusportalPostas'],
665
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
666
+ 'transactionid': opts['transactionid']
667
+ };
668
+ var formParams = {};
669
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
670
+ var contentTypes = [];
671
+ var accepts = ['application/json'];
672
+ var returnType = [_GraphObjectSchema["default"]];
673
+ return this.apiClient.callApi('/graph/data/object/createobjects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
674
+ }
675
+
676
+ /**
677
+ * Create Objects
678
+ * Create graph object(s)
679
+ * @param {Array.<module:model/GraphObjectPayload>} graphObjectPayload GraphObject object data or array of object data to create
680
+ * @param {Object} opts Optional parameters
681
+ * @param {String} opts.authorization The authorization token of the logged in user
682
+ * @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
683
+ * @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
684
+ * @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
685
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
686
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphObjectSchema>}
687
+ */
688
+ }, {
689
+ key: "createObjects",
690
+ value: function createObjects(graphObjectPayload, opts) {
691
+ return this.createObjectsWithHttpInfo(graphObjectPayload, opts).then(function (response_and_data) {
692
+ return response_and_data.data;
693
+ });
694
+ }
695
+
696
+ /**
697
+ * Create a Relationship
698
+ * Create a relationship to another object
699
+ * @param {Number} id The id of the object that we are creating relationships on
700
+ * @param {module:model/GraphRelationshipPayload} graphRelationshipPayload Conversation object or array of objects to create
701
+ * @param {Object} opts Optional parameters
702
+ * @param {String} [authorization] The authorization token of the logged in user
703
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
704
+ * @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
705
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
706
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
707
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GraphRelationship} and HTTP response
708
+ */
709
+ }, {
710
+ key: "createRelationshipWithHttpInfo",
711
+ value: function createRelationshipWithHttpInfo(id, graphRelationshipPayload, opts) {
712
+ opts = opts || {};
713
+ var postBody = graphRelationshipPayload;
714
+ // verify the required parameter 'id' is set
715
+ if (id === undefined || id === null) {
716
+ throw new Error("Missing the required parameter 'id' when calling createRelationship");
717
+ }
718
+ // verify the required parameter 'graphRelationshipPayload' is set
719
+ if (graphRelationshipPayload === undefined || graphRelationshipPayload === null) {
720
+ throw new Error("Missing the required parameter 'graphRelationshipPayload' when calling createRelationship");
721
+ }
722
+ var pathParams = {
723
+ 'id': id
724
+ };
725
+ var queryParams = {};
726
+ var headerParams = {
727
+ 'Authorization': opts['authorization'],
728
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
729
+ 'zeusportal-postas': opts['zeusportalPostas'],
730
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
731
+ 'transactionid': opts['transactionid']
732
+ };
733
+ var formParams = {};
734
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
735
+ var contentTypes = ['application/json'];
736
+ var accepts = ['application/json'];
737
+ var returnType = _GraphRelationship["default"];
738
+ return this.apiClient.callApi('/graph/data/object/{id}/relationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
739
+ }
740
+
741
+ /**
742
+ * Create a Relationship
743
+ * Create a relationship to another object
744
+ * @param {Number} id The id of the object that we are creating relationships on
745
+ * @param {module:model/GraphRelationshipPayload} graphRelationshipPayload Conversation object or array of objects to create
746
+ * @param {Object} opts Optional parameters
747
+ * @param {String} opts.authorization The authorization token of the logged in user
748
+ * @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
749
+ * @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
750
+ * @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
751
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
752
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphRelationship}
753
+ */
754
+ }, {
755
+ key: "createRelationship",
756
+ value: function createRelationship(id, graphRelationshipPayload, opts) {
757
+ return this.createRelationshipWithHttpInfo(id, graphRelationshipPayload, opts).then(function (response_and_data) {
758
+ return response_and_data.data;
759
+ });
760
+ }
761
+
762
+ /**
763
+ * Create Relationships
764
+ * Create a relationships to other objects
765
+ * @param {Number} id The id of the object that we are creating relationships on
766
+ * @param {Array.<module:model/GraphRelationshipPayload>} graphRelationshipPayload Conversation object or array of objects to create
767
+ * @param {Object} opts Optional parameters
768
+ * @param {String} [authorization] The authorization token of the logged in user
769
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
770
+ * @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
771
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
772
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
773
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphRelationship>} and HTTP response
774
+ */
775
+ }, {
776
+ key: "createRelationshipsWithHttpInfo",
777
+ value: function createRelationshipsWithHttpInfo(id, graphRelationshipPayload, opts) {
778
+ opts = opts || {};
779
+ var postBody = graphRelationshipPayload;
780
+ // verify the required parameter 'id' is set
781
+ if (id === undefined || id === null) {
782
+ throw new Error("Missing the required parameter 'id' when calling createRelationships");
783
+ }
784
+ // verify the required parameter 'graphRelationshipPayload' is set
785
+ if (graphRelationshipPayload === undefined || graphRelationshipPayload === null) {
786
+ throw new Error("Missing the required parameter 'graphRelationshipPayload' when calling createRelationships");
787
+ }
788
+ var pathParams = {
789
+ 'id': id
790
+ };
791
+ var queryParams = {};
792
+ var headerParams = {
793
+ 'Authorization': opts['authorization'],
794
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
795
+ 'zeusportal-postas': opts['zeusportalPostas'],
796
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
797
+ 'transactionid': opts['transactionid']
798
+ };
799
+ var formParams = {};
800
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
801
+ var contentTypes = ['application/json'];
802
+ var accepts = ['application/json'];
803
+ var returnType = [_GraphRelationship["default"]];
804
+ return this.apiClient.callApi('/graph/data/object/{id}/relationships', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
805
+ }
806
+
807
+ /**
808
+ * Create Relationships
809
+ * Create a relationships to other objects
810
+ * @param {Number} id The id of the object that we are creating relationships on
811
+ * @param {Array.<module:model/GraphRelationshipPayload>} graphRelationshipPayload Conversation object or array of objects to create
812
+ * @param {Object} opts Optional parameters
813
+ * @param {String} opts.authorization The authorization token of the logged in user
814
+ * @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
815
+ * @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
816
+ * @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
817
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
818
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphRelationship>}
819
+ */
820
+ }, {
821
+ key: "createRelationships",
822
+ value: function createRelationships(id, graphRelationshipPayload, opts) {
823
+ return this.createRelationshipsWithHttpInfo(id, graphRelationshipPayload, opts).then(function (response_and_data) {
824
+ return response_and_data.data;
825
+ });
826
+ }
827
+
828
+ /**
829
+ * @param {Number} id The id of the geocode to delete
830
+ * @param {Number} geocodeid The id of the object whose properties we are updating
831
+ * @param {Object} opts Optional parameters
832
+ * @param {String} [authorization] The authorization token of the logged in user
833
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
834
+ * @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
835
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
836
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
837
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
838
+ */
839
+ }, {
840
+ key: "deleteGeocodeWithHttpInfo",
841
+ value: function deleteGeocodeWithHttpInfo(id, geocodeid, opts) {
842
+ opts = opts || {};
843
+ var postBody = null;
844
+ // verify the required parameter 'id' is set
845
+ if (id === undefined || id === null) {
846
+ throw new Error("Missing the required parameter 'id' when calling deleteGeocode");
847
+ }
848
+ // verify the required parameter 'geocodeid' is set
849
+ if (geocodeid === undefined || geocodeid === null) {
850
+ throw new Error("Missing the required parameter 'geocodeid' when calling deleteGeocode");
851
+ }
852
+ var pathParams = {
853
+ 'id': id,
854
+ 'geocodeid': geocodeid
855
+ };
856
+ var queryParams = {};
857
+ var headerParams = {
858
+ 'Authorization': opts['authorization'],
859
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
860
+ 'zeusportal-postas': opts['zeusportalPostas'],
861
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
862
+ 'transactionid': opts['transactionid']
863
+ };
864
+ var formParams = {};
865
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
866
+ var contentTypes = [];
867
+ var accepts = ['application/json'];
868
+ var returnType = null;
869
+ return this.apiClient.callApi('/graph/data/object/{id}/geocode/{geocodeid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
870
+ }
871
+
872
+ /**
873
+ * @param {Number} id The id of the geocode to delete
874
+ * @param {Number} geocodeid The id of the object whose properties we are updating
875
+ * @param {Object} opts Optional parameters
876
+ * @param {String} opts.authorization The authorization token of the logged in user
877
+ * @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
878
+ * @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
879
+ * @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
880
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
881
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
882
+ */
883
+ }, {
884
+ key: "deleteGeocode",
885
+ value: function deleteGeocode(id, geocodeid, opts) {
886
+ return this.deleteGeocodeWithHttpInfo(id, geocodeid, opts).then(function (response_and_data) {
887
+ return response_and_data.data;
888
+ });
889
+ }
890
+
891
+ /**
892
+ * Delete Like
893
+ * Delete an individual like
894
+ * @param {Number} objectid
895
+ * @param {Object} opts Optional parameters
896
+ * @param {String} [authorization] The authorization token of the logged in user
897
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
898
+ * @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
899
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
900
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
901
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
902
+ */
903
+ }, {
904
+ key: "deleteLikeWithHttpInfo",
905
+ value: function deleteLikeWithHttpInfo(objectid, opts) {
906
+ opts = opts || {};
907
+ var postBody = null;
908
+ // verify the required parameter 'objectid' is set
909
+ if (objectid === undefined || objectid === null) {
910
+ throw new Error("Missing the required parameter 'objectid' when calling deleteLike");
911
+ }
912
+ var pathParams = {
913
+ 'objectid': objectid
914
+ };
915
+ var queryParams = {};
916
+ var headerParams = {
917
+ 'Authorization': opts['authorization'],
918
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
919
+ 'zeusportal-postas': opts['zeusportalPostas'],
920
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
921
+ 'transactionid': opts['transactionid']
922
+ };
923
+ var formParams = {};
924
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
925
+ var contentTypes = [];
926
+ var accepts = ['*/*'];
927
+ var returnType = null;
928
+ return this.apiClient.callApi('/graph/data/likes/{objectid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
929
+ }
930
+
931
+ /**
932
+ * Delete Like
933
+ * Delete an individual like
934
+ * @param {Number} objectid
935
+ * @param {Object} opts Optional parameters
936
+ * @param {String} opts.authorization The authorization token of the logged in user
937
+ * @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
938
+ * @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
939
+ * @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
940
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
941
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
942
+ */
943
+ }, {
944
+ key: "deleteLike",
945
+ value: function deleteLike(objectid, opts) {
946
+ return this.deleteLikeWithHttpInfo(objectid, opts).then(function (response_and_data) {
947
+ return response_and_data.data;
948
+ });
949
+ }
950
+
951
+ /**
952
+ * Delete's the object with the id
953
+ * @param {Number} id The id of the object to delete
954
+ * @param {Object} opts Optional parameters
955
+ * @param {String} [authorization] The authorization token of the logged in user
956
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
957
+ * @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
958
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
959
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
960
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
961
+ */
962
+ }, {
963
+ key: "deleteObjectWithHttpInfo",
964
+ value: function deleteObjectWithHttpInfo(id, opts) {
965
+ opts = opts || {};
966
+ var postBody = null;
967
+ // verify the required parameter 'id' is set
968
+ if (id === undefined || id === null) {
969
+ throw new Error("Missing the required parameter 'id' when calling deleteObject");
970
+ }
971
+ var pathParams = {
972
+ 'id': id
973
+ };
974
+ var queryParams = {};
975
+ var headerParams = {
976
+ 'Authorization': opts['authorization'],
977
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
978
+ 'zeusportal-postas': opts['zeusportalPostas'],
979
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
980
+ 'transactionid': opts['transactionid']
981
+ };
982
+ var formParams = {};
983
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
984
+ var contentTypes = [];
985
+ var accepts = ['application/json'];
986
+ var returnType = null;
987
+ return this.apiClient.callApi('/graph/data/object/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
988
+ }
989
+
990
+ /**
991
+ * Delete's the object with the id
992
+ * @param {Number} id The id of the object to delete
993
+ * @param {Object} opts Optional parameters
994
+ * @param {String} opts.authorization The authorization token of the logged in user
995
+ * @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
996
+ * @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
997
+ * @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
998
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
999
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1000
+ */
1001
+ }, {
1002
+ key: "deleteObject",
1003
+ value: function deleteObject(id, opts) {
1004
+ return this.deleteObjectWithHttpInfo(id, opts).then(function (response_and_data) {
1005
+ return response_and_data.data;
1006
+ });
1007
+ }
1008
+
1009
+ /**
1010
+ * Dislike an Object
1011
+ * Dislike an object
1012
+ * @param {Number} objectid
1013
+ * @param {Object} opts Optional parameters
1014
+ * @param {String} [authorization] The authorization token of the logged in user
1015
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1016
+ * @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
1017
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1018
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1019
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1020
+ */
1021
+ }, {
1022
+ key: "dislikeWithHttpInfo",
1023
+ value: function dislikeWithHttpInfo(objectid, opts) {
1024
+ opts = opts || {};
1025
+ var postBody = null;
1026
+ // verify the required parameter 'objectid' is set
1027
+ if (objectid === undefined || objectid === null) {
1028
+ throw new Error("Missing the required parameter 'objectid' when calling dislike");
1029
+ }
1030
+ var pathParams = {
1031
+ 'objectid': objectid
1032
+ };
1033
+ var queryParams = {};
1034
+ var headerParams = {
1035
+ 'Authorization': opts['authorization'],
1036
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1037
+ 'zeusportal-postas': opts['zeusportalPostas'],
1038
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1039
+ 'transactionid': opts['transactionid']
1040
+ };
1041
+ var formParams = {};
1042
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1043
+ var contentTypes = [];
1044
+ var accepts = ['*/*'];
1045
+ var returnType = null;
1046
+ return this.apiClient.callApi('/graph/data/likes/{objectid}/dislike', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1047
+ }
1048
+
1049
+ /**
1050
+ * Dislike an Object
1051
+ * Dislike an object
1052
+ * @param {Number} objectid
1053
+ * @param {Object} opts Optional parameters
1054
+ * @param {String} opts.authorization The authorization token of the logged in user
1055
+ * @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
1056
+ * @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
1057
+ * @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
1058
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1059
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1060
+ */
1061
+ }, {
1062
+ key: "dislike",
1063
+ value: function dislike(objectid, opts) {
1064
+ return this.dislikeWithHttpInfo(objectid, opts).then(function (response_and_data) {
1065
+ return response_and_data.data;
1066
+ });
1067
+ }
1068
+
1069
+ /**
1070
+ * @param {Number} id The id of the object we are calling the function on
1071
+ * @param {String} _function
1072
+ * @param {Object} opts Optional parameters
1073
+ * @param {String} [authorization] The authorization token of the logged in user
1074
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1075
+ * @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
1076
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1077
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1078
+ * @param {String} [body]
1079
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
1080
+ */
1081
+ }, {
1082
+ key: "doPostFunctionWithHttpInfo",
1083
+ value: function doPostFunctionWithHttpInfo(id, _function, opts) {
1084
+ opts = opts || {};
1085
+ var postBody = opts['body'];
1086
+ // verify the required parameter 'id' is set
1087
+ if (id === undefined || id === null) {
1088
+ throw new Error("Missing the required parameter 'id' when calling doPostFunction");
1089
+ }
1090
+ // verify the required parameter '_function' is set
1091
+ if (_function === undefined || _function === null) {
1092
+ throw new Error("Missing the required parameter '_function' when calling doPostFunction");
1093
+ }
1094
+ var pathParams = {
1095
+ 'id': id,
1096
+ 'function': _function
1097
+ };
1098
+ var queryParams = {};
1099
+ var headerParams = {
1100
+ 'Authorization': opts['authorization'],
1101
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1102
+ 'zeusportal-postas': opts['zeusportalPostas'],
1103
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1104
+ 'transactionid': opts['transactionid']
1105
+ };
1106
+ var formParams = {};
1107
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1108
+ var contentTypes = ['application/json'];
1109
+ var accepts = ['application/json'];
1110
+ var returnType = _PurgeDataDefaultResponseValue["default"];
1111
+ return this.apiClient.callApi('/graph/data/object/{id}/function/{function}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1112
+ }
1113
+
1114
+ /**
1115
+ * @param {Number} id The id of the object we are calling the function on
1116
+ * @param {String} _function
1117
+ * @param {Object} opts Optional parameters
1118
+ * @param {String} opts.authorization The authorization token of the logged in user
1119
+ * @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
1120
+ * @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
1121
+ * @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
1122
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1123
+ * @param {String} opts.body
1124
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
1125
+ */
1126
+ }, {
1127
+ key: "doPostFunction",
1128
+ value: function doPostFunction(id, _function, opts) {
1129
+ return this.doPostFunctionWithHttpInfo(id, _function, opts).then(function (response_and_data) {
1130
+ return response_and_data.data;
1131
+ });
1132
+ }
1133
+
1134
+ /**
1135
+ * @param {Number} id The id of the object being followed
1136
+ * @param {Object} opts Optional parameters
1137
+ * @param {String} [authorization] The authorization token of the logged in user
1138
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1139
+ * @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
1140
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1141
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1142
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1143
+ */
1144
+ }, {
1145
+ key: "followWithHttpInfo",
1146
+ value: function followWithHttpInfo(id, opts) {
1147
+ opts = opts || {};
1148
+ var postBody = null;
1149
+ // verify the required parameter 'id' is set
1150
+ if (id === undefined || id === null) {
1151
+ throw new Error("Missing the required parameter 'id' when calling follow");
1152
+ }
1153
+ var pathParams = {
1154
+ 'id': id
1155
+ };
1156
+ var queryParams = {};
1157
+ var headerParams = {
1158
+ 'Authorization': opts['authorization'],
1159
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1160
+ 'zeusportal-postas': opts['zeusportalPostas'],
1161
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1162
+ 'transactionid': opts['transactionid']
1163
+ };
1164
+ var formParams = {};
1165
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1166
+ var contentTypes = [];
1167
+ var accepts = ['application/json'];
1168
+ var returnType = null;
1169
+ return this.apiClient.callApi('/graph/data/object/{id}/follow', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1170
+ }
1171
+
1172
+ /**
1173
+ * @param {Number} id The id of the object being followed
1174
+ * @param {Object} opts Optional parameters
1175
+ * @param {String} opts.authorization The authorization token of the logged in user
1176
+ * @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
1177
+ * @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
1178
+ * @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
1179
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1180
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1181
+ */
1182
+ }, {
1183
+ key: "follow",
1184
+ value: function follow(id, opts) {
1185
+ return this.followWithHttpInfo(id, opts).then(function (response_and_data) {
1186
+ return response_and_data.data;
1187
+ });
1188
+ }
1189
+
1190
+ /**
1191
+ * Root for the API
1192
+ * @param {Object} opts Optional parameters
1193
+ * @param {String} [authorization] The authorization token of the logged in user
1194
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1195
+ * @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
1196
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1197
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1198
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1199
+ */
1200
+ }, {
1201
+ key: "get7WithHttpInfo",
1202
+ value: function get7WithHttpInfo(opts) {
1203
+ opts = opts || {};
1204
+ var postBody = null;
1205
+ var pathParams = {};
1206
+ var queryParams = {};
1207
+ var headerParams = {
1208
+ 'Authorization': opts['authorization'],
1209
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1210
+ 'zeusportal-postas': opts['zeusportalPostas'],
1211
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1212
+ 'transactionid': opts['transactionid']
1213
+ };
1214
+ var formParams = {};
1215
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1216
+ var contentTypes = [];
1217
+ var accepts = ['application/json'];
1218
+ var returnType = null;
1219
+ return this.apiClient.callApi('/graph/data/object', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1220
+ }
1221
+
1222
+ /**
1223
+ * Root for the API
1224
+ * @param {Object} opts Optional parameters
1225
+ * @param {String} opts.authorization The authorization token of the logged in user
1226
+ * @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
1227
+ * @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
1228
+ * @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
1229
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1230
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1231
+ */
1232
+ }, {
1233
+ key: "get7",
1234
+ value: function get7(opts) {
1235
+ return this.get7WithHttpInfo(opts).then(function (response_and_data) {
1236
+ return response_and_data.data;
1237
+ });
1238
+ }
1239
+
1240
+ /**
1241
+ * Get Actions
1242
+ * Get actions attached to an object
1243
+ * @param {Number} id The id of the object that we are retrieving actions on
1244
+ * @param {Object} opts Optional parameters
1245
+ * @param {String} [authorization] The authorization token of the logged in user
1246
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1247
+ * @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
1248
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1249
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1250
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphAction>} and HTTP response
1251
+ */
1252
+ }, {
1253
+ key: "getActionsWithHttpInfo",
1254
+ value: function getActionsWithHttpInfo(id, opts) {
1255
+ opts = opts || {};
1256
+ var postBody = null;
1257
+ // verify the required parameter 'id' is set
1258
+ if (id === undefined || id === null) {
1259
+ throw new Error("Missing the required parameter 'id' when calling getActions");
1260
+ }
1261
+ var pathParams = {
1262
+ 'id': id
1263
+ };
1264
+ var queryParams = {};
1265
+ var headerParams = {
1266
+ 'Authorization': opts['authorization'],
1267
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1268
+ 'zeusportal-postas': opts['zeusportalPostas'],
1269
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1270
+ 'transactionid': opts['transactionid']
1271
+ };
1272
+ var formParams = {};
1273
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1274
+ var contentTypes = [];
1275
+ var accepts = ['application/json'];
1276
+ var returnType = [_GraphAction["default"]];
1277
+ return this.apiClient.callApi('/graph/data/object/{id}/actions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1278
+ }
1279
+
1280
+ /**
1281
+ * Get Actions
1282
+ * Get actions attached to an object
1283
+ * @param {Number} id The id of the object that we are retrieving actions on
1284
+ * @param {Object} opts Optional parameters
1285
+ * @param {String} opts.authorization The authorization token of the logged in user
1286
+ * @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
1287
+ * @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
1288
+ * @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
1289
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1290
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphAction>}
1291
+ */
1292
+ }, {
1293
+ key: "getActions",
1294
+ value: function getActions(id, opts) {
1295
+ return this.getActionsWithHttpInfo(id, opts).then(function (response_and_data) {
1296
+ return response_and_data.data;
1297
+ });
1298
+ }
1299
+
1300
+ /**
1301
+ * Get Actions By Type
1302
+ * Get actions attached to an object by type
1303
+ * @param {Number} id
1304
+ * @param {Number} actiontypeid
1305
+ * @param {Object} opts Optional parameters
1306
+ * @param {String} [authorization] The authorization token of the logged in user
1307
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1308
+ * @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
1309
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1310
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1311
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphAction>} and HTTP response
1312
+ */
1313
+ }, {
1314
+ key: "getActionsByTypeWithHttpInfo",
1315
+ value: function getActionsByTypeWithHttpInfo(id, actiontypeid, opts) {
1316
+ opts = opts || {};
1317
+ var postBody = null;
1318
+ // verify the required parameter 'id' is set
1319
+ if (id === undefined || id === null) {
1320
+ throw new Error("Missing the required parameter 'id' when calling getActionsByType");
1321
+ }
1322
+ // verify the required parameter 'actiontypeid' is set
1323
+ if (actiontypeid === undefined || actiontypeid === null) {
1324
+ throw new Error("Missing the required parameter 'actiontypeid' when calling getActionsByType");
1325
+ }
1326
+ var pathParams = {
1327
+ 'id': id,
1328
+ 'actiontypeid': actiontypeid
1329
+ };
1330
+ var queryParams = {};
1331
+ var headerParams = {
1332
+ 'Authorization': opts['authorization'],
1333
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1334
+ 'zeusportal-postas': opts['zeusportalPostas'],
1335
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1336
+ 'transactionid': opts['transactionid']
1337
+ };
1338
+ var formParams = {};
1339
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1340
+ var contentTypes = [];
1341
+ var accepts = ['application/json'];
1342
+ var returnType = [_GraphAction["default"]];
1343
+ return this.apiClient.callApi('/graph/data/object/{id}/actions/{actiontypeid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1344
+ }
1345
+
1346
+ /**
1347
+ * Get Actions By Type
1348
+ * Get actions attached to an object by type
1349
+ * @param {Number} id
1350
+ * @param {Number} actiontypeid
1351
+ * @param {Object} opts Optional parameters
1352
+ * @param {String} opts.authorization The authorization token of the logged in user
1353
+ * @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
1354
+ * @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
1355
+ * @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
1356
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1357
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphAction>}
1358
+ */
1359
+ }, {
1360
+ key: "getActionsByType",
1361
+ value: function getActionsByType(id, actiontypeid, opts) {
1362
+ return this.getActionsByTypeWithHttpInfo(id, actiontypeid, opts).then(function (response_and_data) {
1363
+ return response_and_data.data;
1364
+ });
1365
+ }
1366
+
1367
+ /**
1368
+ * Get All Relationships
1369
+ * Returns a listing of relationships
1370
+ * @param {Number} id The id of the object that we are retrieving relationships on
1371
+ * @param {Object} opts Optional parameters
1372
+ * @param {String} [authorization] The authorization token of the logged in user
1373
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1374
+ * @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
1375
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1376
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1377
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphRelationship>} and HTTP response
1378
+ */
1379
+ }, {
1380
+ key: "getAllRelationshipsWithHttpInfo",
1381
+ value: function getAllRelationshipsWithHttpInfo(id, opts) {
1382
+ opts = opts || {};
1383
+ var postBody = null;
1384
+ // verify the required parameter 'id' is set
1385
+ if (id === undefined || id === null) {
1386
+ throw new Error("Missing the required parameter 'id' when calling getAllRelationships");
1387
+ }
1388
+ var pathParams = {
1389
+ 'id': id
1390
+ };
1391
+ var queryParams = {};
1392
+ var headerParams = {
1393
+ 'Authorization': opts['authorization'],
1394
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1395
+ 'zeusportal-postas': opts['zeusportalPostas'],
1396
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1397
+ 'transactionid': opts['transactionid']
1398
+ };
1399
+ var formParams = {};
1400
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1401
+ var contentTypes = [];
1402
+ var accepts = ['application/json'];
1403
+ var returnType = [_GraphRelationship["default"]];
1404
+ return this.apiClient.callApi('/graph/data/object/{id}/relationships/all', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1405
+ }
1406
+
1407
+ /**
1408
+ * Get All Relationships
1409
+ * Returns a listing of relationships
1410
+ * @param {Number} id The id of the object that we are retrieving relationships on
1411
+ * @param {Object} opts Optional parameters
1412
+ * @param {String} opts.authorization The authorization token of the logged in user
1413
+ * @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
1414
+ * @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
1415
+ * @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
1416
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1417
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphRelationship>}
1418
+ */
1419
+ }, {
1420
+ key: "getAllRelationships",
1421
+ value: function getAllRelationships(id, opts) {
1422
+ return this.getAllRelationshipsWithHttpInfo(id, opts).then(function (response_and_data) {
1423
+ return response_and_data.data;
1424
+ });
1425
+ }
1426
+
1427
+ /**
1428
+ * Get All Relationships By Type
1429
+ * Returns a listing of relationships
1430
+ * @param {Number} id The id of the relationship type we are searching for
1431
+ * @param {Number} reltypeid The id of the object that we are retrieving relationships on
1432
+ * @param {Object} opts Optional parameters
1433
+ * @param {String} [authorization] The authorization token of the logged in user
1434
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1435
+ * @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
1436
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1437
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1438
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphRelationship>} and HTTP response
1439
+ */
1440
+ }, {
1441
+ key: "getAllRelationshipsByTypeWithHttpInfo",
1442
+ value: function getAllRelationshipsByTypeWithHttpInfo(id, reltypeid, opts) {
1443
+ opts = opts || {};
1444
+ var postBody = null;
1445
+ // verify the required parameter 'id' is set
1446
+ if (id === undefined || id === null) {
1447
+ throw new Error("Missing the required parameter 'id' when calling getAllRelationshipsByType");
1448
+ }
1449
+ // verify the required parameter 'reltypeid' is set
1450
+ if (reltypeid === undefined || reltypeid === null) {
1451
+ throw new Error("Missing the required parameter 'reltypeid' when calling getAllRelationshipsByType");
1452
+ }
1453
+ var pathParams = {
1454
+ 'id': id,
1455
+ 'reltypeid': reltypeid
1456
+ };
1457
+ var queryParams = {};
1458
+ var headerParams = {
1459
+ 'Authorization': opts['authorization'],
1460
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1461
+ 'zeusportal-postas': opts['zeusportalPostas'],
1462
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1463
+ 'transactionid': opts['transactionid']
1464
+ };
1465
+ var formParams = {};
1466
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1467
+ var contentTypes = [];
1468
+ var accepts = ['application/json'];
1469
+ var returnType = [_GraphRelationship["default"]];
1470
+ return this.apiClient.callApi('/graph/data/object/{id}/relationships/all/{reltypeid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1471
+ }
1472
+
1473
+ /**
1474
+ * Get All Relationships By Type
1475
+ * Returns a listing of relationships
1476
+ * @param {Number} id The id of the relationship type we are searching for
1477
+ * @param {Number} reltypeid The id of the object that we are retrieving relationships on
1478
+ * @param {Object} opts Optional parameters
1479
+ * @param {String} opts.authorization The authorization token of the logged in user
1480
+ * @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
1481
+ * @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
1482
+ * @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
1483
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1484
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphRelationship>}
1485
+ */
1486
+ }, {
1487
+ key: "getAllRelationshipsByType",
1488
+ value: function getAllRelationshipsByType(id, reltypeid, opts) {
1489
+ return this.getAllRelationshipsByTypeWithHttpInfo(id, reltypeid, opts).then(function (response_and_data) {
1490
+ return response_and_data.data;
1491
+ });
1492
+ }
1493
+
1494
+ /**
1495
+ * @param {Number} objectid
1496
+ * @param {Object} opts Optional parameters
1497
+ * @param {String} [authorization] The authorization token of the logged in user
1498
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1499
+ * @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
1500
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1501
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1502
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Comment>} and HTTP response
1503
+ */
1504
+ }, {
1505
+ key: "getCommentsWithHttpInfo",
1506
+ value: function getCommentsWithHttpInfo(objectid, opts) {
1507
+ opts = opts || {};
1508
+ var postBody = null;
1509
+ // verify the required parameter 'objectid' is set
1510
+ if (objectid === undefined || objectid === null) {
1511
+ throw new Error("Missing the required parameter 'objectid' when calling getComments");
1512
+ }
1513
+ var pathParams = {
1514
+ 'objectid': objectid
1515
+ };
1516
+ var queryParams = {};
1517
+ var headerParams = {
1518
+ 'Authorization': opts['authorization'],
1519
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1520
+ 'zeusportal-postas': opts['zeusportalPostas'],
1521
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1522
+ 'transactionid': opts['transactionid']
1523
+ };
1524
+ var formParams = {};
1525
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1526
+ var contentTypes = [];
1527
+ var accepts = ['application/json'];
1528
+ var returnType = [_Comment["default"]];
1529
+ return this.apiClient.callApi('/graph/data/object/{objectid}/comments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1530
+ }
1531
+
1532
+ /**
1533
+ * @param {Number} objectid
1534
+ * @param {Object} opts Optional parameters
1535
+ * @param {String} opts.authorization The authorization token of the logged in user
1536
+ * @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
1537
+ * @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
1538
+ * @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
1539
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1540
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Comment>}
1541
+ */
1542
+ }, {
1543
+ key: "getComments",
1544
+ value: function getComments(objectid, opts) {
1545
+ return this.getCommentsWithHttpInfo(objectid, opts).then(function (response_and_data) {
1546
+ return response_and_data.data;
1547
+ });
1548
+ }
1549
+
1550
+ /**
1551
+ * Get Related Objects
1552
+ * Get Related Objects
1553
+ * @param {Number} objectid The id of the object we are importing the datasheet to
1554
+ * @param {Object} opts Optional parameters
1555
+ * @param {String} [authorization] The authorization token of the logged in user
1556
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1557
+ * @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
1558
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1559
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1560
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/DataSheetImport>} and HTTP response
1561
+ */
1562
+ }, {
1563
+ key: "getDataSheetImportsWithHttpInfo",
1564
+ value: function getDataSheetImportsWithHttpInfo(objectid, opts) {
1565
+ opts = opts || {};
1566
+ var postBody = null;
1567
+ // verify the required parameter 'objectid' is set
1568
+ if (objectid === undefined || objectid === null) {
1569
+ throw new Error("Missing the required parameter 'objectid' when calling getDataSheetImports");
1570
+ }
1571
+ var pathParams = {
1572
+ 'objectid': objectid
1573
+ };
1574
+ var queryParams = {};
1575
+ var headerParams = {
1576
+ 'Authorization': opts['authorization'],
1577
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1578
+ 'zeusportal-postas': opts['zeusportalPostas'],
1579
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1580
+ 'transactionid': opts['transactionid']
1581
+ };
1582
+ var formParams = {};
1583
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1584
+ var contentTypes = [];
1585
+ var accepts = ['application/json'];
1586
+ var returnType = [_DataSheetImport["default"]];
1587
+ return this.apiClient.callApi('/graph/data/object/{objectid}/datasheetimports', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1588
+ }
1589
+
1590
+ /**
1591
+ * Get Related Objects
1592
+ * Get Related Objects
1593
+ * @param {Number} objectid The id of the object we are importing the datasheet to
1594
+ * @param {Object} opts Optional parameters
1595
+ * @param {String} opts.authorization The authorization token of the logged in user
1596
+ * @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
1597
+ * @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
1598
+ * @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
1599
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1600
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/DataSheetImport>}
1601
+ */
1602
+ }, {
1603
+ key: "getDataSheetImports",
1604
+ value: function getDataSheetImports(objectid, opts) {
1605
+ return this.getDataSheetImportsWithHttpInfo(objectid, opts).then(function (response_and_data) {
1606
+ return response_and_data.data;
1607
+ });
1608
+ }
1609
+
1610
+ /**
1611
+ * Get Events
1612
+ * Returns a listing of meeting events contained in or attached to this object
1613
+ * @param {Number} id The id of the object that we are retrieving events for
1614
+ * @param {Object} opts Optional parameters
1615
+ * @param {String} [authorization] The authorization token of the logged in user
1616
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1617
+ * @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
1618
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1619
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1620
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/MeetingEvent>} and HTTP response
1621
+ */
1622
+ }, {
1623
+ key: "getEventsWithHttpInfo",
1624
+ value: function getEventsWithHttpInfo(id, opts) {
1625
+ opts = opts || {};
1626
+ var postBody = null;
1627
+ // verify the required parameter 'id' is set
1628
+ if (id === undefined || id === null) {
1629
+ throw new Error("Missing the required parameter 'id' when calling getEvents");
1630
+ }
1631
+ var pathParams = {
1632
+ 'id': id
1633
+ };
1634
+ var queryParams = {};
1635
+ var headerParams = {
1636
+ 'Authorization': opts['authorization'],
1637
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1638
+ 'zeusportal-postas': opts['zeusportalPostas'],
1639
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1640
+ 'transactionid': opts['transactionid']
1641
+ };
1642
+ var formParams = {};
1643
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1644
+ var contentTypes = [];
1645
+ var accepts = ['application/json'];
1646
+ var returnType = [_MeetingEvent["default"]];
1647
+ return this.apiClient.callApi('/graph/data/object/{id}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1648
+ }
1649
+
1650
+ /**
1651
+ * Get Events
1652
+ * Returns a listing of meeting events contained in or attached to this object
1653
+ * @param {Number} id The id of the object that we are retrieving events for
1654
+ * @param {Object} opts Optional parameters
1655
+ * @param {String} opts.authorization The authorization token of the logged in user
1656
+ * @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
1657
+ * @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
1658
+ * @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
1659
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1660
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/MeetingEvent>}
1661
+ */
1662
+ }, {
1663
+ key: "getEvents",
1664
+ value: function getEvents(id, opts) {
1665
+ return this.getEventsWithHttpInfo(id, opts).then(function (response_and_data) {
1666
+ return response_and_data.data;
1667
+ });
1668
+ }
1669
+
1670
+ /**
1671
+ * Get Events Date Range
1672
+ * Returns a listing of meeting events contained in or attached to this object within the specified date range
1673
+ * @param {Number} id The id of the object that we are retrieving events for
1674
+ * @param {Number} startdate The unix epoch time for the start time of the event
1675
+ * @param {Number} enddate The unix epoch time for the end time of the event
1676
+ * @param {Object} opts Optional parameters
1677
+ * @param {String} [authorization] The authorization token of the logged in user
1678
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1679
+ * @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
1680
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1681
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1682
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/MeetingEvent>} and HTTP response
1683
+ */
1684
+ }, {
1685
+ key: "getEventsDateRangeWithHttpInfo",
1686
+ value: function getEventsDateRangeWithHttpInfo(id, startdate, enddate, opts) {
1687
+ opts = opts || {};
1688
+ var postBody = null;
1689
+ // verify the required parameter 'id' is set
1690
+ if (id === undefined || id === null) {
1691
+ throw new Error("Missing the required parameter 'id' when calling getEventsDateRange");
1692
+ }
1693
+ // verify the required parameter 'startdate' is set
1694
+ if (startdate === undefined || startdate === null) {
1695
+ throw new Error("Missing the required parameter 'startdate' when calling getEventsDateRange");
1696
+ }
1697
+ // verify the required parameter 'enddate' is set
1698
+ if (enddate === undefined || enddate === null) {
1699
+ throw new Error("Missing the required parameter 'enddate' when calling getEventsDateRange");
1700
+ }
1701
+ var pathParams = {
1702
+ 'id': id,
1703
+ 'startdate': startdate,
1704
+ 'enddate': enddate
1705
+ };
1706
+ var queryParams = {};
1707
+ var headerParams = {
1708
+ 'Authorization': opts['authorization'],
1709
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1710
+ 'zeusportal-postas': opts['zeusportalPostas'],
1711
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1712
+ 'transactionid': opts['transactionid']
1713
+ };
1714
+ var formParams = {};
1715
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1716
+ var contentTypes = [];
1717
+ var accepts = ['application/json'];
1718
+ var returnType = [_MeetingEvent["default"]];
1719
+ return this.apiClient.callApi('/graph/data/object/{id}/events/{startdate}:{enddate}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1720
+ }
1721
+
1722
+ /**
1723
+ * Get Events Date Range
1724
+ * Returns a listing of meeting events contained in or attached to this object within the specified date range
1725
+ * @param {Number} id The id of the object that we are retrieving events for
1726
+ * @param {Number} startdate The unix epoch time for the start time of the event
1727
+ * @param {Number} enddate The unix epoch time for the end time of the event
1728
+ * @param {Object} opts Optional parameters
1729
+ * @param {String} opts.authorization The authorization token of the logged in user
1730
+ * @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
1731
+ * @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
1732
+ * @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
1733
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1734
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/MeetingEvent>}
1735
+ */
1736
+ }, {
1737
+ key: "getEventsDateRange",
1738
+ value: function getEventsDateRange(id, startdate, enddate, opts) {
1739
+ return this.getEventsDateRangeWithHttpInfo(id, startdate, enddate, opts).then(function (response_and_data) {
1740
+ return response_and_data.data;
1741
+ });
1742
+ }
1743
+
1744
+ /**
1745
+ * Get Events Future
1746
+ * Returns a listing of future meeting events contained in or attached to this object
1747
+ * @param {Number} id The id of the object that we are retrieving events for
1748
+ * @param {Object} opts Optional parameters
1749
+ * @param {String} [authorization] The authorization token of the logged in user
1750
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1751
+ * @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
1752
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1753
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1754
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/MeetingEvent>} and HTTP response
1755
+ */
1756
+ }, {
1757
+ key: "getEventsFutureWithHttpInfo",
1758
+ value: function getEventsFutureWithHttpInfo(id, opts) {
1759
+ opts = opts || {};
1760
+ var postBody = null;
1761
+ // verify the required parameter 'id' is set
1762
+ if (id === undefined || id === null) {
1763
+ throw new Error("Missing the required parameter 'id' when calling getEventsFuture");
1764
+ }
1765
+ var pathParams = {
1766
+ 'id': id
1767
+ };
1768
+ var queryParams = {};
1769
+ var headerParams = {
1770
+ 'Authorization': opts['authorization'],
1771
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1772
+ 'zeusportal-postas': opts['zeusportalPostas'],
1773
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1774
+ 'transactionid': opts['transactionid']
1775
+ };
1776
+ var formParams = {};
1777
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1778
+ var contentTypes = [];
1779
+ var accepts = ['application/json'];
1780
+ var returnType = [_MeetingEvent["default"]];
1781
+ return this.apiClient.callApi('/graph/data/object/{id}/events/future', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1782
+ }
1783
+
1784
+ /**
1785
+ * Get Events Future
1786
+ * Returns a listing of future meeting events contained in or attached to this object
1787
+ * @param {Number} id The id of the object that we are retrieving events for
1788
+ * @param {Object} opts Optional parameters
1789
+ * @param {String} opts.authorization The authorization token of the logged in user
1790
+ * @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
1791
+ * @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
1792
+ * @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
1793
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1794
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/MeetingEvent>}
1795
+ */
1796
+ }, {
1797
+ key: "getEventsFuture",
1798
+ value: function getEventsFuture(id, opts) {
1799
+ return this.getEventsFutureWithHttpInfo(id, opts).then(function (response_and_data) {
1800
+ return response_and_data.data;
1801
+ });
1802
+ }
1803
+
1804
+ /**
1805
+ * Get Events
1806
+ * Returns a listing of past meeting events contained in or attached to this object
1807
+ * @param {Number} id The id of the object that we are retrieving events for
1808
+ * @param {Object} opts Optional parameters
1809
+ * @param {String} [authorization] The authorization token of the logged in user
1810
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1811
+ * @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
1812
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1813
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1814
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/MeetingEvent>} and HTTP response
1815
+ */
1816
+ }, {
1817
+ key: "getEventsPastWithHttpInfo",
1818
+ value: function getEventsPastWithHttpInfo(id, opts) {
1819
+ opts = opts || {};
1820
+ var postBody = null;
1821
+ // verify the required parameter 'id' is set
1822
+ if (id === undefined || id === null) {
1823
+ throw new Error("Missing the required parameter 'id' when calling getEventsPast");
1824
+ }
1825
+ var pathParams = {
1826
+ 'id': id
1827
+ };
1828
+ var queryParams = {};
1829
+ var headerParams = {
1830
+ 'Authorization': opts['authorization'],
1831
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1832
+ 'zeusportal-postas': opts['zeusportalPostas'],
1833
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1834
+ 'transactionid': opts['transactionid']
1835
+ };
1836
+ var formParams = {};
1837
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1838
+ var contentTypes = [];
1839
+ var accepts = ['application/json'];
1840
+ var returnType = [_MeetingEvent["default"]];
1841
+ return this.apiClient.callApi('/graph/data/object/{id}/events/past', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1842
+ }
1843
+
1844
+ /**
1845
+ * Get Events
1846
+ * Returns a listing of past meeting events contained in or attached to this object
1847
+ * @param {Number} id The id of the object that we are retrieving events for
1848
+ * @param {Object} opts Optional parameters
1849
+ * @param {String} opts.authorization The authorization token of the logged in user
1850
+ * @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
1851
+ * @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
1852
+ * @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
1853
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1854
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/MeetingEvent>}
1855
+ */
1856
+ }, {
1857
+ key: "getEventsPast",
1858
+ value: function getEventsPast(id, opts) {
1859
+ return this.getEventsPastWithHttpInfo(id, opts).then(function (response_and_data) {
1860
+ return response_and_data.data;
1861
+ });
1862
+ }
1863
+
1864
+ /**
1865
+ * @param {Number} id
1866
+ * @param {Object} opts Optional parameters
1867
+ * @param {String} [authorization] The authorization token of the logged in user
1868
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1869
+ * @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
1870
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1871
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1872
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<File>} and HTTP response
1873
+ */
1874
+ }, {
1875
+ key: "getFilesWithHttpInfo",
1876
+ value: function getFilesWithHttpInfo(id, opts) {
1877
+ opts = opts || {};
1878
+ var postBody = null;
1879
+ // verify the required parameter 'id' is set
1880
+ if (id === undefined || id === null) {
1881
+ throw new Error("Missing the required parameter 'id' when calling getFiles");
1882
+ }
1883
+ var pathParams = {
1884
+ 'id': id
1885
+ };
1886
+ var queryParams = {};
1887
+ var headerParams = {
1888
+ 'Authorization': opts['authorization'],
1889
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1890
+ 'zeusportal-postas': opts['zeusportalPostas'],
1891
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1892
+ 'transactionid': opts['transactionid']
1893
+ };
1894
+ var formParams = {};
1895
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1896
+ var contentTypes = [];
1897
+ var accepts = ['application/json'];
1898
+ var returnType = [File];
1899
+ return this.apiClient.callApi('/graph/data/object/{id}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1900
+ }
1901
+
1902
+ /**
1903
+ * @param {Number} id
1904
+ * @param {Object} opts Optional parameters
1905
+ * @param {String} opts.authorization The authorization token of the logged in user
1906
+ * @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
1907
+ * @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
1908
+ * @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
1909
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1910
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<File>}
1911
+ */
1912
+ }, {
1913
+ key: "getFiles",
1914
+ value: function getFiles(id, opts) {
1915
+ return this.getFilesWithHttpInfo(id, opts).then(function (response_and_data) {
1916
+ return response_and_data.data;
1917
+ });
1918
+ }
1919
+
1920
+ /**
1921
+ * @param {Number} id The id of the object to retrieve the geolocation information
1922
+ * @param {Object} opts Optional parameters
1923
+ * @param {String} [authorization] The authorization token of the logged in user
1924
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1925
+ * @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
1926
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1927
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1928
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphGeocode>} and HTTP response
1929
+ */
1930
+ }, {
1931
+ key: "getGeocodesWithHttpInfo",
1932
+ value: function getGeocodesWithHttpInfo(id, opts) {
1933
+ opts = opts || {};
1934
+ var postBody = null;
1935
+ // verify the required parameter 'id' is set
1936
+ if (id === undefined || id === null) {
1937
+ throw new Error("Missing the required parameter 'id' when calling getGeocodes");
1938
+ }
1939
+ var pathParams = {
1940
+ 'id': id
1941
+ };
1942
+ var queryParams = {};
1943
+ var headerParams = {
1944
+ 'Authorization': opts['authorization'],
1945
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1946
+ 'zeusportal-postas': opts['zeusportalPostas'],
1947
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1948
+ 'transactionid': opts['transactionid']
1949
+ };
1950
+ var formParams = {};
1951
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1952
+ var contentTypes = [];
1953
+ var accepts = ['application/json'];
1954
+ var returnType = [_GraphGeocode["default"]];
1955
+ return this.apiClient.callApi('/graph/data/object/{id}/geocode', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1956
+ }
1957
+
1958
+ /**
1959
+ * @param {Number} id The id of the object to retrieve the geolocation information
1960
+ * @param {Object} opts Optional parameters
1961
+ * @param {String} opts.authorization The authorization token of the logged in user
1962
+ * @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
1963
+ * @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
1964
+ * @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
1965
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1966
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphGeocode>}
1967
+ */
1968
+ }, {
1969
+ key: "getGeocodes",
1970
+ value: function getGeocodes(id, opts) {
1971
+ return this.getGeocodesWithHttpInfo(id, opts).then(function (response_and_data) {
1972
+ return response_and_data.data;
1973
+ });
1974
+ }
1975
+
1976
+ /**
1977
+ * @param {Number} id The id of the object whose graphs we are retrieving
1978
+ * @param {Object} opts Optional parameters
1979
+ * @param {String} [authorization] The authorization token of the logged in user
1980
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1981
+ * @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
1982
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1983
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1984
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Graph>} and HTTP response
1985
+ */
1986
+ }, {
1987
+ key: "getGraphsWithHttpInfo",
1988
+ value: function getGraphsWithHttpInfo(id, opts) {
1989
+ opts = opts || {};
1990
+ var postBody = null;
1991
+ // verify the required parameter 'id' is set
1992
+ if (id === undefined || id === null) {
1993
+ throw new Error("Missing the required parameter 'id' when calling getGraphs");
1994
+ }
1995
+ var pathParams = {
1996
+ 'id': id
1997
+ };
1998
+ var queryParams = {};
1999
+ var headerParams = {
2000
+ 'Authorization': opts['authorization'],
2001
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2002
+ 'zeusportal-postas': opts['zeusportalPostas'],
2003
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2004
+ 'transactionid': opts['transactionid']
2005
+ };
2006
+ var formParams = {};
2007
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2008
+ var contentTypes = [];
2009
+ var accepts = ['application/json'];
2010
+ var returnType = [_Graph["default"]];
2011
+ return this.apiClient.callApi('/graph/data/object/{id}/graphs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2012
+ }
2013
+
2014
+ /**
2015
+ * @param {Number} id The id of the object whose graphs we are retrieving
2016
+ * @param {Object} opts Optional parameters
2017
+ * @param {String} opts.authorization The authorization token of the logged in user
2018
+ * @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
2019
+ * @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
2020
+ * @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
2021
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2022
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Graph>}
2023
+ */
2024
+ }, {
2025
+ key: "getGraphs",
2026
+ value: function getGraphs(id, opts) {
2027
+ return this.getGraphsWithHttpInfo(id, opts).then(function (response_and_data) {
2028
+ return response_and_data.data;
2029
+ });
2030
+ }
2031
+
2032
+ /**
2033
+ * @param {Number} id
2034
+ * @param {Object} opts Optional parameters
2035
+ * @param {String} [authorization] The authorization token of the logged in user
2036
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2037
+ * @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
2038
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2039
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2040
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Image>} and HTTP response
2041
+ */
2042
+ }, {
2043
+ key: "getImagesWithHttpInfo",
2044
+ value: function getImagesWithHttpInfo(id, opts) {
2045
+ opts = opts || {};
2046
+ var postBody = null;
2047
+ // verify the required parameter 'id' is set
2048
+ if (id === undefined || id === null) {
2049
+ throw new Error("Missing the required parameter 'id' when calling getImages");
2050
+ }
2051
+ var pathParams = {
2052
+ 'id': id
2053
+ };
2054
+ var queryParams = {};
2055
+ var headerParams = {
2056
+ 'Authorization': opts['authorization'],
2057
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2058
+ 'zeusportal-postas': opts['zeusportalPostas'],
2059
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2060
+ 'transactionid': opts['transactionid']
2061
+ };
2062
+ var formParams = {};
2063
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2064
+ var contentTypes = [];
2065
+ var accepts = ['application/json'];
2066
+ var returnType = [_Image["default"]];
2067
+ return this.apiClient.callApi('/graph/data/object/{id}/images', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2068
+ }
2069
+
2070
+ /**
2071
+ * @param {Number} id
2072
+ * @param {Object} opts Optional parameters
2073
+ * @param {String} opts.authorization The authorization token of the logged in user
2074
+ * @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
2075
+ * @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
2076
+ * @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
2077
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2078
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Image>}
2079
+ */
2080
+ }, {
2081
+ key: "getImages",
2082
+ value: function getImages(id, opts) {
2083
+ return this.getImagesWithHttpInfo(id, opts).then(function (response_and_data) {
2084
+ return response_and_data.data;
2085
+ });
2086
+ }
2087
+
2088
+ /**
2089
+ * @param {Number} id The id of the object that we are retrieving news feed items for
2090
+ * @param {Object} opts Optional parameters
2091
+ * @param {String} [authorization] The authorization token of the logged in user
2092
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2093
+ * @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
2094
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2095
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2096
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
2097
+ */
2098
+ }, {
2099
+ key: "getNewsfeedWithHttpInfo",
2100
+ value: function getNewsfeedWithHttpInfo(id, opts) {
2101
+ opts = opts || {};
2102
+ var postBody = null;
2103
+ // verify the required parameter 'id' is set
2104
+ if (id === undefined || id === null) {
2105
+ throw new Error("Missing the required parameter 'id' when calling getNewsfeed");
2106
+ }
2107
+ var pathParams = {
2108
+ 'id': id
2109
+ };
2110
+ var queryParams = {};
2111
+ var headerParams = {
2112
+ 'Authorization': opts['authorization'],
2113
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2114
+ 'zeusportal-postas': opts['zeusportalPostas'],
2115
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2116
+ 'transactionid': opts['transactionid']
2117
+ };
2118
+ var formParams = {};
2119
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2120
+ var contentTypes = [];
2121
+ var accepts = ['application/json'];
2122
+ var returnType = _PurgeDataDefaultResponseValue["default"];
2123
+ return this.apiClient.callApi('/graph/data/object/{id}/newsfeed', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2124
+ }
2125
+
2126
+ /**
2127
+ * @param {Number} id The id of the object that we are retrieving news feed items for
2128
+ * @param {Object} opts Optional parameters
2129
+ * @param {String} opts.authorization The authorization token of the logged in user
2130
+ * @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
2131
+ * @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
2132
+ * @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
2133
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2134
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
2135
+ */
2136
+ }, {
2137
+ key: "getNewsfeed",
2138
+ value: function getNewsfeed(id, opts) {
2139
+ return this.getNewsfeedWithHttpInfo(id, opts).then(function (response_and_data) {
2140
+ return response_and_data.data;
2141
+ });
2142
+ }
2143
+
2144
+ /**
2145
+ * @param {Number} id The id of the object that we are retrieving news feed items for
2146
+ * @param {Number} start
2147
+ * @param {Number} end
2148
+ * @param {Object} opts Optional parameters
2149
+ * @param {String} [authorization] The authorization token of the logged in user
2150
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2151
+ * @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
2152
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2153
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2154
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
2155
+ */
2156
+ }, {
2157
+ key: "getNewsfeedIndexedWithHttpInfo",
2158
+ value: function getNewsfeedIndexedWithHttpInfo(id, start, end, opts) {
2159
+ opts = opts || {};
2160
+ var postBody = null;
2161
+ // verify the required parameter 'id' is set
2162
+ if (id === undefined || id === null) {
2163
+ throw new Error("Missing the required parameter 'id' when calling getNewsfeedIndexed");
2164
+ }
2165
+ // verify the required parameter 'start' is set
2166
+ if (start === undefined || start === null) {
2167
+ throw new Error("Missing the required parameter 'start' when calling getNewsfeedIndexed");
2168
+ }
2169
+ // verify the required parameter 'end' is set
2170
+ if (end === undefined || end === null) {
2171
+ throw new Error("Missing the required parameter 'end' when calling getNewsfeedIndexed");
2172
+ }
2173
+ var pathParams = {
2174
+ 'id': id,
2175
+ 'start': start,
2176
+ 'end': end
2177
+ };
2178
+ var queryParams = {};
2179
+ var headerParams = {
2180
+ 'Authorization': opts['authorization'],
2181
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2182
+ 'zeusportal-postas': opts['zeusportalPostas'],
2183
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2184
+ 'transactionid': opts['transactionid']
2185
+ };
2186
+ var formParams = {};
2187
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2188
+ var contentTypes = [];
2189
+ var accepts = ['application/json'];
2190
+ var returnType = _PurgeDataDefaultResponseValue["default"];
2191
+ return this.apiClient.callApi('/graph/data/object/{id}/newsfeed/{start}-{end}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2192
+ }
2193
+
2194
+ /**
2195
+ * @param {Number} id The id of the object that we are retrieving news feed items for
2196
+ * @param {Number} start
2197
+ * @param {Number} end
2198
+ * @param {Object} opts Optional parameters
2199
+ * @param {String} opts.authorization The authorization token of the logged in user
2200
+ * @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
2201
+ * @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
2202
+ * @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
2203
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2204
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
2205
+ */
2206
+ }, {
2207
+ key: "getNewsfeedIndexed",
2208
+ value: function getNewsfeedIndexed(id, start, end, opts) {
2209
+ return this.getNewsfeedIndexedWithHttpInfo(id, start, end, opts).then(function (response_and_data) {
2210
+ return response_and_data.data;
2211
+ });
2212
+ }
2213
+
2214
+ /**
2215
+ * @param {Number} id The id of the object that we are retrieving news feed items for
2216
+ * @param {Number} start
2217
+ * @param {Number} end
2218
+ * @param {Object} opts Optional parameters
2219
+ * @param {String} [authorization] The authorization token of the logged in user
2220
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2221
+ * @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
2222
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2223
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2224
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
2225
+ */
2226
+ }, {
2227
+ key: "getNewsfeedIndexedStartWithHttpInfo",
2228
+ value: function getNewsfeedIndexedStartWithHttpInfo(id, start, end, opts) {
2229
+ opts = opts || {};
2230
+ var postBody = null;
2231
+ // verify the required parameter 'id' is set
2232
+ if (id === undefined || id === null) {
2233
+ throw new Error("Missing the required parameter 'id' when calling getNewsfeedIndexedStart");
2234
+ }
2235
+ // verify the required parameter 'start' is set
2236
+ if (start === undefined || start === null) {
2237
+ throw new Error("Missing the required parameter 'start' when calling getNewsfeedIndexedStart");
2238
+ }
2239
+ // verify the required parameter 'end' is set
2240
+ if (end === undefined || end === null) {
2241
+ throw new Error("Missing the required parameter 'end' when calling getNewsfeedIndexedStart");
2242
+ }
2243
+ var pathParams = {
2244
+ 'id': id,
2245
+ 'start': start,
2246
+ 'end': end
2247
+ };
2248
+ var queryParams = {};
2249
+ var headerParams = {
2250
+ 'Authorization': opts['authorization'],
2251
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2252
+ 'zeusportal-postas': opts['zeusportalPostas'],
2253
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2254
+ 'transactionid': opts['transactionid']
2255
+ };
2256
+ var formParams = {};
2257
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2258
+ var contentTypes = [];
2259
+ var accepts = ['application/json'];
2260
+ var returnType = _PurgeDataDefaultResponseValue["default"];
2261
+ return this.apiClient.callApi('/graph/data/object/{id}/newsfeed/{start}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2262
+ }
2263
+
2264
+ /**
2265
+ * @param {Number} id The id of the object that we are retrieving news feed items for
2266
+ * @param {Number} start
2267
+ * @param {Number} end
2268
+ * @param {Object} opts Optional parameters
2269
+ * @param {String} opts.authorization The authorization token of the logged in user
2270
+ * @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
2271
+ * @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
2272
+ * @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
2273
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2274
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
2275
+ */
2276
+ }, {
2277
+ key: "getNewsfeedIndexedStart",
2278
+ value: function getNewsfeedIndexedStart(id, start, end, opts) {
2279
+ return this.getNewsfeedIndexedStartWithHttpInfo(id, start, end, opts).then(function (response_and_data) {
2280
+ return response_and_data.data;
2281
+ });
2282
+ }
2283
+
2284
+ /**
2285
+ * Gets object by id
2286
+ * @param {Number} id The id of the object that we are retreiving
2287
+ * @param {Object} opts Optional parameters
2288
+ * @param {String} [authorization] The authorization token of the logged in user
2289
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2290
+ * @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
2291
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2292
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2293
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GraphObjectSchema} and HTTP response
2294
+ */
2295
+ }, {
2296
+ key: "getObjectByIdWithHttpInfo",
2297
+ value: function getObjectByIdWithHttpInfo(id, opts) {
2298
+ opts = opts || {};
2299
+ var postBody = null;
2300
+ // verify the required parameter 'id' is set
2301
+ if (id === undefined || id === null) {
2302
+ throw new Error("Missing the required parameter 'id' when calling getObjectById");
2303
+ }
2304
+ var pathParams = {
2305
+ 'id': id
2306
+ };
2307
+ var queryParams = {};
2308
+ var headerParams = {
2309
+ 'Authorization': opts['authorization'],
2310
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2311
+ 'zeusportal-postas': opts['zeusportalPostas'],
2312
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2313
+ 'transactionid': opts['transactionid']
2314
+ };
2315
+ var formParams = {};
2316
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2317
+ var contentTypes = [];
2318
+ var accepts = ['application/json'];
2319
+ var returnType = _GraphObjectSchema["default"];
2320
+ return this.apiClient.callApi('/graph/data/object/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2321
+ }
2322
+
2323
+ /**
2324
+ * Gets object by id
2325
+ * @param {Number} id The id of the object that we are retreiving
2326
+ * @param {Object} opts Optional parameters
2327
+ * @param {String} opts.authorization The authorization token of the logged in user
2328
+ * @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
2329
+ * @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
2330
+ * @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
2331
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2332
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphObjectSchema}
2333
+ */
2334
+ }, {
2335
+ key: "getObjectById",
2336
+ value: function getObjectById(id, opts) {
2337
+ return this.getObjectByIdWithHttpInfo(id, opts).then(function (response_and_data) {
2338
+ return response_and_data.data;
2339
+ });
2340
+ }
2341
+
2342
+ /**
2343
+ * Get Object By Key
2344
+ * Get An Object By it's key identifier
2345
+ * @param {String} key The unique key of the object we are retrieving
2346
+ * @param {Object} opts Optional parameters
2347
+ * @param {String} [authorization] The authorization token of the logged in user
2348
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2349
+ * @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
2350
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2351
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2352
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GraphObjectSchema} and HTTP response
2353
+ */
2354
+ }, {
2355
+ key: "getObjectByKeyWithHttpInfo",
2356
+ value: function getObjectByKeyWithHttpInfo(key, opts) {
2357
+ opts = opts || {};
2358
+ var postBody = null;
2359
+ // verify the required parameter 'key' is set
2360
+ if (key === undefined || key === null) {
2361
+ throw new Error("Missing the required parameter 'key' when calling getObjectByKey");
2362
+ }
2363
+ var pathParams = {
2364
+ 'key': key
2365
+ };
2366
+ var queryParams = {};
2367
+ var headerParams = {
2368
+ 'Authorization': opts['authorization'],
2369
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2370
+ 'zeusportal-postas': opts['zeusportalPostas'],
2371
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2372
+ 'transactionid': opts['transactionid']
2373
+ };
2374
+ var formParams = {};
2375
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2376
+ var contentTypes = [];
2377
+ var accepts = ['application/json'];
2378
+ var returnType = _GraphObjectSchema["default"];
2379
+ return this.apiClient.callApi('/graph/data/object/{key}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2380
+ }
2381
+
2382
+ /**
2383
+ * Get Object By Key
2384
+ * Get An Object By it's key identifier
2385
+ * @param {String} key The unique key of the object we are retrieving
2386
+ * @param {Object} opts Optional parameters
2387
+ * @param {String} opts.authorization The authorization token of the logged in user
2388
+ * @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
2389
+ * @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
2390
+ * @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
2391
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2392
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphObjectSchema}
2393
+ */
2394
+ }, {
2395
+ key: "getObjectByKey",
2396
+ value: function getObjectByKey(key, opts) {
2397
+ return this.getObjectByKeyWithHttpInfo(key, opts).then(function (response_and_data) {
2398
+ return response_and_data.data;
2399
+ });
2400
+ }
2401
+
2402
+ /**
2403
+ * Get Object From Schema
2404
+ * Get the object representation of the Graph Schema
2405
+ * @param {String} schemakey The unique id of the graph schema we are retrieving
2406
+ * @param {Object} opts Optional parameters
2407
+ * @param {String} [authorization] The authorization token of the logged in user
2408
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2409
+ * @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
2410
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2411
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2412
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GraphObjectSchema} and HTTP response
2413
+ */
2414
+ }, {
2415
+ key: "getObjectFromSchemaWithHttpInfo",
2416
+ value: function getObjectFromSchemaWithHttpInfo(schemakey, opts) {
2417
+ opts = opts || {};
2418
+ var postBody = null;
2419
+ // verify the required parameter 'schemakey' is set
2420
+ if (schemakey === undefined || schemakey === null) {
2421
+ throw new Error("Missing the required parameter 'schemakey' when calling getObjectFromSchema");
2422
+ }
2423
+ var pathParams = {
2424
+ 'schemakey': schemakey
2425
+ };
2426
+ var queryParams = {};
2427
+ var headerParams = {
2428
+ 'Authorization': opts['authorization'],
2429
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2430
+ 'zeusportal-postas': opts['zeusportalPostas'],
2431
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2432
+ 'transactionid': opts['transactionid']
2433
+ };
2434
+ var formParams = {};
2435
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2436
+ var contentTypes = [];
2437
+ var accepts = ['application/json'];
2438
+ var returnType = _GraphObjectSchema["default"];
2439
+ return this.apiClient.callApi('/graph/data/object/schema/{schemakey}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2440
+ }
2441
+
2442
+ /**
2443
+ * Get Object From Schema
2444
+ * Get the object representation of the Graph Schema
2445
+ * @param {String} schemakey The unique id of the graph schema we are retrieving
2446
+ * @param {Object} opts Optional parameters
2447
+ * @param {String} opts.authorization The authorization token of the logged in user
2448
+ * @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
2449
+ * @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
2450
+ * @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
2451
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2452
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphObjectSchema}
2453
+ */
2454
+ }, {
2455
+ key: "getObjectFromSchema",
2456
+ value: function getObjectFromSchema(schemakey, opts) {
2457
+ return this.getObjectFromSchemaWithHttpInfo(schemakey, opts).then(function (response_and_data) {
2458
+ return response_and_data.data;
2459
+ });
2460
+ }
2461
+
2462
+ /**
2463
+ * Get Properties
2464
+ * Get all properties attached to an object
2465
+ * @param {Number} id The id of the object whose properties we are retrieve
2466
+ * @param {Object} opts Optional parameters
2467
+ * @param {String} [authorization] The authorization token of the logged in user
2468
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2469
+ * @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
2470
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2471
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2472
+ * @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
2473
+ */
2474
+ }, {
2475
+ key: "getObjectPropertiesWithHttpInfo",
2476
+ value: function getObjectPropertiesWithHttpInfo(id, opts) {
2477
+ opts = opts || {};
2478
+ var postBody = null;
2479
+ // verify the required parameter 'id' is set
2480
+ if (id === undefined || id === null) {
2481
+ throw new Error("Missing the required parameter 'id' when calling getObjectProperties");
2482
+ }
2483
+ var pathParams = {
2484
+ 'id': id
2485
+ };
2486
+ var queryParams = {};
2487
+ var headerParams = {
2488
+ 'Authorization': opts['authorization'],
2489
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2490
+ 'zeusportal-postas': opts['zeusportalPostas'],
2491
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2492
+ 'transactionid': opts['transactionid']
2493
+ };
2494
+ var formParams = {};
2495
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2496
+ var contentTypes = [];
2497
+ var accepts = ['application/json'];
2498
+ var returnType = {
2499
+ 'String': _PurgeDataDefaultResponseValue["default"]
2500
+ };
2501
+ return this.apiClient.callApi('/graph/data/object/{id}/properties', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2502
+ }
2503
+
2504
+ /**
2505
+ * Get Properties
2506
+ * Get all properties attached to an object
2507
+ * @param {Number} id The id of the object whose properties we are retrieve
2508
+ * @param {Object} opts Optional parameters
2509
+ * @param {String} opts.authorization The authorization token of the logged in user
2510
+ * @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
2511
+ * @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
2512
+ * @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
2513
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2514
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>}
2515
+ */
2516
+ }, {
2517
+ key: "getObjectProperties",
2518
+ value: function getObjectProperties(id, opts) {
2519
+ return this.getObjectPropertiesWithHttpInfo(id, opts).then(function (response_and_data) {
2520
+ return response_and_data.data;
2521
+ });
2522
+ }
2523
+
2524
+ /**
2525
+ * Get Property
2526
+ * Get a single property attached to an object
2527
+ * @param {Number} id The id of the object whose properties we are retrieve
2528
+ * @param {String} prop The property is retrieving
2529
+ * @param {Object} opts Optional parameters
2530
+ * @param {String} [authorization] The authorization token of the logged in user
2531
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2532
+ * @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
2533
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2534
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2535
+ * @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
2536
+ */
2537
+ }, {
2538
+ key: "getObjectPropertyWithHttpInfo",
2539
+ value: function getObjectPropertyWithHttpInfo(id, prop, opts) {
2540
+ opts = opts || {};
2541
+ var postBody = null;
2542
+ // verify the required parameter 'id' is set
2543
+ if (id === undefined || id === null) {
2544
+ throw new Error("Missing the required parameter 'id' when calling getObjectProperty");
2545
+ }
2546
+ // verify the required parameter 'prop' is set
2547
+ if (prop === undefined || prop === null) {
2548
+ throw new Error("Missing the required parameter 'prop' when calling getObjectProperty");
2549
+ }
2550
+ var pathParams = {
2551
+ 'id': id,
2552
+ 'prop': prop
2553
+ };
2554
+ var queryParams = {};
2555
+ var headerParams = {
2556
+ 'Authorization': opts['authorization'],
2557
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2558
+ 'zeusportal-postas': opts['zeusportalPostas'],
2559
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2560
+ 'transactionid': opts['transactionid']
2561
+ };
2562
+ var formParams = {};
2563
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2564
+ var contentTypes = [];
2565
+ var accepts = ['application/json'];
2566
+ var returnType = {
2567
+ 'String': _PurgeDataDefaultResponseValue["default"]
2568
+ };
2569
+ return this.apiClient.callApi('/graph/data/object/{id}/properties/{prop}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2570
+ }
2571
+
2572
+ /**
2573
+ * Get Property
2574
+ * Get a single property attached to an object
2575
+ * @param {Number} id The id of the object whose properties we are retrieve
2576
+ * @param {String} prop The property is retrieving
2577
+ * @param {Object} opts Optional parameters
2578
+ * @param {String} opts.authorization The authorization token of the logged in user
2579
+ * @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
2580
+ * @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
2581
+ * @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
2582
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2583
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>}
2584
+ */
2585
+ }, {
2586
+ key: "getObjectProperty",
2587
+ value: function getObjectProperty(id, prop, opts) {
2588
+ return this.getObjectPropertyWithHttpInfo(id, prop, opts).then(function (response_and_data) {
2589
+ return response_and_data.data;
2590
+ });
2591
+ }
2592
+
2593
+ /**
2594
+ * Get objects in the graph
2595
+ * @param {Number} id
2596
+ * @param {Object} opts Optional parameters
2597
+ * @param {String} [authorization] The authorization token of the logged in user
2598
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2599
+ * @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
2600
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2601
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2602
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphObjectSchema>} and HTTP response
2603
+ */
2604
+ }, {
2605
+ key: "getObjectsInGraphWithHttpInfo",
2606
+ value: function getObjectsInGraphWithHttpInfo(id, opts) {
2607
+ opts = opts || {};
2608
+ var postBody = null;
2609
+ // verify the required parameter 'id' is set
2610
+ if (id === undefined || id === null) {
2611
+ throw new Error("Missing the required parameter 'id' when calling getObjectsInGraph");
2612
+ }
2613
+ var pathParams = {
2614
+ 'id': id
2615
+ };
2616
+ var queryParams = {};
2617
+ var headerParams = {
2618
+ 'Authorization': opts['authorization'],
2619
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2620
+ 'zeusportal-postas': opts['zeusportalPostas'],
2621
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2622
+ 'transactionid': opts['transactionid']
2623
+ };
2624
+ var formParams = {};
2625
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2626
+ var contentTypes = [];
2627
+ var accepts = ['application/json'];
2628
+ var returnType = [_GraphObjectSchema["default"]];
2629
+ return this.apiClient.callApi('/graph/data/graph/{id}/objects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2630
+ }
2631
+
2632
+ /**
2633
+ * Get objects in the graph
2634
+ * @param {Number} id
2635
+ * @param {Object} opts Optional parameters
2636
+ * @param {String} opts.authorization The authorization token of the logged in user
2637
+ * @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
2638
+ * @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
2639
+ * @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
2640
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2641
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphObjectSchema>}
2642
+ */
2643
+ }, {
2644
+ key: "getObjectsInGraph",
2645
+ value: function getObjectsInGraph(id, opts) {
2646
+ return this.getObjectsInGraphWithHttpInfo(id, opts).then(function (response_and_data) {
2647
+ return response_and_data.data;
2648
+ });
2649
+ }
2650
+
2651
+ /**
2652
+ * Get objects in the graph with the given tag
2653
+ * @param {Number} id
2654
+ * @param {String} tag
2655
+ * @param {Object} opts Optional parameters
2656
+ * @param {String} [authorization] The authorization token of the logged in user
2657
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2658
+ * @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
2659
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2660
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2661
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphObjectSchema>} and HTTP response
2662
+ */
2663
+ }, {
2664
+ key: "getObjectsInGraphByTagWithHttpInfo",
2665
+ value: function getObjectsInGraphByTagWithHttpInfo(id, tag, opts) {
2666
+ opts = opts || {};
2667
+ var postBody = null;
2668
+ // verify the required parameter 'id' is set
2669
+ if (id === undefined || id === null) {
2670
+ throw new Error("Missing the required parameter 'id' when calling getObjectsInGraphByTag");
2671
+ }
2672
+ // verify the required parameter 'tag' is set
2673
+ if (tag === undefined || tag === null) {
2674
+ throw new Error("Missing the required parameter 'tag' when calling getObjectsInGraphByTag");
2675
+ }
2676
+ var pathParams = {
2677
+ 'id': id,
2678
+ 'tag': tag
2679
+ };
2680
+ var queryParams = {};
2681
+ var headerParams = {
2682
+ 'Authorization': opts['authorization'],
2683
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2684
+ 'zeusportal-postas': opts['zeusportalPostas'],
2685
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2686
+ 'transactionid': opts['transactionid']
2687
+ };
2688
+ var formParams = {};
2689
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2690
+ var contentTypes = [];
2691
+ var accepts = ['application/json'];
2692
+ var returnType = [_GraphObjectSchema["default"]];
2693
+ return this.apiClient.callApi('/graph/data/graph/{id}/objects/tag/{tag}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2694
+ }
2695
+
2696
+ /**
2697
+ * Get objects in the graph with the given tag
2698
+ * @param {Number} id
2699
+ * @param {String} tag
2700
+ * @param {Object} opts Optional parameters
2701
+ * @param {String} opts.authorization The authorization token of the logged in user
2702
+ * @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
2703
+ * @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
2704
+ * @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
2705
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2706
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphObjectSchema>}
2707
+ */
2708
+ }, {
2709
+ key: "getObjectsInGraphByTag",
2710
+ value: function getObjectsInGraphByTag(id, tag, opts) {
2711
+ return this.getObjectsInGraphByTagWithHttpInfo(id, tag, opts).then(function (response_and_data) {
2712
+ return response_and_data.data;
2713
+ });
2714
+ }
2715
+
2716
+ /**
2717
+ * Get objects in the graph with the given object type
2718
+ * @param {Number} id
2719
+ * @param {String} type
2720
+ * @param {Object} opts Optional parameters
2721
+ * @param {String} [authorization] The authorization token of the logged in user
2722
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2723
+ * @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
2724
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2725
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2726
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphObjectSchema>} and HTTP response
2727
+ */
2728
+ }, {
2729
+ key: "getObjectsInGraphByTypeWithHttpInfo",
2730
+ value: function getObjectsInGraphByTypeWithHttpInfo(id, type, opts) {
2731
+ opts = opts || {};
2732
+ var postBody = null;
2733
+ // verify the required parameter 'id' is set
2734
+ if (id === undefined || id === null) {
2735
+ throw new Error("Missing the required parameter 'id' when calling getObjectsInGraphByType");
2736
+ }
2737
+ // verify the required parameter 'type' is set
2738
+ if (type === undefined || type === null) {
2739
+ throw new Error("Missing the required parameter 'type' when calling getObjectsInGraphByType");
2740
+ }
2741
+ var pathParams = {
2742
+ 'id': id,
2743
+ 'type': type
2744
+ };
2745
+ var queryParams = {};
2746
+ var headerParams = {
2747
+ 'Authorization': opts['authorization'],
2748
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2749
+ 'zeusportal-postas': opts['zeusportalPostas'],
2750
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2751
+ 'transactionid': opts['transactionid']
2752
+ };
2753
+ var formParams = {};
2754
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2755
+ var contentTypes = [];
2756
+ var accepts = ['application/json'];
2757
+ var returnType = [_GraphObjectSchema["default"]];
2758
+ return this.apiClient.callApi('/graph/data/graph/{id}/objects/type/{type}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2759
+ }
2760
+
2761
+ /**
2762
+ * Get objects in the graph with the given object type
2763
+ * @param {Number} id
2764
+ * @param {String} type
2765
+ * @param {Object} opts Optional parameters
2766
+ * @param {String} opts.authorization The authorization token of the logged in user
2767
+ * @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
2768
+ * @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
2769
+ * @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
2770
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2771
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphObjectSchema>}
2772
+ */
2773
+ }, {
2774
+ key: "getObjectsInGraphByType",
2775
+ value: function getObjectsInGraphByType(id, type, opts) {
2776
+ return this.getObjectsInGraphByTypeWithHttpInfo(id, type, opts).then(function (response_and_data) {
2777
+ return response_and_data.data;
2778
+ });
2779
+ }
2780
+
2781
+ /**
2782
+ * Get Related Objects
2783
+ * Get Related Objects by relationship type
2784
+ * @param {Number} objectid The id of the object that we are retreiving related objects from
2785
+ * @param {Number} reltypeid The relationship type id
2786
+ * @param {Object} opts Optional parameters
2787
+ * @param {String} [authorization] The authorization token of the logged in user
2788
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2789
+ * @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
2790
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2791
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2792
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphObjectSchema>} and HTTP response
2793
+ */
2794
+ }, {
2795
+ key: "getRelatedObjectsWithHttpInfo",
2796
+ value: function getRelatedObjectsWithHttpInfo(objectid, reltypeid, opts) {
2797
+ opts = opts || {};
2798
+ var postBody = null;
2799
+ // verify the required parameter 'objectid' is set
2800
+ if (objectid === undefined || objectid === null) {
2801
+ throw new Error("Missing the required parameter 'objectid' when calling getRelatedObjects");
2802
+ }
2803
+ // verify the required parameter 'reltypeid' is set
2804
+ if (reltypeid === undefined || reltypeid === null) {
2805
+ throw new Error("Missing the required parameter 'reltypeid' when calling getRelatedObjects");
2806
+ }
2807
+ var pathParams = {
2808
+ 'objectid': objectid,
2809
+ 'reltypeid': reltypeid
2810
+ };
2811
+ var queryParams = {};
2812
+ var headerParams = {
2813
+ 'Authorization': opts['authorization'],
2814
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2815
+ 'zeusportal-postas': opts['zeusportalPostas'],
2816
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2817
+ 'transactionid': opts['transactionid']
2818
+ };
2819
+ var formParams = {};
2820
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2821
+ var contentTypes = [];
2822
+ var accepts = ['application/json'];
2823
+ var returnType = [_GraphObjectSchema["default"]];
2824
+ return this.apiClient.callApi('/graph/data/object/{id}/relatedobjects/{reltypeid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2825
+ }
2826
+
2827
+ /**
2828
+ * Get Related Objects
2829
+ * Get Related Objects by relationship type
2830
+ * @param {Number} objectid The id of the object that we are retreiving related objects from
2831
+ * @param {Number} reltypeid The relationship type id
2832
+ * @param {Object} opts Optional parameters
2833
+ * @param {String} opts.authorization The authorization token of the logged in user
2834
+ * @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
2835
+ * @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
2836
+ * @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
2837
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2838
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphObjectSchema>}
2839
+ */
2840
+ }, {
2841
+ key: "getRelatedObjects",
2842
+ value: function getRelatedObjects(objectid, reltypeid, opts) {
2843
+ return this.getRelatedObjectsWithHttpInfo(objectid, reltypeid, opts).then(function (response_and_data) {
2844
+ return response_and_data.data;
2845
+ });
2846
+ }
2847
+
2848
+ /**
2849
+ * Get Related Objects
2850
+ * Get Related Objects from incoming relationships by relationship type
2851
+ * @param {Number} objectid The id of the object that we are retreiving related objects from
2852
+ * @param {Number} reltypeid The relationship type id
2853
+ * @param {Object} opts Optional parameters
2854
+ * @param {String} [authorization] The authorization token of the logged in user
2855
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2856
+ * @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
2857
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2858
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2859
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphObjectSchema>} and HTTP response
2860
+ */
2861
+ }, {
2862
+ key: "getRelatedObjectsInWithHttpInfo",
2863
+ value: function getRelatedObjectsInWithHttpInfo(objectid, reltypeid, opts) {
2864
+ opts = opts || {};
2865
+ var postBody = null;
2866
+ // verify the required parameter 'objectid' is set
2867
+ if (objectid === undefined || objectid === null) {
2868
+ throw new Error("Missing the required parameter 'objectid' when calling getRelatedObjectsIn");
2869
+ }
2870
+ // verify the required parameter 'reltypeid' is set
2871
+ if (reltypeid === undefined || reltypeid === null) {
2872
+ throw new Error("Missing the required parameter 'reltypeid' when calling getRelatedObjectsIn");
2873
+ }
2874
+ var pathParams = {
2875
+ 'objectid': objectid,
2876
+ 'reltypeid': reltypeid
2877
+ };
2878
+ var queryParams = {};
2879
+ var headerParams = {
2880
+ 'Authorization': opts['authorization'],
2881
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2882
+ 'zeusportal-postas': opts['zeusportalPostas'],
2883
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2884
+ 'transactionid': opts['transactionid']
2885
+ };
2886
+ var formParams = {};
2887
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2888
+ var contentTypes = [];
2889
+ var accepts = ['application/json'];
2890
+ var returnType = [_GraphObjectSchema["default"]];
2891
+ return this.apiClient.callApi('/graph/data/object/{id}/relatedobjects/{reltypeid}/in', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2892
+ }
2893
+
2894
+ /**
2895
+ * Get Related Objects
2896
+ * Get Related Objects from incoming relationships by relationship type
2897
+ * @param {Number} objectid The id of the object that we are retreiving related objects from
2898
+ * @param {Number} reltypeid The relationship type id
2899
+ * @param {Object} opts Optional parameters
2900
+ * @param {String} opts.authorization The authorization token of the logged in user
2901
+ * @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
2902
+ * @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
2903
+ * @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
2904
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2905
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphObjectSchema>}
2906
+ */
2907
+ }, {
2908
+ key: "getRelatedObjectsIn",
2909
+ value: function getRelatedObjectsIn(objectid, reltypeid, opts) {
2910
+ return this.getRelatedObjectsInWithHttpInfo(objectid, reltypeid, opts).then(function (response_and_data) {
2911
+ return response_and_data.data;
2912
+ });
2913
+ }
2914
+
2915
+ /**
2916
+ * Get Related Objects
2917
+ * Get Related Objects from outgoing relationships by relationship type
2918
+ * @param {Number} objectid The id of the object that we are retrieving the related objects from
2919
+ * @param {Number} reltypeid The relationship type id
2920
+ * @param {Object} opts Optional parameters
2921
+ * @param {String} [authorization] The authorization token of the logged in user
2922
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2923
+ * @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
2924
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2925
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2926
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphObjectSchema>} and HTTP response
2927
+ */
2928
+ }, {
2929
+ key: "getRelatedObjectsOutWithHttpInfo",
2930
+ value: function getRelatedObjectsOutWithHttpInfo(objectid, reltypeid, opts) {
2931
+ opts = opts || {};
2932
+ var postBody = null;
2933
+ // verify the required parameter 'objectid' is set
2934
+ if (objectid === undefined || objectid === null) {
2935
+ throw new Error("Missing the required parameter 'objectid' when calling getRelatedObjectsOut");
2936
+ }
2937
+ // verify the required parameter 'reltypeid' is set
2938
+ if (reltypeid === undefined || reltypeid === null) {
2939
+ throw new Error("Missing the required parameter 'reltypeid' when calling getRelatedObjectsOut");
2940
+ }
2941
+ var pathParams = {
2942
+ 'objectid': objectid,
2943
+ 'reltypeid': reltypeid
2944
+ };
2945
+ var queryParams = {};
2946
+ var headerParams = {
2947
+ 'Authorization': opts['authorization'],
2948
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
2949
+ 'zeusportal-postas': opts['zeusportalPostas'],
2950
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
2951
+ 'transactionid': opts['transactionid']
2952
+ };
2953
+ var formParams = {};
2954
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
2955
+ var contentTypes = [];
2956
+ var accepts = ['application/json'];
2957
+ var returnType = [_GraphObjectSchema["default"]];
2958
+ return this.apiClient.callApi('/graph/data/object/{id}/relatedobjects/{reltypeid}/out', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2959
+ }
2960
+
2961
+ /**
2962
+ * Get Related Objects
2963
+ * Get Related Objects from outgoing relationships by relationship type
2964
+ * @param {Number} objectid The id of the object that we are retrieving the related objects from
2965
+ * @param {Number} reltypeid The relationship type id
2966
+ * @param {Object} opts Optional parameters
2967
+ * @param {String} opts.authorization The authorization token of the logged in user
2968
+ * @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
2969
+ * @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
2970
+ * @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
2971
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
2972
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphObjectSchema>}
2973
+ */
2974
+ }, {
2975
+ key: "getRelatedObjectsOut",
2976
+ value: function getRelatedObjectsOut(objectid, reltypeid, opts) {
2977
+ return this.getRelatedObjectsOutWithHttpInfo(objectid, reltypeid, opts).then(function (response_and_data) {
2978
+ return response_and_data.data;
2979
+ });
2980
+ }
2981
+
2982
+ /**
2983
+ * Get Incoming Relationships By Type
2984
+ * Returns a listing of relationships
2985
+ * @param {Number} id The id of the object that we are retrieving relationships on
2986
+ * @param {Number} reltypeid The id of the relationship type we are searching for
2987
+ * @param {Object} opts Optional parameters
2988
+ * @param {String} [authorization] The authorization token of the logged in user
2989
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
2990
+ * @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
2991
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
2992
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
2993
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphRelationship>} and HTTP response
2994
+ */
2995
+ }, {
2996
+ key: "getRelationshipsByTypeInWithHttpInfo",
2997
+ value: function getRelationshipsByTypeInWithHttpInfo(id, reltypeid, opts) {
2998
+ opts = opts || {};
2999
+ var postBody = null;
3000
+ // verify the required parameter 'id' is set
3001
+ if (id === undefined || id === null) {
3002
+ throw new Error("Missing the required parameter 'id' when calling getRelationshipsByTypeIn");
3003
+ }
3004
+ // verify the required parameter 'reltypeid' is set
3005
+ if (reltypeid === undefined || reltypeid === null) {
3006
+ throw new Error("Missing the required parameter 'reltypeid' when calling getRelationshipsByTypeIn");
3007
+ }
3008
+ var pathParams = {
3009
+ 'id': id,
3010
+ 'reltypeid': reltypeid
3011
+ };
3012
+ var queryParams = {};
3013
+ var headerParams = {
3014
+ 'Authorization': opts['authorization'],
3015
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3016
+ 'zeusportal-postas': opts['zeusportalPostas'],
3017
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3018
+ 'transactionid': opts['transactionid']
3019
+ };
3020
+ var formParams = {};
3021
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3022
+ var contentTypes = [];
3023
+ var accepts = ['application/json'];
3024
+ var returnType = [_GraphRelationship["default"]];
3025
+ return this.apiClient.callApi('/graph/data/object/{id}/relationships/in/{reltypeid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3026
+ }
3027
+
3028
+ /**
3029
+ * Get Incoming Relationships By Type
3030
+ * Returns a listing of relationships
3031
+ * @param {Number} id The id of the object that we are retrieving relationships on
3032
+ * @param {Number} reltypeid The id of the relationship type we are searching for
3033
+ * @param {Object} opts Optional parameters
3034
+ * @param {String} opts.authorization The authorization token of the logged in user
3035
+ * @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
3036
+ * @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
3037
+ * @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
3038
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3039
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphRelationship>}
3040
+ */
3041
+ }, {
3042
+ key: "getRelationshipsByTypeIn",
3043
+ value: function getRelationshipsByTypeIn(id, reltypeid, opts) {
3044
+ return this.getRelationshipsByTypeInWithHttpInfo(id, reltypeid, opts).then(function (response_and_data) {
3045
+ return response_and_data.data;
3046
+ });
3047
+ }
3048
+
3049
+ /**
3050
+ * Get Outgoing Relationships By Type
3051
+ * Returns a listing of relationships
3052
+ * @param {Number} id The id of the object that we are retrieving relationships on
3053
+ * @param {Number} reltypeid The id of the relationship type we are searching for
3054
+ * @param {Object} opts Optional parameters
3055
+ * @param {String} [authorization] The authorization token of the logged in user
3056
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3057
+ * @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
3058
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3059
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3060
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphRelationship>} and HTTP response
3061
+ */
3062
+ }, {
3063
+ key: "getRelationshipsByTypeOutWithHttpInfo",
3064
+ value: function getRelationshipsByTypeOutWithHttpInfo(id, reltypeid, opts) {
3065
+ opts = opts || {};
3066
+ var postBody = null;
3067
+ // verify the required parameter 'id' is set
3068
+ if (id === undefined || id === null) {
3069
+ throw new Error("Missing the required parameter 'id' when calling getRelationshipsByTypeOut");
3070
+ }
3071
+ // verify the required parameter 'reltypeid' is set
3072
+ if (reltypeid === undefined || reltypeid === null) {
3073
+ throw new Error("Missing the required parameter 'reltypeid' when calling getRelationshipsByTypeOut");
3074
+ }
3075
+ var pathParams = {
3076
+ 'id': id,
3077
+ 'reltypeid': reltypeid
3078
+ };
3079
+ var queryParams = {};
3080
+ var headerParams = {
3081
+ 'Authorization': opts['authorization'],
3082
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3083
+ 'zeusportal-postas': opts['zeusportalPostas'],
3084
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3085
+ 'transactionid': opts['transactionid']
3086
+ };
3087
+ var formParams = {};
3088
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3089
+ var contentTypes = [];
3090
+ var accepts = ['application/json'];
3091
+ var returnType = [_GraphRelationship["default"]];
3092
+ return this.apiClient.callApi('/graph/data/object/{id}/relationships/out/{reltypeid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3093
+ }
3094
+
3095
+ /**
3096
+ * Get Outgoing Relationships By Type
3097
+ * Returns a listing of relationships
3098
+ * @param {Number} id The id of the object that we are retrieving relationships on
3099
+ * @param {Number} reltypeid The id of the relationship type we are searching for
3100
+ * @param {Object} opts Optional parameters
3101
+ * @param {String} opts.authorization The authorization token of the logged in user
3102
+ * @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
3103
+ * @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
3104
+ * @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
3105
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3106
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphRelationship>}
3107
+ */
3108
+ }, {
3109
+ key: "getRelationshipsByTypeOut",
3110
+ value: function getRelationshipsByTypeOut(id, reltypeid, opts) {
3111
+ return this.getRelationshipsByTypeOutWithHttpInfo(id, reltypeid, opts).then(function (response_and_data) {
3112
+ return response_and_data.data;
3113
+ });
3114
+ }
3115
+
3116
+ /**
3117
+ * Get Incoming Relationships
3118
+ * Returns a listing of relationships
3119
+ * @param {Number} id The id of the object that we are retrieving relationships on
3120
+ * @param {Object} opts Optional parameters
3121
+ * @param {String} [authorization] The authorization token of the logged in user
3122
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3123
+ * @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
3124
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3125
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3126
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphRelationship>} and HTTP response
3127
+ */
3128
+ }, {
3129
+ key: "getRelationshipsInWithHttpInfo",
3130
+ value: function getRelationshipsInWithHttpInfo(id, opts) {
3131
+ opts = opts || {};
3132
+ var postBody = null;
3133
+ // verify the required parameter 'id' is set
3134
+ if (id === undefined || id === null) {
3135
+ throw new Error("Missing the required parameter 'id' when calling getRelationshipsIn");
3136
+ }
3137
+ var pathParams = {
3138
+ 'id': id
3139
+ };
3140
+ var queryParams = {};
3141
+ var headerParams = {
3142
+ 'Authorization': opts['authorization'],
3143
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3144
+ 'zeusportal-postas': opts['zeusportalPostas'],
3145
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3146
+ 'transactionid': opts['transactionid']
3147
+ };
3148
+ var formParams = {};
3149
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3150
+ var contentTypes = [];
3151
+ var accepts = ['application/json'];
3152
+ var returnType = [_GraphRelationship["default"]];
3153
+ return this.apiClient.callApi('/graph/data/object/{id}/relationships/in', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3154
+ }
3155
+
3156
+ /**
3157
+ * Get Incoming Relationships
3158
+ * Returns a listing of relationships
3159
+ * @param {Number} id The id of the object that we are retrieving relationships on
3160
+ * @param {Object} opts Optional parameters
3161
+ * @param {String} opts.authorization The authorization token of the logged in user
3162
+ * @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
3163
+ * @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
3164
+ * @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
3165
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3166
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphRelationship>}
3167
+ */
3168
+ }, {
3169
+ key: "getRelationshipsIn",
3170
+ value: function getRelationshipsIn(id, opts) {
3171
+ return this.getRelationshipsInWithHttpInfo(id, opts).then(function (response_and_data) {
3172
+ return response_and_data.data;
3173
+ });
3174
+ }
3175
+
3176
+ /**
3177
+ * Get Outgoing Relationships
3178
+ * Returns a listing of relationships
3179
+ * @param {Number} id The id of the object that we are retrieving relationships on
3180
+ * @param {Object} opts Optional parameters
3181
+ * @param {String} [authorization] The authorization token of the logged in user
3182
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3183
+ * @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
3184
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3185
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3186
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphRelationship>} and HTTP response
3187
+ */
3188
+ }, {
3189
+ key: "getRelationshipsOutWithHttpInfo",
3190
+ value: function getRelationshipsOutWithHttpInfo(id, opts) {
3191
+ opts = opts || {};
3192
+ var postBody = null;
3193
+ // verify the required parameter 'id' is set
3194
+ if (id === undefined || id === null) {
3195
+ throw new Error("Missing the required parameter 'id' when calling getRelationshipsOut");
3196
+ }
3197
+ var pathParams = {
3198
+ 'id': id
3199
+ };
3200
+ var queryParams = {};
3201
+ var headerParams = {
3202
+ 'Authorization': opts['authorization'],
3203
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3204
+ 'zeusportal-postas': opts['zeusportalPostas'],
3205
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3206
+ 'transactionid': opts['transactionid']
3207
+ };
3208
+ var formParams = {};
3209
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3210
+ var contentTypes = [];
3211
+ var accepts = ['application/json'];
3212
+ var returnType = [_GraphRelationship["default"]];
3213
+ return this.apiClient.callApi('/graph/data/object/{id}/relationships/out', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3214
+ }
3215
+
3216
+ /**
3217
+ * Get Outgoing Relationships
3218
+ * Returns a listing of relationships
3219
+ * @param {Number} id The id of the object that we are retrieving relationships on
3220
+ * @param {Object} opts Optional parameters
3221
+ * @param {String} opts.authorization The authorization token of the logged in user
3222
+ * @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
3223
+ * @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
3224
+ * @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
3225
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3226
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphRelationship>}
3227
+ */
3228
+ }, {
3229
+ key: "getRelationshipsOut",
3230
+ value: function getRelationshipsOut(id, opts) {
3231
+ return this.getRelationshipsOutWithHttpInfo(id, opts).then(function (response_and_data) {
3232
+ return response_and_data.data;
3233
+ });
3234
+ }
3235
+
3236
+ /**
3237
+ * @param {Number} id
3238
+ * @param {Object} opts Optional parameters
3239
+ * @param {String} [authorization] The authorization token of the logged in user
3240
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3241
+ * @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
3242
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3243
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3244
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
3245
+ */
3246
+ }, {
3247
+ key: "getTagsWithHttpInfo",
3248
+ value: function getTagsWithHttpInfo(id, opts) {
3249
+ opts = opts || {};
3250
+ var postBody = null;
3251
+ // verify the required parameter 'id' is set
3252
+ if (id === undefined || id === null) {
3253
+ throw new Error("Missing the required parameter 'id' when calling getTags");
3254
+ }
3255
+ var pathParams = {
3256
+ 'id': id
3257
+ };
3258
+ var queryParams = {};
3259
+ var headerParams = {
3260
+ 'Authorization': opts['authorization'],
3261
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3262
+ 'zeusportal-postas': opts['zeusportalPostas'],
3263
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3264
+ 'transactionid': opts['transactionid']
3265
+ };
3266
+ var formParams = {};
3267
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3268
+ var contentTypes = [];
3269
+ var accepts = ['application/json'];
3270
+ var returnType = _PurgeDataDefaultResponseValue["default"];
3271
+ return this.apiClient.callApi('/graph/data/object/{id}/tags', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3272
+ }
3273
+
3274
+ /**
3275
+ * @param {Number} id
3276
+ * @param {Object} opts Optional parameters
3277
+ * @param {String} opts.authorization The authorization token of the logged in user
3278
+ * @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
3279
+ * @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
3280
+ * @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
3281
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3282
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
3283
+ */
3284
+ }, {
3285
+ key: "getTags",
3286
+ value: function getTags(id, opts) {
3287
+ return this.getTagsWithHttpInfo(id, opts).then(function (response_and_data) {
3288
+ return response_and_data.data;
3289
+ });
3290
+ }
3291
+
3292
+ /**
3293
+ * @param {Number} id
3294
+ * @param {Object} opts Optional parameters
3295
+ * @param {String} [authorization] The authorization token of the logged in user
3296
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3297
+ * @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
3298
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3299
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3300
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<String>} and HTTP response
3301
+ */
3302
+ }, {
3303
+ key: "getUserTagsWithHttpInfo",
3304
+ value: function getUserTagsWithHttpInfo(id, opts) {
3305
+ opts = opts || {};
3306
+ var postBody = null;
3307
+ // verify the required parameter 'id' is set
3308
+ if (id === undefined || id === null) {
3309
+ throw new Error("Missing the required parameter 'id' when calling getUserTags");
3310
+ }
3311
+ var pathParams = {
3312
+ 'id': id
3313
+ };
3314
+ var queryParams = {};
3315
+ var headerParams = {
3316
+ 'Authorization': opts['authorization'],
3317
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3318
+ 'zeusportal-postas': opts['zeusportalPostas'],
3319
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3320
+ 'transactionid': opts['transactionid']
3321
+ };
3322
+ var formParams = {};
3323
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3324
+ var contentTypes = [];
3325
+ var accepts = ['application/json'];
3326
+ var returnType = ['String'];
3327
+ return this.apiClient.callApi('/graph/data/object/{id}/usertags', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3328
+ }
3329
+
3330
+ /**
3331
+ * @param {Number} id
3332
+ * @param {Object} opts Optional parameters
3333
+ * @param {String} opts.authorization The authorization token of the logged in user
3334
+ * @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
3335
+ * @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
3336
+ * @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
3337
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3338
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<String>}
3339
+ */
3340
+ }, {
3341
+ key: "getUserTags",
3342
+ value: function getUserTags(id, opts) {
3343
+ return this.getUserTagsWithHttpInfo(id, opts).then(function (response_and_data) {
3344
+ return response_and_data.data;
3345
+ });
3346
+ }
3347
+
3348
+ /**
3349
+ * @param {Number} id
3350
+ * @param {Object} opts Optional parameters
3351
+ * @param {String} [authorization] The authorization token of the logged in user
3352
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3353
+ * @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
3354
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3355
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3356
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Video>} and HTTP response
3357
+ */
3358
+ }, {
3359
+ key: "getVideosWithHttpInfo",
3360
+ value: function getVideosWithHttpInfo(id, opts) {
3361
+ opts = opts || {};
3362
+ var postBody = null;
3363
+ // verify the required parameter 'id' is set
3364
+ if (id === undefined || id === null) {
3365
+ throw new Error("Missing the required parameter 'id' when calling getVideos");
3366
+ }
3367
+ var pathParams = {
3368
+ 'id': id
3369
+ };
3370
+ var queryParams = {};
3371
+ var headerParams = {
3372
+ 'Authorization': opts['authorization'],
3373
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3374
+ 'zeusportal-postas': opts['zeusportalPostas'],
3375
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3376
+ 'transactionid': opts['transactionid']
3377
+ };
3378
+ var formParams = {};
3379
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3380
+ var contentTypes = [];
3381
+ var accepts = ['application/json'];
3382
+ var returnType = [_Video["default"]];
3383
+ return this.apiClient.callApi('/graph/data/object/{id}/videos', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3384
+ }
3385
+
3386
+ /**
3387
+ * @param {Number} id
3388
+ * @param {Object} opts Optional parameters
3389
+ * @param {String} opts.authorization The authorization token of the logged in user
3390
+ * @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
3391
+ * @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
3392
+ * @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
3393
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3394
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Video>}
3395
+ */
3396
+ }, {
3397
+ key: "getVideos",
3398
+ value: function getVideos(id, opts) {
3399
+ return this.getVideosWithHttpInfo(id, opts).then(function (response_and_data) {
3400
+ return response_and_data.data;
3401
+ });
3402
+ }
3403
+
3404
+ /**
3405
+ * Check if the user has disliked the object
3406
+ * Checks if the user has disliked the object
3407
+ * @param {Number} objectid
3408
+ * @param {Object} opts Optional parameters
3409
+ * @param {String} [authorization] The authorization token of the logged in user
3410
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3411
+ * @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
3412
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3413
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3414
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Boolean} and HTTP response
3415
+ */
3416
+ }, {
3417
+ key: "isDislikedWithHttpInfo",
3418
+ value: function isDislikedWithHttpInfo(objectid, opts) {
3419
+ opts = opts || {};
3420
+ var postBody = null;
3421
+ // verify the required parameter 'objectid' is set
3422
+ if (objectid === undefined || objectid === null) {
3423
+ throw new Error("Missing the required parameter 'objectid' when calling isDisliked");
3424
+ }
3425
+ var pathParams = {
3426
+ 'objectid': objectid
3427
+ };
3428
+ var queryParams = {};
3429
+ var headerParams = {
3430
+ 'Authorization': opts['authorization'],
3431
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3432
+ 'zeusportal-postas': opts['zeusportalPostas'],
3433
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3434
+ 'transactionid': opts['transactionid']
3435
+ };
3436
+ var formParams = {};
3437
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3438
+ var contentTypes = [];
3439
+ var accepts = ['text/plain'];
3440
+ var returnType = 'Boolean';
3441
+ return this.apiClient.callApi('/graph/data/likes/{objectid}/isdisliked', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3442
+ }
3443
+
3444
+ /**
3445
+ * Check if the user has disliked the object
3446
+ * Checks if the user has disliked the object
3447
+ * @param {Number} objectid
3448
+ * @param {Object} opts Optional parameters
3449
+ * @param {String} opts.authorization The authorization token of the logged in user
3450
+ * @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
3451
+ * @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
3452
+ * @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
3453
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3454
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Boolean}
3455
+ */
3456
+ }, {
3457
+ key: "isDisliked",
3458
+ value: function isDisliked(objectid, opts) {
3459
+ return this.isDislikedWithHttpInfo(objectid, opts).then(function (response_and_data) {
3460
+ return response_and_data.data;
3461
+ });
3462
+ }
3463
+
3464
+ /**
3465
+ * Check if the user has liked the object
3466
+ * Checks if the user has liked the object
3467
+ * @param {Number} objectid
3468
+ * @param {Object} opts Optional parameters
3469
+ * @param {String} [authorization] The authorization token of the logged in user
3470
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3471
+ * @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
3472
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3473
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3474
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Boolean} and HTTP response
3475
+ */
3476
+ }, {
3477
+ key: "isLikedWithHttpInfo",
3478
+ value: function isLikedWithHttpInfo(objectid, opts) {
3479
+ opts = opts || {};
3480
+ var postBody = null;
3481
+ // verify the required parameter 'objectid' is set
3482
+ if (objectid === undefined || objectid === null) {
3483
+ throw new Error("Missing the required parameter 'objectid' when calling isLiked");
3484
+ }
3485
+ var pathParams = {
3486
+ 'objectid': objectid
3487
+ };
3488
+ var queryParams = {};
3489
+ var headerParams = {
3490
+ 'Authorization': opts['authorization'],
3491
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3492
+ 'zeusportal-postas': opts['zeusportalPostas'],
3493
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3494
+ 'transactionid': opts['transactionid']
3495
+ };
3496
+ var formParams = {};
3497
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3498
+ var contentTypes = [];
3499
+ var accepts = ['text/plain'];
3500
+ var returnType = 'Boolean';
3501
+ return this.apiClient.callApi('/graph/data/likes/{objectid}/isliked', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3502
+ }
3503
+
3504
+ /**
3505
+ * Check if the user has liked the object
3506
+ * Checks if the user has liked the object
3507
+ * @param {Number} objectid
3508
+ * @param {Object} opts Optional parameters
3509
+ * @param {String} opts.authorization The authorization token of the logged in user
3510
+ * @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
3511
+ * @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
3512
+ * @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
3513
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3514
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Boolean}
3515
+ */
3516
+ }, {
3517
+ key: "isLiked",
3518
+ value: function isLiked(objectid, opts) {
3519
+ return this.isLikedWithHttpInfo(objectid, opts).then(function (response_and_data) {
3520
+ return response_and_data.data;
3521
+ });
3522
+ }
3523
+
3524
+ /**
3525
+ * Like an Object
3526
+ * Likes an object
3527
+ * @param {Number} objectid
3528
+ * @param {Object} opts Optional parameters
3529
+ * @param {String} [authorization] The authorization token of the logged in user
3530
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3531
+ * @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
3532
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3533
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3534
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
3535
+ */
3536
+ }, {
3537
+ key: "likeWithHttpInfo",
3538
+ value: function likeWithHttpInfo(objectid, opts) {
3539
+ opts = opts || {};
3540
+ var postBody = null;
3541
+ // verify the required parameter 'objectid' is set
3542
+ if (objectid === undefined || objectid === null) {
3543
+ throw new Error("Missing the required parameter 'objectid' when calling like");
3544
+ }
3545
+ var pathParams = {
3546
+ 'objectid': objectid
3547
+ };
3548
+ var queryParams = {};
3549
+ var headerParams = {
3550
+ 'Authorization': opts['authorization'],
3551
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3552
+ 'zeusportal-postas': opts['zeusportalPostas'],
3553
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3554
+ 'transactionid': opts['transactionid']
3555
+ };
3556
+ var formParams = {};
3557
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3558
+ var contentTypes = [];
3559
+ var accepts = ['*/*'];
3560
+ var returnType = null;
3561
+ return this.apiClient.callApi('/graph/data/likes/{objectid}/like', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3562
+ }
3563
+
3564
+ /**
3565
+ * Like an Object
3566
+ * Likes an object
3567
+ * @param {Number} objectid
3568
+ * @param {Object} opts Optional parameters
3569
+ * @param {String} opts.authorization The authorization token of the logged in user
3570
+ * @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
3571
+ * @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
3572
+ * @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
3573
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3574
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
3575
+ */
3576
+ }, {
3577
+ key: "like",
3578
+ value: function like(objectid, opts) {
3579
+ return this.likeWithHttpInfo(objectid, opts).then(function (response_and_data) {
3580
+ return response_and_data.data;
3581
+ });
3582
+ }
3583
+
3584
+ /**
3585
+ * Set Multiple Properties
3586
+ * Set multiple properties attaced to an object / record
3587
+ * @param {Number} id The id of the object whose properties we are updating
3588
+ * @param {Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} requestBody The properties and values to set on the object
3589
+ * @param {Object} opts Optional parameters
3590
+ * @param {String} [authorization] The authorization token of the logged in user
3591
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3592
+ * @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
3593
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3594
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3595
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
3596
+ */
3597
+ }, {
3598
+ key: "setObjectPropertiesWithHttpInfo",
3599
+ value: function setObjectPropertiesWithHttpInfo(id, requestBody, opts) {
3600
+ opts = opts || {};
3601
+ var postBody = requestBody;
3602
+ // verify the required parameter 'id' is set
3603
+ if (id === undefined || id === null) {
3604
+ throw new Error("Missing the required parameter 'id' when calling setObjectProperties");
3605
+ }
3606
+ // verify the required parameter 'requestBody' is set
3607
+ if (requestBody === undefined || requestBody === null) {
3608
+ throw new Error("Missing the required parameter 'requestBody' when calling setObjectProperties");
3609
+ }
3610
+ var pathParams = {
3611
+ 'id': id
3612
+ };
3613
+ var queryParams = {};
3614
+ var headerParams = {
3615
+ 'Authorization': opts['authorization'],
3616
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3617
+ 'zeusportal-postas': opts['zeusportalPostas'],
3618
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3619
+ 'transactionid': opts['transactionid']
3620
+ };
3621
+ var formParams = {};
3622
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3623
+ var contentTypes = ['application/json'];
3624
+ var accepts = ['application/json'];
3625
+ var returnType = null;
3626
+ return this.apiClient.callApi('/graph/data/object/{id}/properties', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3627
+ }
3628
+
3629
+ /**
3630
+ * Set Multiple Properties
3631
+ * Set multiple properties attaced to an object / record
3632
+ * @param {Number} id The id of the object whose properties we are updating
3633
+ * @param {Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} requestBody The properties and values to set on the object
3634
+ * @param {Object} opts Optional parameters
3635
+ * @param {String} opts.authorization The authorization token of the logged in user
3636
+ * @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
3637
+ * @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
3638
+ * @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
3639
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3640
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
3641
+ */
3642
+ }, {
3643
+ key: "setObjectProperties",
3644
+ value: function setObjectProperties(id, requestBody, opts) {
3645
+ return this.setObjectPropertiesWithHttpInfo(id, requestBody, opts).then(function (response_and_data) {
3646
+ return response_and_data.data;
3647
+ });
3648
+ }
3649
+
3650
+ /**
3651
+ * Update Property
3652
+ * Update a specific property
3653
+ * @param {Number} id The id of the object whose properties we are updating
3654
+ * @param {String} prop The property being updated
3655
+ * @param {Object} opts Optional parameters
3656
+ * @param {String} [authorization] The authorization token of the logged in user
3657
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3658
+ * @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
3659
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3660
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3661
+ * @param {String} [body] The value that is being set
3662
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
3663
+ */
3664
+ }, {
3665
+ key: "setObjectPropertyWithHttpInfo",
3666
+ value: function setObjectPropertyWithHttpInfo(id, prop, opts) {
3667
+ opts = opts || {};
3668
+ var postBody = opts['body'];
3669
+ // verify the required parameter 'id' is set
3670
+ if (id === undefined || id === null) {
3671
+ throw new Error("Missing the required parameter 'id' when calling setObjectProperty");
3672
+ }
3673
+ // verify the required parameter 'prop' is set
3674
+ if (prop === undefined || prop === null) {
3675
+ throw new Error("Missing the required parameter 'prop' when calling setObjectProperty");
3676
+ }
3677
+ var pathParams = {
3678
+ 'id': id,
3679
+ 'prop': prop
3680
+ };
3681
+ var queryParams = {};
3682
+ var headerParams = {
3683
+ 'Authorization': opts['authorization'],
3684
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3685
+ 'zeusportal-postas': opts['zeusportalPostas'],
3686
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3687
+ 'transactionid': opts['transactionid']
3688
+ };
3689
+ var formParams = {};
3690
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3691
+ var contentTypes = ['application/json'];
3692
+ var accepts = ['application/json'];
3693
+ var returnType = null;
3694
+ return this.apiClient.callApi('/graph/data/object/{id}/properties/{prop}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3695
+ }
3696
+
3697
+ /**
3698
+ * Update Property
3699
+ * Update a specific property
3700
+ * @param {Number} id The id of the object whose properties we are updating
3701
+ * @param {String} prop The property being updated
3702
+ * @param {Object} opts Optional parameters
3703
+ * @param {String} opts.authorization The authorization token of the logged in user
3704
+ * @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
3705
+ * @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
3706
+ * @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
3707
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3708
+ * @param {String} opts.body The value that is being set
3709
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
3710
+ */
3711
+ }, {
3712
+ key: "setObjectProperty",
3713
+ value: function setObjectProperty(id, prop, opts) {
3714
+ return this.setObjectPropertyWithHttpInfo(id, prop, opts).then(function (response_and_data) {
3715
+ return response_and_data.data;
3716
+ });
3717
+ }
3718
+
3719
+ /**
3720
+ * @param {Number} id
3721
+ * @param {Object} opts Optional parameters
3722
+ * @param {String} [authorization] The authorization token of the logged in user
3723
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3724
+ * @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
3725
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3726
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3727
+ * @param {module:model/PurgeDataDefaultResponseValue} [purgeDataDefaultResponseValue]
3728
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/UserTag>} and HTTP response
3729
+ */
3730
+ }, {
3731
+ key: "tagUsersWithHttpInfo",
3732
+ value: function tagUsersWithHttpInfo(id, opts) {
3733
+ opts = opts || {};
3734
+ var postBody = opts['purgeDataDefaultResponseValue'];
3735
+ // verify the required parameter 'id' is set
3736
+ if (id === undefined || id === null) {
3737
+ throw new Error("Missing the required parameter 'id' when calling tagUsers");
3738
+ }
3739
+ var pathParams = {
3740
+ 'id': id
3741
+ };
3742
+ var queryParams = {};
3743
+ var headerParams = {
3744
+ 'Authorization': opts['authorization'],
3745
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3746
+ 'zeusportal-postas': opts['zeusportalPostas'],
3747
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3748
+ 'transactionid': opts['transactionid']
3749
+ };
3750
+ var formParams = {};
3751
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3752
+ var contentTypes = ['application/json'];
3753
+ var accepts = ['application/json'];
3754
+ var returnType = [_UserTag["default"]];
3755
+ return this.apiClient.callApi('/graph/data/object/{id}/tagusers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3756
+ }
3757
+
3758
+ /**
3759
+ * @param {Number} id
3760
+ * @param {Object} opts Optional parameters
3761
+ * @param {String} opts.authorization The authorization token of the logged in user
3762
+ * @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
3763
+ * @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
3764
+ * @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
3765
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3766
+ * @param {module:model/PurgeDataDefaultResponseValue} opts.purgeDataDefaultResponseValue
3767
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/UserTag>}
3768
+ */
3769
+ }, {
3770
+ key: "tagUsers",
3771
+ value: function tagUsers(id, opts) {
3772
+ return this.tagUsersWithHttpInfo(id, opts).then(function (response_and_data) {
3773
+ return response_and_data.data;
3774
+ });
3775
+ }
3776
+
3777
+ /**
3778
+ * Update an Object
3779
+ * Performs an update of the Graph Object
3780
+ * @param {Number} id The id of the object that we are updating
3781
+ * @param {module:model/GraphObjectPayload} graphObjectPayload GraphObject data object to update
3782
+ * @param {Object} opts Optional parameters
3783
+ * @param {String} [authorization] The authorization token of the logged in user
3784
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3785
+ * @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
3786
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3787
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3788
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
3789
+ */
3790
+ }, {
3791
+ key: "updateObjectWithHttpInfo",
3792
+ value: function updateObjectWithHttpInfo(id, graphObjectPayload, opts) {
3793
+ opts = opts || {};
3794
+ var postBody = graphObjectPayload;
3795
+ // verify the required parameter 'id' is set
3796
+ if (id === undefined || id === null) {
3797
+ throw new Error("Missing the required parameter 'id' when calling updateObject");
3798
+ }
3799
+ // verify the required parameter 'graphObjectPayload' is set
3800
+ if (graphObjectPayload === undefined || graphObjectPayload === null) {
3801
+ throw new Error("Missing the required parameter 'graphObjectPayload' when calling updateObject");
3802
+ }
3803
+ var pathParams = {
3804
+ 'id': id
3805
+ };
3806
+ var queryParams = {};
3807
+ var headerParams = {
3808
+ 'Authorization': opts['authorization'],
3809
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3810
+ 'zeusportal-postas': opts['zeusportalPostas'],
3811
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3812
+ 'transactionid': opts['transactionid']
3813
+ };
3814
+ var formParams = {};
3815
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3816
+ var contentTypes = [];
3817
+ var accepts = ['application/json'];
3818
+ var returnType = _PurgeDataDefaultResponseValue["default"];
3819
+ return this.apiClient.callApi('/graph/data/object/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3820
+ }
3821
+
3822
+ /**
3823
+ * Update an Object
3824
+ * Performs an update of the Graph Object
3825
+ * @param {Number} id The id of the object that we are updating
3826
+ * @param {module:model/GraphObjectPayload} graphObjectPayload GraphObject data object to update
3827
+ * @param {Object} opts Optional parameters
3828
+ * @param {String} opts.authorization The authorization token of the logged in user
3829
+ * @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
3830
+ * @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
3831
+ * @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
3832
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3833
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
3834
+ */
3835
+ }, {
3836
+ key: "updateObject",
3837
+ value: function updateObject(id, graphObjectPayload, opts) {
3838
+ return this.updateObjectWithHttpInfo(id, graphObjectPayload, opts).then(function (response_and_data) {
3839
+ return response_and_data.data;
3840
+ });
3841
+ }
3842
+
3843
+ /**
3844
+ * @param {Number} id The id of the object whose tags we are updating
3845
+ * @param {String} body Conversation object or array of objects to create
3846
+ * @param {Object} opts Optional parameters
3847
+ * @param {String} [authorization] The authorization token of the logged in user
3848
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3849
+ * @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
3850
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3851
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3852
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
3853
+ */
3854
+ }, {
3855
+ key: "updateTagsWithHttpInfo",
3856
+ value: function updateTagsWithHttpInfo(id, body, opts) {
3857
+ opts = opts || {};
3858
+ var postBody = body;
3859
+ // verify the required parameter 'id' is set
3860
+ if (id === undefined || id === null) {
3861
+ throw new Error("Missing the required parameter 'id' when calling updateTags");
3862
+ }
3863
+ // verify the required parameter 'body' is set
3864
+ if (body === undefined || body === null) {
3865
+ throw new Error("Missing the required parameter 'body' when calling updateTags");
3866
+ }
3867
+ var pathParams = {
3868
+ 'id': id
3869
+ };
3870
+ var queryParams = {};
3871
+ var headerParams = {
3872
+ 'Authorization': opts['authorization'],
3873
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3874
+ 'zeusportal-postas': opts['zeusportalPostas'],
3875
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3876
+ 'transactionid': opts['transactionid']
3877
+ };
3878
+ var formParams = {};
3879
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3880
+ var contentTypes = ['application/json'];
3881
+ var accepts = ['application/json'];
3882
+ var returnType = null;
3883
+ return this.apiClient.callApi('/graph/data/object/{id}/tags', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3884
+ }
3885
+
3886
+ /**
3887
+ * @param {Number} id The id of the object whose tags we are updating
3888
+ * @param {String} body Conversation object or array of objects to create
3889
+ * @param {Object} opts Optional parameters
3890
+ * @param {String} opts.authorization The authorization token of the logged in user
3891
+ * @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
3892
+ * @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
3893
+ * @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
3894
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3895
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
3896
+ */
3897
+ }, {
3898
+ key: "updateTags",
3899
+ value: function updateTags(id, body, opts) {
3900
+ return this.updateTagsWithHttpInfo(id, body, opts).then(function (response_and_data) {
3901
+ return response_and_data.data;
3902
+ });
3903
+ }
3904
+
3905
+ /**
3906
+ * Marks the object as viewed
3907
+ * Marks the object as viewed by the logged in user
3908
+ * @param {Number} objectid The id of the object being viewed
3909
+ * @param {Object} opts Optional parameters
3910
+ * @param {String} [authorization] The authorization token of the logged in user
3911
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3912
+ * @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
3913
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3914
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3915
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
3916
+ */
3917
+ }, {
3918
+ key: "viewWithHttpInfo",
3919
+ value: function viewWithHttpInfo(objectid, opts) {
3920
+ opts = opts || {};
3921
+ var postBody = null;
3922
+ // verify the required parameter 'objectid' is set
3923
+ if (objectid === undefined || objectid === null) {
3924
+ throw new Error("Missing the required parameter 'objectid' when calling view");
3925
+ }
3926
+ var pathParams = {
3927
+ 'objectid': objectid
3928
+ };
3929
+ var queryParams = {};
3930
+ var headerParams = {
3931
+ 'Authorization': opts['authorization'],
3932
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3933
+ 'zeusportal-postas': opts['zeusportalPostas'],
3934
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3935
+ 'transactionid': opts['transactionid']
3936
+ };
3937
+ var formParams = {};
3938
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3939
+ var contentTypes = [];
3940
+ var accepts = ['application/json'];
3941
+ var returnType = null;
3942
+ return this.apiClient.callApi('/graph/data/object/{objectid}/view', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3943
+ }
3944
+
3945
+ /**
3946
+ * Marks the object as viewed
3947
+ * Marks the object as viewed by the logged in user
3948
+ * @param {Number} objectid The id of the object being viewed
3949
+ * @param {Object} opts Optional parameters
3950
+ * @param {String} opts.authorization The authorization token of the logged in user
3951
+ * @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
3952
+ * @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
3953
+ * @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
3954
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
3955
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
3956
+ */
3957
+ }, {
3958
+ key: "view",
3959
+ value: function view(objectid, opts) {
3960
+ return this.viewWithHttpInfo(objectid, opts).then(function (response_and_data) {
3961
+ return response_and_data.data;
3962
+ });
3963
+ }
3964
+
3965
+ /**
3966
+ * Marks the object as viewed (HTTP Post Operation)
3967
+ * Marks the object as viewed by the logged in user
3968
+ * @param {Number} id The id of the object being viewed
3969
+ * @param {Object} opts Optional parameters
3970
+ * @param {String} [authorization] The authorization token of the logged in user
3971
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
3972
+ * @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
3973
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
3974
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
3975
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
3976
+ */
3977
+ }, {
3978
+ key: "viewPostWithHttpInfo",
3979
+ value: function viewPostWithHttpInfo(id, opts) {
3980
+ opts = opts || {};
3981
+ var postBody = null;
3982
+ // verify the required parameter 'id' is set
3983
+ if (id === undefined || id === null) {
3984
+ throw new Error("Missing the required parameter 'id' when calling viewPost");
3985
+ }
3986
+ var pathParams = {
3987
+ 'id': id
3988
+ };
3989
+ var queryParams = {};
3990
+ var headerParams = {
3991
+ 'Authorization': opts['authorization'],
3992
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
3993
+ 'zeusportal-postas': opts['zeusportalPostas'],
3994
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
3995
+ 'transactionid': opts['transactionid']
3996
+ };
3997
+ var formParams = {};
3998
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
3999
+ var contentTypes = [];
4000
+ var accepts = ['application/json'];
4001
+ var returnType = null;
4002
+ return this.apiClient.callApi('/graph/data/object/{id}/view', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
4003
+ }
4004
+
4005
+ /**
4006
+ * Marks the object as viewed (HTTP Post Operation)
4007
+ * Marks the object as viewed by the logged in user
4008
+ * @param {Number} id The id of the object being viewed
4009
+ * @param {Object} opts Optional parameters
4010
+ * @param {String} opts.authorization The authorization token of the logged in user
4011
+ * @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
4012
+ * @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
4013
+ * @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
4014
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
4015
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
4016
+ */
4017
+ }, {
4018
+ key: "viewPost",
4019
+ value: function viewPost(id, opts) {
4020
+ return this.viewPostWithHttpInfo(id, opts).then(function (response_and_data) {
4021
+ return response_and_data.data;
4022
+ });
4023
+ }
4024
+ }]);
4025
+ return GraphObjectsApi;
4026
+ }();