@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,535 @@
|
|
|
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 _InputPart = _interopRequireDefault(require("../model/InputPart"));
|
|
11
|
+
var _MultipartBody = _interopRequireDefault(require("../model/MultipartBody"));
|
|
12
|
+
var _PurgeDataDefaultResponseValue = _interopRequireDefault(require("../model/PurgeDataDefaultResponseValue"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
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); }
|
|
15
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
+
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); } }
|
|
17
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
19
|
+
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); } /**
|
|
20
|
+
* gobodo-api
|
|
21
|
+
* REST Interface for Gobodo API
|
|
22
|
+
*
|
|
23
|
+
* The version of the OpenAPI document: 0.1.34
|
|
24
|
+
* Contact: info@gobodo.io
|
|
25
|
+
*
|
|
26
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
|
+
* https://openapi-generator.tech
|
|
28
|
+
* Do not edit the class manually.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Images service.
|
|
33
|
+
* @module api/ImagesApi
|
|
34
|
+
* @version 0.1.34
|
|
35
|
+
*/
|
|
36
|
+
var ImagesApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new ImagesApi.
|
|
39
|
+
* @alias module:api/ImagesApi
|
|
40
|
+
* @class
|
|
41
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
42
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
43
|
+
*/
|
|
44
|
+
function ImagesApi(apiClient) {
|
|
45
|
+
_classCallCheck(this, ImagesApi);
|
|
46
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @param {Number} id The id of the object that the image is being attached to
|
|
51
|
+
* @param {Object} opts Optional parameters
|
|
52
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
53
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
54
|
+
* @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
|
|
55
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
56
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
57
|
+
* @param {Object.<String, {String: [InputPart]}>} [formDataMap]
|
|
58
|
+
* @param {Object.<String, {String: InputPart}>} [formData]
|
|
59
|
+
* @param {Array.<module:model/InputPart>} [parts]
|
|
60
|
+
* @param {String} [preamble]
|
|
61
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
|
|
62
|
+
*/
|
|
63
|
+
_createClass(ImagesApi, [{
|
|
64
|
+
key: "attachImageWithHttpInfo",
|
|
65
|
+
value: function attachImageWithHttpInfo(id, opts) {
|
|
66
|
+
opts = opts || {};
|
|
67
|
+
var postBody = null;
|
|
68
|
+
// verify the required parameter 'id' is set
|
|
69
|
+
if (id === undefined || id === null) {
|
|
70
|
+
throw new Error("Missing the required parameter 'id' when calling attachImage");
|
|
71
|
+
}
|
|
72
|
+
var pathParams = {
|
|
73
|
+
'id': id
|
|
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
|
+
'formDataMap': opts['formDataMap'],
|
|
85
|
+
'formData': opts['formData'],
|
|
86
|
+
'parts': this.apiClient.buildCollectionParam(opts['parts'], 'csv'),
|
|
87
|
+
'preamble': opts['preamble']
|
|
88
|
+
};
|
|
89
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
90
|
+
var contentTypes = ['multipart/form-data'];
|
|
91
|
+
var accepts = ['application/json'];
|
|
92
|
+
var returnType = _PurgeDataDefaultResponseValue["default"];
|
|
93
|
+
return this.apiClient.callApi('/graph/data/object/{id}/attachimage', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @param {Number} id The id of the object that the image is being attached to
|
|
98
|
+
* @param {Object} opts Optional parameters
|
|
99
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
100
|
+
* @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
|
|
101
|
+
* @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
|
|
102
|
+
* @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
|
|
103
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
104
|
+
* @param {Object.<String, {String: [InputPart]}>} opts.formDataMap
|
|
105
|
+
* @param {Object.<String, {String: InputPart}>} opts.formData
|
|
106
|
+
* @param {Array.<module:model/InputPart>} opts.parts
|
|
107
|
+
* @param {String} opts.preamble
|
|
108
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
|
|
109
|
+
*/
|
|
110
|
+
}, {
|
|
111
|
+
key: "attachImage",
|
|
112
|
+
value: function attachImage(id, opts) {
|
|
113
|
+
return this.attachImageWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
114
|
+
return response_and_data.data;
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Delete's the object with the id
|
|
120
|
+
* @param {Number} id The id of the object to delete
|
|
121
|
+
* @param {Object} opts Optional parameters
|
|
122
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
123
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
124
|
+
* @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
|
|
125
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
126
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
127
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
128
|
+
*/
|
|
129
|
+
}, {
|
|
130
|
+
key: "deleteObjectWithHttpInfo",
|
|
131
|
+
value: function deleteObjectWithHttpInfo(id, opts) {
|
|
132
|
+
opts = opts || {};
|
|
133
|
+
var postBody = null;
|
|
134
|
+
// verify the required parameter 'id' is set
|
|
135
|
+
if (id === undefined || id === null) {
|
|
136
|
+
throw new Error("Missing the required parameter 'id' when calling deleteObject");
|
|
137
|
+
}
|
|
138
|
+
var pathParams = {
|
|
139
|
+
'id': id
|
|
140
|
+
};
|
|
141
|
+
var queryParams = {};
|
|
142
|
+
var headerParams = {
|
|
143
|
+
'Authorization': opts['authorization'],
|
|
144
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
145
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
146
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
147
|
+
'transactionid': opts['transactionid']
|
|
148
|
+
};
|
|
149
|
+
var formParams = {};
|
|
150
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
151
|
+
var contentTypes = [];
|
|
152
|
+
var accepts = ['application/json'];
|
|
153
|
+
var returnType = null;
|
|
154
|
+
return this.apiClient.callApi('/graph/data/object/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Delete's the object with the id
|
|
159
|
+
* @param {Number} id The id of the object to delete
|
|
160
|
+
* @param {Object} opts Optional parameters
|
|
161
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
162
|
+
* @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
|
|
163
|
+
* @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
|
|
164
|
+
* @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
|
|
165
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
166
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
167
|
+
*/
|
|
168
|
+
}, {
|
|
169
|
+
key: "deleteObject",
|
|
170
|
+
value: function deleteObject(id, opts) {
|
|
171
|
+
return this.deleteObjectWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
172
|
+
return response_and_data.data;
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Root for the API
|
|
178
|
+
* @param {Object} opts Optional parameters
|
|
179
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
180
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
181
|
+
* @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
|
|
182
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
183
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
184
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
185
|
+
*/
|
|
186
|
+
}, {
|
|
187
|
+
key: "get32WithHttpInfo",
|
|
188
|
+
value: function get32WithHttpInfo(opts) {
|
|
189
|
+
opts = opts || {};
|
|
190
|
+
var postBody = null;
|
|
191
|
+
var pathParams = {};
|
|
192
|
+
var queryParams = {};
|
|
193
|
+
var headerParams = {
|
|
194
|
+
'Authorization': opts['authorization'],
|
|
195
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
196
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
197
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
198
|
+
'transactionid': opts['transactionid']
|
|
199
|
+
};
|
|
200
|
+
var formParams = {};
|
|
201
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
202
|
+
var contentTypes = [];
|
|
203
|
+
var accepts = ['*/*'];
|
|
204
|
+
var returnType = null;
|
|
205
|
+
return this.apiClient.callApi('/graph/data/images', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Root for the API
|
|
210
|
+
* @param {Object} opts Optional parameters
|
|
211
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
212
|
+
* @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
|
|
213
|
+
* @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
|
|
214
|
+
* @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
|
|
215
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
216
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
217
|
+
*/
|
|
218
|
+
}, {
|
|
219
|
+
key: "get32",
|
|
220
|
+
value: function get32(opts) {
|
|
221
|
+
return this.get32WithHttpInfo(opts).then(function (response_and_data) {
|
|
222
|
+
return response_and_data.data;
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Get Image By Id
|
|
228
|
+
* Returns the image with the given id
|
|
229
|
+
* @param {Number} id
|
|
230
|
+
* @param {Object} opts Optional parameters
|
|
231
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
232
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
233
|
+
* @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
|
|
234
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
235
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
236
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Image} and HTTP response
|
|
237
|
+
*/
|
|
238
|
+
}, {
|
|
239
|
+
key: "getImageByIdWithHttpInfo",
|
|
240
|
+
value: function getImageByIdWithHttpInfo(id, opts) {
|
|
241
|
+
opts = opts || {};
|
|
242
|
+
var postBody = null;
|
|
243
|
+
// verify the required parameter 'id' is set
|
|
244
|
+
if (id === undefined || id === null) {
|
|
245
|
+
throw new Error("Missing the required parameter 'id' when calling getImageById");
|
|
246
|
+
}
|
|
247
|
+
var pathParams = {
|
|
248
|
+
'id': id
|
|
249
|
+
};
|
|
250
|
+
var queryParams = {};
|
|
251
|
+
var headerParams = {
|
|
252
|
+
'Authorization': opts['authorization'],
|
|
253
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
254
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
255
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
256
|
+
'transactionid': opts['transactionid']
|
|
257
|
+
};
|
|
258
|
+
var formParams = {};
|
|
259
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
260
|
+
var contentTypes = [];
|
|
261
|
+
var accepts = ['application/json'];
|
|
262
|
+
var returnType = _Image["default"];
|
|
263
|
+
return this.apiClient.callApi('/graph/data/images/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Get Image By Id
|
|
268
|
+
* Returns the image with the given id
|
|
269
|
+
* @param {Number} id
|
|
270
|
+
* @param {Object} opts Optional parameters
|
|
271
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
272
|
+
* @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
|
|
273
|
+
* @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
|
|
274
|
+
* @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
|
|
275
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
276
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Image}
|
|
277
|
+
*/
|
|
278
|
+
}, {
|
|
279
|
+
key: "getImageById",
|
|
280
|
+
value: function getImageById(id, opts) {
|
|
281
|
+
return this.getImageByIdWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
282
|
+
return response_and_data.data;
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @param {Number} id
|
|
288
|
+
* @param {Object} opts Optional parameters
|
|
289
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
290
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
291
|
+
* @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
292
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
293
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
294
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Image>} and HTTP response
|
|
295
|
+
*/
|
|
296
|
+
}, {
|
|
297
|
+
key: "getImagesWithHttpInfo",
|
|
298
|
+
value: function getImagesWithHttpInfo(id, opts) {
|
|
299
|
+
opts = opts || {};
|
|
300
|
+
var postBody = null;
|
|
301
|
+
// verify the required parameter 'id' is set
|
|
302
|
+
if (id === undefined || id === null) {
|
|
303
|
+
throw new Error("Missing the required parameter 'id' when calling getImages");
|
|
304
|
+
}
|
|
305
|
+
var pathParams = {
|
|
306
|
+
'id': id
|
|
307
|
+
};
|
|
308
|
+
var queryParams = {};
|
|
309
|
+
var headerParams = {
|
|
310
|
+
'Authorization': opts['authorization'],
|
|
311
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
312
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
313
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
314
|
+
'transactionid': opts['transactionid']
|
|
315
|
+
};
|
|
316
|
+
var formParams = {};
|
|
317
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
318
|
+
var contentTypes = [];
|
|
319
|
+
var accepts = ['application/json'];
|
|
320
|
+
var returnType = [_Image["default"]];
|
|
321
|
+
return this.apiClient.callApi('/graph/data/object/{id}/images', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* @param {Number} id
|
|
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/Image>}
|
|
333
|
+
*/
|
|
334
|
+
}, {
|
|
335
|
+
key: "getImages",
|
|
336
|
+
value: function getImages(id, opts) {
|
|
337
|
+
return this.getImagesWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
338
|
+
return response_and_data.data;
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Updates an image
|
|
344
|
+
* Updates the image 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
|
+
* @param {Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} [requestBody]
|
|
353
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Image} and HTTP response
|
|
354
|
+
*/
|
|
355
|
+
}, {
|
|
356
|
+
key: "updateImageWithHttpInfo",
|
|
357
|
+
value: function updateImageWithHttpInfo(id, opts) {
|
|
358
|
+
opts = opts || {};
|
|
359
|
+
var postBody = opts['requestBody'];
|
|
360
|
+
// verify the required parameter 'id' is set
|
|
361
|
+
if (id === undefined || id === null) {
|
|
362
|
+
throw new Error("Missing the required parameter 'id' when calling updateImage");
|
|
363
|
+
}
|
|
364
|
+
var pathParams = {
|
|
365
|
+
'id': id
|
|
366
|
+
};
|
|
367
|
+
var queryParams = {};
|
|
368
|
+
var headerParams = {
|
|
369
|
+
'Authorization': opts['authorization'],
|
|
370
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
371
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
372
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
373
|
+
'transactionid': opts['transactionid']
|
|
374
|
+
};
|
|
375
|
+
var formParams = {};
|
|
376
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
377
|
+
var contentTypes = ['application/json'];
|
|
378
|
+
var accepts = ['application/json'];
|
|
379
|
+
var returnType = _Image["default"];
|
|
380
|
+
return this.apiClient.callApi('/graph/data/images/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Updates an image
|
|
385
|
+
* Updates the image with the given id
|
|
386
|
+
* @param {Number} id
|
|
387
|
+
* @param {Object} opts Optional parameters
|
|
388
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
389
|
+
* @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
|
|
390
|
+
* @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
|
|
391
|
+
* @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
|
|
392
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
393
|
+
* @param {Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} opts.requestBody
|
|
394
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Image}
|
|
395
|
+
*/
|
|
396
|
+
}, {
|
|
397
|
+
key: "updateImage",
|
|
398
|
+
value: function updateImage(id, opts) {
|
|
399
|
+
return this.updateImageWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
400
|
+
return response_and_data.data;
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/**
|
|
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 {Object.<String, {String: [InputPart]}>} [formDataMap]
|
|
413
|
+
* @param {Object.<String, {String: InputPart}>} [formData]
|
|
414
|
+
* @param {Array.<module:model/InputPart>} [parts]
|
|
415
|
+
* @param {String} [preamble]
|
|
416
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>} and HTTP response
|
|
417
|
+
*/
|
|
418
|
+
}, {
|
|
419
|
+
key: "upload1WithHttpInfo",
|
|
420
|
+
value: function upload1WithHttpInfo(id, opts) {
|
|
421
|
+
opts = opts || {};
|
|
422
|
+
var postBody = null;
|
|
423
|
+
// verify the required parameter 'id' is set
|
|
424
|
+
if (id === undefined || id === null) {
|
|
425
|
+
throw new Error("Missing the required parameter 'id' when calling upload1");
|
|
426
|
+
}
|
|
427
|
+
var pathParams = {
|
|
428
|
+
'id': id
|
|
429
|
+
};
|
|
430
|
+
var queryParams = {};
|
|
431
|
+
var headerParams = {
|
|
432
|
+
'Authorization': opts['authorization'],
|
|
433
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
434
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
435
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
436
|
+
'transactionid': opts['transactionid']
|
|
437
|
+
};
|
|
438
|
+
var formParams = {
|
|
439
|
+
'formDataMap': opts['formDataMap'],
|
|
440
|
+
'formData': opts['formData'],
|
|
441
|
+
'parts': this.apiClient.buildCollectionParam(opts['parts'], 'csv'),
|
|
442
|
+
'preamble': opts['preamble']
|
|
443
|
+
};
|
|
444
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
445
|
+
var contentTypes = ['multipart/form-data'];
|
|
446
|
+
var accepts = ['*/*'];
|
|
447
|
+
var returnType = {
|
|
448
|
+
'String': _PurgeDataDefaultResponseValue["default"]
|
|
449
|
+
};
|
|
450
|
+
return this.apiClient.callApi('/graph/data/images/{id}/upload', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @param {Number} id
|
|
455
|
+
* @param {Object} opts Optional parameters
|
|
456
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
457
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
458
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
459
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
460
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
461
|
+
* @param {Object.<String, {String: [InputPart]}>} opts.formDataMap
|
|
462
|
+
* @param {Object.<String, {String: InputPart}>} opts.formData
|
|
463
|
+
* @param {Array.<module:model/InputPart>} opts.parts
|
|
464
|
+
* @param {String} opts.preamble
|
|
465
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>}
|
|
466
|
+
*/
|
|
467
|
+
}, {
|
|
468
|
+
key: "upload1",
|
|
469
|
+
value: function upload1(id, opts) {
|
|
470
|
+
return this.upload1WithHttpInfo(id, opts).then(function (response_and_data) {
|
|
471
|
+
return response_and_data.data;
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Upload data
|
|
477
|
+
* Uploads one or more images
|
|
478
|
+
* @param {Object} opts Optional parameters
|
|
479
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
480
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
481
|
+
* @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
|
|
482
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
483
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
484
|
+
* @param {module:model/ImageUploadObject} [object]
|
|
485
|
+
* @param {module:model/MultipartBody} [body]
|
|
486
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Image>} and HTTP response
|
|
487
|
+
*/
|
|
488
|
+
}, {
|
|
489
|
+
key: "uploadImageWithHttpInfo",
|
|
490
|
+
value: function uploadImageWithHttpInfo(opts) {
|
|
491
|
+
opts = opts || {};
|
|
492
|
+
var postBody = null;
|
|
493
|
+
var pathParams = {};
|
|
494
|
+
var queryParams = {};
|
|
495
|
+
var headerParams = {
|
|
496
|
+
'Authorization': opts['authorization'],
|
|
497
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
498
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
499
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
500
|
+
'transactionid': opts['transactionid']
|
|
501
|
+
};
|
|
502
|
+
var formParams = {
|
|
503
|
+
'object': opts['object'],
|
|
504
|
+
'body': opts['body']
|
|
505
|
+
};
|
|
506
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
507
|
+
var contentTypes = ['multipart/form-data'];
|
|
508
|
+
var accepts = ['application/json'];
|
|
509
|
+
var returnType = [_Image["default"]];
|
|
510
|
+
return this.apiClient.callApi('/graph/data/images', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Upload data
|
|
515
|
+
* Uploads one or more images
|
|
516
|
+
* @param {Object} opts Optional parameters
|
|
517
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
518
|
+
* @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
|
|
519
|
+
* @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
|
|
520
|
+
* @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
|
|
521
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
522
|
+
* @param {module:model/ImageUploadObject} opts.object
|
|
523
|
+
* @param {module:model/MultipartBody} opts.body
|
|
524
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Image>}
|
|
525
|
+
*/
|
|
526
|
+
}, {
|
|
527
|
+
key: "uploadImage",
|
|
528
|
+
value: function uploadImage(opts) {
|
|
529
|
+
return this.uploadImageWithHttpInfo(opts).then(function (response_and_data) {
|
|
530
|
+
return response_and_data.data;
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
}]);
|
|
534
|
+
return ImagesApi;
|
|
535
|
+
}();
|