@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.
- package/README.md +137 -54
- package/dist/ApiClient.js +3 -3
- package/dist/api/ActionTypesApi.js +2 -2
- package/dist/api/AdCampaignsApi.js +13 -13
- package/dist/api/AdManagementApi.js +24 -24
- package/dist/api/AdminDataManagementApi.js +2 -2
- package/dist/api/AdsApi.js +13 -13
- package/dist/api/AttachmentsApi.js +7 -7
- package/dist/api/AuthenticationApi.js +44 -2
- package/dist/api/CategoriesApi.js +7 -7
- package/dist/api/CommentsApi.js +7 -7
- package/dist/api/ContentManagementApi.js +12 -12
- package/dist/api/ConversationsApi.js +7 -7
- package/dist/api/DataSheetImportsApi.js +7 -7
- package/dist/api/DefaultApi.js +15 -443
- package/dist/api/DocumentsApi.js +7 -7
- package/dist/api/EmailsApi.js +346 -0
- package/dist/api/EntryPartsApi.js +7 -7
- package/dist/api/FacebookApi.js +2 -2
- package/dist/api/FieldsApi.js +2 -2
- package/dist/api/FilesApi.js +2 -2
- package/dist/api/FormsApi.js +17 -17
- package/dist/api/FunctionsApi.js +1373 -25
- package/dist/api/GeocodeApi.js +2 -2
- package/dist/api/GoogleApi.js +2 -2
- package/dist/api/GraphActionTypesApi.js +632 -0
- package/dist/api/GraphActionsApi.js +2 -2
- package/dist/api/GraphObjectTypesApi.js +250 -86
- package/dist/api/GraphObjectsApi.js +2 -2
- package/dist/api/GraphRelationshipTypesApi.js +172 -13
- package/dist/api/GraphRelationshipsApi.js +21 -20
- package/dist/api/GraphSchemasApi.js +13 -13
- package/dist/api/GraphTraversalApi.js +2 -2
- package/dist/api/GraphsApi.js +13 -13
- package/dist/api/GroupsApi.js +7 -7
- package/dist/api/IAMApi.js +13 -13
- package/dist/api/ImagesApi.js +7 -7
- package/dist/api/InvitesApi.js +2 -2
- package/dist/api/LikesApi.js +7 -7
- package/dist/api/LinkedINApi.js +2 -2
- package/dist/api/LiveMeetingsApi.js +2 -2
- package/dist/api/MeetingEventsApi.js +2 -2
- package/dist/api/NotificationsApi.js +1076 -0
- package/dist/api/PagesApi.js +7 -7
- package/dist/api/PhoneNumbersApi.js +403 -0
- package/dist/api/PostsApi.js +7 -7
- package/dist/api/PrivateMessagesApi.js +18 -18
- package/dist/api/PublicationsApi.js +2 -2
- package/dist/api/ScreensApi.js +2 -2
- package/dist/api/SocialIntegrationApi.js +2 -2
- package/dist/api/StripeAccountsApi.js +2 -2
- package/dist/api/TagsApi.js +2 -2
- package/dist/api/TemplatesApi.js +2 -2
- package/dist/api/ThemeMappingsApi.js +8 -8
- package/dist/api/TopicsApi.js +569 -0
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/api/TwitterApi.js +2 -2
- package/dist/api/UserTagsApi.js +7 -7
- package/dist/api/UsersApi.js +7 -7
- package/dist/api/UtilsApi.js +2 -2
- package/dist/api/VideosApi.js +7 -7
- package/dist/index.js +245 -7
- package/dist/model/APIClient.js +23 -23
- package/dist/model/AccountSessionInput.js +2 -2
- package/dist/model/AccountSessionResponse.js +2 -2
- package/dist/model/ApplicationPaymentAccountResponse.js +2 -2
- package/dist/model/ApplicationPaymentAccountResponseFailureException.js +2 -49
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionStackTraceInner.js +2 -2
- package/dist/model/Article.js +2 -2
- package/dist/model/AuthResponse.js +2 -2
- package/dist/model/AwsSettings.js +193 -0
- package/dist/model/Balance.js +33 -33
- package/dist/model/BalanceDetails.js +2 -2
- package/dist/model/BalanceResponse.js +2 -2
- package/dist/model/BankAccountInfo.js +2 -2
- package/dist/model/CardInfo.js +2 -2
- package/dist/model/Comment.js +31 -31
- package/dist/model/Coordinates.js +2 -2
- package/dist/model/CreateAccountResponse.js +2 -2
- package/dist/model/CreateFunctionInput.js +238 -0
- package/dist/model/CreateStripeAccountInput.js +2 -2
- package/dist/model/CreateStripeCustomerInput.js +2 -2
- package/dist/model/CreateTopicInput.js +191 -0
- package/dist/model/CreateTopicListenerInput.js +160 -0
- package/dist/model/CurrencySettings.js +108 -0
- package/dist/model/CustomerResponse.js +2 -2
- package/dist/model/DataObject.js +2 -2
- package/dist/model/DataSheetImport.js +27 -27
- package/dist/model/DataSheetImportPrivacySettings.js +2 -2
- package/dist/model/DataSheetImportSummary.js +2 -2
- package/dist/model/DeviceRegistrationRequest.js +252 -0
- package/dist/model/Document.js +2 -2
- package/dist/model/DocumentPart.js +52 -52
- package/dist/model/DocumentPartType.js +23 -23
- package/dist/model/DocumentType.js +63 -63
- package/dist/model/EmailAddress.js +245 -0
- package/dist/model/FieldMapping.js +2 -2
- package/dist/model/Fields.js +71 -71
- package/dist/model/File.js +23 -23
- package/dist/model/FileAttachmentUploadObject.js +23 -23
- package/dist/model/Filter.js +2 -2
- package/dist/model/FilterManager.js +2 -2
- package/dist/model/Form.js +37 -37
- package/dist/model/FormSection.js +37 -37
- package/dist/model/FormSubmission.js +30 -30
- package/dist/model/FunctionConfigInput.js +563 -0
- package/dist/model/FunctionEnvironmentConfig.js +221 -0
- package/dist/model/FunctionInput.js +260 -0
- package/dist/model/FunctionOutput.js +235 -0
- package/dist/model/Geocode.js +2 -2
- package/dist/model/GeocodePayload.js +2 -2
- package/dist/model/GeolocationInput.js +2 -2
- package/dist/model/GetFunctionConfig.js +536 -0
- package/dist/model/GetFunctionEnvironmentConfig.js +223 -0
- package/dist/model/GetFunctionResponse.js +302 -0
- package/dist/model/GoogleCloudSettings.js +162 -0
- package/dist/model/Graph.js +91 -91
- package/dist/model/GraphAction.js +29 -29
- package/dist/model/GraphDatabaseService.js +2 -2
- package/dist/model/GraphGeocode.js +2 -2
- package/dist/model/GraphIteratorEntryPart.js +2 -2
- package/dist/model/GraphObject.js +81 -81
- package/dist/model/GraphObjectPayload.js +2 -2
- package/dist/model/GraphObjectSchema.js +109 -109
- package/dist/model/GraphObjectType.js +52 -52
- package/dist/model/GraphObjectTypeResponse.js +377 -0
- package/dist/model/GraphObjectTypeSchema.js +52 -52
- package/dist/model/GraphOwner.js +2 -2
- package/dist/model/GraphRelationship.js +30 -30
- package/dist/model/GraphRelationshipPayload.js +2 -2
- package/dist/model/GraphRelationshipType.js +33 -33
- package/dist/model/GraphRelationshipTypeResponse.js +612 -0
- package/dist/model/GraphSchema.js +115 -115
- package/dist/model/GraphTraversalInput.js +2 -2
- package/dist/model/Image.js +70 -70
- package/dist/model/ImageUploadObject.js +70 -70
- package/dist/model/InputPart.js +2 -2
- package/dist/model/InputPartHeaders.js +106 -0
- package/dist/model/InputPartMediaType.js +2 -2
- package/dist/model/KafkaSettings.js +220 -0
- package/dist/model/Link.js +54 -54
- package/dist/model/LiveStreamInfo.js +2 -2
- package/dist/model/MeetingEvent.js +108 -108
- package/dist/model/MeetingEventTimezone.js +2 -2
- package/dist/model/MeetingInfo.js +2 -2
- package/dist/model/Member.js +31 -31
- package/dist/model/MemberGroupCategory.js +2 -2
- package/dist/model/MemberList.js +2 -2
- package/dist/model/MessageGroup.js +25 -25
- package/dist/model/MultipartBody.js +2 -2
- package/dist/model/Notification.js +381 -0
- package/dist/model/NotificationInput.js +273 -0
- package/dist/model/NotificationResponse.js +332 -0
- package/dist/model/NumberSettings.js +104 -0
- package/dist/model/ObjectSettings.js +129 -0
- package/dist/model/Objecttype.js +48 -48
- package/dist/model/OutParameter.js +162 -0
- package/dist/model/Page.js +2 -2
- package/dist/model/PageSchema.js +27 -27
- package/dist/model/Pageable.js +2 -2
- package/dist/model/Parameter.js +162 -0
- package/dist/model/Path.js +2 -2
- package/dist/model/PaymentAccountObject.js +2 -2
- package/dist/model/PaymentIntentInput.js +2 -2
- package/dist/model/PaymentIntentResponse.js +2 -2
- package/dist/model/PaymentMethod.js +25 -25
- package/dist/model/PaymentMethodInput.js +2 -2
- package/dist/model/PaymentMethodResponse.js +2 -2
- package/dist/model/PaymentMethodsResponse.js +2 -2
- package/dist/model/Payout.js +32 -32
- package/dist/model/PayoutInput.js +2 -2
- package/dist/model/PayoutResponse.js +2 -2
- package/dist/model/PhoneNumber.js +332 -0
- package/dist/model/Post.js +2 -2
- package/dist/model/PrivateMessage.js +2 -2
- package/dist/model/PrivateMessageConversation.js +91 -91
- package/dist/model/PrivateMessageConversationSchema.js +2 -2
- package/dist/model/Profile.js +2 -2
- package/dist/model/Profiletype.js +2 -2
- package/dist/model/PropertyContainer.js +25 -25
- package/dist/model/PurgeDataDefaultResponse.js +179 -0
- package/dist/model/PurgeDataDefaultResponseValue.js +2 -2
- package/dist/model/RelationshipMapping.js +2 -2
- package/dist/model/ScreenSchema.js +81 -81
- package/dist/model/SimulcastInfo.js +2 -2
- package/dist/model/SkinField.js +71 -71
- package/dist/model/SkinFieldResponse.js +596 -0
- package/dist/model/SocialGroup.js +2 -2
- package/dist/model/SocialGroupType.js +25 -25
- package/dist/model/Sort.js +2 -2
- package/dist/model/SourceTypes.js +2 -2
- package/dist/model/StatusUpdate.js +2 -2
- package/dist/model/StreetAddress.js +2 -2
- package/dist/model/StripeAccount.js +2 -2
- package/dist/model/StripeCustomerAccount.js +2 -2
- package/dist/model/Template.js +58 -58
- package/dist/model/TemplateResponse.js +301 -0
- package/dist/model/TemplateSchema.js +58 -58
- package/dist/model/ThemeMapping.js +27 -27
- package/dist/model/ThemeMappingPayload.js +25 -25
- package/dist/model/TopicInfoResponse.js +269 -0
- package/dist/model/TopicMessageInput.js +158 -0
- package/dist/model/TopicSubscriptionResponse.js +220 -0
- package/dist/model/Transaction.js +2 -2
- package/dist/model/Transfer.js +32 -32
- package/dist/model/TransferInput.js +2 -2
- package/dist/model/TransferResponse.js +2 -2
- package/dist/model/TransferResponsePaymentMethodDetails.js +32 -32
- package/dist/model/TraversalRelationResponse.js +2 -2
- package/dist/model/User.js +31 -31
- package/dist/model/UserDataPayload.js +31 -31
- package/dist/model/UserDomain.js +2 -2
- package/dist/model/UserInvite.js +29 -29
- package/dist/model/UserInviteInput.js +2 -2
- package/dist/model/UserSchema.js +31 -31
- package/dist/model/UserTag.js +2 -2
- package/dist/model/Userid.js +2 -2
- package/dist/model/Video.js +52 -52
- package/dist/model/VideoLiveUrl.js +27 -27
- package/dist/model/VideoSchema.js +52 -52
- package/dist/model/VideoUploadObject.js +52 -52
- package/dist/model/ZeusPortalCategory.js +2 -2
- package/package.json +1 -1
package/dist/api/TagsApi.js
CHANGED
|
@@ -16,7 +16,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
16
16
|
* gobodo-api
|
|
17
17
|
* REST Interface for Gobodo API
|
|
18
18
|
*
|
|
19
|
-
* The version of the OpenAPI document: 0.1.
|
|
19
|
+
* The version of the OpenAPI document: 0.1.61
|
|
20
20
|
* Contact: info@gobodo.io
|
|
21
21
|
*
|
|
22
22
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* Tags service.
|
|
29
29
|
* @module api/TagsApi
|
|
30
|
-
* @version 0.1.
|
|
30
|
+
* @version 0.1.61
|
|
31
31
|
*/
|
|
32
32
|
var TagsApi = exports["default"] = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
package/dist/api/TemplatesApi.js
CHANGED
|
@@ -16,7 +16,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
16
16
|
* gobodo-api
|
|
17
17
|
* REST Interface for Gobodo API
|
|
18
18
|
*
|
|
19
|
-
* The version of the OpenAPI document: 0.1.
|
|
19
|
+
* The version of the OpenAPI document: 0.1.61
|
|
20
20
|
* Contact: info@gobodo.io
|
|
21
21
|
*
|
|
22
22
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* Templates service.
|
|
29
29
|
* @module api/TemplatesApi
|
|
30
|
-
* @version 0.1.
|
|
30
|
+
* @version 0.1.61
|
|
31
31
|
*/
|
|
32
32
|
var TemplatesApi = exports["default"] = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
17
17
|
* gobodo-api
|
|
18
18
|
* REST Interface for Gobodo API
|
|
19
19
|
*
|
|
20
|
-
* The version of the OpenAPI document: 0.1.
|
|
20
|
+
* The version of the OpenAPI document: 0.1.61
|
|
21
21
|
* Contact: info@gobodo.io
|
|
22
22
|
*
|
|
23
23
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* ThemeMappings service.
|
|
30
30
|
* @module api/ThemeMappingsApi
|
|
31
|
-
* @version 0.1.
|
|
31
|
+
* @version 0.1.61
|
|
32
32
|
*/
|
|
33
33
|
var ThemeMappingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -205,13 +205,13 @@ var ThemeMappingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
205
205
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ThemeMapping} and HTTP response
|
|
206
206
|
*/
|
|
207
207
|
}, {
|
|
208
|
-
key: "
|
|
209
|
-
value: function
|
|
208
|
+
key: "get43WithHttpInfo",
|
|
209
|
+
value: function get43WithHttpInfo(themeid, opts) {
|
|
210
210
|
opts = opts || {};
|
|
211
211
|
var postBody = null;
|
|
212
212
|
// verify the required parameter 'themeid' is set
|
|
213
213
|
if (themeid === undefined || themeid === null) {
|
|
214
|
-
throw new Error("Missing the required parameter 'themeid' when calling
|
|
214
|
+
throw new Error("Missing the required parameter 'themeid' when calling get43");
|
|
215
215
|
}
|
|
216
216
|
var pathParams = {
|
|
217
217
|
'themeid': themeid
|
|
@@ -253,9 +253,9 @@ var ThemeMappingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
253
253
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ThemeMapping}
|
|
254
254
|
*/
|
|
255
255
|
}, {
|
|
256
|
-
key: "
|
|
257
|
-
value: function
|
|
258
|
-
return this.
|
|
256
|
+
key: "get43",
|
|
257
|
+
value: function get43(themeid, opts) {
|
|
258
|
+
return this.get43WithHttpInfo(themeid, opts).then(function (response_and_data) {
|
|
259
259
|
return response_and_data.data;
|
|
260
260
|
});
|
|
261
261
|
}
|
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _CreateTopicInput = _interopRequireDefault(require("../model/CreateTopicInput"));
|
|
9
|
+
var _CreateTopicListenerInput = _interopRequireDefault(require("../model/CreateTopicListenerInput"));
|
|
10
|
+
var _TopicInfoResponse = _interopRequireDefault(require("../model/TopicInfoResponse"));
|
|
11
|
+
var _TopicMessageInput = _interopRequireDefault(require("../model/TopicMessageInput"));
|
|
12
|
+
var _TopicSubscriptionResponse = _interopRequireDefault(require("../model/TopicSubscriptionResponse"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
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); }
|
|
15
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
17
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* gobodo-api
|
|
21
|
+
* REST Interface for Gobodo API
|
|
22
|
+
*
|
|
23
|
+
* The version of the OpenAPI document: 0.1.61
|
|
24
|
+
* Contact: info@gobodo.io
|
|
25
|
+
*
|
|
26
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
|
+
* https://openapi-generator.tech
|
|
28
|
+
* Do not edit the class manually.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Topics service.
|
|
33
|
+
* @module api/TopicsApi
|
|
34
|
+
* @version 0.1.61
|
|
35
|
+
*/
|
|
36
|
+
var TopicsApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new TopicsApi.
|
|
39
|
+
* @alias module:api/TopicsApi
|
|
40
|
+
* @class
|
|
41
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
42
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
43
|
+
*/
|
|
44
|
+
function TopicsApi(apiClient) {
|
|
45
|
+
_classCallCheck(this, TopicsApi);
|
|
46
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Creates a new topic
|
|
51
|
+
* Creates a new topic
|
|
52
|
+
* @param {module:model/CreateTopicInput} createTopicInput
|
|
53
|
+
* @param {Object} opts Optional parameters
|
|
54
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
55
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
56
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
57
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
58
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
59
|
+
* @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)
|
|
60
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
61
|
+
* @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
|
|
62
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
63
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
64
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TopicInfoResponse} and HTTP response
|
|
65
|
+
*/
|
|
66
|
+
_createClass(TopicsApi, [{
|
|
67
|
+
key: "createTopicWithHttpInfo",
|
|
68
|
+
value: function createTopicWithHttpInfo(createTopicInput, opts) {
|
|
69
|
+
opts = opts || {};
|
|
70
|
+
var postBody = createTopicInput;
|
|
71
|
+
// verify the required parameter 'createTopicInput' is set
|
|
72
|
+
if (createTopicInput === undefined || createTopicInput === null) {
|
|
73
|
+
throw new Error("Missing the required parameter 'createTopicInput' when calling createTopic");
|
|
74
|
+
}
|
|
75
|
+
var pathParams = {};
|
|
76
|
+
var queryParams = {};
|
|
77
|
+
var headerParams = {
|
|
78
|
+
'Authorization': opts['authorization'],
|
|
79
|
+
'cacheduration': opts['cacheduration'],
|
|
80
|
+
'cachegroup': opts['cachegroup'],
|
|
81
|
+
'cachekey': opts['cachekey'],
|
|
82
|
+
'cachescope': opts['cachescope'],
|
|
83
|
+
'cacheuser': opts['cacheuser'],
|
|
84
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
85
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
86
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
87
|
+
'transactionid': opts['transactionid']
|
|
88
|
+
};
|
|
89
|
+
var formParams = {};
|
|
90
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
91
|
+
var contentTypes = [];
|
|
92
|
+
var accepts = ['application/json'];
|
|
93
|
+
var returnType = _TopicInfoResponse["default"];
|
|
94
|
+
return this.apiClient.callApi('/graph/data/topics', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Creates a new topic
|
|
99
|
+
* Creates a new topic
|
|
100
|
+
* @param {module:model/CreateTopicInput} createTopicInput
|
|
101
|
+
* @param {Object} opts Optional parameters
|
|
102
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
103
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
104
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
105
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
106
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
107
|
+
* @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)
|
|
108
|
+
* @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
|
|
109
|
+
* @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
|
|
110
|
+
* @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
|
|
111
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
112
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TopicInfoResponse}
|
|
113
|
+
*/
|
|
114
|
+
}, {
|
|
115
|
+
key: "createTopic",
|
|
116
|
+
value: function createTopic(createTopicInput, opts) {
|
|
117
|
+
return this.createTopicWithHttpInfo(createTopicInput, opts).then(function (response_and_data) {
|
|
118
|
+
return response_and_data.data;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Deletes a topic
|
|
124
|
+
* Deletes a topic
|
|
125
|
+
* @param {String} topicName
|
|
126
|
+
* @param {Object} opts Optional parameters
|
|
127
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
128
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
129
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
130
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
131
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
132
|
+
* @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)
|
|
133
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
134
|
+
* @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
|
|
135
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
136
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
137
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TopicSubscriptionResponse} and HTTP response
|
|
138
|
+
*/
|
|
139
|
+
}, {
|
|
140
|
+
key: "deleteTopicWithHttpInfo",
|
|
141
|
+
value: function deleteTopicWithHttpInfo(topicName, opts) {
|
|
142
|
+
opts = opts || {};
|
|
143
|
+
var postBody = null;
|
|
144
|
+
// verify the required parameter 'topicName' is set
|
|
145
|
+
if (topicName === undefined || topicName === null) {
|
|
146
|
+
throw new Error("Missing the required parameter 'topicName' when calling deleteTopic");
|
|
147
|
+
}
|
|
148
|
+
var pathParams = {
|
|
149
|
+
'topicName': topicName
|
|
150
|
+
};
|
|
151
|
+
var queryParams = {};
|
|
152
|
+
var headerParams = {
|
|
153
|
+
'Authorization': opts['authorization'],
|
|
154
|
+
'cacheduration': opts['cacheduration'],
|
|
155
|
+
'cachegroup': opts['cachegroup'],
|
|
156
|
+
'cachekey': opts['cachekey'],
|
|
157
|
+
'cachescope': opts['cachescope'],
|
|
158
|
+
'cacheuser': opts['cacheuser'],
|
|
159
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
160
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
161
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
162
|
+
'transactionid': opts['transactionid']
|
|
163
|
+
};
|
|
164
|
+
var formParams = {};
|
|
165
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
166
|
+
var contentTypes = [];
|
|
167
|
+
var accepts = ['application/json'];
|
|
168
|
+
var returnType = _TopicSubscriptionResponse["default"];
|
|
169
|
+
return this.apiClient.callApi('/graph/data/topics/{topicName}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Deletes a topic
|
|
174
|
+
* Deletes a topic
|
|
175
|
+
* @param {String} topicName
|
|
176
|
+
* @param {Object} opts Optional parameters
|
|
177
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
178
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
179
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
180
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
181
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
182
|
+
* @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)
|
|
183
|
+
* @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
|
|
184
|
+
* @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
|
|
185
|
+
* @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
|
|
186
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
187
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TopicSubscriptionResponse}
|
|
188
|
+
*/
|
|
189
|
+
}, {
|
|
190
|
+
key: "deleteTopic",
|
|
191
|
+
value: function deleteTopic(topicName, opts) {
|
|
192
|
+
return this.deleteTopicWithHttpInfo(topicName, opts).then(function (response_and_data) {
|
|
193
|
+
return response_and_data.data;
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Gets a subscription by key
|
|
199
|
+
* Gets a subscription by key
|
|
200
|
+
* @param {Number} subscriptionId
|
|
201
|
+
* @param {Object} opts Optional parameters
|
|
202
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
203
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
204
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
205
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
206
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
207
|
+
* @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)
|
|
208
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
209
|
+
* @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
|
|
210
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
211
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
212
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TopicSubscriptionResponse} and HTTP response
|
|
213
|
+
*/
|
|
214
|
+
}, {
|
|
215
|
+
key: "getSubscriptionWithHttpInfo",
|
|
216
|
+
value: function getSubscriptionWithHttpInfo(subscriptionId, opts) {
|
|
217
|
+
opts = opts || {};
|
|
218
|
+
var postBody = null;
|
|
219
|
+
// verify the required parameter 'subscriptionId' is set
|
|
220
|
+
if (subscriptionId === undefined || subscriptionId === null) {
|
|
221
|
+
throw new Error("Missing the required parameter 'subscriptionId' when calling getSubscription");
|
|
222
|
+
}
|
|
223
|
+
var pathParams = {
|
|
224
|
+
'subscriptionId': subscriptionId
|
|
225
|
+
};
|
|
226
|
+
var queryParams = {};
|
|
227
|
+
var headerParams = {
|
|
228
|
+
'Authorization': opts['authorization'],
|
|
229
|
+
'cacheduration': opts['cacheduration'],
|
|
230
|
+
'cachegroup': opts['cachegroup'],
|
|
231
|
+
'cachekey': opts['cachekey'],
|
|
232
|
+
'cachescope': opts['cachescope'],
|
|
233
|
+
'cacheuser': opts['cacheuser'],
|
|
234
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
235
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
236
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
237
|
+
'transactionid': opts['transactionid']
|
|
238
|
+
};
|
|
239
|
+
var formParams = {};
|
|
240
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
241
|
+
var contentTypes = [];
|
|
242
|
+
var accepts = ['application/json'];
|
|
243
|
+
var returnType = _TopicSubscriptionResponse["default"];
|
|
244
|
+
return this.apiClient.callApi('/graph/data/topics/subscription/{subscriptionId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Gets a subscription by key
|
|
249
|
+
* Gets a subscription by key
|
|
250
|
+
* @param {Number} subscriptionId
|
|
251
|
+
* @param {Object} opts Optional parameters
|
|
252
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
253
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
254
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
255
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
256
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
257
|
+
* @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)
|
|
258
|
+
* @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
|
|
259
|
+
* @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
|
|
260
|
+
* @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
|
|
261
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
262
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TopicSubscriptionResponse}
|
|
263
|
+
*/
|
|
264
|
+
}, {
|
|
265
|
+
key: "getSubscription",
|
|
266
|
+
value: function getSubscription(subscriptionId, opts) {
|
|
267
|
+
return this.getSubscriptionWithHttpInfo(subscriptionId, opts).then(function (response_and_data) {
|
|
268
|
+
return response_and_data.data;
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Gets a topic by name
|
|
274
|
+
* Gets a topic by name
|
|
275
|
+
* @param {String} topicName
|
|
276
|
+
* @param {Object} opts Optional parameters
|
|
277
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
278
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
279
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
280
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
281
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
282
|
+
* @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)
|
|
283
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
284
|
+
* @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
|
|
285
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
286
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
287
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TopicInfoResponse} and HTTP response
|
|
288
|
+
*/
|
|
289
|
+
}, {
|
|
290
|
+
key: "getTopicByNameWithHttpInfo",
|
|
291
|
+
value: function getTopicByNameWithHttpInfo(topicName, opts) {
|
|
292
|
+
opts = opts || {};
|
|
293
|
+
var postBody = null;
|
|
294
|
+
// verify the required parameter 'topicName' is set
|
|
295
|
+
if (topicName === undefined || topicName === null) {
|
|
296
|
+
throw new Error("Missing the required parameter 'topicName' when calling getTopicByName");
|
|
297
|
+
}
|
|
298
|
+
var pathParams = {
|
|
299
|
+
'topicName': topicName
|
|
300
|
+
};
|
|
301
|
+
var queryParams = {};
|
|
302
|
+
var headerParams = {
|
|
303
|
+
'Authorization': opts['authorization'],
|
|
304
|
+
'cacheduration': opts['cacheduration'],
|
|
305
|
+
'cachegroup': opts['cachegroup'],
|
|
306
|
+
'cachekey': opts['cachekey'],
|
|
307
|
+
'cachescope': opts['cachescope'],
|
|
308
|
+
'cacheuser': opts['cacheuser'],
|
|
309
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
310
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
311
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
312
|
+
'transactionid': opts['transactionid']
|
|
313
|
+
};
|
|
314
|
+
var formParams = {};
|
|
315
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
316
|
+
var contentTypes = [];
|
|
317
|
+
var accepts = ['application/json'];
|
|
318
|
+
var returnType = _TopicInfoResponse["default"];
|
|
319
|
+
return this.apiClient.callApi('/graph/data/topics/{topicName}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Gets a topic by name
|
|
324
|
+
* Gets a topic by name
|
|
325
|
+
* @param {String} topicName
|
|
326
|
+
* @param {Object} opts Optional parameters
|
|
327
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
328
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
329
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
330
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
331
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
332
|
+
* @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)
|
|
333
|
+
* @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
|
|
334
|
+
* @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
|
|
335
|
+
* @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
|
|
336
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
337
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TopicInfoResponse}
|
|
338
|
+
*/
|
|
339
|
+
}, {
|
|
340
|
+
key: "getTopicByName",
|
|
341
|
+
value: function getTopicByName(topicName, opts) {
|
|
342
|
+
return this.getTopicByNameWithHttpInfo(topicName, opts).then(function (response_and_data) {
|
|
343
|
+
return response_and_data.data;
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Gets subscriptions for a topic
|
|
349
|
+
* Gets subscriptions for a topic
|
|
350
|
+
* @param {String} topicName
|
|
351
|
+
* @param {Object} opts Optional parameters
|
|
352
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
353
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
354
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
355
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
356
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
357
|
+
* @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)
|
|
358
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
359
|
+
* @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
|
|
360
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
361
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
362
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/TopicSubscriptionResponse>} and HTTP response
|
|
363
|
+
*/
|
|
364
|
+
}, {
|
|
365
|
+
key: "getTopicSubscriptionsWithHttpInfo",
|
|
366
|
+
value: function getTopicSubscriptionsWithHttpInfo(topicName, opts) {
|
|
367
|
+
opts = opts || {};
|
|
368
|
+
var postBody = null;
|
|
369
|
+
// verify the required parameter 'topicName' is set
|
|
370
|
+
if (topicName === undefined || topicName === null) {
|
|
371
|
+
throw new Error("Missing the required parameter 'topicName' when calling getTopicSubscriptions");
|
|
372
|
+
}
|
|
373
|
+
var pathParams = {
|
|
374
|
+
'topicName': topicName
|
|
375
|
+
};
|
|
376
|
+
var queryParams = {};
|
|
377
|
+
var headerParams = {
|
|
378
|
+
'Authorization': opts['authorization'],
|
|
379
|
+
'cacheduration': opts['cacheduration'],
|
|
380
|
+
'cachegroup': opts['cachegroup'],
|
|
381
|
+
'cachekey': opts['cachekey'],
|
|
382
|
+
'cachescope': opts['cachescope'],
|
|
383
|
+
'cacheuser': opts['cacheuser'],
|
|
384
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
385
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
386
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
387
|
+
'transactionid': opts['transactionid']
|
|
388
|
+
};
|
|
389
|
+
var formParams = {};
|
|
390
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
391
|
+
var contentTypes = [];
|
|
392
|
+
var accepts = ['application/json'];
|
|
393
|
+
var returnType = [_TopicSubscriptionResponse["default"]];
|
|
394
|
+
return this.apiClient.callApi('/graph/data/topics/{topicName}/subscriptions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Gets subscriptions for a topic
|
|
399
|
+
* Gets subscriptions for a topic
|
|
400
|
+
* @param {String} topicName
|
|
401
|
+
* @param {Object} opts Optional parameters
|
|
402
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
403
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
404
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
405
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
406
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
407
|
+
* @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)
|
|
408
|
+
* @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
|
|
409
|
+
* @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
|
|
410
|
+
* @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
|
|
411
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
412
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/TopicSubscriptionResponse>}
|
|
413
|
+
*/
|
|
414
|
+
}, {
|
|
415
|
+
key: "getTopicSubscriptions",
|
|
416
|
+
value: function getTopicSubscriptions(topicName, opts) {
|
|
417
|
+
return this.getTopicSubscriptionsWithHttpInfo(topicName, opts).then(function (response_and_data) {
|
|
418
|
+
return response_and_data.data;
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Registers listeners
|
|
424
|
+
* Register listeners
|
|
425
|
+
* @param {module:model/CreateTopicListenerInput} createTopicListenerInput
|
|
426
|
+
* @param {Object} opts Optional parameters
|
|
427
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
428
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
429
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
430
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
431
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
432
|
+
* @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)
|
|
433
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
434
|
+
* @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
|
|
435
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
436
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
437
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TopicSubscriptionResponse} and HTTP response
|
|
438
|
+
*/
|
|
439
|
+
}, {
|
|
440
|
+
key: "registerListenersWithHttpInfo",
|
|
441
|
+
value: function registerListenersWithHttpInfo(createTopicListenerInput, opts) {
|
|
442
|
+
opts = opts || {};
|
|
443
|
+
var postBody = createTopicListenerInput;
|
|
444
|
+
// verify the required parameter 'createTopicListenerInput' is set
|
|
445
|
+
if (createTopicListenerInput === undefined || createTopicListenerInput === null) {
|
|
446
|
+
throw new Error("Missing the required parameter 'createTopicListenerInput' when calling registerListeners");
|
|
447
|
+
}
|
|
448
|
+
var pathParams = {};
|
|
449
|
+
var queryParams = {};
|
|
450
|
+
var headerParams = {
|
|
451
|
+
'Authorization': opts['authorization'],
|
|
452
|
+
'cacheduration': opts['cacheduration'],
|
|
453
|
+
'cachegroup': opts['cachegroup'],
|
|
454
|
+
'cachekey': opts['cachekey'],
|
|
455
|
+
'cachescope': opts['cachescope'],
|
|
456
|
+
'cacheuser': opts['cacheuser'],
|
|
457
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
458
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
459
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
460
|
+
'transactionid': opts['transactionid']
|
|
461
|
+
};
|
|
462
|
+
var formParams = {};
|
|
463
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
464
|
+
var contentTypes = [];
|
|
465
|
+
var accepts = ['application/json'];
|
|
466
|
+
var returnType = _TopicSubscriptionResponse["default"];
|
|
467
|
+
return this.apiClient.callApi('/graph/data/topics', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Registers listeners
|
|
472
|
+
* Register listeners
|
|
473
|
+
* @param {module:model/CreateTopicListenerInput} createTopicListenerInput
|
|
474
|
+
* @param {Object} opts Optional parameters
|
|
475
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
476
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
477
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
478
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
479
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
480
|
+
* @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)
|
|
481
|
+
* @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
|
|
482
|
+
* @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
|
|
483
|
+
* @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
|
|
484
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
485
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TopicSubscriptionResponse}
|
|
486
|
+
*/
|
|
487
|
+
}, {
|
|
488
|
+
key: "registerListeners",
|
|
489
|
+
value: function registerListeners(createTopicListenerInput, opts) {
|
|
490
|
+
return this.registerListenersWithHttpInfo(createTopicListenerInput, opts).then(function (response_and_data) {
|
|
491
|
+
return response_and_data.data;
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Sends a message to a topic
|
|
497
|
+
* Sends a message to a topic
|
|
498
|
+
* @param {module:model/TopicMessageInput} topicMessageInput
|
|
499
|
+
* @param {Object} opts Optional parameters
|
|
500
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
501
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
502
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
503
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
504
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
505
|
+
* @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)
|
|
506
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
507
|
+
* @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
|
|
508
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
509
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
510
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TopicSubscriptionResponse} and HTTP response
|
|
511
|
+
*/
|
|
512
|
+
}, {
|
|
513
|
+
key: "sendMessageWithHttpInfo",
|
|
514
|
+
value: function sendMessageWithHttpInfo(topicMessageInput, opts) {
|
|
515
|
+
opts = opts || {};
|
|
516
|
+
var postBody = topicMessageInput;
|
|
517
|
+
// verify the required parameter 'topicMessageInput' is set
|
|
518
|
+
if (topicMessageInput === undefined || topicMessageInput === null) {
|
|
519
|
+
throw new Error("Missing the required parameter 'topicMessageInput' when calling sendMessage");
|
|
520
|
+
}
|
|
521
|
+
var pathParams = {};
|
|
522
|
+
var queryParams = {};
|
|
523
|
+
var headerParams = {
|
|
524
|
+
'Authorization': opts['authorization'],
|
|
525
|
+
'cacheduration': opts['cacheduration'],
|
|
526
|
+
'cachegroup': opts['cachegroup'],
|
|
527
|
+
'cachekey': opts['cachekey'],
|
|
528
|
+
'cachescope': opts['cachescope'],
|
|
529
|
+
'cacheuser': opts['cacheuser'],
|
|
530
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
531
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
532
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
533
|
+
'transactionid': opts['transactionid']
|
|
534
|
+
};
|
|
535
|
+
var formParams = {};
|
|
536
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
537
|
+
var contentTypes = [];
|
|
538
|
+
var accepts = ['application/json'];
|
|
539
|
+
var returnType = _TopicSubscriptionResponse["default"];
|
|
540
|
+
return this.apiClient.callApi('/graph/data/topics/message', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Sends a message to a topic
|
|
545
|
+
* Sends a message to a topic
|
|
546
|
+
* @param {module:model/TopicMessageInput} topicMessageInput
|
|
547
|
+
* @param {Object} opts Optional parameters
|
|
548
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
549
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
550
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
551
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
552
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
553
|
+
* @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)
|
|
554
|
+
* @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
|
|
555
|
+
* @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
|
|
556
|
+
* @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
|
|
557
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
558
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TopicSubscriptionResponse}
|
|
559
|
+
*/
|
|
560
|
+
}, {
|
|
561
|
+
key: "sendMessage",
|
|
562
|
+
value: function sendMessage(topicMessageInput, opts) {
|
|
563
|
+
return this.sendMessageWithHttpInfo(topicMessageInput, opts).then(function (response_and_data) {
|
|
564
|
+
return response_and_data.data;
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
}]);
|
|
568
|
+
return TopicsApi;
|
|
569
|
+
}();
|