@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,709 @@
|
|
|
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 _InputPart = _interopRequireDefault(require("../model/InputPart"));
|
|
10
|
+
var _MultipartBody = _interopRequireDefault(require("../model/MultipartBody"));
|
|
11
|
+
var _PurgeDataDefaultResponseValue = _interopRequireDefault(require("../model/PurgeDataDefaultResponseValue"));
|
|
12
|
+
var _SimulcastInfo = _interopRequireDefault(require("../model/SimulcastInfo"));
|
|
13
|
+
var _Video = _interopRequireDefault(require("../model/Video"));
|
|
14
|
+
var _VideoSchema = _interopRequireDefault(require("../model/VideoSchema"));
|
|
15
|
+
var _VideoUploadObject = _interopRequireDefault(require("../model/VideoUploadObject"));
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
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); }
|
|
18
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
+
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); } }
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
22
|
+
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); } /**
|
|
23
|
+
* gobodo-api
|
|
24
|
+
* REST Interface for Gobodo API
|
|
25
|
+
*
|
|
26
|
+
* The version of the OpenAPI document: 0.1.34
|
|
27
|
+
* Contact: info@gobodo.io
|
|
28
|
+
*
|
|
29
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
30
|
+
* https://openapi-generator.tech
|
|
31
|
+
* Do not edit the class manually.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
/**
|
|
35
|
+
* Videos service.
|
|
36
|
+
* @module api/VideosApi
|
|
37
|
+
* @version 0.1.34
|
|
38
|
+
*/
|
|
39
|
+
var VideosApi = exports["default"] = /*#__PURE__*/function () {
|
|
40
|
+
/**
|
|
41
|
+
* Constructs a new VideosApi.
|
|
42
|
+
* @alias module:api/VideosApi
|
|
43
|
+
* @class
|
|
44
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
45
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
46
|
+
*/
|
|
47
|
+
function VideosApi(apiClient) {
|
|
48
|
+
_classCallCheck(this, VideosApi);
|
|
49
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Delete's the object with the id
|
|
54
|
+
* @param {Number} id The id of the object to delete
|
|
55
|
+
* @param {Object} opts Optional parameters
|
|
56
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
57
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
58
|
+
* @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
|
|
59
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
60
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
61
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
62
|
+
*/
|
|
63
|
+
_createClass(VideosApi, [{
|
|
64
|
+
key: "deleteObjectWithHttpInfo",
|
|
65
|
+
value: function deleteObjectWithHttpInfo(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 deleteObject");
|
|
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
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
85
|
+
var contentTypes = [];
|
|
86
|
+
var accepts = ['application/json'];
|
|
87
|
+
var returnType = null;
|
|
88
|
+
return this.apiClient.callApi('/graph/data/object/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Delete's the object with the id
|
|
93
|
+
* @param {Number} id The id of the object to delete
|
|
94
|
+
* @param {Object} opts Optional parameters
|
|
95
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
96
|
+
* @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
|
|
97
|
+
* @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
|
|
98
|
+
* @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
|
|
99
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
100
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
101
|
+
*/
|
|
102
|
+
}, {
|
|
103
|
+
key: "deleteObject",
|
|
104
|
+
value: function deleteObject(id, opts) {
|
|
105
|
+
return this.deleteObjectWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
106
|
+
return response_and_data.data;
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Root for the API
|
|
112
|
+
* @param {Object} opts Optional parameters
|
|
113
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
114
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
115
|
+
* @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
|
|
116
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
117
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
118
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
119
|
+
*/
|
|
120
|
+
}, {
|
|
121
|
+
key: "get44WithHttpInfo",
|
|
122
|
+
value: function get44WithHttpInfo(opts) {
|
|
123
|
+
opts = opts || {};
|
|
124
|
+
var postBody = null;
|
|
125
|
+
var pathParams = {};
|
|
126
|
+
var queryParams = {};
|
|
127
|
+
var headerParams = {
|
|
128
|
+
'Authorization': opts['authorization'],
|
|
129
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
130
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
131
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
132
|
+
'transactionid': opts['transactionid']
|
|
133
|
+
};
|
|
134
|
+
var formParams = {};
|
|
135
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
136
|
+
var contentTypes = [];
|
|
137
|
+
var accepts = ['*/*'];
|
|
138
|
+
var returnType = null;
|
|
139
|
+
return this.apiClient.callApi('/graph/data/videos', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Root for the API
|
|
144
|
+
* @param {Object} opts Optional parameters
|
|
145
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
146
|
+
* @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
|
|
147
|
+
* @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
|
|
148
|
+
* @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
|
|
149
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
150
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
151
|
+
*/
|
|
152
|
+
}, {
|
|
153
|
+
key: "get44",
|
|
154
|
+
value: function get44(opts) {
|
|
155
|
+
return this.get44WithHttpInfo(opts).then(function (response_and_data) {
|
|
156
|
+
return response_and_data.data;
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Gets a video by id
|
|
162
|
+
* Gets a video by id
|
|
163
|
+
* @param {Number} id
|
|
164
|
+
* @param {Object} opts Optional parameters
|
|
165
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
166
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
167
|
+
* @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
|
|
168
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
169
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
170
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VideoSchema} and HTTP response
|
|
171
|
+
*/
|
|
172
|
+
}, {
|
|
173
|
+
key: "getVideoByIdWithHttpInfo",
|
|
174
|
+
value: function getVideoByIdWithHttpInfo(id, opts) {
|
|
175
|
+
opts = opts || {};
|
|
176
|
+
var postBody = null;
|
|
177
|
+
// verify the required parameter 'id' is set
|
|
178
|
+
if (id === undefined || id === null) {
|
|
179
|
+
throw new Error("Missing the required parameter 'id' when calling getVideoById");
|
|
180
|
+
}
|
|
181
|
+
var pathParams = {
|
|
182
|
+
'id': id
|
|
183
|
+
};
|
|
184
|
+
var queryParams = {};
|
|
185
|
+
var headerParams = {
|
|
186
|
+
'Authorization': opts['authorization'],
|
|
187
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
188
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
189
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
190
|
+
'transactionid': opts['transactionid']
|
|
191
|
+
};
|
|
192
|
+
var formParams = {};
|
|
193
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
194
|
+
var contentTypes = [];
|
|
195
|
+
var accepts = ['application/json'];
|
|
196
|
+
var returnType = _VideoSchema["default"];
|
|
197
|
+
return this.apiClient.callApi('/graph/data/videos/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Gets a video by id
|
|
202
|
+
* Gets a video by id
|
|
203
|
+
* @param {Number} id
|
|
204
|
+
* @param {Object} opts Optional parameters
|
|
205
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
206
|
+
* @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
|
|
207
|
+
* @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
|
|
208
|
+
* @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
|
|
209
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
210
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VideoSchema}
|
|
211
|
+
*/
|
|
212
|
+
}, {
|
|
213
|
+
key: "getVideoById",
|
|
214
|
+
value: function getVideoById(id, opts) {
|
|
215
|
+
return this.getVideoByIdWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
216
|
+
return response_and_data.data;
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @param {Number} id
|
|
222
|
+
* @param {Object} opts Optional parameters
|
|
223
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
224
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
225
|
+
* @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
|
|
226
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
227
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
228
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Video>} and HTTP response
|
|
229
|
+
*/
|
|
230
|
+
}, {
|
|
231
|
+
key: "getVideosWithHttpInfo",
|
|
232
|
+
value: function getVideosWithHttpInfo(id, opts) {
|
|
233
|
+
opts = opts || {};
|
|
234
|
+
var postBody = null;
|
|
235
|
+
// verify the required parameter 'id' is set
|
|
236
|
+
if (id === undefined || id === null) {
|
|
237
|
+
throw new Error("Missing the required parameter 'id' when calling getVideos");
|
|
238
|
+
}
|
|
239
|
+
var pathParams = {
|
|
240
|
+
'id': id
|
|
241
|
+
};
|
|
242
|
+
var queryParams = {};
|
|
243
|
+
var headerParams = {
|
|
244
|
+
'Authorization': opts['authorization'],
|
|
245
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
246
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
247
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
248
|
+
'transactionid': opts['transactionid']
|
|
249
|
+
};
|
|
250
|
+
var formParams = {};
|
|
251
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
252
|
+
var contentTypes = [];
|
|
253
|
+
var accepts = ['application/json'];
|
|
254
|
+
var returnType = [_Video["default"]];
|
|
255
|
+
return this.apiClient.callApi('/graph/data/object/{id}/videos', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @param {Number} id
|
|
260
|
+
* @param {Object} opts Optional parameters
|
|
261
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
262
|
+
* @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
|
|
263
|
+
* @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
|
|
264
|
+
* @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
|
|
265
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
266
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Video>}
|
|
267
|
+
*/
|
|
268
|
+
}, {
|
|
269
|
+
key: "getVideos",
|
|
270
|
+
value: function getVideos(id, opts) {
|
|
271
|
+
return this.getVideosWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
272
|
+
return response_and_data.data;
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @param {Number} id
|
|
278
|
+
* @param {Number} body Video to update
|
|
279
|
+
* @param {Object} opts Optional parameters
|
|
280
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
281
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
282
|
+
* @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
|
|
283
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
284
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
285
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Image} and HTTP response
|
|
286
|
+
*/
|
|
287
|
+
}, {
|
|
288
|
+
key: "setThumbnailWithHttpInfo",
|
|
289
|
+
value: function setThumbnailWithHttpInfo(id, body, opts) {
|
|
290
|
+
opts = opts || {};
|
|
291
|
+
var postBody = body;
|
|
292
|
+
// verify the required parameter 'id' is set
|
|
293
|
+
if (id === undefined || id === null) {
|
|
294
|
+
throw new Error("Missing the required parameter 'id' when calling setThumbnail");
|
|
295
|
+
}
|
|
296
|
+
// verify the required parameter 'body' is set
|
|
297
|
+
if (body === undefined || body === null) {
|
|
298
|
+
throw new Error("Missing the required parameter 'body' when calling setThumbnail");
|
|
299
|
+
}
|
|
300
|
+
var pathParams = {
|
|
301
|
+
'id': id
|
|
302
|
+
};
|
|
303
|
+
var queryParams = {};
|
|
304
|
+
var headerParams = {
|
|
305
|
+
'Authorization': opts['authorization'],
|
|
306
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
307
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
308
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
309
|
+
'transactionid': opts['transactionid']
|
|
310
|
+
};
|
|
311
|
+
var formParams = {};
|
|
312
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
313
|
+
var contentTypes = ['application/json'];
|
|
314
|
+
var accepts = ['application/json'];
|
|
315
|
+
var returnType = _Image["default"];
|
|
316
|
+
return this.apiClient.callApi('/graph/data/videos/{id}/setthumbnail', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* @param {Number} id
|
|
321
|
+
* @param {Number} body Video to update
|
|
322
|
+
* @param {Object} opts Optional parameters
|
|
323
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
324
|
+
* @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
|
|
325
|
+
* @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
|
|
326
|
+
* @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
|
|
327
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
328
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Image}
|
|
329
|
+
*/
|
|
330
|
+
}, {
|
|
331
|
+
key: "setThumbnail",
|
|
332
|
+
value: function setThumbnail(id, body, opts) {
|
|
333
|
+
return this.setThumbnailWithHttpInfo(id, body, opts).then(function (response_and_data) {
|
|
334
|
+
return response_and_data.data;
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @param {Number} id
|
|
340
|
+
* @param {module:model/SimulcastInfo} simulcastInfo The simulcast info
|
|
341
|
+
* @param {Object} opts Optional parameters
|
|
342
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
343
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
344
|
+
* @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
|
|
345
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
346
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
347
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SimulcastInfo} and HTTP response
|
|
348
|
+
*/
|
|
349
|
+
}, {
|
|
350
|
+
key: "simulcastWithHttpInfo",
|
|
351
|
+
value: function simulcastWithHttpInfo(id, simulcastInfo, opts) {
|
|
352
|
+
opts = opts || {};
|
|
353
|
+
var postBody = simulcastInfo;
|
|
354
|
+
// verify the required parameter 'id' is set
|
|
355
|
+
if (id === undefined || id === null) {
|
|
356
|
+
throw new Error("Missing the required parameter 'id' when calling simulcast");
|
|
357
|
+
}
|
|
358
|
+
// verify the required parameter 'simulcastInfo' is set
|
|
359
|
+
if (simulcastInfo === undefined || simulcastInfo === null) {
|
|
360
|
+
throw new Error("Missing the required parameter 'simulcastInfo' when calling simulcast");
|
|
361
|
+
}
|
|
362
|
+
var pathParams = {
|
|
363
|
+
'id': id
|
|
364
|
+
};
|
|
365
|
+
var queryParams = {};
|
|
366
|
+
var headerParams = {
|
|
367
|
+
'Authorization': opts['authorization'],
|
|
368
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
369
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
370
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
371
|
+
'transactionid': opts['transactionid']
|
|
372
|
+
};
|
|
373
|
+
var formParams = {};
|
|
374
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
375
|
+
var contentTypes = ['application/json'];
|
|
376
|
+
var accepts = ['application/json'];
|
|
377
|
+
var returnType = _SimulcastInfo["default"];
|
|
378
|
+
return this.apiClient.callApi('/graph/data/videos/{id}/simulcast', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @param {Number} id
|
|
383
|
+
* @param {module:model/SimulcastInfo} simulcastInfo The simulcast info
|
|
384
|
+
* @param {Object} opts Optional parameters
|
|
385
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
386
|
+
* @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
|
|
387
|
+
* @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
|
|
388
|
+
* @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
|
|
389
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
390
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SimulcastInfo}
|
|
391
|
+
*/
|
|
392
|
+
}, {
|
|
393
|
+
key: "simulcast",
|
|
394
|
+
value: function simulcast(id, simulcastInfo, opts) {
|
|
395
|
+
return this.simulcastWithHttpInfo(id, simulcastInfo, opts).then(function (response_and_data) {
|
|
396
|
+
return response_and_data.data;
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @param {module:model/VideoSchema} videoSchema The simulcast info
|
|
402
|
+
* @param {Object} opts Optional parameters
|
|
403
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
404
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
405
|
+
* @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
|
|
406
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
407
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
408
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VideoSchema} and HTTP response
|
|
409
|
+
*/
|
|
410
|
+
}, {
|
|
411
|
+
key: "startLiveStreamWithHttpInfo",
|
|
412
|
+
value: function startLiveStreamWithHttpInfo(videoSchema, opts) {
|
|
413
|
+
opts = opts || {};
|
|
414
|
+
var postBody = videoSchema;
|
|
415
|
+
// verify the required parameter 'videoSchema' is set
|
|
416
|
+
if (videoSchema === undefined || videoSchema === null) {
|
|
417
|
+
throw new Error("Missing the required parameter 'videoSchema' when calling startLiveStream");
|
|
418
|
+
}
|
|
419
|
+
var pathParams = {};
|
|
420
|
+
var queryParams = {};
|
|
421
|
+
var headerParams = {
|
|
422
|
+
'Authorization': opts['authorization'],
|
|
423
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
424
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
425
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
426
|
+
'transactionid': opts['transactionid']
|
|
427
|
+
};
|
|
428
|
+
var formParams = {};
|
|
429
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
430
|
+
var contentTypes = ['application/json'];
|
|
431
|
+
var accepts = ['application/json'];
|
|
432
|
+
var returnType = _VideoSchema["default"];
|
|
433
|
+
return this.apiClient.callApi('/graph/data/videos/livestream', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* @param {module:model/VideoSchema} videoSchema The simulcast info
|
|
438
|
+
* @param {Object} opts Optional parameters
|
|
439
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
440
|
+
* @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
|
|
441
|
+
* @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
|
|
442
|
+
* @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
|
|
443
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
444
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VideoSchema}
|
|
445
|
+
*/
|
|
446
|
+
}, {
|
|
447
|
+
key: "startLiveStream",
|
|
448
|
+
value: function startLiveStream(videoSchema, opts) {
|
|
449
|
+
return this.startLiveStreamWithHttpInfo(videoSchema, opts).then(function (response_and_data) {
|
|
450
|
+
return response_and_data.data;
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @param {Number} objectid
|
|
456
|
+
* @param {module:model/VideoSchema} videoSchema The simulcast info
|
|
457
|
+
* @param {Object} opts Optional parameters
|
|
458
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
459
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
460
|
+
* @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
|
|
461
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
462
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
463
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Video} and HTTP response
|
|
464
|
+
*/
|
|
465
|
+
}, {
|
|
466
|
+
key: "streamMeetingWithHttpInfo",
|
|
467
|
+
value: function streamMeetingWithHttpInfo(objectid, videoSchema, opts) {
|
|
468
|
+
opts = opts || {};
|
|
469
|
+
var postBody = videoSchema;
|
|
470
|
+
// verify the required parameter 'objectid' is set
|
|
471
|
+
if (objectid === undefined || objectid === null) {
|
|
472
|
+
throw new Error("Missing the required parameter 'objectid' when calling streamMeeting");
|
|
473
|
+
}
|
|
474
|
+
// verify the required parameter 'videoSchema' is set
|
|
475
|
+
if (videoSchema === undefined || videoSchema === null) {
|
|
476
|
+
throw new Error("Missing the required parameter 'videoSchema' when calling streamMeeting");
|
|
477
|
+
}
|
|
478
|
+
var pathParams = {
|
|
479
|
+
'objectid': objectid
|
|
480
|
+
};
|
|
481
|
+
var queryParams = {};
|
|
482
|
+
var headerParams = {
|
|
483
|
+
'Authorization': opts['authorization'],
|
|
484
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
485
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
486
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
487
|
+
'transactionid': opts['transactionid']
|
|
488
|
+
};
|
|
489
|
+
var formParams = {};
|
|
490
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
491
|
+
var contentTypes = ['application/json'];
|
|
492
|
+
var accepts = ['application/json'];
|
|
493
|
+
var returnType = _Video["default"];
|
|
494
|
+
return this.apiClient.callApi('/graph/data/videos/livestream/{objectid}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* @param {Number} objectid
|
|
499
|
+
* @param {module:model/VideoSchema} videoSchema The simulcast info
|
|
500
|
+
* @param {Object} opts Optional parameters
|
|
501
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
502
|
+
* @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
503
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
504
|
+
* @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
505
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
506
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Video}
|
|
507
|
+
*/
|
|
508
|
+
}, {
|
|
509
|
+
key: "streamMeeting",
|
|
510
|
+
value: function streamMeeting(objectid, videoSchema, opts) {
|
|
511
|
+
return this.streamMeetingWithHttpInfo(objectid, videoSchema, opts).then(function (response_and_data) {
|
|
512
|
+
return response_and_data.data;
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* @param {Number} id
|
|
518
|
+
* @param {module:model/VideoSchema} videoSchema Video to update
|
|
519
|
+
* @param {Object} opts Optional parameters
|
|
520
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
521
|
+
* @param {Number} [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} [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} [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} [transactionid] The id of the transaction this operation is being run in
|
|
525
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VideoSchema} and HTTP response
|
|
526
|
+
*/
|
|
527
|
+
}, {
|
|
528
|
+
key: "updateVideoWithHttpInfo",
|
|
529
|
+
value: function updateVideoWithHttpInfo(id, videoSchema, opts) {
|
|
530
|
+
opts = opts || {};
|
|
531
|
+
var postBody = videoSchema;
|
|
532
|
+
// verify the required parameter 'id' is set
|
|
533
|
+
if (id === undefined || id === null) {
|
|
534
|
+
throw new Error("Missing the required parameter 'id' when calling updateVideo");
|
|
535
|
+
}
|
|
536
|
+
// verify the required parameter 'videoSchema' is set
|
|
537
|
+
if (videoSchema === undefined || videoSchema === null) {
|
|
538
|
+
throw new Error("Missing the required parameter 'videoSchema' when calling updateVideo");
|
|
539
|
+
}
|
|
540
|
+
var pathParams = {
|
|
541
|
+
'id': id
|
|
542
|
+
};
|
|
543
|
+
var queryParams = {};
|
|
544
|
+
var headerParams = {
|
|
545
|
+
'Authorization': opts['authorization'],
|
|
546
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
547
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
548
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
549
|
+
'transactionid': opts['transactionid']
|
|
550
|
+
};
|
|
551
|
+
var formParams = {};
|
|
552
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
553
|
+
var contentTypes = ['application/json'];
|
|
554
|
+
var accepts = ['application/json'];
|
|
555
|
+
var returnType = _VideoSchema["default"];
|
|
556
|
+
return this.apiClient.callApi('/graph/data/videos/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* @param {Number} id
|
|
561
|
+
* @param {module:model/VideoSchema} videoSchema Video to update
|
|
562
|
+
* @param {Object} opts Optional parameters
|
|
563
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
564
|
+
* @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
|
|
565
|
+
* @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
|
|
566
|
+
* @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
|
|
567
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
568
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VideoSchema}
|
|
569
|
+
*/
|
|
570
|
+
}, {
|
|
571
|
+
key: "updateVideo",
|
|
572
|
+
value: function updateVideo(id, videoSchema, opts) {
|
|
573
|
+
return this.updateVideoWithHttpInfo(id, videoSchema, opts).then(function (response_and_data) {
|
|
574
|
+
return response_and_data.data;
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* @param {Number} id
|
|
580
|
+
* @param {Object} opts Optional parameters
|
|
581
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
582
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
583
|
+
* @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
|
|
584
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
585
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
586
|
+
* @param {Object.<String, {String: [InputPart]}>} [formDataMap]
|
|
587
|
+
* @param {Object.<String, {String: InputPart}>} [formData]
|
|
588
|
+
* @param {Array.<module:model/InputPart>} [parts]
|
|
589
|
+
* @param {String} [preamble]
|
|
590
|
+
* @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
|
|
591
|
+
*/
|
|
592
|
+
}, {
|
|
593
|
+
key: "upload2WithHttpInfo",
|
|
594
|
+
value: function upload2WithHttpInfo(id, opts) {
|
|
595
|
+
opts = opts || {};
|
|
596
|
+
var postBody = null;
|
|
597
|
+
// verify the required parameter 'id' is set
|
|
598
|
+
if (id === undefined || id === null) {
|
|
599
|
+
throw new Error("Missing the required parameter 'id' when calling upload2");
|
|
600
|
+
}
|
|
601
|
+
var pathParams = {
|
|
602
|
+
'id': id
|
|
603
|
+
};
|
|
604
|
+
var queryParams = {};
|
|
605
|
+
var headerParams = {
|
|
606
|
+
'Authorization': opts['authorization'],
|
|
607
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
608
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
609
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
610
|
+
'transactionid': opts['transactionid']
|
|
611
|
+
};
|
|
612
|
+
var formParams = {
|
|
613
|
+
'formDataMap': opts['formDataMap'],
|
|
614
|
+
'formData': opts['formData'],
|
|
615
|
+
'parts': this.apiClient.buildCollectionParam(opts['parts'], 'csv'),
|
|
616
|
+
'preamble': opts['preamble']
|
|
617
|
+
};
|
|
618
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
619
|
+
var contentTypes = ['multipart/form-data'];
|
|
620
|
+
var accepts = ['*/*'];
|
|
621
|
+
var returnType = {
|
|
622
|
+
'String': _PurgeDataDefaultResponseValue["default"]
|
|
623
|
+
};
|
|
624
|
+
return this.apiClient.callApi('/graph/data/videos/{id}/upload', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* @param {Number} id
|
|
629
|
+
* @param {Object} opts Optional parameters
|
|
630
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
631
|
+
* @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
|
|
632
|
+
* @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
|
|
633
|
+
* @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
|
|
634
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
635
|
+
* @param {Object.<String, {String: [InputPart]}>} opts.formDataMap
|
|
636
|
+
* @param {Object.<String, {String: InputPart}>} opts.formData
|
|
637
|
+
* @param {Array.<module:model/InputPart>} opts.parts
|
|
638
|
+
* @param {String} opts.preamble
|
|
639
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.<String, module:model/{String: PurgeDataDefaultResponseValue}>}
|
|
640
|
+
*/
|
|
641
|
+
}, {
|
|
642
|
+
key: "upload2",
|
|
643
|
+
value: function upload2(id, opts) {
|
|
644
|
+
return this.upload2WithHttpInfo(id, opts).then(function (response_and_data) {
|
|
645
|
+
return response_and_data.data;
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Upload data
|
|
651
|
+
* Uploads one or more videos
|
|
652
|
+
* @param {Object} opts Optional parameters
|
|
653
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
654
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
655
|
+
* @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
|
|
656
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
657
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
658
|
+
* @param {module:model/VideoUploadObject} [object]
|
|
659
|
+
* @param {module:model/MultipartBody} [body]
|
|
660
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Video>} and HTTP response
|
|
661
|
+
*/
|
|
662
|
+
}, {
|
|
663
|
+
key: "uploadVideoWithHttpInfo",
|
|
664
|
+
value: function uploadVideoWithHttpInfo(opts) {
|
|
665
|
+
opts = opts || {};
|
|
666
|
+
var postBody = null;
|
|
667
|
+
var pathParams = {};
|
|
668
|
+
var queryParams = {};
|
|
669
|
+
var headerParams = {
|
|
670
|
+
'Authorization': opts['authorization'],
|
|
671
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
672
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
673
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
674
|
+
'transactionid': opts['transactionid']
|
|
675
|
+
};
|
|
676
|
+
var formParams = {
|
|
677
|
+
'object': opts['object'],
|
|
678
|
+
'body': opts['body']
|
|
679
|
+
};
|
|
680
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
681
|
+
var contentTypes = ['multipart/form-data'];
|
|
682
|
+
var accepts = ['application/json'];
|
|
683
|
+
var returnType = [_Video["default"]];
|
|
684
|
+
return this.apiClient.callApi('/graph/data/videos/upload', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Upload data
|
|
689
|
+
* Uploads one or more videos
|
|
690
|
+
* @param {Object} opts Optional parameters
|
|
691
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
692
|
+
* @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
|
|
693
|
+
* @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
|
|
694
|
+
* @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
|
|
695
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
696
|
+
* @param {module:model/VideoUploadObject} opts.object
|
|
697
|
+
* @param {module:model/MultipartBody} opts.body
|
|
698
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Video>}
|
|
699
|
+
*/
|
|
700
|
+
}, {
|
|
701
|
+
key: "uploadVideo",
|
|
702
|
+
value: function uploadVideo(opts) {
|
|
703
|
+
return this.uploadVideoWithHttpInfo(opts).then(function (response_and_data) {
|
|
704
|
+
return response_and_data.data;
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
}]);
|
|
708
|
+
return VideosApi;
|
|
709
|
+
}();
|