@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,1055 @@
|
|
|
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 _GraphRelationship = _interopRequireDefault(require("../model/GraphRelationship"));
|
|
9
|
+
var _GraphRelationshipType = _interopRequireDefault(require("../model/GraphRelationshipType"));
|
|
10
|
+
var _PurgeDataDefaultResponseValue = _interopRequireDefault(require("../model/PurgeDataDefaultResponseValue"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
+
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); } }
|
|
15
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
17
|
+
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); } /**
|
|
18
|
+
* gobodo-api
|
|
19
|
+
* REST Interface for Gobodo API
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 0.1.34
|
|
22
|
+
* Contact: info@gobodo.io
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* GraphRelationshipTypes service.
|
|
31
|
+
* @module api/GraphRelationshipTypesApi
|
|
32
|
+
* @version 0.1.34
|
|
33
|
+
*/
|
|
34
|
+
var GraphRelationshipTypesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new GraphRelationshipTypesApi.
|
|
37
|
+
* @alias module:api/GraphRelationshipTypesApi
|
|
38
|
+
* @class
|
|
39
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
40
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
41
|
+
*/
|
|
42
|
+
function GraphRelationshipTypesApi(apiClient) {
|
|
43
|
+
_classCallCheck(this, GraphRelationshipTypesApi);
|
|
44
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @param {Number} id
|
|
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
|
+
* @param {String} [body]
|
|
56
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
|
|
57
|
+
*/
|
|
58
|
+
_createClass(GraphRelationshipTypesApi, [{
|
|
59
|
+
key: "addEndObjectTypes1WithHttpInfo",
|
|
60
|
+
value: function addEndObjectTypes1WithHttpInfo(id, opts) {
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
var postBody = opts['body'];
|
|
63
|
+
// verify the required parameter 'id' is set
|
|
64
|
+
if (id === undefined || id === null) {
|
|
65
|
+
throw new Error("Missing the required parameter 'id' when calling addEndObjectTypes1");
|
|
66
|
+
}
|
|
67
|
+
var pathParams = {
|
|
68
|
+
'id': id
|
|
69
|
+
};
|
|
70
|
+
var queryParams = {};
|
|
71
|
+
var headerParams = {
|
|
72
|
+
'Authorization': opts['authorization'],
|
|
73
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
74
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
75
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
76
|
+
'transactionid': opts['transactionid']
|
|
77
|
+
};
|
|
78
|
+
var formParams = {};
|
|
79
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
80
|
+
var contentTypes = ['application/json'];
|
|
81
|
+
var accepts = ['application/json'];
|
|
82
|
+
var returnType = _PurgeDataDefaultResponseValue["default"];
|
|
83
|
+
return this.apiClient.callApi('/graph/data/relationshiptype/{id}/endobjecttypes', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @param {Number} id
|
|
88
|
+
* @param {Object} opts Optional parameters
|
|
89
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
90
|
+
* @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
|
|
91
|
+
* @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
|
|
92
|
+
* @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
|
|
93
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
94
|
+
* @param {String} opts.body
|
|
95
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
|
|
96
|
+
*/
|
|
97
|
+
}, {
|
|
98
|
+
key: "addEndObjectTypes1",
|
|
99
|
+
value: function addEndObjectTypes1(id, opts) {
|
|
100
|
+
return this.addEndObjectTypes1WithHttpInfo(id, opts).then(function (response_and_data) {
|
|
101
|
+
return response_and_data.data;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @param {Number} id
|
|
107
|
+
* @param {Object} opts Optional parameters
|
|
108
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
109
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
110
|
+
* @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
|
|
111
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
112
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
113
|
+
* @param {String} [body]
|
|
114
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
|
|
115
|
+
*/
|
|
116
|
+
}, {
|
|
117
|
+
key: "addStartObjectTypesWithHttpInfo",
|
|
118
|
+
value: function addStartObjectTypesWithHttpInfo(id, opts) {
|
|
119
|
+
opts = opts || {};
|
|
120
|
+
var postBody = opts['body'];
|
|
121
|
+
// verify the required parameter 'id' is set
|
|
122
|
+
if (id === undefined || id === null) {
|
|
123
|
+
throw new Error("Missing the required parameter 'id' when calling addStartObjectTypes");
|
|
124
|
+
}
|
|
125
|
+
var pathParams = {
|
|
126
|
+
'id': id
|
|
127
|
+
};
|
|
128
|
+
var queryParams = {};
|
|
129
|
+
var headerParams = {
|
|
130
|
+
'Authorization': opts['authorization'],
|
|
131
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
132
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
133
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
134
|
+
'transactionid': opts['transactionid']
|
|
135
|
+
};
|
|
136
|
+
var formParams = {};
|
|
137
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
138
|
+
var contentTypes = ['application/json'];
|
|
139
|
+
var accepts = ['application/json'];
|
|
140
|
+
var returnType = _PurgeDataDefaultResponseValue["default"];
|
|
141
|
+
return this.apiClient.callApi('/graph/data/relationshiptype/{id}/startobjecttypes', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @param {Number} id
|
|
146
|
+
* @param {Object} opts Optional parameters
|
|
147
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
148
|
+
* @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
|
|
149
|
+
* @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
|
|
150
|
+
* @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
|
|
151
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
152
|
+
* @param {String} opts.body
|
|
153
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
|
|
154
|
+
*/
|
|
155
|
+
}, {
|
|
156
|
+
key: "addStartObjectTypes",
|
|
157
|
+
value: function addStartObjectTypes(id, opts) {
|
|
158
|
+
return this.addStartObjectTypesWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
159
|
+
return response_and_data.data;
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Create relationshp type
|
|
165
|
+
* Creates a new relationship type
|
|
166
|
+
* @param {module:model/GraphRelationshipType} graphRelationshipType Relationship Type data
|
|
167
|
+
* @param {Object} opts Optional parameters
|
|
168
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
169
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
170
|
+
* @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
|
|
171
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
172
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
173
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GraphRelationshipType} and HTTP response
|
|
174
|
+
*/
|
|
175
|
+
}, {
|
|
176
|
+
key: "createRelationshipTypeWithHttpInfo",
|
|
177
|
+
value: function createRelationshipTypeWithHttpInfo(graphRelationshipType, opts) {
|
|
178
|
+
opts = opts || {};
|
|
179
|
+
var postBody = graphRelationshipType;
|
|
180
|
+
// verify the required parameter 'graphRelationshipType' is set
|
|
181
|
+
if (graphRelationshipType === undefined || graphRelationshipType === null) {
|
|
182
|
+
throw new Error("Missing the required parameter 'graphRelationshipType' when calling createRelationshipType");
|
|
183
|
+
}
|
|
184
|
+
var pathParams = {};
|
|
185
|
+
var queryParams = {};
|
|
186
|
+
var headerParams = {
|
|
187
|
+
'Authorization': opts['authorization'],
|
|
188
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
189
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
190
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
191
|
+
'transactionid': opts['transactionid']
|
|
192
|
+
};
|
|
193
|
+
var formParams = {};
|
|
194
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
195
|
+
var contentTypes = ['application/json'];
|
|
196
|
+
var accepts = ['application/json'];
|
|
197
|
+
var returnType = _GraphRelationshipType["default"];
|
|
198
|
+
return this.apiClient.callApi('/graph/data/relationshiptype', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Create relationshp type
|
|
203
|
+
* Creates a new relationship type
|
|
204
|
+
* @param {module:model/GraphRelationshipType} graphRelationshipType Relationship Type data
|
|
205
|
+
* @param {Object} opts Optional parameters
|
|
206
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
207
|
+
* @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
|
|
208
|
+
* @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
|
|
209
|
+
* @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
|
|
210
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
211
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphRelationshipType}
|
|
212
|
+
*/
|
|
213
|
+
}, {
|
|
214
|
+
key: "createRelationshipType",
|
|
215
|
+
value: function createRelationshipType(graphRelationshipType, opts) {
|
|
216
|
+
return this.createRelationshipTypeWithHttpInfo(graphRelationshipType, opts).then(function (response_and_data) {
|
|
217
|
+
return response_and_data.data;
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Root for the API
|
|
223
|
+
* @param {Object} opts Optional parameters
|
|
224
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
225
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
226
|
+
* @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
|
|
227
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
228
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
229
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
230
|
+
*/
|
|
231
|
+
}, {
|
|
232
|
+
key: "get12WithHttpInfo",
|
|
233
|
+
value: function get12WithHttpInfo(opts) {
|
|
234
|
+
opts = opts || {};
|
|
235
|
+
var postBody = null;
|
|
236
|
+
var pathParams = {};
|
|
237
|
+
var queryParams = {};
|
|
238
|
+
var headerParams = {
|
|
239
|
+
'Authorization': opts['authorization'],
|
|
240
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
241
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
242
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
243
|
+
'transactionid': opts['transactionid']
|
|
244
|
+
};
|
|
245
|
+
var formParams = {};
|
|
246
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
247
|
+
var contentTypes = [];
|
|
248
|
+
var accepts = ['*/*'];
|
|
249
|
+
var returnType = null;
|
|
250
|
+
return this.apiClient.callApi('/graph/data/relationshiptype', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Root for the API
|
|
255
|
+
* @param {Object} opts Optional parameters
|
|
256
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
257
|
+
* @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
|
|
258
|
+
* @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
|
|
259
|
+
* @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
|
|
260
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
261
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
262
|
+
*/
|
|
263
|
+
}, {
|
|
264
|
+
key: "get12",
|
|
265
|
+
value: function get12(opts) {
|
|
266
|
+
return this.get12WithHttpInfo(opts).then(function (response_and_data) {
|
|
267
|
+
return response_and_data.data;
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Get All Relationships By Type
|
|
273
|
+
* Returns a listing of relationships
|
|
274
|
+
* @param {Number} id The id of the relationship type we are searching for
|
|
275
|
+
* @param {Number} reltypeid The id of the object that we are retrieving relationships on
|
|
276
|
+
* @param {Object} opts Optional parameters
|
|
277
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
278
|
+
* @param {Number} [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} [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} [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} [transactionid] The id of the transaction this operation is being run in
|
|
282
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphRelationship>} and HTTP response
|
|
283
|
+
*/
|
|
284
|
+
}, {
|
|
285
|
+
key: "getAllRelationshipsByTypeWithHttpInfo",
|
|
286
|
+
value: function getAllRelationshipsByTypeWithHttpInfo(id, reltypeid, opts) {
|
|
287
|
+
opts = opts || {};
|
|
288
|
+
var postBody = null;
|
|
289
|
+
// verify the required parameter 'id' is set
|
|
290
|
+
if (id === undefined || id === null) {
|
|
291
|
+
throw new Error("Missing the required parameter 'id' when calling getAllRelationshipsByType");
|
|
292
|
+
}
|
|
293
|
+
// verify the required parameter 'reltypeid' is set
|
|
294
|
+
if (reltypeid === undefined || reltypeid === null) {
|
|
295
|
+
throw new Error("Missing the required parameter 'reltypeid' when calling getAllRelationshipsByType");
|
|
296
|
+
}
|
|
297
|
+
var pathParams = {
|
|
298
|
+
'id': id,
|
|
299
|
+
'reltypeid': reltypeid
|
|
300
|
+
};
|
|
301
|
+
var queryParams = {};
|
|
302
|
+
var headerParams = {
|
|
303
|
+
'Authorization': opts['authorization'],
|
|
304
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
305
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
306
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
307
|
+
'transactionid': opts['transactionid']
|
|
308
|
+
};
|
|
309
|
+
var formParams = {};
|
|
310
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
311
|
+
var contentTypes = [];
|
|
312
|
+
var accepts = ['application/json'];
|
|
313
|
+
var returnType = [_GraphRelationship["default"]];
|
|
314
|
+
return this.apiClient.callApi('/graph/data/object/{id}/relationships/all/{reltypeid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Get All Relationships By Type
|
|
319
|
+
* Returns a listing of relationships
|
|
320
|
+
* @param {Number} id The id of the relationship type we are searching for
|
|
321
|
+
* @param {Number} reltypeid The id of the object that we are retrieving relationships on
|
|
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 Array.<module:model/GraphRelationship>}
|
|
329
|
+
*/
|
|
330
|
+
}, {
|
|
331
|
+
key: "getAllRelationshipsByType",
|
|
332
|
+
value: function getAllRelationshipsByType(id, reltypeid, opts) {
|
|
333
|
+
return this.getAllRelationshipsByTypeWithHttpInfo(id, reltypeid, opts).then(function (response_and_data) {
|
|
334
|
+
return response_and_data.data;
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @param {Number} id
|
|
340
|
+
* @param {Object} opts Optional parameters
|
|
341
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
342
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
343
|
+
* @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
|
|
344
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
345
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
346
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
|
|
347
|
+
*/
|
|
348
|
+
}, {
|
|
349
|
+
key: "getEndObjectTypes1WithHttpInfo",
|
|
350
|
+
value: function getEndObjectTypes1WithHttpInfo(id, opts) {
|
|
351
|
+
opts = opts || {};
|
|
352
|
+
var postBody = null;
|
|
353
|
+
// verify the required parameter 'id' is set
|
|
354
|
+
if (id === undefined || id === null) {
|
|
355
|
+
throw new Error("Missing the required parameter 'id' when calling getEndObjectTypes1");
|
|
356
|
+
}
|
|
357
|
+
var pathParams = {
|
|
358
|
+
'id': id
|
|
359
|
+
};
|
|
360
|
+
var queryParams = {};
|
|
361
|
+
var headerParams = {
|
|
362
|
+
'Authorization': opts['authorization'],
|
|
363
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
364
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
365
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
366
|
+
'transactionid': opts['transactionid']
|
|
367
|
+
};
|
|
368
|
+
var formParams = {};
|
|
369
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
370
|
+
var contentTypes = [];
|
|
371
|
+
var accepts = ['application/json'];
|
|
372
|
+
var returnType = _PurgeDataDefaultResponseValue["default"];
|
|
373
|
+
return this.apiClient.callApi('/graph/data/relationshiptype/{id}/endobjecttypes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @param {Number} id
|
|
378
|
+
* @param {Object} opts Optional parameters
|
|
379
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
380
|
+
* @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
|
|
381
|
+
* @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
|
|
382
|
+
* @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
|
|
383
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
384
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
|
|
385
|
+
*/
|
|
386
|
+
}, {
|
|
387
|
+
key: "getEndObjectTypes1",
|
|
388
|
+
value: function getEndObjectTypes1(id, opts) {
|
|
389
|
+
return this.getEndObjectTypes1WithHttpInfo(id, opts).then(function (response_and_data) {
|
|
390
|
+
return response_and_data.data;
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* @param {Number} id
|
|
396
|
+
* @param {Object} opts Optional parameters
|
|
397
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
398
|
+
* @param {Number} [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} [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} [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} [transactionid] The id of the transaction this operation is being run in
|
|
402
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
|
|
403
|
+
*/
|
|
404
|
+
}, {
|
|
405
|
+
key: "getFields2WithHttpInfo",
|
|
406
|
+
value: function getFields2WithHttpInfo(id, opts) {
|
|
407
|
+
opts = opts || {};
|
|
408
|
+
var postBody = null;
|
|
409
|
+
// verify the required parameter 'id' is set
|
|
410
|
+
if (id === undefined || id === null) {
|
|
411
|
+
throw new Error("Missing the required parameter 'id' when calling getFields2");
|
|
412
|
+
}
|
|
413
|
+
var pathParams = {
|
|
414
|
+
'id': id
|
|
415
|
+
};
|
|
416
|
+
var queryParams = {};
|
|
417
|
+
var headerParams = {
|
|
418
|
+
'Authorization': opts['authorization'],
|
|
419
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
420
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
421
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
422
|
+
'transactionid': opts['transactionid']
|
|
423
|
+
};
|
|
424
|
+
var formParams = {};
|
|
425
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
426
|
+
var contentTypes = [];
|
|
427
|
+
var accepts = ['application/json'];
|
|
428
|
+
var returnType = _PurgeDataDefaultResponseValue["default"];
|
|
429
|
+
return this.apiClient.callApi('/graph/data/relationshiptype/{id}/fields', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* @param {Number} id
|
|
434
|
+
* @param {Object} opts Optional parameters
|
|
435
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
436
|
+
* @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
|
|
437
|
+
* @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
|
|
438
|
+
* @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
|
|
439
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
440
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
|
|
441
|
+
*/
|
|
442
|
+
}, {
|
|
443
|
+
key: "getFields2",
|
|
444
|
+
value: function getFields2(id, opts) {
|
|
445
|
+
return this.getFields2WithHttpInfo(id, opts).then(function (response_and_data) {
|
|
446
|
+
return response_and_data.data;
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Gets the relationship type by the java classname
|
|
452
|
+
* @param {String} classname
|
|
453
|
+
* @param {Object} opts Optional parameters
|
|
454
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
455
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
456
|
+
* @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
|
|
457
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
458
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
459
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GraphRelationshipType} and HTTP response
|
|
460
|
+
*/
|
|
461
|
+
}, {
|
|
462
|
+
key: "getRelationshipTypeByClassNameWithHttpInfo",
|
|
463
|
+
value: function getRelationshipTypeByClassNameWithHttpInfo(classname, opts) {
|
|
464
|
+
opts = opts || {};
|
|
465
|
+
var postBody = null;
|
|
466
|
+
// verify the required parameter 'classname' is set
|
|
467
|
+
if (classname === undefined || classname === null) {
|
|
468
|
+
throw new Error("Missing the required parameter 'classname' when calling getRelationshipTypeByClassName");
|
|
469
|
+
}
|
|
470
|
+
var pathParams = {
|
|
471
|
+
'classname': classname
|
|
472
|
+
};
|
|
473
|
+
var queryParams = {};
|
|
474
|
+
var headerParams = {
|
|
475
|
+
'Authorization': opts['authorization'],
|
|
476
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
477
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
478
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
479
|
+
'transactionid': opts['transactionid']
|
|
480
|
+
};
|
|
481
|
+
var formParams = {};
|
|
482
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
483
|
+
var contentTypes = [];
|
|
484
|
+
var accepts = ['*/*'];
|
|
485
|
+
var returnType = _GraphRelationshipType["default"];
|
|
486
|
+
return this.apiClient.callApi('/graph/data/relationshiptype/class/{classname}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Gets the relationship type by the java classname
|
|
491
|
+
* @param {String} classname
|
|
492
|
+
* @param {Object} opts Optional parameters
|
|
493
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
494
|
+
* @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
|
|
495
|
+
* @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
|
|
496
|
+
* @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
|
|
497
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
498
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphRelationshipType}
|
|
499
|
+
*/
|
|
500
|
+
}, {
|
|
501
|
+
key: "getRelationshipTypeByClassName",
|
|
502
|
+
value: function getRelationshipTypeByClassName(classname, opts) {
|
|
503
|
+
return this.getRelationshipTypeByClassNameWithHttpInfo(classname, opts).then(function (response_and_data) {
|
|
504
|
+
return response_and_data.data;
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Gets the relationship type by key
|
|
510
|
+
* @param {String} id
|
|
511
|
+
* @param {Object} opts Optional parameters
|
|
512
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
513
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
514
|
+
* @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
|
|
515
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
516
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
517
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GraphRelationshipType} and HTTP response
|
|
518
|
+
*/
|
|
519
|
+
}, {
|
|
520
|
+
key: "getRelationshipTypeByIdWithHttpInfo",
|
|
521
|
+
value: function getRelationshipTypeByIdWithHttpInfo(id, opts) {
|
|
522
|
+
opts = opts || {};
|
|
523
|
+
var postBody = null;
|
|
524
|
+
// verify the required parameter 'id' is set
|
|
525
|
+
if (id === undefined || id === null) {
|
|
526
|
+
throw new Error("Missing the required parameter 'id' when calling getRelationshipTypeById");
|
|
527
|
+
}
|
|
528
|
+
var pathParams = {
|
|
529
|
+
'id': id
|
|
530
|
+
};
|
|
531
|
+
var queryParams = {};
|
|
532
|
+
var headerParams = {
|
|
533
|
+
'Authorization': opts['authorization'],
|
|
534
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
535
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
536
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
537
|
+
'transactionid': opts['transactionid']
|
|
538
|
+
};
|
|
539
|
+
var formParams = {};
|
|
540
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
541
|
+
var contentTypes = [];
|
|
542
|
+
var accepts = ['application/json'];
|
|
543
|
+
var returnType = _GraphRelationshipType["default"];
|
|
544
|
+
return this.apiClient.callApi('/graph/data/relationshiptype/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Gets the relationship type by key
|
|
549
|
+
* @param {String} id
|
|
550
|
+
* @param {Object} opts Optional parameters
|
|
551
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
552
|
+
* @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
|
|
553
|
+
* @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
|
|
554
|
+
* @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
|
|
555
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
556
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphRelationshipType}
|
|
557
|
+
*/
|
|
558
|
+
}, {
|
|
559
|
+
key: "getRelationshipTypeById",
|
|
560
|
+
value: function getRelationshipTypeById(id, opts) {
|
|
561
|
+
return this.getRelationshipTypeByIdWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
562
|
+
return response_and_data.data;
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Gets the relationship type by key
|
|
568
|
+
* @param {String} key
|
|
569
|
+
* @param {Object} opts Optional parameters
|
|
570
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
571
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
572
|
+
* @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
|
|
573
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
574
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
575
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GraphRelationshipType} and HTTP response
|
|
576
|
+
*/
|
|
577
|
+
}, {
|
|
578
|
+
key: "getRelationshipTypeByKeyWithHttpInfo",
|
|
579
|
+
value: function getRelationshipTypeByKeyWithHttpInfo(key, opts) {
|
|
580
|
+
opts = opts || {};
|
|
581
|
+
var postBody = null;
|
|
582
|
+
// verify the required parameter 'key' is set
|
|
583
|
+
if (key === undefined || key === null) {
|
|
584
|
+
throw new Error("Missing the required parameter 'key' when calling getRelationshipTypeByKey");
|
|
585
|
+
}
|
|
586
|
+
var pathParams = {
|
|
587
|
+
'key': key
|
|
588
|
+
};
|
|
589
|
+
var queryParams = {};
|
|
590
|
+
var headerParams = {
|
|
591
|
+
'Authorization': opts['authorization'],
|
|
592
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
593
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
594
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
595
|
+
'transactionid': opts['transactionid']
|
|
596
|
+
};
|
|
597
|
+
var formParams = {};
|
|
598
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
599
|
+
var contentTypes = [];
|
|
600
|
+
var accepts = ['application/json'];
|
|
601
|
+
var returnType = _GraphRelationshipType["default"];
|
|
602
|
+
return this.apiClient.callApi('/graph/data/relationshiptype/{key}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Gets the relationship type by key
|
|
607
|
+
* @param {String} key
|
|
608
|
+
* @param {Object} opts Optional parameters
|
|
609
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
610
|
+
* @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
|
|
611
|
+
* @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
|
|
612
|
+
* @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
|
|
613
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
614
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphRelationshipType}
|
|
615
|
+
*/
|
|
616
|
+
}, {
|
|
617
|
+
key: "getRelationshipTypeByKey",
|
|
618
|
+
value: function getRelationshipTypeByKey(key, opts) {
|
|
619
|
+
return this.getRelationshipTypeByKeyWithHttpInfo(key, opts).then(function (response_and_data) {
|
|
620
|
+
return response_and_data.data;
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Get Incoming Relationships By Type
|
|
626
|
+
* Returns a listing of relationships
|
|
627
|
+
* @param {Number} id The id of the object that we are retrieving relationships on
|
|
628
|
+
* @param {Number} reltypeid The id of the relationship type we are searching for
|
|
629
|
+
* @param {Object} opts Optional parameters
|
|
630
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
631
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
632
|
+
* @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
633
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
634
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
635
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphRelationship>} and HTTP response
|
|
636
|
+
*/
|
|
637
|
+
}, {
|
|
638
|
+
key: "getRelationshipsByTypeInWithHttpInfo",
|
|
639
|
+
value: function getRelationshipsByTypeInWithHttpInfo(id, reltypeid, opts) {
|
|
640
|
+
opts = opts || {};
|
|
641
|
+
var postBody = null;
|
|
642
|
+
// verify the required parameter 'id' is set
|
|
643
|
+
if (id === undefined || id === null) {
|
|
644
|
+
throw new Error("Missing the required parameter 'id' when calling getRelationshipsByTypeIn");
|
|
645
|
+
}
|
|
646
|
+
// verify the required parameter 'reltypeid' is set
|
|
647
|
+
if (reltypeid === undefined || reltypeid === null) {
|
|
648
|
+
throw new Error("Missing the required parameter 'reltypeid' when calling getRelationshipsByTypeIn");
|
|
649
|
+
}
|
|
650
|
+
var pathParams = {
|
|
651
|
+
'id': id,
|
|
652
|
+
'reltypeid': reltypeid
|
|
653
|
+
};
|
|
654
|
+
var queryParams = {};
|
|
655
|
+
var headerParams = {
|
|
656
|
+
'Authorization': opts['authorization'],
|
|
657
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
658
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
659
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
660
|
+
'transactionid': opts['transactionid']
|
|
661
|
+
};
|
|
662
|
+
var formParams = {};
|
|
663
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
664
|
+
var contentTypes = [];
|
|
665
|
+
var accepts = ['application/json'];
|
|
666
|
+
var returnType = [_GraphRelationship["default"]];
|
|
667
|
+
return this.apiClient.callApi('/graph/data/object/{id}/relationships/in/{reltypeid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Get Incoming Relationships By Type
|
|
672
|
+
* Returns a listing of relationships
|
|
673
|
+
* @param {Number} id The id of the object that we are retrieving relationships on
|
|
674
|
+
* @param {Number} reltypeid The id of the relationship type we are searching for
|
|
675
|
+
* @param {Object} opts Optional parameters
|
|
676
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
677
|
+
* @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
|
|
678
|
+
* @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
|
|
679
|
+
* @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
|
|
680
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
681
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphRelationship>}
|
|
682
|
+
*/
|
|
683
|
+
}, {
|
|
684
|
+
key: "getRelationshipsByTypeIn",
|
|
685
|
+
value: function getRelationshipsByTypeIn(id, reltypeid, opts) {
|
|
686
|
+
return this.getRelationshipsByTypeInWithHttpInfo(id, reltypeid, opts).then(function (response_and_data) {
|
|
687
|
+
return response_and_data.data;
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Get Outgoing Relationships By Type
|
|
693
|
+
* Returns a listing of relationships
|
|
694
|
+
* @param {Number} id The id of the object that we are retrieving relationships on
|
|
695
|
+
* @param {Number} reltypeid The id of the relationship type we are searching for
|
|
696
|
+
* @param {Object} opts Optional parameters
|
|
697
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
698
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
699
|
+
* @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
|
|
700
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
701
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
702
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GraphRelationship>} and HTTP response
|
|
703
|
+
*/
|
|
704
|
+
}, {
|
|
705
|
+
key: "getRelationshipsByTypeOutWithHttpInfo",
|
|
706
|
+
value: function getRelationshipsByTypeOutWithHttpInfo(id, reltypeid, opts) {
|
|
707
|
+
opts = opts || {};
|
|
708
|
+
var postBody = null;
|
|
709
|
+
// verify the required parameter 'id' is set
|
|
710
|
+
if (id === undefined || id === null) {
|
|
711
|
+
throw new Error("Missing the required parameter 'id' when calling getRelationshipsByTypeOut");
|
|
712
|
+
}
|
|
713
|
+
// verify the required parameter 'reltypeid' is set
|
|
714
|
+
if (reltypeid === undefined || reltypeid === null) {
|
|
715
|
+
throw new Error("Missing the required parameter 'reltypeid' when calling getRelationshipsByTypeOut");
|
|
716
|
+
}
|
|
717
|
+
var pathParams = {
|
|
718
|
+
'id': id,
|
|
719
|
+
'reltypeid': reltypeid
|
|
720
|
+
};
|
|
721
|
+
var queryParams = {};
|
|
722
|
+
var headerParams = {
|
|
723
|
+
'Authorization': opts['authorization'],
|
|
724
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
725
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
726
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
727
|
+
'transactionid': opts['transactionid']
|
|
728
|
+
};
|
|
729
|
+
var formParams = {};
|
|
730
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
731
|
+
var contentTypes = [];
|
|
732
|
+
var accepts = ['application/json'];
|
|
733
|
+
var returnType = [_GraphRelationship["default"]];
|
|
734
|
+
return this.apiClient.callApi('/graph/data/object/{id}/relationships/out/{reltypeid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Get Outgoing Relationships By Type
|
|
739
|
+
* Returns a listing of relationships
|
|
740
|
+
* @param {Number} id The id of the object that we are retrieving relationships on
|
|
741
|
+
* @param {Number} reltypeid The id of the relationship type we are searching for
|
|
742
|
+
* @param {Object} opts Optional parameters
|
|
743
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
744
|
+
* @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
|
|
745
|
+
* @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
|
|
746
|
+
* @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
|
|
747
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
748
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GraphRelationship>}
|
|
749
|
+
*/
|
|
750
|
+
}, {
|
|
751
|
+
key: "getRelationshipsByTypeOut",
|
|
752
|
+
value: function getRelationshipsByTypeOut(id, reltypeid, opts) {
|
|
753
|
+
return this.getRelationshipsByTypeOutWithHttpInfo(id, reltypeid, opts).then(function (response_and_data) {
|
|
754
|
+
return response_and_data.data;
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* @param {Number} id
|
|
760
|
+
* @param {Object} opts Optional parameters
|
|
761
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
762
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
763
|
+
* @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
|
|
764
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
765
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
766
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
|
|
767
|
+
*/
|
|
768
|
+
}, {
|
|
769
|
+
key: "getStartObjectTypesWithHttpInfo",
|
|
770
|
+
value: function getStartObjectTypesWithHttpInfo(id, opts) {
|
|
771
|
+
opts = opts || {};
|
|
772
|
+
var postBody = null;
|
|
773
|
+
// verify the required parameter 'id' is set
|
|
774
|
+
if (id === undefined || id === null) {
|
|
775
|
+
throw new Error("Missing the required parameter 'id' when calling getStartObjectTypes");
|
|
776
|
+
}
|
|
777
|
+
var pathParams = {
|
|
778
|
+
'id': id
|
|
779
|
+
};
|
|
780
|
+
var queryParams = {};
|
|
781
|
+
var headerParams = {
|
|
782
|
+
'Authorization': opts['authorization'],
|
|
783
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
784
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
785
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
786
|
+
'transactionid': opts['transactionid']
|
|
787
|
+
};
|
|
788
|
+
var formParams = {};
|
|
789
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
790
|
+
var contentTypes = [];
|
|
791
|
+
var accepts = ['application/json'];
|
|
792
|
+
var returnType = _PurgeDataDefaultResponseValue["default"];
|
|
793
|
+
return this.apiClient.callApi('/graph/data/relationshiptype/{id}/startobjecttypes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* @param {Number} id
|
|
798
|
+
* @param {Object} opts Optional parameters
|
|
799
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
800
|
+
* @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
|
|
801
|
+
* @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
|
|
802
|
+
* @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
|
|
803
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
804
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
|
|
805
|
+
*/
|
|
806
|
+
}, {
|
|
807
|
+
key: "getStartObjectTypes",
|
|
808
|
+
value: function getStartObjectTypes(id, opts) {
|
|
809
|
+
return this.getStartObjectTypesWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
810
|
+
return response_and_data.data;
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* @param {Number} id
|
|
816
|
+
* @param {Object} opts Optional parameters
|
|
817
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
818
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
819
|
+
* @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
|
|
820
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
821
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
822
|
+
* @param {String} [body]
|
|
823
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
|
|
824
|
+
*/
|
|
825
|
+
}, {
|
|
826
|
+
key: "removeEndObjectTypesWithHttpInfo",
|
|
827
|
+
value: function removeEndObjectTypesWithHttpInfo(id, opts) {
|
|
828
|
+
opts = opts || {};
|
|
829
|
+
var postBody = opts['body'];
|
|
830
|
+
// verify the required parameter 'id' is set
|
|
831
|
+
if (id === undefined || id === null) {
|
|
832
|
+
throw new Error("Missing the required parameter 'id' when calling removeEndObjectTypes");
|
|
833
|
+
}
|
|
834
|
+
var pathParams = {
|
|
835
|
+
'id': id
|
|
836
|
+
};
|
|
837
|
+
var queryParams = {};
|
|
838
|
+
var headerParams = {
|
|
839
|
+
'Authorization': opts['authorization'],
|
|
840
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
841
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
842
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
843
|
+
'transactionid': opts['transactionid']
|
|
844
|
+
};
|
|
845
|
+
var formParams = {};
|
|
846
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
847
|
+
var contentTypes = ['application/json'];
|
|
848
|
+
var accepts = ['application/json'];
|
|
849
|
+
var returnType = _PurgeDataDefaultResponseValue["default"];
|
|
850
|
+
return this.apiClient.callApi('/graph/data/relationshiptype/{id}/endobjecttypes', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* @param {Number} id
|
|
855
|
+
* @param {Object} opts Optional parameters
|
|
856
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
857
|
+
* @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
|
|
858
|
+
* @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
|
|
859
|
+
* @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
|
|
860
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
861
|
+
* @param {String} opts.body
|
|
862
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
|
|
863
|
+
*/
|
|
864
|
+
}, {
|
|
865
|
+
key: "removeEndObjectTypes",
|
|
866
|
+
value: function removeEndObjectTypes(id, opts) {
|
|
867
|
+
return this.removeEndObjectTypesWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
868
|
+
return response_and_data.data;
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* @param {Number} id
|
|
874
|
+
* @param {Object} opts Optional parameters
|
|
875
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
876
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
877
|
+
* @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
|
|
878
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
879
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
880
|
+
* @param {String} [body]
|
|
881
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
|
|
882
|
+
*/
|
|
883
|
+
}, {
|
|
884
|
+
key: "removeStartObjectTypesWithHttpInfo",
|
|
885
|
+
value: function removeStartObjectTypesWithHttpInfo(id, opts) {
|
|
886
|
+
opts = opts || {};
|
|
887
|
+
var postBody = opts['body'];
|
|
888
|
+
// verify the required parameter 'id' is set
|
|
889
|
+
if (id === undefined || id === null) {
|
|
890
|
+
throw new Error("Missing the required parameter 'id' when calling removeStartObjectTypes");
|
|
891
|
+
}
|
|
892
|
+
var pathParams = {
|
|
893
|
+
'id': id
|
|
894
|
+
};
|
|
895
|
+
var queryParams = {};
|
|
896
|
+
var headerParams = {
|
|
897
|
+
'Authorization': opts['authorization'],
|
|
898
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
899
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
900
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
901
|
+
'transactionid': opts['transactionid']
|
|
902
|
+
};
|
|
903
|
+
var formParams = {};
|
|
904
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
905
|
+
var contentTypes = ['application/json'];
|
|
906
|
+
var accepts = ['application/json'];
|
|
907
|
+
var returnType = _PurgeDataDefaultResponseValue["default"];
|
|
908
|
+
return this.apiClient.callApi('/graph/data/relationshiptype/{id}/startobjecttypes', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* @param {Number} id
|
|
913
|
+
* @param {Object} opts Optional parameters
|
|
914
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
915
|
+
* @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
|
|
916
|
+
* @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
|
|
917
|
+
* @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
|
|
918
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
919
|
+
* @param {String} opts.body
|
|
920
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
|
|
921
|
+
*/
|
|
922
|
+
}, {
|
|
923
|
+
key: "removeStartObjectTypes",
|
|
924
|
+
value: function removeStartObjectTypes(id, opts) {
|
|
925
|
+
return this.removeStartObjectTypesWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
926
|
+
return response_and_data.data;
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Update a relationshp type
|
|
932
|
+
* Performs an update of the relationship type
|
|
933
|
+
* @param {Number} id The id of the relationship type we are updating
|
|
934
|
+
* @param {module:model/GraphRelationshipType} graphRelationshipType Relationship Type data object to update
|
|
935
|
+
* @param {Object} opts Optional parameters
|
|
936
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
937
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
938
|
+
* @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
|
|
939
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
940
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
941
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GraphRelationshipType} and HTTP response
|
|
942
|
+
*/
|
|
943
|
+
}, {
|
|
944
|
+
key: "updateRelationshipTypeWithHttpInfo",
|
|
945
|
+
value: function updateRelationshipTypeWithHttpInfo(id, graphRelationshipType, opts) {
|
|
946
|
+
opts = opts || {};
|
|
947
|
+
var postBody = graphRelationshipType;
|
|
948
|
+
// verify the required parameter 'id' is set
|
|
949
|
+
if (id === undefined || id === null) {
|
|
950
|
+
throw new Error("Missing the required parameter 'id' when calling updateRelationshipType");
|
|
951
|
+
}
|
|
952
|
+
// verify the required parameter 'graphRelationshipType' is set
|
|
953
|
+
if (graphRelationshipType === undefined || graphRelationshipType === null) {
|
|
954
|
+
throw new Error("Missing the required parameter 'graphRelationshipType' when calling updateRelationshipType");
|
|
955
|
+
}
|
|
956
|
+
var pathParams = {
|
|
957
|
+
'id': id
|
|
958
|
+
};
|
|
959
|
+
var queryParams = {};
|
|
960
|
+
var headerParams = {
|
|
961
|
+
'Authorization': opts['authorization'],
|
|
962
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
963
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
964
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
965
|
+
'transactionid': opts['transactionid']
|
|
966
|
+
};
|
|
967
|
+
var formParams = {};
|
|
968
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
969
|
+
var contentTypes = ['application/json'];
|
|
970
|
+
var accepts = ['application/json'];
|
|
971
|
+
var returnType = _GraphRelationshipType["default"];
|
|
972
|
+
return this.apiClient.callApi('/graph/data/relationshiptype/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Update a relationshp type
|
|
977
|
+
* Performs an update of the relationship type
|
|
978
|
+
* @param {Number} id The id of the relationship type we are updating
|
|
979
|
+
* @param {module:model/GraphRelationshipType} graphRelationshipType Relationship Type data object to update
|
|
980
|
+
* @param {Object} opts Optional parameters
|
|
981
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
982
|
+
* @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
|
|
983
|
+
* @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
|
|
984
|
+
* @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
|
|
985
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
986
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GraphRelationshipType}
|
|
987
|
+
*/
|
|
988
|
+
}, {
|
|
989
|
+
key: "updateRelationshipType",
|
|
990
|
+
value: function updateRelationshipType(id, graphRelationshipType, opts) {
|
|
991
|
+
return this.updateRelationshipTypeWithHttpInfo(id, graphRelationshipType, opts).then(function (response_and_data) {
|
|
992
|
+
return response_and_data.data;
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* @param {Number} id
|
|
998
|
+
* @param {Object} opts Optional parameters
|
|
999
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
1000
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
1001
|
+
* @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
|
|
1002
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
1003
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
1004
|
+
* @param {String} [body]
|
|
1005
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
|
|
1006
|
+
*/
|
|
1007
|
+
}, {
|
|
1008
|
+
key: "updateTemplate2WithHttpInfo",
|
|
1009
|
+
value: function updateTemplate2WithHttpInfo(id, opts) {
|
|
1010
|
+
opts = opts || {};
|
|
1011
|
+
var postBody = opts['body'];
|
|
1012
|
+
// verify the required parameter 'id' is set
|
|
1013
|
+
if (id === undefined || id === null) {
|
|
1014
|
+
throw new Error("Missing the required parameter 'id' when calling updateTemplate2");
|
|
1015
|
+
}
|
|
1016
|
+
var pathParams = {
|
|
1017
|
+
'id': id
|
|
1018
|
+
};
|
|
1019
|
+
var queryParams = {};
|
|
1020
|
+
var headerParams = {
|
|
1021
|
+
'Authorization': opts['authorization'],
|
|
1022
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
1023
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
1024
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
1025
|
+
'transactionid': opts['transactionid']
|
|
1026
|
+
};
|
|
1027
|
+
var formParams = {};
|
|
1028
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
1029
|
+
var contentTypes = ['application/json'];
|
|
1030
|
+
var accepts = ['application/json'];
|
|
1031
|
+
var returnType = _PurgeDataDefaultResponseValue["default"];
|
|
1032
|
+
return this.apiClient.callApi('/graph/data/relationshiptype/{id}/template', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* @param {Number} id
|
|
1037
|
+
* @param {Object} opts Optional parameters
|
|
1038
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
1039
|
+
* @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
|
|
1040
|
+
* @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
|
|
1041
|
+
* @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
|
|
1042
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
1043
|
+
* @param {String} opts.body
|
|
1044
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
|
|
1045
|
+
*/
|
|
1046
|
+
}, {
|
|
1047
|
+
key: "updateTemplate2",
|
|
1048
|
+
value: function updateTemplate2(id, opts) {
|
|
1049
|
+
return this.updateTemplate2WithHttpInfo(id, opts).then(function (response_and_data) {
|
|
1050
|
+
return response_and_data.data;
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
}]);
|
|
1054
|
+
return GraphRelationshipTypesApi;
|
|
1055
|
+
}();
|