@gobodo/gobodo-api 0.1.56 → 0.1.59
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 +46 -12
- package/dist/ApiClient.js +20 -21
- package/dist/api/ActionTypesApi.js +19 -20
- package/dist/api/AdCampaignsApi.js +19 -20
- package/dist/api/AdManagementApi.js +19 -20
- package/dist/api/AdminDataManagementApi.js +19 -20
- package/dist/api/AdsApi.js +19 -20
- package/dist/api/AttachmentsApi.js +19 -20
- package/dist/api/AuthenticationApi.js +55 -20
- package/dist/api/CategoriesApi.js +19 -20
- package/dist/api/CommentsApi.js +19 -20
- package/dist/api/ContentManagementApi.js +20 -21
- package/dist/api/ConversationsApi.js +19 -20
- package/dist/api/DataSheetImportsApi.js +19 -20
- package/dist/api/DefaultApi.js +25 -366
- package/dist/api/DocumentsApi.js +20 -21
- package/dist/api/EmailsApi.js +19 -20
- package/dist/api/EntryPartsApi.js +19 -20
- package/dist/api/FacebookApi.js +19 -20
- package/dist/api/FieldsApi.js +19 -20
- package/dist/api/FilesApi.js +19 -20
- package/dist/api/FormsApi.js +19 -20
- package/dist/api/FunctionsApi.js +721 -32
- package/dist/api/GeocodeApi.js +19 -20
- package/dist/api/GoogleApi.js +19 -20
- package/dist/api/GraphActionTypesApi.js +510 -0
- package/dist/api/GraphActionsApi.js +19 -20
- package/dist/api/GraphObjectTypesApi.js +151 -27
- package/dist/api/GraphObjectsApi.js +19 -20
- package/dist/api/GraphRelationshipTypesApi.js +144 -20
- package/dist/api/GraphRelationshipsApi.js +19 -20
- package/dist/api/GraphSchemasApi.js +19 -20
- package/dist/api/GraphTraversalApi.js +19 -20
- package/dist/api/GraphsApi.js +19 -20
- package/dist/api/GroupsApi.js +19 -20
- package/dist/api/IAMApi.js +19 -20
- package/dist/api/ImagesApi.js +19 -20
- package/dist/api/InvitesApi.js +19 -20
- package/dist/api/LikesApi.js +19 -20
- package/dist/api/LinkedINApi.js +19 -20
- package/dist/api/LiveMeetingsApi.js +19 -20
- package/dist/api/MeetingEventsApi.js +19 -20
- package/dist/api/NotificationsApi.js +39 -40
- package/dist/api/PagesApi.js +19 -20
- package/dist/api/PhoneNumbersApi.js +19 -20
- package/dist/api/PostsApi.js +19 -20
- package/dist/api/PrivateMessagesApi.js +19 -20
- package/dist/api/PublicationsApi.js +19 -20
- package/dist/api/ScreensApi.js +19 -20
- package/dist/api/SocialIntegrationApi.js +19 -20
- package/dist/api/StripeAccountsApi.js +19 -20
- package/dist/api/TagsApi.js +19 -20
- package/dist/api/TemplatesApi.js +19 -20
- package/dist/api/ThemeMappingsApi.js +19 -20
- package/dist/api/TopicsApi.js +320 -27
- package/dist/api/TransactionsApi.js +19 -20
- package/dist/api/TwitterApi.js +19 -20
- package/dist/api/UserTagsApi.js +19 -20
- package/dist/api/UsersApi.js +19 -20
- package/dist/api/UtilsApi.js +19 -20
- package/dist/api/VideosApi.js +19 -20
- package/dist/index.js +90 -6
- package/dist/model/APIClient.js +19 -20
- package/dist/model/AccountSessionInput.js +19 -20
- package/dist/model/AccountSessionResponse.js +19 -20
- package/dist/model/ApplicationPaymentAccountResponse.js +19 -20
- package/dist/model/ApplicationPaymentAccountResponseFailureException.js +22 -23
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionStackTraceInner.js +19 -20
- package/dist/model/Article.js +19 -20
- package/dist/model/AuthResponse.js +19 -20
- package/dist/model/AwsSettings.js +140 -0
- package/dist/model/Balance.js +50 -51
- package/dist/model/BalanceDetails.js +19 -20
- package/dist/model/BalanceResponse.js +19 -20
- package/dist/model/BankAccountInfo.js +19 -20
- package/dist/model/CardInfo.js +19 -20
- package/dist/model/Comment.js +31 -32
- package/dist/model/Coordinates.js +19 -20
- package/dist/model/CreateAccountResponse.js +19 -20
- package/dist/model/CreateFunctionInput.js +22 -23
- package/dist/model/CreateStripeAccountInput.js +19 -20
- package/dist/model/CreateStripeCustomerInput.js +19 -20
- package/dist/model/CreateTopicInput.js +22 -23
- package/dist/model/CreateTopicListenerInput.js +22 -23
- package/dist/model/CustomerResponse.js +19 -20
- package/dist/model/DataObject.js +19 -20
- package/dist/model/DataSheetImport.js +19 -20
- package/dist/model/DataSheetImportPrivacySettings.js +19 -20
- package/dist/model/DataSheetImportSummary.js +22 -23
- package/dist/model/DeviceRegistrationRequest.js +22 -23
- package/dist/model/Document.js +22 -23
- package/dist/model/DocumentPart.js +22 -23
- package/dist/model/DocumentPartType.js +19 -20
- package/dist/model/DocumentType.js +27 -28
- package/dist/model/EmailAddress.js +19 -20
- package/dist/model/FieldMapping.js +19 -20
- package/dist/model/Fields.js +33 -34
- package/dist/model/File.js +19 -20
- package/dist/model/FileAttachmentUploadObject.js +19 -20
- package/dist/model/Filter.js +19 -20
- package/dist/model/FilterManager.js +22 -23
- package/dist/model/Form.js +22 -23
- package/dist/model/FormSection.js +22 -23
- package/dist/model/FormSubmission.js +31 -32
- package/dist/model/FunctionConfigInput.js +81 -23
- package/dist/model/FunctionEnvironmentConfig.js +22 -23
- package/dist/model/FunctionInput.js +190 -0
- package/dist/model/FunctionOutput.js +182 -0
- package/dist/model/Geocode.js +19 -20
- package/dist/model/GeocodePayload.js +19 -20
- package/dist/model/GeolocationInput.js +22 -23
- package/dist/model/GetFunctionConfig.js +364 -0
- package/dist/model/GetFunctionEnvironmentConfig.js +170 -0
- package/dist/model/GetFunctionResponse.js +39 -36
- package/dist/model/GoogleCloudSettings.js +126 -0
- package/dist/model/Graph.js +19 -20
- package/dist/model/GraphAction.js +28 -29
- package/dist/model/GraphDatabaseService.js +19 -20
- package/dist/model/GraphGeocode.js +19 -20
- package/dist/model/GraphIteratorEntryPart.js +22 -23
- package/dist/model/GraphObject.js +19 -20
- package/dist/model/GraphObjectPayload.js +22 -23
- package/dist/model/GraphObjectSchema.js +19 -20
- package/dist/model/GraphObjectType.js +19 -20
- package/dist/model/GraphObjectTypeSchema.js +22 -23
- package/dist/model/GraphOwner.js +19 -20
- package/dist/model/GraphRelationship.js +28 -29
- package/dist/model/GraphRelationshipPayload.js +19 -20
- package/dist/model/GraphRelationshipType.js +31 -32
- package/dist/model/GraphSchema.js +27 -28
- package/dist/model/GraphTraversalInput.js +19 -20
- package/dist/model/Image.js +27 -28
- package/dist/model/ImageUploadObject.js +27 -28
- package/dist/model/InputPart.js +19 -20
- package/dist/model/InputPartMediaType.js +19 -20
- package/dist/model/KafkaSettings.js +150 -0
- package/dist/model/Link.js +30 -31
- package/dist/model/LiveStreamInfo.js +19 -20
- package/dist/model/MeetingEvent.js +27 -28
- package/dist/model/MeetingEventTimezone.js +19 -20
- package/dist/model/MeetingInfo.js +19 -20
- package/dist/model/Member.js +19 -20
- package/dist/model/MemberGroupCategory.js +19 -20
- package/dist/model/MemberList.js +32 -34
- package/dist/model/MessageGroup.js +19 -20
- package/dist/model/MultipartBody.js +19 -20
- package/dist/model/NotificationInput.js +22 -23
- package/dist/model/NotificationResponse.js +194 -0
- package/dist/model/Objecttype.js +22 -23
- package/dist/model/OutParameter.js +126 -0
- package/dist/model/Page.js +26 -27
- package/dist/model/PageSchema.js +19 -20
- package/dist/model/Pageable.js +19 -20
- package/dist/model/Parameter.js +126 -0
- package/dist/model/Path.js +22 -23
- package/dist/model/PaymentAccountObject.js +19 -20
- package/dist/model/PaymentIntentInput.js +19 -20
- package/dist/model/PaymentIntentResponse.js +19 -20
- package/dist/model/PaymentMethod.js +26 -27
- package/dist/model/PaymentMethodInput.js +19 -20
- package/dist/model/PaymentMethodResponse.js +19 -20
- package/dist/model/PaymentMethodsResponse.js +22 -23
- package/dist/model/Payout.js +19 -20
- package/dist/model/PayoutInput.js +22 -23
- package/dist/model/PayoutResponse.js +19 -20
- package/dist/model/PhoneNumber.js +19 -20
- package/dist/model/Post.js +19 -20
- package/dist/model/PrivateMessage.js +19 -20
- package/dist/model/PrivateMessageConversation.js +32 -33
- package/dist/model/PrivateMessageConversationSchema.js +22 -23
- package/dist/model/Profile.js +19 -20
- package/dist/model/Profiletype.js +22 -23
- package/dist/model/PropertyContainer.js +19 -20
- package/dist/model/PurgeDataDefaultResponseValue.js +19 -20
- package/dist/model/RelationshipMapping.js +22 -23
- package/dist/model/ScreenSchema.js +19 -20
- package/dist/model/SimulcastInfo.js +19 -20
- package/dist/model/SkinField.js +33 -34
- package/dist/model/SocialGroup.js +27 -28
- package/dist/model/SocialGroupType.js +19 -20
- package/dist/model/Sort.js +19 -20
- package/dist/model/SourceTypes.js +19 -20
- package/dist/model/StatusUpdate.js +19 -20
- package/dist/model/StreetAddress.js +19 -20
- package/dist/model/StripeAccount.js +19 -20
- package/dist/model/StripeCustomerAccount.js +19 -20
- package/dist/model/Template.js +27 -28
- package/dist/model/TemplateSchema.js +27 -28
- package/dist/model/ThemeMapping.js +19 -20
- package/dist/model/ThemeMappingPayload.js +19 -20
- package/dist/model/TopicInfoResponse.js +103 -23
- package/dist/model/TopicMessageInput.js +122 -0
- package/dist/model/TopicSubscriptionResponse.js +150 -0
- package/dist/model/Transaction.js +19 -20
- package/dist/model/Transfer.js +19 -20
- package/dist/model/TransferInput.js +22 -23
- package/dist/model/TransferResponse.js +19 -20
- package/dist/model/TransferResponsePaymentMethodDetails.js +19 -20
- package/dist/model/TraversalRelationResponse.js +22 -23
- package/dist/model/User.js +19 -20
- package/dist/model/UserDataPayload.js +19 -20
- package/dist/model/UserDomain.js +19 -20
- package/dist/model/UserInvite.js +19 -20
- package/dist/model/UserInviteInput.js +19 -20
- package/dist/model/UserSchema.js +19 -20
- package/dist/model/UserTag.js +19 -20
- package/dist/model/Userid.js +19 -20
- package/dist/model/Video.js +27 -28
- package/dist/model/VideoLiveUrl.js +30 -31
- package/dist/model/VideoSchema.js +27 -28
- package/dist/model/VideoUploadObject.js +27 -28
- package/dist/model/ZeusPortalCategory.js +19 -20
- package/package.json +3 -1
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionSuppressedInner.js +0 -135
- package/dist/model/InputPartHeaders.js +0 -88
- package/dist/model/Notification.js +0 -210
- package/dist/model/PurgeDataDefaultResponse.js +0 -144
package/dist/api/FunctionsApi.js
CHANGED
|
@@ -6,30 +6,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _CreateFunctionInput = _interopRequireDefault(require("../model/CreateFunctionInput"));
|
|
9
|
+
var _FunctionConfigInput = _interopRequireDefault(require("../model/FunctionConfigInput"));
|
|
10
|
+
var _FunctionInput = _interopRequireDefault(require("../model/FunctionInput"));
|
|
11
|
+
var _FunctionOutput = _interopRequireDefault(require("../model/FunctionOutput"));
|
|
12
|
+
var _GetFunctionConfig = _interopRequireDefault(require("../model/GetFunctionConfig"));
|
|
9
13
|
var _GetFunctionResponse = _interopRequireDefault(require("../model/GetFunctionResponse"));
|
|
10
14
|
var _PurgeDataDefaultResponseValue = _interopRequireDefault(require("../model/PurgeDataDefaultResponseValue"));
|
|
11
|
-
|
|
15
|
+
var _TopicSubscriptionResponse = _interopRequireDefault(require("../model/TopicSubscriptionResponse"));
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
17
|
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(
|
|
14
|
-
function _defineProperties(
|
|
15
|
-
function _createClass(
|
|
16
|
-
function _toPropertyKey(
|
|
17
|
-
function _toPrimitive(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
19
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
20
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
22
|
+
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); } /**
|
|
23
|
+
* gobodo-api
|
|
24
|
+
* REST Interface for Gobodo API
|
|
25
|
+
*
|
|
26
|
+
* The version of the OpenAPI document: 0.1.59
|
|
27
|
+
* Contact: info@gobodo.io
|
|
28
|
+
*
|
|
29
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
30
|
+
* https://openapi-generator.tech
|
|
31
|
+
* Do not edit the class manually.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
29
34
|
/**
|
|
30
35
|
* Functions service.
|
|
31
36
|
* @module api/FunctionsApi
|
|
32
|
-
* @version 0.1.
|
|
37
|
+
* @version 0.1.59
|
|
33
38
|
*/
|
|
34
39
|
var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
40
|
/**
|
|
@@ -45,18 +50,19 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
/**
|
|
48
|
-
* Callback function to receive the result of the
|
|
49
|
-
* @callback module:api/FunctionsApi~
|
|
53
|
+
* Callback function to receive the result of the addFunctionConfig operation.
|
|
54
|
+
* @callback module:api/FunctionsApi~addFunctionConfigCallback
|
|
50
55
|
* @param {String} error Error message, if any.
|
|
51
|
-
* @param {module:model/
|
|
56
|
+
* @param {module:model/GetFunctionConfig} data The data returned by the service call.
|
|
52
57
|
* @param {String} response The complete HTTP response.
|
|
53
58
|
*/
|
|
54
59
|
|
|
55
60
|
/**
|
|
56
|
-
* Adds a
|
|
57
|
-
* Adds a
|
|
58
|
-
* @param {Number}
|
|
59
|
-
* @param {module:model/
|
|
61
|
+
* Adds a function config
|
|
62
|
+
* Adds a function config
|
|
63
|
+
* @param {Number} functionid
|
|
64
|
+
* @param {module:model/String} environment
|
|
65
|
+
* @param {module:model/FunctionConfigInput} functionConfigInput
|
|
60
66
|
* @param {Object} opts Optional parameters
|
|
61
67
|
* @param {String} [authorization] The authorization token of the logged in user
|
|
62
68
|
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
@@ -68,10 +74,82 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
68
74
|
* @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
|
|
69
75
|
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
70
76
|
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
71
|
-
* @param {
|
|
72
|
-
*
|
|
77
|
+
* @param {String} [key]
|
|
78
|
+
* @param {module:api/FunctionsApi~addFunctionConfigCallback} callback The callback function, accepting three arguments: error, data, response
|
|
79
|
+
* data is of type: {@link module:model/GetFunctionConfig}
|
|
73
80
|
*/
|
|
74
|
-
_createClass(FunctionsApi, [{
|
|
81
|
+
return _createClass(FunctionsApi, [{
|
|
82
|
+
key: "addFunctionConfig",
|
|
83
|
+
value: function addFunctionConfig(functionid, environment, functionConfigInput, opts, callback) {
|
|
84
|
+
opts = opts || {};
|
|
85
|
+
var postBody = functionConfigInput;
|
|
86
|
+
// verify the required parameter 'functionid' is set
|
|
87
|
+
if (functionid === undefined || functionid === null) {
|
|
88
|
+
throw new Error("Missing the required parameter 'functionid' when calling addFunctionConfig");
|
|
89
|
+
}
|
|
90
|
+
// verify the required parameter 'environment' is set
|
|
91
|
+
if (environment === undefined || environment === null) {
|
|
92
|
+
throw new Error("Missing the required parameter 'environment' when calling addFunctionConfig");
|
|
93
|
+
}
|
|
94
|
+
// verify the required parameter 'functionConfigInput' is set
|
|
95
|
+
if (functionConfigInput === undefined || functionConfigInput === null) {
|
|
96
|
+
throw new Error("Missing the required parameter 'functionConfigInput' when calling addFunctionConfig");
|
|
97
|
+
}
|
|
98
|
+
var pathParams = {
|
|
99
|
+
'functionid': functionid,
|
|
100
|
+
'environment': environment
|
|
101
|
+
};
|
|
102
|
+
var queryParams = {
|
|
103
|
+
'key': opts['key']
|
|
104
|
+
};
|
|
105
|
+
var headerParams = {
|
|
106
|
+
'Authorization': opts['authorization'],
|
|
107
|
+
'cacheduration': opts['cacheduration'],
|
|
108
|
+
'cachegroup': opts['cachegroup'],
|
|
109
|
+
'cachekey': opts['cachekey'],
|
|
110
|
+
'cachescope': opts['cachescope'],
|
|
111
|
+
'cacheuser': opts['cacheuser'],
|
|
112
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
113
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
114
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
115
|
+
'transactionid': opts['transactionid']
|
|
116
|
+
};
|
|
117
|
+
var formParams = {};
|
|
118
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
119
|
+
var contentTypes = [];
|
|
120
|
+
var accepts = ['application/json'];
|
|
121
|
+
var returnType = _GetFunctionConfig["default"];
|
|
122
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}/{environment}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Callback function to receive the result of the addMethodToActionType operation.
|
|
127
|
+
* @callback module:api/FunctionsApi~addMethodToActionTypeCallback
|
|
128
|
+
* @param {String} error Error message, if any.
|
|
129
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
130
|
+
* @param {String} response The complete HTTP response.
|
|
131
|
+
*/
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Adds a method to an action type
|
|
135
|
+
* Adds a method to an action type
|
|
136
|
+
* @param {Number} actiontypeid
|
|
137
|
+
* @param {module:model/CreateFunctionInput} createFunctionInput
|
|
138
|
+
* @param {Object} opts Optional parameters
|
|
139
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
140
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
141
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
142
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
143
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
144
|
+
* @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)
|
|
145
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
146
|
+
* @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
|
|
147
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
148
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
149
|
+
* @param {module:api/FunctionsApi~addMethodToActionTypeCallback} callback The callback function, accepting three arguments: error, data, response
|
|
150
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
151
|
+
*/
|
|
152
|
+
}, {
|
|
75
153
|
key: "addMethodToActionType",
|
|
76
154
|
value: function addMethodToActionType(actiontypeid, createFunctionInput, opts, callback) {
|
|
77
155
|
opts = opts || {};
|
|
@@ -105,7 +183,7 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
105
183
|
var contentTypes = [];
|
|
106
184
|
var accepts = ['application/json'];
|
|
107
185
|
var returnType = _GetFunctionResponse["default"];
|
|
108
|
-
return this.apiClient.callApi('/graph/data/functions/{actiontypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
186
|
+
return this.apiClient.callApi('/graph/data/functions/actiontype/{actiontypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
109
187
|
}
|
|
110
188
|
|
|
111
189
|
/**
|
|
@@ -169,7 +247,7 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
169
247
|
var contentTypes = [];
|
|
170
248
|
var accepts = ['application/json'];
|
|
171
249
|
var returnType = _GetFunctionResponse["default"];
|
|
172
|
-
return this.apiClient.callApi('/graph/data/functions/{objecttypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
250
|
+
return this.apiClient.callApi('/graph/data/functions/objecttype/{objecttypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
173
251
|
}
|
|
174
252
|
|
|
175
253
|
/**
|
|
@@ -233,7 +311,7 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
233
311
|
var contentTypes = [];
|
|
234
312
|
var accepts = ['application/json'];
|
|
235
313
|
var returnType = _GetFunctionResponse["default"];
|
|
236
|
-
return this.apiClient.callApi('/graph/data/functions/{reltypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
314
|
+
return this.apiClient.callApi('/graph/data/functions/relationshiptype/{reltypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
237
315
|
}
|
|
238
316
|
|
|
239
317
|
/**
|
|
@@ -293,6 +371,65 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
293
371
|
return this.apiClient.callApi('/graph/data/functions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
294
372
|
}
|
|
295
373
|
|
|
374
|
+
/**
|
|
375
|
+
* Callback function to receive the result of the deleteFunction operation.
|
|
376
|
+
* @callback module:api/FunctionsApi~deleteFunctionCallback
|
|
377
|
+
* @param {String} error Error message, if any.
|
|
378
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
379
|
+
* @param {String} response The complete HTTP response.
|
|
380
|
+
*/
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Deletes a function
|
|
384
|
+
* Deletes a function
|
|
385
|
+
* @param {Number} functionid
|
|
386
|
+
* @param {Object} opts Optional parameters
|
|
387
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
388
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
389
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
390
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
391
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
392
|
+
* @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)
|
|
393
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
394
|
+
* @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
395
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
396
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
397
|
+
* @param {module:api/FunctionsApi~deleteFunctionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
398
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
399
|
+
*/
|
|
400
|
+
}, {
|
|
401
|
+
key: "deleteFunction",
|
|
402
|
+
value: function deleteFunction(functionid, opts, callback) {
|
|
403
|
+
opts = opts || {};
|
|
404
|
+
var postBody = null;
|
|
405
|
+
// verify the required parameter 'functionid' is set
|
|
406
|
+
if (functionid === undefined || functionid === null) {
|
|
407
|
+
throw new Error("Missing the required parameter 'functionid' when calling deleteFunction");
|
|
408
|
+
}
|
|
409
|
+
var pathParams = {
|
|
410
|
+
'functionid': functionid
|
|
411
|
+
};
|
|
412
|
+
var queryParams = {};
|
|
413
|
+
var headerParams = {
|
|
414
|
+
'Authorization': opts['authorization'],
|
|
415
|
+
'cacheduration': opts['cacheduration'],
|
|
416
|
+
'cachegroup': opts['cachegroup'],
|
|
417
|
+
'cachekey': opts['cachekey'],
|
|
418
|
+
'cachescope': opts['cachescope'],
|
|
419
|
+
'cacheuser': opts['cacheuser'],
|
|
420
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
421
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
422
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
423
|
+
'transactionid': opts['transactionid']
|
|
424
|
+
};
|
|
425
|
+
var formParams = {};
|
|
426
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
427
|
+
var contentTypes = [];
|
|
428
|
+
var accepts = ['application/json'];
|
|
429
|
+
var returnType = _GetFunctionResponse["default"];
|
|
430
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
431
|
+
}
|
|
432
|
+
|
|
296
433
|
/**
|
|
297
434
|
* Callback function to receive the result of the doPostFunction operation.
|
|
298
435
|
* @callback module:api/FunctionsApi~doPostFunctionCallback
|
|
@@ -421,6 +558,129 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
421
558
|
return this.apiClient.callApi('/graph/data/functions/{functionid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
422
559
|
}
|
|
423
560
|
|
|
561
|
+
/**
|
|
562
|
+
* Callback function to receive the result of the editFunctionConfig operation.
|
|
563
|
+
* @callback module:api/FunctionsApi~editFunctionConfigCallback
|
|
564
|
+
* @param {String} error Error message, if any.
|
|
565
|
+
* @param {module:model/GetFunctionConfig} data The data returned by the service call.
|
|
566
|
+
* @param {String} response The complete HTTP response.
|
|
567
|
+
*/
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Edits a function config
|
|
571
|
+
* Edits a function config
|
|
572
|
+
* @param {Number} functionconfigid
|
|
573
|
+
* @param {module:model/FunctionConfigInput} functionConfigInput
|
|
574
|
+
* @param {Object} opts Optional parameters
|
|
575
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
576
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
577
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
578
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
579
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
580
|
+
* @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)
|
|
581
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
582
|
+
* @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
|
|
583
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
584
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
585
|
+
* @param {module:api/FunctionsApi~editFunctionConfigCallback} callback The callback function, accepting three arguments: error, data, response
|
|
586
|
+
* data is of type: {@link module:model/GetFunctionConfig}
|
|
587
|
+
*/
|
|
588
|
+
}, {
|
|
589
|
+
key: "editFunctionConfig",
|
|
590
|
+
value: function editFunctionConfig(functionconfigid, functionConfigInput, opts, callback) {
|
|
591
|
+
opts = opts || {};
|
|
592
|
+
var postBody = functionConfigInput;
|
|
593
|
+
// verify the required parameter 'functionconfigid' is set
|
|
594
|
+
if (functionconfigid === undefined || functionconfigid === null) {
|
|
595
|
+
throw new Error("Missing the required parameter 'functionconfigid' when calling editFunctionConfig");
|
|
596
|
+
}
|
|
597
|
+
// verify the required parameter 'functionConfigInput' is set
|
|
598
|
+
if (functionConfigInput === undefined || functionConfigInput === null) {
|
|
599
|
+
throw new Error("Missing the required parameter 'functionConfigInput' when calling editFunctionConfig");
|
|
600
|
+
}
|
|
601
|
+
var pathParams = {
|
|
602
|
+
'functionconfigid': functionconfigid
|
|
603
|
+
};
|
|
604
|
+
var queryParams = {};
|
|
605
|
+
var headerParams = {
|
|
606
|
+
'Authorization': opts['authorization'],
|
|
607
|
+
'cacheduration': opts['cacheduration'],
|
|
608
|
+
'cachegroup': opts['cachegroup'],
|
|
609
|
+
'cachekey': opts['cachekey'],
|
|
610
|
+
'cachescope': opts['cachescope'],
|
|
611
|
+
'cacheuser': opts['cacheuser'],
|
|
612
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
613
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
614
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
615
|
+
'transactionid': opts['transactionid']
|
|
616
|
+
};
|
|
617
|
+
var formParams = {};
|
|
618
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
619
|
+
var contentTypes = [];
|
|
620
|
+
var accepts = ['application/json'];
|
|
621
|
+
var returnType = _GetFunctionConfig["default"];
|
|
622
|
+
return this.apiClient.callApi('/graph/data/functions/functionconfig/{functionconfigid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Callback function to receive the result of the getActionTypeMethods operation.
|
|
627
|
+
* @callback module:api/FunctionsApi~getActionTypeMethodsCallback
|
|
628
|
+
* @param {String} error Error message, if any.
|
|
629
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
630
|
+
* @param {String} response The complete HTTP response.
|
|
631
|
+
*/
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Retrieves the methods associated with the ActionType
|
|
635
|
+
* Retrieves the methods associated with the Action Type
|
|
636
|
+
* @param {Number} actiontypeid
|
|
637
|
+
* @param {Object} opts Optional parameters
|
|
638
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
639
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
640
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
641
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
642
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
643
|
+
* @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)
|
|
644
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
645
|
+
* @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
|
|
646
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
647
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
648
|
+
* @param {module:api/FunctionsApi~getActionTypeMethodsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
649
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
650
|
+
*/
|
|
651
|
+
}, {
|
|
652
|
+
key: "getActionTypeMethods",
|
|
653
|
+
value: function getActionTypeMethods(actiontypeid, opts, callback) {
|
|
654
|
+
opts = opts || {};
|
|
655
|
+
var postBody = null;
|
|
656
|
+
// verify the required parameter 'actiontypeid' is set
|
|
657
|
+
if (actiontypeid === undefined || actiontypeid === null) {
|
|
658
|
+
throw new Error("Missing the required parameter 'actiontypeid' when calling getActionTypeMethods");
|
|
659
|
+
}
|
|
660
|
+
var pathParams = {
|
|
661
|
+
'actiontypeid': actiontypeid
|
|
662
|
+
};
|
|
663
|
+
var queryParams = {};
|
|
664
|
+
var headerParams = {
|
|
665
|
+
'Authorization': opts['authorization'],
|
|
666
|
+
'cacheduration': opts['cacheduration'],
|
|
667
|
+
'cachegroup': opts['cachegroup'],
|
|
668
|
+
'cachekey': opts['cachekey'],
|
|
669
|
+
'cachescope': opts['cachescope'],
|
|
670
|
+
'cacheuser': opts['cacheuser'],
|
|
671
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
672
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
673
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
674
|
+
'transactionid': opts['transactionid']
|
|
675
|
+
};
|
|
676
|
+
var formParams = {};
|
|
677
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
678
|
+
var contentTypes = [];
|
|
679
|
+
var accepts = ['application/json'];
|
|
680
|
+
var returnType = _GetFunctionResponse["default"];
|
|
681
|
+
return this.apiClient.callApi('/graph/data/functions/actiontype/{actiontypeid}/methods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
682
|
+
}
|
|
683
|
+
|
|
424
684
|
/**
|
|
425
685
|
* Callback function to receive the result of the getFunction operation.
|
|
426
686
|
* @callback module:api/FunctionsApi~getFunctionCallback
|
|
@@ -479,6 +739,435 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
479
739
|
var returnType = _GetFunctionResponse["default"];
|
|
480
740
|
return this.apiClient.callApi('/graph/data/functions/{functionid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
481
741
|
}
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Callback function to receive the result of the getFunctionConfig operation.
|
|
745
|
+
* @callback module:api/FunctionsApi~getFunctionConfigCallback
|
|
746
|
+
* @param {String} error Error message, if any.
|
|
747
|
+
* @param {module:model/GetFunctionConfig} data The data returned by the service call.
|
|
748
|
+
* @param {String} response The complete HTTP response.
|
|
749
|
+
*/
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* Returns the function for the given environment
|
|
753
|
+
* Returns the function for the given environment
|
|
754
|
+
* @param {Number} functionid
|
|
755
|
+
* @param {module:model/String} environment
|
|
756
|
+
* @param {Object} opts Optional parameters
|
|
757
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
758
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
759
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
760
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
761
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
762
|
+
* @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)
|
|
763
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
764
|
+
* @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
|
|
765
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
766
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
767
|
+
* @param {String} [key]
|
|
768
|
+
* @param {module:api/FunctionsApi~getFunctionConfigCallback} callback The callback function, accepting three arguments: error, data, response
|
|
769
|
+
* data is of type: {@link module:model/GetFunctionConfig}
|
|
770
|
+
*/
|
|
771
|
+
}, {
|
|
772
|
+
key: "getFunctionConfig",
|
|
773
|
+
value: function getFunctionConfig(functionid, environment, opts, callback) {
|
|
774
|
+
opts = opts || {};
|
|
775
|
+
var postBody = null;
|
|
776
|
+
// verify the required parameter 'functionid' is set
|
|
777
|
+
if (functionid === undefined || functionid === null) {
|
|
778
|
+
throw new Error("Missing the required parameter 'functionid' when calling getFunctionConfig");
|
|
779
|
+
}
|
|
780
|
+
// verify the required parameter 'environment' is set
|
|
781
|
+
if (environment === undefined || environment === null) {
|
|
782
|
+
throw new Error("Missing the required parameter 'environment' when calling getFunctionConfig");
|
|
783
|
+
}
|
|
784
|
+
var pathParams = {
|
|
785
|
+
'functionid': functionid,
|
|
786
|
+
'environment': environment
|
|
787
|
+
};
|
|
788
|
+
var queryParams = {
|
|
789
|
+
'key': opts['key']
|
|
790
|
+
};
|
|
791
|
+
var headerParams = {
|
|
792
|
+
'Authorization': opts['authorization'],
|
|
793
|
+
'cacheduration': opts['cacheduration'],
|
|
794
|
+
'cachegroup': opts['cachegroup'],
|
|
795
|
+
'cachekey': opts['cachekey'],
|
|
796
|
+
'cachescope': opts['cachescope'],
|
|
797
|
+
'cacheuser': opts['cacheuser'],
|
|
798
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
799
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
800
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
801
|
+
'transactionid': opts['transactionid']
|
|
802
|
+
};
|
|
803
|
+
var formParams = {};
|
|
804
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
805
|
+
var contentTypes = [];
|
|
806
|
+
var accepts = ['application/json'];
|
|
807
|
+
var returnType = _GetFunctionConfig["default"];
|
|
808
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}/config/{environment}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Callback function to receive the result of the getFunctionSubscriptions operation.
|
|
813
|
+
* @callback module:api/FunctionsApi~getFunctionSubscriptionsCallback
|
|
814
|
+
* @param {String} error Error message, if any.
|
|
815
|
+
* @param {Array.<module:model/TopicSubscriptionResponse>} data The data returned by the service call.
|
|
816
|
+
* @param {String} response The complete HTTP response.
|
|
817
|
+
*/
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Gets the subscriptions of the function
|
|
821
|
+
* Get the subscriptions of the function
|
|
822
|
+
* @param {Number} functionid
|
|
823
|
+
* @param {Object} opts Optional parameters
|
|
824
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
825
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
826
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
827
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
828
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
829
|
+
* @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)
|
|
830
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
831
|
+
* @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
|
|
832
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
833
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
834
|
+
* @param {module:api/FunctionsApi~getFunctionSubscriptionsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
835
|
+
* data is of type: {@link Array.<module:model/TopicSubscriptionResponse>}
|
|
836
|
+
*/
|
|
837
|
+
}, {
|
|
838
|
+
key: "getFunctionSubscriptions",
|
|
839
|
+
value: function getFunctionSubscriptions(functionid, opts, callback) {
|
|
840
|
+
opts = opts || {};
|
|
841
|
+
var postBody = null;
|
|
842
|
+
// verify the required parameter 'functionid' is set
|
|
843
|
+
if (functionid === undefined || functionid === null) {
|
|
844
|
+
throw new Error("Missing the required parameter 'functionid' when calling getFunctionSubscriptions");
|
|
845
|
+
}
|
|
846
|
+
var pathParams = {
|
|
847
|
+
'functionid': functionid
|
|
848
|
+
};
|
|
849
|
+
var queryParams = {};
|
|
850
|
+
var headerParams = {
|
|
851
|
+
'Authorization': opts['authorization'],
|
|
852
|
+
'cacheduration': opts['cacheduration'],
|
|
853
|
+
'cachegroup': opts['cachegroup'],
|
|
854
|
+
'cachekey': opts['cachekey'],
|
|
855
|
+
'cachescope': opts['cachescope'],
|
|
856
|
+
'cacheuser': opts['cacheuser'],
|
|
857
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
858
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
859
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
860
|
+
'transactionid': opts['transactionid']
|
|
861
|
+
};
|
|
862
|
+
var formParams = {};
|
|
863
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
864
|
+
var contentTypes = [];
|
|
865
|
+
var accepts = ['application/json'];
|
|
866
|
+
var returnType = [_TopicSubscriptionResponse["default"]];
|
|
867
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}/subscriptions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Callback function to receive the result of the getObjectTypeMethods operation.
|
|
872
|
+
* @callback module:api/FunctionsApi~getObjectTypeMethodsCallback
|
|
873
|
+
* @param {String} error Error message, if any.
|
|
874
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
875
|
+
* @param {String} response The complete HTTP response.
|
|
876
|
+
*/
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Retrieves the methods associated with the Object Type
|
|
880
|
+
* Retrieves the methods associated with the Object Type
|
|
881
|
+
* @param {Number} objecttypeid
|
|
882
|
+
* @param {Object} opts Optional parameters
|
|
883
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
884
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
885
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
886
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
887
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
888
|
+
* @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)
|
|
889
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
890
|
+
* @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
|
|
891
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
892
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
893
|
+
* @param {module:api/FunctionsApi~getObjectTypeMethodsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
894
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
895
|
+
*/
|
|
896
|
+
}, {
|
|
897
|
+
key: "getObjectTypeMethods",
|
|
898
|
+
value: function getObjectTypeMethods(objecttypeid, opts, callback) {
|
|
899
|
+
opts = opts || {};
|
|
900
|
+
var postBody = null;
|
|
901
|
+
// verify the required parameter 'objecttypeid' is set
|
|
902
|
+
if (objecttypeid === undefined || objecttypeid === null) {
|
|
903
|
+
throw new Error("Missing the required parameter 'objecttypeid' when calling getObjectTypeMethods");
|
|
904
|
+
}
|
|
905
|
+
var pathParams = {
|
|
906
|
+
'objecttypeid': objecttypeid
|
|
907
|
+
};
|
|
908
|
+
var queryParams = {};
|
|
909
|
+
var headerParams = {
|
|
910
|
+
'Authorization': opts['authorization'],
|
|
911
|
+
'cacheduration': opts['cacheduration'],
|
|
912
|
+
'cachegroup': opts['cachegroup'],
|
|
913
|
+
'cachekey': opts['cachekey'],
|
|
914
|
+
'cachescope': opts['cachescope'],
|
|
915
|
+
'cacheuser': opts['cacheuser'],
|
|
916
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
917
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
918
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
919
|
+
'transactionid': opts['transactionid']
|
|
920
|
+
};
|
|
921
|
+
var formParams = {};
|
|
922
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
923
|
+
var contentTypes = [];
|
|
924
|
+
var accepts = ['application/json'];
|
|
925
|
+
var returnType = _GetFunctionResponse["default"];
|
|
926
|
+
return this.apiClient.callApi('/graph/data/functions/objecttype/{objecttypeid}/methods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Callback function to receive the result of the getRelationshipTypeMethods operation.
|
|
931
|
+
* @callback module:api/FunctionsApi~getRelationshipTypeMethodsCallback
|
|
932
|
+
* @param {String} error Error message, if any.
|
|
933
|
+
* @param {module:model/GetFunctionResponse} data The data returned by the service call.
|
|
934
|
+
* @param {String} response The complete HTTP response.
|
|
935
|
+
*/
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* Retrieves the methods associated with the Object Type
|
|
939
|
+
* Retrieves the methods associated with the Object Type
|
|
940
|
+
* @param {Number} reltypeid
|
|
941
|
+
* @param {Object} opts Optional parameters
|
|
942
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
943
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
944
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
945
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
946
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
947
|
+
* @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)
|
|
948
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
949
|
+
* @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
|
|
950
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
951
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
952
|
+
* @param {module:api/FunctionsApi~getRelationshipTypeMethodsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
953
|
+
* data is of type: {@link module:model/GetFunctionResponse}
|
|
954
|
+
*/
|
|
955
|
+
}, {
|
|
956
|
+
key: "getRelationshipTypeMethods",
|
|
957
|
+
value: function getRelationshipTypeMethods(reltypeid, opts, callback) {
|
|
958
|
+
opts = opts || {};
|
|
959
|
+
var postBody = null;
|
|
960
|
+
// verify the required parameter 'reltypeid' is set
|
|
961
|
+
if (reltypeid === undefined || reltypeid === null) {
|
|
962
|
+
throw new Error("Missing the required parameter 'reltypeid' when calling getRelationshipTypeMethods");
|
|
963
|
+
}
|
|
964
|
+
var pathParams = {
|
|
965
|
+
'reltypeid': reltypeid
|
|
966
|
+
};
|
|
967
|
+
var queryParams = {};
|
|
968
|
+
var headerParams = {
|
|
969
|
+
'Authorization': opts['authorization'],
|
|
970
|
+
'cacheduration': opts['cacheduration'],
|
|
971
|
+
'cachegroup': opts['cachegroup'],
|
|
972
|
+
'cachekey': opts['cachekey'],
|
|
973
|
+
'cachescope': opts['cachescope'],
|
|
974
|
+
'cacheuser': opts['cacheuser'],
|
|
975
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
976
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
977
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
978
|
+
'transactionid': opts['transactionid']
|
|
979
|
+
};
|
|
980
|
+
var formParams = {};
|
|
981
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
982
|
+
var contentTypes = [];
|
|
983
|
+
var accepts = ['application/json'];
|
|
984
|
+
var returnType = _GetFunctionResponse["default"];
|
|
985
|
+
return this.apiClient.callApi('/graph/data/functions/relationshiptype/{reltypeid}/methods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Callback function to receive the result of the invokeFunctionGet operation.
|
|
990
|
+
* @callback module:api/FunctionsApi~invokeFunctionGetCallback
|
|
991
|
+
* @param {String} error Error message, if any.
|
|
992
|
+
* @param {module:model/FunctionOutput} data The data returned by the service call.
|
|
993
|
+
* @param {String} response The complete HTTP response.
|
|
994
|
+
*/
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Calls a function
|
|
998
|
+
* Calls a function
|
|
999
|
+
* @param {Number} functionid
|
|
1000
|
+
* @param {Object} opts Optional parameters
|
|
1001
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
1002
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
1003
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
1004
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
1005
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
1006
|
+
* @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)
|
|
1007
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
1008
|
+
* @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
|
|
1009
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
1010
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
1011
|
+
* @param {String} [any] Any query parameter can be provided
|
|
1012
|
+
* @param {module:api/FunctionsApi~invokeFunctionGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1013
|
+
* data is of type: {@link module:model/FunctionOutput}
|
|
1014
|
+
*/
|
|
1015
|
+
}, {
|
|
1016
|
+
key: "invokeFunctionGet",
|
|
1017
|
+
value: function invokeFunctionGet(functionid, opts, callback) {
|
|
1018
|
+
opts = opts || {};
|
|
1019
|
+
var postBody = null;
|
|
1020
|
+
// verify the required parameter 'functionid' is set
|
|
1021
|
+
if (functionid === undefined || functionid === null) {
|
|
1022
|
+
throw new Error("Missing the required parameter 'functionid' when calling invokeFunctionGet");
|
|
1023
|
+
}
|
|
1024
|
+
var pathParams = {
|
|
1025
|
+
'functionid': functionid
|
|
1026
|
+
};
|
|
1027
|
+
var queryParams = {
|
|
1028
|
+
'any': opts['any']
|
|
1029
|
+
};
|
|
1030
|
+
var headerParams = {
|
|
1031
|
+
'Authorization': opts['authorization'],
|
|
1032
|
+
'cacheduration': opts['cacheduration'],
|
|
1033
|
+
'cachegroup': opts['cachegroup'],
|
|
1034
|
+
'cachekey': opts['cachekey'],
|
|
1035
|
+
'cachescope': opts['cachescope'],
|
|
1036
|
+
'cacheuser': opts['cacheuser'],
|
|
1037
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
1038
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
1039
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
1040
|
+
'transactionid': opts['transactionid']
|
|
1041
|
+
};
|
|
1042
|
+
var formParams = {};
|
|
1043
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
1044
|
+
var contentTypes = [];
|
|
1045
|
+
var accepts = ['application/json'];
|
|
1046
|
+
var returnType = _FunctionOutput["default"];
|
|
1047
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}/invoke', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Callback function to receive the result of the invokeFunctionPut operation.
|
|
1052
|
+
* @callback module:api/FunctionsApi~invokeFunctionPutCallback
|
|
1053
|
+
* @param {String} error Error message, if any.
|
|
1054
|
+
* @param {module:model/FunctionOutput} data The data returned by the service call.
|
|
1055
|
+
* @param {String} response The complete HTTP response.
|
|
1056
|
+
*/
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* Calls a function
|
|
1060
|
+
* Calls a function
|
|
1061
|
+
* @param {Number} functionid
|
|
1062
|
+
* @param {module:model/FunctionInput} functionInput
|
|
1063
|
+
* @param {Object} opts Optional parameters
|
|
1064
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
1065
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
1066
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
1067
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
1068
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
1069
|
+
* @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)
|
|
1070
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
1071
|
+
* @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
|
|
1072
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
1073
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
1074
|
+
* @param {module:api/FunctionsApi~invokeFunctionPutCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1075
|
+
* data is of type: {@link module:model/FunctionOutput}
|
|
1076
|
+
*/
|
|
1077
|
+
}, {
|
|
1078
|
+
key: "invokeFunctionPut",
|
|
1079
|
+
value: function invokeFunctionPut(functionid, functionInput, opts, callback) {
|
|
1080
|
+
opts = opts || {};
|
|
1081
|
+
var postBody = functionInput;
|
|
1082
|
+
// verify the required parameter 'functionid' is set
|
|
1083
|
+
if (functionid === undefined || functionid === null) {
|
|
1084
|
+
throw new Error("Missing the required parameter 'functionid' when calling invokeFunctionPut");
|
|
1085
|
+
}
|
|
1086
|
+
// verify the required parameter 'functionInput' is set
|
|
1087
|
+
if (functionInput === undefined || functionInput === null) {
|
|
1088
|
+
throw new Error("Missing the required parameter 'functionInput' when calling invokeFunctionPut");
|
|
1089
|
+
}
|
|
1090
|
+
var pathParams = {
|
|
1091
|
+
'functionid': functionid
|
|
1092
|
+
};
|
|
1093
|
+
var queryParams = {};
|
|
1094
|
+
var headerParams = {
|
|
1095
|
+
'Authorization': opts['authorization'],
|
|
1096
|
+
'cacheduration': opts['cacheduration'],
|
|
1097
|
+
'cachegroup': opts['cachegroup'],
|
|
1098
|
+
'cachekey': opts['cachekey'],
|
|
1099
|
+
'cachescope': opts['cachescope'],
|
|
1100
|
+
'cacheuser': opts['cacheuser'],
|
|
1101
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
1102
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
1103
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
1104
|
+
'transactionid': opts['transactionid']
|
|
1105
|
+
};
|
|
1106
|
+
var formParams = {};
|
|
1107
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
1108
|
+
var contentTypes = [];
|
|
1109
|
+
var accepts = ['application/json'];
|
|
1110
|
+
var returnType = _FunctionOutput["default"];
|
|
1111
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}/invoke', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* Callback function to receive the result of the subscribeToTopic operation.
|
|
1116
|
+
* @callback module:api/FunctionsApi~subscribeToTopicCallback
|
|
1117
|
+
* @param {String} error Error message, if any.
|
|
1118
|
+
* @param {Array.<module:model/TopicSubscriptionResponse>} data The data returned by the service call.
|
|
1119
|
+
* @param {String} response The complete HTTP response.
|
|
1120
|
+
*/
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* Subscribes to a topic
|
|
1124
|
+
* Subscribes to a topic
|
|
1125
|
+
* @param {Number} functionid
|
|
1126
|
+
* @param {Object} opts Optional parameters
|
|
1127
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
1128
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
1129
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
1130
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
1131
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
1132
|
+
* @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)
|
|
1133
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
1134
|
+
* @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
|
|
1135
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
1136
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
1137
|
+
* @param {module:api/FunctionsApi~subscribeToTopicCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1138
|
+
* data is of type: {@link Array.<module:model/TopicSubscriptionResponse>}
|
|
1139
|
+
*/
|
|
1140
|
+
}, {
|
|
1141
|
+
key: "subscribeToTopic",
|
|
1142
|
+
value: function subscribeToTopic(functionid, opts, callback) {
|
|
1143
|
+
opts = opts || {};
|
|
1144
|
+
var postBody = null;
|
|
1145
|
+
// verify the required parameter 'functionid' is set
|
|
1146
|
+
if (functionid === undefined || functionid === null) {
|
|
1147
|
+
throw new Error("Missing the required parameter 'functionid' when calling subscribeToTopic");
|
|
1148
|
+
}
|
|
1149
|
+
var pathParams = {
|
|
1150
|
+
'functionid': functionid
|
|
1151
|
+
};
|
|
1152
|
+
var queryParams = {};
|
|
1153
|
+
var headerParams = {
|
|
1154
|
+
'Authorization': opts['authorization'],
|
|
1155
|
+
'cacheduration': opts['cacheduration'],
|
|
1156
|
+
'cachegroup': opts['cachegroup'],
|
|
1157
|
+
'cachekey': opts['cachekey'],
|
|
1158
|
+
'cachescope': opts['cachescope'],
|
|
1159
|
+
'cacheuser': opts['cacheuser'],
|
|
1160
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
1161
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
1162
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
1163
|
+
'transactionid': opts['transactionid']
|
|
1164
|
+
};
|
|
1165
|
+
var formParams = {};
|
|
1166
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
1167
|
+
var contentTypes = [];
|
|
1168
|
+
var accepts = ['application/json'];
|
|
1169
|
+
var returnType = [_TopicSubscriptionResponse["default"]];
|
|
1170
|
+
return this.apiClient.callApi('/graph/data/functions/{functionid}/subscriptions', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1171
|
+
}
|
|
482
1172
|
}]);
|
|
483
|
-
return FunctionsApi;
|
|
484
1173
|
}();
|