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