@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,1491 @@
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 _Document = _interopRequireDefault(require("../model/Document"));
9
+ var _DocumentPart = _interopRequireDefault(require("../model/DocumentPart"));
10
+ var _PurgeDataDefaultResponseValue = _interopRequireDefault(require("../model/PurgeDataDefaultResponseValue"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
16
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
+ * gobodo-api
20
+ * REST Interface for Gobodo API
21
+ *
22
+ * The version of the OpenAPI document: 0.1.34
23
+ * Contact: info@gobodo.io
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+ /**
31
+ * ContentManagement service.
32
+ * @module api/ContentManagementApi
33
+ * @version 0.1.34
34
+ */
35
+ var ContentManagementApi = exports["default"] = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new ContentManagementApi.
38
+ * @alias module:api/ContentManagementApi
39
+ * @class
40
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
41
+ * default to {@link module:ApiClient#instance} if unspecified.
42
+ */
43
+ function ContentManagementApi(apiClient) {
44
+ _classCallCheck(this, ContentManagementApi);
45
+ this.apiClient = apiClient || _ApiClient["default"].instance;
46
+ }
47
+
48
+ /**
49
+ * Create a new document
50
+ * @param {Number} docid
51
+ * @param {Array.<module:model/DocumentPart>} documentPart Document part or array of document parts to create
52
+ * @param {Object} opts Optional parameters
53
+ * @param {String} [authorization] The authorization token of the logged in user
54
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
55
+ * @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
56
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
57
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
58
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/DocumentPart>} and HTTP response
59
+ */
60
+ _createClass(ContentManagementApi, [{
61
+ key: "addDocumentPartWithHttpInfo",
62
+ value: function addDocumentPartWithHttpInfo(docid, documentPart, opts) {
63
+ opts = opts || {};
64
+ var postBody = documentPart;
65
+ // verify the required parameter 'docid' is set
66
+ if (docid === undefined || docid === null) {
67
+ throw new Error("Missing the required parameter 'docid' when calling addDocumentPart");
68
+ }
69
+ // verify the required parameter 'documentPart' is set
70
+ if (documentPart === undefined || documentPart === null) {
71
+ throw new Error("Missing the required parameter 'documentPart' when calling addDocumentPart");
72
+ }
73
+ var pathParams = {
74
+ 'docid': docid
75
+ };
76
+ var queryParams = {};
77
+ var headerParams = {
78
+ 'Authorization': opts['authorization'],
79
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
80
+ 'zeusportal-postas': opts['zeusportalPostas'],
81
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
82
+ 'transactionid': opts['transactionid']
83
+ };
84
+ var formParams = {};
85
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
86
+ var contentTypes = [];
87
+ var accepts = ['*/*'];
88
+ var returnType = [_DocumentPart["default"]];
89
+ return this.apiClient.callApi('/graph/data/articles/{docid}/entryparts', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
90
+ }
91
+
92
+ /**
93
+ * Create a new document
94
+ * @param {Number} docid
95
+ * @param {Array.<module:model/DocumentPart>} documentPart Document part or array of document parts to create
96
+ * @param {Object} opts Optional parameters
97
+ * @param {String} opts.authorization The authorization token of the logged in user
98
+ * @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
99
+ * @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
100
+ * @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
101
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
102
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/DocumentPart>}
103
+ */
104
+ }, {
105
+ key: "addDocumentPart",
106
+ value: function addDocumentPart(docid, documentPart, opts) {
107
+ return this.addDocumentPartWithHttpInfo(docid, documentPart, opts).then(function (response_and_data) {
108
+ return response_and_data.data;
109
+ });
110
+ }
111
+
112
+ /**
113
+ * Changes the document part's type
114
+ * @param {Number} docpartid
115
+ * @param {Number} typeid
116
+ * @param {Object} opts Optional parameters
117
+ * @param {String} [authorization] The authorization token of the logged in user
118
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
119
+ * @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
120
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
121
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
122
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
123
+ */
124
+ }, {
125
+ key: "changeDocPartTypeWithHttpInfo",
126
+ value: function changeDocPartTypeWithHttpInfo(docpartid, typeid, opts) {
127
+ opts = opts || {};
128
+ var postBody = null;
129
+ // verify the required parameter 'docpartid' is set
130
+ if (docpartid === undefined || docpartid === null) {
131
+ throw new Error("Missing the required parameter 'docpartid' when calling changeDocPartType");
132
+ }
133
+ // verify the required parameter 'typeid' is set
134
+ if (typeid === undefined || typeid === null) {
135
+ throw new Error("Missing the required parameter 'typeid' when calling changeDocPartType");
136
+ }
137
+ var pathParams = {
138
+ 'docpartid': docpartid,
139
+ 'typeid': typeid
140
+ };
141
+ var queryParams = {};
142
+ var headerParams = {
143
+ 'Authorization': opts['authorization'],
144
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
145
+ 'zeusportal-postas': opts['zeusportalPostas'],
146
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
147
+ 'transactionid': opts['transactionid']
148
+ };
149
+ var formParams = {};
150
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
151
+ var contentTypes = [];
152
+ var accepts = ['*/*'];
153
+ var returnType = null;
154
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}/changetype/{typeid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
155
+ }
156
+
157
+ /**
158
+ * Changes the document part's type
159
+ * @param {Number} docpartid
160
+ * @param {Number} typeid
161
+ * @param {Object} opts Optional parameters
162
+ * @param {String} opts.authorization The authorization token of the logged in user
163
+ * @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
164
+ * @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
165
+ * @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
166
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
167
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
168
+ */
169
+ }, {
170
+ key: "changeDocPartType",
171
+ value: function changeDocPartType(docpartid, typeid, opts) {
172
+ return this.changeDocPartTypeWithHttpInfo(docpartid, typeid, opts).then(function (response_and_data) {
173
+ return response_and_data.data;
174
+ });
175
+ }
176
+
177
+ /**
178
+ * @param {Number} id
179
+ * @param {Object} opts Optional parameters
180
+ * @param {String} [authorization] The authorization token of the logged in user
181
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
182
+ * @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
183
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
184
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
185
+ * @param {Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} [requestBody]
186
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
187
+ */
188
+ }, {
189
+ key: "changeStatusWithHttpInfo",
190
+ value: function changeStatusWithHttpInfo(id, opts) {
191
+ opts = opts || {};
192
+ var postBody = opts['requestBody'];
193
+ // verify the required parameter 'id' is set
194
+ if (id === undefined || id === null) {
195
+ throw new Error("Missing the required parameter 'id' when calling changeStatus");
196
+ }
197
+ var pathParams = {
198
+ 'id': id
199
+ };
200
+ var queryParams = {};
201
+ var headerParams = {
202
+ 'Authorization': opts['authorization'],
203
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
204
+ 'zeusportal-postas': opts['zeusportalPostas'],
205
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
206
+ 'transactionid': opts['transactionid']
207
+ };
208
+ var formParams = {};
209
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
210
+ var contentTypes = ['application/json'];
211
+ var accepts = ['*/*'];
212
+ var returnType = null;
213
+ return this.apiClient.callApi('/graph/data/articles/{id}/status', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
214
+ }
215
+
216
+ /**
217
+ * @param {Number} id
218
+ * @param {Object} opts Optional parameters
219
+ * @param {String} opts.authorization The authorization token of the logged in user
220
+ * @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
221
+ * @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
222
+ * @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
223
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
224
+ * @param {Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} opts.requestBody
225
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
226
+ */
227
+ }, {
228
+ key: "changeStatus",
229
+ value: function changeStatus(id, opts) {
230
+ return this.changeStatusWithHttpInfo(id, opts).then(function (response_and_data) {
231
+ return response_and_data.data;
232
+ });
233
+ }
234
+
235
+ /**
236
+ * Copies the specified document
237
+ * @param {Number} docid
238
+ * @param {Object} opts Optional parameters
239
+ * @param {String} [authorization] The authorization token of the logged in user
240
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
241
+ * @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
242
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
243
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
244
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Document} and HTTP response
245
+ */
246
+ }, {
247
+ key: "copyDocumentWithHttpInfo",
248
+ value: function copyDocumentWithHttpInfo(docid, opts) {
249
+ opts = opts || {};
250
+ var postBody = null;
251
+ // verify the required parameter 'docid' is set
252
+ if (docid === undefined || docid === null) {
253
+ throw new Error("Missing the required parameter 'docid' when calling copyDocument");
254
+ }
255
+ var pathParams = {
256
+ 'docid': docid
257
+ };
258
+ var queryParams = {};
259
+ var headerParams = {
260
+ 'Authorization': opts['authorization'],
261
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
262
+ 'zeusportal-postas': opts['zeusportalPostas'],
263
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
264
+ 'transactionid': opts['transactionid']
265
+ };
266
+ var formParams = {};
267
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
268
+ var contentTypes = [];
269
+ var accepts = ['application/json'];
270
+ var returnType = _Document["default"];
271
+ return this.apiClient.callApi('/graph/data/articles/{docid}/copy', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
272
+ }
273
+
274
+ /**
275
+ * Copies the specified document
276
+ * @param {Number} docid
277
+ * @param {Object} opts Optional parameters
278
+ * @param {String} opts.authorization The authorization token of the logged in user
279
+ * @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
280
+ * @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
281
+ * @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
282
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
283
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Document}
284
+ */
285
+ }, {
286
+ key: "copyDocument",
287
+ value: function copyDocument(docid, opts) {
288
+ return this.copyDocumentWithHttpInfo(docid, opts).then(function (response_and_data) {
289
+ return response_and_data.data;
290
+ });
291
+ }
292
+
293
+ /**
294
+ * Create a copy of the document part attached to the same parent document part or Article as the original
295
+ * @param {Number} docpartid
296
+ * @param {Object} opts Optional parameters
297
+ * @param {String} [authorization] The authorization token of the logged in user
298
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
299
+ * @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
300
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
301
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
302
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
303
+ */
304
+ }, {
305
+ key: "copyDocumentPartWithHttpInfo",
306
+ value: function copyDocumentPartWithHttpInfo(docpartid, opts) {
307
+ opts = opts || {};
308
+ var postBody = null;
309
+ // verify the required parameter 'docpartid' is set
310
+ if (docpartid === undefined || docpartid === null) {
311
+ throw new Error("Missing the required parameter 'docpartid' when calling copyDocumentPart");
312
+ }
313
+ var pathParams = {
314
+ 'docpartid': docpartid
315
+ };
316
+ var queryParams = {};
317
+ var headerParams = {
318
+ 'Authorization': opts['authorization'],
319
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
320
+ 'zeusportal-postas': opts['zeusportalPostas'],
321
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
322
+ 'transactionid': opts['transactionid']
323
+ };
324
+ var formParams = {};
325
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
326
+ var contentTypes = [];
327
+ var accepts = ['*/*'];
328
+ var returnType = _PurgeDataDefaultResponseValue["default"];
329
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}/copy', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
330
+ }
331
+
332
+ /**
333
+ * Create a copy of the document part attached to the same parent document part or Article as the original
334
+ * @param {Number} docpartid
335
+ * @param {Object} opts Optional parameters
336
+ * @param {String} opts.authorization The authorization token of the logged in user
337
+ * @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
338
+ * @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
339
+ * @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
340
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
341
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
342
+ */
343
+ }, {
344
+ key: "copyDocumentPart",
345
+ value: function copyDocumentPart(docpartid, opts) {
346
+ return this.copyDocumentPartWithHttpInfo(docpartid, opts).then(function (response_and_data) {
347
+ return response_and_data.data;
348
+ });
349
+ }
350
+
351
+ /**
352
+ * Create child document part(s)
353
+ * @param {Number} docpartid
354
+ * @param {Array.<module:model/DocumentPart>} documentPart Document part or array of document parts to create
355
+ * @param {Object} opts Optional parameters
356
+ * @param {String} [authorization] The authorization token of the logged in user
357
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
358
+ * @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
359
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
360
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
361
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/DocumentPart>} and HTTP response
362
+ */
363
+ }, {
364
+ key: "createChildDocumentPartWithHttpInfo",
365
+ value: function createChildDocumentPartWithHttpInfo(docpartid, documentPart, opts) {
366
+ opts = opts || {};
367
+ var postBody = documentPart;
368
+ // verify the required parameter 'docpartid' is set
369
+ if (docpartid === undefined || docpartid === null) {
370
+ throw new Error("Missing the required parameter 'docpartid' when calling createChildDocumentPart");
371
+ }
372
+ // verify the required parameter 'documentPart' is set
373
+ if (documentPart === undefined || documentPart === null) {
374
+ throw new Error("Missing the required parameter 'documentPart' when calling createChildDocumentPart");
375
+ }
376
+ var pathParams = {
377
+ 'docpartid': docpartid
378
+ };
379
+ var queryParams = {};
380
+ var headerParams = {
381
+ 'Authorization': opts['authorization'],
382
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
383
+ 'zeusportal-postas': opts['zeusportalPostas'],
384
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
385
+ 'transactionid': opts['transactionid']
386
+ };
387
+ var formParams = {};
388
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
389
+ var contentTypes = [];
390
+ var accepts = ['*/*'];
391
+ var returnType = [_DocumentPart["default"]];
392
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}/entryparts', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
393
+ }
394
+
395
+ /**
396
+ * Create child document part(s)
397
+ * @param {Number} docpartid
398
+ * @param {Array.<module:model/DocumentPart>} documentPart Document part or array of document parts to create
399
+ * @param {Object} opts Optional parameters
400
+ * @param {String} opts.authorization The authorization token of the logged in user
401
+ * @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
402
+ * @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
403
+ * @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
404
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
405
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/DocumentPart>}
406
+ */
407
+ }, {
408
+ key: "createChildDocumentPart",
409
+ value: function createChildDocumentPart(docpartid, documentPart, opts) {
410
+ return this.createChildDocumentPartWithHttpInfo(docpartid, documentPart, opts).then(function (response_and_data) {
411
+ return response_and_data.data;
412
+ });
413
+ }
414
+
415
+ /**
416
+ * Create a new document
417
+ * @param {Array.<module:model/Document>} document Document or array of documents to create
418
+ * @param {Object} opts Optional parameters
419
+ * @param {String} [authorization] The authorization token of the logged in user
420
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
421
+ * @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
422
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
423
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
424
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Document>} and HTTP response
425
+ */
426
+ }, {
427
+ key: "createDocumentWithHttpInfo",
428
+ value: function createDocumentWithHttpInfo(document, opts) {
429
+ opts = opts || {};
430
+ var postBody = document;
431
+ // verify the required parameter 'document' is set
432
+ if (document === undefined || document === null) {
433
+ throw new Error("Missing the required parameter 'document' when calling createDocument");
434
+ }
435
+ var pathParams = {};
436
+ var queryParams = {};
437
+ var headerParams = {
438
+ 'Authorization': opts['authorization'],
439
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
440
+ 'zeusportal-postas': opts['zeusportalPostas'],
441
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
442
+ 'transactionid': opts['transactionid']
443
+ };
444
+ var formParams = {};
445
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
446
+ var contentTypes = ['application/json'];
447
+ var accepts = ['application/json'];
448
+ var returnType = [_Document["default"]];
449
+ return this.apiClient.callApi('/graph/data/articles', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
450
+ }
451
+
452
+ /**
453
+ * Create a new document
454
+ * @param {Array.<module:model/Document>} document Document or array of documents to create
455
+ * @param {Object} opts Optional parameters
456
+ * @param {String} opts.authorization The authorization token of the logged in user
457
+ * @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
458
+ * @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
459
+ * @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
460
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
461
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Document>}
462
+ */
463
+ }, {
464
+ key: "createDocument",
465
+ value: function createDocument(document, opts) {
466
+ return this.createDocumentWithHttpInfo(document, opts).then(function (response_and_data) {
467
+ return response_and_data.data;
468
+ });
469
+ }
470
+
471
+ /**
472
+ * Create a new document part
473
+ * @param {Array.<module:model/DocumentPart>} documentPart Document part or array of document parts to create
474
+ * @param {Object} opts Optional parameters
475
+ * @param {String} [authorization] The authorization token of the logged in user
476
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
477
+ * @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
478
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
479
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
480
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
481
+ */
482
+ }, {
483
+ key: "createDocumentPartWithHttpInfo",
484
+ value: function createDocumentPartWithHttpInfo(documentPart, opts) {
485
+ opts = opts || {};
486
+ var postBody = documentPart;
487
+ // verify the required parameter 'documentPart' is set
488
+ if (documentPart === undefined || documentPart === null) {
489
+ throw new Error("Missing the required parameter 'documentPart' when calling createDocumentPart");
490
+ }
491
+ var pathParams = {};
492
+ var queryParams = {};
493
+ var headerParams = {
494
+ 'Authorization': opts['authorization'],
495
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
496
+ 'zeusportal-postas': opts['zeusportalPostas'],
497
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
498
+ 'transactionid': opts['transactionid']
499
+ };
500
+ var formParams = {};
501
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
502
+ var contentTypes = [];
503
+ var accepts = ['*/*'];
504
+ var returnType = _PurgeDataDefaultResponseValue["default"];
505
+ return this.apiClient.callApi('/graph/data/entryparts', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
506
+ }
507
+
508
+ /**
509
+ * Create a new document part
510
+ * @param {Array.<module:model/DocumentPart>} documentPart Document part or array of document parts to create
511
+ * @param {Object} opts Optional parameters
512
+ * @param {String} opts.authorization The authorization token of the logged in user
513
+ * @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
514
+ * @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
515
+ * @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
516
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
517
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
518
+ */
519
+ }, {
520
+ key: "createDocumentPart",
521
+ value: function createDocumentPart(documentPart, opts) {
522
+ return this.createDocumentPartWithHttpInfo(documentPart, opts).then(function (response_and_data) {
523
+ return response_and_data.data;
524
+ });
525
+ }
526
+
527
+ /**
528
+ * Delete Document Part
529
+ * Delete an individual entry part
530
+ * @param {Number} docpartid
531
+ * @param {Object} opts Optional parameters
532
+ * @param {String} [authorization] The authorization token of the logged in user
533
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
534
+ * @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
535
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
536
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
537
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
538
+ */
539
+ }, {
540
+ key: "deleteDocPartWithHttpInfo",
541
+ value: function deleteDocPartWithHttpInfo(docpartid, opts) {
542
+ opts = opts || {};
543
+ var postBody = null;
544
+ // verify the required parameter 'docpartid' is set
545
+ if (docpartid === undefined || docpartid === null) {
546
+ throw new Error("Missing the required parameter 'docpartid' when calling deleteDocPart");
547
+ }
548
+ var pathParams = {
549
+ 'docpartid': docpartid
550
+ };
551
+ var queryParams = {};
552
+ var headerParams = {
553
+ 'Authorization': opts['authorization'],
554
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
555
+ 'zeusportal-postas': opts['zeusportalPostas'],
556
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
557
+ 'transactionid': opts['transactionid']
558
+ };
559
+ var formParams = {};
560
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
561
+ var contentTypes = [];
562
+ var accepts = ['application/json'];
563
+ var returnType = null;
564
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
565
+ }
566
+
567
+ /**
568
+ * Delete Document Part
569
+ * Delete an individual entry part
570
+ * @param {Number} docpartid
571
+ * @param {Object} opts Optional parameters
572
+ * @param {String} opts.authorization The authorization token of the logged in user
573
+ * @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
574
+ * @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
575
+ * @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
576
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
577
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
578
+ */
579
+ }, {
580
+ key: "deleteDocPart",
581
+ value: function deleteDocPart(docpartid, opts) {
582
+ return this.deleteDocPartWithHttpInfo(docpartid, opts).then(function (response_and_data) {
583
+ return response_and_data.data;
584
+ });
585
+ }
586
+
587
+ /**
588
+ * Delete Document Part
589
+ * Delete an individual document
590
+ * @param {Number} docid
591
+ * @param {Object} opts Optional parameters
592
+ * @param {String} [authorization] The authorization token of the logged in user
593
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
594
+ * @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
595
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
596
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
597
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
598
+ */
599
+ }, {
600
+ key: "deleteDocumentWithHttpInfo",
601
+ value: function deleteDocumentWithHttpInfo(docid, opts) {
602
+ opts = opts || {};
603
+ var postBody = null;
604
+ // verify the required parameter 'docid' is set
605
+ if (docid === undefined || docid === null) {
606
+ throw new Error("Missing the required parameter 'docid' when calling deleteDocument");
607
+ }
608
+ var pathParams = {
609
+ 'docid': docid
610
+ };
611
+ var queryParams = {};
612
+ var headerParams = {
613
+ 'Authorization': opts['authorization'],
614
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
615
+ 'zeusportal-postas': opts['zeusportalPostas'],
616
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
617
+ 'transactionid': opts['transactionid']
618
+ };
619
+ var formParams = {};
620
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
621
+ var contentTypes = [];
622
+ var accepts = ['application/json'];
623
+ var returnType = null;
624
+ return this.apiClient.callApi('/graph/data/articles/{docid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
625
+ }
626
+
627
+ /**
628
+ * Delete Document Part
629
+ * Delete an individual document
630
+ * @param {Number} docid
631
+ * @param {Object} opts Optional parameters
632
+ * @param {String} opts.authorization The authorization token of the logged in user
633
+ * @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
634
+ * @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
635
+ * @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
636
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
637
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
638
+ */
639
+ }, {
640
+ key: "deleteDocument",
641
+ value: function deleteDocument(docid, opts) {
642
+ return this.deleteDocumentWithHttpInfo(docid, opts).then(function (response_and_data) {
643
+ return response_and_data.data;
644
+ });
645
+ }
646
+
647
+ /**
648
+ * Updates to the document
649
+ * @param {Number} docid
650
+ * @param {module:model/Document} document The document to update
651
+ * @param {Object} opts Optional parameters
652
+ * @param {String} [authorization] The authorization token of the logged in user
653
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
654
+ * @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
655
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
656
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
657
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Document} and HTTP response
658
+ */
659
+ }, {
660
+ key: "editDocumentWithHttpInfo",
661
+ value: function editDocumentWithHttpInfo(docid, document, opts) {
662
+ opts = opts || {};
663
+ var postBody = document;
664
+ // verify the required parameter 'docid' is set
665
+ if (docid === undefined || docid === null) {
666
+ throw new Error("Missing the required parameter 'docid' when calling editDocument");
667
+ }
668
+ // verify the required parameter 'document' is set
669
+ if (document === undefined || document === null) {
670
+ throw new Error("Missing the required parameter 'document' when calling editDocument");
671
+ }
672
+ var pathParams = {
673
+ 'docid': docid
674
+ };
675
+ var queryParams = {};
676
+ var headerParams = {
677
+ 'Authorization': opts['authorization'],
678
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
679
+ 'zeusportal-postas': opts['zeusportalPostas'],
680
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
681
+ 'transactionid': opts['transactionid']
682
+ };
683
+ var formParams = {};
684
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
685
+ var contentTypes = ['application/json'];
686
+ var accepts = ['application/json'];
687
+ var returnType = _Document["default"];
688
+ return this.apiClient.callApi('/graph/data/articles/{docid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
689
+ }
690
+
691
+ /**
692
+ * Updates to the document
693
+ * @param {Number} docid
694
+ * @param {module:model/Document} document The document to update
695
+ * @param {Object} opts Optional parameters
696
+ * @param {String} opts.authorization The authorization token of the logged in user
697
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
698
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
699
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
700
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
701
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Document}
702
+ */
703
+ }, {
704
+ key: "editDocument",
705
+ value: function editDocument(docid, document, opts) {
706
+ return this.editDocumentWithHttpInfo(docid, document, opts).then(function (response_and_data) {
707
+ return response_and_data.data;
708
+ });
709
+ }
710
+
711
+ /**
712
+ * Root for the API
713
+ * @param {Object} opts Optional parameters
714
+ * @param {String} [authorization] The authorization token of the logged in user
715
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
716
+ * @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
717
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
718
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
719
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
720
+ */
721
+ }, {
722
+ key: "get26WithHttpInfo",
723
+ value: function get26WithHttpInfo(opts) {
724
+ opts = opts || {};
725
+ var postBody = null;
726
+ var pathParams = {};
727
+ var queryParams = {};
728
+ var headerParams = {
729
+ 'Authorization': opts['authorization'],
730
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
731
+ 'zeusportal-postas': opts['zeusportalPostas'],
732
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
733
+ 'transactionid': opts['transactionid']
734
+ };
735
+ var formParams = {};
736
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
737
+ var contentTypes = [];
738
+ var accepts = ['*/*'];
739
+ var returnType = null;
740
+ return this.apiClient.callApi('/graph/data/articles', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
741
+ }
742
+
743
+ /**
744
+ * Root for the API
745
+ * @param {Object} opts Optional parameters
746
+ * @param {String} opts.authorization The authorization token of the logged in user
747
+ * @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
748
+ * @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
749
+ * @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
750
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
751
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
752
+ */
753
+ }, {
754
+ key: "get26",
755
+ value: function get26(opts) {
756
+ return this.get26WithHttpInfo(opts).then(function (response_and_data) {
757
+ return response_and_data.data;
758
+ });
759
+ }
760
+
761
+ /**
762
+ * Root for the API
763
+ * @param {Object} opts Optional parameters
764
+ * @param {String} [authorization] The authorization token of the logged in user
765
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
766
+ * @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
767
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
768
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
769
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
770
+ */
771
+ }, {
772
+ key: "get27WithHttpInfo",
773
+ value: function get27WithHttpInfo(opts) {
774
+ opts = opts || {};
775
+ var postBody = null;
776
+ var pathParams = {};
777
+ var queryParams = {};
778
+ var headerParams = {
779
+ 'Authorization': opts['authorization'],
780
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
781
+ 'zeusportal-postas': opts['zeusportalPostas'],
782
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
783
+ 'transactionid': opts['transactionid']
784
+ };
785
+ var formParams = {};
786
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
787
+ var contentTypes = [];
788
+ var accepts = ['*/*'];
789
+ var returnType = null;
790
+ return this.apiClient.callApi('/graph/data/entryparts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
791
+ }
792
+
793
+ /**
794
+ * Root for the API
795
+ * @param {Object} opts Optional parameters
796
+ * @param {String} opts.authorization The authorization token of the logged in user
797
+ * @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
798
+ * @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
799
+ * @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
800
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
801
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
802
+ */
803
+ }, {
804
+ key: "get27",
805
+ value: function get27(opts) {
806
+ return this.get27WithHttpInfo(opts).then(function (response_and_data) {
807
+ return response_and_data.data;
808
+ });
809
+ }
810
+
811
+ /**
812
+ * Returns all documents
813
+ * @param {Object} opts Optional parameters
814
+ * @param {String} [authorization] The authorization token of the logged in user
815
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
816
+ * @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
817
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
818
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
819
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Document>} and HTTP response
820
+ */
821
+ }, {
822
+ key: "getAllDocumentsWithHttpInfo",
823
+ value: function getAllDocumentsWithHttpInfo(opts) {
824
+ opts = opts || {};
825
+ var postBody = null;
826
+ var pathParams = {};
827
+ var queryParams = {};
828
+ var headerParams = {
829
+ 'Authorization': opts['authorization'],
830
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
831
+ 'zeusportal-postas': opts['zeusportalPostas'],
832
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
833
+ 'transactionid': opts['transactionid']
834
+ };
835
+ var formParams = {};
836
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
837
+ var contentTypes = [];
838
+ var accepts = ['*/*'];
839
+ var returnType = [_Document["default"]];
840
+ return this.apiClient.callApi('/graph/data/articles/all', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
841
+ }
842
+
843
+ /**
844
+ * Returns all documents
845
+ * @param {Object} opts Optional parameters
846
+ * @param {String} opts.authorization The authorization token of the logged in user
847
+ * @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
848
+ * @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
849
+ * @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
850
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
851
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Document>}
852
+ */
853
+ }, {
854
+ key: "getAllDocuments",
855
+ value: function getAllDocuments(opts) {
856
+ return this.getAllDocumentsWithHttpInfo(opts).then(function (response_and_data) {
857
+ return response_and_data.data;
858
+ });
859
+ }
860
+
861
+ /**
862
+ * Returns the child document part with the given page number
863
+ * @param {Number} id
864
+ * @param {Number} pagenum
865
+ * @param {Object} opts Optional parameters
866
+ * @param {String} [authorization] The authorization token of the logged in user
867
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
868
+ * @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
869
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
870
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
871
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DocumentPart} and HTTP response
872
+ */
873
+ }, {
874
+ key: "getChildDocPartByPageNumWithHttpInfo",
875
+ value: function getChildDocPartByPageNumWithHttpInfo(id, pagenum, opts) {
876
+ opts = opts || {};
877
+ var postBody = null;
878
+ // verify the required parameter 'id' is set
879
+ if (id === undefined || id === null) {
880
+ throw new Error("Missing the required parameter 'id' when calling getChildDocPartByPageNum");
881
+ }
882
+ // verify the required parameter 'pagenum' is set
883
+ if (pagenum === undefined || pagenum === null) {
884
+ throw new Error("Missing the required parameter 'pagenum' when calling getChildDocPartByPageNum");
885
+ }
886
+ var pathParams = {
887
+ 'id': id,
888
+ 'pagenum': pagenum
889
+ };
890
+ var queryParams = {};
891
+ var headerParams = {
892
+ 'Authorization': opts['authorization'],
893
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
894
+ 'zeusportal-postas': opts['zeusportalPostas'],
895
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
896
+ 'transactionid': opts['transactionid']
897
+ };
898
+ var formParams = {};
899
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
900
+ var contentTypes = [];
901
+ var accepts = ['*/*'];
902
+ var returnType = _DocumentPart["default"];
903
+ return this.apiClient.callApi('/graph/data/entryparts/{id}/entryparts/{pagenum}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
904
+ }
905
+
906
+ /**
907
+ * Returns the child document part with the given page number
908
+ * @param {Number} id
909
+ * @param {Number} pagenum
910
+ * @param {Object} opts Optional parameters
911
+ * @param {String} opts.authorization The authorization token of the logged in user
912
+ * @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
913
+ * @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
914
+ * @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
915
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
916
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DocumentPart}
917
+ */
918
+ }, {
919
+ key: "getChildDocPartByPageNum",
920
+ value: function getChildDocPartByPageNum(id, pagenum, opts) {
921
+ return this.getChildDocPartByPageNumWithHttpInfo(id, pagenum, opts).then(function (response_and_data) {
922
+ return response_and_data.data;
923
+ });
924
+ }
925
+
926
+ /**
927
+ * Returns all documents
928
+ * @param {Number} id
929
+ * @param {Object} opts Optional parameters
930
+ * @param {String} [authorization] The authorization token of the logged in user
931
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
932
+ * @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
933
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
934
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
935
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Document} and HTTP response
936
+ */
937
+ }, {
938
+ key: "getDocumentByIdWithHttpInfo",
939
+ value: function getDocumentByIdWithHttpInfo(id, opts) {
940
+ opts = opts || {};
941
+ var postBody = null;
942
+ // verify the required parameter 'id' is set
943
+ if (id === undefined || id === null) {
944
+ throw new Error("Missing the required parameter 'id' when calling getDocumentById");
945
+ }
946
+ var pathParams = {
947
+ 'id': id
948
+ };
949
+ var queryParams = {};
950
+ var headerParams = {
951
+ 'Authorization': opts['authorization'],
952
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
953
+ 'zeusportal-postas': opts['zeusportalPostas'],
954
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
955
+ 'transactionid': opts['transactionid']
956
+ };
957
+ var formParams = {};
958
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
959
+ var contentTypes = [];
960
+ var accepts = ['application/json'];
961
+ var returnType = _Document["default"];
962
+ return this.apiClient.callApi('/graph/data/articles/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
963
+ }
964
+
965
+ /**
966
+ * Returns all documents
967
+ * @param {Number} id
968
+ * @param {Object} opts Optional parameters
969
+ * @param {String} opts.authorization The authorization token of the logged in user
970
+ * @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
971
+ * @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
972
+ * @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
973
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
974
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Document}
975
+ */
976
+ }, {
977
+ key: "getDocumentById",
978
+ value: function getDocumentById(id, opts) {
979
+ return this.getDocumentByIdWithHttpInfo(id, opts).then(function (response_and_data) {
980
+ return response_and_data.data;
981
+ });
982
+ }
983
+
984
+ /**
985
+ * Returns the entrypart with the given id
986
+ * @param {Number} id
987
+ * @param {Object} opts Optional parameters
988
+ * @param {String} [authorization] The authorization token of the logged in user
989
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
990
+ * @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
991
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
992
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
993
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DocumentPart} and HTTP response
994
+ */
995
+ }, {
996
+ key: "getDocumentPartByIdWithHttpInfo",
997
+ value: function getDocumentPartByIdWithHttpInfo(id, opts) {
998
+ opts = opts || {};
999
+ var postBody = null;
1000
+ // verify the required parameter 'id' is set
1001
+ if (id === undefined || id === null) {
1002
+ throw new Error("Missing the required parameter 'id' when calling getDocumentPartById");
1003
+ }
1004
+ var pathParams = {
1005
+ 'id': id
1006
+ };
1007
+ var queryParams = {};
1008
+ var headerParams = {
1009
+ 'Authorization': opts['authorization'],
1010
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1011
+ 'zeusportal-postas': opts['zeusportalPostas'],
1012
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1013
+ 'transactionid': opts['transactionid']
1014
+ };
1015
+ var formParams = {};
1016
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1017
+ var contentTypes = [];
1018
+ var accepts = ['application/json'];
1019
+ var returnType = _DocumentPart["default"];
1020
+ return this.apiClient.callApi('/graph/data/entryparts/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1021
+ }
1022
+
1023
+ /**
1024
+ * Returns the entrypart with the given id
1025
+ * @param {Number} id
1026
+ * @param {Object} opts Optional parameters
1027
+ * @param {String} opts.authorization The authorization token of the logged in user
1028
+ * @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
1029
+ * @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
1030
+ * @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
1031
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1032
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DocumentPart}
1033
+ */
1034
+ }, {
1035
+ key: "getDocumentPartById",
1036
+ value: function getDocumentPartById(id, opts) {
1037
+ return this.getDocumentPartByIdWithHttpInfo(id, opts).then(function (response_and_data) {
1038
+ return response_and_data.data;
1039
+ });
1040
+ }
1041
+
1042
+ /**
1043
+ * Returns the entrypart with the given id
1044
+ * @param {Number} id
1045
+ * @param {Object} opts Optional parameters
1046
+ * @param {String} [authorization] The authorization token of the logged in user
1047
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1048
+ * @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
1049
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1050
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1051
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/DocumentPart>} and HTTP response
1052
+ */
1053
+ }, {
1054
+ key: "getDocumentPartById1WithHttpInfo",
1055
+ value: function getDocumentPartById1WithHttpInfo(id, opts) {
1056
+ opts = opts || {};
1057
+ var postBody = null;
1058
+ // verify the required parameter 'id' is set
1059
+ if (id === undefined || id === null) {
1060
+ throw new Error("Missing the required parameter 'id' when calling getDocumentPartById1");
1061
+ }
1062
+ var pathParams = {
1063
+ 'id': id
1064
+ };
1065
+ var queryParams = {};
1066
+ var headerParams = {
1067
+ 'Authorization': opts['authorization'],
1068
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1069
+ 'zeusportal-postas': opts['zeusportalPostas'],
1070
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1071
+ 'transactionid': opts['transactionid']
1072
+ };
1073
+ var formParams = {};
1074
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1075
+ var contentTypes = [];
1076
+ var accepts = ['*/*'];
1077
+ var returnType = [_DocumentPart["default"]];
1078
+ return this.apiClient.callApi('/graph/data/entryparts/{id}/entryparts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1079
+ }
1080
+
1081
+ /**
1082
+ * Returns the entrypart with the given id
1083
+ * @param {Number} id
1084
+ * @param {Object} opts Optional parameters
1085
+ * @param {String} opts.authorization The authorization token of the logged in user
1086
+ * @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
1087
+ * @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
1088
+ * @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
1089
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1090
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/DocumentPart>}
1091
+ */
1092
+ }, {
1093
+ key: "getDocumentPartById1",
1094
+ value: function getDocumentPartById1(id, opts) {
1095
+ return this.getDocumentPartById1WithHttpInfo(id, opts).then(function (response_and_data) {
1096
+ return response_and_data.data;
1097
+ });
1098
+ }
1099
+
1100
+ /**
1101
+ * Gets the document part attached to the document with the given page number
1102
+ * @param {Number} id
1103
+ * @param {Number} id2
1104
+ * @param {Object} opts Optional parameters
1105
+ * @param {String} [authorization] The authorization token of the logged in user
1106
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1107
+ * @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
1108
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1109
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1110
+ * @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
1111
+ */
1112
+ }, {
1113
+ key: "getDocumentPartByPageNumberWithHttpInfo",
1114
+ value: function getDocumentPartByPageNumberWithHttpInfo(id, id2, opts) {
1115
+ opts = opts || {};
1116
+ var postBody = null;
1117
+ // verify the required parameter 'id' is set
1118
+ if (id === undefined || id === null) {
1119
+ throw new Error("Missing the required parameter 'id' when calling getDocumentPartByPageNumber");
1120
+ }
1121
+ // verify the required parameter 'id2' is set
1122
+ if (id2 === undefined || id2 === null) {
1123
+ throw new Error("Missing the required parameter 'id2' when calling getDocumentPartByPageNumber");
1124
+ }
1125
+ var pathParams = _defineProperty({
1126
+ 'id': id
1127
+ }, "id", id2);
1128
+ var queryParams = {};
1129
+ var headerParams = {
1130
+ 'Authorization': opts['authorization'],
1131
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1132
+ 'zeusportal-postas': opts['zeusportalPostas'],
1133
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1134
+ 'transactionid': opts['transactionid']
1135
+ };
1136
+ var formParams = {};
1137
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1138
+ var contentTypes = [];
1139
+ var accepts = ['*/*'];
1140
+ var returnType = {
1141
+ 'String': _PurgeDataDefaultResponseValue["default"]
1142
+ };
1143
+ return this.apiClient.callApi('/graph/data/articles/{id}/entryparts/{pagenum}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1144
+ }
1145
+
1146
+ /**
1147
+ * Gets the document part attached to the document with the given page number
1148
+ * @param {Number} id
1149
+ * @param {Number} id2
1150
+ * @param {Object} opts Optional parameters
1151
+ * @param {String} opts.authorization The authorization token of the logged in user
1152
+ * @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
1153
+ * @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
1154
+ * @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
1155
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1156
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>}
1157
+ */
1158
+ }, {
1159
+ key: "getDocumentPartByPageNumber",
1160
+ value: function getDocumentPartByPageNumber(id, id2, opts) {
1161
+ return this.getDocumentPartByPageNumberWithHttpInfo(id, id2, opts).then(function (response_and_data) {
1162
+ return response_and_data.data;
1163
+ });
1164
+ }
1165
+
1166
+ /**
1167
+ * Gets the document parts attached to the document
1168
+ * @param {Number} id
1169
+ * @param {Object} opts Optional parameters
1170
+ * @param {String} [authorization] The authorization token of the logged in user
1171
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1172
+ * @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
1173
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1174
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1175
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/DocumentPart>} and HTTP response
1176
+ */
1177
+ }, {
1178
+ key: "getDocumentPartsWithHttpInfo",
1179
+ value: function getDocumentPartsWithHttpInfo(id, opts) {
1180
+ opts = opts || {};
1181
+ var postBody = null;
1182
+ // verify the required parameter 'id' is set
1183
+ if (id === undefined || id === null) {
1184
+ throw new Error("Missing the required parameter 'id' when calling getDocumentParts");
1185
+ }
1186
+ var pathParams = {
1187
+ 'id': id
1188
+ };
1189
+ var queryParams = {};
1190
+ var headerParams = {
1191
+ 'Authorization': opts['authorization'],
1192
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1193
+ 'zeusportal-postas': opts['zeusportalPostas'],
1194
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1195
+ 'transactionid': opts['transactionid']
1196
+ };
1197
+ var formParams = {};
1198
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1199
+ var contentTypes = [];
1200
+ var accepts = ['*/*'];
1201
+ var returnType = [_DocumentPart["default"]];
1202
+ return this.apiClient.callApi('/graph/data/articles/{id}/entryparts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1203
+ }
1204
+
1205
+ /**
1206
+ * Gets the document parts attached to the document
1207
+ * @param {Number} id
1208
+ * @param {Object} opts Optional parameters
1209
+ * @param {String} opts.authorization The authorization token of the logged in user
1210
+ * @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
1211
+ * @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
1212
+ * @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
1213
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1214
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/DocumentPart>}
1215
+ */
1216
+ }, {
1217
+ key: "getDocumentParts",
1218
+ value: function getDocumentParts(id, opts) {
1219
+ return this.getDocumentPartsWithHttpInfo(id, opts).then(function (response_and_data) {
1220
+ return response_and_data.data;
1221
+ });
1222
+ }
1223
+
1224
+ /**
1225
+ * Returns the documents of the given type
1226
+ * @param {Number} typeid
1227
+ * @param {Object} opts Optional parameters
1228
+ * @param {String} [authorization] The authorization token of the logged in user
1229
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1230
+ * @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
1231
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1232
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1233
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Document>} and HTTP response
1234
+ */
1235
+ }, {
1236
+ key: "getDocumentsByTypeWithHttpInfo",
1237
+ value: function getDocumentsByTypeWithHttpInfo(typeid, opts) {
1238
+ opts = opts || {};
1239
+ var postBody = null;
1240
+ // verify the required parameter 'typeid' is set
1241
+ if (typeid === undefined || typeid === null) {
1242
+ throw new Error("Missing the required parameter 'typeid' when calling getDocumentsByType");
1243
+ }
1244
+ var pathParams = {
1245
+ 'typeid': typeid
1246
+ };
1247
+ var queryParams = {};
1248
+ var headerParams = {
1249
+ 'Authorization': opts['authorization'],
1250
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1251
+ 'zeusportal-postas': opts['zeusportalPostas'],
1252
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1253
+ 'transactionid': opts['transactionid']
1254
+ };
1255
+ var formParams = {};
1256
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1257
+ var contentTypes = [];
1258
+ var accepts = ['*/*'];
1259
+ var returnType = [_Document["default"]];
1260
+ return this.apiClient.callApi('/graph/data/articles/entrytype/{typeid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1261
+ }
1262
+
1263
+ /**
1264
+ * Returns the documents of the given type
1265
+ * @param {Number} typeid
1266
+ * @param {Object} opts Optional parameters
1267
+ * @param {String} opts.authorization The authorization token of the logged in user
1268
+ * @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
1269
+ * @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
1270
+ * @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
1271
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1272
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Document>}
1273
+ */
1274
+ }, {
1275
+ key: "getDocumentsByType",
1276
+ value: function getDocumentsByType(typeid, opts) {
1277
+ return this.getDocumentsByTypeWithHttpInfo(typeid, opts).then(function (response_and_data) {
1278
+ return response_and_data.data;
1279
+ });
1280
+ }
1281
+
1282
+ /**
1283
+ * Moves a document part to a new position in it's parent doc part or to a new parent
1284
+ * @param {Number} docpartid
1285
+ * @param {Number} newdocpartid
1286
+ * @param {Number} partindex
1287
+ * @param {Object} opts Optional parameters
1288
+ * @param {String} [authorization] The authorization token of the logged in user
1289
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1290
+ * @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
1291
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1292
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1293
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1294
+ */
1295
+ }, {
1296
+ key: "moveChildPartWithHttpInfo",
1297
+ value: function moveChildPartWithHttpInfo(docpartid, newdocpartid, partindex, opts) {
1298
+ opts = opts || {};
1299
+ var postBody = null;
1300
+ // verify the required parameter 'docpartid' is set
1301
+ if (docpartid === undefined || docpartid === null) {
1302
+ throw new Error("Missing the required parameter 'docpartid' when calling moveChildPart");
1303
+ }
1304
+ // verify the required parameter 'newdocpartid' is set
1305
+ if (newdocpartid === undefined || newdocpartid === null) {
1306
+ throw new Error("Missing the required parameter 'newdocpartid' when calling moveChildPart");
1307
+ }
1308
+ // verify the required parameter 'partindex' is set
1309
+ if (partindex === undefined || partindex === null) {
1310
+ throw new Error("Missing the required parameter 'partindex' when calling moveChildPart");
1311
+ }
1312
+ var pathParams = {
1313
+ 'docpartid': docpartid,
1314
+ 'newdocpartid': newdocpartid,
1315
+ 'partindex': partindex
1316
+ };
1317
+ var queryParams = {};
1318
+ var headerParams = {
1319
+ 'Authorization': opts['authorization'],
1320
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1321
+ 'zeusportal-postas': opts['zeusportalPostas'],
1322
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1323
+ 'transactionid': opts['transactionid']
1324
+ };
1325
+ var formParams = {};
1326
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1327
+ var contentTypes = [];
1328
+ var accepts = ['*/*'];
1329
+ var returnType = null;
1330
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}/moveto/entrypart/{newdocpartid}/{partindex}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1331
+ }
1332
+
1333
+ /**
1334
+ * Moves a document part to a new position in it's parent doc part or to a new parent
1335
+ * @param {Number} docpartid
1336
+ * @param {Number} newdocpartid
1337
+ * @param {Number} partindex
1338
+ * @param {Object} opts Optional parameters
1339
+ * @param {String} opts.authorization The authorization token of the logged in user
1340
+ * @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
1341
+ * @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
1342
+ * @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
1343
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1344
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1345
+ */
1346
+ }, {
1347
+ key: "moveChildPart",
1348
+ value: function moveChildPart(docpartid, newdocpartid, partindex, opts) {
1349
+ return this.moveChildPartWithHttpInfo(docpartid, newdocpartid, partindex, opts).then(function (response_and_data) {
1350
+ return response_and_data.data;
1351
+ });
1352
+ }
1353
+
1354
+ /**
1355
+ * Moves a document part to a new position in it's document
1356
+ * @param {Number} docpartid
1357
+ * @param {Number} articleid
1358
+ * @param {Number} partindex
1359
+ * @param {Object} opts Optional parameters
1360
+ * @param {String} [authorization] The authorization token of the logged in user
1361
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1362
+ * @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
1363
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1364
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1365
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1366
+ */
1367
+ }, {
1368
+ key: "moveDocPartWithHttpInfo",
1369
+ value: function moveDocPartWithHttpInfo(docpartid, articleid, partindex, opts) {
1370
+ opts = opts || {};
1371
+ var postBody = null;
1372
+ // verify the required parameter 'docpartid' is set
1373
+ if (docpartid === undefined || docpartid === null) {
1374
+ throw new Error("Missing the required parameter 'docpartid' when calling moveDocPart");
1375
+ }
1376
+ // verify the required parameter 'articleid' is set
1377
+ if (articleid === undefined || articleid === null) {
1378
+ throw new Error("Missing the required parameter 'articleid' when calling moveDocPart");
1379
+ }
1380
+ // verify the required parameter 'partindex' is set
1381
+ if (partindex === undefined || partindex === null) {
1382
+ throw new Error("Missing the required parameter 'partindex' when calling moveDocPart");
1383
+ }
1384
+ var pathParams = {
1385
+ 'docpartid': docpartid,
1386
+ 'articleid': articleid,
1387
+ 'partindex': partindex
1388
+ };
1389
+ var queryParams = {};
1390
+ var headerParams = {
1391
+ 'Authorization': opts['authorization'],
1392
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1393
+ 'zeusportal-postas': opts['zeusportalPostas'],
1394
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1395
+ 'transactionid': opts['transactionid']
1396
+ };
1397
+ var formParams = {};
1398
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1399
+ var contentTypes = [];
1400
+ var accepts = ['*/*'];
1401
+ var returnType = null;
1402
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}/moveto/article/{articleid}/{partindex}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1403
+ }
1404
+
1405
+ /**
1406
+ * Moves a document part to a new position in it's document
1407
+ * @param {Number} docpartid
1408
+ * @param {Number} articleid
1409
+ * @param {Number} partindex
1410
+ * @param {Object} opts Optional parameters
1411
+ * @param {String} opts.authorization The authorization token of the logged in user
1412
+ * @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
1413
+ * @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
1414
+ * @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
1415
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1416
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1417
+ */
1418
+ }, {
1419
+ key: "moveDocPart",
1420
+ value: function moveDocPart(docpartid, articleid, partindex, opts) {
1421
+ return this.moveDocPartWithHttpInfo(docpartid, articleid, partindex, opts).then(function (response_and_data) {
1422
+ return response_and_data.data;
1423
+ });
1424
+ }
1425
+
1426
+ /**
1427
+ * Updates the document part
1428
+ * @param {Number} docpartid
1429
+ * @param {module:model/DocumentPart} documentPart Document part or array of document parts to create
1430
+ * @param {Object} opts Optional parameters
1431
+ * @param {String} [authorization] The authorization token of the logged in user
1432
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1433
+ * @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
1434
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1435
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1436
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DocumentPart} and HTTP response
1437
+ */
1438
+ }, {
1439
+ key: "updateDocumentPartWithHttpInfo",
1440
+ value: function updateDocumentPartWithHttpInfo(docpartid, documentPart, opts) {
1441
+ opts = opts || {};
1442
+ var postBody = documentPart;
1443
+ // verify the required parameter 'docpartid' is set
1444
+ if (docpartid === undefined || docpartid === null) {
1445
+ throw new Error("Missing the required parameter 'docpartid' when calling updateDocumentPart");
1446
+ }
1447
+ // verify the required parameter 'documentPart' is set
1448
+ if (documentPart === undefined || documentPart === null) {
1449
+ throw new Error("Missing the required parameter 'documentPart' when calling updateDocumentPart");
1450
+ }
1451
+ var pathParams = {
1452
+ 'docpartid': docpartid
1453
+ };
1454
+ var queryParams = {};
1455
+ var headerParams = {
1456
+ 'Authorization': opts['authorization'],
1457
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1458
+ 'zeusportal-postas': opts['zeusportalPostas'],
1459
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1460
+ 'transactionid': opts['transactionid']
1461
+ };
1462
+ var formParams = {};
1463
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1464
+ var contentTypes = ['application/json'];
1465
+ var accepts = ['application/json'];
1466
+ var returnType = _DocumentPart["default"];
1467
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1468
+ }
1469
+
1470
+ /**
1471
+ * Updates the document part
1472
+ * @param {Number} docpartid
1473
+ * @param {module:model/DocumentPart} documentPart Document part or array of document parts to create
1474
+ * @param {Object} opts Optional parameters
1475
+ * @param {String} opts.authorization The authorization token of the logged in user
1476
+ * @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
1477
+ * @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
1478
+ * @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
1479
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1480
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DocumentPart}
1481
+ */
1482
+ }, {
1483
+ key: "updateDocumentPart",
1484
+ value: function updateDocumentPart(docpartid, documentPart, opts) {
1485
+ return this.updateDocumentPartWithHttpInfo(docpartid, documentPart, opts).then(function (response_and_data) {
1486
+ return response_and_data.data;
1487
+ });
1488
+ }
1489
+ }]);
1490
+ return ContentManagementApi;
1491
+ }();