@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,605 @@
|
|
|
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 _Image = _interopRequireDefault(require("../model/Image"));
|
|
9
|
+
var _ImageUploadObject = _interopRequireDefault(require("../model/ImageUploadObject"));
|
|
10
|
+
var _MultipartBody = _interopRequireDefault(require("../model/MultipartBody"));
|
|
11
|
+
var _Page = _interopRequireDefault(require("../model/Page"));
|
|
12
|
+
var _PageSchema = _interopRequireDefault(require("../model/PageSchema"));
|
|
13
|
+
var _PurgeDataDefaultResponseValue = _interopRequireDefault(require("../model/PurgeDataDefaultResponseValue"));
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
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); }
|
|
16
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
+
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); } }
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
20
|
+
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); } /**
|
|
21
|
+
* gobodo-api
|
|
22
|
+
* REST Interface for Gobodo API
|
|
23
|
+
*
|
|
24
|
+
* The version of the OpenAPI document: 0.1.34
|
|
25
|
+
* Contact: info@gobodo.io
|
|
26
|
+
*
|
|
27
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
28
|
+
* https://openapi-generator.tech
|
|
29
|
+
* Do not edit the class manually.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Pages service.
|
|
34
|
+
* @module api/PagesApi
|
|
35
|
+
* @version 0.1.34
|
|
36
|
+
*/
|
|
37
|
+
var PagesApi = exports["default"] = /*#__PURE__*/function () {
|
|
38
|
+
/**
|
|
39
|
+
* Constructs a new PagesApi.
|
|
40
|
+
* @alias module:api/PagesApi
|
|
41
|
+
* @class
|
|
42
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
43
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
44
|
+
*/
|
|
45
|
+
function PagesApi(apiClient) {
|
|
46
|
+
_classCallCheck(this, PagesApi);
|
|
47
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Create Page
|
|
52
|
+
* Create new company page(s)
|
|
53
|
+
* @param {module:model/PageSchema} pageSchema Page object or array of objects to create
|
|
54
|
+
* @param {Object} opts Optional parameters
|
|
55
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
56
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
57
|
+
* @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
|
|
58
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
59
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
60
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/PageSchema>} and HTTP response
|
|
61
|
+
*/
|
|
62
|
+
_createClass(PagesApi, [{
|
|
63
|
+
key: "createPageWithHttpInfo",
|
|
64
|
+
value: function createPageWithHttpInfo(pageSchema, opts) {
|
|
65
|
+
opts = opts || {};
|
|
66
|
+
var postBody = pageSchema;
|
|
67
|
+
// verify the required parameter 'pageSchema' is set
|
|
68
|
+
if (pageSchema === undefined || pageSchema === null) {
|
|
69
|
+
throw new Error("Missing the required parameter 'pageSchema' when calling createPage");
|
|
70
|
+
}
|
|
71
|
+
var pathParams = {};
|
|
72
|
+
var queryParams = {};
|
|
73
|
+
var headerParams = {
|
|
74
|
+
'Authorization': opts['authorization'],
|
|
75
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
76
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
77
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
78
|
+
'transactionid': opts['transactionid']
|
|
79
|
+
};
|
|
80
|
+
var formParams = {};
|
|
81
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
82
|
+
var contentTypes = [];
|
|
83
|
+
var accepts = ['*/*'];
|
|
84
|
+
var returnType = [_PageSchema["default"]];
|
|
85
|
+
return this.apiClient.callApi('/graph/data/pages', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Create Page
|
|
90
|
+
* Create new company page(s)
|
|
91
|
+
* @param {module:model/PageSchema} pageSchema Page object or array of objects to create
|
|
92
|
+
* @param {Object} opts Optional parameters
|
|
93
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
94
|
+
* @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
|
|
95
|
+
* @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
|
|
96
|
+
* @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
|
|
97
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
98
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/PageSchema>}
|
|
99
|
+
*/
|
|
100
|
+
}, {
|
|
101
|
+
key: "createPage",
|
|
102
|
+
value: function createPage(pageSchema, opts) {
|
|
103
|
+
return this.createPageWithHttpInfo(pageSchema, opts).then(function (response_and_data) {
|
|
104
|
+
return response_and_data.data;
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Delete's the object with the id
|
|
110
|
+
* @param {Number} id The id of the object to delete
|
|
111
|
+
* @param {Object} opts Optional parameters
|
|
112
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
113
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
114
|
+
* @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
|
|
115
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
116
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
117
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
118
|
+
*/
|
|
119
|
+
}, {
|
|
120
|
+
key: "deleteObjectWithHttpInfo",
|
|
121
|
+
value: function deleteObjectWithHttpInfo(id, opts) {
|
|
122
|
+
opts = opts || {};
|
|
123
|
+
var postBody = null;
|
|
124
|
+
// verify the required parameter 'id' is set
|
|
125
|
+
if (id === undefined || id === null) {
|
|
126
|
+
throw new Error("Missing the required parameter 'id' when calling deleteObject");
|
|
127
|
+
}
|
|
128
|
+
var pathParams = {
|
|
129
|
+
'id': id
|
|
130
|
+
};
|
|
131
|
+
var queryParams = {};
|
|
132
|
+
var headerParams = {
|
|
133
|
+
'Authorization': opts['authorization'],
|
|
134
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
135
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
136
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
137
|
+
'transactionid': opts['transactionid']
|
|
138
|
+
};
|
|
139
|
+
var formParams = {};
|
|
140
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
141
|
+
var contentTypes = [];
|
|
142
|
+
var accepts = ['application/json'];
|
|
143
|
+
var returnType = null;
|
|
144
|
+
return this.apiClient.callApi('/graph/data/object/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Delete's the object with the id
|
|
149
|
+
* @param {Number} id The id of the object to delete
|
|
150
|
+
* @param {Object} opts Optional parameters
|
|
151
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
152
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
153
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
154
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
155
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
156
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
157
|
+
*/
|
|
158
|
+
}, {
|
|
159
|
+
key: "deleteObject",
|
|
160
|
+
value: function deleteObject(id, opts) {
|
|
161
|
+
return this.deleteObjectWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
162
|
+
return response_and_data.data;
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Edit Page
|
|
168
|
+
* Create new company page(s)
|
|
169
|
+
* @param {Number} id
|
|
170
|
+
* @param {module:model/Page} page Conversation object or array of objects to create
|
|
171
|
+
* @param {Object} opts Optional parameters
|
|
172
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
173
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
174
|
+
* @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
|
|
175
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
176
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
177
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Page} and HTTP response
|
|
178
|
+
*/
|
|
179
|
+
}, {
|
|
180
|
+
key: "editPageWithHttpInfo",
|
|
181
|
+
value: function editPageWithHttpInfo(id, page, opts) {
|
|
182
|
+
opts = opts || {};
|
|
183
|
+
var postBody = page;
|
|
184
|
+
// verify the required parameter 'id' is set
|
|
185
|
+
if (id === undefined || id === null) {
|
|
186
|
+
throw new Error("Missing the required parameter 'id' when calling editPage");
|
|
187
|
+
}
|
|
188
|
+
// verify the required parameter 'page' is set
|
|
189
|
+
if (page === undefined || page === null) {
|
|
190
|
+
throw new Error("Missing the required parameter 'page' when calling editPage");
|
|
191
|
+
}
|
|
192
|
+
var pathParams = {
|
|
193
|
+
'id': id
|
|
194
|
+
};
|
|
195
|
+
var queryParams = {};
|
|
196
|
+
var headerParams = {
|
|
197
|
+
'Authorization': opts['authorization'],
|
|
198
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
199
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
200
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
201
|
+
'transactionid': opts['transactionid']
|
|
202
|
+
};
|
|
203
|
+
var formParams = {};
|
|
204
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
205
|
+
var contentTypes = [];
|
|
206
|
+
var accepts = ['*/*'];
|
|
207
|
+
var returnType = _Page["default"];
|
|
208
|
+
return this.apiClient.callApi('/graph/data/pages/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Edit Page
|
|
213
|
+
* Create new company page(s)
|
|
214
|
+
* @param {Number} id
|
|
215
|
+
* @param {module:model/Page} page Conversation object or array of objects to create
|
|
216
|
+
* @param {Object} opts Optional parameters
|
|
217
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
218
|
+
* @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
|
|
219
|
+
* @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
|
|
220
|
+
* @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
|
|
221
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
222
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Page}
|
|
223
|
+
*/
|
|
224
|
+
}, {
|
|
225
|
+
key: "editPage",
|
|
226
|
+
value: function editPage(id, page, opts) {
|
|
227
|
+
return this.editPageWithHttpInfo(id, page, opts).then(function (response_and_data) {
|
|
228
|
+
return response_and_data.data;
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Root for the API
|
|
234
|
+
* @param {Object} opts Optional parameters
|
|
235
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
236
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
237
|
+
* @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
|
|
238
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
239
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
240
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
241
|
+
*/
|
|
242
|
+
}, {
|
|
243
|
+
key: "get34WithHttpInfo",
|
|
244
|
+
value: function get34WithHttpInfo(opts) {
|
|
245
|
+
opts = opts || {};
|
|
246
|
+
var postBody = null;
|
|
247
|
+
var pathParams = {};
|
|
248
|
+
var queryParams = {};
|
|
249
|
+
var headerParams = {
|
|
250
|
+
'Authorization': opts['authorization'],
|
|
251
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
252
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
253
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
254
|
+
'transactionid': opts['transactionid']
|
|
255
|
+
};
|
|
256
|
+
var formParams = {};
|
|
257
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
258
|
+
var contentTypes = [];
|
|
259
|
+
var accepts = ['*/*'];
|
|
260
|
+
var returnType = null;
|
|
261
|
+
return this.apiClient.callApi('/graph/data/pages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Root for the API
|
|
266
|
+
* @param {Object} opts Optional parameters
|
|
267
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
268
|
+
* @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
|
|
269
|
+
* @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
|
|
270
|
+
* @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
|
|
271
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
272
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
273
|
+
*/
|
|
274
|
+
}, {
|
|
275
|
+
key: "get34",
|
|
276
|
+
value: function get34(opts) {
|
|
277
|
+
return this.get34WithHttpInfo(opts).then(function (response_and_data) {
|
|
278
|
+
return response_and_data.data;
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Get Owned Pages
|
|
284
|
+
* Returns the pages owned by the user
|
|
285
|
+
* @param {Number} uid
|
|
286
|
+
* @param {Object} opts Optional parameters
|
|
287
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
288
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
289
|
+
* @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
|
|
290
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
291
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
292
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Page>} and HTTP response
|
|
293
|
+
*/
|
|
294
|
+
}, {
|
|
295
|
+
key: "getOwnedPagesWithHttpInfo",
|
|
296
|
+
value: function getOwnedPagesWithHttpInfo(uid, opts) {
|
|
297
|
+
opts = opts || {};
|
|
298
|
+
var postBody = null;
|
|
299
|
+
// verify the required parameter 'uid' is set
|
|
300
|
+
if (uid === undefined || uid === null) {
|
|
301
|
+
throw new Error("Missing the required parameter 'uid' when calling getOwnedPages");
|
|
302
|
+
}
|
|
303
|
+
var pathParams = {
|
|
304
|
+
'uid': uid
|
|
305
|
+
};
|
|
306
|
+
var queryParams = {};
|
|
307
|
+
var headerParams = {
|
|
308
|
+
'Authorization': opts['authorization'],
|
|
309
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
310
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
311
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
312
|
+
'transactionid': opts['transactionid']
|
|
313
|
+
};
|
|
314
|
+
var formParams = {};
|
|
315
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
316
|
+
var contentTypes = [];
|
|
317
|
+
var accepts = ['*/*'];
|
|
318
|
+
var returnType = [_Page["default"]];
|
|
319
|
+
return this.apiClient.callApi('/graph/data/pages/ownedpages/{uid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Get Owned Pages
|
|
324
|
+
* Returns the pages owned by the user
|
|
325
|
+
* @param {Number} uid
|
|
326
|
+
* @param {Object} opts Optional parameters
|
|
327
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
328
|
+
* @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
|
|
329
|
+
* @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
|
|
330
|
+
* @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
|
|
331
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
332
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Page>}
|
|
333
|
+
*/
|
|
334
|
+
}, {
|
|
335
|
+
key: "getOwnedPages",
|
|
336
|
+
value: function getOwnedPages(uid, opts) {
|
|
337
|
+
return this.getOwnedPagesWithHttpInfo(uid, opts).then(function (response_and_data) {
|
|
338
|
+
return response_and_data.data;
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Get Page By Id
|
|
344
|
+
* Returns the company/org page with the given id
|
|
345
|
+
* @param {Number} id
|
|
346
|
+
* @param {Object} opts Optional parameters
|
|
347
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
348
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
349
|
+
* @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
|
|
350
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
351
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
352
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PageSchema} and HTTP response
|
|
353
|
+
*/
|
|
354
|
+
}, {
|
|
355
|
+
key: "getPageByIdWithHttpInfo",
|
|
356
|
+
value: function getPageByIdWithHttpInfo(id, opts) {
|
|
357
|
+
opts = opts || {};
|
|
358
|
+
var postBody = null;
|
|
359
|
+
// verify the required parameter 'id' is set
|
|
360
|
+
if (id === undefined || id === null) {
|
|
361
|
+
throw new Error("Missing the required parameter 'id' when calling getPageById");
|
|
362
|
+
}
|
|
363
|
+
var pathParams = {
|
|
364
|
+
'id': id
|
|
365
|
+
};
|
|
366
|
+
var queryParams = {};
|
|
367
|
+
var headerParams = {
|
|
368
|
+
'Authorization': opts['authorization'],
|
|
369
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
370
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
371
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
372
|
+
'transactionid': opts['transactionid']
|
|
373
|
+
};
|
|
374
|
+
var formParams = {};
|
|
375
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
376
|
+
var contentTypes = [];
|
|
377
|
+
var accepts = ['application/json'];
|
|
378
|
+
var returnType = _PageSchema["default"];
|
|
379
|
+
return this.apiClient.callApi('/graph/data/pages/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Get Page By Id
|
|
384
|
+
* Returns the company/org page with the given id
|
|
385
|
+
* @param {Number} id
|
|
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}, with data of type {@link module:model/PageSchema}
|
|
393
|
+
*/
|
|
394
|
+
}, {
|
|
395
|
+
key: "getPageById",
|
|
396
|
+
value: function getPageById(id, opts) {
|
|
397
|
+
return this.getPageByIdWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
398
|
+
return response_and_data.data;
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Edit Page
|
|
404
|
+
* Create new company page(s)
|
|
405
|
+
* @param {Number} id
|
|
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
|
+
* @param {module:model/ImageUploadObject} [object]
|
|
413
|
+
* @param {module:model/MultipartBody} [body]
|
|
414
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Image} and HTTP response
|
|
415
|
+
*/
|
|
416
|
+
}, {
|
|
417
|
+
key: "setPageProfilePictureWithHttpInfo",
|
|
418
|
+
value: function setPageProfilePictureWithHttpInfo(id, opts) {
|
|
419
|
+
opts = opts || {};
|
|
420
|
+
var postBody = null;
|
|
421
|
+
// verify the required parameter 'id' is set
|
|
422
|
+
if (id === undefined || id === null) {
|
|
423
|
+
throw new Error("Missing the required parameter 'id' when calling setPageProfilePicture");
|
|
424
|
+
}
|
|
425
|
+
var pathParams = {
|
|
426
|
+
'id': id
|
|
427
|
+
};
|
|
428
|
+
var queryParams = {};
|
|
429
|
+
var headerParams = {
|
|
430
|
+
'Authorization': opts['authorization'],
|
|
431
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
432
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
433
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
434
|
+
'transactionid': opts['transactionid']
|
|
435
|
+
};
|
|
436
|
+
var formParams = {
|
|
437
|
+
'object': opts['object'],
|
|
438
|
+
'body': opts['body']
|
|
439
|
+
};
|
|
440
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
441
|
+
var contentTypes = ['multipart/form-data'];
|
|
442
|
+
var accepts = ['application/json'];
|
|
443
|
+
var returnType = _Image["default"];
|
|
444
|
+
return this.apiClient.callApi('/graph/data/pages/{id}/profilepicture', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Edit Page
|
|
449
|
+
* Create new company page(s)
|
|
450
|
+
* @param {Number} id
|
|
451
|
+
* @param {Object} opts Optional parameters
|
|
452
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
453
|
+
* @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
|
|
454
|
+
* @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
|
|
455
|
+
* @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
|
|
456
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
457
|
+
* @param {module:model/ImageUploadObject} opts.object
|
|
458
|
+
* @param {module:model/MultipartBody} opts.body
|
|
459
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Image}
|
|
460
|
+
*/
|
|
461
|
+
}, {
|
|
462
|
+
key: "setPageProfilePicture",
|
|
463
|
+
value: function setPageProfilePicture(id, opts) {
|
|
464
|
+
return this.setPageProfilePictureWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
465
|
+
return response_and_data.data;
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Set Multiple Properties
|
|
471
|
+
* Set multiple properties attaced to an object / record
|
|
472
|
+
* @param {Number} id
|
|
473
|
+
* @param {Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} requestBody The property map to set in Json format
|
|
474
|
+
* @param {Object} opts Optional parameters
|
|
475
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
476
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
477
|
+
* @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
478
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
479
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
480
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
481
|
+
*/
|
|
482
|
+
}, {
|
|
483
|
+
key: "setPagePropertiesWithHttpInfo",
|
|
484
|
+
value: function setPagePropertiesWithHttpInfo(id, requestBody, opts) {
|
|
485
|
+
opts = opts || {};
|
|
486
|
+
var postBody = requestBody;
|
|
487
|
+
// verify the required parameter 'id' is set
|
|
488
|
+
if (id === undefined || id === null) {
|
|
489
|
+
throw new Error("Missing the required parameter 'id' when calling setPageProperties");
|
|
490
|
+
}
|
|
491
|
+
// verify the required parameter 'requestBody' is set
|
|
492
|
+
if (requestBody === undefined || requestBody === null) {
|
|
493
|
+
throw new Error("Missing the required parameter 'requestBody' when calling setPageProperties");
|
|
494
|
+
}
|
|
495
|
+
var pathParams = {
|
|
496
|
+
'id': id
|
|
497
|
+
};
|
|
498
|
+
var queryParams = {};
|
|
499
|
+
var headerParams = {
|
|
500
|
+
'Authorization': opts['authorization'],
|
|
501
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
502
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
503
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
504
|
+
'transactionid': opts['transactionid']
|
|
505
|
+
};
|
|
506
|
+
var formParams = {};
|
|
507
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
508
|
+
var contentTypes = ['application/json'];
|
|
509
|
+
var accepts = ['*/*'];
|
|
510
|
+
var returnType = null;
|
|
511
|
+
return this.apiClient.callApi('/graph/data/pages/{id}/properties', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Set Multiple Properties
|
|
516
|
+
* Set multiple properties attaced to an object / record
|
|
517
|
+
* @param {Number} id
|
|
518
|
+
* @param {Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} requestBody The property map to set in Json format
|
|
519
|
+
* @param {Object} opts Optional parameters
|
|
520
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
521
|
+
* @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
|
|
522
|
+
* @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
|
|
523
|
+
* @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
|
|
524
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
525
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
526
|
+
*/
|
|
527
|
+
}, {
|
|
528
|
+
key: "setPageProperties",
|
|
529
|
+
value: function setPageProperties(id, requestBody, opts) {
|
|
530
|
+
return this.setPagePropertiesWithHttpInfo(id, requestBody, opts).then(function (response_and_data) {
|
|
531
|
+
return response_and_data.data;
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Update Property
|
|
537
|
+
* Update a specific property
|
|
538
|
+
* @param {Number} id
|
|
539
|
+
* @param {String} prop
|
|
540
|
+
* @param {Object} opts Optional parameters
|
|
541
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
542
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
543
|
+
* @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
|
|
544
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
545
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
546
|
+
* @param {String} [body]
|
|
547
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
548
|
+
*/
|
|
549
|
+
}, {
|
|
550
|
+
key: "setPagePropertyWithHttpInfo",
|
|
551
|
+
value: function setPagePropertyWithHttpInfo(id, prop, opts) {
|
|
552
|
+
opts = opts || {};
|
|
553
|
+
var postBody = opts['body'];
|
|
554
|
+
// verify the required parameter 'id' is set
|
|
555
|
+
if (id === undefined || id === null) {
|
|
556
|
+
throw new Error("Missing the required parameter 'id' when calling setPageProperty");
|
|
557
|
+
}
|
|
558
|
+
// verify the required parameter 'prop' is set
|
|
559
|
+
if (prop === undefined || prop === null) {
|
|
560
|
+
throw new Error("Missing the required parameter 'prop' when calling setPageProperty");
|
|
561
|
+
}
|
|
562
|
+
var pathParams = {
|
|
563
|
+
'id': id,
|
|
564
|
+
'prop': prop
|
|
565
|
+
};
|
|
566
|
+
var queryParams = {};
|
|
567
|
+
var headerParams = {
|
|
568
|
+
'Authorization': opts['authorization'],
|
|
569
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
570
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
571
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
572
|
+
'transactionid': opts['transactionid']
|
|
573
|
+
};
|
|
574
|
+
var formParams = {};
|
|
575
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
576
|
+
var contentTypes = ['application/json'];
|
|
577
|
+
var accepts = ['*/*'];
|
|
578
|
+
var returnType = null;
|
|
579
|
+
return this.apiClient.callApi('/graph/data/pages/{id}/properties/{prop}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Update Property
|
|
584
|
+
* Update a specific property
|
|
585
|
+
* @param {Number} id
|
|
586
|
+
* @param {String} prop
|
|
587
|
+
* @param {Object} opts Optional parameters
|
|
588
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
589
|
+
* @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
|
|
590
|
+
* @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
|
|
591
|
+
* @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
|
|
592
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
593
|
+
* @param {String} opts.body
|
|
594
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
595
|
+
*/
|
|
596
|
+
}, {
|
|
597
|
+
key: "setPageProperty",
|
|
598
|
+
value: function setPageProperty(id, prop, opts) {
|
|
599
|
+
return this.setPagePropertyWithHttpInfo(id, prop, opts).then(function (response_and_data) {
|
|
600
|
+
return response_and_data.data;
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
}]);
|
|
604
|
+
return PagesApi;
|
|
605
|
+
}();
|