@gobodo/gobodo-api 0.1.52 → 0.1.58
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 +73 -9
- package/dist/ApiClient.js +3 -3
- package/dist/api/ActionTypesApi.js +2 -2
- package/dist/api/AdCampaignsApi.js +2 -2
- package/dist/api/AdManagementApi.js +2 -2
- package/dist/api/AdminDataManagementApi.js +2 -2
- package/dist/api/AdsApi.js +2 -2
- package/dist/api/AttachmentsApi.js +2 -2
- package/dist/api/AuthenticationApi.js +2 -2
- package/dist/api/CategoriesApi.js +2 -2
- package/dist/api/CommentsApi.js +2 -2
- package/dist/api/ContentManagementApi.js +2 -2
- package/dist/api/ConversationsApi.js +2 -2
- package/dist/api/DataSheetImportsApi.js +2 -2
- package/dist/api/DefaultApi.js +8 -348
- package/dist/api/DocumentsApi.js +2 -2
- package/dist/api/EmailsApi.js +282 -0
- package/dist/api/EntryPartsApi.js +2 -2
- package/dist/api/FacebookApi.js +2 -2
- package/dist/api/FieldsApi.js +2 -2
- package/dist/api/FilesApi.js +2 -2
- package/dist/api/FormsApi.js +2 -2
- package/dist/api/FunctionsApi.js +946 -10
- package/dist/api/GeocodeApi.js +2 -2
- package/dist/api/GoogleApi.js +2 -2
- package/dist/api/GraphActionTypesApi.js +511 -0
- package/dist/api/GraphActionsApi.js +2 -2
- package/dist/api/GraphObjectTypesApi.js +134 -9
- package/dist/api/GraphObjectsApi.js +2 -2
- package/dist/api/GraphRelationshipTypesApi.js +127 -2
- package/dist/api/GraphRelationshipsApi.js +2 -2
- package/dist/api/GraphSchemasApi.js +2 -2
- package/dist/api/GraphTraversalApi.js +2 -2
- package/dist/api/GraphsApi.js +2 -2
- package/dist/api/GroupsApi.js +2 -2
- package/dist/api/IAMApi.js +2 -2
- package/dist/api/ImagesApi.js +2 -2
- package/dist/api/InvitesApi.js +2 -2
- package/dist/api/LikesApi.js +2 -2
- package/dist/api/LinkedINApi.js +2 -2
- package/dist/api/LiveMeetingsApi.js +2 -2
- package/dist/api/MeetingEventsApi.js +2 -2
- package/dist/api/NotificationsApi.js +735 -0
- package/dist/api/PagesApi.js +2 -2
- package/dist/api/PhoneNumbersApi.js +322 -0
- package/dist/api/PostsApi.js +2 -2
- package/dist/api/PrivateMessagesApi.js +2 -2
- package/dist/api/PublicationsApi.js +2 -2
- package/dist/api/ScreensApi.js +2 -2
- package/dist/api/SocialIntegrationApi.js +2 -2
- package/dist/api/StripeAccountsApi.js +2 -2
- package/dist/api/TagsApi.js +2 -2
- package/dist/api/TemplatesApi.js +2 -2
- package/dist/api/ThemeMappingsApi.js +2 -2
- package/dist/api/TopicsApi.js +457 -0
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/api/TwitterApi.js +2 -2
- package/dist/api/UserTagsApi.js +2 -2
- package/dist/api/UsersApi.js +2 -2
- package/dist/api/UtilsApi.js +2 -2
- package/dist/api/VideosApi.js +2 -2
- package/dist/index.js +147 -7
- package/dist/model/APIClient.js +9 -9
- package/dist/model/AccountSessionInput.js +2 -2
- package/dist/model/AccountSessionResponse.js +2 -2
- package/dist/model/ApplicationPaymentAccountResponse.js +2 -2
- package/dist/model/ApplicationPaymentAccountResponseFailureException.js +2 -32
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionStackTraceInner.js +2 -2
- package/dist/model/Article.js +2 -2
- package/dist/model/AuthResponse.js +2 -2
- package/dist/model/Balance.js +37 -37
- package/dist/model/BalanceDetails.js +2 -2
- package/dist/model/BalanceResponse.js +2 -2
- package/dist/model/BankAccountInfo.js +2 -2
- package/dist/model/CardInfo.js +2 -2
- package/dist/model/Comment.js +14 -14
- package/dist/model/Coordinates.js +2 -2
- package/dist/model/CreateAccountResponse.js +2 -2
- package/dist/model/CreateFunctionInput.js +169 -0
- package/dist/model/CreateStripeAccountInput.js +2 -2
- package/dist/model/CreateStripeCustomerInput.js +2 -2
- package/dist/model/CreateTopicInput.js +139 -0
- package/dist/model/CreateTopicListenerInput.js +125 -0
- package/dist/model/CustomerResponse.js +2 -2
- package/dist/model/DataObject.js +2 -2
- package/dist/model/DataSheetImport.js +10 -10
- package/dist/model/DataSheetImportPrivacySettings.js +2 -2
- package/dist/model/DataSheetImportSummary.js +2 -2
- package/dist/model/DeviceRegistrationRequest.js +200 -0
- package/dist/model/Document.js +2 -2
- package/dist/model/DocumentPart.js +21 -21
- package/dist/model/DocumentPartType.js +10 -10
- package/dist/model/DocumentType.js +18 -18
- package/dist/model/EmailAddress.js +142 -0
- package/dist/model/FieldMapping.js +2 -2
- package/dist/model/Fields.js +25 -25
- package/dist/model/File.js +9 -9
- package/dist/model/FileAttachmentUploadObject.js +9 -9
- package/dist/model/Filter.js +2 -2
- package/dist/model/FilterManager.js +2 -2
- package/dist/model/Form.js +2 -2
- package/dist/model/FormSection.js +2 -2
- package/dist/model/FormSubmission.js +2 -2
- package/dist/model/FunctionConfigInput.js +333 -0
- package/dist/model/FunctionEnvironmentConfig.js +169 -0
- package/dist/model/Geocode.js +2 -2
- package/dist/model/GeocodePayload.js +2 -2
- package/dist/model/GeolocationInput.js +2 -2
- package/dist/model/GetFunctionConfig.js +365 -0
- package/dist/model/GetFunctionEnvironmentConfig.js +171 -0
- package/dist/model/GetFunctionResponse.js +199 -0
- package/dist/model/Graph.js +37 -37
- package/dist/model/GraphAction.js +11 -11
- package/dist/model/GraphDatabaseService.js +2 -2
- package/dist/model/GraphGeocode.js +2 -2
- package/dist/model/GraphIteratorEntryPart.js +2 -2
- package/dist/model/GraphObject.js +27 -27
- package/dist/model/GraphObjectPayload.js +2 -2
- package/dist/model/GraphObjectSchema.js +36 -36
- package/dist/model/GraphObjectType.js +18 -18
- package/dist/model/GraphObjectTypeSchema.js +18 -18
- package/dist/model/GraphOwner.js +2 -2
- package/dist/model/GraphRelationship.js +11 -11
- package/dist/model/GraphRelationshipPayload.js +2 -2
- package/dist/model/GraphRelationshipType.js +2 -2
- package/dist/model/GraphSchema.js +38 -38
- package/dist/model/GraphTraversalInput.js +2 -2
- package/dist/model/Image.js +23 -23
- package/dist/model/ImageUploadObject.js +23 -23
- package/dist/model/InputPart.js +2 -2
- package/dist/model/InputPartHeaders.js +88 -0
- package/dist/model/InputPartMediaType.js +2 -2
- package/dist/model/Link.js +26 -26
- package/dist/model/LiveStreamInfo.js +2 -2
- package/dist/model/MeetingEvent.js +41 -41
- package/dist/model/MeetingEventTimezone.js +2 -2
- package/dist/model/MeetingInfo.js +2 -2
- package/dist/model/Member.js +14 -14
- package/dist/model/MemberGroupCategory.js +2 -2
- package/dist/model/MemberList.js +2 -2
- package/dist/model/MessageGroup.js +9 -9
- package/dist/model/MultipartBody.js +2 -2
- package/dist/model/Notification.js +210 -0
- package/dist/model/NotificationInput.js +187 -0
- package/dist/model/NotificationResponse.js +185 -0
- package/dist/model/Objecttype.js +17 -17
- package/dist/model/Page.js +2 -2
- package/dist/model/PageSchema.js +10 -10
- package/dist/model/Pageable.js +2 -2
- package/dist/model/Path.js +2 -2
- package/dist/model/PaymentAccountObject.js +2 -2
- package/dist/model/PaymentIntentInput.js +2 -2
- package/dist/model/PaymentIntentResponse.js +2 -2
- package/dist/model/PaymentMethod.js +9 -9
- package/dist/model/PaymentMethodInput.js +2 -2
- package/dist/model/PaymentMethodResponse.js +2 -2
- package/dist/model/PaymentMethodsResponse.js +2 -2
- package/dist/model/Payout.js +11 -11
- package/dist/model/PayoutInput.js +2 -2
- package/dist/model/PayoutResponse.js +2 -2
- package/dist/model/PhoneNumber.js +178 -0
- package/dist/model/Post.js +2 -2
- package/dist/model/PrivateMessage.js +2 -2
- package/dist/model/PrivateMessageConversation.js +36 -36
- package/dist/model/PrivateMessageConversationSchema.js +2 -2
- package/dist/model/Profile.js +2 -2
- package/dist/model/Profiletype.js +2 -2
- package/dist/model/PropertyContainer.js +9 -9
- package/dist/model/PurgeDataDefaultResponse.js +144 -0
- package/dist/model/PurgeDataDefaultResponseValue.js +2 -2
- package/dist/model/RelationshipMapping.js +2 -2
- package/dist/model/ScreenSchema.js +27 -27
- package/dist/model/SimulcastInfo.js +2 -2
- package/dist/model/SkinField.js +25 -25
- package/dist/model/SocialGroup.js +2 -2
- package/dist/model/SocialGroupType.js +16 -16
- package/dist/model/Sort.js +2 -2
- package/dist/model/SourceTypes.js +2 -2
- package/dist/model/StatusUpdate.js +2 -2
- package/dist/model/StreetAddress.js +2 -2
- package/dist/model/StripeAccount.js +2 -2
- package/dist/model/StripeCustomerAccount.js +2 -2
- package/dist/model/Template.js +22 -22
- package/dist/model/TemplateSchema.js +22 -22
- package/dist/model/ThemeMapping.js +10 -10
- package/dist/model/ThemeMappingPayload.js +9 -9
- package/dist/model/TopicInfoResponse.js +183 -0
- package/dist/model/TopicMessageInput.js +123 -0
- package/dist/model/TopicSubscriptionResponse.js +151 -0
- package/dist/model/Transaction.js +2 -2
- package/dist/model/Transfer.js +13 -13
- package/dist/model/TransferInput.js +2 -2
- package/dist/model/TransferResponse.js +2 -2
- package/dist/model/TransferResponsePaymentMethodDetails.js +13 -13
- package/dist/model/TraversalRelationResponse.js +2 -2
- package/dist/model/User.js +14 -14
- package/dist/model/UserDataPayload.js +14 -14
- package/dist/model/UserDomain.js +2 -2
- package/dist/model/UserInvite.js +13 -13
- package/dist/model/UserInviteInput.js +2 -2
- package/dist/model/UserSchema.js +14 -14
- package/dist/model/UserTag.js +2 -2
- package/dist/model/Userid.js +2 -2
- package/dist/model/Video.js +30 -30
- package/dist/model/VideoLiveUrl.js +2 -2
- package/dist/model/VideoSchema.js +38 -38
- package/dist/model/VideoUploadObject.js +30 -30
- package/dist/model/ZeusPortalCategory.js +2 -2
- package/package.json +1 -1
package/dist/api/FunctionsApi.js
CHANGED
|
@@ -5,7 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _CreateFunctionInput = _interopRequireDefault(require("../model/CreateFunctionInput"));
|
|
9
|
+
var _FunctionConfigInput = _interopRequireDefault(require("../model/FunctionConfigInput"));
|
|
10
|
+
var _GetFunctionConfig = _interopRequireDefault(require("../model/GetFunctionConfig"));
|
|
11
|
+
var _GetFunctionResponse = _interopRequireDefault(require("../model/GetFunctionResponse"));
|
|
8
12
|
var _PurgeDataDefaultResponseValue = _interopRequireDefault(require("../model/PurgeDataDefaultResponseValue"));
|
|
13
|
+
var _TopicSubscriptionResponse = _interopRequireDefault(require("../model/TopicSubscriptionResponse"));
|
|
9
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
15
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -16,7 +21,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
16
21
|
* gobodo-api
|
|
17
22
|
* REST Interface for Gobodo API
|
|
18
23
|
*
|
|
19
|
-
* The version of the OpenAPI document: 0.1.
|
|
24
|
+
* The version of the OpenAPI document: 0.1.58
|
|
20
25
|
* Contact: info@gobodo.io
|
|
21
26
|
*
|
|
22
27
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -27,7 +32,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
27
32
|
/**
|
|
28
33
|
* Functions service.
|
|
29
34
|
* @module api/FunctionsApi
|
|
30
|
-
* @version 0.1.
|
|
35
|
+
* @version 0.1.58
|
|
31
36
|
*/
|
|
32
37
|
var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
33
38
|
/**
|
|
@@ -43,16 +48,19 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
/**
|
|
46
|
-
* Callback function to receive the result of the
|
|
47
|
-
* @callback module:api/FunctionsApi~
|
|
51
|
+
* Callback function to receive the result of the addFunctionConfig operation.
|
|
52
|
+
* @callback module:api/FunctionsApi~addFunctionConfigCallback
|
|
48
53
|
* @param {String} error Error message, if any.
|
|
49
|
-
* @param {module:model/
|
|
54
|
+
* @param {module:model/GetFunctionConfig} data The data returned by the service call.
|
|
50
55
|
* @param {String} response The complete HTTP response.
|
|
51
56
|
*/
|
|
52
57
|
|
|
53
58
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
59
|
+
* Adds a function config
|
|
60
|
+
* Adds a function config
|
|
61
|
+
* @param {Number} functionid
|
|
62
|
+
* @param {module:model/String} environment
|
|
63
|
+
* @param {module:model/FunctionConfigInput} functionConfigInput
|
|
56
64
|
* @param {Object} opts Optional parameters
|
|
57
65
|
* @param {String} [authorization] The authorization token of the logged in user
|
|
58
66
|
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
@@ -64,11 +72,389 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
64
72
|
* @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
|
|
65
73
|
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
66
74
|
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
67
|
-
* @param {String} [
|
|
68
|
-
* @param {module:api/FunctionsApi~
|
|
69
|
-
* data is of type: {@link module:model/
|
|
75
|
+
* @param {String} [key]
|
|
76
|
+
* @param {module:api/FunctionsApi~addFunctionConfigCallback} callback The callback function, accepting three arguments: error, data, response
|
|
77
|
+
* data is of type: {@link module:model/GetFunctionConfig}
|
|
70
78
|
*/
|
|
71
79
|
_createClass(FunctionsApi, [{
|
|
80
|
+
key: "addFunctionConfig",
|
|
81
|
+
value: function addFunctionConfig(functionid, environment, functionConfigInput, opts, callback) {
|
|
82
|
+
opts = opts || {};
|
|
83
|
+
var postBody = functionConfigInput;
|
|
84
|
+
// verify the required parameter 'functionid' is set
|
|
85
|
+
if (functionid === undefined || functionid === null) {
|
|
86
|
+
throw new Error("Missing the required parameter 'functionid' when calling addFunctionConfig");
|
|
87
|
+
}
|
|
88
|
+
// verify the required parameter 'environment' is set
|
|
89
|
+
if (environment === undefined || environment === null) {
|
|
90
|
+
throw new Error("Missing the required parameter 'environment' when calling addFunctionConfig");
|
|
91
|
+
}
|
|
92
|
+
// verify the required parameter 'functionConfigInput' is set
|
|
93
|
+
if (functionConfigInput === undefined || functionConfigInput === null) {
|
|
94
|
+
throw new Error("Missing the required parameter 'functionConfigInput' when calling addFunctionConfig");
|
|
95
|
+
}
|
|
96
|
+
var pathParams = {
|
|
97
|
+
'functionid': functionid,
|
|
98
|
+
'environment': environment
|
|
99
|
+
};
|
|
100
|
+
var queryParams = {
|
|
101
|
+
'key': opts['key']
|
|
102
|
+
};
|
|
103
|
+
var headerParams = {
|
|
104
|
+
'Authorization': opts['authorization'],
|
|
105
|
+
'cacheduration': opts['cacheduration'],
|
|
106
|
+
'cachegroup': opts['cachegroup'],
|
|
107
|
+
'cachekey': opts['cachekey'],
|
|
108
|
+
'cachescope': opts['cachescope'],
|
|
109
|
+
'cacheuser': opts['cacheuser'],
|
|
110
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
111
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
112
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
113
|
+
'transactionid': opts['transactionid']
|
|
114
|
+
};
|
|
115
|
+
var formParams = {};
|
|
116
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
117
|
+
var contentTypes = [];
|
|
118
|
+
var accepts = ['application/json'];
|
|
119
|
+
var returnType = _GetFunctionConfig["default"];
|
|
120
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}/{environment}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Callback function to receive the result of the addMethodToActionType operation.
|
|
125
|
+
* @callback module:api/FunctionsApi~addMethodToActionTypeCallback
|
|
126
|
+
* @param {String} error Error message, if any.
|
|
127
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
128
|
+
* @param {String} response The complete HTTP response.
|
|
129
|
+
*/
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Adds a method to an action type
|
|
133
|
+
* Adds a method to an action type
|
|
134
|
+
* @param {Number} actiontypeid
|
|
135
|
+
* @param {module:model/CreateFunctionInput} createFunctionInput
|
|
136
|
+
* @param {Object} opts Optional parameters
|
|
137
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
138
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
139
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
140
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
141
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
142
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
143
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
144
|
+
* @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
|
|
145
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
146
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
147
|
+
* @param {module:api/FunctionsApi~addMethodToActionTypeCallback} callback The callback function, accepting three arguments: error, data, response
|
|
148
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
149
|
+
*/
|
|
150
|
+
}, {
|
|
151
|
+
key: "addMethodToActionType",
|
|
152
|
+
value: function addMethodToActionType(actiontypeid, createFunctionInput, opts, callback) {
|
|
153
|
+
opts = opts || {};
|
|
154
|
+
var postBody = createFunctionInput;
|
|
155
|
+
// verify the required parameter 'actiontypeid' is set
|
|
156
|
+
if (actiontypeid === undefined || actiontypeid === null) {
|
|
157
|
+
throw new Error("Missing the required parameter 'actiontypeid' when calling addMethodToActionType");
|
|
158
|
+
}
|
|
159
|
+
// verify the required parameter 'createFunctionInput' is set
|
|
160
|
+
if (createFunctionInput === undefined || createFunctionInput === null) {
|
|
161
|
+
throw new Error("Missing the required parameter 'createFunctionInput' when calling addMethodToActionType");
|
|
162
|
+
}
|
|
163
|
+
var pathParams = {
|
|
164
|
+
'actiontypeid': actiontypeid
|
|
165
|
+
};
|
|
166
|
+
var queryParams = {};
|
|
167
|
+
var headerParams = {
|
|
168
|
+
'Authorization': opts['authorization'],
|
|
169
|
+
'cacheduration': opts['cacheduration'],
|
|
170
|
+
'cachegroup': opts['cachegroup'],
|
|
171
|
+
'cachekey': opts['cachekey'],
|
|
172
|
+
'cachescope': opts['cachescope'],
|
|
173
|
+
'cacheuser': opts['cacheuser'],
|
|
174
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
175
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
176
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
177
|
+
'transactionid': opts['transactionid']
|
|
178
|
+
};
|
|
179
|
+
var formParams = {};
|
|
180
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
181
|
+
var contentTypes = [];
|
|
182
|
+
var accepts = ['application/json'];
|
|
183
|
+
var returnType = _GetFunctionResponse["default"];
|
|
184
|
+
return this.apiClient.callApi('/graph/data/functions/actiontype/{actiontypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Callback function to receive the result of the addMethodToObjectType operation.
|
|
189
|
+
* @callback module:api/FunctionsApi~addMethodToObjectTypeCallback
|
|
190
|
+
* @param {String} error Error message, if any.
|
|
191
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
192
|
+
* @param {String} response The complete HTTP response.
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Adds a method to an object type
|
|
197
|
+
* Adds a method to an object type
|
|
198
|
+
* @param {Number} objecttypeid
|
|
199
|
+
* @param {module:model/CreateFunctionInput} createFunctionInput
|
|
200
|
+
* @param {Object} opts Optional parameters
|
|
201
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
202
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
203
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
204
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
205
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
206
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
207
|
+
* @param {Number} [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} [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} [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} [transactionid] The id of the transaction this operation is being run in
|
|
211
|
+
* @param {module:api/FunctionsApi~addMethodToObjectTypeCallback} callback The callback function, accepting three arguments: error, data, response
|
|
212
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
213
|
+
*/
|
|
214
|
+
}, {
|
|
215
|
+
key: "addMethodToObjectType",
|
|
216
|
+
value: function addMethodToObjectType(objecttypeid, createFunctionInput, opts, callback) {
|
|
217
|
+
opts = opts || {};
|
|
218
|
+
var postBody = createFunctionInput;
|
|
219
|
+
// verify the required parameter 'objecttypeid' is set
|
|
220
|
+
if (objecttypeid === undefined || objecttypeid === null) {
|
|
221
|
+
throw new Error("Missing the required parameter 'objecttypeid' when calling addMethodToObjectType");
|
|
222
|
+
}
|
|
223
|
+
// verify the required parameter 'createFunctionInput' is set
|
|
224
|
+
if (createFunctionInput === undefined || createFunctionInput === null) {
|
|
225
|
+
throw new Error("Missing the required parameter 'createFunctionInput' when calling addMethodToObjectType");
|
|
226
|
+
}
|
|
227
|
+
var pathParams = {
|
|
228
|
+
'objecttypeid': objecttypeid
|
|
229
|
+
};
|
|
230
|
+
var queryParams = {};
|
|
231
|
+
var headerParams = {
|
|
232
|
+
'Authorization': opts['authorization'],
|
|
233
|
+
'cacheduration': opts['cacheduration'],
|
|
234
|
+
'cachegroup': opts['cachegroup'],
|
|
235
|
+
'cachekey': opts['cachekey'],
|
|
236
|
+
'cachescope': opts['cachescope'],
|
|
237
|
+
'cacheuser': opts['cacheuser'],
|
|
238
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
239
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
240
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
241
|
+
'transactionid': opts['transactionid']
|
|
242
|
+
};
|
|
243
|
+
var formParams = {};
|
|
244
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
245
|
+
var contentTypes = [];
|
|
246
|
+
var accepts = ['application/json'];
|
|
247
|
+
var returnType = _GetFunctionResponse["default"];
|
|
248
|
+
return this.apiClient.callApi('/graph/data/functions/objecttype/{objecttypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Callback function to receive the result of the addMethodToRelationshipType operation.
|
|
253
|
+
* @callback module:api/FunctionsApi~addMethodToRelationshipTypeCallback
|
|
254
|
+
* @param {String} error Error message, if any.
|
|
255
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
256
|
+
* @param {String} response The complete HTTP response.
|
|
257
|
+
*/
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Adds a method to an relationship type
|
|
261
|
+
* Adds a method to a relationship type
|
|
262
|
+
* @param {Number} reltypeid
|
|
263
|
+
* @param {module:model/CreateFunctionInput} createFunctionInput
|
|
264
|
+
* @param {Object} opts Optional parameters
|
|
265
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
266
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
267
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
268
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
269
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
270
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
271
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
272
|
+
* @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
273
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
274
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
275
|
+
* @param {module:api/FunctionsApi~addMethodToRelationshipTypeCallback} callback The callback function, accepting three arguments: error, data, response
|
|
276
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
277
|
+
*/
|
|
278
|
+
}, {
|
|
279
|
+
key: "addMethodToRelationshipType",
|
|
280
|
+
value: function addMethodToRelationshipType(reltypeid, createFunctionInput, opts, callback) {
|
|
281
|
+
opts = opts || {};
|
|
282
|
+
var postBody = createFunctionInput;
|
|
283
|
+
// verify the required parameter 'reltypeid' is set
|
|
284
|
+
if (reltypeid === undefined || reltypeid === null) {
|
|
285
|
+
throw new Error("Missing the required parameter 'reltypeid' when calling addMethodToRelationshipType");
|
|
286
|
+
}
|
|
287
|
+
// verify the required parameter 'createFunctionInput' is set
|
|
288
|
+
if (createFunctionInput === undefined || createFunctionInput === null) {
|
|
289
|
+
throw new Error("Missing the required parameter 'createFunctionInput' when calling addMethodToRelationshipType");
|
|
290
|
+
}
|
|
291
|
+
var pathParams = {
|
|
292
|
+
'reltypeid': reltypeid
|
|
293
|
+
};
|
|
294
|
+
var queryParams = {};
|
|
295
|
+
var headerParams = {
|
|
296
|
+
'Authorization': opts['authorization'],
|
|
297
|
+
'cacheduration': opts['cacheduration'],
|
|
298
|
+
'cachegroup': opts['cachegroup'],
|
|
299
|
+
'cachekey': opts['cachekey'],
|
|
300
|
+
'cachescope': opts['cachescope'],
|
|
301
|
+
'cacheuser': opts['cacheuser'],
|
|
302
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
303
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
304
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
305
|
+
'transactionid': opts['transactionid']
|
|
306
|
+
};
|
|
307
|
+
var formParams = {};
|
|
308
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
309
|
+
var contentTypes = [];
|
|
310
|
+
var accepts = ['application/json'];
|
|
311
|
+
var returnType = _GetFunctionResponse["default"];
|
|
312
|
+
return this.apiClient.callApi('/graph/data/functions/relationshiptype/{reltypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Callback function to receive the result of the createFunction operation.
|
|
317
|
+
* @callback module:api/FunctionsApi~createFunctionCallback
|
|
318
|
+
* @param {String} error Error message, if any.
|
|
319
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
320
|
+
* @param {String} response The complete HTTP response.
|
|
321
|
+
*/
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Creates a new function
|
|
325
|
+
* Creates a new function
|
|
326
|
+
* @param {module:model/CreateFunctionInput} createFunctionInput
|
|
327
|
+
* @param {Object} opts Optional parameters
|
|
328
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
329
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
330
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
331
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
332
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
333
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
334
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
335
|
+
* @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
|
|
336
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
337
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
338
|
+
* @param {module:api/FunctionsApi~createFunctionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
339
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
340
|
+
*/
|
|
341
|
+
}, {
|
|
342
|
+
key: "createFunction",
|
|
343
|
+
value: function createFunction(createFunctionInput, opts, callback) {
|
|
344
|
+
opts = opts || {};
|
|
345
|
+
var postBody = createFunctionInput;
|
|
346
|
+
// verify the required parameter 'createFunctionInput' is set
|
|
347
|
+
if (createFunctionInput === undefined || createFunctionInput === null) {
|
|
348
|
+
throw new Error("Missing the required parameter 'createFunctionInput' when calling createFunction");
|
|
349
|
+
}
|
|
350
|
+
var pathParams = {};
|
|
351
|
+
var queryParams = {};
|
|
352
|
+
var headerParams = {
|
|
353
|
+
'Authorization': opts['authorization'],
|
|
354
|
+
'cacheduration': opts['cacheduration'],
|
|
355
|
+
'cachegroup': opts['cachegroup'],
|
|
356
|
+
'cachekey': opts['cachekey'],
|
|
357
|
+
'cachescope': opts['cachescope'],
|
|
358
|
+
'cacheuser': opts['cacheuser'],
|
|
359
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
360
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
361
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
362
|
+
'transactionid': opts['transactionid']
|
|
363
|
+
};
|
|
364
|
+
var formParams = {};
|
|
365
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
366
|
+
var contentTypes = [];
|
|
367
|
+
var accepts = ['application/json'];
|
|
368
|
+
var returnType = _GetFunctionResponse["default"];
|
|
369
|
+
return this.apiClient.callApi('/graph/data/functions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Callback function to receive the result of the deleteFunction operation.
|
|
374
|
+
* @callback module:api/FunctionsApi~deleteFunctionCallback
|
|
375
|
+
* @param {String} error Error message, if any.
|
|
376
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
377
|
+
* @param {String} response The complete HTTP response.
|
|
378
|
+
*/
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Deletes a function
|
|
382
|
+
* Deletes a function
|
|
383
|
+
* @param {Number} functionid
|
|
384
|
+
* @param {Object} opts Optional parameters
|
|
385
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
386
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
387
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
388
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
389
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
390
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
391
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
392
|
+
* @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
|
|
393
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
394
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
395
|
+
* @param {module:api/FunctionsApi~deleteFunctionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
396
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
397
|
+
*/
|
|
398
|
+
}, {
|
|
399
|
+
key: "deleteFunction",
|
|
400
|
+
value: function deleteFunction(functionid, opts, callback) {
|
|
401
|
+
opts = opts || {};
|
|
402
|
+
var postBody = null;
|
|
403
|
+
// verify the required parameter 'functionid' is set
|
|
404
|
+
if (functionid === undefined || functionid === null) {
|
|
405
|
+
throw new Error("Missing the required parameter 'functionid' when calling deleteFunction");
|
|
406
|
+
}
|
|
407
|
+
var pathParams = {
|
|
408
|
+
'functionid': functionid
|
|
409
|
+
};
|
|
410
|
+
var queryParams = {};
|
|
411
|
+
var headerParams = {
|
|
412
|
+
'Authorization': opts['authorization'],
|
|
413
|
+
'cacheduration': opts['cacheduration'],
|
|
414
|
+
'cachegroup': opts['cachegroup'],
|
|
415
|
+
'cachekey': opts['cachekey'],
|
|
416
|
+
'cachescope': opts['cachescope'],
|
|
417
|
+
'cacheuser': opts['cacheuser'],
|
|
418
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
419
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
420
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
421
|
+
'transactionid': opts['transactionid']
|
|
422
|
+
};
|
|
423
|
+
var formParams = {};
|
|
424
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
425
|
+
var contentTypes = [];
|
|
426
|
+
var accepts = ['application/json'];
|
|
427
|
+
var returnType = _GetFunctionResponse["default"];
|
|
428
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Callback function to receive the result of the doPostFunction operation.
|
|
433
|
+
* @callback module:api/FunctionsApi~doPostFunctionCallback
|
|
434
|
+
* @param {String} error Error message, if any.
|
|
435
|
+
* @param {module:model/PurgeDataDefaultResponseValue} data The data returned by the service call.
|
|
436
|
+
* @param {String} response The complete HTTP response.
|
|
437
|
+
*/
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @param {Number} id The id of the object we are calling the function on
|
|
441
|
+
* @param {String} _function
|
|
442
|
+
* @param {Object} opts Optional parameters
|
|
443
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
444
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
445
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
446
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
447
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
448
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
449
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
450
|
+
* @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
|
|
451
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
452
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
453
|
+
* @param {String} [body]
|
|
454
|
+
* @param {module:api/FunctionsApi~doPostFunctionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
455
|
+
* data is of type: {@link module:model/PurgeDataDefaultResponseValue}
|
|
456
|
+
*/
|
|
457
|
+
}, {
|
|
72
458
|
key: "doPostFunction",
|
|
73
459
|
value: function doPostFunction(id, _function, opts, callback) {
|
|
74
460
|
opts = opts || {};
|
|
@@ -105,6 +491,556 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
105
491
|
var returnType = _PurgeDataDefaultResponseValue["default"];
|
|
106
492
|
return this.apiClient.callApi('/graph/data/object/{id}/function/{function}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
107
493
|
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Callback function to receive the result of the editFunction operation.
|
|
497
|
+
* @callback module:api/FunctionsApi~editFunctionCallback
|
|
498
|
+
* @param {String} error Error message, if any.
|
|
499
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
500
|
+
* @param {String} response The complete HTTP response.
|
|
501
|
+
*/
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Modifies a function
|
|
505
|
+
* Modifies a function
|
|
506
|
+
* @param {Number} functionid
|
|
507
|
+
* @param {module:model/CreateFunctionInput} createFunctionInput
|
|
508
|
+
* @param {Object} opts Optional parameters
|
|
509
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
510
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
511
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
512
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
513
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
514
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
515
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
516
|
+
* @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
|
|
517
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
518
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
519
|
+
* @param {module:api/FunctionsApi~editFunctionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
520
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
521
|
+
*/
|
|
522
|
+
}, {
|
|
523
|
+
key: "editFunction",
|
|
524
|
+
value: function editFunction(functionid, createFunctionInput, opts, callback) {
|
|
525
|
+
opts = opts || {};
|
|
526
|
+
var postBody = createFunctionInput;
|
|
527
|
+
// verify the required parameter 'functionid' is set
|
|
528
|
+
if (functionid === undefined || functionid === null) {
|
|
529
|
+
throw new Error("Missing the required parameter 'functionid' when calling editFunction");
|
|
530
|
+
}
|
|
531
|
+
// verify the required parameter 'createFunctionInput' is set
|
|
532
|
+
if (createFunctionInput === undefined || createFunctionInput === null) {
|
|
533
|
+
throw new Error("Missing the required parameter 'createFunctionInput' when calling editFunction");
|
|
534
|
+
}
|
|
535
|
+
var pathParams = {
|
|
536
|
+
'functionid': functionid
|
|
537
|
+
};
|
|
538
|
+
var queryParams = {};
|
|
539
|
+
var headerParams = {
|
|
540
|
+
'Authorization': opts['authorization'],
|
|
541
|
+
'cacheduration': opts['cacheduration'],
|
|
542
|
+
'cachegroup': opts['cachegroup'],
|
|
543
|
+
'cachekey': opts['cachekey'],
|
|
544
|
+
'cachescope': opts['cachescope'],
|
|
545
|
+
'cacheuser': opts['cacheuser'],
|
|
546
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
547
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
548
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
549
|
+
'transactionid': opts['transactionid']
|
|
550
|
+
};
|
|
551
|
+
var formParams = {};
|
|
552
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
553
|
+
var contentTypes = [];
|
|
554
|
+
var accepts = ['application/json'];
|
|
555
|
+
var returnType = _GetFunctionResponse["default"];
|
|
556
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Callback function to receive the result of the editFunctionConfig operation.
|
|
561
|
+
* @callback module:api/FunctionsApi~editFunctionConfigCallback
|
|
562
|
+
* @param {String} error Error message, if any.
|
|
563
|
+
* @param {module:model/GetFunctionConfig} data The data returned by the service call.
|
|
564
|
+
* @param {String} response The complete HTTP response.
|
|
565
|
+
*/
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Edits a function config
|
|
569
|
+
* Edits a function config
|
|
570
|
+
* @param {Number} functionconfigid
|
|
571
|
+
* @param {module:model/FunctionConfigInput} functionConfigInput
|
|
572
|
+
* @param {Object} opts Optional parameters
|
|
573
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
574
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
575
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
576
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
577
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
578
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
579
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
580
|
+
* @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
|
|
581
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
582
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
583
|
+
* @param {module:api/FunctionsApi~editFunctionConfigCallback} callback The callback function, accepting three arguments: error, data, response
|
|
584
|
+
* data is of type: {@link module:model/GetFunctionConfig}
|
|
585
|
+
*/
|
|
586
|
+
}, {
|
|
587
|
+
key: "editFunctionConfig",
|
|
588
|
+
value: function editFunctionConfig(functionconfigid, functionConfigInput, opts, callback) {
|
|
589
|
+
opts = opts || {};
|
|
590
|
+
var postBody = functionConfigInput;
|
|
591
|
+
// verify the required parameter 'functionconfigid' is set
|
|
592
|
+
if (functionconfigid === undefined || functionconfigid === null) {
|
|
593
|
+
throw new Error("Missing the required parameter 'functionconfigid' when calling editFunctionConfig");
|
|
594
|
+
}
|
|
595
|
+
// verify the required parameter 'functionConfigInput' is set
|
|
596
|
+
if (functionConfigInput === undefined || functionConfigInput === null) {
|
|
597
|
+
throw new Error("Missing the required parameter 'functionConfigInput' when calling editFunctionConfig");
|
|
598
|
+
}
|
|
599
|
+
var pathParams = {
|
|
600
|
+
'functionconfigid': functionconfigid
|
|
601
|
+
};
|
|
602
|
+
var queryParams = {};
|
|
603
|
+
var headerParams = {
|
|
604
|
+
'Authorization': opts['authorization'],
|
|
605
|
+
'cacheduration': opts['cacheduration'],
|
|
606
|
+
'cachegroup': opts['cachegroup'],
|
|
607
|
+
'cachekey': opts['cachekey'],
|
|
608
|
+
'cachescope': opts['cachescope'],
|
|
609
|
+
'cacheuser': opts['cacheuser'],
|
|
610
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
611
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
612
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
613
|
+
'transactionid': opts['transactionid']
|
|
614
|
+
};
|
|
615
|
+
var formParams = {};
|
|
616
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
617
|
+
var contentTypes = [];
|
|
618
|
+
var accepts = ['application/json'];
|
|
619
|
+
var returnType = _GetFunctionConfig["default"];
|
|
620
|
+
return this.apiClient.callApi('/graph/data/functions/functionconfig/{functionconfigid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Callback function to receive the result of the getActionTypeMethods operation.
|
|
625
|
+
* @callback module:api/FunctionsApi~getActionTypeMethodsCallback
|
|
626
|
+
* @param {String} error Error message, if any.
|
|
627
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
628
|
+
* @param {String} response The complete HTTP response.
|
|
629
|
+
*/
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Retrieves the methods associated with the ActionType
|
|
633
|
+
* Retrieves the methods associated with the Action Type
|
|
634
|
+
* @param {Number} actiontypeid
|
|
635
|
+
* @param {Object} opts Optional parameters
|
|
636
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
637
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
638
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
639
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
640
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
641
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
642
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
643
|
+
* @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
|
|
644
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
645
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
646
|
+
* @param {module:api/FunctionsApi~getActionTypeMethodsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
647
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
648
|
+
*/
|
|
649
|
+
}, {
|
|
650
|
+
key: "getActionTypeMethods",
|
|
651
|
+
value: function getActionTypeMethods(actiontypeid, opts, callback) {
|
|
652
|
+
opts = opts || {};
|
|
653
|
+
var postBody = null;
|
|
654
|
+
// verify the required parameter 'actiontypeid' is set
|
|
655
|
+
if (actiontypeid === undefined || actiontypeid === null) {
|
|
656
|
+
throw new Error("Missing the required parameter 'actiontypeid' when calling getActionTypeMethods");
|
|
657
|
+
}
|
|
658
|
+
var pathParams = {
|
|
659
|
+
'actiontypeid': actiontypeid
|
|
660
|
+
};
|
|
661
|
+
var queryParams = {};
|
|
662
|
+
var headerParams = {
|
|
663
|
+
'Authorization': opts['authorization'],
|
|
664
|
+
'cacheduration': opts['cacheduration'],
|
|
665
|
+
'cachegroup': opts['cachegroup'],
|
|
666
|
+
'cachekey': opts['cachekey'],
|
|
667
|
+
'cachescope': opts['cachescope'],
|
|
668
|
+
'cacheuser': opts['cacheuser'],
|
|
669
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
670
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
671
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
672
|
+
'transactionid': opts['transactionid']
|
|
673
|
+
};
|
|
674
|
+
var formParams = {};
|
|
675
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
676
|
+
var contentTypes = [];
|
|
677
|
+
var accepts = ['application/json'];
|
|
678
|
+
var returnType = _GetFunctionResponse["default"];
|
|
679
|
+
return this.apiClient.callApi('/graph/data/functions/actiontype/{actiontypeid}/methods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Callback function to receive the result of the getFunction operation.
|
|
684
|
+
* @callback module:api/FunctionsApi~getFunctionCallback
|
|
685
|
+
* @param {String} error Error message, if any.
|
|
686
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
687
|
+
* @param {String} response The complete HTTP response.
|
|
688
|
+
*/
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Returns a function
|
|
692
|
+
* Returns a function
|
|
693
|
+
* @param {Number} functionid
|
|
694
|
+
* @param {Object} opts Optional parameters
|
|
695
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
696
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
697
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
698
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
699
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
700
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
701
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
702
|
+
* @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
|
|
703
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
704
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
705
|
+
* @param {module:api/FunctionsApi~getFunctionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
706
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
707
|
+
*/
|
|
708
|
+
}, {
|
|
709
|
+
key: "getFunction",
|
|
710
|
+
value: function getFunction(functionid, opts, callback) {
|
|
711
|
+
opts = opts || {};
|
|
712
|
+
var postBody = null;
|
|
713
|
+
// verify the required parameter 'functionid' is set
|
|
714
|
+
if (functionid === undefined || functionid === null) {
|
|
715
|
+
throw new Error("Missing the required parameter 'functionid' when calling getFunction");
|
|
716
|
+
}
|
|
717
|
+
var pathParams = {
|
|
718
|
+
'functionid': functionid
|
|
719
|
+
};
|
|
720
|
+
var queryParams = {};
|
|
721
|
+
var headerParams = {
|
|
722
|
+
'Authorization': opts['authorization'],
|
|
723
|
+
'cacheduration': opts['cacheduration'],
|
|
724
|
+
'cachegroup': opts['cachegroup'],
|
|
725
|
+
'cachekey': opts['cachekey'],
|
|
726
|
+
'cachescope': opts['cachescope'],
|
|
727
|
+
'cacheuser': opts['cacheuser'],
|
|
728
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
729
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
730
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
731
|
+
'transactionid': opts['transactionid']
|
|
732
|
+
};
|
|
733
|
+
var formParams = {};
|
|
734
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
735
|
+
var contentTypes = [];
|
|
736
|
+
var accepts = ['application/json'];
|
|
737
|
+
var returnType = _GetFunctionResponse["default"];
|
|
738
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Callback function to receive the result of the getFunctionConfig operation.
|
|
743
|
+
* @callback module:api/FunctionsApi~getFunctionConfigCallback
|
|
744
|
+
* @param {String} error Error message, if any.
|
|
745
|
+
* @param {module:model/GetFunctionConfig} data The data returned by the service call.
|
|
746
|
+
* @param {String} response The complete HTTP response.
|
|
747
|
+
*/
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Returns the function for the given environment
|
|
751
|
+
* Returns the function for the given environment
|
|
752
|
+
* @param {Number} functionid
|
|
753
|
+
* @param {module:model/String} environment
|
|
754
|
+
* @param {Object} opts Optional parameters
|
|
755
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
756
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
757
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
758
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
759
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
760
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
761
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
762
|
+
* @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
|
|
763
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
764
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
765
|
+
* @param {String} [key]
|
|
766
|
+
* @param {module:api/FunctionsApi~getFunctionConfigCallback} callback The callback function, accepting three arguments: error, data, response
|
|
767
|
+
* data is of type: {@link module:model/GetFunctionConfig}
|
|
768
|
+
*/
|
|
769
|
+
}, {
|
|
770
|
+
key: "getFunctionConfig",
|
|
771
|
+
value: function getFunctionConfig(functionid, environment, opts, callback) {
|
|
772
|
+
opts = opts || {};
|
|
773
|
+
var postBody = null;
|
|
774
|
+
// verify the required parameter 'functionid' is set
|
|
775
|
+
if (functionid === undefined || functionid === null) {
|
|
776
|
+
throw new Error("Missing the required parameter 'functionid' when calling getFunctionConfig");
|
|
777
|
+
}
|
|
778
|
+
// verify the required parameter 'environment' is set
|
|
779
|
+
if (environment === undefined || environment === null) {
|
|
780
|
+
throw new Error("Missing the required parameter 'environment' when calling getFunctionConfig");
|
|
781
|
+
}
|
|
782
|
+
var pathParams = {
|
|
783
|
+
'functionid': functionid,
|
|
784
|
+
'environment': environment
|
|
785
|
+
};
|
|
786
|
+
var queryParams = {
|
|
787
|
+
'key': opts['key']
|
|
788
|
+
};
|
|
789
|
+
var headerParams = {
|
|
790
|
+
'Authorization': opts['authorization'],
|
|
791
|
+
'cacheduration': opts['cacheduration'],
|
|
792
|
+
'cachegroup': opts['cachegroup'],
|
|
793
|
+
'cachekey': opts['cachekey'],
|
|
794
|
+
'cachescope': opts['cachescope'],
|
|
795
|
+
'cacheuser': opts['cacheuser'],
|
|
796
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
797
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
798
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
799
|
+
'transactionid': opts['transactionid']
|
|
800
|
+
};
|
|
801
|
+
var formParams = {};
|
|
802
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
803
|
+
var contentTypes = [];
|
|
804
|
+
var accepts = ['application/json'];
|
|
805
|
+
var returnType = _GetFunctionConfig["default"];
|
|
806
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}/{environment}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Callback function to receive the result of the getFunctionSubscriptions operation.
|
|
811
|
+
* @callback module:api/FunctionsApi~getFunctionSubscriptionsCallback
|
|
812
|
+
* @param {String} error Error message, if any.
|
|
813
|
+
* @param {Array.<module:model/TopicSubscriptionResponse>} data The data returned by the service call.
|
|
814
|
+
* @param {String} response The complete HTTP response.
|
|
815
|
+
*/
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Gets the subscriptions of the function
|
|
819
|
+
* Get the subscriptions of the function
|
|
820
|
+
* @param {Number} functionid
|
|
821
|
+
* @param {Object} opts Optional parameters
|
|
822
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
823
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
824
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
825
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
826
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
827
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
828
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
829
|
+
* @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
|
|
830
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
831
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
832
|
+
* @param {module:api/FunctionsApi~getFunctionSubscriptionsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
833
|
+
* data is of type: {@link Array.<module:model/TopicSubscriptionResponse>}
|
|
834
|
+
*/
|
|
835
|
+
}, {
|
|
836
|
+
key: "getFunctionSubscriptions",
|
|
837
|
+
value: function getFunctionSubscriptions(functionid, opts, callback) {
|
|
838
|
+
opts = opts || {};
|
|
839
|
+
var postBody = null;
|
|
840
|
+
// verify the required parameter 'functionid' is set
|
|
841
|
+
if (functionid === undefined || functionid === null) {
|
|
842
|
+
throw new Error("Missing the required parameter 'functionid' when calling getFunctionSubscriptions");
|
|
843
|
+
}
|
|
844
|
+
var pathParams = {
|
|
845
|
+
'functionid': functionid
|
|
846
|
+
};
|
|
847
|
+
var queryParams = {};
|
|
848
|
+
var headerParams = {
|
|
849
|
+
'Authorization': opts['authorization'],
|
|
850
|
+
'cacheduration': opts['cacheduration'],
|
|
851
|
+
'cachegroup': opts['cachegroup'],
|
|
852
|
+
'cachekey': opts['cachekey'],
|
|
853
|
+
'cachescope': opts['cachescope'],
|
|
854
|
+
'cacheuser': opts['cacheuser'],
|
|
855
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
856
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
857
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
858
|
+
'transactionid': opts['transactionid']
|
|
859
|
+
};
|
|
860
|
+
var formParams = {};
|
|
861
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
862
|
+
var contentTypes = [];
|
|
863
|
+
var accepts = ['application/json'];
|
|
864
|
+
var returnType = [_TopicSubscriptionResponse["default"]];
|
|
865
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}/subscriptions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Callback function to receive the result of the getObjectTypeMethods operation.
|
|
870
|
+
* @callback module:api/FunctionsApi~getObjectTypeMethodsCallback
|
|
871
|
+
* @param {String} error Error message, if any.
|
|
872
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
873
|
+
* @param {String} response The complete HTTP response.
|
|
874
|
+
*/
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Retrieves the methods associated with the Object Type
|
|
878
|
+
* Retrieves the methods associated with the Object Type
|
|
879
|
+
* @param {Number} objecttypeid
|
|
880
|
+
* @param {Object} opts Optional parameters
|
|
881
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
882
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
883
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
884
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
885
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
886
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
887
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
888
|
+
* @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
|
|
889
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
890
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
891
|
+
* @param {module:api/FunctionsApi~getObjectTypeMethodsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
892
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
893
|
+
*/
|
|
894
|
+
}, {
|
|
895
|
+
key: "getObjectTypeMethods",
|
|
896
|
+
value: function getObjectTypeMethods(objecttypeid, opts, callback) {
|
|
897
|
+
opts = opts || {};
|
|
898
|
+
var postBody = null;
|
|
899
|
+
// verify the required parameter 'objecttypeid' is set
|
|
900
|
+
if (objecttypeid === undefined || objecttypeid === null) {
|
|
901
|
+
throw new Error("Missing the required parameter 'objecttypeid' when calling getObjectTypeMethods");
|
|
902
|
+
}
|
|
903
|
+
var pathParams = {
|
|
904
|
+
'objecttypeid': objecttypeid
|
|
905
|
+
};
|
|
906
|
+
var queryParams = {};
|
|
907
|
+
var headerParams = {
|
|
908
|
+
'Authorization': opts['authorization'],
|
|
909
|
+
'cacheduration': opts['cacheduration'],
|
|
910
|
+
'cachegroup': opts['cachegroup'],
|
|
911
|
+
'cachekey': opts['cachekey'],
|
|
912
|
+
'cachescope': opts['cachescope'],
|
|
913
|
+
'cacheuser': opts['cacheuser'],
|
|
914
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
915
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
916
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
917
|
+
'transactionid': opts['transactionid']
|
|
918
|
+
};
|
|
919
|
+
var formParams = {};
|
|
920
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
921
|
+
var contentTypes = [];
|
|
922
|
+
var accepts = ['application/json'];
|
|
923
|
+
var returnType = _GetFunctionResponse["default"];
|
|
924
|
+
return this.apiClient.callApi('/graph/data/functions/objecttype/{objecttypeid}/methods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* Callback function to receive the result of the getRelationshipTypeMethods operation.
|
|
929
|
+
* @callback module:api/FunctionsApi~getRelationshipTypeMethodsCallback
|
|
930
|
+
* @param {String} error Error message, if any.
|
|
931
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
932
|
+
* @param {String} response The complete HTTP response.
|
|
933
|
+
*/
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Retrieves the methods associated with the Object Type
|
|
937
|
+
* Retrieves the methods associated with the Object Type
|
|
938
|
+
* @param {Number} reltypeid
|
|
939
|
+
* @param {Object} opts Optional parameters
|
|
940
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
941
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
942
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
943
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
944
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
945
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
946
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
947
|
+
* @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
|
|
948
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
949
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
950
|
+
* @param {module:api/FunctionsApi~getRelationshipTypeMethodsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
951
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
952
|
+
*/
|
|
953
|
+
}, {
|
|
954
|
+
key: "getRelationshipTypeMethods",
|
|
955
|
+
value: function getRelationshipTypeMethods(reltypeid, opts, callback) {
|
|
956
|
+
opts = opts || {};
|
|
957
|
+
var postBody = null;
|
|
958
|
+
// verify the required parameter 'reltypeid' is set
|
|
959
|
+
if (reltypeid === undefined || reltypeid === null) {
|
|
960
|
+
throw new Error("Missing the required parameter 'reltypeid' when calling getRelationshipTypeMethods");
|
|
961
|
+
}
|
|
962
|
+
var pathParams = {
|
|
963
|
+
'reltypeid': reltypeid
|
|
964
|
+
};
|
|
965
|
+
var queryParams = {};
|
|
966
|
+
var headerParams = {
|
|
967
|
+
'Authorization': opts['authorization'],
|
|
968
|
+
'cacheduration': opts['cacheduration'],
|
|
969
|
+
'cachegroup': opts['cachegroup'],
|
|
970
|
+
'cachekey': opts['cachekey'],
|
|
971
|
+
'cachescope': opts['cachescope'],
|
|
972
|
+
'cacheuser': opts['cacheuser'],
|
|
973
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
974
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
975
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
976
|
+
'transactionid': opts['transactionid']
|
|
977
|
+
};
|
|
978
|
+
var formParams = {};
|
|
979
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
980
|
+
var contentTypes = [];
|
|
981
|
+
var accepts = ['application/json'];
|
|
982
|
+
var returnType = _GetFunctionResponse["default"];
|
|
983
|
+
return this.apiClient.callApi('/graph/data/functions/relationshiptype/{reltypeid}/methods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* Callback function to receive the result of the subscribeToTopic operation.
|
|
988
|
+
* @callback module:api/FunctionsApi~subscribeToTopicCallback
|
|
989
|
+
* @param {String} error Error message, if any.
|
|
990
|
+
* @param {Array.<module:model/TopicSubscriptionResponse>} data The data returned by the service call.
|
|
991
|
+
* @param {String} response The complete HTTP response.
|
|
992
|
+
*/
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Subscribes to a topic
|
|
996
|
+
* Subscribes to a topic
|
|
997
|
+
* @param {Number} functionid
|
|
998
|
+
* @param {Object} opts Optional parameters
|
|
999
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
1000
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
1001
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
1002
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
1003
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
1004
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
1005
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
1006
|
+
* @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
|
|
1007
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
1008
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
1009
|
+
* @param {module:api/FunctionsApi~subscribeToTopicCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1010
|
+
* data is of type: {@link Array.<module:model/TopicSubscriptionResponse>}
|
|
1011
|
+
*/
|
|
1012
|
+
}, {
|
|
1013
|
+
key: "subscribeToTopic",
|
|
1014
|
+
value: function subscribeToTopic(functionid, opts, callback) {
|
|
1015
|
+
opts = opts || {};
|
|
1016
|
+
var postBody = null;
|
|
1017
|
+
// verify the required parameter 'functionid' is set
|
|
1018
|
+
if (functionid === undefined || functionid === null) {
|
|
1019
|
+
throw new Error("Missing the required parameter 'functionid' when calling subscribeToTopic");
|
|
1020
|
+
}
|
|
1021
|
+
var pathParams = {
|
|
1022
|
+
'functionid': functionid
|
|
1023
|
+
};
|
|
1024
|
+
var queryParams = {};
|
|
1025
|
+
var headerParams = {
|
|
1026
|
+
'Authorization': opts['authorization'],
|
|
1027
|
+
'cacheduration': opts['cacheduration'],
|
|
1028
|
+
'cachegroup': opts['cachegroup'],
|
|
1029
|
+
'cachekey': opts['cachekey'],
|
|
1030
|
+
'cachescope': opts['cachescope'],
|
|
1031
|
+
'cacheuser': opts['cacheuser'],
|
|
1032
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
1033
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
1034
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
1035
|
+
'transactionid': opts['transactionid']
|
|
1036
|
+
};
|
|
1037
|
+
var formParams = {};
|
|
1038
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
1039
|
+
var contentTypes = [];
|
|
1040
|
+
var accepts = ['application/json'];
|
|
1041
|
+
var returnType = [_TopicSubscriptionResponse["default"]];
|
|
1042
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}/subscriptions', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1043
|
+
}
|
|
108
1044
|
}]);
|
|
109
1045
|
return FunctionsApi;
|
|
110
1046
|
}();
|