@gobodo/gobodo-api 0.1.56 → 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.
Files changed (207) hide show
  1. package/README.md +36 -12
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/ActionTypesApi.js +2 -2
  4. package/dist/api/AdCampaignsApi.js +2 -2
  5. package/dist/api/AdManagementApi.js +2 -2
  6. package/dist/api/AdminDataManagementApi.js +2 -2
  7. package/dist/api/AdsApi.js +2 -2
  8. package/dist/api/AttachmentsApi.js +2 -2
  9. package/dist/api/AuthenticationApi.js +2 -2
  10. package/dist/api/CategoriesApi.js +2 -2
  11. package/dist/api/CommentsApi.js +2 -2
  12. package/dist/api/ContentManagementApi.js +2 -2
  13. package/dist/api/ConversationsApi.js +2 -2
  14. package/dist/api/DataSheetImportsApi.js +2 -2
  15. package/dist/api/DefaultApi.js +8 -348
  16. package/dist/api/DocumentsApi.js +2 -2
  17. package/dist/api/EmailsApi.js +2 -2
  18. package/dist/api/EntryPartsApi.js +2 -2
  19. package/dist/api/FacebookApi.js +2 -2
  20. package/dist/api/FieldsApi.js +2 -2
  21. package/dist/api/FilesApi.js +2 -2
  22. package/dist/api/FormsApi.js +2 -2
  23. package/dist/api/FunctionsApi.js +576 -14
  24. package/dist/api/GeocodeApi.js +2 -2
  25. package/dist/api/GoogleApi.js +2 -2
  26. package/dist/api/GraphActionTypesApi.js +511 -0
  27. package/dist/api/GraphActionsApi.js +2 -2
  28. package/dist/api/GraphObjectTypesApi.js +134 -9
  29. package/dist/api/GraphObjectsApi.js +2 -2
  30. package/dist/api/GraphRelationshipTypesApi.js +127 -2
  31. package/dist/api/GraphRelationshipsApi.js +2 -2
  32. package/dist/api/GraphSchemasApi.js +2 -2
  33. package/dist/api/GraphTraversalApi.js +2 -2
  34. package/dist/api/GraphsApi.js +2 -2
  35. package/dist/api/GroupsApi.js +2 -2
  36. package/dist/api/IAMApi.js +2 -2
  37. package/dist/api/ImagesApi.js +2 -2
  38. package/dist/api/InvitesApi.js +2 -2
  39. package/dist/api/LikesApi.js +2 -2
  40. package/dist/api/LinkedINApi.js +2 -2
  41. package/dist/api/LiveMeetingsApi.js +2 -2
  42. package/dist/api/MeetingEventsApi.js +2 -2
  43. package/dist/api/NotificationsApi.js +21 -21
  44. package/dist/api/PagesApi.js +2 -2
  45. package/dist/api/PhoneNumbersApi.js +2 -2
  46. package/dist/api/PostsApi.js +2 -2
  47. package/dist/api/PrivateMessagesApi.js +2 -2
  48. package/dist/api/PublicationsApi.js +2 -2
  49. package/dist/api/ScreensApi.js +2 -2
  50. package/dist/api/SocialIntegrationApi.js +2 -2
  51. package/dist/api/StripeAccountsApi.js +2 -2
  52. package/dist/api/TagsApi.js +2 -2
  53. package/dist/api/TemplatesApi.js +2 -2
  54. package/dist/api/ThemeMappingsApi.js +2 -2
  55. package/dist/api/TopicsApi.js +303 -9
  56. package/dist/api/TransactionsApi.js +2 -2
  57. package/dist/api/TwitterApi.js +2 -2
  58. package/dist/api/UserTagsApi.js +2 -2
  59. package/dist/api/UsersApi.js +2 -2
  60. package/dist/api/UtilsApi.js +2 -2
  61. package/dist/api/VideosApi.js +2 -2
  62. package/dist/index.js +40 -5
  63. package/dist/model/APIClient.js +2 -2
  64. package/dist/model/AccountSessionInput.js +2 -2
  65. package/dist/model/AccountSessionResponse.js +2 -2
  66. package/dist/model/ApplicationPaymentAccountResponse.js +2 -2
  67. package/dist/model/ApplicationPaymentAccountResponseFailureException.js +2 -2
  68. package/dist/model/ApplicationPaymentAccountResponseFailureExceptionStackTraceInner.js +2 -2
  69. package/dist/model/Article.js +2 -2
  70. package/dist/model/AuthResponse.js +2 -2
  71. package/dist/model/Balance.js +30 -30
  72. package/dist/model/BalanceDetails.js +2 -2
  73. package/dist/model/BalanceResponse.js +2 -2
  74. package/dist/model/BankAccountInfo.js +2 -2
  75. package/dist/model/CardInfo.js +2 -2
  76. package/dist/model/Comment.js +9 -9
  77. package/dist/model/Coordinates.js +2 -2
  78. package/dist/model/CreateAccountResponse.js +2 -2
  79. package/dist/model/CreateFunctionInput.js +2 -2
  80. package/dist/model/CreateStripeAccountInput.js +2 -2
  81. package/dist/model/CreateStripeCustomerInput.js +2 -2
  82. package/dist/model/CreateTopicInput.js +2 -2
  83. package/dist/model/CreateTopicListenerInput.js +2 -2
  84. package/dist/model/CustomerResponse.js +2 -2
  85. package/dist/model/DataObject.js +2 -2
  86. package/dist/model/DataSheetImport.js +2 -2
  87. package/dist/model/DataSheetImportPrivacySettings.js +2 -2
  88. package/dist/model/DataSheetImportSummary.js +2 -2
  89. package/dist/model/DeviceRegistrationRequest.js +2 -2
  90. package/dist/model/Document.js +2 -2
  91. package/dist/model/DocumentPart.js +2 -2
  92. package/dist/model/DocumentPartType.js +2 -2
  93. package/dist/model/DocumentType.js +10 -10
  94. package/dist/model/EmailAddress.js +2 -2
  95. package/dist/model/FieldMapping.js +2 -2
  96. package/dist/model/Fields.js +16 -16
  97. package/dist/model/File.js +2 -2
  98. package/dist/model/FileAttachmentUploadObject.js +2 -2
  99. package/dist/model/Filter.js +2 -2
  100. package/dist/model/FilterManager.js +2 -2
  101. package/dist/model/Form.js +2 -2
  102. package/dist/model/FormSection.js +2 -2
  103. package/dist/model/FormSubmission.js +2 -2
  104. package/dist/model/FunctionConfigInput.js +19 -2
  105. package/dist/model/FunctionEnvironmentConfig.js +2 -2
  106. package/dist/model/Geocode.js +2 -2
  107. package/dist/model/GeocodePayload.js +2 -2
  108. package/dist/model/GeolocationInput.js +2 -2
  109. package/dist/model/GetFunctionConfig.js +365 -0
  110. package/dist/model/GetFunctionEnvironmentConfig.js +171 -0
  111. package/dist/model/GetFunctionResponse.js +19 -15
  112. package/dist/model/Graph.js +9 -9
  113. package/dist/model/GraphAction.js +11 -11
  114. package/dist/model/GraphDatabaseService.js +2 -2
  115. package/dist/model/GraphGeocode.js +2 -2
  116. package/dist/model/GraphIteratorEntryPart.js +2 -2
  117. package/dist/model/GraphObject.js +2 -2
  118. package/dist/model/GraphObjectPayload.js +2 -2
  119. package/dist/model/GraphObjectSchema.js +11 -11
  120. package/dist/model/GraphObjectType.js +2 -2
  121. package/dist/model/GraphObjectTypeSchema.js +2 -2
  122. package/dist/model/GraphOwner.js +2 -2
  123. package/dist/model/GraphRelationship.js +11 -11
  124. package/dist/model/GraphRelationshipPayload.js +2 -2
  125. package/dist/model/GraphRelationshipType.js +2 -2
  126. package/dist/model/GraphSchema.js +25 -25
  127. package/dist/model/GraphTraversalInput.js +2 -2
  128. package/dist/model/Image.js +2 -2
  129. package/dist/model/ImageUploadObject.js +2 -2
  130. package/dist/model/InputPart.js +2 -2
  131. package/dist/model/InputPartMediaType.js +2 -2
  132. package/dist/model/Link.js +13 -13
  133. package/dist/model/LiveStreamInfo.js +2 -2
  134. package/dist/model/MeetingEvent.js +10 -10
  135. package/dist/model/MeetingEventTimezone.js +2 -2
  136. package/dist/model/MeetingInfo.js +2 -2
  137. package/dist/model/Member.js +2 -2
  138. package/dist/model/MemberGroupCategory.js +2 -2
  139. package/dist/model/MemberList.js +2 -2
  140. package/dist/model/MessageGroup.js +2 -2
  141. package/dist/model/MultipartBody.js +2 -2
  142. package/dist/model/Notification.js +10 -10
  143. package/dist/model/NotificationInput.js +2 -2
  144. package/dist/model/NotificationResponse.js +185 -0
  145. package/dist/model/Objecttype.js +2 -2
  146. package/dist/model/Page.js +2 -2
  147. package/dist/model/PageSchema.js +2 -2
  148. package/dist/model/Pageable.js +2 -2
  149. package/dist/model/Path.js +2 -2
  150. package/dist/model/PaymentAccountObject.js +2 -2
  151. package/dist/model/PaymentIntentInput.js +2 -2
  152. package/dist/model/PaymentIntentResponse.js +2 -2
  153. package/dist/model/PaymentMethod.js +2 -2
  154. package/dist/model/PaymentMethodInput.js +2 -2
  155. package/dist/model/PaymentMethodResponse.js +2 -2
  156. package/dist/model/PaymentMethodsResponse.js +2 -2
  157. package/dist/model/Payout.js +2 -2
  158. package/dist/model/PayoutInput.js +2 -2
  159. package/dist/model/PayoutResponse.js +2 -2
  160. package/dist/model/PhoneNumber.js +2 -2
  161. package/dist/model/Post.js +2 -2
  162. package/dist/model/PrivateMessage.js +2 -2
  163. package/dist/model/PrivateMessageConversation.js +2 -2
  164. package/dist/model/PrivateMessageConversationSchema.js +2 -2
  165. package/dist/model/Profile.js +2 -2
  166. package/dist/model/Profiletype.js +2 -2
  167. package/dist/model/PropertyContainer.js +2 -2
  168. package/dist/model/PurgeDataDefaultResponseValue.js +2 -2
  169. package/dist/model/RelationshipMapping.js +2 -2
  170. package/dist/model/ScreenSchema.js +2 -2
  171. package/dist/model/SimulcastInfo.js +2 -2
  172. package/dist/model/SkinField.js +16 -16
  173. package/dist/model/SocialGroup.js +2 -2
  174. package/dist/model/SocialGroupType.js +2 -2
  175. package/dist/model/Sort.js +2 -2
  176. package/dist/model/SourceTypes.js +2 -2
  177. package/dist/model/StatusUpdate.js +2 -2
  178. package/dist/model/StreetAddress.js +2 -2
  179. package/dist/model/StripeAccount.js +2 -2
  180. package/dist/model/StripeCustomerAccount.js +2 -2
  181. package/dist/model/Template.js +2 -2
  182. package/dist/model/TemplateSchema.js +2 -2
  183. package/dist/model/ThemeMapping.js +2 -2
  184. package/dist/model/ThemeMappingPayload.js +2 -2
  185. package/dist/model/TopicInfoResponse.js +86 -5
  186. package/dist/model/TopicMessageInput.js +123 -0
  187. package/dist/model/TopicSubscriptionResponse.js +151 -0
  188. package/dist/model/Transaction.js +2 -2
  189. package/dist/model/Transfer.js +2 -2
  190. package/dist/model/TransferInput.js +2 -2
  191. package/dist/model/TransferResponse.js +2 -2
  192. package/dist/model/TransferResponsePaymentMethodDetails.js +2 -2
  193. package/dist/model/TraversalRelationResponse.js +2 -2
  194. package/dist/model/User.js +2 -2
  195. package/dist/model/UserDataPayload.js +2 -2
  196. package/dist/model/UserDomain.js +2 -2
  197. package/dist/model/UserInvite.js +2 -2
  198. package/dist/model/UserInviteInput.js +2 -2
  199. package/dist/model/UserSchema.js +2 -2
  200. package/dist/model/UserTag.js +2 -2
  201. package/dist/model/Userid.js +2 -2
  202. package/dist/model/Video.js +10 -10
  203. package/dist/model/VideoLiveUrl.js +2 -2
  204. package/dist/model/VideoSchema.js +10 -10
  205. package/dist/model/VideoUploadObject.js +10 -10
  206. package/dist/model/ZeusPortalCategory.js +2 -2
  207. package/package.json +1 -1
@@ -6,8 +6,11 @@ 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 _GetFunctionConfig = _interopRequireDefault(require("../model/GetFunctionConfig"));
9
11
  var _GetFunctionResponse = _interopRequireDefault(require("../model/GetFunctionResponse"));
10
12
  var _PurgeDataDefaultResponseValue = _interopRequireDefault(require("../model/PurgeDataDefaultResponseValue"));
13
+ var _TopicSubscriptionResponse = _interopRequireDefault(require("../model/TopicSubscriptionResponse"));
11
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
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); }
13
16
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -18,7 +21,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
21
  * gobodo-api
19
22
  * REST Interface for Gobodo API
20
23
  *
21
- * The version of the OpenAPI document: 0.1.56
24
+ * The version of the OpenAPI document: 0.1.58
22
25
  * Contact: info@gobodo.io
23
26
  *
24
27
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -29,7 +32,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
29
32
  /**
30
33
  * Functions service.
31
34
  * @module api/FunctionsApi
32
- * @version 0.1.56
35
+ * @version 0.1.58
33
36
  */
34
37
  var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
35
38
  /**
@@ -45,18 +48,19 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
45
48
  }
46
49
 
47
50
  /**
48
- * Callback function to receive the result of the addMethodToActionType operation.
49
- * @callback module:api/FunctionsApi~addMethodToActionTypeCallback
51
+ * Callback function to receive the result of the addFunctionConfig operation.
52
+ * @callback module:api/FunctionsApi~addFunctionConfigCallback
50
53
  * @param {String} error Error message, if any.
51
- * @param {module:model/GetFunctionResponse} data The data returned by the service call.
54
+ * @param {module:model/GetFunctionConfig} data The data returned by the service call.
52
55
  * @param {String} response The complete HTTP response.
53
56
  */
54
57
 
55
58
  /**
56
- * Adds a method to an action type
57
- * Adds a method to an action type
58
- * @param {Number} actiontypeid
59
- * @param {module:model/CreateFunctionInput} createFunctionInput
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
60
64
  * @param {Object} opts Optional parameters
61
65
  * @param {String} [authorization] The authorization token of the logged in user
62
66
  * @param {Number} [cacheduration] The how long the cache entry should persist
@@ -68,10 +72,82 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
68
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
69
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
70
74
  * @param {String} [transactionid] The id of the transaction this operation is being run in
71
- * @param {module:api/FunctionsApi~addMethodToActionTypeCallback} callback The callback function, accepting three arguments: error, data, response
72
- * data is of type: {@link module:model/GetFunctionResponse}
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}
73
78
  */
74
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
+ }, {
75
151
  key: "addMethodToActionType",
76
152
  value: function addMethodToActionType(actiontypeid, createFunctionInput, opts, callback) {
77
153
  opts = opts || {};
@@ -105,7 +181,7 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
105
181
  var contentTypes = [];
106
182
  var accepts = ['application/json'];
107
183
  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);
184
+ return this.apiClient.callApi('/graph/data/functions/actiontype/{actiontypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
109
185
  }
110
186
 
111
187
  /**
@@ -169,7 +245,7 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
169
245
  var contentTypes = [];
170
246
  var accepts = ['application/json'];
171
247
  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);
248
+ return this.apiClient.callApi('/graph/data/functions/objecttype/{objecttypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
173
249
  }
174
250
 
175
251
  /**
@@ -233,7 +309,7 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
233
309
  var contentTypes = [];
234
310
  var accepts = ['application/json'];
235
311
  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);
312
+ return this.apiClient.callApi('/graph/data/functions/relationshiptype/{reltypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
237
313
  }
238
314
 
239
315
  /**
@@ -293,6 +369,65 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
293
369
  return this.apiClient.callApi('/graph/data/functions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
294
370
  }
295
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
+
296
431
  /**
297
432
  * Callback function to receive the result of the doPostFunction operation.
298
433
  * @callback module:api/FunctionsApi~doPostFunctionCallback
@@ -421,6 +556,129 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
421
556
  return this.apiClient.callApi('/graph/data/functions/{functionid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
422
557
  }
423
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
+
424
682
  /**
425
683
  * Callback function to receive the result of the getFunction operation.
426
684
  * @callback module:api/FunctionsApi~getFunctionCallback
@@ -479,6 +737,310 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
479
737
  var returnType = _GetFunctionResponse["default"];
480
738
  return this.apiClient.callApi('/graph/data/functions/{functionid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
481
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
+ }
482
1044
  }]);
483
1045
  return FunctionsApi;
484
1046
  }();