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