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