@gobodo/gobodo-api-promise 0.1.52 → 0.1.61

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 (223) hide show
  1. package/README.md +137 -54
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/ActionTypesApi.js +2 -2
  4. package/dist/api/AdCampaignsApi.js +13 -13
  5. package/dist/api/AdManagementApi.js +24 -24
  6. package/dist/api/AdminDataManagementApi.js +2 -2
  7. package/dist/api/AdsApi.js +13 -13
  8. package/dist/api/AttachmentsApi.js +7 -7
  9. package/dist/api/AuthenticationApi.js +44 -2
  10. package/dist/api/CategoriesApi.js +7 -7
  11. package/dist/api/CommentsApi.js +7 -7
  12. package/dist/api/ContentManagementApi.js +12 -12
  13. package/dist/api/ConversationsApi.js +7 -7
  14. package/dist/api/DataSheetImportsApi.js +7 -7
  15. package/dist/api/DefaultApi.js +15 -443
  16. package/dist/api/DocumentsApi.js +7 -7
  17. package/dist/api/EmailsApi.js +346 -0
  18. package/dist/api/EntryPartsApi.js +7 -7
  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 +17 -17
  23. package/dist/api/FunctionsApi.js +1373 -25
  24. package/dist/api/GeocodeApi.js +2 -2
  25. package/dist/api/GoogleApi.js +2 -2
  26. package/dist/api/GraphActionTypesApi.js +632 -0
  27. package/dist/api/GraphActionsApi.js +2 -2
  28. package/dist/api/GraphObjectTypesApi.js +250 -86
  29. package/dist/api/GraphObjectsApi.js +2 -2
  30. package/dist/api/GraphRelationshipTypesApi.js +172 -13
  31. package/dist/api/GraphRelationshipsApi.js +21 -20
  32. package/dist/api/GraphSchemasApi.js +13 -13
  33. package/dist/api/GraphTraversalApi.js +2 -2
  34. package/dist/api/GraphsApi.js +13 -13
  35. package/dist/api/GroupsApi.js +7 -7
  36. package/dist/api/IAMApi.js +13 -13
  37. package/dist/api/ImagesApi.js +7 -7
  38. package/dist/api/InvitesApi.js +2 -2
  39. package/dist/api/LikesApi.js +7 -7
  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 +1076 -0
  44. package/dist/api/PagesApi.js +7 -7
  45. package/dist/api/PhoneNumbersApi.js +403 -0
  46. package/dist/api/PostsApi.js +7 -7
  47. package/dist/api/PrivateMessagesApi.js +18 -18
  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 +8 -8
  55. package/dist/api/TopicsApi.js +569 -0
  56. package/dist/api/TransactionsApi.js +2 -2
  57. package/dist/api/TwitterApi.js +2 -2
  58. package/dist/api/UserTagsApi.js +7 -7
  59. package/dist/api/UsersApi.js +7 -7
  60. package/dist/api/UtilsApi.js +2 -2
  61. package/dist/api/VideosApi.js +7 -7
  62. package/dist/index.js +245 -7
  63. package/dist/model/APIClient.js +23 -23
  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 -49
  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/AwsSettings.js +193 -0
  72. package/dist/model/Balance.js +33 -33
  73. package/dist/model/BalanceDetails.js +2 -2
  74. package/dist/model/BalanceResponse.js +2 -2
  75. package/dist/model/BankAccountInfo.js +2 -2
  76. package/dist/model/CardInfo.js +2 -2
  77. package/dist/model/Comment.js +31 -31
  78. package/dist/model/Coordinates.js +2 -2
  79. package/dist/model/CreateAccountResponse.js +2 -2
  80. package/dist/model/CreateFunctionInput.js +238 -0
  81. package/dist/model/CreateStripeAccountInput.js +2 -2
  82. package/dist/model/CreateStripeCustomerInput.js +2 -2
  83. package/dist/model/CreateTopicInput.js +191 -0
  84. package/dist/model/CreateTopicListenerInput.js +160 -0
  85. package/dist/model/CurrencySettings.js +108 -0
  86. package/dist/model/CustomerResponse.js +2 -2
  87. package/dist/model/DataObject.js +2 -2
  88. package/dist/model/DataSheetImport.js +27 -27
  89. package/dist/model/DataSheetImportPrivacySettings.js +2 -2
  90. package/dist/model/DataSheetImportSummary.js +2 -2
  91. package/dist/model/DeviceRegistrationRequest.js +252 -0
  92. package/dist/model/Document.js +2 -2
  93. package/dist/model/DocumentPart.js +52 -52
  94. package/dist/model/DocumentPartType.js +23 -23
  95. package/dist/model/DocumentType.js +63 -63
  96. package/dist/model/EmailAddress.js +245 -0
  97. package/dist/model/FieldMapping.js +2 -2
  98. package/dist/model/Fields.js +71 -71
  99. package/dist/model/File.js +23 -23
  100. package/dist/model/FileAttachmentUploadObject.js +23 -23
  101. package/dist/model/Filter.js +2 -2
  102. package/dist/model/FilterManager.js +2 -2
  103. package/dist/model/Form.js +37 -37
  104. package/dist/model/FormSection.js +37 -37
  105. package/dist/model/FormSubmission.js +30 -30
  106. package/dist/model/FunctionConfigInput.js +563 -0
  107. package/dist/model/FunctionEnvironmentConfig.js +221 -0
  108. package/dist/model/FunctionInput.js +260 -0
  109. package/dist/model/FunctionOutput.js +235 -0
  110. package/dist/model/Geocode.js +2 -2
  111. package/dist/model/GeocodePayload.js +2 -2
  112. package/dist/model/GeolocationInput.js +2 -2
  113. package/dist/model/GetFunctionConfig.js +536 -0
  114. package/dist/model/GetFunctionEnvironmentConfig.js +223 -0
  115. package/dist/model/GetFunctionResponse.js +302 -0
  116. package/dist/model/GoogleCloudSettings.js +162 -0
  117. package/dist/model/Graph.js +91 -91
  118. package/dist/model/GraphAction.js +29 -29
  119. package/dist/model/GraphDatabaseService.js +2 -2
  120. package/dist/model/GraphGeocode.js +2 -2
  121. package/dist/model/GraphIteratorEntryPart.js +2 -2
  122. package/dist/model/GraphObject.js +81 -81
  123. package/dist/model/GraphObjectPayload.js +2 -2
  124. package/dist/model/GraphObjectSchema.js +109 -109
  125. package/dist/model/GraphObjectType.js +52 -52
  126. package/dist/model/GraphObjectTypeResponse.js +377 -0
  127. package/dist/model/GraphObjectTypeSchema.js +52 -52
  128. package/dist/model/GraphOwner.js +2 -2
  129. package/dist/model/GraphRelationship.js +30 -30
  130. package/dist/model/GraphRelationshipPayload.js +2 -2
  131. package/dist/model/GraphRelationshipType.js +33 -33
  132. package/dist/model/GraphRelationshipTypeResponse.js +612 -0
  133. package/dist/model/GraphSchema.js +115 -115
  134. package/dist/model/GraphTraversalInput.js +2 -2
  135. package/dist/model/Image.js +70 -70
  136. package/dist/model/ImageUploadObject.js +70 -70
  137. package/dist/model/InputPart.js +2 -2
  138. package/dist/model/InputPartHeaders.js +106 -0
  139. package/dist/model/InputPartMediaType.js +2 -2
  140. package/dist/model/KafkaSettings.js +220 -0
  141. package/dist/model/Link.js +54 -54
  142. package/dist/model/LiveStreamInfo.js +2 -2
  143. package/dist/model/MeetingEvent.js +108 -108
  144. package/dist/model/MeetingEventTimezone.js +2 -2
  145. package/dist/model/MeetingInfo.js +2 -2
  146. package/dist/model/Member.js +31 -31
  147. package/dist/model/MemberGroupCategory.js +2 -2
  148. package/dist/model/MemberList.js +2 -2
  149. package/dist/model/MessageGroup.js +25 -25
  150. package/dist/model/MultipartBody.js +2 -2
  151. package/dist/model/Notification.js +381 -0
  152. package/dist/model/NotificationInput.js +273 -0
  153. package/dist/model/NotificationResponse.js +332 -0
  154. package/dist/model/NumberSettings.js +104 -0
  155. package/dist/model/ObjectSettings.js +129 -0
  156. package/dist/model/Objecttype.js +48 -48
  157. package/dist/model/OutParameter.js +162 -0
  158. package/dist/model/Page.js +2 -2
  159. package/dist/model/PageSchema.js +27 -27
  160. package/dist/model/Pageable.js +2 -2
  161. package/dist/model/Parameter.js +162 -0
  162. package/dist/model/Path.js +2 -2
  163. package/dist/model/PaymentAccountObject.js +2 -2
  164. package/dist/model/PaymentIntentInput.js +2 -2
  165. package/dist/model/PaymentIntentResponse.js +2 -2
  166. package/dist/model/PaymentMethod.js +25 -25
  167. package/dist/model/PaymentMethodInput.js +2 -2
  168. package/dist/model/PaymentMethodResponse.js +2 -2
  169. package/dist/model/PaymentMethodsResponse.js +2 -2
  170. package/dist/model/Payout.js +32 -32
  171. package/dist/model/PayoutInput.js +2 -2
  172. package/dist/model/PayoutResponse.js +2 -2
  173. package/dist/model/PhoneNumber.js +332 -0
  174. package/dist/model/Post.js +2 -2
  175. package/dist/model/PrivateMessage.js +2 -2
  176. package/dist/model/PrivateMessageConversation.js +91 -91
  177. package/dist/model/PrivateMessageConversationSchema.js +2 -2
  178. package/dist/model/Profile.js +2 -2
  179. package/dist/model/Profiletype.js +2 -2
  180. package/dist/model/PropertyContainer.js +25 -25
  181. package/dist/model/PurgeDataDefaultResponse.js +179 -0
  182. package/dist/model/PurgeDataDefaultResponseValue.js +2 -2
  183. package/dist/model/RelationshipMapping.js +2 -2
  184. package/dist/model/ScreenSchema.js +81 -81
  185. package/dist/model/SimulcastInfo.js +2 -2
  186. package/dist/model/SkinField.js +71 -71
  187. package/dist/model/SkinFieldResponse.js +596 -0
  188. package/dist/model/SocialGroup.js +2 -2
  189. package/dist/model/SocialGroupType.js +25 -25
  190. package/dist/model/Sort.js +2 -2
  191. package/dist/model/SourceTypes.js +2 -2
  192. package/dist/model/StatusUpdate.js +2 -2
  193. package/dist/model/StreetAddress.js +2 -2
  194. package/dist/model/StripeAccount.js +2 -2
  195. package/dist/model/StripeCustomerAccount.js +2 -2
  196. package/dist/model/Template.js +58 -58
  197. package/dist/model/TemplateResponse.js +301 -0
  198. package/dist/model/TemplateSchema.js +58 -58
  199. package/dist/model/ThemeMapping.js +27 -27
  200. package/dist/model/ThemeMappingPayload.js +25 -25
  201. package/dist/model/TopicInfoResponse.js +269 -0
  202. package/dist/model/TopicMessageInput.js +158 -0
  203. package/dist/model/TopicSubscriptionResponse.js +220 -0
  204. package/dist/model/Transaction.js +2 -2
  205. package/dist/model/Transfer.js +32 -32
  206. package/dist/model/TransferInput.js +2 -2
  207. package/dist/model/TransferResponse.js +2 -2
  208. package/dist/model/TransferResponsePaymentMethodDetails.js +32 -32
  209. package/dist/model/TraversalRelationResponse.js +2 -2
  210. package/dist/model/User.js +31 -31
  211. package/dist/model/UserDataPayload.js +31 -31
  212. package/dist/model/UserDomain.js +2 -2
  213. package/dist/model/UserInvite.js +29 -29
  214. package/dist/model/UserInviteInput.js +2 -2
  215. package/dist/model/UserSchema.js +31 -31
  216. package/dist/model/UserTag.js +2 -2
  217. package/dist/model/Userid.js +2 -2
  218. package/dist/model/Video.js +52 -52
  219. package/dist/model/VideoLiveUrl.js +27 -27
  220. package/dist/model/VideoSchema.js +52 -52
  221. package/dist/model/VideoUploadObject.js +52 -52
  222. package/dist/model/ZeusPortalCategory.js +2 -2
  223. package/package.json +1 -1
@@ -5,7 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _CreateFunctionInput = _interopRequireDefault(require("../model/CreateFunctionInput"));
9
+ var _FunctionConfigInput = _interopRequireDefault(require("../model/FunctionConfigInput"));
10
+ var _FunctionInput = _interopRequireDefault(require("../model/FunctionInput"));
11
+ var _FunctionOutput = _interopRequireDefault(require("../model/FunctionOutput"));
12
+ var _GetFunctionConfig = _interopRequireDefault(require("../model/GetFunctionConfig"));
13
+ var _GetFunctionResponse = _interopRequireDefault(require("../model/GetFunctionResponse"));
8
14
  var _PurgeDataDefaultResponseValue = _interopRequireDefault(require("../model/PurgeDataDefaultResponseValue"));
15
+ var _TopicSubscriptionResponse = _interopRequireDefault(require("../model/TopicSubscriptionResponse"));
9
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
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); }
11
18
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -16,7 +23,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
16
23
  * gobodo-api
17
24
  * REST Interface for Gobodo API
18
25
  *
19
- * The version of the OpenAPI document: 0.1.52
26
+ * The version of the OpenAPI document: 0.1.61
20
27
  * Contact: info@gobodo.io
21
28
  *
22
29
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
34
  /**
28
35
  * Functions service.
29
36
  * @module api/FunctionsApi
30
- * @version 0.1.52
37
+ * @version 0.1.61
31
38
  */
32
39
  var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
33
40
  /**
@@ -43,8 +50,11 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
43
50
  }
44
51
 
45
52
  /**
46
- * @param {Number} id The id of the object we are calling the function on
47
- * @param {String} _function
53
+ * Adds a function config
54
+ * Adds a function config
55
+ * @param {Number} functionid
56
+ * @param {module:model/String} environment
57
+ * @param {module:model/FunctionConfigInput} functionConfigInput
48
58
  * @param {Object} opts Optional parameters
49
59
  * @param {String} [authorization] The authorization token of the logged in user
50
60
  * @param {Number} [cacheduration] The how long the cache entry should persist
@@ -56,25 +66,1053 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
56
66
  * @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
57
67
  * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
58
68
  * @param {String} [transactionid] The id of the transaction this operation is being run in
59
- * @param {String} [body]
60
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
69
+ * @param {String} [key]
70
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionConfig} and HTTP response
61
71
  */
62
72
  _createClass(FunctionsApi, [{
73
+ key: "addFunctionConfigWithHttpInfo",
74
+ value: function addFunctionConfigWithHttpInfo(functionid, environment, functionConfigInput, opts) {
75
+ opts = opts || {};
76
+ var postBody = functionConfigInput;
77
+ // verify the required parameter 'functionid' is set
78
+ if (functionid === undefined || functionid === null) {
79
+ throw new Error("Missing the required parameter 'functionid' when calling addFunctionConfig");
80
+ }
81
+ // verify the required parameter 'environment' is set
82
+ if (environment === undefined || environment === null) {
83
+ throw new Error("Missing the required parameter 'environment' when calling addFunctionConfig");
84
+ }
85
+ // verify the required parameter 'functionConfigInput' is set
86
+ if (functionConfigInput === undefined || functionConfigInput === null) {
87
+ throw new Error("Missing the required parameter 'functionConfigInput' when calling addFunctionConfig");
88
+ }
89
+ var pathParams = {
90
+ 'functionid': functionid,
91
+ 'environment': environment
92
+ };
93
+ var queryParams = {
94
+ 'key': opts['key']
95
+ };
96
+ var headerParams = {
97
+ 'Authorization': opts['authorization'],
98
+ 'cacheduration': opts['cacheduration'],
99
+ 'cachegroup': opts['cachegroup'],
100
+ 'cachekey': opts['cachekey'],
101
+ 'cachescope': opts['cachescope'],
102
+ 'cacheuser': opts['cacheuser'],
103
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
104
+ 'zeusportal-postas': opts['zeusportalPostas'],
105
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
106
+ 'transactionid': opts['transactionid']
107
+ };
108
+ var formParams = {};
109
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
110
+ var contentTypes = [];
111
+ var accepts = ['application/json'];
112
+ var returnType = _GetFunctionConfig["default"];
113
+ return this.apiClient.callApi('/graph/data/functions/{functionid}/{environment}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
114
+ }
115
+
116
+ /**
117
+ * Adds a function config
118
+ * Adds a function config
119
+ * @param {Number} functionid
120
+ * @param {module:model/String} environment
121
+ * @param {module:model/FunctionConfigInput} functionConfigInput
122
+ * @param {Object} opts Optional parameters
123
+ * @param {String} opts.authorization The authorization token of the logged in user
124
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
125
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
126
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
127
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
128
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
129
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
130
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
131
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
132
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
133
+ * @param {String} opts.key
134
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionConfig}
135
+ */
136
+ }, {
137
+ key: "addFunctionConfig",
138
+ value: function addFunctionConfig(functionid, environment, functionConfigInput, opts) {
139
+ return this.addFunctionConfigWithHttpInfo(functionid, environment, functionConfigInput, opts).then(function (response_and_data) {
140
+ return response_and_data.data;
141
+ });
142
+ }
143
+
144
+ /**
145
+ * Adds a method to an action type
146
+ * Adds a method to an action type
147
+ * @param {Number} actiontypeid
148
+ * @param {module:model/CreateFunctionInput} createFunctionInput
149
+ * @param {Object} opts Optional parameters
150
+ * @param {String} [authorization] The authorization token of the logged in user
151
+ * @param {Number} [cacheduration] The how long the cache entry should persist
152
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
153
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
154
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
155
+ * @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)
156
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
157
+ * @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
158
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
159
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
160
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionResponse} and HTTP response
161
+ */
162
+ }, {
163
+ key: "addMethodToActionTypeWithHttpInfo",
164
+ value: function addMethodToActionTypeWithHttpInfo(actiontypeid, createFunctionInput, opts) {
165
+ opts = opts || {};
166
+ var postBody = createFunctionInput;
167
+ // verify the required parameter 'actiontypeid' is set
168
+ if (actiontypeid === undefined || actiontypeid === null) {
169
+ throw new Error("Missing the required parameter 'actiontypeid' when calling addMethodToActionType");
170
+ }
171
+ // verify the required parameter 'createFunctionInput' is set
172
+ if (createFunctionInput === undefined || createFunctionInput === null) {
173
+ throw new Error("Missing the required parameter 'createFunctionInput' when calling addMethodToActionType");
174
+ }
175
+ var pathParams = {
176
+ 'actiontypeid': actiontypeid
177
+ };
178
+ var queryParams = {};
179
+ var headerParams = {
180
+ 'Authorization': opts['authorization'],
181
+ 'cacheduration': opts['cacheduration'],
182
+ 'cachegroup': opts['cachegroup'],
183
+ 'cachekey': opts['cachekey'],
184
+ 'cachescope': opts['cachescope'],
185
+ 'cacheuser': opts['cacheuser'],
186
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
187
+ 'zeusportal-postas': opts['zeusportalPostas'],
188
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
189
+ 'transactionid': opts['transactionid']
190
+ };
191
+ var formParams = {};
192
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
193
+ var contentTypes = [];
194
+ var accepts = ['application/json'];
195
+ var returnType = _GetFunctionResponse["default"];
196
+ return this.apiClient.callApi('/graph/data/functions/actiontype/{actiontypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
197
+ }
198
+
199
+ /**
200
+ * Adds a method to an action type
201
+ * Adds a method to an action type
202
+ * @param {Number} actiontypeid
203
+ * @param {module:model/CreateFunctionInput} createFunctionInput
204
+ * @param {Object} opts Optional parameters
205
+ * @param {String} opts.authorization The authorization token of the logged in user
206
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
207
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
208
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
209
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
210
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
211
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
212
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
213
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
214
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
215
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionResponse}
216
+ */
217
+ }, {
218
+ key: "addMethodToActionType",
219
+ value: function addMethodToActionType(actiontypeid, createFunctionInput, opts) {
220
+ return this.addMethodToActionTypeWithHttpInfo(actiontypeid, createFunctionInput, opts).then(function (response_and_data) {
221
+ return response_and_data.data;
222
+ });
223
+ }
224
+
225
+ /**
226
+ * Adds a method to an object type
227
+ * Adds a method to an object type
228
+ * @param {Number} objecttypeid
229
+ * @param {module:model/CreateFunctionInput} createFunctionInput
230
+ * @param {Object} opts Optional parameters
231
+ * @param {String} [authorization] The authorization token of the logged in user
232
+ * @param {Number} [cacheduration] The how long the cache entry should persist
233
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
234
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
235
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
236
+ * @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)
237
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
238
+ * @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
239
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
240
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
241
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionResponse} and HTTP response
242
+ */
243
+ }, {
244
+ key: "addMethodToObjectTypeWithHttpInfo",
245
+ value: function addMethodToObjectTypeWithHttpInfo(objecttypeid, createFunctionInput, opts) {
246
+ opts = opts || {};
247
+ var postBody = createFunctionInput;
248
+ // verify the required parameter 'objecttypeid' is set
249
+ if (objecttypeid === undefined || objecttypeid === null) {
250
+ throw new Error("Missing the required parameter 'objecttypeid' when calling addMethodToObjectType");
251
+ }
252
+ // verify the required parameter 'createFunctionInput' is set
253
+ if (createFunctionInput === undefined || createFunctionInput === null) {
254
+ throw new Error("Missing the required parameter 'createFunctionInput' when calling addMethodToObjectType");
255
+ }
256
+ var pathParams = {
257
+ 'objecttypeid': objecttypeid
258
+ };
259
+ var queryParams = {};
260
+ var headerParams = {
261
+ 'Authorization': opts['authorization'],
262
+ 'cacheduration': opts['cacheduration'],
263
+ 'cachegroup': opts['cachegroup'],
264
+ 'cachekey': opts['cachekey'],
265
+ 'cachescope': opts['cachescope'],
266
+ 'cacheuser': opts['cacheuser'],
267
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
268
+ 'zeusportal-postas': opts['zeusportalPostas'],
269
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
270
+ 'transactionid': opts['transactionid']
271
+ };
272
+ var formParams = {};
273
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
274
+ var contentTypes = [];
275
+ var accepts = ['application/json'];
276
+ var returnType = _GetFunctionResponse["default"];
277
+ return this.apiClient.callApi('/graph/data/functions/objecttype/{objecttypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
278
+ }
279
+
280
+ /**
281
+ * Adds a method to an object type
282
+ * Adds a method to an object type
283
+ * @param {Number} objecttypeid
284
+ * @param {module:model/CreateFunctionInput} createFunctionInput
285
+ * @param {Object} opts Optional parameters
286
+ * @param {String} opts.authorization The authorization token of the logged in user
287
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
288
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
289
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
290
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
291
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
292
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
293
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
294
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
295
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
296
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionResponse}
297
+ */
298
+ }, {
299
+ key: "addMethodToObjectType",
300
+ value: function addMethodToObjectType(objecttypeid, createFunctionInput, opts) {
301
+ return this.addMethodToObjectTypeWithHttpInfo(objecttypeid, createFunctionInput, opts).then(function (response_and_data) {
302
+ return response_and_data.data;
303
+ });
304
+ }
305
+
306
+ /**
307
+ * Adds a method to an relationship type
308
+ * Adds a method to a relationship type
309
+ * @param {Number} reltypeid
310
+ * @param {module:model/CreateFunctionInput} createFunctionInput
311
+ * @param {Object} opts Optional parameters
312
+ * @param {String} [authorization] The authorization token of the logged in user
313
+ * @param {Number} [cacheduration] The how long the cache entry should persist
314
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
315
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
316
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
317
+ * @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)
318
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
319
+ * @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
320
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
321
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
322
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionResponse} and HTTP response
323
+ */
324
+ }, {
325
+ key: "addMethodToRelationshipTypeWithHttpInfo",
326
+ value: function addMethodToRelationshipTypeWithHttpInfo(reltypeid, createFunctionInput, opts) {
327
+ opts = opts || {};
328
+ var postBody = createFunctionInput;
329
+ // verify the required parameter 'reltypeid' is set
330
+ if (reltypeid === undefined || reltypeid === null) {
331
+ throw new Error("Missing the required parameter 'reltypeid' when calling addMethodToRelationshipType");
332
+ }
333
+ // verify the required parameter 'createFunctionInput' is set
334
+ if (createFunctionInput === undefined || createFunctionInput === null) {
335
+ throw new Error("Missing the required parameter 'createFunctionInput' when calling addMethodToRelationshipType");
336
+ }
337
+ var pathParams = {
338
+ 'reltypeid': reltypeid
339
+ };
340
+ var queryParams = {};
341
+ var headerParams = {
342
+ 'Authorization': opts['authorization'],
343
+ 'cacheduration': opts['cacheduration'],
344
+ 'cachegroup': opts['cachegroup'],
345
+ 'cachekey': opts['cachekey'],
346
+ 'cachescope': opts['cachescope'],
347
+ 'cacheuser': opts['cacheuser'],
348
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
349
+ 'zeusportal-postas': opts['zeusportalPostas'],
350
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
351
+ 'transactionid': opts['transactionid']
352
+ };
353
+ var formParams = {};
354
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
355
+ var contentTypes = [];
356
+ var accepts = ['application/json'];
357
+ var returnType = _GetFunctionResponse["default"];
358
+ return this.apiClient.callApi('/graph/data/functions/relationshiptype/{reltypeid}/method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
359
+ }
360
+
361
+ /**
362
+ * Adds a method to an relationship type
363
+ * Adds a method to a relationship type
364
+ * @param {Number} reltypeid
365
+ * @param {module:model/CreateFunctionInput} createFunctionInput
366
+ * @param {Object} opts Optional parameters
367
+ * @param {String} opts.authorization The authorization token of the logged in user
368
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
369
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
370
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
371
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
372
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
373
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
374
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
375
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
376
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
377
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionResponse}
378
+ */
379
+ }, {
380
+ key: "addMethodToRelationshipType",
381
+ value: function addMethodToRelationshipType(reltypeid, createFunctionInput, opts) {
382
+ return this.addMethodToRelationshipTypeWithHttpInfo(reltypeid, createFunctionInput, opts).then(function (response_and_data) {
383
+ return response_and_data.data;
384
+ });
385
+ }
386
+
387
+ /**
388
+ * Creates a new function
389
+ * Creates a new function
390
+ * @param {module:model/CreateFunctionInput} createFunctionInput
391
+ * @param {Object} opts Optional parameters
392
+ * @param {String} [authorization] The authorization token of the logged in user
393
+ * @param {Number} [cacheduration] The how long the cache entry should persist
394
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
395
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
396
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
397
+ * @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)
398
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
399
+ * @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
400
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
401
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
402
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionResponse} and HTTP response
403
+ */
404
+ }, {
405
+ key: "createFunctionWithHttpInfo",
406
+ value: function createFunctionWithHttpInfo(createFunctionInput, opts) {
407
+ opts = opts || {};
408
+ var postBody = createFunctionInput;
409
+ // verify the required parameter 'createFunctionInput' is set
410
+ if (createFunctionInput === undefined || createFunctionInput === null) {
411
+ throw new Error("Missing the required parameter 'createFunctionInput' when calling createFunction");
412
+ }
413
+ var pathParams = {};
414
+ var queryParams = {};
415
+ var headerParams = {
416
+ 'Authorization': opts['authorization'],
417
+ 'cacheduration': opts['cacheduration'],
418
+ 'cachegroup': opts['cachegroup'],
419
+ 'cachekey': opts['cachekey'],
420
+ 'cachescope': opts['cachescope'],
421
+ 'cacheuser': opts['cacheuser'],
422
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
423
+ 'zeusportal-postas': opts['zeusportalPostas'],
424
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
425
+ 'transactionid': opts['transactionid']
426
+ };
427
+ var formParams = {};
428
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
429
+ var contentTypes = [];
430
+ var accepts = ['application/json'];
431
+ var returnType = _GetFunctionResponse["default"];
432
+ return this.apiClient.callApi('/graph/data/functions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
433
+ }
434
+
435
+ /**
436
+ * Creates a new function
437
+ * Creates a new function
438
+ * @param {module:model/CreateFunctionInput} createFunctionInput
439
+ * @param {Object} opts Optional parameters
440
+ * @param {String} opts.authorization The authorization token of the logged in user
441
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
442
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
443
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
444
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
445
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
446
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
447
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
448
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
449
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
450
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionResponse}
451
+ */
452
+ }, {
453
+ key: "createFunction",
454
+ value: function createFunction(createFunctionInput, opts) {
455
+ return this.createFunctionWithHttpInfo(createFunctionInput, opts).then(function (response_and_data) {
456
+ return response_and_data.data;
457
+ });
458
+ }
459
+
460
+ /**
461
+ * Deletes a function
462
+ * Deletes a function
463
+ * @param {Number} functionid
464
+ * @param {Object} opts Optional parameters
465
+ * @param {String} [authorization] The authorization token of the logged in user
466
+ * @param {Number} [cacheduration] The how long the cache entry should persist
467
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
468
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
469
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
470
+ * @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)
471
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
472
+ * @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
473
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
474
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
475
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionResponse} and HTTP response
476
+ */
477
+ }, {
478
+ key: "deleteFunctionWithHttpInfo",
479
+ value: function deleteFunctionWithHttpInfo(functionid, opts) {
480
+ opts = opts || {};
481
+ var postBody = null;
482
+ // verify the required parameter 'functionid' is set
483
+ if (functionid === undefined || functionid === null) {
484
+ throw new Error("Missing the required parameter 'functionid' when calling deleteFunction");
485
+ }
486
+ var pathParams = {
487
+ 'functionid': functionid
488
+ };
489
+ var queryParams = {};
490
+ var headerParams = {
491
+ 'Authorization': opts['authorization'],
492
+ 'cacheduration': opts['cacheduration'],
493
+ 'cachegroup': opts['cachegroup'],
494
+ 'cachekey': opts['cachekey'],
495
+ 'cachescope': opts['cachescope'],
496
+ 'cacheuser': opts['cacheuser'],
497
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
498
+ 'zeusportal-postas': opts['zeusportalPostas'],
499
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
500
+ 'transactionid': opts['transactionid']
501
+ };
502
+ var formParams = {};
503
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
504
+ var contentTypes = [];
505
+ var accepts = ['application/json'];
506
+ var returnType = _GetFunctionResponse["default"];
507
+ return this.apiClient.callApi('/graph/data/functions/{functionid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
508
+ }
509
+
510
+ /**
511
+ * Deletes a function
512
+ * Deletes a function
513
+ * @param {Number} functionid
514
+ * @param {Object} opts Optional parameters
515
+ * @param {String} opts.authorization The authorization token of the logged in user
516
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
517
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
518
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
519
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
520
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
521
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
522
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
523
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
524
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
525
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionResponse}
526
+ */
527
+ }, {
528
+ key: "deleteFunction",
529
+ value: function deleteFunction(functionid, opts) {
530
+ return this.deleteFunctionWithHttpInfo(functionid, opts).then(function (response_and_data) {
531
+ return response_and_data.data;
532
+ });
533
+ }
534
+
535
+ /**
536
+ * @param {Number} id The id of the object we are calling the function on
537
+ * @param {String} _function
538
+ * @param {Object} opts Optional parameters
539
+ * @param {String} [authorization] The authorization token of the logged in user
540
+ * @param {Number} [cacheduration] The how long the cache entry should persist
541
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
542
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
543
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
544
+ * @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)
545
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
546
+ * @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
547
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
548
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
549
+ * @param {String} [body]
550
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PurgeDataDefaultResponseValue} and HTTP response
551
+ */
552
+ }, {
63
553
  key: "doPostFunctionWithHttpInfo",
64
554
  value: function doPostFunctionWithHttpInfo(id, _function, opts) {
65
555
  opts = opts || {};
66
- var postBody = opts['body'];
67
- // verify the required parameter 'id' is set
68
- if (id === undefined || id === null) {
69
- throw new Error("Missing the required parameter 'id' when calling doPostFunction");
556
+ var postBody = opts['body'];
557
+ // verify the required parameter 'id' is set
558
+ if (id === undefined || id === null) {
559
+ throw new Error("Missing the required parameter 'id' when calling doPostFunction");
560
+ }
561
+ // verify the required parameter '_function' is set
562
+ if (_function === undefined || _function === null) {
563
+ throw new Error("Missing the required parameter '_function' when calling doPostFunction");
564
+ }
565
+ var pathParams = {
566
+ 'id': id,
567
+ 'function': _function
568
+ };
569
+ var queryParams = {};
570
+ var headerParams = {
571
+ 'Authorization': opts['authorization'],
572
+ 'cacheduration': opts['cacheduration'],
573
+ 'cachegroup': opts['cachegroup'],
574
+ 'cachekey': opts['cachekey'],
575
+ 'cachescope': opts['cachescope'],
576
+ 'cacheuser': opts['cacheuser'],
577
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
578
+ 'zeusportal-postas': opts['zeusportalPostas'],
579
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
580
+ 'transactionid': opts['transactionid']
581
+ };
582
+ var formParams = {};
583
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
584
+ var contentTypes = ['application/json'];
585
+ var accepts = ['application/json'];
586
+ var returnType = _PurgeDataDefaultResponseValue["default"];
587
+ return this.apiClient.callApi('/graph/data/object/{id}/function/{function}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
588
+ }
589
+
590
+ /**
591
+ * @param {Number} id The id of the object we are calling the function on
592
+ * @param {String} _function
593
+ * @param {Object} opts Optional parameters
594
+ * @param {String} opts.authorization The authorization token of the logged in user
595
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
596
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
597
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
598
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
599
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
600
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
601
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
602
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
603
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
604
+ * @param {String} opts.body
605
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
606
+ */
607
+ }, {
608
+ key: "doPostFunction",
609
+ value: function doPostFunction(id, _function, opts) {
610
+ return this.doPostFunctionWithHttpInfo(id, _function, opts).then(function (response_and_data) {
611
+ return response_and_data.data;
612
+ });
613
+ }
614
+
615
+ /**
616
+ * Modifies a function
617
+ * Modifies a function
618
+ * @param {Number} functionid
619
+ * @param {module:model/CreateFunctionInput} createFunctionInput
620
+ * @param {Object} opts Optional parameters
621
+ * @param {String} [authorization] The authorization token of the logged in user
622
+ * @param {Number} [cacheduration] The how long the cache entry should persist
623
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
624
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
625
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
626
+ * @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)
627
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
628
+ * @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
629
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
630
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
631
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionResponse} and HTTP response
632
+ */
633
+ }, {
634
+ key: "editFunctionWithHttpInfo",
635
+ value: function editFunctionWithHttpInfo(functionid, createFunctionInput, opts) {
636
+ opts = opts || {};
637
+ var postBody = createFunctionInput;
638
+ // verify the required parameter 'functionid' is set
639
+ if (functionid === undefined || functionid === null) {
640
+ throw new Error("Missing the required parameter 'functionid' when calling editFunction");
641
+ }
642
+ // verify the required parameter 'createFunctionInput' is set
643
+ if (createFunctionInput === undefined || createFunctionInput === null) {
644
+ throw new Error("Missing the required parameter 'createFunctionInput' when calling editFunction");
645
+ }
646
+ var pathParams = {
647
+ 'functionid': functionid
648
+ };
649
+ var queryParams = {};
650
+ var headerParams = {
651
+ 'Authorization': opts['authorization'],
652
+ 'cacheduration': opts['cacheduration'],
653
+ 'cachegroup': opts['cachegroup'],
654
+ 'cachekey': opts['cachekey'],
655
+ 'cachescope': opts['cachescope'],
656
+ 'cacheuser': opts['cacheuser'],
657
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
658
+ 'zeusportal-postas': opts['zeusportalPostas'],
659
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
660
+ 'transactionid': opts['transactionid']
661
+ };
662
+ var formParams = {};
663
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
664
+ var contentTypes = [];
665
+ var accepts = ['application/json'];
666
+ var returnType = _GetFunctionResponse["default"];
667
+ return this.apiClient.callApi('/graph/data/functions/{functionid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
668
+ }
669
+
670
+ /**
671
+ * Modifies a function
672
+ * Modifies a function
673
+ * @param {Number} functionid
674
+ * @param {module:model/CreateFunctionInput} createFunctionInput
675
+ * @param {Object} opts Optional parameters
676
+ * @param {String} opts.authorization The authorization token of the logged in user
677
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
678
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
679
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
680
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
681
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
682
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
683
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
684
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
685
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
686
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionResponse}
687
+ */
688
+ }, {
689
+ key: "editFunction",
690
+ value: function editFunction(functionid, createFunctionInput, opts) {
691
+ return this.editFunctionWithHttpInfo(functionid, createFunctionInput, opts).then(function (response_and_data) {
692
+ return response_and_data.data;
693
+ });
694
+ }
695
+
696
+ /**
697
+ * Edits a function config
698
+ * Edits a function config
699
+ * @param {Number} functionconfigid
700
+ * @param {module:model/FunctionConfigInput} functionConfigInput
701
+ * @param {Object} opts Optional parameters
702
+ * @param {String} [authorization] The authorization token of the logged in user
703
+ * @param {Number} [cacheduration] The how long the cache entry should persist
704
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
705
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
706
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
707
+ * @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)
708
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
709
+ * @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
710
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
711
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
712
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionConfig} and HTTP response
713
+ */
714
+ }, {
715
+ key: "editFunctionConfigWithHttpInfo",
716
+ value: function editFunctionConfigWithHttpInfo(functionconfigid, functionConfigInput, opts) {
717
+ opts = opts || {};
718
+ var postBody = functionConfigInput;
719
+ // verify the required parameter 'functionconfigid' is set
720
+ if (functionconfigid === undefined || functionconfigid === null) {
721
+ throw new Error("Missing the required parameter 'functionconfigid' when calling editFunctionConfig");
722
+ }
723
+ // verify the required parameter 'functionConfigInput' is set
724
+ if (functionConfigInput === undefined || functionConfigInput === null) {
725
+ throw new Error("Missing the required parameter 'functionConfigInput' when calling editFunctionConfig");
726
+ }
727
+ var pathParams = {
728
+ 'functionconfigid': functionconfigid
729
+ };
730
+ var queryParams = {};
731
+ var headerParams = {
732
+ 'Authorization': opts['authorization'],
733
+ 'cacheduration': opts['cacheduration'],
734
+ 'cachegroup': opts['cachegroup'],
735
+ 'cachekey': opts['cachekey'],
736
+ 'cachescope': opts['cachescope'],
737
+ 'cacheuser': opts['cacheuser'],
738
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
739
+ 'zeusportal-postas': opts['zeusportalPostas'],
740
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
741
+ 'transactionid': opts['transactionid']
742
+ };
743
+ var formParams = {};
744
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
745
+ var contentTypes = [];
746
+ var accepts = ['application/json'];
747
+ var returnType = _GetFunctionConfig["default"];
748
+ return this.apiClient.callApi('/graph/data/functions/functionconfig/{functionconfigid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
749
+ }
750
+
751
+ /**
752
+ * Edits a function config
753
+ * Edits a function config
754
+ * @param {Number} functionconfigid
755
+ * @param {module:model/FunctionConfigInput} functionConfigInput
756
+ * @param {Object} opts Optional parameters
757
+ * @param {String} opts.authorization The authorization token of the logged in user
758
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
759
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
760
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
761
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
762
+ * @param {Array.<String>} opts.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} opts.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} opts.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} opts.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} opts.transactionid The id of the transaction this operation is being run in
767
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionConfig}
768
+ */
769
+ }, {
770
+ key: "editFunctionConfig",
771
+ value: function editFunctionConfig(functionconfigid, functionConfigInput, opts) {
772
+ return this.editFunctionConfigWithHttpInfo(functionconfigid, functionConfigInput, opts).then(function (response_and_data) {
773
+ return response_and_data.data;
774
+ });
775
+ }
776
+
777
+ /**
778
+ * Retrieves the methods associated with the ActionType
779
+ * Retrieves the methods associated with the Action Type
780
+ * @param {Number} actiontypeid
781
+ * @param {Object} opts Optional parameters
782
+ * @param {String} [authorization] The authorization token of the logged in user
783
+ * @param {Number} [cacheduration] The how long the cache entry should persist
784
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
785
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
786
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
787
+ * @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)
788
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
789
+ * @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
790
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
791
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
792
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionResponse} and HTTP response
793
+ */
794
+ }, {
795
+ key: "getActionTypeMethodsWithHttpInfo",
796
+ value: function getActionTypeMethodsWithHttpInfo(actiontypeid, opts) {
797
+ opts = opts || {};
798
+ var postBody = null;
799
+ // verify the required parameter 'actiontypeid' is set
800
+ if (actiontypeid === undefined || actiontypeid === null) {
801
+ throw new Error("Missing the required parameter 'actiontypeid' when calling getActionTypeMethods");
802
+ }
803
+ var pathParams = {
804
+ 'actiontypeid': actiontypeid
805
+ };
806
+ var queryParams = {};
807
+ var headerParams = {
808
+ 'Authorization': opts['authorization'],
809
+ 'cacheduration': opts['cacheduration'],
810
+ 'cachegroup': opts['cachegroup'],
811
+ 'cachekey': opts['cachekey'],
812
+ 'cachescope': opts['cachescope'],
813
+ 'cacheuser': opts['cacheuser'],
814
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
815
+ 'zeusportal-postas': opts['zeusportalPostas'],
816
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
817
+ 'transactionid': opts['transactionid']
818
+ };
819
+ var formParams = {};
820
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
821
+ var contentTypes = [];
822
+ var accepts = ['application/json'];
823
+ var returnType = _GetFunctionResponse["default"];
824
+ return this.apiClient.callApi('/graph/data/functions/actiontype/{actiontypeid}/methods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
825
+ }
826
+
827
+ /**
828
+ * Retrieves the methods associated with the ActionType
829
+ * Retrieves the methods associated with the Action Type
830
+ * @param {Number} actiontypeid
831
+ * @param {Object} opts Optional parameters
832
+ * @param {String} opts.authorization The authorization token of the logged in user
833
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
834
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
835
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
836
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
837
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
838
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
839
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
840
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
841
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
842
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionResponse}
843
+ */
844
+ }, {
845
+ key: "getActionTypeMethods",
846
+ value: function getActionTypeMethods(actiontypeid, opts) {
847
+ return this.getActionTypeMethodsWithHttpInfo(actiontypeid, opts).then(function (response_and_data) {
848
+ return response_and_data.data;
849
+ });
850
+ }
851
+
852
+ /**
853
+ * Returns a function
854
+ * Returns a function
855
+ * @param {Number} functionid
856
+ * @param {Object} opts Optional parameters
857
+ * @param {String} [authorization] The authorization token of the logged in user
858
+ * @param {Number} [cacheduration] The how long the cache entry should persist
859
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
860
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
861
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
862
+ * @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)
863
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
864
+ * @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
865
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
866
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
867
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionResponse} and HTTP response
868
+ */
869
+ }, {
870
+ key: "getFunctionWithHttpInfo",
871
+ value: function getFunctionWithHttpInfo(functionid, opts) {
872
+ opts = opts || {};
873
+ var postBody = null;
874
+ // verify the required parameter 'functionid' is set
875
+ if (functionid === undefined || functionid === null) {
876
+ throw new Error("Missing the required parameter 'functionid' when calling getFunction");
877
+ }
878
+ var pathParams = {
879
+ 'functionid': functionid
880
+ };
881
+ var queryParams = {};
882
+ var headerParams = {
883
+ 'Authorization': opts['authorization'],
884
+ 'cacheduration': opts['cacheduration'],
885
+ 'cachegroup': opts['cachegroup'],
886
+ 'cachekey': opts['cachekey'],
887
+ 'cachescope': opts['cachescope'],
888
+ 'cacheuser': opts['cacheuser'],
889
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
890
+ 'zeusportal-postas': opts['zeusportalPostas'],
891
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
892
+ 'transactionid': opts['transactionid']
893
+ };
894
+ var formParams = {};
895
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
896
+ var contentTypes = [];
897
+ var accepts = ['application/json'];
898
+ var returnType = _GetFunctionResponse["default"];
899
+ return this.apiClient.callApi('/graph/data/functions/{functionid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
900
+ }
901
+
902
+ /**
903
+ * Returns a function
904
+ * Returns a function
905
+ * @param {Number} functionid
906
+ * @param {Object} opts Optional parameters
907
+ * @param {String} opts.authorization The authorization token of the logged in user
908
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
909
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
910
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
911
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
912
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
913
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
914
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
915
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
916
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
917
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionResponse}
918
+ */
919
+ }, {
920
+ key: "getFunction",
921
+ value: function getFunction(functionid, opts) {
922
+ return this.getFunctionWithHttpInfo(functionid, opts).then(function (response_and_data) {
923
+ return response_and_data.data;
924
+ });
925
+ }
926
+
927
+ /**
928
+ * Returns the function for the given environment
929
+ * Returns the function for the given environment
930
+ * @param {Number} functionid
931
+ * @param {module:model/String} environment
932
+ * @param {Object} opts Optional parameters
933
+ * @param {String} [authorization] The authorization token of the logged in user
934
+ * @param {Number} [cacheduration] The how long the cache entry should persist
935
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
936
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
937
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
938
+ * @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)
939
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
940
+ * @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
941
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
942
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
943
+ * @param {String} [key]
944
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionConfig} and HTTP response
945
+ */
946
+ }, {
947
+ key: "getFunctionConfigWithHttpInfo",
948
+ value: function getFunctionConfigWithHttpInfo(functionid, environment, opts) {
949
+ opts = opts || {};
950
+ var postBody = null;
951
+ // verify the required parameter 'functionid' is set
952
+ if (functionid === undefined || functionid === null) {
953
+ throw new Error("Missing the required parameter 'functionid' when calling getFunctionConfig");
954
+ }
955
+ // verify the required parameter 'environment' is set
956
+ if (environment === undefined || environment === null) {
957
+ throw new Error("Missing the required parameter 'environment' when calling getFunctionConfig");
958
+ }
959
+ var pathParams = {
960
+ 'functionid': functionid,
961
+ 'environment': environment
962
+ };
963
+ var queryParams = {
964
+ 'key': opts['key']
965
+ };
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 = _GetFunctionConfig["default"];
983
+ return this.apiClient.callApi('/graph/data/functions/{functionid}/config/{environment}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
984
+ }
985
+
986
+ /**
987
+ * Returns the function for the given environment
988
+ * Returns the function for the given environment
989
+ * @param {Number} functionid
990
+ * @param {module:model/String} environment
991
+ * @param {Object} opts Optional parameters
992
+ * @param {String} opts.authorization The authorization token of the logged in user
993
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
994
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
995
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
996
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
997
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
998
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
999
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
1000
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
1001
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1002
+ * @param {String} opts.key
1003
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionConfig}
1004
+ */
1005
+ }, {
1006
+ key: "getFunctionConfig",
1007
+ value: function getFunctionConfig(functionid, environment, opts) {
1008
+ return this.getFunctionConfigWithHttpInfo(functionid, environment, opts).then(function (response_and_data) {
1009
+ return response_and_data.data;
1010
+ });
1011
+ }
1012
+
1013
+ /**
1014
+ * Gets the subscriptions of the function
1015
+ * Get the subscriptions of the function
1016
+ * @param {Number} functionid
1017
+ * @param {Object} opts Optional parameters
1018
+ * @param {String} [authorization] The authorization token of the logged in user
1019
+ * @param {Number} [cacheduration] The how long the cache entry should persist
1020
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
1021
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
1022
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
1023
+ * @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)
1024
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1025
+ * @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
1026
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1027
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1028
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/TopicSubscriptionResponse>} and HTTP response
1029
+ */
1030
+ }, {
1031
+ key: "getFunctionSubscriptionsWithHttpInfo",
1032
+ value: function getFunctionSubscriptionsWithHttpInfo(functionid, opts) {
1033
+ opts = opts || {};
1034
+ var postBody = null;
1035
+ // verify the required parameter 'functionid' is set
1036
+ if (functionid === undefined || functionid === null) {
1037
+ throw new Error("Missing the required parameter 'functionid' when calling getFunctionSubscriptions");
70
1038
  }
71
- // verify the required parameter '_function' is set
72
- if (_function === undefined || _function === null) {
73
- throw new Error("Missing the required parameter '_function' when calling doPostFunction");
1039
+ var pathParams = {
1040
+ 'functionid': functionid
1041
+ };
1042
+ var queryParams = {};
1043
+ var headerParams = {
1044
+ 'Authorization': opts['authorization'],
1045
+ 'cacheduration': opts['cacheduration'],
1046
+ 'cachegroup': opts['cachegroup'],
1047
+ 'cachekey': opts['cachekey'],
1048
+ 'cachescope': opts['cachescope'],
1049
+ 'cacheuser': opts['cacheuser'],
1050
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1051
+ 'zeusportal-postas': opts['zeusportalPostas'],
1052
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1053
+ 'transactionid': opts['transactionid']
1054
+ };
1055
+ var formParams = {};
1056
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1057
+ var contentTypes = [];
1058
+ var accepts = ['application/json'];
1059
+ var returnType = [_TopicSubscriptionResponse["default"]];
1060
+ return this.apiClient.callApi('/graph/data/functions/{functionid}/subscriptions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1061
+ }
1062
+
1063
+ /**
1064
+ * Gets the subscriptions of the function
1065
+ * Get the subscriptions of the function
1066
+ * @param {Number} functionid
1067
+ * @param {Object} opts Optional parameters
1068
+ * @param {String} opts.authorization The authorization token of the logged in user
1069
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
1070
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
1071
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
1072
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
1073
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
1074
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
1075
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
1076
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
1077
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1078
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/TopicSubscriptionResponse>}
1079
+ */
1080
+ }, {
1081
+ key: "getFunctionSubscriptions",
1082
+ value: function getFunctionSubscriptions(functionid, opts) {
1083
+ return this.getFunctionSubscriptionsWithHttpInfo(functionid, opts).then(function (response_and_data) {
1084
+ return response_and_data.data;
1085
+ });
1086
+ }
1087
+
1088
+ /**
1089
+ * Retrieves the methods associated with the Object Type
1090
+ * Retrieves the methods associated with the Object Type
1091
+ * @param {Number} objecttypeid
1092
+ * @param {Object} opts Optional parameters
1093
+ * @param {String} [authorization] The authorization token of the logged in user
1094
+ * @param {Number} [cacheduration] The how long the cache entry should persist
1095
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
1096
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
1097
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
1098
+ * @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)
1099
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1100
+ * @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
1101
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1102
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1103
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionResponse} and HTTP response
1104
+ */
1105
+ }, {
1106
+ key: "getObjectTypeMethodsWithHttpInfo",
1107
+ value: function getObjectTypeMethodsWithHttpInfo(objecttypeid, opts) {
1108
+ opts = opts || {};
1109
+ var postBody = null;
1110
+ // verify the required parameter 'objecttypeid' is set
1111
+ if (objecttypeid === undefined || objecttypeid === null) {
1112
+ throw new Error("Missing the required parameter 'objecttypeid' when calling getObjectTypeMethods");
74
1113
  }
75
1114
  var pathParams = {
76
- 'id': id,
77
- 'function': _function
1115
+ 'objecttypeid': objecttypeid
78
1116
  };
79
1117
  var queryParams = {};
80
1118
  var headerParams = {
@@ -91,15 +1129,16 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
91
1129
  };
92
1130
  var formParams = {};
93
1131
  var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
94
- var contentTypes = ['application/json'];
1132
+ var contentTypes = [];
95
1133
  var accepts = ['application/json'];
96
- var returnType = _PurgeDataDefaultResponseValue["default"];
97
- return this.apiClient.callApi('/graph/data/object/{id}/function/{function}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1134
+ var returnType = _GetFunctionResponse["default"];
1135
+ return this.apiClient.callApi('/graph/data/functions/objecttype/{objecttypeid}/methods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
98
1136
  }
99
1137
 
100
1138
  /**
101
- * @param {Number} id The id of the object we are calling the function on
102
- * @param {String} _function
1139
+ * Retrieves the methods associated with the Object Type
1140
+ * Retrieves the methods associated with the Object Type
1141
+ * @param {Number} objecttypeid
103
1142
  * @param {Object} opts Optional parameters
104
1143
  * @param {String} opts.authorization The authorization token of the logged in user
105
1144
  * @param {Number} opts.cacheduration The how long the cache entry should persist
@@ -111,13 +1150,322 @@ var FunctionsApi = exports["default"] = /*#__PURE__*/function () {
111
1150
  * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
112
1151
  * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
113
1152
  * @param {String} opts.transactionid The id of the transaction this operation is being run in
114
- * @param {String} opts.body
115
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PurgeDataDefaultResponseValue}
1153
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionResponse}
116
1154
  */
117
1155
  }, {
118
- key: "doPostFunction",
119
- value: function doPostFunction(id, _function, opts) {
120
- return this.doPostFunctionWithHttpInfo(id, _function, opts).then(function (response_and_data) {
1156
+ key: "getObjectTypeMethods",
1157
+ value: function getObjectTypeMethods(objecttypeid, opts) {
1158
+ return this.getObjectTypeMethodsWithHttpInfo(objecttypeid, opts).then(function (response_and_data) {
1159
+ return response_and_data.data;
1160
+ });
1161
+ }
1162
+
1163
+ /**
1164
+ * Retrieves the methods associated with the Object Type
1165
+ * Retrieves the methods associated with the Object Type
1166
+ * @param {Number} reltypeid
1167
+ * @param {Object} opts Optional parameters
1168
+ * @param {String} [authorization] The authorization token of the logged in user
1169
+ * @param {Number} [cacheduration] The how long the cache entry should persist
1170
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
1171
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
1172
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
1173
+ * @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)
1174
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1175
+ * @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
1176
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1177
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1178
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFunctionResponse} and HTTP response
1179
+ */
1180
+ }, {
1181
+ key: "getRelationshipTypeMethodsWithHttpInfo",
1182
+ value: function getRelationshipTypeMethodsWithHttpInfo(reltypeid, opts) {
1183
+ opts = opts || {};
1184
+ var postBody = null;
1185
+ // verify the required parameter 'reltypeid' is set
1186
+ if (reltypeid === undefined || reltypeid === null) {
1187
+ throw new Error("Missing the required parameter 'reltypeid' when calling getRelationshipTypeMethods");
1188
+ }
1189
+ var pathParams = {
1190
+ 'reltypeid': reltypeid
1191
+ };
1192
+ var queryParams = {};
1193
+ var headerParams = {
1194
+ 'Authorization': opts['authorization'],
1195
+ 'cacheduration': opts['cacheduration'],
1196
+ 'cachegroup': opts['cachegroup'],
1197
+ 'cachekey': opts['cachekey'],
1198
+ 'cachescope': opts['cachescope'],
1199
+ 'cacheuser': opts['cacheuser'],
1200
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1201
+ 'zeusportal-postas': opts['zeusportalPostas'],
1202
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1203
+ 'transactionid': opts['transactionid']
1204
+ };
1205
+ var formParams = {};
1206
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1207
+ var contentTypes = [];
1208
+ var accepts = ['application/json'];
1209
+ var returnType = _GetFunctionResponse["default"];
1210
+ return this.apiClient.callApi('/graph/data/functions/relationshiptype/{reltypeid}/methods', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1211
+ }
1212
+
1213
+ /**
1214
+ * Retrieves the methods associated with the Object Type
1215
+ * Retrieves the methods associated with the Object Type
1216
+ * @param {Number} reltypeid
1217
+ * @param {Object} opts Optional parameters
1218
+ * @param {String} opts.authorization The authorization token of the logged in user
1219
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
1220
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
1221
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
1222
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
1223
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
1224
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
1225
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
1226
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
1227
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1228
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFunctionResponse}
1229
+ */
1230
+ }, {
1231
+ key: "getRelationshipTypeMethods",
1232
+ value: function getRelationshipTypeMethods(reltypeid, opts) {
1233
+ return this.getRelationshipTypeMethodsWithHttpInfo(reltypeid, opts).then(function (response_and_data) {
1234
+ return response_and_data.data;
1235
+ });
1236
+ }
1237
+
1238
+ /**
1239
+ * Calls a function
1240
+ * Calls a function
1241
+ * @param {Number} functionid
1242
+ * @param {Object} opts Optional parameters
1243
+ * @param {String} [authorization] The authorization token of the logged in user
1244
+ * @param {Number} [cacheduration] The how long the cache entry should persist
1245
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
1246
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
1247
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
1248
+ * @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)
1249
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1250
+ * @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
1251
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1252
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1253
+ * @param {String} [any] Any query parameter can be provided
1254
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FunctionOutput} and HTTP response
1255
+ */
1256
+ }, {
1257
+ key: "invokeFunctionGetWithHttpInfo",
1258
+ value: function invokeFunctionGetWithHttpInfo(functionid, opts) {
1259
+ opts = opts || {};
1260
+ var postBody = null;
1261
+ // verify the required parameter 'functionid' is set
1262
+ if (functionid === undefined || functionid === null) {
1263
+ throw new Error("Missing the required parameter 'functionid' when calling invokeFunctionGet");
1264
+ }
1265
+ var pathParams = {
1266
+ 'functionid': functionid
1267
+ };
1268
+ var queryParams = {
1269
+ 'any': opts['any']
1270
+ };
1271
+ var headerParams = {
1272
+ 'Authorization': opts['authorization'],
1273
+ 'cacheduration': opts['cacheduration'],
1274
+ 'cachegroup': opts['cachegroup'],
1275
+ 'cachekey': opts['cachekey'],
1276
+ 'cachescope': opts['cachescope'],
1277
+ 'cacheuser': opts['cacheuser'],
1278
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1279
+ 'zeusportal-postas': opts['zeusportalPostas'],
1280
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1281
+ 'transactionid': opts['transactionid']
1282
+ };
1283
+ var formParams = {};
1284
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1285
+ var contentTypes = [];
1286
+ var accepts = ['application/json'];
1287
+ var returnType = _FunctionOutput["default"];
1288
+ return this.apiClient.callApi('/graph/data/functions/{functionid}/invoke', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1289
+ }
1290
+
1291
+ /**
1292
+ * Calls a function
1293
+ * Calls a function
1294
+ * @param {Number} functionid
1295
+ * @param {Object} opts Optional parameters
1296
+ * @param {String} opts.authorization The authorization token of the logged in user
1297
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
1298
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
1299
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
1300
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
1301
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
1302
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
1303
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
1304
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
1305
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1306
+ * @param {String} opts.any Any query parameter can be provided
1307
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FunctionOutput}
1308
+ */
1309
+ }, {
1310
+ key: "invokeFunctionGet",
1311
+ value: function invokeFunctionGet(functionid, opts) {
1312
+ return this.invokeFunctionGetWithHttpInfo(functionid, opts).then(function (response_and_data) {
1313
+ return response_and_data.data;
1314
+ });
1315
+ }
1316
+
1317
+ /**
1318
+ * Calls a function
1319
+ * Calls a function
1320
+ * @param {Number} functionid
1321
+ * @param {module:model/FunctionInput} functionInput
1322
+ * @param {Object} opts Optional parameters
1323
+ * @param {String} [authorization] The authorization token of the logged in user
1324
+ * @param {Number} [cacheduration] The how long the cache entry should persist
1325
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
1326
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
1327
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
1328
+ * @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)
1329
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1330
+ * @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
1331
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1332
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1333
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FunctionOutput} and HTTP response
1334
+ */
1335
+ }, {
1336
+ key: "invokeFunctionPutWithHttpInfo",
1337
+ value: function invokeFunctionPutWithHttpInfo(functionid, functionInput, opts) {
1338
+ opts = opts || {};
1339
+ var postBody = functionInput;
1340
+ // verify the required parameter 'functionid' is set
1341
+ if (functionid === undefined || functionid === null) {
1342
+ throw new Error("Missing the required parameter 'functionid' when calling invokeFunctionPut");
1343
+ }
1344
+ // verify the required parameter 'functionInput' is set
1345
+ if (functionInput === undefined || functionInput === null) {
1346
+ throw new Error("Missing the required parameter 'functionInput' when calling invokeFunctionPut");
1347
+ }
1348
+ var pathParams = {
1349
+ 'functionid': functionid
1350
+ };
1351
+ var queryParams = {};
1352
+ var headerParams = {
1353
+ 'Authorization': opts['authorization'],
1354
+ 'cacheduration': opts['cacheduration'],
1355
+ 'cachegroup': opts['cachegroup'],
1356
+ 'cachekey': opts['cachekey'],
1357
+ 'cachescope': opts['cachescope'],
1358
+ 'cacheuser': opts['cacheuser'],
1359
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1360
+ 'zeusportal-postas': opts['zeusportalPostas'],
1361
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1362
+ 'transactionid': opts['transactionid']
1363
+ };
1364
+ var formParams = {};
1365
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1366
+ var contentTypes = [];
1367
+ var accepts = ['application/json'];
1368
+ var returnType = _FunctionOutput["default"];
1369
+ return this.apiClient.callApi('/graph/data/functions/{functionid}/invoke', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1370
+ }
1371
+
1372
+ /**
1373
+ * Calls a function
1374
+ * Calls a function
1375
+ * @param {Number} functionid
1376
+ * @param {module:model/FunctionInput} functionInput
1377
+ * @param {Object} opts Optional parameters
1378
+ * @param {String} opts.authorization The authorization token of the logged in user
1379
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
1380
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
1381
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
1382
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
1383
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
1384
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
1385
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
1386
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
1387
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1388
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FunctionOutput}
1389
+ */
1390
+ }, {
1391
+ key: "invokeFunctionPut",
1392
+ value: function invokeFunctionPut(functionid, functionInput, opts) {
1393
+ return this.invokeFunctionPutWithHttpInfo(functionid, functionInput, opts).then(function (response_and_data) {
1394
+ return response_and_data.data;
1395
+ });
1396
+ }
1397
+
1398
+ /**
1399
+ * Subscribes to a topic
1400
+ * Subscribes to a topic
1401
+ * @param {Number} functionid
1402
+ * @param {Object} opts Optional parameters
1403
+ * @param {String} [authorization] The authorization token of the logged in user
1404
+ * @param {Number} [cacheduration] The how long the cache entry should persist
1405
+ * @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
1406
+ * @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
1407
+ * @param {module:model/String} [cachescope] The scope of storage of the cache item
1408
+ * @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)
1409
+ * @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
1410
+ * @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
1411
+ * @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
1412
+ * @param {String} [transactionid] The id of the transaction this operation is being run in
1413
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/TopicSubscriptionResponse>} and HTTP response
1414
+ */
1415
+ }, {
1416
+ key: "subscribeToTopicWithHttpInfo",
1417
+ value: function subscribeToTopicWithHttpInfo(functionid, opts) {
1418
+ opts = opts || {};
1419
+ var postBody = null;
1420
+ // verify the required parameter 'functionid' is set
1421
+ if (functionid === undefined || functionid === null) {
1422
+ throw new Error("Missing the required parameter 'functionid' when calling subscribeToTopic");
1423
+ }
1424
+ var pathParams = {
1425
+ 'functionid': functionid
1426
+ };
1427
+ var queryParams = {};
1428
+ var headerParams = {
1429
+ 'Authorization': opts['authorization'],
1430
+ 'cacheduration': opts['cacheduration'],
1431
+ 'cachegroup': opts['cachegroup'],
1432
+ 'cachekey': opts['cachekey'],
1433
+ 'cachescope': opts['cachescope'],
1434
+ 'cacheuser': opts['cacheuser'],
1435
+ 'zeusportal-postas-app': opts['zeusportalPostasApp'],
1436
+ 'zeusportal-postas': opts['zeusportalPostas'],
1437
+ 'zeusportal-postas-site': opts['zeusportalPostasSite'],
1438
+ 'transactionid': opts['transactionid']
1439
+ };
1440
+ var formParams = {};
1441
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1442
+ var contentTypes = [];
1443
+ var accepts = ['application/json'];
1444
+ var returnType = [_TopicSubscriptionResponse["default"]];
1445
+ return this.apiClient.callApi('/graph/data/functions/{functionid}/subscriptions', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1446
+ }
1447
+
1448
+ /**
1449
+ * Subscribes to a topic
1450
+ * Subscribes to a topic
1451
+ * @param {Number} functionid
1452
+ * @param {Object} opts Optional parameters
1453
+ * @param {String} opts.authorization The authorization token of the logged in user
1454
+ * @param {Number} opts.cacheduration The how long the cache entry should persist
1455
+ * @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
1456
+ * @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
1457
+ * @param {module:model/String} opts.cachescope The scope of storage of the cache item
1458
+ * @param {Array.<String>} opts.cacheuser The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
1459
+ * @param {Number} opts.zeusportalPostasApp The id of the application this operation is being performed as if the caller chooses to post as an organization page
1460
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
1461
+ * @param {Number} opts.zeusportalPostasSite The id of the site this operation is being performed as if the caller chooses to post as an organization page
1462
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1463
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/TopicSubscriptionResponse>}
1464
+ */
1465
+ }, {
1466
+ key: "subscribeToTopic",
1467
+ value: function subscribeToTopic(functionid, opts) {
1468
+ return this.subscribeToTopicWithHttpInfo(functionid, opts).then(function (response_and_data) {
121
1469
  return response_and_data.data;
122
1470
  });
123
1471
  }