@gobodo/gobodo-api-promise 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +794 -0
- package/dist/ApiClient.js +720 -0
- package/dist/api/ActionTypesApi.js +113 -0
- package/dist/api/AdCampaignsApi.js +500 -0
- package/dist/api/AdManagementApi.js +722 -0
- package/dist/api/AdminDataManagementApi.js +111 -0
- package/dist/api/AdsApi.js +384 -0
- package/dist/api/AttachmentsApi.js +465 -0
- package/dist/api/AuthenticationApi.js +418 -0
- package/dist/api/CategoriesApi.js +451 -0
- package/dist/api/CommentsApi.js +520 -0
- package/dist/api/ContentManagementApi.js +1491 -0
- package/dist/api/ConversationsApi.js +559 -0
- package/dist/api/DataSheetImportsApi.js +1066 -0
- package/dist/api/DefaultApi.js +696 -0
- package/dist/api/DocumentsApi.js +807 -0
- package/dist/api/EntryPartsApi.js +847 -0
- package/dist/api/FacebookApi.js +88 -0
- package/dist/api/FieldsApi.js +243 -0
- package/dist/api/FilesApi.js +116 -0
- package/dist/api/FormsApi.js +1136 -0
- package/dist/api/FunctionsApi.js +111 -0
- package/dist/api/GeocodeApi.js +340 -0
- package/dist/api/GoogleApi.js +88 -0
- package/dist/api/GraphActionsApi.js +674 -0
- package/dist/api/GraphObjectTypesApi.js +527 -0
- package/dist/api/GraphObjectsApi.js +4026 -0
- package/dist/api/GraphRelationshipTypesApi.js +1055 -0
- package/dist/api/GraphRelationshipsApi.js +1921 -0
- package/dist/api/GraphSchemasApi.js +459 -0
- package/dist/api/GraphTraversalApi.js +415 -0
- package/dist/api/GraphsApi.js +716 -0
- package/dist/api/GroupsApi.js +731 -0
- package/dist/api/IAMApi.js +268 -0
- package/dist/api/ImagesApi.js +535 -0
- package/dist/api/InvitesApi.js +339 -0
- package/dist/api/LikesApi.js +785 -0
- package/dist/api/LinkedINApi.js +88 -0
- package/dist/api/LiveMeetingsApi.js +175 -0
- package/dist/api/MeetingEventsApi.js +358 -0
- package/dist/api/PagesApi.js +605 -0
- package/dist/api/PostsApi.js +330 -0
- package/dist/api/PrivateMessagesApi.js +965 -0
- package/dist/api/PublicationsApi.js +103 -0
- package/dist/api/ScreensApi.js +224 -0
- package/dist/api/SocialIntegrationApi.js +214 -0
- package/dist/api/StripeAccountsApi.js +2309 -0
- package/dist/api/TagsApi.js +111 -0
- package/dist/api/TemplatesApi.js +224 -0
- package/dist/api/ThemeMappingsApi.js +219 -0
- package/dist/api/TransactionsApi.js +161 -0
- package/dist/api/TwitterApi.js +88 -0
- package/dist/api/UserTagsApi.js +592 -0
- package/dist/api/UsersApi.js +591 -0
- package/dist/api/UtilsApi.js +80 -0
- package/dist/api/VideosApi.js +709 -0
- package/dist/index.js +1301 -0
- package/dist/model/APIClient.js +354 -0
- package/dist/model/AccountSessionInput.js +222 -0
- package/dist/model/AccountSessionResponse.js +171 -0
- package/dist/model/ApplicationPaymentAccountResponse.js +185 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureException.js +265 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCause.js +234 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCauseStackTraceInner.js +303 -0
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionCauseSuppressedInner.js +187 -0
- package/dist/model/Article.js +668 -0
- package/dist/model/Authorization.js +166 -0
- package/dist/model/Balance.js +267 -0
- package/dist/model/BalanceDetails.js +164 -0
- package/dist/model/BalanceResponse.js +139 -0
- package/dist/model/BankAccountInfo.js +232 -0
- package/dist/model/CardInfo.js +213 -0
- package/dist/model/Comment.js +495 -0
- package/dist/model/Coordinates.js +129 -0
- package/dist/model/CreateAccountResponse.js +233 -0
- package/dist/model/CreateStripeAccountInput.js +216 -0
- package/dist/model/CreateStripeCustomerInput.js +195 -0
- package/dist/model/CustomerResponse.js +168 -0
- package/dist/model/DataObject.js +129 -0
- package/dist/model/DataSheetImport.js +732 -0
- package/dist/model/DataSheetImportPrivacySettings.js +154 -0
- package/dist/model/DataSheetImportSummary.js +206 -0
- package/dist/model/Document.js +743 -0
- package/dist/model/DocumentPart.js +612 -0
- package/dist/model/DocumentPartType.js +358 -0
- package/dist/model/DocumentType.js +458 -0
- package/dist/model/FieldMapping.js +185 -0
- package/dist/model/Fields.js +737 -0
- package/dist/model/File.js +341 -0
- package/dist/model/FileAttachmentUploadObject.js +341 -0
- package/dist/model/Filter.js +137 -0
- package/dist/model/FilterManager.js +154 -0
- package/dist/model/Form.js +393 -0
- package/dist/model/FormSection.js +304 -0
- package/dist/model/FormSubmission.js +238 -0
- package/dist/model/Geocode.js +191 -0
- package/dist/model/GeocodePayload.js +141 -0
- package/dist/model/GeolocationInput.js +216 -0
- package/dist/model/Graph.js +499 -0
- package/dist/model/GraphAction.js +298 -0
- package/dist/model/GraphDatabaseService.js +254 -0
- package/dist/model/GraphGeocode.js +282 -0
- package/dist/model/GraphIteratorEntryPart.js +129 -0
- package/dist/model/GraphObject.js +454 -0
- package/dist/model/GraphObjectPayload.js +430 -0
- package/dist/model/GraphObjectSchema.js +545 -0
- package/dist/model/GraphObjectType.js +626 -0
- package/dist/model/GraphObjectTypeSchema.js +645 -0
- package/dist/model/GraphOwner.js +158 -0
- package/dist/model/GraphRelationObjectObject.js +273 -0
- package/dist/model/GraphRelationship.js +301 -0
- package/dist/model/GraphRelationshipPayload.js +214 -0
- package/dist/model/GraphRelationshipType.js +675 -0
- package/dist/model/GraphSchema.js +645 -0
- package/dist/model/GraphTraversalInput.js +1125 -0
- package/dist/model/Image.js +449 -0
- package/dist/model/ImageUploadObject.js +449 -0
- package/dist/model/InputPart.js +191 -0
- package/dist/model/InputPartMediaType.js +214 -0
- package/dist/model/Link.js +305 -0
- package/dist/model/LiveStreamInfo.js +167 -0
- package/dist/model/MeetingEvent.js +591 -0
- package/dist/model/MeetingEventTimezone.js +187 -0
- package/dist/model/MeetingInfo.js +220 -0
- package/dist/model/Member.js +525 -0
- package/dist/model/MemberGroupCategory.js +237 -0
- package/dist/model/MemberList.js +96 -0
- package/dist/model/MessageGroup.js +160 -0
- package/dist/model/MultipartBody.js +133 -0
- package/dist/model/Objecttype.js +615 -0
- package/dist/model/Page.js +370 -0
- package/dist/model/PageSchema.js +482 -0
- package/dist/model/Pageable.js +235 -0
- package/dist/model/Path.js +110 -0
- package/dist/model/PaymentAccountObject.js +209 -0
- package/dist/model/PaymentIntentInput.js +214 -0
- package/dist/model/PaymentIntentResponse.js +137 -0
- package/dist/model/PaymentMethod.js +319 -0
- package/dist/model/PaymentMethodInput.js +291 -0
- package/dist/model/PaymentMethodResponse.js +139 -0
- package/dist/model/PaymentMethodsResponse.js +158 -0
- package/dist/model/Payout.js +313 -0
- package/dist/model/PayoutInput.js +347 -0
- package/dist/model/PayoutResponse.js +142 -0
- package/dist/model/Post.js +368 -0
- package/dist/model/PrivateMessage.js +494 -0
- package/dist/model/PrivateMessageConversation.js +520 -0
- package/dist/model/PrivateMessageConversationSchema.js +268 -0
- package/dist/model/Profile.js +191 -0
- package/dist/model/Profiletype.js +210 -0
- package/dist/model/PropertyContainer.js +162 -0
- package/dist/model/PurgeDataDefaultResponseValue.js +151 -0
- package/dist/model/RelationshipMapping.js +264 -0
- package/dist/model/ScreenSchema.js +834 -0
- package/dist/model/SimulcastInfo.js +175 -0
- package/dist/model/SkinField.js +737 -0
- package/dist/model/SocialGroup.js +602 -0
- package/dist/model/SocialGroupType.js +327 -0
- package/dist/model/Sort.js +154 -0
- package/dist/model/SourceTypes.js +154 -0
- package/dist/model/StatusUpdate.js +312 -0
- package/dist/model/StreetAddress.js +224 -0
- package/dist/model/StripeAccount.js +272 -0
- package/dist/model/StripeCustomerAccount.js +212 -0
- package/dist/model/Template.js +272 -0
- package/dist/model/TemplateSchema.js +300 -0
- package/dist/model/ThemeMapping.js +245 -0
- package/dist/model/ThemeMappingPayload.js +239 -0
- package/dist/model/Transaction.js +137 -0
- package/dist/model/Transfer.js +286 -0
- package/dist/model/TransferInput.js +288 -0
- package/dist/model/TransferResponse.js +173 -0
- package/dist/model/TransferResponsePaymentMethodDetails.js +286 -0
- package/dist/model/TraversalRelationResponse.js +176 -0
- package/dist/model/User.js +525 -0
- package/dist/model/UserDataPayload.js +525 -0
- package/dist/model/UserDomain.js +191 -0
- package/dist/model/UserInvite.js +404 -0
- package/dist/model/UserInviteInput.js +245 -0
- package/dist/model/UserSchema.js +525 -0
- package/dist/model/UserTag.js +246 -0
- package/dist/model/Userid.js +133 -0
- package/dist/model/Video.js +632 -0
- package/dist/model/VideoLiveUrl.js +137 -0
- package/dist/model/VideoSchema.js +717 -0
- package/dist/model/VideoUploadObject.js +632 -0
- package/dist/model/ZeusPortalCategory.js +434 -0
- package/package.json +46 -0
|
@@ -0,0 +1,807 @@
|
|
|
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
|
+
* Documents service.
|
|
32
|
+
* @module api/DocumentsApi
|
|
33
|
+
* @version 0.1.34
|
|
34
|
+
*/
|
|
35
|
+
var DocumentsApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new DocumentsApi.
|
|
38
|
+
* @alias module:api/DocumentsApi
|
|
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 DocumentsApi(apiClient) {
|
|
44
|
+
_classCallCheck(this, DocumentsApi);
|
|
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(DocumentsApi, [{
|
|
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
|
+
* @param {Number} id
|
|
114
|
+
* @param {Object} opts Optional parameters
|
|
115
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
116
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
117
|
+
* @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
118
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
119
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
120
|
+
* @param {Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} [requestBody]
|
|
121
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
122
|
+
*/
|
|
123
|
+
}, {
|
|
124
|
+
key: "changeStatusWithHttpInfo",
|
|
125
|
+
value: function changeStatusWithHttpInfo(id, opts) {
|
|
126
|
+
opts = opts || {};
|
|
127
|
+
var postBody = opts['requestBody'];
|
|
128
|
+
// verify the required parameter 'id' is set
|
|
129
|
+
if (id === undefined || id === null) {
|
|
130
|
+
throw new Error("Missing the required parameter 'id' when calling changeStatus");
|
|
131
|
+
}
|
|
132
|
+
var pathParams = {
|
|
133
|
+
'id': id
|
|
134
|
+
};
|
|
135
|
+
var queryParams = {};
|
|
136
|
+
var headerParams = {
|
|
137
|
+
'Authorization': opts['authorization'],
|
|
138
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
139
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
140
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
141
|
+
'transactionid': opts['transactionid']
|
|
142
|
+
};
|
|
143
|
+
var formParams = {};
|
|
144
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
145
|
+
var contentTypes = ['application/json'];
|
|
146
|
+
var accepts = ['*/*'];
|
|
147
|
+
var returnType = null;
|
|
148
|
+
return this.apiClient.callApi('/graph/data/articles/{id}/status', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @param {Number} id
|
|
153
|
+
* @param {Object} opts Optional parameters
|
|
154
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
155
|
+
* @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
|
|
156
|
+
* @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
|
|
157
|
+
* @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
|
|
158
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
159
|
+
* @param {Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} opts.requestBody
|
|
160
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
161
|
+
*/
|
|
162
|
+
}, {
|
|
163
|
+
key: "changeStatus",
|
|
164
|
+
value: function changeStatus(id, opts) {
|
|
165
|
+
return this.changeStatusWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
166
|
+
return response_and_data.data;
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Copies the specified document
|
|
172
|
+
* @param {Number} docid
|
|
173
|
+
* @param {Object} opts Optional parameters
|
|
174
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
175
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
176
|
+
* @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
|
|
177
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
178
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
179
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Document} and HTTP response
|
|
180
|
+
*/
|
|
181
|
+
}, {
|
|
182
|
+
key: "copyDocumentWithHttpInfo",
|
|
183
|
+
value: function copyDocumentWithHttpInfo(docid, opts) {
|
|
184
|
+
opts = opts || {};
|
|
185
|
+
var postBody = null;
|
|
186
|
+
// verify the required parameter 'docid' is set
|
|
187
|
+
if (docid === undefined || docid === null) {
|
|
188
|
+
throw new Error("Missing the required parameter 'docid' when calling copyDocument");
|
|
189
|
+
}
|
|
190
|
+
var pathParams = {
|
|
191
|
+
'docid': docid
|
|
192
|
+
};
|
|
193
|
+
var queryParams = {};
|
|
194
|
+
var headerParams = {
|
|
195
|
+
'Authorization': opts['authorization'],
|
|
196
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
197
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
198
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
199
|
+
'transactionid': opts['transactionid']
|
|
200
|
+
};
|
|
201
|
+
var formParams = {};
|
|
202
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
203
|
+
var contentTypes = [];
|
|
204
|
+
var accepts = ['application/json'];
|
|
205
|
+
var returnType = _Document["default"];
|
|
206
|
+
return this.apiClient.callApi('/graph/data/articles/{docid}/copy', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Copies the specified document
|
|
211
|
+
* @param {Number} docid
|
|
212
|
+
* @param {Object} opts Optional parameters
|
|
213
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
214
|
+
* @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
|
|
215
|
+
* @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
|
|
216
|
+
* @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
|
|
217
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
218
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Document}
|
|
219
|
+
*/
|
|
220
|
+
}, {
|
|
221
|
+
key: "copyDocument",
|
|
222
|
+
value: function copyDocument(docid, opts) {
|
|
223
|
+
return this.copyDocumentWithHttpInfo(docid, opts).then(function (response_and_data) {
|
|
224
|
+
return response_and_data.data;
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Create a new document
|
|
230
|
+
* @param {Array.<module:model/Document>} document Document or array of documents to create
|
|
231
|
+
* @param {Object} opts Optional parameters
|
|
232
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
233
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
234
|
+
* @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
|
|
235
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
236
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
237
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Document>} and HTTP response
|
|
238
|
+
*/
|
|
239
|
+
}, {
|
|
240
|
+
key: "createDocumentWithHttpInfo",
|
|
241
|
+
value: function createDocumentWithHttpInfo(document, opts) {
|
|
242
|
+
opts = opts || {};
|
|
243
|
+
var postBody = document;
|
|
244
|
+
// verify the required parameter 'document' is set
|
|
245
|
+
if (document === undefined || document === null) {
|
|
246
|
+
throw new Error("Missing the required parameter 'document' when calling createDocument");
|
|
247
|
+
}
|
|
248
|
+
var pathParams = {};
|
|
249
|
+
var queryParams = {};
|
|
250
|
+
var headerParams = {
|
|
251
|
+
'Authorization': opts['authorization'],
|
|
252
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
253
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
254
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
255
|
+
'transactionid': opts['transactionid']
|
|
256
|
+
};
|
|
257
|
+
var formParams = {};
|
|
258
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
259
|
+
var contentTypes = ['application/json'];
|
|
260
|
+
var accepts = ['application/json'];
|
|
261
|
+
var returnType = [_Document["default"]];
|
|
262
|
+
return this.apiClient.callApi('/graph/data/articles', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Create a new document
|
|
267
|
+
* @param {Array.<module:model/Document>} document Document or array of documents to create
|
|
268
|
+
* @param {Object} opts Optional parameters
|
|
269
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
270
|
+
* @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
|
|
271
|
+
* @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
|
|
272
|
+
* @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
|
|
273
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
274
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Document>}
|
|
275
|
+
*/
|
|
276
|
+
}, {
|
|
277
|
+
key: "createDocument",
|
|
278
|
+
value: function createDocument(document, opts) {
|
|
279
|
+
return this.createDocumentWithHttpInfo(document, opts).then(function (response_and_data) {
|
|
280
|
+
return response_and_data.data;
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Delete Document Part
|
|
286
|
+
* Delete an individual document
|
|
287
|
+
* @param {Number} docid
|
|
288
|
+
* @param {Object} opts Optional parameters
|
|
289
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
290
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
291
|
+
* @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
|
|
292
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
293
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
294
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
295
|
+
*/
|
|
296
|
+
}, {
|
|
297
|
+
key: "deleteDocumentWithHttpInfo",
|
|
298
|
+
value: function deleteDocumentWithHttpInfo(docid, opts) {
|
|
299
|
+
opts = opts || {};
|
|
300
|
+
var postBody = null;
|
|
301
|
+
// verify the required parameter 'docid' is set
|
|
302
|
+
if (docid === undefined || docid === null) {
|
|
303
|
+
throw new Error("Missing the required parameter 'docid' when calling deleteDocument");
|
|
304
|
+
}
|
|
305
|
+
var pathParams = {
|
|
306
|
+
'docid': docid
|
|
307
|
+
};
|
|
308
|
+
var queryParams = {};
|
|
309
|
+
var headerParams = {
|
|
310
|
+
'Authorization': opts['authorization'],
|
|
311
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
312
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
313
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
314
|
+
'transactionid': opts['transactionid']
|
|
315
|
+
};
|
|
316
|
+
var formParams = {};
|
|
317
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
318
|
+
var contentTypes = [];
|
|
319
|
+
var accepts = ['application/json'];
|
|
320
|
+
var returnType = null;
|
|
321
|
+
return this.apiClient.callApi('/graph/data/articles/{docid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Delete Document Part
|
|
326
|
+
* Delete an individual document
|
|
327
|
+
* @param {Number} docid
|
|
328
|
+
* @param {Object} opts Optional parameters
|
|
329
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
330
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
331
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
332
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
333
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
334
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
335
|
+
*/
|
|
336
|
+
}, {
|
|
337
|
+
key: "deleteDocument",
|
|
338
|
+
value: function deleteDocument(docid, opts) {
|
|
339
|
+
return this.deleteDocumentWithHttpInfo(docid, opts).then(function (response_and_data) {
|
|
340
|
+
return response_and_data.data;
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Delete's the object with the id
|
|
346
|
+
* @param {Number} id The id of the object to delete
|
|
347
|
+
* @param {Object} opts Optional parameters
|
|
348
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
349
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
350
|
+
* @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
351
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
352
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
353
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
354
|
+
*/
|
|
355
|
+
}, {
|
|
356
|
+
key: "deleteObjectWithHttpInfo",
|
|
357
|
+
value: function deleteObjectWithHttpInfo(id, opts) {
|
|
358
|
+
opts = opts || {};
|
|
359
|
+
var postBody = null;
|
|
360
|
+
// verify the required parameter 'id' is set
|
|
361
|
+
if (id === undefined || id === null) {
|
|
362
|
+
throw new Error("Missing the required parameter 'id' when calling deleteObject");
|
|
363
|
+
}
|
|
364
|
+
var pathParams = {
|
|
365
|
+
'id': id
|
|
366
|
+
};
|
|
367
|
+
var queryParams = {};
|
|
368
|
+
var headerParams = {
|
|
369
|
+
'Authorization': opts['authorization'],
|
|
370
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
371
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
372
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
373
|
+
'transactionid': opts['transactionid']
|
|
374
|
+
};
|
|
375
|
+
var formParams = {};
|
|
376
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
377
|
+
var contentTypes = [];
|
|
378
|
+
var accepts = ['application/json'];
|
|
379
|
+
var returnType = null;
|
|
380
|
+
return this.apiClient.callApi('/graph/data/object/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Delete's the object with the id
|
|
385
|
+
* @param {Number} id The id of the object to delete
|
|
386
|
+
* @param {Object} opts Optional parameters
|
|
387
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
388
|
+
* @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
|
|
389
|
+
* @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
|
|
390
|
+
* @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
|
|
391
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
392
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
393
|
+
*/
|
|
394
|
+
}, {
|
|
395
|
+
key: "deleteObject",
|
|
396
|
+
value: function deleteObject(id, opts) {
|
|
397
|
+
return this.deleteObjectWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
398
|
+
return response_and_data.data;
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Updates to the document
|
|
404
|
+
* @param {Number} docid
|
|
405
|
+
* @param {module:model/Document} document The document to update
|
|
406
|
+
* @param {Object} opts Optional parameters
|
|
407
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
408
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
409
|
+
* @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
|
|
410
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
411
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
412
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Document} and HTTP response
|
|
413
|
+
*/
|
|
414
|
+
}, {
|
|
415
|
+
key: "editDocumentWithHttpInfo",
|
|
416
|
+
value: function editDocumentWithHttpInfo(docid, document, opts) {
|
|
417
|
+
opts = opts || {};
|
|
418
|
+
var postBody = document;
|
|
419
|
+
// verify the required parameter 'docid' is set
|
|
420
|
+
if (docid === undefined || docid === null) {
|
|
421
|
+
throw new Error("Missing the required parameter 'docid' when calling editDocument");
|
|
422
|
+
}
|
|
423
|
+
// verify the required parameter 'document' is set
|
|
424
|
+
if (document === undefined || document === null) {
|
|
425
|
+
throw new Error("Missing the required parameter 'document' when calling editDocument");
|
|
426
|
+
}
|
|
427
|
+
var pathParams = {
|
|
428
|
+
'docid': docid
|
|
429
|
+
};
|
|
430
|
+
var queryParams = {};
|
|
431
|
+
var headerParams = {
|
|
432
|
+
'Authorization': opts['authorization'],
|
|
433
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
434
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
435
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
436
|
+
'transactionid': opts['transactionid']
|
|
437
|
+
};
|
|
438
|
+
var formParams = {};
|
|
439
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
440
|
+
var contentTypes = ['application/json'];
|
|
441
|
+
var accepts = ['application/json'];
|
|
442
|
+
var returnType = _Document["default"];
|
|
443
|
+
return this.apiClient.callApi('/graph/data/articles/{docid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Updates to the document
|
|
448
|
+
* @param {Number} docid
|
|
449
|
+
* @param {module:model/Document} document The document to update
|
|
450
|
+
* @param {Object} opts Optional parameters
|
|
451
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
452
|
+
* @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
|
|
453
|
+
* @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
|
|
454
|
+
* @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
|
|
455
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
456
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Document}
|
|
457
|
+
*/
|
|
458
|
+
}, {
|
|
459
|
+
key: "editDocument",
|
|
460
|
+
value: function editDocument(docid, document, opts) {
|
|
461
|
+
return this.editDocumentWithHttpInfo(docid, document, opts).then(function (response_and_data) {
|
|
462
|
+
return response_and_data.data;
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Root for the API
|
|
468
|
+
* @param {Object} opts Optional parameters
|
|
469
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
470
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
471
|
+
* @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
|
|
472
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
473
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
474
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
475
|
+
*/
|
|
476
|
+
}, {
|
|
477
|
+
key: "get26WithHttpInfo",
|
|
478
|
+
value: function get26WithHttpInfo(opts) {
|
|
479
|
+
opts = opts || {};
|
|
480
|
+
var postBody = null;
|
|
481
|
+
var pathParams = {};
|
|
482
|
+
var queryParams = {};
|
|
483
|
+
var headerParams = {
|
|
484
|
+
'Authorization': opts['authorization'],
|
|
485
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
486
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
487
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
488
|
+
'transactionid': opts['transactionid']
|
|
489
|
+
};
|
|
490
|
+
var formParams = {};
|
|
491
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
492
|
+
var contentTypes = [];
|
|
493
|
+
var accepts = ['*/*'];
|
|
494
|
+
var returnType = null;
|
|
495
|
+
return this.apiClient.callApi('/graph/data/articles', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Root for the API
|
|
500
|
+
* @param {Object} opts Optional parameters
|
|
501
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
502
|
+
* @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
|
|
503
|
+
* @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
|
|
504
|
+
* @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
|
|
505
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
506
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
507
|
+
*/
|
|
508
|
+
}, {
|
|
509
|
+
key: "get26",
|
|
510
|
+
value: function get26(opts) {
|
|
511
|
+
return this.get26WithHttpInfo(opts).then(function (response_and_data) {
|
|
512
|
+
return response_and_data.data;
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Returns all documents
|
|
518
|
+
* @param {Object} opts Optional parameters
|
|
519
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
520
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
521
|
+
* @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
|
|
522
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
523
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
524
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Document>} and HTTP response
|
|
525
|
+
*/
|
|
526
|
+
}, {
|
|
527
|
+
key: "getAllDocumentsWithHttpInfo",
|
|
528
|
+
value: function getAllDocumentsWithHttpInfo(opts) {
|
|
529
|
+
opts = opts || {};
|
|
530
|
+
var postBody = null;
|
|
531
|
+
var pathParams = {};
|
|
532
|
+
var queryParams = {};
|
|
533
|
+
var headerParams = {
|
|
534
|
+
'Authorization': opts['authorization'],
|
|
535
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
536
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
537
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
538
|
+
'transactionid': opts['transactionid']
|
|
539
|
+
};
|
|
540
|
+
var formParams = {};
|
|
541
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
542
|
+
var contentTypes = [];
|
|
543
|
+
var accepts = ['*/*'];
|
|
544
|
+
var returnType = [_Document["default"]];
|
|
545
|
+
return this.apiClient.callApi('/graph/data/articles/all', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Returns all documents
|
|
550
|
+
* @param {Object} opts Optional parameters
|
|
551
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
552
|
+
* @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
|
|
553
|
+
* @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
|
|
554
|
+
* @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
|
|
555
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
556
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Document>}
|
|
557
|
+
*/
|
|
558
|
+
}, {
|
|
559
|
+
key: "getAllDocuments",
|
|
560
|
+
value: function getAllDocuments(opts) {
|
|
561
|
+
return this.getAllDocumentsWithHttpInfo(opts).then(function (response_and_data) {
|
|
562
|
+
return response_and_data.data;
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Returns all documents
|
|
568
|
+
* @param {Number} id
|
|
569
|
+
* @param {Object} opts Optional parameters
|
|
570
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
571
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
572
|
+
* @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
573
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
574
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
575
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Document} and HTTP response
|
|
576
|
+
*/
|
|
577
|
+
}, {
|
|
578
|
+
key: "getDocumentByIdWithHttpInfo",
|
|
579
|
+
value: function getDocumentByIdWithHttpInfo(id, opts) {
|
|
580
|
+
opts = opts || {};
|
|
581
|
+
var postBody = null;
|
|
582
|
+
// verify the required parameter 'id' is set
|
|
583
|
+
if (id === undefined || id === null) {
|
|
584
|
+
throw new Error("Missing the required parameter 'id' when calling getDocumentById");
|
|
585
|
+
}
|
|
586
|
+
var pathParams = {
|
|
587
|
+
'id': id
|
|
588
|
+
};
|
|
589
|
+
var queryParams = {};
|
|
590
|
+
var headerParams = {
|
|
591
|
+
'Authorization': opts['authorization'],
|
|
592
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
593
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
594
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
595
|
+
'transactionid': opts['transactionid']
|
|
596
|
+
};
|
|
597
|
+
var formParams = {};
|
|
598
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
599
|
+
var contentTypes = [];
|
|
600
|
+
var accepts = ['application/json'];
|
|
601
|
+
var returnType = _Document["default"];
|
|
602
|
+
return this.apiClient.callApi('/graph/data/articles/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Returns all documents
|
|
607
|
+
* @param {Number} id
|
|
608
|
+
* @param {Object} opts Optional parameters
|
|
609
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
610
|
+
* @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
|
|
611
|
+
* @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
|
|
612
|
+
* @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
|
|
613
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
614
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Document}
|
|
615
|
+
*/
|
|
616
|
+
}, {
|
|
617
|
+
key: "getDocumentById",
|
|
618
|
+
value: function getDocumentById(id, opts) {
|
|
619
|
+
return this.getDocumentByIdWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
620
|
+
return response_and_data.data;
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Gets the document part attached to the document with the given page number
|
|
626
|
+
* @param {Number} id
|
|
627
|
+
* @param {Number} id2
|
|
628
|
+
* @param {Object} opts Optional parameters
|
|
629
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
630
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
631
|
+
* @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
|
|
632
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
633
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
634
|
+
* @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
|
|
635
|
+
*/
|
|
636
|
+
}, {
|
|
637
|
+
key: "getDocumentPartByPageNumberWithHttpInfo",
|
|
638
|
+
value: function getDocumentPartByPageNumberWithHttpInfo(id, id2, opts) {
|
|
639
|
+
opts = opts || {};
|
|
640
|
+
var postBody = null;
|
|
641
|
+
// verify the required parameter 'id' is set
|
|
642
|
+
if (id === undefined || id === null) {
|
|
643
|
+
throw new Error("Missing the required parameter 'id' when calling getDocumentPartByPageNumber");
|
|
644
|
+
}
|
|
645
|
+
// verify the required parameter 'id2' is set
|
|
646
|
+
if (id2 === undefined || id2 === null) {
|
|
647
|
+
throw new Error("Missing the required parameter 'id2' when calling getDocumentPartByPageNumber");
|
|
648
|
+
}
|
|
649
|
+
var pathParams = _defineProperty({
|
|
650
|
+
'id': id
|
|
651
|
+
}, "id", id2);
|
|
652
|
+
var queryParams = {};
|
|
653
|
+
var headerParams = {
|
|
654
|
+
'Authorization': opts['authorization'],
|
|
655
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
656
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
657
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
658
|
+
'transactionid': opts['transactionid']
|
|
659
|
+
};
|
|
660
|
+
var formParams = {};
|
|
661
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
662
|
+
var contentTypes = [];
|
|
663
|
+
var accepts = ['*/*'];
|
|
664
|
+
var returnType = {
|
|
665
|
+
'String': _PurgeDataDefaultResponseValue["default"]
|
|
666
|
+
};
|
|
667
|
+
return this.apiClient.callApi('/graph/data/articles/{id}/entryparts/{pagenum}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Gets the document part attached to the document with the given page number
|
|
672
|
+
* @param {Number} id
|
|
673
|
+
* @param {Number} id2
|
|
674
|
+
* @param {Object} opts Optional parameters
|
|
675
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
676
|
+
* @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
|
|
677
|
+
* @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
|
|
678
|
+
* @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
|
|
679
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
680
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>}
|
|
681
|
+
*/
|
|
682
|
+
}, {
|
|
683
|
+
key: "getDocumentPartByPageNumber",
|
|
684
|
+
value: function getDocumentPartByPageNumber(id, id2, opts) {
|
|
685
|
+
return this.getDocumentPartByPageNumberWithHttpInfo(id, id2, opts).then(function (response_and_data) {
|
|
686
|
+
return response_and_data.data;
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Gets the document parts attached to the document
|
|
692
|
+
* @param {Number} id
|
|
693
|
+
* @param {Object} opts Optional parameters
|
|
694
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
695
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
696
|
+
* @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
|
|
697
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
698
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
699
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/DocumentPart>} and HTTP response
|
|
700
|
+
*/
|
|
701
|
+
}, {
|
|
702
|
+
key: "getDocumentPartsWithHttpInfo",
|
|
703
|
+
value: function getDocumentPartsWithHttpInfo(id, opts) {
|
|
704
|
+
opts = opts || {};
|
|
705
|
+
var postBody = null;
|
|
706
|
+
// verify the required parameter 'id' is set
|
|
707
|
+
if (id === undefined || id === null) {
|
|
708
|
+
throw new Error("Missing the required parameter 'id' when calling getDocumentParts");
|
|
709
|
+
}
|
|
710
|
+
var pathParams = {
|
|
711
|
+
'id': id
|
|
712
|
+
};
|
|
713
|
+
var queryParams = {};
|
|
714
|
+
var headerParams = {
|
|
715
|
+
'Authorization': opts['authorization'],
|
|
716
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
717
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
718
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
719
|
+
'transactionid': opts['transactionid']
|
|
720
|
+
};
|
|
721
|
+
var formParams = {};
|
|
722
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
723
|
+
var contentTypes = [];
|
|
724
|
+
var accepts = ['*/*'];
|
|
725
|
+
var returnType = [_DocumentPart["default"]];
|
|
726
|
+
return this.apiClient.callApi('/graph/data/articles/{id}/entryparts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Gets the document parts attached to the document
|
|
731
|
+
* @param {Number} id
|
|
732
|
+
* @param {Object} opts Optional parameters
|
|
733
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
734
|
+
* @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
|
|
735
|
+
* @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
|
|
736
|
+
* @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
|
|
737
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
738
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/DocumentPart>}
|
|
739
|
+
*/
|
|
740
|
+
}, {
|
|
741
|
+
key: "getDocumentParts",
|
|
742
|
+
value: function getDocumentParts(id, opts) {
|
|
743
|
+
return this.getDocumentPartsWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
744
|
+
return response_and_data.data;
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Returns the documents of the given type
|
|
750
|
+
* @param {Number} typeid
|
|
751
|
+
* @param {Object} opts Optional parameters
|
|
752
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
753
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
754
|
+
* @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
|
|
755
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
756
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
757
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Document>} and HTTP response
|
|
758
|
+
*/
|
|
759
|
+
}, {
|
|
760
|
+
key: "getDocumentsByTypeWithHttpInfo",
|
|
761
|
+
value: function getDocumentsByTypeWithHttpInfo(typeid, opts) {
|
|
762
|
+
opts = opts || {};
|
|
763
|
+
var postBody = null;
|
|
764
|
+
// verify the required parameter 'typeid' is set
|
|
765
|
+
if (typeid === undefined || typeid === null) {
|
|
766
|
+
throw new Error("Missing the required parameter 'typeid' when calling getDocumentsByType");
|
|
767
|
+
}
|
|
768
|
+
var pathParams = {
|
|
769
|
+
'typeid': typeid
|
|
770
|
+
};
|
|
771
|
+
var queryParams = {};
|
|
772
|
+
var headerParams = {
|
|
773
|
+
'Authorization': opts['authorization'],
|
|
774
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
775
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
776
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
777
|
+
'transactionid': opts['transactionid']
|
|
778
|
+
};
|
|
779
|
+
var formParams = {};
|
|
780
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
781
|
+
var contentTypes = [];
|
|
782
|
+
var accepts = ['*/*'];
|
|
783
|
+
var returnType = [_Document["default"]];
|
|
784
|
+
return this.apiClient.callApi('/graph/data/articles/entrytype/{typeid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* Returns the documents of the given type
|
|
789
|
+
* @param {Number} typeid
|
|
790
|
+
* @param {Object} opts Optional parameters
|
|
791
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
792
|
+
* @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
|
|
793
|
+
* @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
|
|
794
|
+
* @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
|
|
795
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
796
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Document>}
|
|
797
|
+
*/
|
|
798
|
+
}, {
|
|
799
|
+
key: "getDocumentsByType",
|
|
800
|
+
value: function getDocumentsByType(typeid, opts) {
|
|
801
|
+
return this.getDocumentsByTypeWithHttpInfo(typeid, opts).then(function (response_and_data) {
|
|
802
|
+
return response_and_data.data;
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
}]);
|
|
806
|
+
return DocumentsApi;
|
|
807
|
+
}();
|