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